From 442133916e90a553cb87e6ddded65e98eb64cb57 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 00:04:16 -0600 Subject: [PATCH 01/12] feat: perm revamp Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- README.md | 4 +- Taskfile.yaml | 13 +- cli/cmd/apitokens/create.go | 2 +- cli/cmd/apitokens/scopes.go | 36 + common/enums/role.go | 14 +- config/.env.example | 2 + config/config-dev.example.yaml | 10 + config/config.example.yaml | 3 + config/configmap-config-file.yaml | 13 + config/helm-values.yaml | 6 + docker/Dockerfile | 2 +- docker/all-in-one/Dockerfile.all-in-one | 2 +- fga/Taskfile.yaml | 22 +- fga/generate/main.go | 496 + fga/model/automation/assessments.fga | 126 + fga/model/automation/directory.fga | 80 + fga/model/automation/integrations.fga | 61 + fga/model/automation/jobs.fga | 57 + fga/model/automation/notifications.fga | 60 + fga/model/automation/workflows.fga | 126 + fga/model/base/conditions.fga | 25 + fga/model/base/core.fga | 36 + fga/model/base/export.fga | 9 + fga/model/base/file.fga | 33 + fga/model/base/groups.fga | 26 + fga/model/base/note.fga | 43 + fga/model/base/organization.fga | 48 + fga/model/base/task.fga | 27 + fga/model/compliance/controls.fga | 134 + fga/model/compliance/documents.fga | 97 + fga/model/compliance/evidence.fga | 21 + fga/model/compliance/exposure.fga | 185 + fga/model/compliance/program.fga | 31 + fga/model/fga.mod | 36 + fga/model/generated/crud.fga | 547 + fga/model/helpers.go | 305 + fga/model/helpers_test.go | 47 + fga/model/{ => old}/model.fga | 0 fga/model/old/model_old.fga | 1125 + fga/model/registry/asset.fga | 21 + fga/model/registry/contact.fga | 20 + fga/model/registry/entity.fga | 21 + fga/model/registry/identity_holder.fga | 20 + fga/model/registry/platform.fga | 41 + fga/model/roles/roles.fga | 52 + .../template/object_owned_no_org_inherit.fga | 29 + .../template/object_owned_with_org_parent.fga | 37 + .../template/object_owned_with_public.fga | 37 + fga/model/template/object_with_anon_jwt.fga | 21 + fga/model/template/org_owned.fga | 30 + fga/model/template/service.fga | 20 + fga/model/trustcenter/base.fga | 206 + fga/model/trustcenter/domain.fga | 19 + fga/tests/tests.yaml | 838 +- fga/tests/tuples/_tuples.yaml | 67 +- fga/tests/tuples/assessment_responses.yaml | 6 +- fga/tests/tuples/assets.yaml | 14 +- fga/tests/tuples/campaigns.yaml | 33 +- fga/tests/tuples/controls.yaml | 18 +- fga/tests/tuples/entities.yaml | 10 +- fga/tests/tuples/evidence.yaml | 11 +- fga/tests/tuples/files.yaml | 2 +- fga/tests/tuples/findings.yaml | 27 +- fga/tests/tuples/groups.yaml | 4 +- fga/tests/tuples/identity_holders.yaml | 13 +- fga/tests/tuples/notes.yaml | 11 +- fga/tests/tuples/organizations.yaml | 2 +- fga/tests/tuples/platforms.yaml | 10 +- fga/tests/tuples/policies.yaml | 21 +- fga/tests/tuples/procedures.yaml | 14 +- fga/tests/tuples/programs.yaml | 4 +- fga/tests/tuples/remediations.yaml | 21 +- fga/tests/tuples/risks.yaml | 37 + fga/tests/tuples/scans.yaml | 26 +- fga/tests/tuples/standards.yaml | 2 +- fga/tests/tuples/tasks.yaml | 11 +- fga/tests/tuples/trust_center.yaml | 4 +- fga/tests/tuples/trust_center_doc.yaml | 32 +- .../tuples/trust_center_subprocessor.yaml | 2 +- fga/tests/tuples/vulnerabilities.yaml | 25 +- fga/tests/tuples/workflows.yaml | 17 +- internal/controls/trustcenter.go | 43 +- internal/ent/authzgenerated/accessmap.go | 246 +- internal/ent/generated/assessment.go | 2 +- internal/ent/generated/authz_checks.go | 1 - internal/ent/generated/client.go | 1191 +- internal/ent/generated/entql.go | 27662 +++++++-------- internal/ent/generated/gql_where_input.go | 1683 +- internal/ent/generated/group/group.go | 67 +- .../generated/organization/organization.go | 3114 +- internal/ent/generated/organization/where.go | 1901 +- internal/ent/generated/organization_create.go | 3698 +- internal/ent/generated/organization_update.go | 27992 +++++++++++----- .../generated/orgmembership/orgmembership.go | 2 +- .../programmembership/programmembership.go | 2 +- .../workflowproposal/workflowproposal.go | 3 +- .../ent/generated/workflowproposal_query.go | 7 + .../ent/historygenerated/assessmenthistory.go | 2 +- .../ent/historygenerated/migrate/schema.go | 4 +- .../orgmembershiphistory.go | 2 +- .../programmembershiphistory.go | 2 +- internal/ent/hooks/apitoken.go | 129 +- internal/ent/hooks/authzmutationhelpers.go | 45 +- internal/ent/hooks/errors.go | 2 + internal/ent/hooks/group.go | 19 +- internal/ent/hooks/invite.go | 1 + internal/ent/hooks/objectownedtuples.go | 12 +- internal/ent/hooks/organization.go | 13 +- internal/ent/hooks/orgmembers.go | 1 + internal/ent/hooks/orgownedtuples.go | 42 +- internal/ent/hooks/program.go | 29 - internal/ent/hooks/tools_test.go | 7 +- internal/ent/hooks/trustcenter.go | 2 +- internal/ent/hooks/tuples.go | 2 +- internal/ent/interceptors/filter.go | 61 +- internal/ent/privacy/policy/base.go | 5 + internal/ent/privacy/policy/checks.go | 117 +- internal/ent/privacy/rule/group.go | 91 +- internal/ent/privacy/rule/invite.go | 20 +- internal/ent/privacy/rule/organization.go | 13 +- internal/ent/privacy/rule/orgowner.go | 242 + internal/ent/privacy/rule/scopes.go | 166 + internal/ent/privacy/rule/scopes_test.go | 32 + internal/ent/privacy/rule/trustcenter.go | 39 +- internal/ent/privacy/utils/utils.go | 8 + internal/ent/schema/actionplan.go | 2 + internal/ent/schema/apitoken.go | 1 + internal/ent/schema/assessment.go | 16 +- internal/ent/schema/assessment_response.go | 2 +- internal/ent/schema/asset.go | 2 +- internal/ent/schema/campaign.go | 1 - internal/ent/schema/contact.go | 1 + internal/ent/schema/control.go | 2 +- internal/ent/schema/controlimplementation.go | 1 - internal/ent/schema/controlobjective.go | 5 +- internal/ent/schema/customtypeenum.go | 1 + internal/ent/schema/directoryaccount.go | 2 +- internal/ent/schema/emailtemplate.go | 2 +- internal/ent/schema/entity.go | 2 +- internal/ent/schema/entitytype.go | 2 +- internal/ent/schema/export.go | 2 +- internal/ent/schema/file.go | 3 +- internal/ent/schema/finding.go | 1 - internal/ent/schema/identity_holder.go | 2 +- internal/ent/schema/internalpolicy.go | 2 +- internal/ent/schema/mixin_createacess.go | 77 +- internal/ent/schema/mixin_objectowned.go | 30 +- internal/ent/schema/mixin_orgowned.go | 87 +- internal/ent/schema/narrative.go | 2 +- internal/ent/schema/notificationtemplate.go | 1 + internal/ent/schema/orgmembership.go | 4 +- internal/ent/schema/platform.go | 2 +- internal/ent/schema/procedure.go | 2 +- internal/ent/schema/programmembership.go | 3 +- internal/ent/schema/remediation.go | 1 - internal/ent/schema/review.go | 1 - internal/ent/schema/scan.go | 1 - internal/ent/schema/scheduledjob.go | 2 +- internal/ent/schema/subprocessor.go | 4 +- internal/ent/schema/subscriber.go | 1 + internal/ent/schema/tagdefinition.go | 1 + internal/ent/schema/template.go | 2 +- internal/ent/schema/trustcenter.go | 4 +- internal/ent/schema/trustcentersetting.go | 6 +- internal/ent/schema/user.go | 1 + internal/ent/schema/usersetting.go | 4 +- internal/ent/schema/vulnerability.go | 1 - internal/ent/schema/workflowassignment.go | 2 +- .../ent/schema/workflowassignmenttarget.go | 5 +- internal/ent/schema/workflowdefinition.go | 1 - internal/ent/schema/workflowevent.go | 6 +- internal/ent/schema/workflowinstance.go | 2 +- internal/ent/schema/workflowobjectref.go | 2 +- internal/ent/schema/workflowproposal.go | 10 + internal/entdb/client.go | 4 +- internal/graphapi/apitoken_test.go | 224 +- internal/graphapi/assessment_test.go | 116 +- internal/graphapi/assessmentresponse_test.go | 148 +- internal/graphapi/asset_test.go | 76 +- .../campaign_with_targets_integration_test.go | 18 +- internal/graphapi/clientschema/schema.graphql | 3125 +- internal/graphapi/contact_test.go | 98 +- internal/graphapi/control_clone.go | 9 + internal/graphapi/control_test.go | 500 +- .../graphapi/controlimplementation_test.go | 155 +- internal/graphapi/controlobjective_test.go | 133 +- internal/graphapi/customdomain_test.go | 215 +- internal/graphapi/customtypeenums_test.go | 156 +- internal/graphapi/dnsverification_test.go | 102 +- internal/graphapi/emailtemplate_test.go | 62 +- internal/graphapi/entity_test.go | 81 +- internal/graphapi/entitytype_test.go | 52 +- internal/graphapi/evidence_test.go | 283 +- internal/graphapi/export_test.go | 70 +- internal/graphapi/file_test.go | 76 +- internal/graphapi/group_test.go | 231 +- internal/graphapi/groupmembers_test.go | 100 +- .../historygenerated/root_.generated.go | 5 +- .../graphapi/historyschema/schema.graphql | 5 +- internal/graphapi/identity_holder_test.go | 80 +- internal/graphapi/identity_resolution_test.go | 54 +- internal/graphapi/integration_test.go | 73 +- .../internalpolicy_statusapproval_test.go | 66 +- internal/graphapi/internalpolicy_test.go | 228 +- internal/graphapi/invite_test.go | 128 +- .../jobrunner_registration_token_test.go | 28 +- internal/graphapi/jobrunner_test.go | 41 +- internal/graphapi/jobrunnertoken_test.go | 10 +- internal/graphapi/jobtemplate_test.go | 78 +- internal/graphapi/mappabledomain_test.go | 113 +- internal/graphapi/mappedcontrol_test.go | 154 +- internal/graphapi/models_test.go | 43 +- internal/graphapi/narrative_test.go | 128 +- internal/graphapi/notes_test.go | 86 +- internal/graphapi/notification_test.go | 14 +- internal/graphapi/onboarding_test.go | 2 + internal/graphapi/organization_test.go | 179 +- internal/graphapi/orgmembers_test.go | 143 +- internal/graphapi/orgtransfer_test.go | 32 +- internal/graphapi/personalaccesstoken_test.go | 62 +- internal/graphapi/platform_test.go | 92 +- internal/graphapi/procedure_test.go | 148 +- internal/graphapi/program_test.go | 242 +- internal/graphapi/programextended_test.go | 42 +- internal/graphapi/programmembers_test.go | 52 +- internal/graphapi/query/trustcenter.graphql | 1005 +- internal/graphapi/review_test.go | 128 +- internal/graphapi/risk_test.go | 223 +- internal/graphapi/scheduledjob_test.go | 166 +- internal/graphapi/schema/ent.graphql | 3125 +- internal/graphapi/schemahistory/ent.graphql | 5 +- internal/graphapi/search_test.go | 14 +- internal/graphapi/seed_test.go | 172 +- internal/graphapi/sladefinition_test.go | 70 +- internal/graphapi/standard_test.go | 164 +- internal/graphapi/subcontrol_test.go | 126 +- internal/graphapi/subprocessor_test.go | 129 +- internal/graphapi/subscriber_test.go | 90 +- internal/graphapi/subscription_test.go | 2 +- internal/graphapi/tagdefinition_test.go | 94 +- internal/graphapi/task_test.go | 268 +- internal/graphapi/template_test.go | 78 +- internal/graphapi/testclient/graphclient.go | 183 +- internal/graphapi/tfasetting_test.go | 71 +- internal/graphapi/tools_test.go | 19 +- internal/graphapi/tools_trustcenter_test.go | 163 +- internal/graphapi/trustcenter_test.go | 481 +- .../graphapi/trustcentercompliance_test.go | 215 +- internal/graphapi/trustcenterdoc_test.go | 467 +- internal/graphapi/trustcenterdomain_test.go | 43 +- internal/graphapi/trustcenterentity_test.go | 137 +- internal/graphapi/trustcenterfaq_test.go | 242 +- internal/graphapi/trustcenterhelpers.go | 27 +- internal/graphapi/trustcenternda_test.go | 85 +- .../graphapi/trustcenterndarequest_test.go | 307 +- internal/graphapi/trustcentersetting_test.go | 163 +- .../graphapi/trustcentersubprocessor_test.go | 290 +- .../trustcenterwatermarkconfig.resolvers.go | 22 +- .../trustcenterwatermarkconfig_test.go | 65 +- internal/graphapi/user_test.go | 50 +- internal/graphapi/usersetting_test.go | 4 +- internal/graphapi/vendorscoring_test.go | 114 +- .../graphapi/vulnerability_extended_test.go | 2 + internal/graphapi/webauthn_test.go | 14 +- .../workflow_graphql_integration_test.go | 13 + .../graphapi/workflow_integration_test.go | 4 + .../workflow_resolvers_extended_test.go | 4 + internal/graphapi/workflow_validators_test.go | 22 +- .../httpserve/handlers/accountaccess_test.go | 3 +- .../handlers/integration_types_test.go | 6 - internal/httpserve/handlers/tools_test.go | 6 +- internal/testutils/client.go | 11 +- internal/testutils/fga.go | 1 + internal/workflows/engine/tools_test.go | 7 +- jsonschema/api-docs.md | 38 +- jsonschema/core.config.json | 39 + pkg/gala/test_helpers_test.go | 1 + 277 files changed, 60843 insertions(+), 31502 deletions(-) create mode 100644 cli/cmd/apitokens/scopes.go create mode 100644 fga/generate/main.go create mode 100644 fga/model/automation/assessments.fga create mode 100644 fga/model/automation/directory.fga create mode 100644 fga/model/automation/integrations.fga create mode 100644 fga/model/automation/jobs.fga create mode 100644 fga/model/automation/notifications.fga create mode 100644 fga/model/automation/workflows.fga create mode 100644 fga/model/base/conditions.fga create mode 100644 fga/model/base/core.fga create mode 100644 fga/model/base/export.fga create mode 100644 fga/model/base/file.fga create mode 100644 fga/model/base/groups.fga create mode 100644 fga/model/base/note.fga create mode 100644 fga/model/base/organization.fga create mode 100644 fga/model/base/task.fga create mode 100644 fga/model/compliance/controls.fga create mode 100644 fga/model/compliance/documents.fga create mode 100644 fga/model/compliance/evidence.fga create mode 100644 fga/model/compliance/exposure.fga create mode 100644 fga/model/compliance/program.fga create mode 100644 fga/model/fga.mod create mode 100644 fga/model/generated/crud.fga create mode 100644 fga/model/helpers.go create mode 100644 fga/model/helpers_test.go rename fga/model/{ => old}/model.fga (100%) create mode 100644 fga/model/old/model_old.fga create mode 100644 fga/model/registry/asset.fga create mode 100644 fga/model/registry/contact.fga create mode 100644 fga/model/registry/entity.fga create mode 100644 fga/model/registry/identity_holder.fga create mode 100644 fga/model/registry/platform.fga create mode 100644 fga/model/roles/roles.fga create mode 100644 fga/model/template/object_owned_no_org_inherit.fga create mode 100644 fga/model/template/object_owned_with_org_parent.fga create mode 100644 fga/model/template/object_owned_with_public.fga create mode 100644 fga/model/template/object_with_anon_jwt.fga create mode 100644 fga/model/template/org_owned.fga create mode 100644 fga/model/template/service.fga create mode 100644 fga/model/trustcenter/base.fga create mode 100644 fga/model/trustcenter/domain.fga create mode 100644 fga/tests/tuples/risks.yaml create mode 100644 internal/ent/privacy/rule/orgowner.go create mode 100644 internal/ent/privacy/rule/scopes.go create mode 100644 internal/ent/privacy/rule/scopes_test.go diff --git a/README.md b/README.md index 371a41034c..4cc474ba8b 100644 --- a/README.md +++ b/README.md @@ -192,9 +192,11 @@ These are also created automatically when you setup the test user using `task cl ### OpenFGA Playground You can load up a local openFGA environment with the compose setup in this -repository; `task fga:up` - this will launch an interactive playground where you +repository; `task docker:fga:up` - this will launch an interactive playground where you can model permissions model(s) or changes to the models +If you have issues with CORS + loopback error, see this [issue](https://github.com/openfga/openfga/issues/338#issuecomment-3511304207) on openfga for a workaround. + ### Creating a new Schema To ease the effort required to add additional schemas into the system a diff --git a/Taskfile.yaml b/Taskfile.yaml index f78edf0982..8c259c4489 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -27,7 +27,7 @@ includes: env: ATLAS_POSTGRES_DB_URI: "postgres:17-alpine" TEST_DB_URL: "docker://postgres:17-alpine" - TEST_DB_CONTAINER_EXPIRY: "5" # in minutes + TEST_DB_CONTAINER_EXPIRY: "20" # in minutes TEST_FGA_URL: "localhost:8080" ENV: config # go build @@ -69,6 +69,7 @@ tasks: deps: - task: generate:core - task: generate:catalog:smart + - task: fga:generate cmds: - task: generate:openapi:smart - task: tidy @@ -258,7 +259,7 @@ tasks: desc: runs golangci-lint, the most annoying opinionated linter ever, for CI ## do not use --fix in CI cmds: - - golangci-lint run --config=.golangci.yaml --verbose --concurrency 8 --verbose + - golangci-lint run --config=.golangci.yaml --verbose --verbose go:lint:local: desc: runs all the ci linter tasks in parallel for local linting equivalent to ci @@ -271,20 +272,20 @@ tasks: silent: true desc: runs golangci-lint only on the graphapi package for CI, excluding generated code cmds: - - golangci-lint run --config=.golangci.yaml --verbose --concurrency 8 $(go list ./... | grep internal/graphapi | grep -v generated | sed 's|github.com/theopenlane/core[^/]*/||' | sed 's|^|./|') + - golangci-lint run --config=.golangci.yaml --verbose $(go list ./... | grep internal/graphapi | grep -v generated | sed 's|github.com/theopenlane/core[^/]*/||' | sed 's|^|./|') go:lint:ci:handlers: silent: true desc: runs golangci-lint only on the httpserve handlers package for CI cmds: - - golangci-lint run --config=.golangci.yaml --verbose --concurrency 8 --verbose ./internal/httpserve/handlers/... + - golangci-lint run --config=.golangci.yaml --verbose --verbose ./internal/httpserve/handlers/... go:lint:ci:no-api: silent: true desc: runs golangci-lint on all packages except graphapi and handlers for CI cmds: - | - golangci-lint run --config=.golangci.yaml --verbose --concurrency 8 $( + golangci-lint run --config=.golangci.yaml --verbose $( go list ./... \ | grep -v /internal/graphapi \ | grep -v /internal/httpserve/handlers \ @@ -363,7 +364,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:graph'] cmds: - - go run gotest.tools/gotestsum@latest --junitfile junit-graph.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/graphapi/" --format-hide-empty-pkg --format-icons hivis --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-graph.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-graph.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/graphapi/" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-graph.out -tags test go:testsum:ci:handlers: desc: runs tests only graph tests using gotestsum for CI diff --git a/cli/cmd/apitokens/create.go b/cli/cmd/apitokens/create.go index 3bb3219421..d5a0e0e87b 100644 --- a/cli/cmd/apitokens/create.go +++ b/cli/cmd/apitokens/create.go @@ -28,7 +28,7 @@ func init() { createCmd.Flags().StringP("name", "n", "", "name of the api token token") createCmd.Flags().StringP("description", "d", "", "description of the api token") createCmd.Flags().DurationP("expiration", "e", 0, "duration of the api token to be valid, leave empty to never expire") - createCmd.Flags().StringSlice("scopes", []string{"read", "write"}, "scopes to associate with the api token") + createCmd.Flags().StringSlice("scopes", []string{"can_view", "can_edit"}, "scopes to associate with the api token"+scopeFlagConfig()) } // createValidation validates the required fields for the command diff --git a/cli/cmd/apitokens/scopes.go b/cli/cmd/apitokens/scopes.go new file mode 100644 index 0000000000..f9d264df0b --- /dev/null +++ b/cli/cmd/apitokens/scopes.go @@ -0,0 +1,36 @@ +//go:build cli + +package apitokens + +import ( + "fmt" + "sort" + "strings" + + fgamodel "github.com/theopenlane/core/fga/model" +) + +// scopeFlagConfig returns a description suffix listing available scopes. +func scopeFlagConfig() string { + scopes, err := fgamodel.RelationsForService() + if err != nil { + panic(fmt.Sprintf("failed to load service scopes: %v", err)) + } + + desc := fmt.Sprintf(" (available: %s)", strings.Join(scopes, ", ")) + + aliases := fgamodel.ScopeAliases() + if len(aliases) > 0 { + aliasPairs := make([]string, 0, len(aliases)) + + for alias, relation := range aliases { + aliasPairs = append(aliasPairs, fmt.Sprintf("%s->%s", alias, relation)) + } + + sort.Strings(aliasPairs) + + desc = fmt.Sprintf("%s; aliases: %s", desc, strings.Join(aliasPairs, ", ")) + } + + return desc +} diff --git a/common/enums/role.go b/common/enums/role.go index 75dd8834f5..0259d11d39 100644 --- a/common/enums/role.go +++ b/common/enums/role.go @@ -6,18 +6,20 @@ import "io" type Role string var ( - RoleOwner Role = "OWNER" - RoleAdmin Role = "ADMIN" - RoleMember Role = "MEMBER" - RoleUser Role = "USER" - RoleInvalid Role = "INVALID" + RoleOwner Role = "OWNER" + RoleAdmin Role = "ADMIN" + RoleSuperAdmin Role = "SUPER_ADMIN" + RoleMember Role = "MEMBER" + RoleAuditor Role = "AUDITOR" + RoleUser Role = "USER" + RoleInvalid Role = "INVALID" ) // roleSchemaValues are the values exposed to ent schemas. var roleSchemaValues = []Role{RoleAdmin, RoleMember} // roleParseValues are all values accepted by ToRole. -var roleParseValues = []Role{RoleOwner, RoleAdmin, RoleMember, RoleUser} +var roleParseValues = []Role{RoleOwner, RoleAdmin, RoleSuperAdmin, RoleMember, RoleAuditor, RoleUser} // Values returns a slice of strings that represents all the possible values of the Role enum. // Possible default values are "ADMIN", "MEMBER" diff --git a/config/.env.example b/config/.env.example index e81f99260b..185f1222a1 100644 --- a/config/.env.example +++ b/config/.env.example @@ -141,6 +141,8 @@ CORE_AUTHZ_CREDENTIALS_AUDIENCE="" CORE_AUTHZ_CREDENTIALS_ISSUER="" CORE_AUTHZ_CREDENTIALS_SCOPES="" CORE_AUTHZ_MAXBATCHWRITESIZE="100" +CORE_AUTHZ_DISABLEPARENTCONTEXT="false" +CORE_AUTHZ_PARENTCONTEXTSKIPKINDS="" CORE_DB_DEBUG="false" CORE_DB_DATABASENAME="openlane" CORE_DB_DRIVERNAME="pgx" diff --git a/config/config-dev.example.yaml b/config/config-dev.example.yaml index fc7950d432..29a2bf3f3f 100644 --- a/config/config-dev.example.yaml +++ b/config/config-dev.example.yaml @@ -96,6 +96,16 @@ authz: createnewmodel: true credentials: apitoken: "QKwHEmWX99RnFh28eSRJ3GWlfb2FQkL7toh1GJpzch1mMkVeMg" + parentcontextconditions: + - kind: group + name: public_group + context: + public: false + + parentcontextskipkinds: + - organization + - user + - system # session settings sessions: diff --git a/config/config.example.yaml b/config/config.example.yaml index ef424f048c..72dae70882 100644 --- a/config/config.example.yaml +++ b/config/config.example.yaml @@ -71,12 +71,15 @@ authz: clientsecret: "" issuer: "" scopes: "" + disableparentcontext: false enabled: true hosturl: https://authz.theopenlane.io maxbatchwritesize: 100 modelfile: fga/model/model.fga modelid: "" modulefile: "" + parentcontextconditions: null + parentcontextskipkinds: null storeid: "" storename: openlane cloudflare: diff --git a/config/configmap-config-file.yaml b/config/configmap-config-file.yaml index 529962ccae..5e39fd0d2a 100644 --- a/config/configmap-config-file.yaml +++ b/config/configmap-config-file.yaml @@ -597,6 +597,19 @@ data: {{- if .Values.openlane.coreConfiguration.authz.maxbatchwritesize }} maxbatchwritesize: {{ .Values.openlane.coreConfiguration.authz.maxbatchwritesize }} {{- end }} + {{- if .Values.openlane.coreConfiguration.authz.disableparentcontext }} + disableparentcontext: {{ .Values.openlane.coreConfiguration.authz.disableparentcontext }} + {{- end }} + {{- $sliceValue := (.Values.openlane.coreConfiguration.authz.parentcontextskipkinds | default (list)) }} + {{- if gt (len $sliceValue) 0 }} + parentcontextskipkinds: + {{- toYaml $sliceValue | nindent 8 }} + {{- end }} + {{- $sliceValue := (.Values.openlane.coreConfiguration.authz.parentcontextconditions | default (list)) }} + {{- if gt (len $sliceValue) 0 }} + parentcontextconditions: + {{- toYaml $sliceValue | nindent 8 }} + {{- end }} {{- end }} {{- if .Values.openlane.coreConfiguration.db }} db: diff --git a/config/helm-values.yaml b/config/helm-values.yaml index b28f33eef2..46964dc18c 100644 --- a/config/helm-values.yaml +++ b/config/helm-values.yaml @@ -306,6 +306,12 @@ coreConfiguration: scopes: "" # @schema type:string # -- maximum number of writes per batch in a transaction maxbatchwritesize: 100 # @schema type:integer; default:100 + # -- disables the automatic addition of parent context tuples + disableparentcontext: false # @schema type:boolean; default:false + # -- entity kind names that should not have parent context tuples added + parentcontextskipkinds: [] + # -- relationship conditions to apply on parent context tuples per entity kind + parentcontextconditions: [] # -- DB contains the database configuration for the ent client db: # -- debug enables printing the debug database logs diff --git a/docker/Dockerfile b/docker/Dockerfile index b0f8ae35cd..dbe9fbdbeb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,7 +7,7 @@ USER 65532:65532 COPY core /bin/core # Copy default model into image -COPY fga/model/model.fga fga/model/model.fga +COPY fga/model/ fga/model/ # Run the web service on container startup. ENTRYPOINT [ "/bin/core" ] diff --git a/docker/all-in-one/Dockerfile.all-in-one b/docker/all-in-one/Dockerfile.all-in-one index a72856d552..54e21de84a 100644 --- a/docker/all-in-one/Dockerfile.all-in-one +++ b/docker/all-in-one/Dockerfile.all-in-one @@ -24,7 +24,7 @@ COPY --from=redis:7.4.9 /usr/local/bin/redis-server /bin/redis-server COPY --from=openfga/openfga:v1.15.1 /openfga /bin/openfga # Copy default model into image -COPY fga/model/model.fga fga/model/model.fga +COPY fga/model/ fga/model/ COPY --from=ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.49 /ko-app/grpc-health-probe /bin/grpc_health_probe diff --git a/fga/Taskfile.yaml b/fga/Taskfile.yaml index ce0eb2af75..c0bf1107f7 100644 --- a/fga/Taskfile.yaml +++ b/fga/Taskfile.yaml @@ -11,16 +11,34 @@ tasks: create: desc: creates a new fga store with the testdata model cmds: - - fga store create --name "core dev" --model model/model.fga --api-token={{ .FGA_API_TOKEN }} + - fga store create --name "core dev" --model model/fga.mod --api-token={{ .FGA_API_TOKEN }} + + generate: + desc: generates the organization level crud definitions based on the schema + dir: ../ + cmds: + - go run fga/generate/main.go + + validate: + desc: validates the fga model file + silent: true + cmds: + - | + result=$(fga model validate --file model/fga.mod) + if [ "$(echo "$result" | jq .is_valid)" != "true" ]; then + echo "Model validation failed:" + echo "$result" | jq .error + exit 1 + fi test: desc: runs the fga model tests cmds: + - task: validate - fga model test --tests tests/tests.yaml tuple:write: desc: writes test tuples to the fga store - dir: vars: TUPLES: sh: find tests/tuples -type f -name '*.yaml' -print diff --git a/fga/generate/main.go b/fga/generate/main.go new file mode 100644 index 0000000000..4bdbcb249d --- /dev/null +++ b/fga/generate/main.go @@ -0,0 +1,496 @@ +//go:build fgagenerate + +package main + +import ( + "bytes" + "cmp" + "flag" + "fmt" + "go/ast" + "go/parser" + "go/token" + "log" + "os" + "path/filepath" + "slices" + "strings" + + "github.com/samber/lo" + "github.com/stoewer/go-strcase" +) + +// parentObjectMap is used to add additional object types to the parent type +// for example, having edit to a group should also allow edit access to the group settings and group membership, but these are not separate schemas in ent, so they would not be picked up by the generator without this map +var parentObjectMap = map[string][]string{ + "group_setting": {"group"}, + "group_membership": {"group"}, + "organization_setting": {"organization"}, + "org_membership": {"organization"}, + "program_membership": {"program"}, + "subcontrol": {"control"}, + "control_implementation": {"control"}, + "control_objective": {"control"}, + "user_setting": {"user"}, +} + +// schemaInfo holds information about an ent schema that is relevant for generating FGA permissions, such as the name of the schema and whether it has create access rules defined in its Policy function. +type schemaInfo struct { + name string + canCreateAccess bool + canCreateServiceOnly bool + excludeFromGeneration bool + onlyAllowCreate bool +} + +const ( + // checkServiceCreateAccess is the name of the function in the policy that checks if the user has service-level create access + checkServiceCreateAccess = "CheckServiceCreateAccess" + // checkCreateAccess is the name of the function in the policy that checks if the user has create access (either service or user) + checkCreateAccess = "CheckCreateAccess" + // allowCreate is the name of the function in the policy that allows create access to everyone, this is used to determine if a schema should have a can_create relation defined for it with no access rules since it is open to everyone + allowCreate = "AllowCreate" + // allowForSystemAdmin is the name of the function in the policy that allows access for system admins, if a schema only has this function in its policy and no other access rules, we will exclude it from generation since it does not have any organization-level access rules defined + allowForSystemAdmin = "AllowMutationIfSystemAdmin" + // allowForSystemAdminQuery is the name of the function in the policy that allows query access for system admins, if a schema only has this function in its policy and no other access rules, we will exclude it from generation since it does not have any organization-level access rules defined + allowForSystemAdminQuery = "AllowQueryIfSystemAdmin" + // fullAccessRelation is the name of the relation for org owners and super admins + fullAccessRelation = "full_access" + // ownerRelation is the name of the relation for only organization owner + ownerRelation = "owner" +) + +// this generator looks at all the ent schemas and their policy functions to determine the organization-level CRUD access for each schema and generates a crud.fga file that defines the appropriate relations for each schema based on that access. This allows us to have a consistent set of permissions for each schema in FGA that are automatically generated based on the presence of certain rules in the ent policies, which reduces the likelihood of human error in defining permissions and ensures that all schemas have a consistent permission structure in FGA. +func main() { + var ( + schemaDir = flag.String("schema-dir", "internal/ent/schema", "path to ent schema directory") + rolesFile = flag.String("roles-file", "fga/model/roles/roles.fga", "path to FGA roles file for parsing additional CRUD access annotations") + outFile = flag.String("out", "fga/model/generated/crud.fga", "output FGA file") + ) + flag.Parse() + + types, err := findAllSchemas(*schemaDir) + if err != nil { + log.Fatalf("finding schemas: %v", err) + } + + roles := parseRoleAnnotations(*rolesFile) + roles.addInheritedRoles() + + var buf bytes.Buffer + + // add headers to the generated file + buf.WriteString("// Code generated by gen-fga-org-crud; DO NOT EDIT.\n\n") + buf.WriteString("module base\n") + buf.WriteString("extend type organization\n") + buf.WriteString(" relations\n") + + for i, typeName := range types { + fgaType := strcase.SnakeCase(typeName.name) + + canViewRelations := []string{} + if !typeName.onlyAllowCreate { + canViewRelations = append(canViewRelations, fmt.Sprintf("can_edit_%s", fgaType)) + } + + canEditRelations := []string{fmt.Sprintf("can_delete_%s", fgaType)} + canDeleteRelations := []string{} + creatorRelations := []string{fmt.Sprintf("%s_creator", fgaType)} + + canViewRelations = append(canViewRelations, roles.crudRoles[fgaType]...) + canEditRelations = append(canEditRelations, roles.crudRoles[fgaType]...) + canDeleteRelations = append(canDeleteRelations, roles.crudRoles[fgaType]...) + creatorRelations = append(creatorRelations, roles.crudRoles[fgaType]...) + + canViewRelations = append(canViewRelations, roles.viewRoles[fgaType]...) + + if additionalRelations, ok := parentObjectMap[fgaType]; ok { + for _, r := range additionalRelations { + canViewRelations = append(canViewRelations, fmt.Sprintf("can_view_%s", r)) + canEditRelations = append(canEditRelations, fmt.Sprintf("can_edit_%s", r)) + canDeleteRelations = append(canDeleteRelations, fmt.Sprintf("can_delete_%s", r)) + creatorRelations = append(creatorRelations, fmt.Sprintf("%s_creator", r)) + } + } + + canEditRelations = append(canEditRelations, fullAccessRelation) + canViewRelations = append(canViewRelations, fullAccessRelation) + + // only org owners can delete the organization + if !strings.EqualFold(fgaType, "organization") { + canDeleteRelations = append(canDeleteRelations, fullAccessRelation) + } else { + canDeleteRelations = append(canDeleteRelations, ownerRelation) + } + + // sort the relations to ensure consistent output + slices.Sort(canViewRelations) + slices.Sort(canEditRelations) + slices.Sort(canDeleteRelations) + slices.Sort(creatorRelations) + + buf.WriteString(fmt.Sprintf(" define can_view_%s: [service, user, group#member] or %s\n", fgaType, strings.Join(canViewRelations, " or "))) + + if !typeName.onlyAllowCreate { + buf.WriteString(fmt.Sprintf(" define can_edit_%s: [service, user, group#member] or %s\n", fgaType, strings.Join(canEditRelations, " or "))) + if len(canDeleteRelations) > 0 { + + buf.WriteString(fmt.Sprintf(" define can_delete_%s: [service, user, group#member] or %s\n", fgaType, strings.Join(canDeleteRelations, " or "))) + } else { + buf.WriteString(fmt.Sprintf(" define can_delete_%s: [service, user, group#member]\n", fgaType)) + } + } + + if typeName.canCreateAccess { + buf.WriteString(fmt.Sprintf(" define %s_creator: [group#member]\n", fgaType)) + } + + var createExpr []string + if typeName.canCreateAccess { + // add access for org level can_edit and can_edit_object for the object, this allows api tokens to create objects if they have "write" access to the object type. + createExpr = append(createExpr, "can_edit") + + if !typeName.onlyAllowCreate { + createExpr = append(createExpr, fmt.Sprintf("can_edit_%s", fgaType)) + } + + createExpr = append(createExpr, fmt.Sprintf("%s_creator", fgaType)) + } + + createExpr = append(createExpr, roles.createRoles[fgaType]...) + createExpr = append(createExpr, roles.crudRoles[fgaType]...) + + if typeName.canCreateServiceOnly && len(createExpr) == 0 { + createExpr = append(createExpr, "[service]") + } + + if len(createExpr) > 0 { + buf.WriteString(fmt.Sprintf(" define can_create_%s: %s\n", fgaType, strings.Join(createExpr, " or "))) + } + + if i < len(types)-1 { + buf.WriteString("\n") + } + } + + if err := os.MkdirAll(filepath.Dir(*outFile), 0o755); err != nil { + log.Fatalf("creating output dir: %v", err) + } + if err := os.WriteFile(*outFile, buf.Bytes(), 0o644); err != nil { + log.Fatalf("writing output file: %v", err) + } + log.Printf("generated %s with %d type(s)", *outFile, len(types)) +} + +type roleInfo struct { + viewRoles map[string][]string + crudRoles map[string][]string + inheritRoles map[string][]string + createRoles map[string][]string +} + +const ( + crudAnnotation = "# @crud:" + viewAnnotation = "# @view:" + inheritAnnotation = "# @inherit:" + createAnnotation = "# @create:" +) + +// parseRoleAnnotations parses relevant annotations and role line from roles/roles.fga to determine which objects to add the roles to +func parseRoleAnnotations(rolesFile string) roleInfo { + data, err := os.ReadFile(rolesFile) + if err != nil { + log.Fatalf("reading roles file: %v", err) + } + + lines := strings.Split(string(data), "\n") + + crudMap := make(map[string][]string) + viewMap := make(map[string][]string) + inheritMap := make(map[string][]string) + createMap := make(map[string][]string) + + var pendingCrud, pendingView, pendingInherit, pendingCreate []string + + isSeparator := func(c rune) bool { + return c == ',' || c == ';' || c == ' ' + } + for _, line := range lines { + line = strings.TrimSpace(line) + if strings.HasPrefix(line, crudAnnotation) { + pendingCrud = strings.FieldsFunc(strings.TrimPrefix(line, crudAnnotation), isSeparator) + } + if strings.HasPrefix(line, viewAnnotation) { + pendingView = strings.FieldsFunc(strings.TrimPrefix(line, viewAnnotation), isSeparator) + } + if strings.HasPrefix(line, inheritAnnotation) { + pendingInherit = strings.FieldsFunc(strings.TrimPrefix(line, inheritAnnotation), isSeparator) + } + if strings.HasPrefix(line, createAnnotation) { + pendingCreate = strings.FieldsFunc(strings.TrimPrefix(line, createAnnotation), isSeparator) + } + + if strings.HasPrefix(line, "define ") { + parts := strings.Fields(line) + if len(parts) > 1 { + role := strings.TrimSuffix(parts[1], ":") + + for _, obj := range pendingCrud { + crudMap[obj] = append(crudMap[obj], role) + } + + for _, obj := range pendingView { + viewMap[obj] = append(viewMap[obj], role) + } + + for _, in := range pendingInherit { + inheritMap[role] = append(inheritMap[role], in) + } + + for _, obj := range pendingCreate { + createMap[obj] = append(createMap[obj], role) + + } + } + + // reset pending annotations after processing a role definition + pendingCrud = nil + pendingView = nil + pendingInherit = nil + pendingCreate = nil + } + } + + return roleInfo{ + crudRoles: crudMap, + viewRoles: viewMap, + inheritRoles: inheritMap, + createRoles: createMap, + } +} + +// addInheritedRoles adds roles to objects based on the inherit annotations, so if role A inherits role B, and role B has access to edit a group, then role A should also have access to edit the group, even if it is not explicitly defined in the annotations for role A +func (r *roleInfo) addInheritedRoles() { + for role, inherited := range r.inheritRoles { + for _, in := range inherited { + for obj := range r.crudRoles { + for _, rr := range r.crudRoles[obj] { + if rr == in { + r.crudRoles[obj] = append(r.crudRoles[obj], role) + break + } + } + } + + for obj := range r.viewRoles { + for _, rr := range r.viewRoles[obj] { + if rr == in { + r.viewRoles[obj] = append(r.viewRoles[obj], role) + break + } + } + } + + for obj := range r.createRoles { + for _, rr := range r.createRoles[obj] { + if rr == in { + r.createRoles[obj] = append(r.createRoles[obj], role) + break + } + } + } + } + } + + // deduplicate roles for each object + for obj := range r.crudRoles { + r.crudRoles[obj] = lo.Uniq(r.crudRoles[obj]) + } + + for obj := range r.viewRoles { + r.viewRoles[obj] = lo.Uniq(r.viewRoles[obj]) + } + + for obj := range r.createRoles { + r.createRoles[obj] = lo.Uniq(r.createRoles[obj]) + } +} + +// findAllSchemas looks for all checks in the ent schemas directory in order to get all schemas +// and determine the organization level CRUD access for each schema based on the presence of CheckCreateAccess and CheckServiceCreateAccess in the Policy function for each schema. +func findAllSchemas(schemaDir string) ([]schemaInfo, error) { + entries, err := goFilesInDir(schemaDir) + if err != nil { + return nil, fmt.Errorf("reading schema directory: %w", err) + } + + log.Printf("Checking all %d schemas", len(entries)) + + schemas := []schemaInfo{} + + for _, file := range entries { + fset := token.NewFileSet() + parsedFile, err := parser.ParseFile(fset, file, nil, parser.ParseComments) + if err != nil { + return nil, fmt.Errorf("parsing file %s: %w", file, err) + } + + schema := schemaInfo{} + + // not all schemas have policies, but they all should have the Name function which we can use to get the name of the schema and use that as the object type in FGA + for _, decl := range parsedFile.Decls { + fn, ok := decl.(*ast.FuncDecl) + if !ok { + continue + } + + if fn.Name == nil || fn.Name.Name != "Name" { + continue + } + + recvName, ok := receiverTypeName(fn) + if !ok { + continue + } + + schema.name = recvName + + break + } + + // if the schema has a Policy function, we can check for the presence of CheckCreateAccess and CheckServiceCreateAccess to determine the create access level for the schema + for _, decl := range parsedFile.Decls { + fn, ok := decl.(*ast.FuncDecl) + if !ok { + continue + } + + if fn.Name == nil || fn.Name.Name != "Policy" { + continue + } + + if fn.Body == nil { + continue + } + + schema.functionContainsCheckCreateAccess(fn.Body) + } + + if schema.excludeFromGeneration { + fmt.Println("excluding schema from generation due to only having system admin access:", schema.name) + } + + if schema.name != "" && !schema.excludeFromGeneration { + schemas = append(schemas, schema) + } + } + + slices.SortFunc(schemas, func(a, b schemaInfo) int { + return cmp.Compare(a.name, b.name) + }) + + return schemas, nil +} + +func goFilesInDir(dir string) ([]string, error) { + entries, err := os.ReadDir(dir) + if err != nil { + return nil, err + } + + var files []string + for _, e := range entries { + if e.IsDir() { + continue + } + + if filepath.Ext(e.Name()) == ".go" && !strings.HasSuffix(e.Name(), "_test.go") { + files = append(files, filepath.Join(dir, e.Name())) + } + } + + return files, nil +} + +func receiverTypeName(fn *ast.FuncDecl) (string, bool) { + if fn.Recv == nil || len(fn.Recv.List) != 1 { + return "", false + } + + t := fn.Recv.List[0].Type + switch rt := t.(type) { + case *ast.Ident: + return rt.Name, true + case *ast.StarExpr: + if id, ok := rt.X.(*ast.Ident); ok { + return id.Name, true + } + } + + return "", false +} + +func (s *schemaInfo) functionContainsCheckCreateAccess(body *ast.BlockStmt) { + hasSystemAdminPolicy := false + alwaysAllowCreate := false + countPolicy := 0 + ast.Inspect(body, func(n ast.Node) bool { + if n == nil { + return false + } + + call, ok := n.(*ast.CallExpr) + if !ok { + return true + } + + sel, ok := call.Fun.(*ast.SelectorExpr) + if !ok { + return true + } + + pkgIdent, ok := sel.X.(*ast.Ident) + if !ok { + return true + } + + if (pkgIdent.Name != "policy" && pkgIdent.Name != "rule") || sel.Sel == nil { + return true + } + + currentIsAdmin := false + switch sel.Sel.Name { + case checkServiceCreateAccess: + s.canCreateServiceOnly = true + s.canCreateAccess = false + case checkCreateAccess: + s.canCreateServiceOnly = false + s.canCreateAccess = true + case allowCreate: + alwaysAllowCreate = true + s.canCreateAccess = true + case allowForSystemAdmin: + hasSystemAdminPolicy = true + currentIsAdmin = true + } + + // if the function is not the top level "New Policy or an "With" function (e.g. WithMutationRules), update the count + // this is to ensure we exclude anything that is just a system admin allowed mutation + if !strings.HasPrefix(sel.Sel.Name, "NewPolicy") && !strings.HasPrefix(sel.Sel.Name, "With") && !currentIsAdmin && sel.Sel.Name != allowForSystemAdminQuery { + countPolicy++ + } + + return true + }) + + // do not generate permissions for schemas that only have system admin access since they do not have any organization-level access rules defined + if countPolicy == 0 && hasSystemAdminPolicy { + s.excludeFromGeneration = true + } + + // if there is only a create policy and no edit, and include admin only relations, this should be allowed to create but skip crud edit + // and delete tuples + if countPolicy == 1 && hasSystemAdminPolicy && (s.canCreateAccess || s.canCreateServiceOnly || alwaysAllowCreate) { + s.onlyAllowCreate = true + } +} diff --git a/fga/model/automation/assessments.fga b/fga/model/automation/assessments.fga new file mode 100644 index 0000000000..2b8faba928 --- /dev/null +++ b/fga/model/automation/assessments.fga @@ -0,0 +1,126 @@ +module automation + +# templates (this encompasses things like questionnaires or jsonschemas) and permissions are granted +# based on the the organization level access or parent objects such as trust centers. +type template + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_template from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_template from parent_context or can_view from parent + define parent_context: [organization] + define parent: [trust_center] + +# document_data is the json data that is associated to a template +# access to the document_data is inherited from the template +type document_data + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [template, user] + +# assessments are viewable by organization admin+, by can_edit_assessment, or inherited from the parent objects such as campaigns. They are not viewable by org members (view only) access by default +type assessment + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or owner or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent_context or audit_log_viewer from parent) and can_view + + define owner: [user, group#member] + define delegate: [user, group#member] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_assessment from parent_context or can_edit from parent + define parent_viewer: can_view_assessment from parent_context or can_view from parent + define parent_context: [organization] + define parent: [campaign] + +# assessment_response permissions is exclusively based on the parents, it is not inherited from the organization to prevent +# users that should not have access to responses from seeing all responses +type assessment_response + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer or response_owner + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # the user who filled out the assessment response - they can view their own response + define response_owner: [user] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [assessment, campaign] + +# campaign, similar to assessments, are viewable by organization admin+, by can_edit_campaign or inherited from the parent objects such as campaigns. They are not viewable by org members (view only) access by default +type campaign + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_campaign from parent_context + define parent_viewer: can_view_campaign from parent_context + define parent_context: [organization] + +# campaign targets permission are based on their parent campaign +type campaign_target + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [campaign] diff --git a/fga/model/automation/directory.fga b/fga/model/automation/directory.fga new file mode 100644 index 0000000000..65fc27fd38 --- /dev/null +++ b/fga/model/automation/directory.fga @@ -0,0 +1,80 @@ +module automation + + +# directory sync run history is service-driven but visible through the parent integration +type directory_sync_run + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent_context or can_view_directory_sync_run from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, platform] + +# directory accounts are internal snapshots of user identities from external systems +type directory_account + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent_context or can_view_directory_account from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, directory_sync_run, identity_holder, platform] + +# directory groups are internal snapshots of group identities from external systems +type directory_group + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent_context or can_view_directory_account from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, directory_sync_run, platform] + + +# directory memberships are service-managed joins between directory accounts and groups +type directory_membership + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent_context or can_view_directory_account from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, directory_sync_run, directory_account, directory_group, platform] + diff --git a/fga/model/automation/integrations.fga b/fga/model/automation/integrations.fga new file mode 100644 index 0000000000..ad6727310d --- /dev/null +++ b/fga/model/automation/integrations.fga @@ -0,0 +1,61 @@ +module automation + +# integrations represent configured org connections to providers +type integration + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_integration from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_integration from parent_context or can_view from parent + define parent_context: [organization] + define parent: [platform] + + +# webhooks configured for integrations +type integration_webhook + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_integration_webhook from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_integration_webhook from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration] + + +# integration run history is service-driven but visible to org members via parent +type integration_run + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [integration] \ No newline at end of file diff --git a/fga/model/automation/jobs.fga b/fga/model/automation/jobs.fga new file mode 100644 index 0000000000..c7af3d354f --- /dev/null +++ b/fga/model/automation/jobs.fga @@ -0,0 +1,57 @@ +module automation + +type job_runner + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_job_runner from parent_context + define parent_viewer: can_view from parent_context or can_view_job_runner from parent_context + define parent_context: [organization] + +type job_template + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or system_admin from system + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + define system: [system] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_job_template from parent_context + define parent_viewer: can_view from parent_context or can_view_job_template from parent_context + define parent_context: [organization] + +type scheduled_job + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_scheduled_job from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_scheduled_job from parent_context or can_view from parent + define parent_context: [organization] + define parent: [control, subcontrol] \ No newline at end of file diff --git a/fga/model/automation/notifications.fga b/fga/model/automation/notifications.fga new file mode 100644 index 0000000000..05c81c5d76 --- /dev/null +++ b/fga/model/automation/notifications.fga @@ -0,0 +1,60 @@ +module automation + +# email branding holds visual configuration for branded emails +type email_branding + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_email_branding from parent_context + define parent_viewer: can_view from parent_context or can_view_email_branding from parent_context + define parent_context: [organization] + +# email templates support branded outbound messages (system or org-owned) +type email_template + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_email_template from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_email_template from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, workflow_definition, workflow_instance] + +# notification templates drive in-app and external channel messaging +type notification_template + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_notification_template from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_notification_template from parent_context or can_view from parent + define parent_context: [organization] + define parent: [integration, workflow_definition, workflow_instance] diff --git a/fga/model/automation/workflows.fga b/fga/model/automation/workflows.fga new file mode 100644 index 0000000000..0c59491919 --- /dev/null +++ b/fga/model/automation/workflows.fga @@ -0,0 +1,126 @@ +module automation + +# workflow definitions can be created by org admins+ or based on org roles + group based access +type workflow_definition + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_workflow_definition from parent_context + define parent_viewer: can_view_workflow_definition from parent_context + define parent_context: [organization] + +# workflow_instance and related types are system-driven +# users can view through parent object relations but only services can create/edit/delete +type workflow_instance + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, identity_holder, platform, workflow_definition] + +type workflow_assignment + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [workflow_instance] + +type workflow_object_ref + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [workflow_instance, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, directory_account, directory_group, directory_membership, identity_holder, platform] + +type workflow_assignment_target + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [workflow_assignment] + + +type workflow_event + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [workflow_instance] + + +type workflow_proposal + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent + define parent: [workflow_object_ref] diff --git a/fga/model/base/conditions.fga b/fga/model/base/conditions.fga new file mode 100644 index 0000000000..175a989cd7 --- /dev/null +++ b/fga/model/base/conditions.fga @@ -0,0 +1,25 @@ +module base + +# this file contains condition based checks used within fga models + +# Public groups access; affects the view access of users in the organization +condition public_group(public: bool) { + public == true +} + +# User IP address is within the CIDR range of the company network +condition in_company_network(user_ip: ipaddress, cidr: string) { + user_ip.in_cidr(cidr) +} + +# Time based access to resources +condition time_based_grant(current_time: timestamp, grant_time: timestamp, grant_duration: duration) { + current_time < grant_time + grant_duration +} + +# user email domain within the allowed list +# if there are no restrictions, or a check is done without a domain, it will pass +# if the email domain is in the allowed list, it will pass +condition email_domains_allowed(email_domain: string, allowed_domains: list) { + allowed_domains == [] || email_domain == "" || email_domain in allowed_domains +} diff --git a/fga/model/base/core.fga b/fga/model/base/core.fga new file mode 100644 index 0000000000..72202995d8 --- /dev/null +++ b/fga/model/base/core.fga @@ -0,0 +1,36 @@ +module base + +# this file contains all top level definitions used through all fga models + +# user is a human with access to the system +# the _self relation is used for when the user is the parent of another object +type user + relations + define _self: [user] + define can_view: _self + define can_edit: _self + define can_delete: _self + +# service is not associated to a particular user, but instead to an organization +# the _self relation is used for when the service is the parent of another object +type service + relations + define _self: [service] + define can_view: _self + define can_edit: _self + define can_delete: _self + +# search access for the admin search +type search + relations + define admin: [user] + +# system admin roles are used to define the highest level of access in the system +type system + relations + define system_admin: [user, service] + +type feature + relations + define enabled: [organization] + diff --git a/fga/model/base/export.fga b/fga/model/base/export.fga new file mode 100644 index 0000000000..c8e356a03d --- /dev/null +++ b/fga/model/base/export.fga @@ -0,0 +1,9 @@ +module base + +type export + relations + define can_view: [user, service] or can_edit + define can_edit: [service] or system_admin from system + define can_delete: system_admin from system + define system: [system] + diff --git a/fga/model/base/file.fga b/fga/model/base/file.fga new file mode 100644 index 0000000000..fa1fcb2b8e --- /dev/null +++ b/fga/model/base/file.fga @@ -0,0 +1,33 @@ +module base + +# files have their permissions defined by the parent object (like a control or a procedure), users with access to the parent object will have access to the file +# user:* and service:* are used for public files (e.g. trust center logos/favicons etc) that are available to all users +type file + relations + # base permissions - these should all be derived permissions - but this is a special case with files, that in order to ensure backwards compatibility on things like user avatars + org avatars, we have them under `can_view + define can_view: [user:*, service:*, user, service, organization#member] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: deleter + + # tuple based permissions for edit, view, blocked, and audit log viewing + define deleter: parent_deleter or tc_doc_editor + define editor: [user, service, group#member] or parent_editor or deleter + define viewer: [user, service, group#member] or editor or parent_viewer or tc_doc_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # special handling for trust center documents - only NDA signed users can view files + define tc_doc_viewer: nda_signed from tc_doc_parent or member from tc_doc_parent + define tc_doc_editor: can_edit from tc_doc_parent + define tc_doc_deleter: can_delete from tc_doc_parent + + # parent permissions derived based on `crud` permissions or parents + define parent_deleter: full_access from parent_context or can_delete from parent + define parent_editor: can_edit from parent_context or can_edit_file from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_file from parent_context or can_view from parent + define parent_context: [organization] + # NOTE: organization is generally not considered a parent, but for backwards compatibility with files, we are keeping this here - do not replicate on other models + define parent: [user, program, organization, group, control, procedure, template, document_data, contact, internal_policy, narrative, evidence, note, trust_center_setting, subprocessor, export, trust_center_watermark_config, standard,trust_center_entity, entity, identity_holder, trust_center_subprocessor, scan, platform, review] + define tc_doc_parent: [trust_center_doc] + + diff --git a/fga/model/base/groups.fga b/fga/model/base/groups.fga new file mode 100644 index 0000000000..f756582ae2 --- /dev/null +++ b/fga/model/base/groups.fga @@ -0,0 +1,26 @@ +module base + +# groups are a subset of an organization that can be used to define more fine-grained access to objects +# users must be members of the organization to be members of a group +# groups are all visible to all members of the organization, unless they are blocked +# groups can only be edited by admins of the group or the parent organization owner +# groups are commonly used to assigned view/edit permissions to other objects within the organization for group members +type group + relations + # base permissions - these should all be derived permissions + define can_view: viewer + define can_edit: editor + define can_delete: editor + + # base roles for the group + define admin: [user] + define member: [user] or admin + define editor: admin or parent_editor or parent_admin + define viewer: member or parent_viewer + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit_group from parent_context + define parent_viewer: can_view from parent_context or can_view_group from parent_context + define parent_admin: full_access from parent_context + define parent_context: [organization with public_group] \ No newline at end of file diff --git a/fga/model/base/note.fga b/fga/model/base/note.fga new file mode 100644 index 0000000000..3ab9058957 --- /dev/null +++ b/fga/model/base/note.fga @@ -0,0 +1,43 @@ +module base + + +# notes are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. +# do not inherit edit permissions from parent here like we do on other objects, only the original user (and org owner) can edit +type note + relations + # base permissions - these should all be derived permissions + define can_view: viewer + define can_edit: editor or can_delete + define can_delete: editor + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: owner or parent_editor + define viewer: editor or parent_viewer + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + define owner : [user, service] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: full_access from parent_context + define parent_viewer: full_access from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, procedure, internal_policy, subcontrol, control_objective, task, trust_center, risk, evidence, discussion, trust_center_faq] + +# similar to notes, discussions are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. +type discussion + relations + # base permissions - these should all be derived permissions + define can_view: viewer + define can_edit: editor or can_delete + define can_delete: editor + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: owner or parent_editor + define viewer: editor or parent_viewer + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + define owner : [user, service] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: full_access from parent_context + define parent_viewer: full_access from parent_context or can_view from parent + define parent_context: [organization] + define parent: [control, procedure, internal_policy, subcontrol, control_objective, risk, evidence] \ No newline at end of file diff --git a/fga/model/base/organization.fga b/fga/model/base/organization.fga new file mode 100644 index 0000000000..091ca9f3ce --- /dev/null +++ b/fga/model/base/organization.fga @@ -0,0 +1,48 @@ +module base + +# organization is the highest object access +# objects can inherit access from the organization +# or define their own specific access +type organization + relations + # organization policies to restrict access + define access: [organization#member with email_domains_allowed] + # organization owners an super admins have full access to all objects within the organization + define full_access: super_admin or owner + + # main permission sets based on roles + define can_delete: [service] or owner or can_delete from parent + define can_edit: [service] or admin or super_admin or owner or can_edit from parent + + # view access of the organization + # includes all members, admins, and owners + # also allows users to be given time based access to the organization (e.g. support access) + define can_view: [service, user with time_based_grant] or (member and access) or (admin and access) or can_edit or can_view from parent + + # additional fine-grained permissions + # allow owner and assigned users to view audit logs + define audit_log_viewer: ([user, service] or full_access or audit_log_viewer from parent) and can_view + + define user_in_context: [user] + + # Additional organization level permission definitions for api tokens to view and edit themselves + define can_view_service: [service] + define can_edit_service: [service] + + # Additional permissions for api tokens to use search + define can_view_search: [service] + + # allow members to invite other members + define can_invite_members: can_view or can_edit or can_invite_members from parent or can_edit_organization + + # only allow users with edit access to the org to invite other admins + define can_invite_admins: can_edit or can_invite_admins from parent or can_edit_organization + + # only allow super admins and owners to invite other super admins and owners + define can_invite_super_admins: full_access or can_invite_super_admins from parent + + # auditors can be invited by org admins and above + define can_invite_auditors: can_edit or can_invite_auditors from parent + + # parent inheritance + define parent: [organization] \ No newline at end of file diff --git a/fga/model/base/task.fga b/fga/model/base/task.fga new file mode 100644 index 0000000000..76adecf823 --- /dev/null +++ b/fga/model/base/task.fga @@ -0,0 +1,27 @@ +module base + +# tasks can be created by any user and permissions are assigned to the creator (assigner) and the assignee +# tasks can also be associated with a parent object (like a control or a procedure) and inherit access from that object +type task + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: deleter + + # tuple based permissions for edit, view, blocked, and audit log viewing + define deleter: assigner or parent_editor or parent_deleter + define editor: [user, service, group#member] or parent_editor or assignee or assigner + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + define assignee: [user] + define assigner: [user] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit_task from parent_context or can_edit from parent + define parent_viewer: can_view_task from parent_context or can_view from parent + define parent_deleter: can_delete_task from parent_context + define parent_context: [organization] + define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, risk, task, asset, platform, identity_holder, scan, action_plan] \ No newline at end of file diff --git a/fga/model/compliance/controls.fga b/fga/model/compliance/controls.fga new file mode 100644 index 0000000000..3aaa820d28 --- /dev/null +++ b/fga/model/compliance/controls.fga @@ -0,0 +1,134 @@ +module compliance + +type standard + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_standard from parent_context + define parent_viewer: can_view from parent_context or can_view_standard from parent_context or can_view from associated_with + define parent_context: [organization] + + # special case for trust center + define associated_with: [trust_center] + +# control permissions can be inherited from parent objects or based on the organization in context +type control + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or owner or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # owner is the group of users that are responsible for the control, they will have full access to the control + define owner: [group#member] + # delegate is a group of users that are given temporary access to the control, they will have edit but not delete access + define delegate: [group#member] + define system: [system] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_control from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_control from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, standard] + +# subcontrols are associated with an organization but do not inherit access from the organization +# subcontrols inherit access from the their parent control(s) +type subcontrol + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or owner or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # owner is the group of users that are responsible for the control, they will have full access to the control + define owner: [group#member] + # delegate is a group of users that are given temporary access to the control, they will have edit but not delete access + define delegate: [group#member] + define system: [system] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_subcontrol from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_subcontrol from parent_context or can_view from parent + define parent_context: [organization] + define parent: [control] + +# control objectives inherit access from the associated program or from associated groups +type control_objective + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_control_objective from parent_context or can_edit from parent + define parent_viewer: can_view_control_objective from parent_context or can_view from parent + define parent_context: [organization] + define parent: [control, subcontrol] + +# control implementations inherit access from the associated controls or from associated groups +type control_implementation + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_control_implementation from parent_context or can_edit from parent + define parent_viewer: can_view_control_implementation from parent_context or can_view from parent + define parent_context: [organization] + define parent: [control, subcontrol] + +# mapped controls inherit access based on the parent_context organization +type mapped_control + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_mapped_control from parent_context + define parent_viewer: can_view from parent_context or can_view_mapped_control from parent_context + define parent_context: [organization] \ No newline at end of file diff --git a/fga/model/compliance/documents.fga b/fga/model/compliance/documents.fga new file mode 100644 index 0000000000..c393fb234d --- /dev/null +++ b/fga/model/compliance/documents.fga @@ -0,0 +1,97 @@ +module compliance + +# narratives are associated with an organization but do not inherit access from the organization for base view + edit +type narrative + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit_narrative from parent_context or can_edit from parent + define parent_viewer: can_view_narrative from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control] + +# action plans are associated with an organization but do not inherit access from the organization for base view + edit +type action_plan + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit_action_plan from parent_context or can_edit from parent + define parent_viewer: can_view_action_plan from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, review] + + +# policies are always assigned to an organization and by default all org members can view but NOT edit +# edit of policies is restricted to owner, super admin, and those given specific acesss via `policy_manager` or `can_edit_internal_policy` roles +type internal_policy + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or approver or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent_context or audit_log_viewer from parent) and can_view + + # approver is the group of users that are responsible for the approval of changes to the policy, they will have full access to the policy + define approver: [group#member] + # delegate is a group of users that are given temporary access to the policy, they will have edit but not delete access + define delegate: [group#member] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_internal_policy from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_internal_policy from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program] + + +# procedures are always assigned to an organization and by default all org members can view but NOT edit +# edit of policies is restricted to owner, super admin, and those given specific access via `policy_manager` or `can_edit_procedure` roles +type procedure + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or approver or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent_context or audit_log_viewer from parent) and can_view + + # approver is the group of users that are responsible for the approval of changes to the policy, they will have full access to the policy + define approver: [group#member] + # delegate is a group of users that are given temporary access to the policy, they will have edit but not delete access + define delegate: [group#member] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_procedure from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_procedure from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program] \ No newline at end of file diff --git a/fga/model/compliance/evidence.fga b/fga/model/compliance/evidence.fga new file mode 100644 index 0000000000..d799606cfe --- /dev/null +++ b/fga/model/compliance/evidence.fga @@ -0,0 +1,21 @@ +module compliance + +# evidence permissions can be inherited from parent objects or based on the organization in context, evidence is not given view access in the organization by default but contains parents that can be assigned the permission +type evidence + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_evidence from parent_context or can_edit from parent + define parent_viewer: can_view_evidence from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, procedure, internal_policy, subcontrol, control_objective, task, platform, scan] \ No newline at end of file diff --git a/fga/model/compliance/exposure.fga b/fga/model/compliance/exposure.fga new file mode 100644 index 0000000000..b00ed4f1d3 --- /dev/null +++ b/fga/model/compliance/exposure.fga @@ -0,0 +1,185 @@ +module compliance + +# risks permissions can be inherited from parent objects or based on the organization in context +type risk + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # stakeholder is the group of users that are responsible for the risk, they will have full access to the risk + define stakeholder: [group#member] + # delegate is a group of users that are given temporary access to the risk, they will have edit but not delete access + define delegate: [group#member] + + # determine edit vs view + define editor: [user, service, group#member] or parent_editor or stakeholder or delegate + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_risk from parent_context or can_edit from parent + define parent_viewer: can_view_risk from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, control_objective, subcontrol, procedure, internal_policy] + +# findings permissions can be inherited from parent objects or based on the organization in context +type finding + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_finding from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_finding from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, subcontrol, risk, asset, entity, scan, directory_account, identity_holder] + +# vulnerabilities permissions can be inherited from parent objects or based on the organization in context +type vulnerability + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_view_vulnerability from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_edit_vulnerability from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, subcontrol, risk, asset, entity, scan] + +# review permissions can be inherited from parent objects or based on the organization in context +type review + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_review from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_review from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program, control, subcontrol, risk, action_plan, finding, vulnerability, asset, entity, task] + +# remediation permissions can be inherited from parent objects or based on the organization in context +type remediation + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_remediation from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_remediation from parent_context or can_view from parent + define parent_context: [organization] + define parent: [action_plan, program, control, subcontrol, risk, finding, vulnerability, asset, entity, task] + +# scan permissions can be inherited from parent objects or based on the organization in context +type scan + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_scan from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_scan from parent_context or can_view from parent + define parent_context: [organization] + define parent: [platform, asset] + +type vendor_scoring_config + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_vendor_risk_score from parent_context + define parent_viewer: can_view from parent_context or can_view_vendor_risk_score from parent_context + define parent_context: [organization] + +type vendor_risk_score + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_vendor_risk_score from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_vendor_risk_score from parent_context or can_view from parent + define parent_context: [organization] + define parent: [vendor_scoring_config, entity, assessment_response] + + +type sla_definition + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_sla_definition from parent_context + define parent_viewer: can_view from parent_context or can_view_sla_definition from parent_context + define parent_context: [organization] \ No newline at end of file diff --git a/fga/model/compliance/program.fga b/fga/model/compliance/program.fga new file mode 100644 index 0000000000..406cc184c7 --- /dev/null +++ b/fga/model/compliance/program.fga @@ -0,0 +1,31 @@ +module compliance + +type program + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: deletor + + # tuple based permissions for edit, view, blocked, and audit log viewing + define deletor: admin or parent_editor + define editor: [user, service, group#member] or admin or parent_editor + define viewer: [user, service, group#member] or member or editor or parent_viewer or auditor + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # roles in the program membership + define admin: ([user] or full_access from parent_context) + define member: [user] + define auditor: [user] + + # allow members to invite other members + define can_invite_members: member or can_edit + # only allow users with edit access to the org to invite other admins + define can_invite_admins: can_edit + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit_program from parent_context + define parent_viewer: can_edit from parent_context or can_view_program from parent_context + define parent_context: [organization] + diff --git a/fga/model/fga.mod b/fga/model/fga.mod new file mode 100644 index 0000000000..16b4cd461b --- /dev/null +++ b/fga/model/fga.mod @@ -0,0 +1,36 @@ +schema: '1.2' +contents: + - base/core.fga + - base/conditions.fga + - base/organization.fga + - base/groups.fga + - base/export.fga + - base/file.fga + - base/note.fga + - base/task.fga + + - generated/crud.fga + + - compliance/controls.fga + - compliance/program.fga + - compliance/documents.fga + - compliance/evidence.fga + - compliance/exposure.fga + + - automation/assessments.fga + - automation/directory.fga + - automation/integrations.fga + - automation/jobs.fga + - automation/notifications.fga + - automation/workflows.fga + + - registry/asset.fga + - registry/contact.fga + - registry/entity.fga + - registry/identity_holder.fga + - registry/platform.fga + + - trustcenter/base.fga + - trustcenter/domain.fga + + - roles/roles.fga diff --git a/fga/model/generated/crud.fga b/fga/model/generated/crud.fga new file mode 100644 index 0000000000..56af1a23c6 --- /dev/null +++ b/fga/model/generated/crud.fga @@ -0,0 +1,547 @@ +// Code generated by gen-fga-org-crud; DO NOT EDIT. + +module base +extend type organization + relations + define can_view_api_token: [service, user, group#member] or can_edit_api_token or full_access + define can_edit_api_token: [service, user, group#member] or can_delete_api_token or full_access + define can_delete_api_token: [service, user, group#member] or full_access + define api_token_creator: [group#member] + define can_create_api_token: can_edit or can_edit_api_token or api_token_creator + + define can_view_action_plan: [service, user, group#member] or can_edit_action_plan or can_manage_compliance or can_manage_risk or full_access + define can_edit_action_plan: [service, user, group#member] or can_delete_action_plan or can_manage_compliance or can_manage_risk or full_access + define can_delete_action_plan: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define action_plan_creator: [group#member] + define can_create_action_plan: can_edit or can_edit_action_plan or action_plan_creator or can_manage_risk or can_manage_compliance + + define can_view_assessment: [service, user, group#member] or can_edit_assessment or can_manage_campaigns or full_access + define can_edit_assessment: [service, user, group#member] or can_delete_assessment or can_manage_campaigns or full_access + define can_delete_assessment: [service, user, group#member] or can_manage_campaigns or full_access + define assessment_creator: [group#member] + define can_create_assessment: can_edit or can_edit_assessment or assessment_creator or can_manage_campaigns + + define can_view_assessment_response: [service, user, group#member] or can_edit_assessment_response or can_manage_campaigns or full_access + define can_edit_assessment_response: [service, user, group#member] or can_delete_assessment_response or full_access + define can_delete_assessment_response: [service, user, group#member] or full_access + + define can_view_asset: [service, user, group#member] or can_edit_asset or can_manage_compliance or can_manage_registry or full_access + define can_edit_asset: [service, user, group#member] or can_delete_asset or can_manage_compliance or can_manage_registry or full_access + define can_delete_asset: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define asset_creator: [group#member] + define can_create_asset: can_edit or can_edit_asset or asset_creator or can_manage_registry or can_manage_compliance + + define can_view_campaign: [service, user, group#member] or can_edit_campaign or can_manage_campaigns or full_access + define can_edit_campaign: [service, user, group#member] or can_delete_campaign or can_manage_campaigns or full_access + define can_delete_campaign: [service, user, group#member] or can_manage_campaigns or full_access + define campaign_creator: [group#member] + define can_create_campaign: can_edit or can_edit_campaign or campaign_creator or can_manage_campaigns + + define can_view_campaign_target: [service, user, group#member] or can_edit_campaign_target or full_access + define can_edit_campaign_target: [service, user, group#member] or can_delete_campaign_target or full_access + define can_delete_campaign_target: [service, user, group#member] or full_access + define campaign_target_creator: [group#member] + define can_create_campaign_target: can_edit or can_edit_campaign_target or campaign_target_creator + + define can_view_check_result: [service, user, group#member] or can_edit_check_result or full_access + define can_edit_check_result: [service, user, group#member] or can_delete_check_result or full_access + define can_delete_check_result: [service, user, group#member] or full_access + define check_result_creator: [group#member] + define can_create_check_result: can_edit or can_edit_check_result or check_result_creator + + define can_view_contact: [service, user, group#member] or can_edit_contact or can_manage_compliance or can_manage_registry or full_access + define can_edit_contact: [service, user, group#member] or can_delete_contact or can_manage_compliance or can_manage_registry or full_access + define can_delete_contact: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define contact_creator: [group#member] + define can_create_contact: can_edit or can_edit_contact or contact_creator or can_manage_registry or can_manage_compliance + + define can_view_control: [service, user, group#member] or auditor or can_edit_control or can_manage_compliance or full_access + define can_edit_control: [service, user, group#member] or can_delete_control or can_manage_compliance or full_access + define can_delete_control: [service, user, group#member] or can_manage_compliance or full_access + define control_creator: [group#member] + define can_create_control: can_edit or can_edit_control or control_creator or can_manage_compliance + + define can_view_control_implementation: [service, user, group#member] or can_edit_control_implementation or can_manage_compliance or can_view_control or full_access + define can_edit_control_implementation: [service, user, group#member] or can_delete_control_implementation or can_edit_control or can_manage_compliance or full_access + define can_delete_control_implementation: [service, user, group#member] or can_delete_control or can_manage_compliance or full_access + define control_implementation_creator: [group#member] + define can_create_control_implementation: can_edit or can_edit_control_implementation or control_implementation_creator or can_manage_compliance + + define can_view_control_objective: [service, user, group#member] or can_edit_control_objective or can_manage_compliance or can_view_control or full_access + define can_edit_control_objective: [service, user, group#member] or can_delete_control_objective or can_edit_control or can_manage_compliance or full_access + define can_delete_control_objective: [service, user, group#member] or can_delete_control or can_manage_compliance or full_access + define control_objective_creator: [group#member] + define can_create_control_objective: can_edit or can_edit_control_objective or control_objective_creator or can_manage_compliance + + define can_view_custom_domain: [service, user, group#member] or can_edit_custom_domain or full_access + define can_edit_custom_domain: [service, user, group#member] or can_delete_custom_domain or full_access + define can_delete_custom_domain: [service, user, group#member] or full_access + + define can_view_custom_type_enum: [service, user, group#member] or can_edit_custom_type_enum or full_access + define can_edit_custom_type_enum: [service, user, group#member] or can_delete_custom_type_enum or full_access + define can_delete_custom_type_enum: [service, user, group#member] or full_access + define custom_type_enum_creator: [group#member] + define can_create_custom_type_enum: can_edit or can_edit_custom_type_enum or custom_type_enum_creator + + define can_view_directory_account: [service, user, group#member] or can_edit_directory_account or full_access + define can_edit_directory_account: [service, user, group#member] or can_delete_directory_account or full_access + define can_delete_directory_account: [service, user, group#member] or full_access + + define can_view_directory_group: [service, user, group#member] or can_edit_directory_group or full_access + define can_edit_directory_group: [service, user, group#member] or can_delete_directory_group or full_access + define can_delete_directory_group: [service, user, group#member] or full_access + + define can_view_directory_membership: [service, user, group#member] or can_edit_directory_membership or full_access + define can_edit_directory_membership: [service, user, group#member] or can_delete_directory_membership or full_access + define can_delete_directory_membership: [service, user, group#member] or full_access + + define can_view_directory_sync_run: [service, user, group#member] or can_edit_directory_sync_run or full_access + define can_edit_directory_sync_run: [service, user, group#member] or can_delete_directory_sync_run or full_access + define can_delete_directory_sync_run: [service, user, group#member] or full_access + + define can_view_discussion: [service, user, group#member] or can_edit_discussion or full_access + define can_edit_discussion: [service, user, group#member] or can_delete_discussion or full_access + define can_delete_discussion: [service, user, group#member] or full_access + define discussion_creator: [group#member] + define can_create_discussion: can_edit or can_edit_discussion or discussion_creator or auditor + + define can_view_email_branding: [service, user, group#member] or can_edit_email_branding or can_manage_campaigns or full_access + define can_edit_email_branding: [service, user, group#member] or can_delete_email_branding or can_manage_campaigns or full_access + define can_delete_email_branding: [service, user, group#member] or can_manage_campaigns or full_access + define email_branding_creator: [group#member] + define can_create_email_branding: can_edit or can_edit_email_branding or email_branding_creator or can_manage_campaigns + + define can_view_email_template: [service, user, group#member] or can_edit_email_template or can_manage_campaigns or full_access + define can_edit_email_template: [service, user, group#member] or can_delete_email_template or can_manage_campaigns or full_access + define can_delete_email_template: [service, user, group#member] or can_manage_campaigns or full_access + define email_template_creator: [group#member] + define can_create_email_template: can_edit or can_edit_email_template or email_template_creator or can_manage_campaigns + + define can_view_email_verification_token: [service, user, group#member] or can_edit_email_verification_token or full_access + define can_edit_email_verification_token: [service, user, group#member] or can_delete_email_verification_token or full_access + define can_delete_email_verification_token: [service, user, group#member] or full_access + + define can_view_entity: [service, user, group#member] or can_edit_entity or can_manage_compliance or can_manage_registry or full_access + define can_edit_entity: [service, user, group#member] or can_delete_entity or can_manage_compliance or can_manage_registry or full_access + define can_delete_entity: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define entity_creator: [group#member] + define can_create_entity: can_edit or can_edit_entity or entity_creator or can_manage_registry or can_manage_compliance + + define can_view_entity_type: [service, user, group#member] or can_edit_entity_type or full_access + define can_edit_entity_type: [service, user, group#member] or can_delete_entity_type or full_access + define can_delete_entity_type: [service, user, group#member] or full_access + define entity_type_creator: [group#member] + define can_create_entity_type: can_edit or can_edit_entity_type or entity_type_creator + + define can_view_event: [service, user, group#member] or can_edit_event or full_access + define can_edit_event: [service, user, group#member] or can_delete_event or full_access + define can_delete_event: [service, user, group#member] or full_access + + define can_view_evidence: [service, user, group#member] or auditor or can_edit_evidence or can_manage_compliance or full_access + define can_edit_evidence: [service, user, group#member] or can_delete_evidence or can_manage_compliance or full_access + define can_delete_evidence: [service, user, group#member] or can_manage_compliance or full_access + define evidence_creator: [group#member] + define can_create_evidence: can_edit or can_edit_evidence or evidence_creator or auditor or can_manage_compliance + + define can_view_export: [service, user, group#member] or full_access + define export_creator: [group#member] + define can_create_export: can_edit or export_creator + + define can_view_file: [service, user, group#member] or can_edit_file or full_access + define can_edit_file: [service, user, group#member] or can_delete_file or full_access + define can_delete_file: [service, user, group#member] or full_access + define file_creator: [group#member] + define can_create_file: can_edit or can_edit_file or file_creator + + define can_view_file_download_token: [service, user, group#member] or can_edit_file_download_token or full_access + define can_edit_file_download_token: [service, user, group#member] or can_delete_file_download_token or full_access + define can_delete_file_download_token: [service, user, group#member] or full_access + + define can_view_finding: [service, user, group#member] or can_edit_finding or can_manage_compliance or can_manage_risk or full_access + define can_edit_finding: [service, user, group#member] or can_delete_finding or can_manage_compliance or can_manage_risk or full_access + define can_delete_finding: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define finding_creator: [group#member] + define can_create_finding: can_edit or can_edit_finding or finding_creator or can_manage_risk or can_manage_compliance + + define can_view_finding_control: [service, user, group#member] or can_edit_finding_control or full_access + define can_edit_finding_control: [service, user, group#member] or can_delete_finding_control or full_access + define can_delete_finding_control: [service, user, group#member] or full_access + + define can_view_group: [service, user, group#member] or can_edit_group or can_manage_group or full_access + define can_edit_group: [service, user, group#member] or can_delete_group or can_manage_group or full_access + define can_delete_group: [service, user, group#member] or can_manage_group or full_access + define group_creator: [group#member] + define can_create_group: can_edit or can_edit_group or group_creator or can_manage_group + + define can_view_group_membership: [service, user, group#member] or can_edit_group_membership or can_view_group or full_access + define can_edit_group_membership: [service, user, group#member] or can_delete_group_membership or can_edit_group or full_access + define can_delete_group_membership: [service, user, group#member] or can_delete_group or full_access + + define can_view_group_setting: [service, user, group#member] or can_edit_group_setting or can_view_group or full_access + define can_edit_group_setting: [service, user, group#member] or can_delete_group_setting or can_edit_group or full_access + define can_delete_group_setting: [service, user, group#member] or can_delete_group or full_access + + define can_view_hush: [service, user, group#member] or can_edit_hush or full_access + define can_edit_hush: [service, user, group#member] or can_delete_hush or full_access + define can_delete_hush: [service, user, group#member] or full_access + + define can_view_identity_holder: [service, user, group#member] or can_edit_identity_holder or can_manage_compliance or can_manage_registry or full_access + define can_edit_identity_holder: [service, user, group#member] or can_delete_identity_holder or can_manage_compliance or can_manage_registry or full_access + define can_delete_identity_holder: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define identity_holder_creator: [group#member] + define can_create_identity_holder: can_edit or can_edit_identity_holder or identity_holder_creator or can_manage_registry or can_manage_compliance + + define can_view_impersonation_event: [service, user, group#member] or can_edit_impersonation_event or full_access + define can_edit_impersonation_event: [service, user, group#member] or can_delete_impersonation_event or full_access + define can_delete_impersonation_event: [service, user, group#member] or full_access + + define can_view_integration: [service, user, group#member] or can_edit_integration or can_manage_workflows or full_access + define can_edit_integration: [service, user, group#member] or can_delete_integration or can_manage_workflows or full_access + define can_delete_integration: [service, user, group#member] or can_manage_workflows or full_access + define can_create_integration: can_manage_workflows + + define can_view_integration_run: [service, user, group#member] or can_edit_integration_run or full_access + define can_edit_integration_run: [service, user, group#member] or can_delete_integration_run or full_access + define can_delete_integration_run: [service, user, group#member] or full_access + + define can_view_integration_webhook: [service, user, group#member] or can_edit_integration_webhook or can_manage_workflows or full_access + define can_edit_integration_webhook: [service, user, group#member] or can_delete_integration_webhook or can_manage_workflows or full_access + define can_delete_integration_webhook: [service, user, group#member] or can_manage_workflows or full_access + define can_create_integration_webhook: can_manage_workflows + + define can_view_internal_policy: [service, user, group#member] or can_edit_internal_policy or can_manage_compliance or can_manage_policies or full_access + define can_edit_internal_policy: [service, user, group#member] or can_delete_internal_policy or can_manage_compliance or can_manage_policies or full_access + define can_delete_internal_policy: [service, user, group#member] or can_manage_compliance or can_manage_policies or full_access + define internal_policy_creator: [group#member] + define can_create_internal_policy: can_edit or can_edit_internal_policy or internal_policy_creator or can_manage_policies or can_manage_compliance + + define can_view_invite: [service, user, group#member] or can_edit_invite or full_access + define can_edit_invite: [service, user, group#member] or can_delete_invite or full_access + define can_delete_invite: [service, user, group#member] or full_access + + define can_view_job_runner: [service, user, group#member] or can_edit_job_runner or can_manage_workflows or full_access + define can_edit_job_runner: [service, user, group#member] or can_delete_job_runner or can_manage_workflows or full_access + define can_delete_job_runner: [service, user, group#member] or can_manage_workflows or full_access + define job_runner_creator: [group#member] + define can_create_job_runner: can_edit or can_edit_job_runner or job_runner_creator or can_manage_workflows + + define can_view_job_runner_registration_token: [service, user, group#member] or can_edit_job_runner_registration_token or full_access + define can_edit_job_runner_registration_token: [service, user, group#member] or can_delete_job_runner_registration_token or full_access + define can_delete_job_runner_registration_token: [service, user, group#member] or full_access + define job_runner_registration_token_creator: [group#member] + define can_create_job_runner_registration_token: can_edit or can_edit_job_runner_registration_token or job_runner_registration_token_creator + + define can_view_job_runner_token: [service, user, group#member] or can_edit_job_runner_token or full_access + define can_edit_job_runner_token: [service, user, group#member] or can_delete_job_runner_token or full_access + define can_delete_job_runner_token: [service, user, group#member] or full_access + define job_runner_token_creator: [group#member] + define can_create_job_runner_token: can_edit or can_edit_job_runner_token or job_runner_token_creator + + define can_view_job_template: [service, user, group#member] or can_edit_job_template or can_manage_workflows or full_access + define can_edit_job_template: [service, user, group#member] or can_delete_job_template or can_manage_workflows or full_access + define can_delete_job_template: [service, user, group#member] or can_manage_workflows or full_access + define job_template_creator: [group#member] + define can_create_job_template: can_edit or can_edit_job_template or job_template_creator or can_manage_workflows + + define can_view_mapped_control: [service, user, group#member] or can_edit_mapped_control or can_manage_compliance or full_access + define can_edit_mapped_control: [service, user, group#member] or can_delete_mapped_control or can_manage_compliance or full_access + define can_delete_mapped_control: [service, user, group#member] or can_manage_compliance or full_access + define mapped_control_creator: [group#member] + define can_create_mapped_control: can_edit or can_edit_mapped_control or mapped_control_creator or can_manage_compliance + + define can_view_narrative: [service, user, group#member] or can_edit_narrative or can_manage_compliance or full_access + define can_edit_narrative: [service, user, group#member] or can_delete_narrative or can_manage_compliance or full_access + define can_delete_narrative: [service, user, group#member] or can_manage_compliance or full_access + define narrative_creator: [group#member] + define can_create_narrative: can_edit or can_edit_narrative or narrative_creator or can_manage_compliance + + define can_view_note: [service, user, group#member] or can_edit_note or full_access + define can_edit_note: [service, user, group#member] or can_delete_note or full_access + define can_delete_note: [service, user, group#member] or full_access + define note_creator: [group#member] + define can_create_note: can_edit or can_edit_note or note_creator + + define can_view_notification: [service, user, group#member] or can_edit_notification or full_access + define can_edit_notification: [service, user, group#member] or can_delete_notification or full_access + define can_delete_notification: [service, user, group#member] or full_access + + define can_view_notification_preference: [service, user, group#member] or can_edit_notification_preference or full_access + define can_edit_notification_preference: [service, user, group#member] or can_delete_notification_preference or full_access + define can_delete_notification_preference: [service, user, group#member] or full_access + + define can_view_notification_template: [service, user, group#member] or can_edit_notification_template or can_manage_campaigns or full_access + define can_edit_notification_template: [service, user, group#member] or can_delete_notification_template or can_manage_campaigns or full_access + define can_delete_notification_template: [service, user, group#member] or can_manage_campaigns or full_access + define can_create_notification_template: can_manage_campaigns + + define can_view_onboarding: [service, user, group#member] or can_edit_onboarding or full_access + define can_edit_onboarding: [service, user, group#member] or can_delete_onboarding or full_access + define can_delete_onboarding: [service, user, group#member] or full_access + + define can_view_org_membership: [service, user, group#member] or can_edit_org_membership or can_view_organization or full_access + define can_edit_org_membership: [service, user, group#member] or can_delete_org_membership or can_edit_organization or full_access + define can_delete_org_membership: [service, user, group#member] or can_delete_organization or full_access + + define can_view_org_module: [service, user, group#member] or can_edit_org_module or full_access + define can_edit_org_module: [service, user, group#member] or can_delete_org_module or full_access + define can_delete_org_module: [service, user, group#member] or full_access + + define can_view_org_price: [service, user, group#member] or can_edit_org_price or full_access + define can_edit_org_price: [service, user, group#member] or can_delete_org_price or full_access + define can_delete_org_price: [service, user, group#member] or full_access + + define can_view_org_product: [service, user, group#member] or can_edit_org_product or full_access + define can_edit_org_product: [service, user, group#member] or can_delete_org_product or full_access + define can_delete_org_product: [service, user, group#member] or full_access + + define can_view_org_subscription: [service, user, group#member] or can_edit_org_subscription or full_access + define can_edit_org_subscription: [service, user, group#member] or can_delete_org_subscription or full_access + define can_delete_org_subscription: [service, user, group#member] or full_access + + define can_view_organization: [service, user, group#member] or can_edit_organization or full_access + define can_edit_organization: [service, user, group#member] or can_delete_organization or full_access + define can_delete_organization: [service, user, group#member] or owner + define organization_creator: [group#member] + define can_create_organization: can_edit or can_edit_organization or organization_creator + + define can_view_organization_setting: [service, user, group#member] or can_edit_organization_setting or can_view_organization or full_access + define can_edit_organization_setting: [service, user, group#member] or can_delete_organization_setting or can_edit_organization or full_access + define can_delete_organization_setting: [service, user, group#member] or can_delete_organization or full_access + + define can_view_password_reset_token: [service, user, group#member] or can_edit_password_reset_token or full_access + define can_edit_password_reset_token: [service, user, group#member] or can_delete_password_reset_token or full_access + define can_delete_password_reset_token: [service, user, group#member] or full_access + + define can_view_personal_access_token: [service, user, group#member] or can_edit_personal_access_token or full_access + define can_edit_personal_access_token: [service, user, group#member] or can_delete_personal_access_token or full_access + define can_delete_personal_access_token: [service, user, group#member] or full_access + + define can_view_platform: [service, user, group#member] or can_edit_platform or can_manage_compliance or can_manage_registry or full_access + define can_edit_platform: [service, user, group#member] or can_delete_platform or can_manage_compliance or can_manage_registry or full_access + define can_delete_platform: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define platform_creator: [group#member] + define can_create_platform: can_edit or can_edit_platform or platform_creator or can_manage_registry or can_manage_compliance + + define can_view_procedure: [service, user, group#member] or auditor or can_edit_procedure or can_manage_compliance or can_manage_policies or full_access + define can_edit_procedure: [service, user, group#member] or can_delete_procedure or can_manage_compliance or can_manage_policies or full_access + define can_delete_procedure: [service, user, group#member] or can_manage_compliance or can_manage_policies or full_access + define procedure_creator: [group#member] + define can_create_procedure: can_edit or can_edit_procedure or procedure_creator or can_manage_policies or can_manage_compliance + + define can_view_program: [service, user, group#member] or auditor or can_edit_program or can_manage_compliance or full_access + define can_edit_program: [service, user, group#member] or can_delete_program or can_manage_compliance or full_access + define can_delete_program: [service, user, group#member] or can_manage_compliance or full_access + define program_creator: [group#member] + define can_create_program: can_edit or can_edit_program or program_creator or can_manage_compliance + + define can_view_program_membership: [service, user, group#member] or can_edit_program_membership or can_view_program or full_access + define can_edit_program_membership: [service, user, group#member] or can_delete_program_membership or can_edit_program or full_access + define can_delete_program_membership: [service, user, group#member] or can_delete_program or full_access + + define can_view_remediation: [service, user, group#member] or can_edit_remediation or can_manage_compliance or can_manage_risk or full_access + define can_edit_remediation: [service, user, group#member] or can_delete_remediation or can_manage_compliance or can_manage_risk or full_access + define can_delete_remediation: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define remediation_creator: [group#member] + define can_create_remediation: can_edit or can_edit_remediation or remediation_creator or can_manage_risk or can_manage_compliance + + define can_view_review: [service, user, group#member] or auditor or can_edit_review or can_manage_compliance or can_manage_risk or full_access + define can_edit_review: [service, user, group#member] or can_delete_review or can_manage_compliance or can_manage_risk or full_access + define can_delete_review: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define review_creator: [group#member] + define can_create_review: can_edit or can_edit_review or review_creator or auditor or can_manage_risk or can_manage_compliance + + define can_view_risk: [service, user, group#member] or can_edit_risk or can_manage_compliance or can_manage_risk or full_access + define can_edit_risk: [service, user, group#member] or can_delete_risk or can_manage_compliance or can_manage_risk or full_access + define can_delete_risk: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define risk_creator: [group#member] + define can_create_risk: can_edit or can_edit_risk or risk_creator or can_manage_risk or can_manage_compliance + + define can_view_sla_definition: [service, user, group#member] or can_edit_sla_definition or full_access + define can_edit_sla_definition: [service, user, group#member] or can_delete_sla_definition or full_access + define can_delete_sla_definition: [service, user, group#member] or full_access + + define can_view_scan: [service, user, group#member] or can_edit_scan or can_manage_compliance or can_manage_risk or full_access + define can_edit_scan: [service, user, group#member] or can_delete_scan or can_manage_compliance or can_manage_risk or full_access + define can_delete_scan: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define scan_creator: [group#member] + define can_create_scan: can_edit or can_edit_scan or scan_creator or can_manage_risk or can_manage_compliance + + define can_view_scheduled_job: [service, user, group#member] or can_edit_scheduled_job or can_manage_workflows or full_access + define can_edit_scheduled_job: [service, user, group#member] or can_delete_scheduled_job or can_manage_workflows or full_access + define can_delete_scheduled_job: [service, user, group#member] or can_manage_workflows or full_access + define scheduled_job_creator: [group#member] + define can_create_scheduled_job: can_edit or can_edit_scheduled_job or scheduled_job_creator or can_manage_workflows + + define can_view_scheduled_job_run: [service, user, group#member] or can_edit_scheduled_job_run or full_access + define can_edit_scheduled_job_run: [service, user, group#member] or can_delete_scheduled_job_run or full_access + define can_delete_scheduled_job_run: [service, user, group#member] or full_access + define scheduled_job_run_creator: [group#member] + define can_create_scheduled_job_run: can_edit or can_edit_scheduled_job_run or scheduled_job_run_creator + + define can_view_standard: [service, user, group#member] or can_edit_standard or can_manage_compliance or full_access + define can_edit_standard: [service, user, group#member] or can_delete_standard or can_manage_compliance or full_access + define can_delete_standard: [service, user, group#member] or can_manage_compliance or full_access + define standard_creator: [group#member] + define can_create_standard: can_edit or can_edit_standard or standard_creator or can_manage_compliance + + define can_view_subcontrol: [service, user, group#member] or auditor or can_edit_subcontrol or can_manage_compliance or can_view_control or full_access + define can_edit_subcontrol: [service, user, group#member] or can_delete_subcontrol or can_edit_control or can_manage_compliance or full_access + define can_delete_subcontrol: [service, user, group#member] or can_delete_control or can_manage_compliance or full_access + define subcontrol_creator: [group#member] + define can_create_subcontrol: can_edit or can_edit_subcontrol or subcontrol_creator or can_manage_compliance + + define can_view_subprocessor: [service, user, group#member] or can_edit_subprocessor or full_access + define can_edit_subprocessor: [service, user, group#member] or can_delete_subprocessor or full_access + define can_delete_subprocessor: [service, user, group#member] or full_access + define subprocessor_creator: [group#member] + define can_create_subprocessor: can_edit or can_edit_subprocessor or subprocessor_creator + + define can_view_subscriber: [service, user, group#member] or can_edit_subscriber or full_access + define can_edit_subscriber: [service, user, group#member] or can_delete_subscriber or full_access + define can_delete_subscriber: [service, user, group#member] or full_access + define subscriber_creator: [group#member] + define can_create_subscriber: can_edit or can_edit_subscriber or subscriber_creator + + define can_view_system_detail: [service, user, group#member] or can_edit_system_detail or can_manage_compliance or can_manage_registry or full_access + define can_edit_system_detail: [service, user, group#member] or can_delete_system_detail or can_manage_compliance or can_manage_registry or full_access + define can_delete_system_detail: [service, user, group#member] or can_manage_compliance or can_manage_registry or full_access + define system_detail_creator: [group#member] + define can_create_system_detail: can_edit or can_edit_system_detail or system_detail_creator or can_manage_registry or can_manage_compliance + + define can_view_tfa_setting: [service, user, group#member] or can_edit_tfa_setting or full_access + define can_edit_tfa_setting: [service, user, group#member] or can_delete_tfa_setting or full_access + define can_delete_tfa_setting: [service, user, group#member] or full_access + + define can_view_tag_definition: [service, user, group#member] or can_edit_tag_definition or full_access + define can_edit_tag_definition: [service, user, group#member] or can_delete_tag_definition or full_access + define can_delete_tag_definition: [service, user, group#member] or full_access + define tag_definition_creator: [group#member] + define can_create_tag_definition: can_edit or can_edit_tag_definition or tag_definition_creator + + define can_view_task: [service, user, group#member] or can_edit_task or full_access + define can_edit_task: [service, user, group#member] or can_delete_task or full_access + define can_delete_task: [service, user, group#member] or full_access + define task_creator: [group#member] + define can_create_task: can_edit or can_edit_task or task_creator or auditor + + define can_view_template: [service, user, group#member] or can_edit_template or can_manage_campaigns or full_access + define can_edit_template: [service, user, group#member] or can_delete_template or can_manage_campaigns or full_access + define can_delete_template: [service, user, group#member] or can_manage_campaigns or full_access + define template_creator: [group#member] + define can_create_template: can_edit or can_edit_template or template_creator or can_manage_campaigns + + define can_view_trust_center: [service, user, group#member] or can_edit_trust_center or can_manage_trust_center or full_access + define can_edit_trust_center: [service, user, group#member] or can_delete_trust_center or can_manage_trust_center or full_access + define can_delete_trust_center: [service, user, group#member] or can_manage_trust_center or full_access + define can_create_trust_center: can_manage_trust_center + + define can_view_trust_center_compliance: [service, user, group#member] or can_edit_trust_center_compliance or can_manage_trust_center or full_access + define can_edit_trust_center_compliance: [service, user, group#member] or can_delete_trust_center_compliance or can_manage_trust_center or full_access + define can_delete_trust_center_compliance: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_compliance_creator: [group#member] + define can_create_trust_center_compliance: can_edit or can_edit_trust_center_compliance or trust_center_compliance_creator or can_manage_trust_center + + define can_view_trust_center_doc: [service, user, group#member] or can_edit_trust_center_doc or can_manage_trust_center or full_access + define can_edit_trust_center_doc: [service, user, group#member] or can_delete_trust_center_doc or can_manage_trust_center or full_access + define can_delete_trust_center_doc: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_doc_creator: [group#member] + define can_create_trust_center_doc: can_edit or can_edit_trust_center_doc or trust_center_doc_creator or can_manage_trust_center + + define can_view_trust_center_entity: [service, user, group#member] or can_edit_trust_center_entity or can_manage_trust_center or full_access + define can_edit_trust_center_entity: [service, user, group#member] or can_delete_trust_center_entity or can_manage_trust_center or full_access + define can_delete_trust_center_entity: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_entity_creator: [group#member] + define can_create_trust_center_entity: can_edit or can_edit_trust_center_entity or trust_center_entity_creator or can_manage_trust_center + + define can_view_trust_center_faq: [service, user, group#member] or can_edit_trust_center_faq or can_manage_trust_center or full_access + define can_edit_trust_center_faq: [service, user, group#member] or can_delete_trust_center_faq or can_manage_trust_center or full_access + define can_delete_trust_center_faq: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_faq_creator: [group#member] + define can_create_trust_center_faq: can_edit or can_edit_trust_center_faq or trust_center_faq_creator or can_manage_trust_center + + define can_view_trust_center_nda_request: [service, user, group#member] or can_edit_trust_center_nda_request or can_manage_trust_center or full_access + define can_edit_trust_center_nda_request: [service, user, group#member] or can_delete_trust_center_nda_request or can_manage_trust_center or full_access + define can_delete_trust_center_nda_request: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_nda_request_creator: [group#member] + define can_create_trust_center_nda_request: can_edit or can_edit_trust_center_nda_request or trust_center_nda_request_creator or can_manage_trust_center + + define can_view_trust_center_setting: [service, user, group#member] or can_edit_trust_center_setting or full_access + define can_edit_trust_center_setting: [service, user, group#member] or can_delete_trust_center_setting or full_access + define can_delete_trust_center_setting: [service, user, group#member] or full_access + + define can_view_trust_center_subprocessor: [service, user, group#member] or can_edit_trust_center_subprocessor or can_manage_trust_center or full_access + define can_edit_trust_center_subprocessor: [service, user, group#member] or can_delete_trust_center_subprocessor or can_manage_trust_center or full_access + define can_delete_trust_center_subprocessor: [service, user, group#member] or can_manage_trust_center or full_access + define trust_center_subprocessor_creator: [group#member] + define can_create_trust_center_subprocessor: can_edit or can_edit_trust_center_subprocessor or trust_center_subprocessor_creator or can_manage_trust_center + + define can_view_trust_center_watermark_config: [service, user, group#member] or can_edit_trust_center_watermark_config or can_manage_trust_center or full_access + define can_edit_trust_center_watermark_config: [service, user, group#member] or can_delete_trust_center_watermark_config or can_manage_trust_center or full_access + define can_delete_trust_center_watermark_config: [service, user, group#member] or can_manage_trust_center or full_access + define can_create_trust_center_watermark_config: can_manage_trust_center + + define can_view_user: [service, user, group#member] or can_edit_user or full_access + define can_edit_user: [service, user, group#member] or can_delete_user or full_access + define can_delete_user: [service, user, group#member] or full_access + define can_create_user: [service] + + define can_view_user_setting: [service, user, group#member] or can_edit_user_setting or can_view_user or full_access + define can_edit_user_setting: [service, user, group#member] or can_delete_user_setting or can_edit_user or full_access + define can_delete_user_setting: [service, user, group#member] or can_delete_user or full_access + define can_create_user_setting: [service] + + define can_view_vendor_risk_score: [service, user, group#member] or can_edit_vendor_risk_score or full_access + define can_edit_vendor_risk_score: [service, user, group#member] or can_delete_vendor_risk_score or full_access + define can_delete_vendor_risk_score: [service, user, group#member] or full_access + define vendor_risk_score_creator: [group#member] + define can_create_vendor_risk_score: can_edit or can_edit_vendor_risk_score or vendor_risk_score_creator + + define can_view_vendor_scoring_config: [service, user, group#member] or can_edit_vendor_scoring_config or full_access + define can_edit_vendor_scoring_config: [service, user, group#member] or can_delete_vendor_scoring_config or full_access + define can_delete_vendor_scoring_config: [service, user, group#member] or full_access + + define can_view_vulnerability: [service, user, group#member] or can_edit_vulnerability or can_manage_compliance or can_manage_risk or full_access + define can_edit_vulnerability: [service, user, group#member] or can_delete_vulnerability or can_manage_compliance or can_manage_risk or full_access + define can_delete_vulnerability: [service, user, group#member] or can_manage_compliance or can_manage_risk or full_access + define vulnerability_creator: [group#member] + define can_create_vulnerability: can_edit or can_edit_vulnerability or vulnerability_creator or can_manage_risk or can_manage_compliance + + define can_view_webauthn: [service, user, group#member] or can_edit_webauthn or full_access + define can_edit_webauthn: [service, user, group#member] or can_delete_webauthn or full_access + define can_delete_webauthn: [service, user, group#member] or full_access + + define can_view_workflow_assignment: [service, user, group#member] or can_edit_workflow_assignment or full_access + define can_edit_workflow_assignment: [service, user, group#member] or can_delete_workflow_assignment or full_access + define can_delete_workflow_assignment: [service, user, group#member] or full_access + define can_create_workflow_assignment: [service] + + define can_view_workflow_assignment_target: [service, user, group#member] or can_edit_workflow_assignment_target or full_access + define can_edit_workflow_assignment_target: [service, user, group#member] or can_delete_workflow_assignment_target or full_access + define can_delete_workflow_assignment_target: [service, user, group#member] or full_access + define can_create_workflow_assignment_target: [service] + + define can_view_workflow_definition: [service, user, group#member] or can_edit_workflow_definition or can_manage_workflows or full_access + define can_edit_workflow_definition: [service, user, group#member] or can_delete_workflow_definition or can_manage_workflows or full_access + define can_delete_workflow_definition: [service, user, group#member] or can_manage_workflows or full_access + define workflow_definition_creator: [group#member] + define can_create_workflow_definition: can_edit or can_edit_workflow_definition or workflow_definition_creator or can_manage_workflows + + define can_view_workflow_event: [service, user, group#member] or can_edit_workflow_event or full_access + define can_edit_workflow_event: [service, user, group#member] or can_delete_workflow_event or full_access + define can_delete_workflow_event: [service, user, group#member] or full_access + define can_create_workflow_event: [service] + + define can_view_workflow_instance: [service, user, group#member] or can_edit_workflow_instance or full_access + define can_edit_workflow_instance: [service, user, group#member] or can_delete_workflow_instance or full_access + define can_delete_workflow_instance: [service, user, group#member] or full_access + define can_create_workflow_instance: [service] + + define can_view_workflow_object_ref: [service, user, group#member] or can_edit_workflow_object_ref or full_access + define can_edit_workflow_object_ref: [service, user, group#member] or can_delete_workflow_object_ref or full_access + define can_delete_workflow_object_ref: [service, user, group#member] or full_access + define can_create_workflow_object_ref: [service] + + define can_view_workflow_proposal: [service, user, group#member] or can_edit_workflow_proposal or full_access + define can_edit_workflow_proposal: [service, user, group#member] or can_delete_workflow_proposal or full_access + define can_delete_workflow_proposal: [service, user, group#member] or full_access + define can_create_workflow_proposal: [service] diff --git a/fga/model/helpers.go b/fga/model/helpers.go new file mode 100644 index 0000000000..e47b630dde --- /dev/null +++ b/fga/model/helpers.go @@ -0,0 +1,305 @@ +package model + +import ( + _ "embed" + "encoding/json" + "log" + "maps" + "sort" + "strings" + "sync" + + openfga "github.com/openfga/go-sdk" + language "github.com/openfga/language/pkg/go/transformer" + "github.com/pkg/errors" + "google.golang.org/protobuf/encoding/protojson" +) + +const ( + // relationPartsCount is the expected number of parts when splitting a relation like "can_view_object" + relationPartsCount = 3 + // scopePartsCount is the expected number of parts when splitting a scope like "write:control" + scopePartsCount = 2 +) + +//go:embed generated/crud.fga +var embeddedCrudModel []byte + +//go:embed roles/roles.fga +var embeddedRolesModel []byte + +var ( + // CanView allows read-only access to an object + CanView = "can_view" + // CanEdit allows read and write access to an object + CanEdit = "can_edit" + // CanDelete allows deletion of an object + CanDelete = "can_delete" +) + +var ( + // Read is an alias for can_view + Read = "read" + // Write is an alias for can_edit + Write = "write" + // Delete is an alias for can_delete + Delete = "delete" +) + +var ( + aliasToRelation = map[string]string{ + "read": CanView, + "write": CanEdit, + "delete": CanDelete, + } + + crudOnce sync.Once + crudModel *openfga.AuthorizationModel + crudErr error + + rolesOnce sync.Once + rolesModel *openfga.AuthorizationModel + rolesErr error +) + +func parseAuthorizationModel(embeddedModel []byte) (*openfga.AuthorizationModel, error) { + protoModel, err := language.TransformDSLToProto(string(embeddedModel)) + if err != nil { + return nil, errors.Wrap(err, "parse fga model dsl") + } + rawJSON, err := protojson.Marshal(protoModel) + if err != nil { + return nil, errors.Wrap(err, "marshal fga model") + } + var model openfga.AuthorizationModel + if err := json.Unmarshal(rawJSON, &model); err != nil { + return nil, errors.Wrap(err, "decode fga model json") + } + return &model, nil +} + +// GetAuthorizationModel returns the parsed embedded authorization model +func GetCrudAuthorizationModel() (*openfga.AuthorizationModel, error) { + crudOnce.Do(func() { + crudModel, crudErr = parseAuthorizationModel(embeddedCrudModel) + }) + return crudModel, crudErr +} + +func GetRolesAuthorizationModel() (*openfga.AuthorizationModel, error) { + rolesOnce.Do(func() { + rolesModel, rolesErr = parseAuthorizationModel(embeddedRolesModel) + }) + return rolesModel, rolesErr +} + +// RelationsForService returns relations shaped like can__ that directly accept service subjects. +func RelationsForService() ([]string, error) { + model, err := GetCrudAuthorizationModel() + if err != nil { + return nil, err + } + + var relations []string + + for _, td := range model.GetTypeDefinitions() { + if td.Metadata == nil || td.Metadata.Relations == nil { + continue + } + + for rel := range *td.Metadata.Relations { + parts := strings.SplitN(rel, "_", relationPartsCount) + if len(parts) != relationPartsCount || parts[0] != "can" { + continue + } + + relations = append(relations, rel) + } + } + + sort.Strings(relations) + + return relations, nil +} + +// getRelations is a helper that returns relations for a given verb (e.g., "manage" or "create") shaped like can__ +func getRelations(relationType string, modelName string) ([]string, error) { + var model *openfga.AuthorizationModel + var err error + + switch modelName { + case "crud": + model, err = GetCrudAuthorizationModel() + case "role": + model, err = GetRolesAuthorizationModel() + default: + return nil, errors.Errorf("invalid model name: %s", modelName) //nolint:err113 + } + + if err != nil { + return nil, err + } + + var relations []string + + for _, td := range model.GetTypeDefinitions() { + if td.Metadata == nil || td.Metadata.Relations == nil { + continue + } + + for rel := range *td.Metadata.Relations { + parts := strings.SplitN(rel, "_", relationPartsCount) + if len(parts) == relationPartsCount && parts[0] == "can" && parts[1] == relationType { + relations = append(relations, rel) + } + } + } + + sort.Strings(relations) + + return relations, nil +} + +// roleRelations returns relations shaped like can_manage_ that indicates role management +func roleRelations() ([]string, error) { + return getRelations("manage", "role") +} + +// createRelations returns relations shaped like can_create_ that are used for group-based creation access +func createRelations() ([]string, error) { + return getRelations("create", "crud") +} + +// DefaultServiceScopeSet returns the default service scopes as a set +func DefaultServiceScopeSet() (map[string]struct{}, error) { + scopes, err := RelationsForService() + if err != nil { + return nil, err + } + + set := make(map[string]struct{}, len(scopes)) + for _, s := range scopes { + set[s] = struct{}{} + } + + return set, nil +} + +// NormalizeScope returns the relation name for a provided scope, handling common aliases +// Accepts verb:object (e.g., write:control) and simple verbs (read/write/delete) +func NormalizeScope(scope string) string { + raw := strings.TrimSpace(scope) + if raw == "" { + return "" + } + + normalized := strings.ToLower(raw) + + mapVerb := func(verb string) string { + if rel, ok := aliasToRelation[verb]; ok { + return rel + } + + return verb + } + + if parts := strings.SplitN(normalized, ":", scopePartsCount); len(parts) == scopePartsCount && parts[1] != "" { + return mapVerb(parts[0]) + "_" + parts[1] + } + + if rel := mapVerb(normalized); rel != "" { + return rel + } + + return normalized +} + +// ScopeAliases returns a copy of the supported alias mapping +func ScopeAliases() map[string]string { + aliases := make(map[string]string, len(aliasToRelation)) + maps.Copy(aliases, aliasToRelation) + + return aliases +} + +// ScopeOptions groups available scopes by object (verb mapped back via alias map) +func ScopeOptions() (map[string][]string, error) { + rels, err := RelationsForService() + if err != nil { + return nil, err + } + + relToVerb := map[string]string{} + for verb, rel := range aliasToRelation { + relToVerb[rel] = verb + } + + opts := make(map[string][]string) + + for _, rel := range rels { + parts := strings.SplitN(rel, "_", relationPartsCount) + if len(parts) != relationPartsCount || parts[0] != "can" { + continue + } + + verb, ok := relToVerb[strings.Join(parts[0:2], "_")] + if !ok { + continue + } + + obj := parts[2] + if obj == "" { + continue + } + + opts[obj] = append(opts[obj], verb) + } + + for obj := range opts { + sort.Strings(opts[obj]) + } + + return opts, nil +} + +func getRelationsOptionsForObject(rels []string) ([]string, error) { + objs := make([]string, 0, len(rels)) + for _, rel := range rels { + parts := strings.SplitN(rel, "_", relationPartsCount) + + obj := parts[2] + if obj == "" { + continue + } + + objs = append(objs, obj) + } + + sort.Strings(objs) + + return objs, nil +} + +// CreateOptions returns objects with verbs that support creation +func CreateOptions() ([]string, error) { + rels, err := createRelations() + if err != nil { + return nil, err + } + + return getRelationsOptionsForObject(rels) +} + +// RoleOptions returns objects with verbs that support roles +func RoleOptions() ([]string, error) { + rels, err := roleRelations() + if err != nil { + return nil, err + } + + if len(rels) == 0 { + log.Fatal("no relations found for role management - ensure the embedded model contains relations shaped like can_manage_") + } + + return getRelationsOptionsForObject(rels) +} diff --git a/fga/model/helpers_test.go b/fga/model/helpers_test.go new file mode 100644 index 0000000000..6f7c8fe33f --- /dev/null +++ b/fga/model/helpers_test.go @@ -0,0 +1,47 @@ +package model + +import ( + "testing" + + "gotest.tools/v3/assert" + is "gotest.tools/v3/assert/cmp" +) + +func TestRelationsForService(t *testing.T) { + rels, err := RelationsForService() + assert.NilError(t, err) + assert.Assert(t, rels != nil) + + // spot check + assert.Check(t, is.Contains(rels, "can_view_control")) + assert.Check(t, is.Contains(rels, "can_edit_control")) + assert.Check(t, is.Contains(rels, "can_view_evidence")) + assert.Check(t, is.Contains(rels, "can_edit_evidence")) + assert.Check(t, is.Contains(rels, "can_view_api_token")) + assert.Check(t, is.Contains(rels, "can_edit_api_token")) + assert.Check(t, is.Contains(rels, "can_delete_api_token")) +} + +func TestNormalizeScope(t *testing.T) { + assert.Equal(t, "can_view", NormalizeScope("read")) + assert.Equal(t, "can_edit", NormalizeScope("write")) + assert.Equal(t, "can_delete", NormalizeScope("delete")) + assert.Equal(t, "can_edit_control", NormalizeScope("write:control")) + assert.Equal(t, "can_view_evidence", NormalizeScope("read:evidence")) + assert.Equal(t, "can_view_api_token", NormalizeScope("read:api_token")) + assert.Equal(t, "can_edit_api_token", NormalizeScope("write:api_token")) +} + +func TestScopeOptions(t *testing.T) { + opts, err := ScopeOptions() + assert.NilError(t, err) + assert.Assert(t, opts != nil) + + assert.Check(t, is.Contains(opts, "organization")) + assert.Check(t, is.Contains(opts["organization"], "read")) + assert.Check(t, is.Contains(opts["organization"], "write")) + + assert.Check(t, is.Contains(opts, "control")) + assert.Check(t, is.Contains(opts["control"], "read")) + assert.Check(t, is.Contains(opts["control"], "write")) +} diff --git a/fga/model/model.fga b/fga/model/old/model.fga similarity index 100% rename from fga/model/model.fga rename to fga/model/old/model.fga diff --git a/fga/model/old/model_old.fga b/fga/model/old/model_old.fga new file mode 100644 index 0000000000..123700c881 --- /dev/null +++ b/fga/model/old/model_old.fga @@ -0,0 +1,1125 @@ +model + schema 1.2 + +# user is a human with access to the system +# the _self relation is used for when the user is the parent of another object +type user + relations + define _self: [user] + define can_view: _self + define can_edit: _self + define can_delete: _self + +# service is not associated to a particular user, but instead to an organization +# the _self relation is used for when the service is the parent of another object +type service + relations + define _self: [service] + define can_view: _self + define can_edit: _self + define can_delete: _self + +# search access for the admin search +type search + relations + define admin: [user] + +# system admin roles are used to define the highest level of access in the system +type system + relations + define system_admin: [user, service] + +type feature + relations + define enabled: [organization] + +# organization is the highest object access +# objects can inherit access from the organization +# or define their own specific access +type organization + relations + # main roles + define admin: [user] or admin from parent + define member: [user] or owner or admin or member from parent + define owner: [user] or owner from parent + # parent inheritance + define parent: [organization] + # organization policies to restrict access + define access: [organization#member with email_domains_allowed] + # main permission sets based on roles + define can_delete: [service] or owner or can_delete from parent + define can_edit: [service] or (admin and access) or owner or can_edit from parent + # view access of the organization + # includes all members, admins, and owners + # also allows users to be given time based access to the organization (e.g. support access) + define can_view: [service, user with time_based_grant] or (member and access) or owner or can_edit or can_view from parent + # additional fine-grained permissions + # allow owner and assigned users to view audit logs + define audit_log_viewer: ([user, service] or owner or audit_log_viewer from parent) and can_view + # allow members to invite other members + define can_invite_members: can_view or can_edit or can_invite_members from parent + # only allow users with edit access to the org to invite other admins + define can_invite_admins: can_edit or can_invite_admins from parent + ## only allow admins/owners be able to create scheduled jobs + ## and enable a job that can be run and be linked to a control + define job_template_creator: [group#member] + define can_create_job_template: can_edit or job_template_creator + define can_create_scheduled_job: can_edit + # object creation permissions + # these permissions should all be defined as: + # define [object]_creator: [group#member] + # define can_create_[object]: can_edit or [object]_creator + + + # system owned standard creation + define standard_creator: [group#member] + define can_create_standard: can_edit or standard_creator + + define control_creator: [group#member] + define can_create_control: can_edit or control_creator + # subcontrols, control_implementations and control_objectives can inherit access from their parent control + define can_create_subcontrol: can_edit or control_creator + + # control implementation and objectives can also be created by users outside the control creator access + define control_implementation_creator: [group#member] + define can_create_control_implementation: can_edit or control_creator or control_implementation_creator + define control_objective_creator: [group#member] + define can_create_control_objective: can_edit or control_creator or control_objective_creator + + # mapped controls are used to map controls from one standard to another + # they can be created by any user with edit access to the organization + # or by a user with the mapped_control_creator or control_creator role + define can_create_mapped_control: can_edit or control_creator or mapped_control_creator + define mapped_control_creator: [group#member] + + define group_creator: [group#member] + define can_create_group: can_edit or group_creator + + define internal_policy_creator: [group#member] + define can_create_internal_policy: can_edit or internal_policy_creator + + define narrative_creator: [group#member] + define can_create_narrative: can_edit or narrative_creator + + define procedure_creator: [group#member] + define can_create_procedure: can_edit or procedure_creator + + define program_creator: [group#member] + define can_create_program: can_edit or program_creator + + define risk_creator: [group#member] + define can_create_risk: can_edit or risk_creator + + define template_creator: [group#member] + define can_create_template: can_edit or template_creator + + define evidence_creator: [group#member] + define can_create_evidence: can_edit or evidence_creator + + define action_plan_creator: [group#member] + define can_create_action_plan: can_edit or action_plan_creator + + define campaign_creator: [group#member] + define can_create_campaign: can_edit or campaign_creator + + define campaign_target_creator: [group#member] + define can_create_campaign_target: can_edit or campaign_target_creator + + define group_manager: [service] + define can_manage_groups: owner or group_manager + + define assessment_creator: [user,group#member] + define can_create_assessment: can_edit or assessment_creator + + define subprocessor_creator: [group#member] + define can_create_subprocessor: can_edit or subprocessor_creator + + define trust_center_admin: [user] + define can_manage_trust_center: trust_center_admin or owner + + define trust_center_doc_creator: [group#member] + define can_create_trust_center_doc: can_edit or trust_center_doc_creator or can_manage_trust_center + + define trust_center_subprocessor_creator: [group#member] + define can_create_trust_center_subprocessor: can_edit or trust_center_subprocessor_creator or can_manage_trust_center + + define trust_center_entity_creator: [group#member] + define can_create_trust_center_entity: can_edit or trust_center_entity_creator or can_manage_trust_center + + define trust_center_nda_request_creator: [group#member] + define can_create_trust_center_nda_request: can_edit or trust_center_nda_request_creator or can_manage_trust_center + + define trust_center_compliance_creator: [group#member] + define can_create_trust_center_compliance: can_edit or trust_center_compliance_creator or can_manage_trust_center + + define trust_center_faq_creator: [group#member] + define can_create_trust_center_faq: can_edit or trust_center_faq_creator or can_manage_trust_center + + define trust_center_post_creator: [group#member] + define can_create_trust_center_post: can_edit or trust_center_post_creator or can_manage_trust_center + + # workflows + define workflow_definition_creator: [group#member] + define can_create_workflow_definition: can_edit or workflow_definition_creator + + # workflow_instance and related types are system-driven, only services can create + define can_create_workflow_instance: [service] + define can_create_workflow_assignment: [service] + define can_create_workflow_object_ref: [service] + define can_create_workflow_assignment_target: [service] + define can_create_workflow_event: [service] + define can_create_workflow_proposal: [service] + + define entity_creator: [group#member] + define can_create_entity: can_edit or entity_creator or can_manage_trust_center + + define asset_creator: [group#member] + define can_create_asset: can_edit or asset_creator + + define finding_creator: [group#member] + define can_create_finding: can_edit or finding_creator + + define vulnerability_creator: [group#member] + define can_create_vulnerability: can_edit or vulnerability_creator + + define remediation_creator: [group#member] + define can_create_remediation: can_edit or remediation_creator + + define review_creator: [group#member] + define can_create_review: can_edit or review_creator + + define scan_creator: [group#member] + define can_create_scan: can_edit or scan_creator + + define platform_creator: [group#member] + define can_create_platform: can_edit or platform_creator + + define identity_holder_creator: [group#member] + define can_create_identity_holder: can_edit or identity_holder_creator + # additional relations + define user_in_context: [user] + +# groups are a subset of an organization that can be used to define more fine-grained access to objects +# users must be members of the organization to be members of a group +# groups are all visible to all members of the organization, unless they are blocked +# groups can only be edited by admins of the group or the parent organization owner +# groups are commonly used to assigned view/edit permissions to other objects within the organization for group members +type group + relations + # main roles + define admin: [user] + define member: [user] or admin + # parent inheritance + define parent: [organization with public_group] + define parent_admin: [organization#owner] + # permissions inherited from the organization + define parent_viewer: can_view from parent or parent_admin + define parent_editor: parent_admin or can_manage_groups from parent + define parent_deleter: parent_admin or can_manage_groups from parent + # main permission sets based on roles + define can_delete: [service] or admin or parent_deleter + define can_edit: [service] or admin or parent_editor + define can_view: [service] or can_edit or member or parent_viewer + # additional fine-grained permissions + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + + +# files have their permissions defined by the parent object (like a control or a procedure), users with access to the parent object will have access to the file +# user:* and service:* are used for public files (e.g. trust center logos/favicons etc) that are available to all users +type file + relations + define can_view: [user:*, service:*, user, service, organization#member] or parent_viewer or tc_doc_viewer + define can_edit: [user, service] or parent_editor or tc_doc_editor + define can_delete: [user, service] or parent_deleter or tc_doc_deleter + + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + + # permissions inherited from the parent + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + # special handling for trust center documents - only NDA signed users can view files + define tc_doc_viewer: nda_signed from tc_doc_parent or member from tc_doc_parent + define tc_doc_editor: can_edit from tc_doc_parent + define tc_doc_deleter: can_delete from tc_doc_parent + define tc_doc_parent: [trust_center_doc] + + define parent: [user, program, organization, control, procedure, template, document_data, contact, internal_policy, narrative, evidence, note, trust_center_setting, subprocessor, export, trust_center_watermark_config, standard,trust_center_entity, entity, identity_holder, trust_center_subprocessor, scan, platform] +# programs are associated with an organization but do not inherit access from the organization with +# the exception of the owner of the organization who will have access to all programs +# the program creator will be made the admin of the program and all other access with be assigned directly +# as program members or via groups +type program + relations + # main roles + define admin: ([user] or owner from parent) and member from parent + define member: [user] and member from parent + # auditor role will not have access to everything in the program by default + # but can be assigned access to specific objects + define auditor: [user] + # main permission sets based on roles + define can_delete: [service] or admin or parent_deleter + define can_edit: [service] or admin or parent_editor or (editor but not blocked) + define can_view: [service] or member or can_edit or parent_viewer or ((editor or viewer) but not blocked) + # parent relation, only the organization owner will have access to the program by default + define parent: [organization] + # permissions inherited from the parent organization + define parent_viewer: owner from parent + define parent_editor: owner from parent + define parent_deleter: owner from parent + # additional fine-grained permissions + # allow a group to be assigned to add edit permissions for a set of users + define editor: [group#member] + define viewer: [group#member] + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + # allow owner and assigned users to view audit logs + define audit_log_viewer: ([user, service] or admin or audit_log_viewer from parent) and can_view + # allow members to invite other members + define can_invite_members: member or can_edit + # only allow users with edit access to the org to invite other admins + define can_invite_admins: can_edit + # additional relations + define user_in_context: [user] +# controls are associated with an organization and will inherit access from the organization +# controls inherit access can also be inherited associated program(s) or from associated groups +# the control author will be assigned as an admin of the control +type control + relations + define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or owner or delegate or system_admin from system or (editor but not blocked) + define can_delete: [user, service] or owner or (editor but not blocked) or system_admin from system + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, program, standard] + # do not include group#member here as controls automatically inherit access from the parent organization + # member covers organizations whereas can_view covers other others + define viewer: member from parent or can_view from parent + # admin covers organizations whereas can_edit covers others + define editor: [group#member, organization#owner] or admin from parent or can_edit from parent + define blocked: [user, group#member] + # owner is the group of users that are responsible for the control, they will have full access to the control + define owner: [group#member] + # delegate is a group of users that are given temporary access to the control, they will have edit but not delete access + define delegate: [group#member] + define system: [system] +# subcontrols are associated with an organization but do not inherit access from the organization +# subcontrols inherit access from the their parent control(s) +type subcontrol + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or owner or delegate or (editor but not blocked) + define can_delete: [user, service] or owner or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, control] + # do not include group#member here as subcontrols automatically inherit access from the parent control which + # are accessible to all members of the organization + define viewer: can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] + # owner is the group of users that are responsible for the subcontrol, they will have full access to the subcontrol + define owner: [group#member] + # delegate is a group of users that are given temporary access to the subcontrol, they will have edit but not delete access + define delegate: [group#member] +# control objectives inherit access from the associated program or from associated groups +# the control objective author will be assigned as an admin of the control objective +type control_objective + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program, control, subcontrol] + define viewer: [group#member] or can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] +# control implementations inherit access from the associated controls or from associated groups +# the control implementation author will be assigned as an admin of the control objective +type control_implementation + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, control, subcontrol] + define viewer: [group#member] or can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] +# mapped controls inherit access from the associated control or subcontrols in the mapping +# the mapped_control author will be assigned as an admin of the mapped control +type mapped_control + relations + define can_view: [user, service] or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [organization] + # no group#member relation here as mapped controls automatically inherit access from the parent organization + define viewer: editor or member from parent or can_view from parent + define editor: [group#member] or admin from parent or owner from parent + define blocked: [user, group#member] +# risks are associated with an organization but do not inherit access from the organization +# the risk creator will be made the admin of the risk and all other access will be assigned via +# a group +type risk + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or stakeholder or delegate or (editor but not blocked) + define can_delete: [user, service] or stakeholder or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program, control, control_objective, subcontrol, procedure, internal_policy] + define viewer: [group#member] or editor or can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] + # stakeholder is the group of users that are responsible for the risk, they will have full access to the risk + define stakeholder: [group#member] + # delegate is a group of users that are given temporary access to the risk, they will have edit but not delete access + define delegate: [group#member] +# narratives are associated with an organization but do not inherit access from the organization +# the narrative creator will be made the admin of the narrative and all other access will be assigned via +# a group +type narrative + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program] + define viewer: [group#member] or editor or can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] +# action plans are associated with an organization but do not inherit access from the organization +# the action plan creator will be made the admin of the action plan and all other access will be assigned via +# associated objects or groups +type action_plan + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program] + define viewer: [group#member] or editor or can_view from parent + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] +# policies are always assigned to an organization and by default all org members can view +# groups can be used to exclude users from being able to view a internal policy +# groups can be used to give edit (or delete) access to users +type internal_policy + relations + define can_view: ([user, service]) or can_edit or (viewer but not blocked) + define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) + define can_delete: ([user, service]) or admin or approver or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + # the parent of the policy will be the organization, not all permissions will be inherited + define parent: [organization] + # allow a user or service to be assigned to add edit permissions + define admin: [user,service] or can_delete from parent + # allow a group to be assigned to add edit permissions for a set of users + define editor: [group#member] + # allow for auditors assigned to the program to view the policy + define viewer: [program#auditor, group#member] or editor or can_view from parent + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + # approver is the group of users that are responsible for the approval of changes to the policy, they will have full access to the policy + define approver: [group#member] + # delegate is a group of users that are given temporary access to the policy, they will have edit but not delete access + define delegate: [group#member] +# procedures are always assigned to an organization and by default all org members can view +# groups can be used to exclude users from being able to view an internal policy +# groups can be used to give edit (or delete) access to users +type procedure + relations + define can_view: ([user, service]) or can_edit or (viewer but not blocked) + define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) + define can_delete: ([user, service]) or admin or approver or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + # the parent of the procedure will be the organization, not all permissions will be inherited + define parent: [organization] + # allow a user or service to be assigned to add edit permissions + define admin: [user,service] or can_delete from parent + # allow a group to be assigned to add edit permissions for a set of users + define editor: [group#member] + # allow for auditors assigned to the program to view the procedure + define viewer: [program#auditor, group#member] or editor or can_view from parent + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + # approver is the group of users that are responsible for the approval of changes to the procedure, they will have full access to the procedure + define approver: [group#member] + # delegate is a group of users that are given temporary access to the procedure, they will have edit but not delete access + define delegate: [group#member] +# templates (this encompasses things like questionnaires or jsonschemas) should be able to be +# created by any user in the parent (organization) with edit access (directly or via a group on the organization) +# all users in the organization should have view access, unless they are excluded (by a user or group) +# editors will be assigned by groups and can be excluded by users or groups +type template + relations + define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [organization, user, trust_center, service] + # allow a group to be assigned to add edit/view permissions for a set of users + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] +# document_data is the json data that is associated to a template +# access to the document_data is inherited from the template +type document_data + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [template, user] + # allow a group to be assigned to add edit/view permissions for a set of users + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + +# email branding holds visual configuration for branded emails +type email_branding + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization] + +# email templates support branded outbound messages (system or org-owned) +type email_template + relations + define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [organization, user, service, integration, workflow_definition, workflow_instance] + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + define blocked: [user, group#member] + +# notification templates drive in-app and external channel messaging +type notification_template + relations + define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [organization, user, service, integration, workflow_definition] + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + define blocked: [user, group#member] + +# integrations represent configured org connections to providers +type integration + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [organization, platform] + +# webhooks configured for integrations +type integration_webhook + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + define blocked: [user, group#member] + define parent: [user, service, organization, integration] + +# integration run history is service-driven but visible to org members via parent +type integration_run + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, integration] + define viewer: can_view from parent + define blocked: [user, group#member] + +# directory sync run history is service-driven but visible through the parent integration +type directory_sync_run + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, integration, platform] + define viewer: can_view from parent + define blocked: [user, group#member] + +# directory accounts are internal snapshots of user identities from external systems +type directory_account + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, integration, directory_sync_run, identity_holder, platform] + define viewer: can_view from parent + define blocked: [user, group#member] + +# directory groups are internal snapshots of group identities from external systems +type directory_group + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, integration, directory_sync_run, platform] + define viewer: can_view from parent + define blocked: [user, group#member] + +# directory memberships are service-managed joins between directory accounts and groups +type directory_membership + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, integration, directory_sync_run, directory_account, directory_group, platform] + define viewer: can_view from parent + define blocked: [user, group#member] + +# entities are always assigned to an organization and permissions are inherited from the organization +# individual users or groups can also be given permission to an entity +type entity + relations + define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, trust_center_entity] +# assets are always assigned to an organization and permissions are inherited from the organization +# individual users or groups can also be given permission to an asset +type asset + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, platform, entity] +# findings can be associated with programs, controls, subcontrols, risks, assets, entities, +# scans, directory accounts, or identity holders +# permissions are inherited from the parent object or organization +type finding + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan, directory_account, identity_holder] +# vulnerabilities can be associated with programs, controls, subcontrols, risks, assets, entities, or scans +# permissions are inherited from the parent object or organization +type vulnerability + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan] +# reviews can be associated with programs, controls, subcontrols, risks, action_plans, findings, vulnerabilities, assets, entities, or tasks +# permissions are inherited from the parent object or organization +type review + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, program, control, subcontrol, risk, action_plan, finding, vulnerability, asset, entity, task] + +# contacts are always assigned to an organization and permissions are inherited from the organization +# individual users or groups can also be given permission to a contact but they must be a member of the organization +type contact + relations + define can_view: ([user, service] and member from parent) or can_edit or (viewer but not blocked) + define can_edit: ([user, service] and member from parent) or (editor but not blocked) + define can_delete: ([user] and member from parent) or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + # allow a group to be assigned to add edit permissions for a set of users + define editor: [group#member] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + define parent: [organization] +# tasks can be created by any user and permissions are assigned to the creator (assigner) and the assignee +# tasks can also be associated with a parent object (like a control or a procedure) and inherit access from that object +type task + relations + define can_view: [user, service] or assignee or assigner or can_delete or can_edit or viewer + define can_edit: [user, service] or assignee or assigner or editor or can_delete + # assignee cannot delete the task, only the original creator (can_delete from parent) or the assigner + define can_delete: [user, service] or assigner or can_delete from parent + define assignee: [user] + define assigner: [user] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, risk, task, asset, platform, identity_holder, scan, action_plan] + define viewer: can_view from parent + define editor: [organization#owner] or can_edit from parent +# notes are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. +# do not inherit edit permissions from parent here like we do on other objects, only the original user (and org owner) can edit +type note + relations + define can_view: [user, service] or can_edit or can_view from parent + define can_edit: [user, service] or owner or editor + define can_delete: [user, service] or can_edit + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [program, control, procedure, internal_policy, subcontrol, control_objective, task, trust_center, risk, evidence, discussion, trust_center_faq] + define editor: [organization#owner] + define owner : [user, service] +# similar to notes, discussions are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. +type discussion + relations + define can_view: [user, service] or can_edit or can_view from parent + define can_edit: [user, service] or owner or editor + define can_delete: [user, service] or can_edit + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, control, procedure, internal_policy, subcontrol, control_objective, risk, evidence] + define editor: [organization#owner] or can_edit from parent + define owner : [user, service] +type evidence + relations + define can_view: [user, service] or can_edit or ((can_view from parent or viewer) but not blocked) + define can_edit: [user, service] or can_delete or ((can_edit from parent or editor) but not blocked) + define can_delete: [user, service] or ((can_delete from parent or editor) but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, task, platform, scan] + define viewer: [group#member] or editor + define editor: [group#member, organization#owner] + define blocked: [user, group#member] + +type standard + relations + # user:* is used for system-owned public standards that are available to all users + define can_view: [user:*, service:*] or viewer or parent_viewer + define can_edit: editor or parent_editor + define can_delete: editor or parent_editor + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent_viewer: member from parent + define parent_editor: admin from parent or owner from parent + define viewer: [user, service] or editor or can_view from associated_with + define editor: [user, service] + # this is used for organization custom standards that are only available to the organization + define parent: [organization] + define associated_with: [trust_center] + +type job_runner + relations + define can_view: [user, service] or viewer or parent_viewer + define can_edit: editor or parent_editor + define can_delete: editor or parent_editor + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent_viewer: member from parent + define parent_editor: admin from parent or owner from parent + define viewer: [user, service] or editor + define editor: [user, service] + define parent: [organization] + +type job_template + relations + define can_view: [user, service, user:*, service:*, organization#member] or parent_viewer + define can_edit: [user, service, organization#member] or parent_editor or system_admin from system + define can_delete: [user, service] or parent_deleter or system_admin from system + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [organization] + define system: [system] + +type scheduled_job + relations + define can_view: [user, service] or parent_viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [user, service, organization, control, subcontrol] + define editor: [group#member, organization#owner] + +type trust_center + relations + define can_view: [user:*, service:*] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor or system_admin from system + define can_delete: [user, service] or parent_deleter + define parent_viewer: can_edit from parent or can_view from parent + define parent_editor: can_edit from parent or can_manage_trust_center from parent + define parent_deleter: can_delete from parent + define parent: [organization] + define nda_signed: [user] + # allow group permissions for trust center editors, this will give them + # edit access to any child objects as well + define editor: [group#member] + define viewer: editor + define member: member from parent + define system: [system] + + +type trust_center_setting + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define editor: [group#member] + define viewer: editor + define parent: [trust_center, user, service] + +type trust_center_compliance + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define editor: [group#member] + define viewer: editor + define parent: [trust_center, user, service] + +type trust_center_subprocessor + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define editor: [group#member] + define viewer: editor + define parent: [trust_center, user, service] + +type trust_center_doc + relations + # wildcard to allow public trust center documents to be viewed by all users vs + # protected documents that require nda_signed + define can_view: [user, service, user:*, service:*] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or member from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [trust_center, user, service] + define nda_signed: nda_signed from parent + define member: member from parent + define editor: [group#member] + define viewer: editor + +type trust_center_entity + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [trust_center, user, service] + define editor: [group#member] + define viewer: editor + +type trust_center_nda_request + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [trust_center, user, service] + define editor: [group#member] + define viewer: editor + +type trust_center_faq + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + define parent_viewer: can_delete or can_edit or can_view from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [trust_center, user, service] + define editor: [group#member] + define viewer: editor + +type trust_center_watermark_config + relations + define can_view: [user, service] or parent_viewer or viewer + define can_edit: [user, service] or parent_editor or editor + define can_delete: [user, service] or parent_deleter or editor + # only allow org members to view the trust_center_watermark_config. + # anonymous users should not be able to view this information. + define parent_viewer: can_delete or can_edit or parent_viewer from parent + define parent_editor: can_delete or can_edit from parent + define parent_deleter: can_delete from parent + define parent: [trust_center, user, service] + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: editor + +type export + relations + define can_view: [user, service] or can_edit + define can_edit: [service] or system_admin from system + define can_delete: system_admin from system + define system: [system] + +type custom_domain + relations + define can_view: [user, service] or viewer or parent_viewer + define can_edit: editor or parent_editor + define can_delete: editor or parent_editor + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent_viewer: member from parent + define parent_editor: admin from parent or owner from parent + define viewer: [user, service] or editor + define editor: [user, service] + define parent: [organization] + +type subprocessor + relations + # user:* is used for system-owned public subprocessors that are available to all users + define can_view: [user:*, service:*] or viewer or system_admin from system + define can_edit: editor or system_admin from system + define can_delete: editor or parent_editor or system_admin from system + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define admin: [user,service] or can_delete from parent + # can_view from parent allows anon trust centers users to see subprocessors associated with the trust center + define parent_viewer: member from parent or can_view from parent + define parent_editor: admin from parent or owner from parent + define viewer: [user, service] or editor or parent_viewer + define editor: [user, service, organization#owner] or admin or parent_editor + define parent: [organization, user, trust_center_subprocessor] + define system: [system] + +type assessment + relations + define can_view: [user] or can_edit or (viewer but not blocked) + define can_edit: [user] or owner or delegate or (editor but not blocked) + define can_delete: [user] or owner or (editor but not blocked) + define parent: [organization] + # allow users or groups to be assigned edit/view permissions directly + define editor: [user, group#member] or admin from parent or owner from parent + define viewer: [user, group#member] or editor + # allow users or groups to be blocked from view + edit access + define blocked: [user, group#member] + # owner is the user or group that is responsible for the assessment, they will have full access to the assessment + define owner: [user, group#member] + # delegate is a user or group that is given temporary access to the assessment, they will have edit but not delete access + define delegate: [user, group#member] + +type assessment_response + relations + define can_view: [user] or response_owner or admin_viewer or viewer + define can_delete: admin_viewer + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization, assessment, campaign, identity_holder, entity] + # the user who filled out the assessment response - they can view their own response + define response_owner: [user] + # org admins and owners can view all responses for oversight/management + define admin_viewer: admin from parent or owner from parent + # editor and viewer relations for organization-level permissions + define editor: [organization#owner] or can_edit from parent + define viewer: [organization#owner] or editor or can_view from parent + +# workflow definitions can be created by org admins or users in groups with create access +type workflow_definition + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or admin or (editor but not blocked) + define can_delete: [user, service] or admin or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization] + define admin: [user, service] or can_delete from parent + define viewer: [group#member] or editor + define editor: [group#member, organization#owner] or can_edit from parent + define blocked: [user, group#member] + +# workflow_instance and related types are system-driven +# users can view through parent object relations but only services can create/edit/delete +type workflow_instance + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, identity_holder, platform, workflow_definition] + define viewer: can_view from parent + define blocked: [user, group#member] + +type workflow_assignment + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, workflow_instance] + define viewer: can_view from parent + define blocked: [user, group#member] + +type workflow_object_ref + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, workflow_instance, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, directory_account, directory_group, directory_membership, identity_holder, platform] + define viewer: can_view from parent + define blocked: [user, group#member] + +type workflow_assignment_target + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, workflow_assignment] + define viewer: can_view from parent + define blocked: [user, group#member] + +type workflow_event + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, workflow_instance] + define viewer: can_view from parent + define blocked: [user, group#member] + +type workflow_proposal + relations + define can_view: [service] or (viewer but not blocked) + define can_edit: [service] + define can_delete: [service] + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, workflow_object_ref] + define viewer: can_view from parent + define blocked: [user, group#member] + +type campaign + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, organization] + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + define blocked: [user, group#member] + +type campaign_target + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define parent: [user, service, campaign] + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent + define blocked: [user, group#member] + +type remediation + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, action_plan, program, control, subcontrol, risk, finding, vulnerability, asset, entity, task] + +type scan + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, platform, asset] + +type platform + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization] + +type identity_holder + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, organization, platform] + +type system_detail + relations + define can_view: [user, service] or can_edit or (viewer but not blocked) + define can_edit: [user, service] or (editor but not blocked) + define can_delete: [user, service] or (editor but not blocked) + define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view + define editor: [group#member, organization#owner] or can_edit from parent + define viewer: [group#member] or editor or can_view from parent or member from parent + define blocked: [user, group#member] + define parent: [user, service, platform, program] + + +## Conditions +# Public groups access; affects the view access of users in the organization +condition public_group(public: bool) { + public == true +} + +# User IP address is within the CIDR range of the company network +condition in_company_network(user_ip: ipaddress, cidr: string) { + user_ip.in_cidr(cidr) +} + +# Time based access to resources +condition time_based_grant(current_time: timestamp, grant_time: timestamp, grant_duration: duration) { + current_time < grant_time + grant_duration +} + +# user email domain within the allowed list +# if there are no restrictions, or a check is done without a domain, it will pass +# if the email domain is in the allowed list, it will pass +condition email_domains_allowed(email_domain: string, allowed_domains: list) { + allowed_domains == [] || email_domain == "" || email_domain in allowed_domains +} diff --git a/fga/model/registry/asset.fga b/fga/model/registry/asset.fga new file mode 100644 index 0000000000..f6ae41cc83 --- /dev/null +++ b/fga/model/registry/asset.fga @@ -0,0 +1,21 @@ +module registry + +# assets permissions can be inherited from parent objects or based on the organization in context +type asset + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_asset from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_asset from parent_context or can_view from parent + define parent_context: [organization] + define parent: [platform, entity] \ No newline at end of file diff --git a/fga/model/registry/contact.fga b/fga/model/registry/contact.fga new file mode 100644 index 0000000000..24f47d40b0 --- /dev/null +++ b/fga/model/registry/contact.fga @@ -0,0 +1,20 @@ +module registry + +# contacts are always assigned to an organization and permissions are inherited from the organization +type contact + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_contact from parent_context + define parent_viewer: can_view from parent_context or can_view_contact from parent_context + define parent_context: [organization] \ No newline at end of file diff --git a/fga/model/registry/entity.fga b/fga/model/registry/entity.fga new file mode 100644 index 0000000000..89cce0b05f --- /dev/null +++ b/fga/model/registry/entity.fga @@ -0,0 +1,21 @@ +module registry + +# entities are always assigned to an organization and permissions are inherited from the organization +# individual users or groups can also be given permission to an entity +type entity + relations + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_entity from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_entity from parent_context or can_view from parent + define parent_context: [organization] + define parent: [user, service, organization, trust_center_entity] \ No newline at end of file diff --git a/fga/model/registry/identity_holder.fga b/fga/model/registry/identity_holder.fga new file mode 100644 index 0000000000..40618f815a --- /dev/null +++ b/fga/model/registry/identity_holder.fga @@ -0,0 +1,20 @@ +module registry + +type identity_holder + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_identity_holder from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_identity_holder from parent_context or can_view from parent + define parent_context: [organization] + define parent: [platform] \ No newline at end of file diff --git a/fga/model/registry/platform.fga b/fga/model/registry/platform.fga new file mode 100644 index 0000000000..43ec7fe5a6 --- /dev/null +++ b/fga/model/registry/platform.fga @@ -0,0 +1,41 @@ +module registry + +type platform + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # determine edit vs view + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_platform from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_platform from parent_context or can_view from parent + define parent_context: [organization] + define parent: [program] + + +type system_detail + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_system_detail from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_system_detail from parent_context or can_view from parent + define parent_context: [organization] + define parent: [user, service, platform, program] + diff --git a/fga/model/roles/roles.fga b/fga/model/roles/roles.fga new file mode 100644 index 0000000000..5cb4ebe423 --- /dev/null +++ b/fga/model/roles/roles.fga @@ -0,0 +1,52 @@ +module roles + +extend type organization + relations + # main roles defined as top-level org membership roles. All users are assigned a base role and additional "meta" roles can be assigned on top of the base role to give additional permissions. For example, a user could be a member but also be given the campaign_manager role which would give them permissions to manage campaigns but not other objects in the system. + + # admin have specific create + view permissions but not always edit access to objects that were created + define admin: [user] or admin from parent + # member role gives view access to objects that are organization-wide or inherited from the organization, but not edit access + define member: [user] or owner or admin or member from parent + # super_admin role has full access to all objects and permissions, it is equivalent to the owner except no access to delete the organization itself + define super_admin: [user] or super_admin from parent + # owner should be able to have full access to all objects in the system that are organization owned. The only exception would be user specific objects like their own user object or personal access tokens. + define owner: [user] or owner from parent + + # @create: review, comment, discussion, task, evidence + # @view: control, subcontrol, program, evidence, policy, procedure, review + define auditor: [user] + + # @inherit: can_manage_compliance, can_manage_policies, can_manage_registry, can_manage_risk + # @crud: control, subcontrol, program, evidence, narrative, standard, control_objective, control_implementation, mapped_control + define can_manage_compliance: compliance_manager or full_access + define compliance_manager: [service, user, group#member] + + # @crud: risk, vulnerability, scan, finding, action_plan, remediation, review + define can_manage_risk: risk_manager or full_access + define risk_manager: [service, user, group#member] + + # @crud: internal_policy, procedure + define can_manage_policies: policy_manager or full_access + define policy_manager: [service, user, group#member] + + # @crud: asset, entity, contact, identity_holder, platform, system_detail + define can_manage_registry: registry_manager or admin + define registry_manager: [service, user, group#member] + + # @crud: group + define can_manage_group: group_manager or full_access + define group_manager: [service, user, group#member] + + # @crud: trust_center, trust_center_doc, trust_center_faq, trust_center_subprocessor, trust_center_compliance, trust_center_entity, trust_center_nda_request, trust_center_faq, trust_center_watermark_config + define can_manage_trust_center: trust_center_manager or full_access + define trust_center_manager: [service, user, group#member] + + # @crud: workflow_definition, scheduled_job, job_runner, job_template, integration, integration_webhook + define can_manage_workflows: workflow_manager or full_access + define workflow_manager: [service, user, group#member] + + # @crud: campaign, assessment, template, email_template, email_branding, notification_template + # @view: document_data, assessment_response + define can_manage_campaigns: campaign_manager or admin + define campaign_manager: [service, user, group#member] diff --git a/fga/model/template/object_owned_no_org_inherit.fga b/fga/model/template/object_owned_no_org_inherit.fga new file mode 100644 index 0000000000..22da896fe2 --- /dev/null +++ b/fga/model/template/object_owned_no_org_inherit.fga @@ -0,0 +1,29 @@ +module example + +# This is an example template for objects that are: +# - object owned with parents - no organization inheritance - a good example of this is the trust_center objects, where the top level trust_center gives org admins+ edit access to trust center, and users/groups can be given specific trust center manage access, but that gives access to all children of the trust center +# To Use: +# 1. Update all occurrences of `object_name` with the object name +# 2. Update `parent` with the parent objects defined in the `ObjectOwned` `withParents` definition. +# Notes: +# This gives: +# - ability to assign specific object instance access by group, user, service +# - ability to assign access to all instances of objects via scopes `can_edit_object_name` and `can_view_object_name` +# - inherited access from the parent objects defined in parent based on can_view and can_edit relations +type object_name + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [parent1, parent2] \ No newline at end of file diff --git a/fga/model/template/object_owned_with_org_parent.fga b/fga/model/template/object_owned_with_org_parent.fga new file mode 100644 index 0000000000..c73acf5d81 --- /dev/null +++ b/fga/model/template/object_owned_with_org_parent.fga @@ -0,0 +1,37 @@ +module example + +# This is an example template for objects that are: +# - object owned with parents +# - permission also inherited from organization level +# To Use: +# 1. Update all occurrences of `object_name` with the object name +# 2. Update `parent` with the parent objects defined in the `ObjectOwned` `withParents` definition. +# Notes: +# - NEVER add `organization` to the `parent` - this will be done via `parent_context` +# This gives: +# - view access to all users in the organization to all instances of object_name +# - edit access to all org admins+ to all instances of object_name +# - ability to assign specific object instance access by group, user, service +# - ability to assign access to all instances of objects via scopes `can_edit_object_name` and `can_view_object_name` +# - inherited access from the parent objects defined in parent based on can_view and can_edit relations +# NOTES: +# - if you do not want all org members to have view access by default, remove "can_view from parent_context" in parent_viewer +# - if you do not want all org admins to have edit access by default, remove "can_edit from parent_context" in parent_editor +type object_name + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_object_name from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_object_name from parent_context or can_view from parent + define parent_context: [organization] + define parent: [parent1, parent2] diff --git a/fga/model/template/object_owned_with_public.fga b/fga/model/template/object_owned_with_public.fga new file mode 100644 index 0000000000..6d4f0cdc1d --- /dev/null +++ b/fga/model/template/object_owned_with_public.fga @@ -0,0 +1,37 @@ +module example + +# This is an example template for objects that are: +# - object owned with parents +# To Use: +# 1. Update all occurrences of `object_name` with the object name +# 2. Update `parent` with the parent objects defined in the `ObjectOwned` `withParents` definition. +# Notes: +# - NEVER add `organization` to the `parent` - this will be done via `parent_context` +# This gives: +# - view access to all users in the organization to all instances of object_name +# - edit access to all org admins+ to all instances of object_name +# - ability to assign specific object instance access by group, user, service +# - ability to assign access to all instances of objects via scopes `can_edit_object_name` and `can_view_object_name` +# - inherited access from the parent objects defined in parent based on can_view and can_edit relations +# - public view access to all users when using wildcard tuple +# NOTES: +# - if you do not want all org members to have view access by default, remove "can_view from parent_context" in parent_viewer +# - if you do not want all org admins to have edit access by default, remove "can_edit from parent_context" in parent_editor +type object_name + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_object_name from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_object_name from parent_context or can_view from parent + define parent_context: [organization] + define parent: [parent1, parent2] diff --git a/fga/model/template/object_with_anon_jwt.fga b/fga/model/template/object_with_anon_jwt.fga new file mode 100644 index 0000000000..b365d6b7e1 --- /dev/null +++ b/fga/model/template/object_with_anon_jwt.fga @@ -0,0 +1,21 @@ +module example + +type object_name + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or system_admin from system + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + define system: [system] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_object_name from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_object_name from parent_context or can_view from parent + define parent_context: [organization] + define parent: [parent1, parent2] diff --git a/fga/model/template/org_owned.fga b/fga/model/template/org_owned.fga new file mode 100644 index 0000000000..778280eb44 --- /dev/null +++ b/fga/model/template/org_owned.fga @@ -0,0 +1,30 @@ +module example + +# This is an example template for objects that are only organization owned +# To Use: +# 1. Update all occurrences of `object_name` with the object name +# This gives: +# - view access to all users in the organization to all instances of object_name +# - edit access to all org admins+ to all instances of object_name +# - ability to assign specific object instance access by group, user, service +# - ability to assign access to all instances of objects via scopes `can_edit_object_name` and `can_view_object_name` +# NOTES: +# - if you do not want all org members to have view access by default, remove "can_view from parent_context" in parent_viewer +# - if you do not want all org admins to have edit access by default, remove "can_edit from parent_context" in parent_editor +type object_name + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_object_name from parent_context + define parent_viewer: can_view from parent_context or can_view_object_name from parent_context + define parent_context: [organization] \ No newline at end of file diff --git a/fga/model/template/service.fga b/fga/model/template/service.fga new file mode 100644 index 0000000000..e7e878305c --- /dev/null +++ b/fga/model/template/service.fga @@ -0,0 +1,20 @@ +module example + +# This is an example template for objects that are maintained by services or integrations +type object_name + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [service] + define viewer: [service] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_viewer: can_view from parent_context or can_view_object_name from parent_context or can_view from parent + define parent_context: [organization] + define parent: [parent1, parent2] diff --git a/fga/model/trustcenter/base.fga b/fga/model/trustcenter/base.fga new file mode 100644 index 0000000000..078cd0af4c --- /dev/null +++ b/fga/model/trustcenter/base.fga @@ -0,0 +1,206 @@ +module trustcenter + +type trust_center + relations + # base permissions - these should all be derived permissions except public tuples + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: deleter + + # tuple based permissions for edit, view, blocked, and audit log viewing + # only allow org admins and super admins to delete the trust center parent object + define deleter: full_access from parent_context + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + define member: member from parent_context + define system: [system] + + # trust_center specific permissions, used for child objects such as trust_center_docs that need to check for nda_signed + define nda_signed: [user] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_trust_center from parent_context + define parent_viewer: can_view from parent_context or can_view_trust_center from parent_context + define parent_context: [organization] + +type trust_center_setting + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type trust_center_compliance + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type subprocessor + relations + # base permissions - these should all be derived permissions except public tuples + # user:* is used for system-owned public subprocessors that are available to all users + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor or system_admin from system + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent or audit_log_viewer from parent_context) and can_view) or can_view + define system: [system] + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_subprocessor from parent_context or can_edit from parent + define parent_viewer: can_view from parent_context or can_view_subprocessor from parent_context or can_view from parent + define parent_context: [organization] + define parent: [trust_center_subprocessor] + +type trust_center_subprocessor + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type trust_center_doc + relations + # base permissions - these should all be derived permissions except public tuples + # wildcard to allow public trust center documents to be viewed by all users vs + # protected documents that require nda_signed + define can_view: [user:*, service:*] or (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or viewer from parent + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent) and can_view) or can_view + + define member: member from parent + + # # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent_context: [organization] # unused, but things wfail without + define parent: [trust_center] + + # in order to allow anon users to get the doc name, but not the file without the nda signed need a separate definition + define public_viewer: parent_viewer from parent + + # specific for trust center doc inheritance + define nda_signed: nda_signed from parent + +type trust_center_entity + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type trust_center_nda_request + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type trust_center_faq + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [trust_center] + +type trust_center_watermark_config + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: ([user, service, group#member] or audit_log_viewer from parent) and can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent + # only allow org members to view the trust_center_watermark_config. + # anonymous users should not be able to view this information. + define parent_viewer: parent_viewer from parent + define parent: [trust_center] + + diff --git a/fga/model/trustcenter/domain.fga b/fga/model/trustcenter/domain.fga new file mode 100644 index 0000000000..76b78f6fe3 --- /dev/null +++ b/fga/model/trustcenter/domain.fga @@ -0,0 +1,19 @@ +module trustcenter + +type custom_domain + relations + # base permissions - these should all be derived permissions + define can_view: (viewer but not blocked) + define can_edit: (editor but not blocked) or can_delete + define can_delete: (editor but not blocked) + + # tuple based permissions for edit, view, blocked, and audit log viewing + define editor: [user, service, group#member] or parent_editor + define viewer: [user, service, group#member] or editor or parent_viewer + define blocked: [user, service, group#member] + define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view + + # parent permissions derived based on `crud` permissions or parents + define parent_editor: can_edit from parent_context or can_edit_custom_domain from parent_context + define parent_viewer: can_view from parent_context or can_view_custom_domain from parent_context + define parent_context: [organization] \ No newline at end of file diff --git a/fga/tests/tests.yaml b/fga/tests/tests.yaml index 8f3fb248a1..7a48346c03 100644 --- a/fga/tests/tests.yaml +++ b/fga/tests/tests.yaml @@ -1,5 +1,5 @@ name: Openlane -model_file: ../model/model.fga +model_file: ../model/fga.mod tuple_file: tuples/_tuples.yaml tests: - name: organization @@ -50,6 +50,53 @@ tests: can_create_workflow_assignment_target: false # system-driven, only services can create can_create_workflow_event: false # system-driven, only services can create can_create_workflow_proposal: false # system-driven, only services can create + - user: user:ulid-super-admin + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: + super_admin: true + admin: false + owner: false + can_delete: false + can_edit: true + can_view: true + audit_log_viewer: true + can_invite_members: true + can_invite_super_admins: true + can_invite_auditors: true + can_invite_admins: true + can_create_control: true + can_create_subcontrol: true + can_create_control_objective: true + can_create_group: true + can_create_internal_policy: true + can_create_mapped_control: true + can_create_narrative: true + can_create_procedure: true + can_create_program: true + can_create_risk: true + can_create_action_plan: true + can_create_scheduled_job: true + can_create_standard: true + can_create_template: true + can_create_evidence: true + can_create_trust_center_doc: true + can_create_trust_center_subprocessor: true + can_create_campaign: true + can_create_campaign_target: true + can_create_finding: true + can_create_vulnerability: true + can_create_remediation: true + can_create_review: true + can_create_scan: true + can_create_platform: true + can_create_identity_holder: true + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false - user: user:ulid-of-member object: organization:openlane context: @@ -124,7 +171,6 @@ tests: can_create_trust_center_doc: true can_create_trust_center_subprocessor: true can_create_campaign: true - can_create_campaign_target: true can_create_finding: true can_create_vulnerability: true can_create_remediation: true @@ -347,6 +393,340 @@ tests: audit_log_viewer: false can_invite_members: false can_invite_admins: false + - user: user:ulid-auditor + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: false + admin: false + owner: false + can_delete: false + can_edit: false + can_view: false + audit_log_viewer: false + can_invite_members: false + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: false + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: false + can_create_program: false + can_create_risk: false + can_create_action_plan: false + can_create_scheduled_job: false + can_create_standard: false + can_create_template: false + can_create_evidence: true + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: false + can_create_vulnerability: false + can_create_remediation: false + can_create_review: true + can_create_scan: false + can_create_platform: false + can_create_entity: false + can_create_contact: false + can_create_identity_holder: false + can_create_asset: false + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + - user: user:ulid-risk-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: false + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: false + can_create_program: false + can_create_risk: true + can_create_action_plan: true + can_create_scheduled_job: false + can_create_standard: false + can_create_template: false + can_create_evidence: false + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: true + can_create_vulnerability: true + can_create_remediation: true + can_create_review: true + can_create_scan: true + can_create_platform: false + can_create_entity: false + can_create_contact: false + can_create_identity_holder: false + can_create_asset: false + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + - user: user:ulid-policy-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: true + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: true + can_create_program: false + can_create_risk: false + can_create_action_plan: false + can_create_scheduled_job: false + can_create_standard: false + can_create_template: false + can_create_evidence: false + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: false + can_create_vulnerability: false + can_create_remediation: false + can_create_review: false + can_create_scan: false + can_create_platform: false + can_create_entity: false + can_create_contact: false + can_create_identity_holder: false + can_create_asset: false + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + - user: user:ulid-registry-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: false + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: false + can_create_program: false + can_create_risk: false + can_create_action_plan: false + can_create_scheduled_job: false + can_create_standard: false + can_create_template: false + can_create_evidence: false + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: false + can_create_vulnerability: false + can_create_remediation: false + can_create_review: false + can_create_scan: false + can_create_platform: true + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + can_create_entity: true + can_create_contact: true + can_create_identity_holder: true + can_create_asset: true + - user: user:ulid-campaign-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: false + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: false + can_create_program: false + can_create_risk: false + can_create_action_plan: false + can_create_scheduled_job: false + can_create_standard: false + can_create_template: true + can_create_evidence: false + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: true + can_create_campaign_target: false + can_create_finding: false + can_create_vulnerability: false + can_create_remediation: false + can_create_review: false + can_create_scan: false + can_create_platform: false + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + can_create_entity: false + can_create_contact: false + can_create_identity_holder: false + can_create_asset: false + can_create_email_template: true + can_create_email_branding: true + can_create_notification_template: true + can_create_assessment: true + - user: user:ulid-compliance-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: true + can_create_subcontrol: true + can_create_control_objective: true + can_create_group: false + can_create_internal_policy: true + can_create_mapped_control: true + can_create_narrative: true + can_create_procedure: true + can_create_program: true + can_create_risk: true + can_create_action_plan: true + can_create_scheduled_job: false + can_create_standard: true + can_create_template: false + can_create_evidence: true + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: true + can_create_vulnerability: true + can_create_remediation: true + can_create_review: true + can_create_scan: true + can_create_platform: true + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false + can_create_entity: true + can_create_contact: true + can_create_identity_holder: true + can_create_asset: true + - user: user:ulid-workflow-manager + object: organization:openlane + context: + email_domain: "example.com" + assertions: + member: true + admin: false + owner: false + can_delete: false + can_edit: false + can_view: true + audit_log_viewer: false + can_invite_members: true + can_invite_admins: false + can_create_control: false + can_create_subcontrol: false + can_create_control_objective: false + can_create_group: false + can_create_internal_policy: false + can_create_mapped_control: false + can_create_narrative: false + can_create_procedure: false + can_create_program: false + can_create_risk: false + can_create_action_plan: false + can_create_scheduled_job: true + can_create_standard: false + can_create_template: false + can_create_evidence: false + can_create_trust_center_doc: false + can_create_trust_center_subprocessor: false + can_create_campaign: false + can_create_campaign_target: false + can_create_finding: false + can_create_vulnerability: false + can_create_remediation: false + can_create_review: false + can_create_scan: false + can_create_platform: false + can_create_entity: false + can_create_contact: false + can_create_identity_holder: false + can_create_asset: false + can_create_workflow_definition: true + can_create_workflow_object_ref: false + can_create_workflow_assignment_target: false + can_create_workflow_event: false + can_create_workflow_proposal: false list_objects: - user: user:ulid-of-owner type: organization @@ -402,7 +782,7 @@ tests: context: relation: can_view assertions: - parent: true + parent_context: true - user: user:ulid-of-owner object: group:cat-lovers assertions: @@ -420,7 +800,7 @@ tests: can_delete: false can_edit: false can_view: true - audit_log_viewer: false + audit_log_viewer: true - user: service:ulid-of-service-editor object: group:cat-lovers assertions: @@ -429,7 +809,7 @@ tests: can_delete: true can_edit: true can_view: true - audit_log_viewer: false + audit_log_viewer: true # private group check - user: user:ulid-of-member-2 object: group:cat-haters @@ -448,7 +828,7 @@ tests: can_delete: true can_edit: true can_view: true - audit_log_viewer: false + audit_log_viewer: true list_objects: - user: user:ulid-of-owner type: group @@ -658,6 +1038,8 @@ tests: can_delete: false - user: user:ulid-of-member-3 # member has access task 2 via control association object: task:task-2 + context: + email_domain: example.com assertions: can_view: true can_edit: false @@ -690,6 +1072,12 @@ tests: can_view: true can_edit: true can_delete: true + # - user: user:ulid-super-admin + # object: procedure:procedure-1 + # assertions: + # can_view: true + # can_edit: true + # can_delete: true - user: user:ulid-group-editor # editor of the procedure should have edit permissions object: procedure:procedure-1 assertions: @@ -719,7 +1107,13 @@ tests: assertions: can_view: true can_edit: true - can_delete: false + can_delete: true + # - user: user:ulid-policy-manager + # object: procedure:procedure-1 + # assertions: + # can_view: true + # can_edit: true + # can_delete: true - name: internal policies description: policies are associated with an organization and by default all user in the organization can view them. edit access is provided by groups. tuple_file: tuples/policies.yaml @@ -748,7 +1142,13 @@ tests: can_view: false can_edit: false can_delete: false - - user: user:ulid-auditor # auditor of the program should have view permissions + - user: user:ulid-program-auditor # auditor of the program should have view permissions + object: internal_policy:internal_policy-1 + assertions: + can_view: true + can_edit: false + can_delete: false + - user: user:ulid-auditor object: internal_policy:internal_policy-1 assertions: can_view: true @@ -773,7 +1173,7 @@ tests: assertions: can_view: true can_edit: true - can_delete: false + can_delete: true - name: programs description: programs are associated with an organization tuple_file: tuples/programs.yaml @@ -796,136 +1196,31 @@ tests: can_view: false can_edit: false can_delete: false - - name: asset - description: assets are always assigned to an organization and permissions are inherited from the organization - tuple_file: tuples/assets.yaml - check: - - user: user:ulid-of-owner # org owner has full access - object: asset:asset-1 - assertions: - can_view: true - can_edit: true - can_delete: true - audit_log_viewer: true - - user: user:ulid-of-member # org member can view - object: asset:asset-1 - context: - email_domain: "example.com" - assertions: - can_view: true - can_edit: false - can_delete: false - - user: user:ulid-blocked # blocked user has no access - object: asset:asset-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - user: user:ulid-of-owner-foobar # user of another org has no access - object: asset:asset-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - user: user:ulid-of-owner # org owner has access to asset with platform parent - object: asset:asset-2 - assertions: - can_view: true - can_edit: true - can_delete: true - - user: user:ulid-of-owner # org owner has access to asset with entity parent - object: asset:asset-3 - assertions: - can_view: true - can_edit: true - can_delete: true - - name: entity - description: entities are always assigned to an organization and permissions are inherited from the organization - tuple_file: tuples/entities.yaml - check: - - user: user:ulid-of-owner # org owner has full access - object: entity:entity-1 - assertions: - can_view: true - can_edit: true - can_delete: true - audit_log_viewer: true - - user: user:ulid-of-member # org member can view - object: entity:entity-1 - context: - email_domain: "example.com" - assertions: - can_view: true - can_edit: false - can_delete: false - - user: user:ulid-blocked # blocked user has no access - object: entity:entity-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - user: user:ulid-of-owner-foobar # user of another org has no access - object: entity:entity-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - name: finding - description: findings can be associated with organizations or programs and permissions are inherited accordingly - tuple_file: tuples/findings.yaml - check: - - user: user:ulid-of-owner # org owner has full access - object: finding:finding-1 + - user: user:ulid-compliance-manager # compliance manager should have permissions based on their role + object: program:program-1 assertions: can_view: true can_edit: true can_delete: true - audit_log_viewer: true - - user: user:ulid-of-member # org member can view - object: finding:finding-1 - context: - email_domain: "example.com" + - user: user:ulid-auditor # auditor of the program should have view + object: program:program-1 assertions: can_view: true can_edit: false can_delete: false - - user: user:ulid-blocked # blocked user has no access - object: finding:finding-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - user: user:ulid-of-owner-foobar # user of another org has no access - object: finding:finding-1 - assertions: - can_view: false - can_edit: false - can_delete: false - - user: user:ulid-of-owner # org owner has full access to program-associated finding - object: finding:finding-2 - assertions: - can_view: true - can_edit: true - can_delete: true - - user: user:ulid-of-owner # org owner has full access to scan-associated finding - object: finding:finding-3 - assertions: - can_view: true - can_edit: true - can_delete: true - - name: vulnerability - description: vulnerabilities can be associated with organizations or programs and permissions are inherited accordingly - tuple_file: tuples/vulnerabilities.yaml + - name: asset + description: assets are always assigned to an organization and permissions are inherited from the organization + tuple_file: tuples/assets.yaml check: - user: user:ulid-of-owner # org owner has full access - object: vulnerability:vulnerability-1 + object: asset:asset-1 assertions: can_view: true can_edit: true can_delete: true audit_log_viewer: true - user: user:ulid-of-member # org member can view - object: vulnerability:vulnerability-1 + object: asset:asset-1 context: email_domain: "example.com" assertions: @@ -933,42 +1228,42 @@ tests: can_edit: false can_delete: false - user: user:ulid-blocked # blocked user has no access - object: vulnerability:vulnerability-1 + object: asset:asset-1 assertions: can_view: false can_edit: false can_delete: false - user: user:ulid-of-owner-foobar # user of another org has no access - object: vulnerability:vulnerability-1 + object: asset:asset-1 assertions: can_view: false can_edit: false can_delete: false - - user: user:ulid-of-owner # org owner has full access to program-associated vulnerability - object: vulnerability:vulnerability-2 + - user: user:ulid-of-owner # org owner has access to asset with platform parent + object: asset:asset-2 assertions: can_view: true can_edit: true can_delete: true - - user: user:ulid-of-owner # org owner has full access to scan-associated vulnerability - object: vulnerability:vulnerability-3 + - user: user:ulid-of-owner # org owner has access to asset with entity parent + object: asset:asset-3 assertions: can_view: true can_edit: true can_delete: true - - name: remediation - description: remediations can be associated with organizations or findings and permissions are inherited accordingly - tuple_file: tuples/remediations.yaml + - name: entity + description: entities are always assigned to an organization and permissions are inherited from the organization + tuple_file: tuples/entities.yaml check: - user: user:ulid-of-owner # org owner has full access - object: remediation:remediation-1 + object: entity:entity-1 assertions: can_view: true can_edit: true can_delete: true audit_log_viewer: true - user: user:ulid-of-member # org member can view - object: remediation:remediation-1 + object: entity:entity-1 context: email_domain: "example.com" assertions: @@ -976,56 +1271,91 @@ tests: can_edit: false can_delete: false - user: user:ulid-blocked # blocked user has no access - object: remediation:remediation-1 + object: entity:entity-1 assertions: can_view: false can_edit: false can_delete: false - user: user:ulid-of-owner-foobar # user of another org has no access - object: remediation:remediation-1 + object: entity:entity-1 assertions: can_view: false can_edit: false can_delete: false - - user: user:ulid-of-owner # org owner has full access to finding-associated remediation - object: remediation:remediation-2 + - name: finding + description: findings can be associated with organizations or programs and permissions are inherited accordingly + tuple_file: tuples/findings.yaml + check: + - user: user:ulid-of-member # is a member of program that is parent of finding + object: finding:finding-2 assertions: can_view: true can_edit: true can_delete: true - - name: scan - description: scans can be associated with organizations or platforms and permissions are inherited accordingly - tuple_file: tuples/scans.yaml - check: - - user: user:ulid-of-owner # org owner has full access - object: scan:scan-1 + - user: user:ulid-of-member # can_edit parent control, so can edit finding + object: finding:finding-3 assertions: can_view: true can_edit: true can_delete: true - audit_log_viewer: true - - user: user:ulid-of-member # org member can view - object: scan:scan-1 - context: - email_domain: "example.com" + - user: user:ulid-of-owner-foobar # user of another org has no access + object: finding:finding-1 assertions: - can_view: true + can_view: false can_edit: false can_delete: false - - user: user:ulid-blocked # blocked user has no access - object: scan:scan-1 + - user: user:ulid-of-owner # org owner has full access to program-associated finding + object: finding:finding-2 + assertions: + can_view: true + can_edit: true + can_delete: true + - name: vulnerability + description: vulnerabilities can be associated with organizations or programs and permissions are inherited accordingly + tuple_file: tuples/vulnerabilities.yaml + check: + - user: user:ulid-of-owner-foobar # user of another org has no access + object: vulnerability:vulnerability-1 assertions: can_view: false can_edit: false can_delete: false - - user: user:ulid-of-owner-foobar # user of another org has no access - object: scan:scan-1 + - user: user:ulid-of-owner # org owner has full access to program-associated vulnerability + object: vulnerability:vulnerability-2 assertions: - can_view: false + can_view: true + can_edit: true + can_delete: true + - user: user:ulid-of-member # org member can view scan so they can view vulnerability + object: vulnerability:vulnerability-3 + assertions: + can_view: true can_edit: false can_delete: false - - user: user:ulid-of-owner # org owner has full access to platform-associated scan - object: scan:scan-2 + - user: user:ulid-of-member # program admin has full access program-associated vulnerability + object: vulnerability:vulnerability-2 + assertions: + can_view: true + can_edit: true + can_delete: true + - name: remediation + description: remediations can be associated with organizations or findings and permissions are inherited accordingly + tuple_file: tuples/remediations.yaml + check: + - user: user:ulid-of-member # org member can view due to parent edit access to vulnerability + object: remediation:remediation-2 + assertions: + can_view: true + can_edit: true + can_delete: true + - name: scan + description: scans can be associated with organizations or platforms and permissions are inherited accordingly + tuple_file: tuples/scans.yaml + check: + - user: user:ulid-of-admin + object: scan:scan-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: true @@ -1065,7 +1395,7 @@ tests: description: identity_holders are associated with organizations or platforms and permissions are inherited accordingly tuple_file: tuples/identity_holders.yaml check: - - user: user:ulid-of-owner # org owner has full access + - user: user:ulid-of-owner # org owner has full access by parent_context object: identity_holder:identity_holder-1 assertions: can_view: true @@ -1102,24 +1432,38 @@ tests: description: evidence are always with an organization, and can be linked to many objects within the system tuple_file: tuples/evidence.yaml check: - - user: user:ulid-admin # has can_delete permission on the evidence + - user: user:ulid-super-admin # has full permission on the evidence object: evidence:evidence-1 assertions: can_view: true can_edit: true can_delete: true + - user: user:ulid-admin # by default has no access to evidence until it's linked to a parent object, which would commonly be control, etc. + object: evidence:evidence-1 + assertions: + can_view: false + can_edit: false + can_delete: false - user: user:ulid-task-assignee # assignee of the task that has access to the evidence via the task object: evidence:evidence-1 assertions: can_view: true can_edit: true - can_delete: false + can_delete: true - user: user:ulid-member # member of the program that has access to the evidence via the program object: evidence:evidence-1 assertions: can_view: true can_edit: false can_delete: false + - user: user:ulid-member # has access to the evidence via the control that is linked to the evidence + object: evidence:evidence-2 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: false + can_delete: false - user: user:group-editor # editor of the group that has access to the evidence object: evidence:evidence-1 assertions: @@ -1160,18 +1504,24 @@ tests: check: - user: user:ulid-of-member # member of the program that has access to the control object: control:control-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false can_delete: false - user: user:ulid-of-another-member # no access to the control object: control:control-1 + context: + email_domain: "example.com" assertions: can_view: false can_edit: false can_delete: false - user: user:ulid-of-member-2 # member of the parent organization that has access to the control object: control:control-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -1202,12 +1552,16 @@ tests: can_delete: true - user: user:ulid-of-member # member of the program that has access to the control object: subcontrol:subcontrol-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false can_delete: false - user: user:ulid-of-member-3 # access to the control from the parent control object: subcontrol:subcontrol-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -1232,12 +1586,24 @@ tests: can_delete: true - user: user:ulid-of-member # member of the program that has access to the control objective via the control object: control_objective:control_objective-1 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: false + can_delete: false + - user: user:ulid-of-member # member of the program that has access to the control implementation via the control + object: control_implementation:control_implementation-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false can_delete: false - user: user:ulid-of-member-3 # access to the control objective from the parent control object: control_objective:control_objective-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -1292,6 +1658,8 @@ tests: can_delete: true - user: user:ulid-of-member # member of the program that has access to the control objective via the subcontrol object: control_objective:control_objective-3 + context: + email_domain: example.com assertions: can_view: true can_edit: false @@ -1358,6 +1726,8 @@ tests: can_delete: false - user: user:ulid-of-member object: mapped_control:mapped_control-1 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -1434,6 +1804,8 @@ tests: can_delete: false - user: user:ulid-of-member object: standard:standard-org-custom + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -1527,15 +1899,47 @@ tests: can_view: true can_edit: true can_delete: true - # campaign with organization parent - org member can view + # campaign with organization parent - org member has no access unless given explicitly - user: user:ulid-of-member object: campaign:campaign-1 context: email_domain: "example.com" assertions: - can_view: true + can_view: false can_edit: false can_delete: false + - user: user:ulid-of-member # group access given, user has full edit access + object: campaign:campaign-3 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true + - user: user:ulid-of-another-member # campaign manager has access to all campaigns in the org + object: campaign:campaign-1 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true + - user: user:ulid-of-another-member # campaign manager has access to all campaigns in the org + object: campaign:campaign-2 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true + - user: user:ulid-of-another-member # campaign manager has access to all campaigns in the org + object: campaign:campaign-3 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true # campaign with organization parent - blocked user has no access - user: user:ulid-blocked object: campaign:campaign-1 @@ -1891,6 +2295,8 @@ tests: - workflow_definition:workflow_definition-2 - user: user:ulid-of-member type: workflow_definition + context: + email_domain: "example.com" assertions: can_view: [] # org member cannot view workflow definitions by default can_edit: [] # no edit access to any workflow definitions @@ -1905,6 +2311,8 @@ tests: can_delete: [] # system-driven, only services can delete - user: user:ulid-of-member type: workflow_instance + context: + email_domain: "example.com" assertions: can_view: - workflow_instance:workflow_instance-1 # can only see via control, cannot access the other one that doesn't have a parent control @@ -1928,6 +2336,8 @@ tests: can_delete: [] # system-driven, only services can delete - user: user:ulid-of-member type: workflow_object_ref + context: + email_domain: "example.com" assertions: can_view: - workflow_object_ref:workflow_object_ref-1 # can only see via control, cannot access the other one that doesn't have a parent control @@ -1943,6 +2353,8 @@ tests: can_delete: [] # system-driven, only services can delete - user: user:ulid-of-member type: workflow_assignment_target + context: + email_domain: "example.com" assertions: can_view: - workflow_assignment_target:workflow_assignment_target-1 # can only see via control, cannot access the other one that doesn't have a parent control @@ -1958,6 +2370,8 @@ tests: can_delete: [] # system-driven, only services can delete - user: user:ulid-of-member type: workflow_event + context: + email_domain: "example.com" assertions: can_view: - workflow_event:workflow_event-1 # can only see via control, cannot access the other one that doesn't have a parent control @@ -2069,6 +2483,30 @@ tests: can_view: true can_edit: false can_delete: false + - user: user:anon_signed-nda + object: trust_center_doc:tcdoc-3 + assertions: + can_view: true + can_edit: false + can_delete: false + - user: user:anon_signed-nda + object: file:file-3 + assertions: + can_view: true + can_edit: false + can_delete: false + - user: user:anon_unsigned-nda + object: trust_center_doc:tcdoc-3 + assertions: + can_view: true + can_edit: false + can_delete: false + - user: user:anon_unsigned-nda + object: file:file-3 + assertions: + can_view: false + can_edit: false + can_delete: false - user: user:tc-viewer-1 object: trust_center_doc:tcdoc-1 assertions: @@ -2081,7 +2519,6 @@ tests: can_view: true can_edit: false can_delete: false - - user: user:tc-owner-2 object: trust_center_doc:tcdoc-2 assertions: @@ -2090,6 +2527,8 @@ tests: can_delete: true - user: user:tc-viewer-2 object: trust_center_doc:tcdoc-2 + context: + email_domain: "example.com" assertions: can_view: true can_edit: false @@ -2141,3 +2580,76 @@ tests: can_view: true can_edit: false can_delete: false + - name: risk + description: risks are associated with the organization, but only visible to admins+ by default, and can be associated with other objects to inherit access e.g. with a program + tuple_file: tuples/risks.yaml + check: + - user: user:ulid-of-owner # org owner has full access + object: risk:risk-1 + assertions: + can_view: true + can_edit: true + can_delete: true + audit_log_viewer: true + - user: user:ulid-of-admin # org admin has full access + object: risk:risk-1 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true + audit_log_viewer: true + - user: user:ulid-of-member # org member has no access by default + object: risk:risk-1 + context: + email_domain: "example.com" + assertions: + can_view: false + can_edit: false + can_delete: false + audit_log_viewer: false + - user: user:ulid-of-owner-foobar # user of another org has no access + object: risk:risk-1 + context: + email_domain: "example.com" + assertions: + can_view: false + can_edit: false + can_delete: false + audit_log_viewer: false + - user: user:ulid-member-user-1 # user should be able to view program + object: program:program-with-risk-1 + context: + email_domain: "example.com" + assertions: + member: false + admin: true + can_view: true + can_edit: true + can_delete: true + audit_log_viewer: true + - user: user:ulid-member-user-1 # program admin access gives admin access to risk + object: risk:risk-1 + context: + email_domain: "example.com" + assertions: + can_view: true + can_edit: true + can_delete: true + audit_log_viewer: true + - user: user:ulid-member-user-2 # user should be able to view program + object: program:program-with-risk-1 + assertions: + member: true + can_view: true + can_edit: false + can_delete: false + audit_log_viewer: true + - user: user:ulid-member-user-2 # because user can view program, user can view risk associated with program + object: risk:risk-1 + assertions: + can_view: true + can_edit: false + can_delete: false + audit_log_viewer: true diff --git a/fga/tests/tuples/_tuples.yaml b/fga/tests/tuples/_tuples.yaml index 056af5b2a5..d9400d127d 100644 --- a/fga/tests/tuples/_tuples.yaml +++ b/fga/tests/tuples/_tuples.yaml @@ -105,13 +105,25 @@ - user: service:ulid-of-service-editor relation: can_create_workflow_proposal object: organization:openlane +- user: service:ulid-of-service-editor + relation: compliance_manager + object: organization:openlane +- user: service:ulid-of-service-editor + relation: trust_center_manager + object: organization:openlane +- user: service:ulid-of-service-editor + relation: campaign_manager + object: organization:openlane +- user: service:ulid-of-service-editor + relation: workflow_manager + object: organization:openlane # setup service user - user: service:ulid-of-service-viewer relation: can_view object: organization:openlane # setup programs under org - user: organization:openlane - relation: parent + relation: parent_context object: program:program-1 - user: user:ulid-program-admin relation: _self @@ -139,7 +151,7 @@ object: organization:openlane # setup another program under org - user: organization:openlane - relation: parent + relation: parent_context object: program:program-2 - user: user:ulid-other-3 relation: _self @@ -148,7 +160,7 @@ relation: member object: organization:openlane # setup an auditor for the first program -- user: user:ulid-auditor +- user: user:ulid-program-auditor relation: auditor object: program:program-1 # setup org primary owner of another org @@ -158,3 +170,52 @@ - user: user:ulid-of-owner-foobar relation: owner object: organization:foobar +# setup users for each role +- user: user:ulid-super-admin + relation: super_admin + object: organization:openlane +- user: user:ulid-auditor + relation: auditor + object: organization:openlane +- user: user:ulid-risk-manager + relation: member + object: organization:openlane +- user: user:ulid-risk-manager + relation: risk_manager + object: organization:openlane +- user: user:ulid-policy-manager + relation: member + object: organization:openlane +- user: user:ulid-policy-manager + relation: policy_manager + object: organization:openlane +- user: user:ulid-registry-manager + relation: member + object: organization:openlane +- user: user:ulid-registry-manager + relation: registry_manager + object: organization:openlane +- user: user:ulid-group-manager + relation: member + object: organization:openlane +- user: user:ulid-group-manager + relation: group_manager + object: organization:openlane +- user: user:ulid-compliance-manager + relation: member + object: organization:openlane +- user: user:ulid-compliance-manager + relation: compliance_manager + object: organization:openlane +- user: user:ulid-workflow-manager + relation: member + object: organization:openlane +- user: user:ulid-workflow-manager + relation: workflow_manager + object: organization:openlane +- user: user:ulid-campaign-manager + relation: member + object: organization:openlane +- user: user:ulid-campaign-manager + relation: campaign_manager + object: organization:openlane diff --git a/fga/tests/tuples/assessment_responses.yaml b/fga/tests/tuples/assessment_responses.yaml index aae8318c0f..8b1818e169 100644 --- a/fga/tests/tuples/assessment_responses.yaml +++ b/fga/tests/tuples/assessment_responses.yaml @@ -1,6 +1,6 @@ # assessment to parent organization - user: organization:openlane - relation: parent + relation: parent_context object: assessment:assessment-1 # owner and edit access for the assessment @@ -14,10 +14,6 @@ relation: viewer object: assessment:assessment-1 -# aassessment response to the organization and parent assessment -- user: organization:openlane - relation: parent - object: assessment_response:response-1 - user: assessment:assessment-1 relation: parent object: assessment_response:response-1 diff --git a/fga/tests/tuples/assets.yaml b/fga/tests/tuples/assets.yaml index 77d63d5f42..2651f30f8b 100644 --- a/fga/tests/tuples/assets.yaml +++ b/fga/tests/tuples/assets.yaml @@ -5,11 +5,7 @@ # asset-1 is owned by openlane organization - user: organization:openlane - relation: parent - object: asset:asset-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor + relation: parent_context object: asset:asset-1 # blocked user - user: user:ulid-blocked @@ -20,14 +16,14 @@ relation: parent object: asset:asset-2 # org owner has editor access via platform -- user: organization:openlane#owner - relation: editor +- user: organization:openlane + relation: parent_context object: asset:asset-2 # asset-3 is associated with entity-1 - user: entity:entity-1 relation: parent object: asset:asset-3 # org owner has editor access via entity -- user: organization:openlane#owner - relation: editor +- user: organization:openlane + relation: parent_context object: asset:asset-3 diff --git a/fga/tests/tuples/campaigns.yaml b/fga/tests/tuples/campaigns.yaml index 86d2edc338..f2107858f9 100644 --- a/fga/tests/tuples/campaigns.yaml +++ b/fga/tests/tuples/campaigns.yaml @@ -1,16 +1,23 @@ -# campaign with organization parent +# set parent contexts for campaigns, these would be set via contextual tuples in the application - user: organization:openlane - relation: parent + relation: parent_context object: campaign:campaign-1 +- user: organization:openlane + relation: parent_context + object: campaign:campaign-2 +- user: organization:openlane + relation: parent_context + object: campaign:campaign-3 # campaign with user parent (for webhook/service contexts) + - user: user:ulid-of-owner - relation: parent + relation: editor object: campaign:campaign-2 # campaign with service parent - user: service:ulid-of-service-editor - relation: parent + relation: editor object: campaign:campaign-3 # campaign_target with campaign parent @@ -18,13 +25,13 @@ relation: parent object: campaign_target:target-1 -# campaign_target with user parent (for webhook/service contexts) -- user: user:ulid-of-owner +# campaign_target with campaign parent +- user: campaign:campaign-2 relation: parent object: campaign_target:target-2 # campaign_target with service parent -- user: service:ulid-of-service-editor +- user: campaign:campaign-3 relation: parent object: campaign_target:target-3 @@ -37,3 +44,15 @@ - user: user:ulid-blocked relation: blocked object: campaign_target:target-1 + +- user: user:ulid-of-member + relation: member + object: group:campaign-manager-group + +- user: group:campaign-manager-group#member + relation: editor + object: campaign:campaign-3 + +- user: user:ulid-of-another-member + relation: campaign_manager + object: organization:openlane diff --git a/fga/tests/tuples/controls.yaml b/fga/tests/tuples/controls.yaml index ea7220aa2b..3441acbec6 100644 --- a/fga/tests/tuples/controls.yaml +++ b/fga/tests/tuples/controls.yaml @@ -3,8 +3,11 @@ # This file is specific to controls ############################################ - user: organization:openlane - relation: parent + relation: parent_context object: control:control-1 +- user: organization:openlane + relation: parent_context + object: control:control-2 - user: program:program-1 relation: parent object: control:control-1 @@ -41,10 +44,13 @@ - user: control:control-1 relation: parent object: control_objective:control_objective-1 +- user: control:control-1 + relation: parent + object: control_implementation:control_implementation-1 - user: subcontrol:subcontrol-1 relation: parent object: control_objective:control_objective-2 -- user: program:program-1 +- user: control:control-2 relation: parent object: control_objective:control_objective-3 - user: group:control-owner-1#member @@ -62,7 +68,7 @@ object: organization:tc-org-1 ## trust center controls (publicly visible on trust center) - user: organization:tc-org-1 - relation: parent + relation: parent_context object: control:ots-01.1 - user: standard:standard-trust-center relation: parent @@ -72,17 +78,17 @@ object: control:ots-01.1 ## trust center controls (not visible on trust center) - user: organization:tc-org-1 - relation: parent + relation: parent_context object: control:ots-01.2 - user: standard:standard-trust-center relation: parent object: control:ots-01.2 ## mapped controls - user: organization:openlane - relation: parent + relation: parent_context object: mapped_control:mapped_control-1 - user: organization:another-org - relation: parent + relation: parent_context object: mapped_control:mapped_control-2 - user: user:ulid-group-mapped-control-1-editor relation: member diff --git a/fga/tests/tuples/entities.yaml b/fga/tests/tuples/entities.yaml index 88a26798bb..05e2ab32ee 100644 --- a/fga/tests/tuples/entities.yaml +++ b/fga/tests/tuples/entities.yaml @@ -5,13 +5,5 @@ # entity-1 is owned by openlane organization - user: organization:openlane - relation: parent - object: entity:entity-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: entity:entity-1 -# blocked user -- user: user:ulid-blocked - relation: blocked + relation: parent_context object: entity:entity-1 diff --git a/fga/tests/tuples/evidence.yaml b/fga/tests/tuples/evidence.yaml index 21eff27a44..8bdb6ad50b 100644 --- a/fga/tests/tuples/evidence.yaml +++ b/fga/tests/tuples/evidence.yaml @@ -6,9 +6,6 @@ - user: program:program-1 relation: parent object: evidence:evidence-1 -- user: user:ulid-admin - relation: can_delete - object: evidence:evidence-1 - user: task:task-1 relation: parent object: evidence:evidence-1 @@ -28,7 +25,7 @@ relation: editor object: evidence:evidence-1 - user: organization:openlane - relation: parent + relation: parent_context object: group:editor-1 condition: name: public_group @@ -37,3 +34,9 @@ - user: user:group-editor relation: member object: organization:openlane +- user: control:control-with-evidence + relation: parent + object: evidence:evidence-2 +- user: organization:openlane + relation: parent_context + object: control:control-with-evidence diff --git a/fga/tests/tuples/files.yaml b/fga/tests/tuples/files.yaml index 7c506e1628..50b3debbc0 100644 --- a/fga/tests/tuples/files.yaml +++ b/fga/tests/tuples/files.yaml @@ -39,7 +39,7 @@ relation: owner object: organization:contact-org - user: organization:contact-org - relation: parent + relation: parent_context object: contact:contact-1 # user-owned files with organization member access diff --git a/fga/tests/tuples/findings.yaml b/fga/tests/tuples/findings.yaml index a8ea32d56e..8f46d61fde 100644 --- a/fga/tests/tuples/findings.yaml +++ b/fga/tests/tuples/findings.yaml @@ -3,16 +3,8 @@ # This file is specific to findings ############################################ -# finding-1 is owned by openlane organization -- user: organization:openlane - relation: parent - object: finding:finding-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: finding:finding-1 # blocked user -- user: user:ulid-blocked +- user: group:group-blocked#member relation: blocked object: finding:finding-1 @@ -20,15 +12,20 @@ - user: program:program-1 relation: parent object: finding:finding-2 -# org owner has editor access via organization (program is under openlane) -- user: organization:openlane#owner + +- user: user:ulid-of-member + relation: admin + object: program:program-1 + +- user: user:ulid-of-member relation: editor - object: finding:finding-2 + object: control:control-1 -# finding-3 is associated with a scan -- user: organization:openlane +- user: control:control-1 relation: parent - object: scan:scan-1 + object: finding:finding-3 + +# finding-3 is associated with a scan - user: scan:scan-1 relation: parent object: finding:finding-3 diff --git a/fga/tests/tuples/groups.yaml b/fga/tests/tuples/groups.yaml index 188a0cb525..4320f7e896 100644 --- a/fga/tests/tuples/groups.yaml +++ b/fga/tests/tuples/groups.yaml @@ -5,7 +5,7 @@ # setup group with owner - user: organization:openlane - relation: parent + relation: parent_context object: group:cat-lovers condition: name: public_group @@ -13,7 +13,7 @@ public: true # setup private group with owner - user: organization:openlane - relation: parent + relation: parent_context object: group:cat-haters condition: name: public_group diff --git a/fga/tests/tuples/identity_holders.yaml b/fga/tests/tuples/identity_holders.yaml index 7c5c9856b6..04d5ba7c57 100644 --- a/fga/tests/tuples/identity_holders.yaml +++ b/fga/tests/tuples/identity_holders.yaml @@ -5,12 +5,9 @@ # identity_holder-1 is owned by openlane organization - user: organization:openlane - relation: parent - object: identity_holder:identity_holder-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor + relation: parent_context object: identity_holder:identity_holder-1 + # blocked user - user: user:ulid-blocked relation: blocked @@ -20,7 +17,7 @@ - user: platform:platform-1 relation: parent object: identity_holder:identity_holder-2 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor + +- user: organization:openlane + relation: parent_context object: identity_holder:identity_holder-2 diff --git a/fga/tests/tuples/notes.yaml b/fga/tests/tuples/notes.yaml index 11ed32ce76..b8550b93b2 100644 --- a/fga/tests/tuples/notes.yaml +++ b/fga/tests/tuples/notes.yaml @@ -5,9 +5,12 @@ - user: user:ulid-admin relation: owner object: note:note-1 -- user: organization:openlane#owner - relation: editor +- user: organization:openlane + relation: parent_context + object: note:note-1 +- user: evidence:evidence-1 + relation: parent object: note:note-1 - user: user:ulid-other-1 - relation: can_view - object: note:note-1 # direct access + relation: editor + object: evidence:evidence-1 diff --git a/fga/tests/tuples/organizations.yaml b/fga/tests/tuples/organizations.yaml index a7c61871c2..bebc88a08b 100644 --- a/fga/tests/tuples/organizations.yaml +++ b/fga/tests/tuples/organizations.yaml @@ -24,7 +24,7 @@ object: organization:restricted # setup group for group creator access check - user: organization:openlane - relation: parent + relation: parent_context object: group:evidence-creator condition: name: public_group diff --git a/fga/tests/tuples/platforms.yaml b/fga/tests/tuples/platforms.yaml index 4c7a41423e..97dcdb6b6d 100644 --- a/fga/tests/tuples/platforms.yaml +++ b/fga/tests/tuples/platforms.yaml @@ -5,13 +5,5 @@ # platform-1 is owned by openlane organization - user: organization:openlane - relation: parent - object: platform:platform-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: platform:platform-1 -# blocked user -- user: user:ulid-blocked - relation: blocked + relation: parent_context object: platform:platform-1 diff --git a/fga/tests/tuples/policies.yaml b/fga/tests/tuples/policies.yaml index 2bdd590a7e..76b771770e 100644 --- a/fga/tests/tuples/policies.yaml +++ b/fga/tests/tuples/policies.yaml @@ -8,7 +8,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-editor condition: name: public_group @@ -22,7 +22,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-blocked condition: name: public_group @@ -34,10 +34,10 @@ # setup internal_policy - user: user:ulid-admin - relation: admin + relation: editor object: internal_policy:internal_policy-1 - user: organization:openlane - relation: parent + relation: parent_context object: internal_policy:internal_policy-1 # setup group permissions for internal_policy @@ -48,12 +48,6 @@ relation: blocked object: internal_policy:internal_policy-1 -# setup view permissions for auditors -- user: program:program-1#auditor - relation: viewer - object: internal_policy:internal_policy-1 - - # setup approver permissions for the internal_policy - user: group:internal-policy-approver#member relation: approver @@ -69,3 +63,10 @@ - user: user:user-in-group-delegate relation: member object: group:internal-policy-delegate + + +# add parent program to policy +- user: program:program-1 + relation: parent + object: internal_policy:internal_policy-1 + diff --git a/fga/tests/tuples/procedures.yaml b/fga/tests/tuples/procedures.yaml index ef98a7d632..7b672a207f 100644 --- a/fga/tests/tuples/procedures.yaml +++ b/fga/tests/tuples/procedures.yaml @@ -8,7 +8,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-editor condition: name: public_group @@ -22,7 +22,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-blocked condition: name: public_group @@ -34,10 +34,10 @@ # setup procedure - user: user:ulid-admin - relation: admin + relation: editor object: procedure:procedure-1 - user: organization:openlane - relation: parent + relation: parent_context object: procedure:procedure-1 # setup group permissions for procedure @@ -48,12 +48,6 @@ relation: blocked object: procedure:procedure-1 -# setup view permissions for auditors -- user: program:program-1#auditor - relation: viewer - object: procedure:procedure-1 - - # setup approver permissions for the procedure - user: group:internal-policy-approver#member relation: approver diff --git a/fga/tests/tuples/programs.yaml b/fga/tests/tuples/programs.yaml index 0655923951..e97bf8f871 100644 --- a/fga/tests/tuples/programs.yaml +++ b/fga/tests/tuples/programs.yaml @@ -8,7 +8,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-editor condition: name: public_group @@ -22,7 +22,7 @@ relation: member object: organization:openlane - user: organization:openlane - relation: parent + relation: parent_context object: group:group-blocked condition: name: public_group diff --git a/fga/tests/tuples/remediations.yaml b/fga/tests/tuples/remediations.yaml index 798cc82be2..936cb058fc 100644 --- a/fga/tests/tuples/remediations.yaml +++ b/fga/tests/tuples/remediations.yaml @@ -3,24 +3,15 @@ # This file is specific to remediations ############################################ -# remediation-1 is owned by openlane organization -- user: organization:openlane - relation: parent - object: remediation:remediation-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: remediation:remediation-1 -# blocked user -- user: user:ulid-blocked - relation: blocked - object: remediation:remediation-1 - # remediation-2 is associated with a finding - user: finding:finding-1 relation: parent object: remediation:remediation-2 -# org owner has editor access via organization -- user: organization:openlane#owner + +- user: user:ulid-of-member relation: editor + object: vulnerability:vulnerability-2 + +- user: vulnerability:vulnerability-2 + relation: parent object: remediation:remediation-2 diff --git a/fga/tests/tuples/risks.yaml b/fga/tests/tuples/risks.yaml new file mode 100644 index 0000000000..c7f5453517 --- /dev/null +++ b/fga/tests/tuples/risks.yaml @@ -0,0 +1,37 @@ +############################################ +# Tuples for testing the FGA implementation +# This file is specific to risks +############################################ + +# risk-1 is owned by openlane organization +- user: organization:openlane + relation: parent_context + object: risk:risk-1 +# risk-1 is associated with program-with-risk-1 +- user: program:program-with-risk-1 + relation: parent + object: risk:risk-1 +# member user can't see or edit risk by default but can after being added as an admin to the program +- user: organization:openlane + relation: parent_context + object: program:program-with-risk-1 +- user: user:ulid-member-user-1 + relation: _self + object: user:ulid-member-user-1 +- user: user:ulid-member-user-1 + relation: admin + object: program:program-with-risk-1 +- user: user:ulid-member-user-1 + relation: admin + object: organization:openlane +# member user can't see or edit risk by default but can see the risk after being added as a member to the program +- user: user:ulid-member-user-2 + relation: _self + object: user:ulid-member-user-2 +- user: user:ulid-member-user-2 + relation: member + object: program:program-with-risk-1 +- user: user:ulid-member-user-2 + relation: member + object: organization:openlane + diff --git a/fga/tests/tuples/scans.yaml b/fga/tests/tuples/scans.yaml index c2e52635f0..7820ce0743 100644 --- a/fga/tests/tuples/scans.yaml +++ b/fga/tests/tuples/scans.yaml @@ -2,25 +2,19 @@ # Tuples for testing the FGA implementation # This file is specific to scans ############################################ - -# scan-1 is owned by openlane organization - user: organization:openlane - relation: parent - object: scan:scan-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: scan:scan-1 -# blocked user -- user: user:ulid-blocked - relation: blocked + relation: parent_context object: scan:scan-1 -# scan-2 is associated with a platform -- user: platform:platform-1 +# scan-2 is associated with a asset +- user: asset:asset-1 relation: parent object: scan:scan-2 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor + +- user: organization:openlane + relation: parent_context object: scan:scan-2 + +- user: user:ulid-of-admin + relation: editor + object: asset:asset-1 diff --git a/fga/tests/tuples/standards.yaml b/fga/tests/tuples/standards.yaml index b07d64e77a..d6a161130d 100644 --- a/fga/tests/tuples/standards.yaml +++ b/fga/tests/tuples/standards.yaml @@ -16,7 +16,7 @@ object: standard:standard-2 # org owned standard - user: organization:openlane - relation: parent + relation: parent_context object: standard:standard-org-custom # control under standard - user: standard:standard-system-owned-1 diff --git a/fga/tests/tuples/tasks.yaml b/fga/tests/tuples/tasks.yaml index c847fcef7d..a8ae850a9f 100644 --- a/fga/tests/tuples/tasks.yaml +++ b/fga/tests/tuples/tasks.yaml @@ -5,9 +5,6 @@ - user: user:ulid-of-admin relation: parent # task creator object: task:task-1 -- user: organization:openlane#owner - relation: editor - object: task:task-1 - user: user:ulid-of-member relation: assignee # assignee of the task object: task:task-1 @@ -18,14 +15,14 @@ relation: assigner # assigner of the task object: task:task-1 - user: user:ulid-other-1 - relation: can_view - object: task:task-1 # direct access + relation: viewer + object: task:task-1 # direct viewer access to task - user: program:program-1 relation: parent object: task:task-1 # program has access to task # add this here to so its correct for the task; this is a duplicate of the one in controls.yaml - user: organization:openlane - relation: parent + relation: parent_context object: control:control-1 - user: control:control-1 relation: parent @@ -48,7 +45,7 @@ relation: owner object: organization:group-org - user: organization:group-org - relation: parent + relation: parent_context object: group:group-1 condition: name: public_group diff --git a/fga/tests/tuples/trust_center.yaml b/fga/tests/tuples/trust_center.yaml index 7d07bbd410..8ad4214993 100644 --- a/fga/tests/tuples/trust_center.yaml +++ b/fga/tests/tuples/trust_center.yaml @@ -6,7 +6,7 @@ context: allowed_domains: [] - user: organization:tc-org-2 - relation: parent + relation: parent_context object: trust_center:tc-2 - user: user:tc-owner-tc-2 relation: _self @@ -30,5 +30,5 @@ relation: member object: organization:tc-org-2 - user: user:tc-manager-tc-2 - relation: trust_center_admin + relation: trust_center_manager object: organization:tc-org-2 diff --git a/fga/tests/tuples/trust_center_doc.yaml b/fga/tests/tuples/trust_center_doc.yaml index 4d5495e9fb..ffdd67610a 100644 --- a/fga/tests/tuples/trust_center_doc.yaml +++ b/fga/tests/tuples/trust_center_doc.yaml @@ -1,5 +1,5 @@ - user: organization:tc-org-1 - relation: parent + relation: parent_context object: trust_center:tc-1 - user: user:tc-owner-1 relation: owner @@ -7,7 +7,15 @@ - user: user:tc-viewer-1 relation: member object: organization:tc-org-1 +- user: organization:tc-org-1#member + relation: access + object: organization:tc-org-1 + condition: + name: email_domains_allowed + context: + allowed_domains: [] +# Setup public file - user: trust_center:tc-1 relation: parent object: trust_center_doc:tcdoc-1 @@ -22,13 +30,31 @@ relation: nda_signed object: trust_center:tc-1 +# setup protected file that requires nda signing +- user: trust_center:tc-1 + relation: parent + object: trust_center_doc:tcdoc-3 +- user: trust_center_doc:tcdoc-3 + relation: tc_doc_parent + object: file:file-3 +# doc metadata is publicly visible; file access is separately gated by nda_signed +- user: user:* + relation: can_view + object: trust_center_doc:tcdoc-3 + # Allow public access to trust center documents (but not files) - user: user:* relation: can_view object: trust_center:tc-1 - +- user: organization:tc-org-2#member + relation: access + object: organization:tc-org-2 + condition: + name: email_domains_allowed + context: + allowed_domains: [] - user: organization:tc-org-2 - relation: parent + relation: parent_context object: trust_center:tc-2 - user: user:tc-owner-2 relation: owner diff --git a/fga/tests/tuples/trust_center_subprocessor.yaml b/fga/tests/tuples/trust_center_subprocessor.yaml index 977c7fad60..ec565365ec 100644 --- a/fga/tests/tuples/trust_center_subprocessor.yaml +++ b/fga/tests/tuples/trust_center_subprocessor.yaml @@ -1,5 +1,5 @@ - user: organization:tc-org-1 - relation: parent + relation: parent_context object: trust_center:tc-1 - user: user:tc-owner-1 relation: owner diff --git a/fga/tests/tuples/vulnerabilities.yaml b/fga/tests/tuples/vulnerabilities.yaml index bc4b93e035..7bddc25793 100644 --- a/fga/tests/tuples/vulnerabilities.yaml +++ b/fga/tests/tuples/vulnerabilities.yaml @@ -3,16 +3,8 @@ # This file is specific to vulnerabilities ############################################ -# vulnerability-1 is owned by openlane organization -- user: organization:openlane - relation: parent - object: vulnerability:vulnerability-1 -# org owner has editor access via organization -- user: organization:openlane#owner - relation: editor - object: vulnerability:vulnerability-1 # blocked user -- user: user:ulid-blocked +- user: group:group-blocked#member relation: blocked object: vulnerability:vulnerability-1 @@ -20,15 +12,16 @@ - user: program:program-1 relation: parent object: vulnerability:vulnerability-2 -# org owner has editor access via organization (program is under openlane) -- user: organization:openlane#owner - relation: editor - object: vulnerability:vulnerability-2 + +- user: user:ulid-of-member + relation: admin + object: program:program-1 # vulnerability-3 is associated with a scan -- user: organization:openlane - relation: parent - object: scan:scan-1 - user: scan:scan-1 relation: parent object: vulnerability:vulnerability-3 + +- user: user:ulid-of-member + relation: viewer + object: scan:scan-1 diff --git a/fga/tests/tuples/workflows.yaml b/fga/tests/tuples/workflows.yaml index e150bb2c81..2180144da9 100644 --- a/fga/tests/tuples/workflows.yaml +++ b/fga/tests/tuples/workflows.yaml @@ -15,20 +15,11 @@ # workflow_definition-1 is owned by openlane organization - user: organization:openlane - relation: parent + relation: parent_context object: workflow_definition:workflow_definition-1 - user: organization:openlane - relation: parent - object: workflow_definition:workflow_definition-2 - -# org owner has editor access to workflow_definition -- user: organization:openlane#owner - relation: editor - object: workflow_definition:workflow_definition-1 - -- user: organization:openlane#owner - relation: editor + relation: parent_context object: workflow_definition:workflow_definition-2 # workflow_instance-1 is owned by openlane organization and linked to workflow_definition-1 @@ -44,7 +35,7 @@ # add control to parent to test view access to members via parent objects, e.g. all org members can view controls # so they should also be able to see workflow instances linked to the control - user: organization:openlane - relation: parent + relation: parent_context object: control:control-1 - user: control:control-1 relation: parent @@ -108,7 +99,7 @@ # setup a group for workflow editor access (only applies to workflow_definition) - user: organization:openlane - relation: parent + relation: parent_context object: group:workflow-editors condition: name: public_group diff --git a/internal/controls/trustcenter.go b/internal/controls/trustcenter.go index f4c0be0de5..8972b23e72 100644 --- a/internal/controls/trustcenter.go +++ b/internal/controls/trustcenter.go @@ -8,7 +8,6 @@ import ( "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/ent/generated/standard" "github.com/theopenlane/core/pkg/logx" - "github.com/theopenlane/core/pkg/middleware/transaction" "github.com/theopenlane/iam/auth" "github.com/theopenlane/utils/rout" ) @@ -34,7 +33,7 @@ func isTrustCenterStandard(std *generated.Standard) bool { } // getTrustCenterControls retrieves the trust center controls -func getTrustCenterControls(ctx context.Context, client *generated.Tx) ([]*generated.Control, error) { +func getTrustCenterControls(ctx context.Context, client *generated.Client) ([]*generated.Control, error) { if client == nil { return nil, nil } @@ -81,7 +80,7 @@ func getTrustCenterControls(ctx context.Context, client *generated.Tx) ([]*gener // CloneTrustCenterControl clones the trust center controls and assumes the the user has the trust center module already // this is intended to be called from an internal-hook when a trust center is created -func CloneTrustCenterControls(ctx context.Context) error { +func CloneTrustCenterControls(ctx context.Context, m *generated.TrustCenterMutation) error { caller, ok := auth.CallerFromContext(ctx) if !ok || caller == nil || caller.OrganizationID == "" { return rout.NewMissingRequiredFieldError("owner_id") @@ -89,14 +88,7 @@ func CloneTrustCenterControls(ctx context.Context) error { orgID := caller.OrganizationID - txClient := getClientFromContext(ctx) - if txClient == nil { - logx.FromContext(ctx).Error().Msg("unable to get transaction client from context") - - return nil - } - - controls, err := getTrustCenterControls(ctx, txClient) + controls, err := getTrustCenterControls(ctx, m.Client()) if err != nil { return err } @@ -108,7 +100,7 @@ func CloneTrustCenterControls(ctx context.Context) error { } // trust center controls do no have subcontrols so we can ignore the returned subcontrols to create - _, _, err = CloneControls(ctx, txClient.Client(), controls, WithOrgID(orgID)) + _, _, err = CloneControls(ctx, m.Client(), controls, WithOrgID(orgID)) if err != nil { logx.FromContext(ctx).Error().Err(err).Msg("error cloning trust center controls") @@ -117,30 +109,3 @@ func CloneTrustCenterControls(ctx context.Context) error { return nil } - -// getClientFromContext is a helper function to get the generated client from the context and log an error if it is not found -// it will not prevent the function from executing, but it will return nil and log the error for debugging purposes -func getClientFromContext(ctx context.Context) *generated.Tx { - txClient := transactionFromContext(ctx) - if txClient == nil { - logx.FromContext(ctx).Error().Msg("unable to get client from context") - - return nil - } - - return txClient -} - -// transactionFromContext returns the transaction from the context if it exists -func transactionFromContext(ctx context.Context) *generated.Tx { - // check if the transaction is in the context - // this is returned from all graphql requests - tx := generated.TxFromContext(ctx) - if tx != nil { - return tx - } - - // check if the transaction is in the context - // from the REST middleware - return transaction.FromContext(ctx) -} diff --git a/internal/ent/authzgenerated/accessmap.go b/internal/ent/authzgenerated/accessmap.go index 2ae1b4a121..3bc749cce7 100644 --- a/internal/ent/authzgenerated/accessmap.go +++ b/internal/ent/authzgenerated/accessmap.go @@ -2360,7 +2360,39 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, }, -}, "organization": {"control_creators": { +}, "organization": {"action_plan_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "api_token_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "assessment_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "asset_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "campaign_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "campaign_target_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "check_result_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "contact_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "control_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, @@ -2372,19 +2404,43 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "custom_type_enum_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "discussion_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "email_branding_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "email_template_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "entity_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "entity_type_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "evidence_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "asset_creators": { +}, "export_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "finding_creators": { +}, "file_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "vulnerability_creators": { +}, "finding_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, @@ -2392,10 +2448,38 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "identity_holder_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "integration_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "integration_webhook_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "internal_policy_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "job_runner_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "job_runner_registration_token_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "job_runner_token_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "job_template_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "mapped_control_creators": { ObjectType: "group", SkipEditCheck: true, @@ -2404,6 +2488,22 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "note_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "notification_template_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "organization_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "platform_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "procedure_creators": { ObjectType: "group", SkipEditCheck: true, @@ -2412,11 +2512,19 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "remediation_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "review_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "risk_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "identity_holder_creators": { +}, "scan_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, @@ -2424,11 +2532,15 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "scheduled_job_run_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "standard_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "template_creators": { +}, "subcontrol_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, @@ -2436,15 +2548,131 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "subscriber_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "system_detail_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "tag_definition_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "task_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "template_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "trust_center_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "trust_center_compliance_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "trust_center_doc_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, +}, "trust_center_entity_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "trust_center_faq_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "trust_center_nda_request_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, }, "trust_center_subprocessor_creators": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "action_plan_creators": { +}, "trust_center_watermark_config_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "user_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "user_setting_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "vendor_risk_score_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "vulnerability_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_assignment_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_assignment_target_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_definition_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_event_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_instance_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_object_ref_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflow_proposal_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "campaigns_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "compliance_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "group_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "policies_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "registry_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "risk_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "trust_center_manager": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, +}, "workflows_manager": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, @@ -3957,11 +4185,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: true, CheckViewAccess: true, }, "custom_domain": { - ObjectType: "organization", + ObjectType: "custom_domain", SkipEditCheck: false, CheckViewAccess: false, }, "preview_domain": { - ObjectType: "organization", + ObjectType: "custom_domain", SkipEditCheck: false, CheckViewAccess: false, }, "setting": { diff --git a/internal/ent/generated/assessment.go b/internal/ent/generated/assessment.go index 97ceaca064..6095e6427c 100644 --- a/internal/ent/generated/assessment.go +++ b/internal/ent/generated/assessment.go @@ -35,7 +35,7 @@ type Assessment struct { DeletedBy string `json:"deleted_by,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object + // the ID of the organization owner of the object OwnerID string `json:"owner_id,omitempty"` // indicates if the record is owned by the the openlane system and not by an organization SystemOwned bool `json:"system_owned,omitempty"` diff --git a/internal/ent/generated/authz_checks.go b/internal/ent/generated/authz_checks.go index 4c45c1ce70..8abbf4c40d 100644 --- a/internal/ent/generated/authz_checks.go +++ b/internal/ent/generated/authz_checks.go @@ -7803,7 +7803,6 @@ func (m *TrustCenterSettingMutation) CheckAccessForEdit(ctx context.Context) err input, ok := gInput.(CreateTrustCenterSettingInput) if ok { objectID = *input.TrustCenterID - } // check the id from the args diff --git a/internal/ent/generated/client.go b/internal/ent/generated/client.go index 1437fcc10f..848fed7fdf 100644 --- a/internal/ent/generated/client.go +++ b/internal/ent/generated/client.go @@ -20528,6 +20528,158 @@ func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization return obj } +// QueryActionPlanCreators queries the action_plan_creators edge of a Organization. +func (c *OrganizationClient) QueryActionPlanCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlanCreatorsTable, organization.ActionPlanCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAPITokenCreators queries the api_token_creators edge of a Organization. +func (c *OrganizationClient) QueryAPITokenCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokenCreatorsTable, organization.APITokenCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAssessmentCreators queries the assessment_creators edge of a Organization. +func (c *OrganizationClient) QueryAssessmentCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentCreatorsTable, organization.AssessmentCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAssetCreators queries the asset_creators edge of a Organization. +func (c *OrganizationClient) QueryAssetCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetCreatorsTable, organization.AssetCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryCampaignCreators queries the campaign_creators edge of a Organization. +func (c *OrganizationClient) QueryCampaignCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignCreatorsTable, organization.CampaignCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryCampaignTargetCreators queries the campaign_target_creators edge of a Organization. +func (c *OrganizationClient) QueryCampaignTargetCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignTargetCreatorsTable, organization.CampaignTargetCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryCheckResultCreators queries the check_result_creators edge of a Organization. +func (c *OrganizationClient) QueryCheckResultCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CheckResultCreatorsTable, organization.CheckResultCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryContactCreators queries the contact_creators edge of a Organization. +func (c *OrganizationClient) QueryContactCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactCreatorsTable, organization.ContactCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryControlCreators queries the control_creators edge of a Organization. func (c *OrganizationClient) QueryControlCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() @@ -20585,15 +20737,15 @@ func (c *OrganizationClient) QueryControlObjectiveCreators(_m *Organization) *Gr return query } -// QueryEvidenceCreators queries the evidence_creators edge of a Organization. -func (c *OrganizationClient) QueryEvidenceCreators(_m *Organization) *GroupQuery { +// QueryCustomTypeEnumCreators queries the custom_type_enum_creators edge of a Organization. +func (c *OrganizationClient) QueryCustomTypeEnumCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceCreatorsTable, organization.EvidenceCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomTypeEnumCreatorsTable, organization.CustomTypeEnumCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20604,15 +20756,15 @@ func (c *OrganizationClient) QueryEvidenceCreators(_m *Organization) *GroupQuery return query } -// QueryAssetCreators queries the asset_creators edge of a Organization. -func (c *OrganizationClient) QueryAssetCreators(_m *Organization) *GroupQuery { +// QueryDiscussionCreators queries the discussion_creators edge of a Organization. +func (c *OrganizationClient) QueryDiscussionCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetCreatorsTable, organization.AssetCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DiscussionCreatorsTable, organization.DiscussionCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20623,15 +20775,15 @@ func (c *OrganizationClient) QueryAssetCreators(_m *Organization) *GroupQuery { return query } -// QueryFindingCreators queries the finding_creators edge of a Organization. -func (c *OrganizationClient) QueryFindingCreators(_m *Organization) *GroupQuery { +// QueryEmailBrandingCreators queries the email_branding_creators edge of a Organization. +func (c *OrganizationClient) QueryEmailBrandingCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingCreatorsTable, organization.FindingCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailBrandingCreatorsTable, organization.EmailBrandingCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20642,15 +20794,15 @@ func (c *OrganizationClient) QueryFindingCreators(_m *Organization) *GroupQuery return query } -// QueryVulnerabilityCreators queries the vulnerability_creators edge of a Organization. -func (c *OrganizationClient) QueryVulnerabilityCreators(_m *Organization) *GroupQuery { +// QueryEmailTemplateCreators queries the email_template_creators edge of a Organization. +func (c *OrganizationClient) QueryEmailTemplateCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilityCreatorsTable, organization.VulnerabilityCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailTemplateCreatorsTable, organization.EmailTemplateCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20661,15 +20813,15 @@ func (c *OrganizationClient) QueryVulnerabilityCreators(_m *Organization) *Group return query } -// QueryGroupCreators queries the group_creators edge of a Organization. -func (c *OrganizationClient) QueryGroupCreators(_m *Organization) *GroupQuery { +// QueryEntityCreators queries the entity_creators edge of a Organization. +func (c *OrganizationClient) QueryEntityCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupCreatorsTable, organization.GroupCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityCreatorsTable, organization.EntityCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20680,15 +20832,15 @@ func (c *OrganizationClient) QueryGroupCreators(_m *Organization) *GroupQuery { return query } -// QueryInternalPolicyCreators queries the internal_policy_creators edge of a Organization. -func (c *OrganizationClient) QueryInternalPolicyCreators(_m *Organization) *GroupQuery { +// QueryEntityTypeCreators queries the entity_type_creators edge of a Organization. +func (c *OrganizationClient) QueryEntityTypeCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPolicyCreatorsTable, organization.InternalPolicyCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityTypeCreatorsTable, organization.EntityTypeCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20699,15 +20851,15 @@ func (c *OrganizationClient) QueryInternalPolicyCreators(_m *Organization) *Grou return query } -// QueryMappedControlCreators queries the mapped_control_creators edge of a Organization. -func (c *OrganizationClient) QueryMappedControlCreators(_m *Organization) *GroupQuery { +// QueryEvidenceCreators queries the evidence_creators edge of a Organization. +func (c *OrganizationClient) QueryEvidenceCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlCreatorsTable, organization.MappedControlCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceCreatorsTable, organization.EvidenceCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20718,15 +20870,15 @@ func (c *OrganizationClient) QueryMappedControlCreators(_m *Organization) *Group return query } -// QueryNarrativeCreators queries the narrative_creators edge of a Organization. -func (c *OrganizationClient) QueryNarrativeCreators(_m *Organization) *GroupQuery { +// QueryExportCreators queries the export_creators edge of a Organization. +func (c *OrganizationClient) QueryExportCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativeCreatorsTable, organization.NarrativeCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ExportCreatorsTable, organization.ExportCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20737,15 +20889,15 @@ func (c *OrganizationClient) QueryNarrativeCreators(_m *Organization) *GroupQuer return query } -// QueryProcedureCreators queries the procedure_creators edge of a Organization. -func (c *OrganizationClient) QueryProcedureCreators(_m *Organization) *GroupQuery { +// QueryFileCreators queries the file_creators edge of a Organization. +func (c *OrganizationClient) QueryFileCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProcedureCreatorsTable, organization.ProcedureCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FileCreatorsTable, organization.FileCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20756,15 +20908,15 @@ func (c *OrganizationClient) QueryProcedureCreators(_m *Organization) *GroupQuer return query } -// QueryProgramCreators queries the program_creators edge of a Organization. -func (c *OrganizationClient) QueryProgramCreators(_m *Organization) *GroupQuery { +// QueryFindingCreators queries the finding_creators edge of a Organization. +func (c *OrganizationClient) QueryFindingCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramCreatorsTable, organization.ProgramCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingCreatorsTable, organization.FindingCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20775,15 +20927,15 @@ func (c *OrganizationClient) QueryProgramCreators(_m *Organization) *GroupQuery return query } -// QueryRiskCreators queries the risk_creators edge of a Organization. -func (c *OrganizationClient) QueryRiskCreators(_m *Organization) *GroupQuery { +// QueryGroupCreators queries the group_creators edge of a Organization. +func (c *OrganizationClient) QueryGroupCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskCreatorsTable, organization.RiskCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupCreatorsTable, organization.GroupCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20813,15 +20965,15 @@ func (c *OrganizationClient) QueryIdentityHolderCreators(_m *Organization) *Grou return query } -// QueryScheduledJobCreators queries the scheduled_job_creators edge of a Organization. -func (c *OrganizationClient) QueryScheduledJobCreators(_m *Organization) *GroupQuery { +// QueryIntegrationCreators queries the integration_creators edge of a Organization. +func (c *OrganizationClient) QueryIntegrationCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobCreatorsTable, organization.ScheduledJobCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationCreatorsTable, organization.IntegrationCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20832,15 +20984,15 @@ func (c *OrganizationClient) QueryScheduledJobCreators(_m *Organization) *GroupQ return query } -// QueryStandardCreators queries the standard_creators edge of a Organization. -func (c *OrganizationClient) QueryStandardCreators(_m *Organization) *GroupQuery { +// QueryIntegrationWebhookCreators queries the integration_webhook_creators edge of a Organization. +func (c *OrganizationClient) QueryIntegrationWebhookCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardCreatorsTable, organization.StandardCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationWebhookCreatorsTable, organization.IntegrationWebhookCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20851,15 +21003,15 @@ func (c *OrganizationClient) QueryStandardCreators(_m *Organization) *GroupQuery return query } -// QueryTemplateCreators queries the template_creators edge of a Organization. -func (c *OrganizationClient) QueryTemplateCreators(_m *Organization) *GroupQuery { +// QueryInternalPolicyCreators queries the internal_policy_creators edge of a Organization. +func (c *OrganizationClient) QueryInternalPolicyCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplateCreatorsTable, organization.TemplateCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPolicyCreatorsTable, organization.InternalPolicyCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20870,15 +21022,15 @@ func (c *OrganizationClient) QueryTemplateCreators(_m *Organization) *GroupQuery return query } -// QuerySubprocessorCreators queries the subprocessor_creators edge of a Organization. -func (c *OrganizationClient) QuerySubprocessorCreators(_m *Organization) *GroupQuery { +// QueryJobRunnerCreators queries the job_runner_creators edge of a Organization. +func (c *OrganizationClient) QueryJobRunnerCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorCreatorsTable, organization.SubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerCreatorsTable, organization.JobRunnerCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20889,15 +21041,15 @@ func (c *OrganizationClient) QuerySubprocessorCreators(_m *Organization) *GroupQ return query } -// QueryTrustCenterDocCreators queries the trust_center_doc_creators edge of a Organization. -func (c *OrganizationClient) QueryTrustCenterDocCreators(_m *Organization) *GroupQuery { +// QueryJobRunnerRegistrationTokenCreators queries the job_runner_registration_token_creators edge of a Organization. +func (c *OrganizationClient) QueryJobRunnerRegistrationTokenCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterDocCreatorsTable, organization.TrustCenterDocCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerRegistrationTokenCreatorsTable, organization.JobRunnerRegistrationTokenCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20908,15 +21060,15 @@ func (c *OrganizationClient) QueryTrustCenterDocCreators(_m *Organization) *Grou return query } -// QueryTrustCenterSubprocessorCreators queries the trust_center_subprocessor_creators edge of a Organization. -func (c *OrganizationClient) QueryTrustCenterSubprocessorCreators(_m *Organization) *GroupQuery { +// QueryJobRunnerTokenCreators queries the job_runner_token_creators edge of a Organization. +func (c *OrganizationClient) QueryJobRunnerTokenCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterSubprocessorCreatorsTable, organization.TrustCenterSubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerTokenCreatorsTable, organization.JobRunnerTokenCreatorsColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group @@ -20927,15 +21079,946 @@ func (c *OrganizationClient) QueryTrustCenterSubprocessorCreators(_m *Organizati return query } -// QueryActionPlanCreators queries the action_plan_creators edge of a Organization. -func (c *OrganizationClient) QueryActionPlanCreators(_m *Organization) *GroupQuery { +// QueryJobTemplateCreators queries the job_template_creators edge of a Organization. +func (c *OrganizationClient) QueryJobTemplateCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlanCreatorsTable, organization.ActionPlanCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobTemplateCreatorsTable, organization.JobTemplateCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryMappedControlCreators queries the mapped_control_creators edge of a Organization. +func (c *OrganizationClient) QueryMappedControlCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlCreatorsTable, organization.MappedControlCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNarrativeCreators queries the narrative_creators edge of a Organization. +func (c *OrganizationClient) QueryNarrativeCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativeCreatorsTable, organization.NarrativeCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNoteCreators queries the note_creators edge of a Organization. +func (c *OrganizationClient) QueryNoteCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NoteCreatorsTable, organization.NoteCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNotificationTemplateCreators queries the notification_template_creators edge of a Organization. +func (c *OrganizationClient) QueryNotificationTemplateCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationTemplateCreatorsTable, organization.NotificationTemplateCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganizationCreators queries the organization_creators edge of a Organization. +func (c *OrganizationClient) QueryOrganizationCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrganizationCreatorsTable, organization.OrganizationCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryPlatformCreators queries the platform_creators edge of a Organization. +func (c *OrganizationClient) QueryPlatformCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.PlatformCreatorsTable, organization.PlatformCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryProcedureCreators queries the procedure_creators edge of a Organization. +func (c *OrganizationClient) QueryProcedureCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProcedureCreatorsTable, organization.ProcedureCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryProgramCreators queries the program_creators edge of a Organization. +func (c *OrganizationClient) QueryProgramCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramCreatorsTable, organization.ProgramCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRemediationCreators queries the remediation_creators edge of a Organization. +func (c *OrganizationClient) QueryRemediationCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RemediationCreatorsTable, organization.RemediationCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryReviewCreators queries the review_creators edge of a Organization. +func (c *OrganizationClient) QueryReviewCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ReviewCreatorsTable, organization.ReviewCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRiskCreators queries the risk_creators edge of a Organization. +func (c *OrganizationClient) QueryRiskCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskCreatorsTable, organization.RiskCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryScanCreators queries the scan_creators edge of a Organization. +func (c *OrganizationClient) QueryScanCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScanCreatorsTable, organization.ScanCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryScheduledJobCreators queries the scheduled_job_creators edge of a Organization. +func (c *OrganizationClient) QueryScheduledJobCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobCreatorsTable, organization.ScheduledJobCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryScheduledJobRunCreators queries the scheduled_job_run_creators edge of a Organization. +func (c *OrganizationClient) QueryScheduledJobRunCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobRunCreatorsTable, organization.ScheduledJobRunCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryStandardCreators queries the standard_creators edge of a Organization. +func (c *OrganizationClient) QueryStandardCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardCreatorsTable, organization.StandardCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubcontrolCreators queries the subcontrol_creators edge of a Organization. +func (c *OrganizationClient) QuerySubcontrolCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubcontrolCreatorsTable, organization.SubcontrolCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubprocessorCreators queries the subprocessor_creators edge of a Organization. +func (c *OrganizationClient) QuerySubprocessorCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorCreatorsTable, organization.SubprocessorCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubscriberCreators queries the subscriber_creators edge of a Organization. +func (c *OrganizationClient) QuerySubscriberCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscriberCreatorsTable, organization.SubscriberCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySystemDetailCreators queries the system_detail_creators edge of a Organization. +func (c *OrganizationClient) QuerySystemDetailCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SystemDetailCreatorsTable, organization.SystemDetailCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTagDefinitionCreators queries the tag_definition_creators edge of a Organization. +func (c *OrganizationClient) QueryTagDefinitionCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TagDefinitionCreatorsTable, organization.TagDefinitionCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTaskCreators queries the task_creators edge of a Organization. +func (c *OrganizationClient) QueryTaskCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TaskCreatorsTable, organization.TaskCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTemplateCreators queries the template_creators edge of a Organization. +func (c *OrganizationClient) QueryTemplateCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplateCreatorsTable, organization.TemplateCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterCreators queries the trust_center_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterCreatorsTable, organization.TrustCenterCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterComplianceCreators queries the trust_center_compliance_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterComplianceCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterComplianceCreatorsTable, organization.TrustCenterComplianceCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterDocCreators queries the trust_center_doc_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterDocCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterDocCreatorsTable, organization.TrustCenterDocCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterEntityCreators queries the trust_center_entity_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterEntityCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterEntityCreatorsTable, organization.TrustCenterEntityCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterFaqCreators queries the trust_center_faq_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterFaqCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterFaqCreatorsTable, organization.TrustCenterFaqCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterNdaRequestCreators queries the trust_center_nda_request_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterNdaRequestCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterNdaRequestCreatorsTable, organization.TrustCenterNdaRequestCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterSubprocessorCreators queries the trust_center_subprocessor_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterSubprocessorCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterSubprocessorCreatorsTable, organization.TrustCenterSubprocessorCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterWatermarkConfigCreators queries the trust_center_watermark_config_creators edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterWatermarkConfigCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterWatermarkConfigCreatorsTable, organization.TrustCenterWatermarkConfigCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUserCreators queries the user_creators edge of a Organization. +func (c *OrganizationClient) QueryUserCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.UserCreatorsTable, organization.UserCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUserSettingCreators queries the user_setting_creators edge of a Organization. +func (c *OrganizationClient) QueryUserSettingCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.UserSettingCreatorsTable, organization.UserSettingCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryVendorRiskScoreCreators queries the vendor_risk_score_creators edge of a Organization. +func (c *OrganizationClient) QueryVendorRiskScoreCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorRiskScoreCreatorsTable, organization.VendorRiskScoreCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryVulnerabilityCreators queries the vulnerability_creators edge of a Organization. +func (c *OrganizationClient) QueryVulnerabilityCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilityCreatorsTable, organization.VulnerabilityCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowAssignmentCreators queries the workflow_assignment_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowAssignmentCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentCreatorsTable, organization.WorkflowAssignmentCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowAssignmentTargetCreators queries the workflow_assignment_target_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowAssignmentTargetCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentTargetCreatorsTable, organization.WorkflowAssignmentTargetCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowDefinitionCreators queries the workflow_definition_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowDefinitionCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowDefinitionCreatorsTable, organization.WorkflowDefinitionCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowEventCreators queries the workflow_event_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowEventCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowEventCreatorsTable, organization.WorkflowEventCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowInstanceCreators queries the workflow_instance_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowInstanceCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowInstanceCreatorsTable, organization.WorkflowInstanceCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowObjectRefCreators queries the workflow_object_ref_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowObjectRefCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowObjectRefCreatorsTable, organization.WorkflowObjectRefCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowProposalCreators queries the workflow_proposal_creators edge of a Organization. +func (c *OrganizationClient) QueryWorkflowProposalCreators(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowProposalCreatorsTable, organization.WorkflowProposalCreatorsColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryCampaignsManager queries the campaigns_manager edge of a Organization. +func (c *OrganizationClient) QueryCampaignsManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignsManagerTable, organization.CampaignsManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryComplianceManager queries the compliance_manager edge of a Organization. +func (c *OrganizationClient) QueryComplianceManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ComplianceManagerTable, organization.ComplianceManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryGroupManager queries the group_manager edge of a Organization. +func (c *OrganizationClient) QueryGroupManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupManagerTable, organization.GroupManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryPoliciesManager queries the policies_manager edge of a Organization. +func (c *OrganizationClient) QueryPoliciesManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.PoliciesManagerTable, organization.PoliciesManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRegistryManager queries the registry_manager edge of a Organization. +func (c *OrganizationClient) QueryRegistryManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RegistryManagerTable, organization.RegistryManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRiskManager queries the risk_manager edge of a Organization. +func (c *OrganizationClient) QueryRiskManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskManagerTable, organization.RiskManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTrustCenterManager queries the trust_center_manager edge of a Organization. +func (c *OrganizationClient) QueryTrustCenterManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterManagerTable, organization.TrustCenterManagerColumn), + ) + schemaConfig := _m.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWorkflowsManager queries the workflows_manager edge of a Organization. +func (c *OrganizationClient) QueryWorkflowsManager(_m *Organization) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowsManagerTable, organization.WorkflowsManagerColumn), ) schemaConfig := _m.schemaConfig step.To.Schema = schemaConfig.Group diff --git a/internal/ent/generated/entql.go b/internal/ent/generated/entql.go index 97c723405e..54addc28ea 100644 --- a/internal/ent/generated/entql.go +++ b/internal/ent/generated/entql.go @@ -10759,2799 +10759,2739 @@ var schemaGraph = func() *sqlgraph.Schema { "OrgPrice", ) graph.MustAddE( - "control_creators", + "action_plan_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "control_implementation_creators", + "api_token_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "control_objective_creators", + "assessment_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "evidence_creators", + "asset_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "asset_creators", + "campaign_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "finding_creators", + "campaign_target_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "vulnerability_creators", + "check_result_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VulnerabilityCreatorsTable, - Columns: []string{organization.VulnerabilityCreatorsColumn}, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "group_creators", + "contact_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "internal_policy_creators", + "control_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "mapped_control_creators", + "control_implementation_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "narrative_creators", + "control_objective_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "procedure_creators", + "custom_type_enum_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "program_creators", + "discussion_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "risk_creators", + "email_branding_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "identity_holder_creators", + "email_template_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "scheduled_job_creators", + "entity_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "standard_creators", + "entity_type_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "template_creators", + "evidence_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "subprocessor_creators", + "export_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "trust_center_doc_creators", + "file_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "trust_center_subprocessor_creators", + "finding_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "action_plan_creators", + "group_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "parent", + "identity_holder_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: organization.ParentTable, - Columns: []string{organization.ParentColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, Bidi: false, }, "Organization", - "Organization", + "Group", ) graph.MustAddE( - "children", + "integration_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ChildrenTable, - Columns: []string{organization.ChildrenColumn}, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, Bidi: false, }, "Organization", - "Organization", + "Group", ) graph.MustAddE( - "setting", + "integration_webhook_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SettingTable, - Columns: []string{organization.SettingColumn}, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, Bidi: false, }, "Organization", - "OrganizationSetting", + "Group", ) graph.MustAddE( - "personal_access_tokens", + "internal_policy_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.PersonalAccessTokensTable, - Columns: organization.PersonalAccessTokensPrimaryKey, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, Bidi: false, }, "Organization", - "PersonalAccessToken", + "Group", ) graph.MustAddE( - "api_tokens", + "job_runner_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.APITokensTable, - Columns: []string{organization.APITokensColumn}, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, Bidi: false, }, "Organization", - "APIToken", + "Group", ) graph.MustAddE( - "email_templates", + "job_runner_registration_token_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EmailTemplatesTable, - Columns: []string{organization.EmailTemplatesColumn}, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, Bidi: false, }, "Organization", - "EmailTemplate", + "Group", ) graph.MustAddE( - "integration_webhooks", + "job_runner_token_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationWebhooksTable, - Columns: []string{organization.IntegrationWebhooksColumn}, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, Bidi: false, }, "Organization", - "IntegrationWebhook", + "Group", ) graph.MustAddE( - "integration_runs", + "job_template_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationRunsTable, - Columns: []string{organization.IntegrationRunsColumn}, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, Bidi: false, }, "Organization", - "IntegrationRun", + "Group", ) graph.MustAddE( - "notification_preferences", + "mapped_control_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationPreferencesTable, - Columns: []string{organization.NotificationPreferencesColumn}, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, Bidi: false, }, "Organization", - "NotificationPreference", + "Group", ) graph.MustAddE( - "notification_templates", + "narrative_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationTemplatesTable, - Columns: []string{organization.NotificationTemplatesColumn}, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, Bidi: false, }, "Organization", - "NotificationTemplate", + "Group", ) graph.MustAddE( - "users", + "note_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: organization.UsersTable, - Columns: organization.UsersPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, Bidi: false, }, "Organization", - "User", + "Group", ) graph.MustAddE( - "files", + "notification_template_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FilesTable, - Columns: organization.FilesPrimaryKey, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, Bidi: false, }, "Organization", - "File", + "Group", ) graph.MustAddE( - "events", + "organization_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EventsTable, - Columns: organization.EventsPrimaryKey, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, Bidi: false, }, "Organization", - "Event", + "Group", ) graph.MustAddE( - "secrets", + "platform_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SecretsTable, - Columns: []string{organization.SecretsColumn}, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, Bidi: false, }, "Organization", - "Hush", + "Group", ) graph.MustAddE( - "avatar_file", + "procedure_creators", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AvatarFileTable, - Columns: []string{organization.AvatarFileColumn}, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, Bidi: false, }, "Organization", - "File", + "Group", ) graph.MustAddE( - "groups", + "program_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupsTable, - Columns: []string{organization.GroupsColumn}, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, Bidi: false, }, "Organization", "Group", ) graph.MustAddE( - "templates", + "remediation_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplatesTable, - Columns: []string{organization.TemplatesColumn}, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, Bidi: false, }, "Organization", - "Template", + "Group", ) graph.MustAddE( - "integrations", + "review_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationsTable, - Columns: []string{organization.IntegrationsColumn}, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, Bidi: false, }, "Organization", - "Integration", + "Group", ) graph.MustAddE( - "documents", + "risk_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DocumentsTable, - Columns: []string{organization.DocumentsColumn}, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, Bidi: false, }, "Organization", - "DocumentData", + "Group", ) graph.MustAddE( - "org_subscriptions", + "scan_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.OrgSubscriptionsTable, - Columns: []string{organization.OrgSubscriptionsColumn}, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, Bidi: false, }, "Organization", - "OrgSubscription", + "Group", ) graph.MustAddE( - "org_products", + "scheduled_job_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.OrgProductsTable, - Columns: []string{organization.OrgProductsColumn}, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, Bidi: false, }, "Organization", - "OrgProduct", + "Group", ) graph.MustAddE( - "org_prices", + "scheduled_job_run_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.OrgPricesTable, - Columns: []string{organization.OrgPricesColumn}, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, Bidi: false, }, "Organization", - "OrgPrice", + "Group", ) graph.MustAddE( - "org_modules", + "standard_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.OrgModulesTable, - Columns: []string{organization.OrgModulesColumn}, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, Bidi: false, }, "Organization", - "OrgModule", + "Group", ) graph.MustAddE( - "invites", + "subcontrol_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InvitesTable, - Columns: []string{organization.InvitesColumn}, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, Bidi: false, }, "Organization", - "Invite", + "Group", ) graph.MustAddE( - "subscribers", + "subprocessor_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubscribersTable, - Columns: []string{organization.SubscribersColumn}, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, Bidi: false, }, "Organization", - "Subscriber", + "Group", ) graph.MustAddE( - "entities", + "subscriber_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EntitiesTable, - Columns: []string{organization.EntitiesColumn}, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, Bidi: false, }, "Organization", - "Entity", + "Group", ) graph.MustAddE( - "platforms", + "system_detail_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.PlatformsTable, - Columns: []string{organization.PlatformsColumn}, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, Bidi: false, }, "Organization", - "Platform", + "Group", ) graph.MustAddE( - "identity_holders", + "tag_definition_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHoldersTable, - Columns: []string{organization.IdentityHoldersColumn}, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, Bidi: false, }, "Organization", - "IdentityHolder", + "Group", ) graph.MustAddE( - "campaigns", + "task_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.CampaignsTable, - Columns: []string{organization.CampaignsColumn}, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, Bidi: false, }, "Organization", - "Campaign", + "Group", ) graph.MustAddE( - "campaign_targets", + "template_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.CampaignTargetsTable, - Columns: []string{organization.CampaignTargetsColumn}, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, Bidi: false, }, "Organization", - "CampaignTarget", + "Group", ) graph.MustAddE( - "entity_types", + "trust_center_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EntityTypesTable, - Columns: []string{organization.EntityTypesColumn}, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, Bidi: false, }, "Organization", - "EntityType", + "Group", ) graph.MustAddE( - "contacts", + "trust_center_compliance_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ContactsTable, - Columns: []string{organization.ContactsColumn}, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, Bidi: false, }, "Organization", - "Contact", + "Group", ) graph.MustAddE( - "notes", + "trust_center_doc_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotesTable, - Columns: []string{organization.NotesColumn}, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, Bidi: false, }, "Organization", - "Note", + "Group", ) graph.MustAddE( - "tasks", + "trust_center_entity_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TasksTable, - Columns: []string{organization.TasksColumn}, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, Bidi: false, }, "Organization", - "Task", + "Group", ) graph.MustAddE( - "programs", + "trust_center_faq_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramsTable, - Columns: []string{organization.ProgramsColumn}, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, Bidi: false, }, "Organization", - "Program", + "Group", ) graph.MustAddE( - "system_details", + "trust_center_nda_request_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SystemDetailsTable, - Columns: []string{organization.SystemDetailsColumn}, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, Bidi: false, }, "Organization", - "SystemDetail", + "Group", ) graph.MustAddE( - "procedures", + "trust_center_subprocessor_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProceduresTable, - Columns: []string{organization.ProceduresColumn}, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, Bidi: false, }, "Organization", - "Procedure", + "Group", ) graph.MustAddE( - "internal_policies", + "trust_center_watermark_config_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPoliciesTable, - Columns: []string{organization.InternalPoliciesColumn}, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, Bidi: false, }, "Organization", - "InternalPolicy", + "Group", ) graph.MustAddE( - "risks", + "user_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RisksTable, - Columns: []string{organization.RisksColumn}, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, Bidi: false, }, "Organization", - "Risk", + "Group", ) graph.MustAddE( - "control_objectives", + "user_setting_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectivesTable, - Columns: []string{organization.ControlObjectivesColumn}, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, Bidi: false, }, "Organization", - "ControlObjective", + "Group", ) graph.MustAddE( - "narratives", + "vendor_risk_score_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativesTable, - Columns: []string{organization.NarrativesColumn}, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, Bidi: false, }, "Organization", - "Narrative", + "Group", ) graph.MustAddE( - "controls", + "vulnerability_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlsTable, - Columns: []string{organization.ControlsColumn}, + Table: organization.VulnerabilityCreatorsTable, + Columns: []string{organization.VulnerabilityCreatorsColumn}, Bidi: false, }, "Organization", - "Control", + "Group", ) graph.MustAddE( - "subcontrols", + "workflow_assignment_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubcontrolsTable, - Columns: []string{organization.SubcontrolsColumn}, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, Bidi: false, }, "Organization", - "Subcontrol", + "Group", ) graph.MustAddE( - "control_implementations", + "workflow_assignment_target_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationsTable, - Columns: []string{organization.ControlImplementationsColumn}, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, Bidi: false, }, "Organization", - "ControlImplementation", + "Group", ) graph.MustAddE( - "mapped_controls", + "workflow_definition_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlsTable, - Columns: []string{organization.MappedControlsColumn}, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, Bidi: false, }, "Organization", - "MappedControl", + "Group", ) graph.MustAddE( - "evidence", + "workflow_event_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceTable, - Columns: []string{organization.EvidenceColumn}, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, Bidi: false, }, "Organization", - "Evidence", + "Group", ) graph.MustAddE( - "standards", + "workflow_instance_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardsTable, - Columns: []string{organization.StandardsColumn}, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, Bidi: false, }, "Organization", - "Standard", + "Group", ) graph.MustAddE( - "action_plans", + "workflow_object_ref_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlansTable, - Columns: []string{organization.ActionPlansColumn}, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, Bidi: false, }, "Organization", - "ActionPlan", + "Group", ) graph.MustAddE( - "custom_domains", + "workflow_proposal_creators", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.CustomDomainsTable, - Columns: []string{organization.CustomDomainsColumn}, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, Bidi: false, }, "Organization", - "CustomDomain", + "Group", ) graph.MustAddE( - "job_runners", + "campaigns_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.JobRunnersTable, - Columns: []string{organization.JobRunnersColumn}, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, Bidi: false, }, "Organization", - "JobRunner", + "Group", ) graph.MustAddE( - "job_runner_tokens", + "compliance_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.JobRunnerTokensTable, - Columns: []string{organization.JobRunnerTokensColumn}, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, Bidi: false, }, "Organization", - "JobRunnerToken", + "Group", ) graph.MustAddE( - "job_runner_registration_tokens", + "group_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.JobRunnerRegistrationTokensTable, - Columns: []string{organization.JobRunnerRegistrationTokensColumn}, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, Bidi: false, }, "Organization", - "JobRunnerRegistrationToken", + "Group", ) graph.MustAddE( - "dns_verifications", + "policies_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DNSVerificationsTable, - Columns: []string{organization.DNSVerificationsColumn}, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, Bidi: false, }, "Organization", - "DNSVerification", + "Group", ) graph.MustAddE( - "job_templates", + "registry_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.JobTemplatesTable, - Columns: []string{organization.JobTemplatesColumn}, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, Bidi: false, }, "Organization", - "JobTemplate", + "Group", ) graph.MustAddE( - "scheduled_jobs", + "risk_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobsTable, - Columns: []string{organization.ScheduledJobsColumn}, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, Bidi: false, }, "Organization", - "ScheduledJob", + "Group", ) graph.MustAddE( - "job_results", + "trust_center_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.JobResultsTable, - Columns: []string{organization.JobResultsColumn}, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, Bidi: false, }, "Organization", - "JobResult", + "Group", ) graph.MustAddE( - "scheduled_job_runs", + "workflows_manager", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobRunsTable, - Columns: []string{organization.ScheduledJobRunsColumn}, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, Bidi: false, }, "Organization", - "ScheduledJobRun", + "Group", ) graph.MustAddE( - "trust_centers", + "parent", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCentersTable, - Columns: []string{organization.TrustCentersColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: organization.ParentTable, + Columns: []string{organization.ParentColumn}, Bidi: false, }, "Organization", - "TrustCenter", + "Organization", ) graph.MustAddE( - "assets", + "children", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetsTable, - Columns: []string{organization.AssetsColumn}, + Table: organization.ChildrenTable, + Columns: []string{organization.ChildrenColumn}, Bidi: false, }, "Organization", - "Asset", + "Organization", ) graph.MustAddE( - "scans", + "setting", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.O2O, Inverse: false, - Table: organization.ScansTable, - Columns: []string{organization.ScansColumn}, + Table: organization.SettingTable, + Columns: []string{organization.SettingColumn}, Bidi: false, }, "Organization", - "Scan", + "OrganizationSetting", ) graph.MustAddE( - "sla_definitions", + "personal_access_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: organization.SLADefinitionsTable, - Columns: []string{organization.SLADefinitionsColumn}, + Table: organization.PersonalAccessTokensTable, + Columns: organization.PersonalAccessTokensPrimaryKey, Bidi: false, }, "Organization", - "SLADefinition", + "PersonalAccessToken", ) graph.MustAddE( - "subprocessors", + "api_tokens", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorsTable, - Columns: []string{organization.SubprocessorsColumn}, + Table: organization.APITokensTable, + Columns: []string{organization.APITokensColumn}, Bidi: false, }, "Organization", - "Subprocessor", + "APIToken", ) graph.MustAddE( - "exports", + "email_templates", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ExportsTable, - Columns: []string{organization.ExportsColumn}, + Table: organization.EmailTemplatesTable, + Columns: []string{organization.EmailTemplatesColumn}, Bidi: false, }, "Organization", - "Export", + "EmailTemplate", ) graph.MustAddE( - "trust_center_watermark_configs", + "integration_webhooks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterWatermarkConfigsTable, - Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, + Table: organization.IntegrationWebhooksTable, + Columns: []string{organization.IntegrationWebhooksColumn}, Bidi: false, }, "Organization", - "TrustCenterWatermarkConfig", + "IntegrationWebhook", ) graph.MustAddE( - "impersonation_events", + "integration_runs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ImpersonationEventsTable, - Columns: []string{organization.ImpersonationEventsColumn}, + Table: organization.IntegrationRunsTable, + Columns: []string{organization.IntegrationRunsColumn}, Bidi: false, }, "Organization", - "ImpersonationEvent", + "IntegrationRun", ) graph.MustAddE( - "assessments", + "notification_preferences", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssessmentsTable, - Columns: []string{organization.AssessmentsColumn}, + Table: organization.NotificationPreferencesTable, + Columns: []string{organization.NotificationPreferencesColumn}, Bidi: false, }, "Organization", - "Assessment", + "NotificationPreference", ) graph.MustAddE( - "assessment_responses", + "notification_templates", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssessmentResponsesTable, - Columns: []string{organization.AssessmentResponsesColumn}, + Table: organization.NotificationTemplatesTable, + Columns: []string{organization.NotificationTemplatesColumn}, Bidi: false, }, "Organization", - "AssessmentResponse", + "NotificationTemplate", ) graph.MustAddE( - "custom_type_enums", + "users", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomTypeEnumsTable, - Columns: []string{organization.CustomTypeEnumsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: organization.UsersTable, + Columns: organization.UsersPrimaryKey, Bidi: false, }, "Organization", - "CustomTypeEnum", + "User", ) graph.MustAddE( - "tag_definitions", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: organization.TagDefinitionsTable, - Columns: []string{organization.TagDefinitionsColumn}, + Table: organization.FilesTable, + Columns: organization.FilesPrimaryKey, Bidi: false, }, "Organization", - "TagDefinition", + "File", ) graph.MustAddE( - "remediations", + "events", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: organization.RemediationsTable, - Columns: []string{organization.RemediationsColumn}, + Table: organization.EventsTable, + Columns: organization.EventsPrimaryKey, Bidi: false, }, "Organization", - "Remediation", + "Event", ) graph.MustAddE( - "findings", + "secrets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingsTable, - Columns: []string{organization.FindingsColumn}, + Table: organization.SecretsTable, + Columns: []string{organization.SecretsColumn}, Bidi: false, }, "Organization", - "Finding", + "Hush", ) graph.MustAddE( - "reviews", + "avatar_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: organization.ReviewsTable, - Columns: []string{organization.ReviewsColumn}, + Table: organization.AvatarFileTable, + Columns: []string{organization.AvatarFileColumn}, Bidi: false, }, "Organization", - "Review", + "File", ) graph.MustAddE( - "vulnerabilities", + "groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VulnerabilitiesTable, - Columns: []string{organization.VulnerabilitiesColumn}, + Table: organization.GroupsTable, + Columns: []string{organization.GroupsColumn}, Bidi: false, }, "Organization", - "Vulnerability", + "Group", ) graph.MustAddE( - "notifications", + "templates", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationsTable, - Columns: []string{organization.NotificationsColumn}, + Table: organization.TemplatesTable, + Columns: []string{organization.TemplatesColumn}, Bidi: false, }, "Organization", - "Notification", + "Template", ) graph.MustAddE( - "workflow_definitions", + "integrations", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowDefinitionsTable, - Columns: []string{organization.WorkflowDefinitionsColumn}, + Table: organization.IntegrationsTable, + Columns: []string{organization.IntegrationsColumn}, Bidi: false, }, "Organization", - "WorkflowDefinition", + "Integration", ) graph.MustAddE( - "workflow_instances", + "documents", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowInstancesTable, - Columns: []string{organization.WorkflowInstancesColumn}, + Table: organization.DocumentsTable, + Columns: []string{organization.DocumentsColumn}, Bidi: false, }, "Organization", - "WorkflowInstance", + "DocumentData", ) graph.MustAddE( - "workflow_events", + "org_subscriptions", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowEventsTable, - Columns: []string{organization.WorkflowEventsColumn}, + Table: organization.OrgSubscriptionsTable, + Columns: []string{organization.OrgSubscriptionsColumn}, Bidi: false, }, "Organization", - "WorkflowEvent", + "OrgSubscription", ) graph.MustAddE( - "workflow_assignments", + "org_products", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowAssignmentsTable, - Columns: []string{organization.WorkflowAssignmentsColumn}, + Table: organization.OrgProductsTable, + Columns: []string{organization.OrgProductsColumn}, Bidi: false, }, "Organization", - "WorkflowAssignment", + "OrgProduct", ) graph.MustAddE( - "workflow_assignment_targets", + "org_prices", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowAssignmentTargetsTable, - Columns: []string{organization.WorkflowAssignmentTargetsColumn}, + Table: organization.OrgPricesTable, + Columns: []string{organization.OrgPricesColumn}, Bidi: false, }, "Organization", - "WorkflowAssignmentTarget", + "OrgPrice", ) graph.MustAddE( - "workflow_object_refs", + "org_modules", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowObjectRefsTable, - Columns: []string{organization.WorkflowObjectRefsColumn}, + Table: organization.OrgModulesTable, + Columns: []string{organization.OrgModulesColumn}, Bidi: false, }, "Organization", - "WorkflowObjectRef", + "OrgModule", ) graph.MustAddE( - "workflow_proposals", + "invites", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.WorkflowProposalsTable, - Columns: []string{organization.WorkflowProposalsColumn}, + Table: organization.InvitesTable, + Columns: []string{organization.InvitesColumn}, Bidi: false, }, "Organization", - "WorkflowProposal", + "Invite", ) graph.MustAddE( - "directory_accounts", + "subscribers", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DirectoryAccountsTable, - Columns: []string{organization.DirectoryAccountsColumn}, + Table: organization.SubscribersTable, + Columns: []string{organization.SubscribersColumn}, Bidi: false, }, "Organization", - "DirectoryAccount", + "Subscriber", ) graph.MustAddE( - "directory_groups", + "entities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DirectoryGroupsTable, - Columns: []string{organization.DirectoryGroupsColumn}, + Table: organization.EntitiesTable, + Columns: []string{organization.EntitiesColumn}, Bidi: false, }, "Organization", - "DirectoryGroup", + "Entity", ) graph.MustAddE( - "directory_memberships", + "platforms", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DirectoryMembershipsTable, - Columns: []string{organization.DirectoryMembershipsColumn}, + Table: organization.PlatformsTable, + Columns: []string{organization.PlatformsColumn}, Bidi: false, }, "Organization", - "DirectoryMembership", + "Platform", ) graph.MustAddE( - "directory_sync_runs", + "identity_holders", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DirectorySyncRunsTable, - Columns: []string{organization.DirectorySyncRunsColumn}, + Table: organization.IdentityHoldersTable, + Columns: []string{organization.IdentityHoldersColumn}, Bidi: false, }, "Organization", - "DirectorySyncRun", + "IdentityHolder", ) graph.MustAddE( - "discussions", + "campaigns", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.DiscussionsTable, - Columns: []string{organization.DiscussionsColumn}, + Table: organization.CampaignsTable, + Columns: []string{organization.CampaignsColumn}, Bidi: false, }, "Organization", - "Discussion", + "Campaign", ) graph.MustAddE( - "vendor_scoring_configs", + "campaign_targets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VendorScoringConfigsTable, - Columns: []string{organization.VendorScoringConfigsColumn}, + Table: organization.CampaignTargetsTable, + Columns: []string{organization.CampaignTargetsColumn}, Bidi: false, }, "Organization", - "VendorScoringConfig", + "CampaignTarget", ) graph.MustAddE( - "vendor_risk_scores", + "entity_types", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VendorRiskScoresTable, - Columns: []string{organization.VendorRiskScoresColumn}, + Table: organization.EntityTypesTable, + Columns: []string{organization.EntityTypesColumn}, Bidi: false, }, "Organization", - "VendorRiskScore", + "EntityType", ) graph.MustAddE( - "members", + "contacts", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: organization.MembersTable, - Columns: []string{organization.MembersColumn}, + Inverse: false, + Table: organization.ContactsTable, + Columns: []string{organization.ContactsColumn}, Bidi: false, }, "Organization", - "OrgMembership", + "Contact", ) graph.MustAddE( - "organization", + "notes", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, - Inverse: true, - Table: organizationsetting.OrganizationTable, - Columns: []string{organizationsetting.OrganizationColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotesTable, + Columns: []string{organization.NotesColumn}, Bidi: false, }, - "OrganizationSetting", "Organization", + "Note", ) graph.MustAddE( - "files", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organizationsetting.FilesTable, - Columns: organizationsetting.FilesPrimaryKey, + Table: organization.TasksTable, + Columns: []string{organization.TasksColumn}, Bidi: false, }, - "OrganizationSetting", - "File", + "Organization", + "Task", ) graph.MustAddE( - "owner", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: passwordresettoken.OwnerTable, - Columns: []string{passwordresettoken.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramsTable, + Columns: []string{organization.ProgramsColumn}, Bidi: false, }, - "PasswordResetToken", - "User", + "Organization", + "Program", ) graph.MustAddE( - "owner", + "system_details", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: personalaccesstoken.OwnerTable, - Columns: []string{personalaccesstoken.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailsTable, + Columns: []string{organization.SystemDetailsColumn}, Bidi: false, }, - "PersonalAccessToken", - "User", + "Organization", + "SystemDetail", ) graph.MustAddE( - "organizations", + "procedures", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: personalaccesstoken.OrganizationsTable, - Columns: personalaccesstoken.OrganizationsPrimaryKey, - Bidi: false, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProceduresTable, + Columns: []string{organization.ProceduresColumn}, + Bidi: false, }, - "PersonalAccessToken", "Organization", + "Procedure", ) graph.MustAddE( - "events", + "internal_policies", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: personalaccesstoken.EventsTable, - Columns: personalaccesstoken.EventsPrimaryKey, + Table: organization.InternalPoliciesTable, + Columns: []string{organization.InternalPoliciesColumn}, Bidi: false, }, - "PersonalAccessToken", - "Event", + "Organization", + "InternalPolicy", ) graph.MustAddE( - "owner", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: platform.OwnerTable, - Columns: []string{platform.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RisksTable, + Columns: []string{organization.RisksColumn}, Bidi: false, }, - "Platform", "Organization", + "Risk", ) graph.MustAddE( - "blocked_groups", + "control_objectives", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.BlockedGroupsTable, - Columns: platform.BlockedGroupsPrimaryKey, + Table: organization.ControlObjectivesTable, + Columns: []string{organization.ControlObjectivesColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "ControlObjective", ) graph.MustAddE( - "editors", + "narratives", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.EditorsTable, - Columns: platform.EditorsPrimaryKey, + Table: organization.NarrativesTable, + Columns: []string{organization.NarrativesColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "Narrative", ) graph.MustAddE( - "viewers", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ViewersTable, - Columns: platform.ViewersPrimaryKey, + Table: organization.ControlsTable, + Columns: []string{organization.ControlsColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "Control", ) graph.MustAddE( - "internal_owner_user", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.InternalOwnerUserTable, - Columns: []string{platform.InternalOwnerUserColumn}, + Table: organization.SubcontrolsTable, + Columns: []string{organization.SubcontrolsColumn}, Bidi: false, }, - "Platform", - "User", + "Organization", + "Subcontrol", ) graph.MustAddE( - "internal_owner_group", + "control_implementations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.InternalOwnerGroupTable, - Columns: []string{platform.InternalOwnerGroupColumn}, + Table: organization.ControlImplementationsTable, + Columns: []string{organization.ControlImplementationsColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "ControlImplementation", ) graph.MustAddE( - "business_owner_user", + "mapped_controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.BusinessOwnerUserTable, - Columns: []string{platform.BusinessOwnerUserColumn}, + Table: organization.MappedControlsTable, + Columns: []string{organization.MappedControlsColumn}, Bidi: false, }, - "Platform", - "User", + "Organization", + "MappedControl", ) graph.MustAddE( - "business_owner_group", + "evidence", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.BusinessOwnerGroupTable, - Columns: []string{platform.BusinessOwnerGroupColumn}, + Table: organization.EvidenceTable, + Columns: []string{organization.EvidenceColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "Evidence", ) graph.MustAddE( - "technical_owner_user", + "standards", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.TechnicalOwnerUserTable, - Columns: []string{platform.TechnicalOwnerUserColumn}, + Table: organization.StandardsTable, + Columns: []string{organization.StandardsColumn}, Bidi: false, }, - "Platform", - "User", + "Organization", + "Standard", ) graph.MustAddE( - "technical_owner_group", + "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.TechnicalOwnerGroupTable, - Columns: []string{platform.TechnicalOwnerGroupColumn}, + Table: organization.ActionPlansTable, + Columns: []string{organization.ActionPlansColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "ActionPlan", ) graph.MustAddE( - "security_owner_user", + "custom_domains", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SecurityOwnerUserTable, - Columns: []string{platform.SecurityOwnerUserColumn}, + Table: organization.CustomDomainsTable, + Columns: []string{organization.CustomDomainsColumn}, Bidi: false, }, - "Platform", - "User", + "Organization", + "CustomDomain", ) graph.MustAddE( - "security_owner_group", + "job_runners", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SecurityOwnerGroupTable, - Columns: []string{platform.SecurityOwnerGroupColumn}, + Table: organization.JobRunnersTable, + Columns: []string{organization.JobRunnersColumn}, Bidi: false, }, - "Platform", - "Group", + "Organization", + "JobRunner", ) graph.MustAddE( - "platform_kind", + "job_runner_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.PlatformKindTable, - Columns: []string{platform.PlatformKindColumn}, + Table: organization.JobRunnerTokensTable, + Columns: []string{organization.JobRunnerTokensColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "JobRunnerToken", ) graph.MustAddE( - "platform_data_classification", + "job_runner_registration_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.PlatformDataClassificationTable, - Columns: []string{platform.PlatformDataClassificationColumn}, + Table: organization.JobRunnerRegistrationTokensTable, + Columns: []string{organization.JobRunnerRegistrationTokensColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "JobRunnerRegistrationToken", ) graph.MustAddE( - "environment", + "dns_verifications", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.EnvironmentTable, - Columns: []string{platform.EnvironmentColumn}, + Table: organization.DNSVerificationsTable, + Columns: []string{organization.DNSVerificationsColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "DNSVerification", ) graph.MustAddE( - "scope", + "job_templates", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ScopeTable, - Columns: []string{platform.ScopeColumn}, + Table: organization.JobTemplatesTable, + Columns: []string{organization.JobTemplatesColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "JobTemplate", ) graph.MustAddE( - "access_model", + "scheduled_jobs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.AccessModelTable, - Columns: []string{platform.AccessModelColumn}, + Table: organization.ScheduledJobsTable, + Columns: []string{organization.ScheduledJobsColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "ScheduledJob", ) graph.MustAddE( - "encryption_status", + "job_results", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.EncryptionStatusTable, - Columns: []string{platform.EncryptionStatusColumn}, + Table: organization.JobResultsTable, + Columns: []string{organization.JobResultsColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "JobResult", ) graph.MustAddE( - "security_tier", + "scheduled_job_runs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SecurityTierTable, - Columns: []string{platform.SecurityTierColumn}, + Table: organization.ScheduledJobRunsTable, + Columns: []string{organization.ScheduledJobRunsColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "ScheduledJobRun", ) graph.MustAddE( - "criticality", + "trust_centers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.CriticalityTable, - Columns: []string{platform.CriticalityColumn}, + Table: organization.TrustCentersTable, + Columns: []string{organization.TrustCentersColumn}, Bidi: false, }, - "Platform", - "CustomTypeEnum", + "Organization", + "TrustCenter", ) graph.MustAddE( "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.AssetsTable, - Columns: platform.AssetsPrimaryKey, + Table: organization.AssetsTable, + Columns: []string{organization.AssetsColumn}, Bidi: false, }, - "Platform", + "Organization", "Asset", ) graph.MustAddE( - "entities", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.EntitiesTable, - Columns: platform.EntitiesPrimaryKey, + Table: organization.ScansTable, + Columns: []string{organization.ScansColumn}, Bidi: false, }, - "Platform", - "Entity", + "Organization", + "Scan", ) graph.MustAddE( - "evidence", + "sla_definitions", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.EvidenceTable, - Columns: platform.EvidencePrimaryKey, + Table: organization.SLADefinitionsTable, + Columns: []string{organization.SLADefinitionsColumn}, Bidi: false, }, - "Platform", - "Evidence", + "Organization", + "SLADefinition", ) graph.MustAddE( - "files", + "subprocessors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.FilesTable, - Columns: platform.FilesPrimaryKey, + Table: organization.SubprocessorsTable, + Columns: []string{organization.SubprocessorsColumn}, Bidi: false, }, - "Platform", - "File", + "Organization", + "Subprocessor", ) graph.MustAddE( - "architecture_diagrams", + "exports", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ArchitectureDiagramsTable, - Columns: []string{platform.ArchitectureDiagramsColumn}, + Table: organization.ExportsTable, + Columns: []string{organization.ExportsColumn}, Bidi: false, }, - "Platform", - "File", + "Organization", + "Export", ) graph.MustAddE( - "data_flow_diagrams", + "trust_center_watermark_configs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.DataFlowDiagramsTable, - Columns: []string{platform.DataFlowDiagramsColumn}, + Table: organization.TrustCenterWatermarkConfigsTable, + Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, Bidi: false, }, - "Platform", - "File", + "Organization", + "TrustCenterWatermarkConfig", ) graph.MustAddE( - "trust_boundary_diagrams", + "impersonation_events", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.TrustBoundaryDiagramsTable, - Columns: []string{platform.TrustBoundaryDiagramsColumn}, + Table: organization.ImpersonationEventsTable, + Columns: []string{organization.ImpersonationEventsColumn}, Bidi: false, }, - "Platform", - "File", + "Organization", + "ImpersonationEvent", ) graph.MustAddE( - "risks", + "assessments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.RisksTable, - Columns: platform.RisksPrimaryKey, + Table: organization.AssessmentsTable, + Columns: []string{organization.AssessmentsColumn}, Bidi: false, }, - "Platform", - "Risk", + "Organization", + "Assessment", ) graph.MustAddE( - "controls", + "assessment_responses", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ControlsTable, - Columns: platform.ControlsPrimaryKey, + Table: organization.AssessmentResponsesTable, + Columns: []string{organization.AssessmentResponsesColumn}, Bidi: false, }, - "Platform", - "Control", + "Organization", + "AssessmentResponse", ) graph.MustAddE( - "assessments", + "custom_type_enums", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.AssessmentsTable, - Columns: platform.AssessmentsPrimaryKey, + Table: organization.CustomTypeEnumsTable, + Columns: []string{organization.CustomTypeEnumsColumn}, Bidi: false, }, - "Platform", - "Assessment", + "Organization", + "CustomTypeEnum", ) graph.MustAddE( - "scans", + "tag_definitions", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ScansTable, - Columns: platform.ScansPrimaryKey, + Table: organization.TagDefinitionsTable, + Columns: []string{organization.TagDefinitionsColumn}, Bidi: false, }, - "Platform", - "Scan", + "Organization", + "TagDefinition", ) graph.MustAddE( - "tasks", + "remediations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.TasksTable, - Columns: platform.TasksPrimaryKey, + Table: organization.RemediationsTable, + Columns: []string{organization.RemediationsColumn}, Bidi: false, }, - "Platform", - "Task", + "Organization", + "Remediation", ) graph.MustAddE( - "identity_holders", + "findings", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.IdentityHoldersTable, - Columns: platform.IdentityHoldersPrimaryKey, + Table: organization.FindingsTable, + Columns: []string{organization.FindingsColumn}, Bidi: false, }, - "Platform", - "IdentityHolder", + "Organization", + "Finding", ) graph.MustAddE( - "integrations", + "reviews", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.IntegrationsTable, - Columns: []string{platform.IntegrationsColumn}, + Table: organization.ReviewsTable, + Columns: []string{organization.ReviewsColumn}, Bidi: false, }, - "Platform", - "Integration", + "Organization", + "Review", ) graph.MustAddE( - "directory_sync_runs", + "vulnerabilities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.DirectorySyncRunsTable, - Columns: []string{platform.DirectorySyncRunsColumn}, + Table: organization.VulnerabilitiesTable, + Columns: []string{organization.VulnerabilitiesColumn}, Bidi: false, }, - "Platform", - "DirectorySyncRun", + "Organization", + "Vulnerability", ) graph.MustAddE( - "directory_accounts", + "notifications", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.DirectoryAccountsTable, - Columns: []string{platform.DirectoryAccountsColumn}, + Table: organization.NotificationsTable, + Columns: []string{organization.NotificationsColumn}, Bidi: false, }, - "Platform", - "DirectoryAccount", + "Organization", + "Notification", ) graph.MustAddE( - "directory_groups", + "workflow_definitions", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.DirectoryGroupsTable, - Columns: []string{platform.DirectoryGroupsColumn}, + Table: organization.WorkflowDefinitionsTable, + Columns: []string{organization.WorkflowDefinitionsColumn}, Bidi: false, }, - "Platform", - "DirectoryGroup", + "Organization", + "WorkflowDefinition", ) graph.MustAddE( - "directory_memberships", + "workflow_instances", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.DirectoryMembershipsTable, - Columns: []string{platform.DirectoryMembershipsColumn}, + Table: organization.WorkflowInstancesTable, + Columns: []string{organization.WorkflowInstancesColumn}, Bidi: false, }, - "Platform", - "DirectoryMembership", + "Organization", + "WorkflowInstance", ) graph.MustAddE( - "workflow_object_refs", + "workflow_events", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: platform.WorkflowObjectRefsTable, - Columns: []string{platform.WorkflowObjectRefsColumn}, + Inverse: false, + Table: organization.WorkflowEventsTable, + Columns: []string{organization.WorkflowEventsColumn}, Bidi: false, }, - "Platform", - "WorkflowObjectRef", + "Organization", + "WorkflowEvent", ) graph.MustAddE( - "source_assets", + "workflow_assignments", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SourceAssetsTable, - Columns: []string{platform.SourceAssetsColumn}, + Table: organization.WorkflowAssignmentsTable, + Columns: []string{organization.WorkflowAssignmentsColumn}, Bidi: false, }, - "Platform", - "Asset", + "Organization", + "WorkflowAssignment", ) graph.MustAddE( - "source_entities", + "workflow_assignment_targets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SourceEntitiesTable, - Columns: platform.SourceEntitiesPrimaryKey, + Table: organization.WorkflowAssignmentTargetsTable, + Columns: []string{organization.WorkflowAssignmentTargetsColumn}, Bidi: false, }, - "Platform", - "Entity", + "Organization", + "WorkflowAssignmentTarget", ) graph.MustAddE( - "out_of_scope_assets", + "workflow_object_refs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.OutOfScopeAssetsTable, - Columns: platform.OutOfScopeAssetsPrimaryKey, + Table: organization.WorkflowObjectRefsTable, + Columns: []string{organization.WorkflowObjectRefsColumn}, Bidi: false, }, - "Platform", - "Asset", + "Organization", + "WorkflowObjectRef", ) graph.MustAddE( - "out_of_scope_vendors", + "workflow_proposals", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.OutOfScopeVendorsTable, - Columns: platform.OutOfScopeVendorsPrimaryKey, + Table: organization.WorkflowProposalsTable, + Columns: []string{organization.WorkflowProposalsColumn}, Bidi: false, }, - "Platform", - "Entity", - ) + "Organization", + "WorkflowProposal", + ) graph.MustAddE( - "applicable_frameworks", + "directory_accounts", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.ApplicableFrameworksTable, - Columns: platform.ApplicableFrameworksPrimaryKey, + Table: organization.DirectoryAccountsTable, + Columns: []string{organization.DirectoryAccountsColumn}, Bidi: false, }, - "Platform", - "Standard", + "Organization", + "DirectoryAccount", ) graph.MustAddE( - "generated_scans", + "directory_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: platform.GeneratedScansTable, - Columns: []string{platform.GeneratedScansColumn}, + Table: organization.DirectoryGroupsTable, + Columns: []string{organization.DirectoryGroupsColumn}, Bidi: false, }, - "Platform", - "Scan", + "Organization", + "DirectoryGroup", ) graph.MustAddE( - "platform_owner", + "directory_memberships", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: platform.PlatformOwnerTable, - Columns: []string{platform.PlatformOwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DirectoryMembershipsTable, + Columns: []string{organization.DirectoryMembershipsColumn}, Bidi: false, }, - "Platform", - "User", + "Organization", + "DirectoryMembership", ) graph.MustAddE( - "system_detail", + "directory_sync_runs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: platform.SystemDetailTable, - Columns: []string{platform.SystemDetailColumn}, + Table: organization.DirectorySyncRunsTable, + Columns: []string{organization.DirectorySyncRunsColumn}, Bidi: false, }, - "Platform", - "SystemDetail", + "Organization", + "DirectorySyncRun", ) graph.MustAddE( - "owner", + "discussions", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: procedure.OwnerTable, - Columns: []string{procedure.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionsTable, + Columns: []string{organization.DiscussionsColumn}, Bidi: false, }, - "Procedure", "Organization", + "Discussion", ) graph.MustAddE( - "blocked_groups", + "vendor_scoring_configs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: procedure.BlockedGroupsTable, - Columns: procedure.BlockedGroupsPrimaryKey, + Table: organization.VendorScoringConfigsTable, + Columns: []string{organization.VendorScoringConfigsColumn}, Bidi: false, }, - "Procedure", - "Group", + "Organization", + "VendorScoringConfig", ) graph.MustAddE( - "editors", + "vendor_risk_scores", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: procedure.EditorsTable, - Columns: procedure.EditorsPrimaryKey, + Table: organization.VendorRiskScoresTable, + Columns: []string{organization.VendorRiskScoresColumn}, Bidi: false, }, - "Procedure", - "Group", + "Organization", + "VendorRiskScore", ) graph.MustAddE( - "approver", + "members", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: procedure.ApproverTable, - Columns: []string{procedure.ApproverColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: organization.MembersTable, + Columns: []string{organization.MembersColumn}, Bidi: false, }, - "Procedure", - "Group", + "Organization", + "OrgMembership", ) graph.MustAddE( - "delegate", + "organization", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: procedure.DelegateTable, - Columns: []string{procedure.DelegateColumn}, + Rel: sqlgraph.O2O, + Inverse: true, + Table: organizationsetting.OrganizationTable, + Columns: []string{organizationsetting.OrganizationColumn}, Bidi: false, }, - "Procedure", - "Group", + "OrganizationSetting", + "Organization", ) graph.MustAddE( - "procedure_kind", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: procedure.ProcedureKindTable, - Columns: []string{procedure.ProcedureKindColumn}, + Table: organizationsetting.FilesTable, + Columns: organizationsetting.FilesPrimaryKey, Bidi: false, }, - "Procedure", - "CustomTypeEnum", + "OrganizationSetting", + "File", ) graph.MustAddE( - "environment", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: procedure.EnvironmentTable, - Columns: []string{procedure.EnvironmentColumn}, + Inverse: true, + Table: passwordresettoken.OwnerTable, + Columns: []string{passwordresettoken.OwnerColumn}, Bidi: false, }, - "Procedure", - "CustomTypeEnum", + "PasswordResetToken", + "User", ) graph.MustAddE( - "scope", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: procedure.ScopeTable, - Columns: []string{procedure.ScopeColumn}, + Inverse: true, + Table: personalaccesstoken.OwnerTable, + Columns: []string{personalaccesstoken.OwnerColumn}, Bidi: false, }, - "Procedure", - "CustomTypeEnum", + "PersonalAccessToken", + "User", ) graph.MustAddE( - "controls", + "organizations", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: procedure.ControlsTable, - Columns: procedure.ControlsPrimaryKey, + Table: personalaccesstoken.OrganizationsTable, + Columns: personalaccesstoken.OrganizationsPrimaryKey, Bidi: false, }, - "Procedure", - "Control", + "PersonalAccessToken", + "Organization", ) graph.MustAddE( - "subcontrols", + "events", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: procedure.SubcontrolsTable, - Columns: procedure.SubcontrolsPrimaryKey, + Inverse: false, + Table: personalaccesstoken.EventsTable, + Columns: personalaccesstoken.EventsPrimaryKey, Bidi: false, }, - "Procedure", - "Subcontrol", + "PersonalAccessToken", + "Event", ) graph.MustAddE( - "internal_policies", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: procedure.InternalPoliciesTable, - Columns: procedure.InternalPoliciesPrimaryKey, + Table: platform.OwnerTable, + Columns: []string{platform.OwnerColumn}, Bidi: false, }, - "Procedure", - "InternalPolicy", + "Platform", + "Organization", ) graph.MustAddE( - "programs", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: procedure.ProgramsTable, - Columns: procedure.ProgramsPrimaryKey, + Inverse: false, + Table: platform.BlockedGroupsTable, + Columns: platform.BlockedGroupsPrimaryKey, Bidi: false, }, - "Procedure", - "Program", + "Platform", + "Group", ) graph.MustAddE( - "narratives", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: procedure.NarrativesTable, - Columns: procedure.NarrativesPrimaryKey, + Table: platform.EditorsTable, + Columns: platform.EditorsPrimaryKey, Bidi: false, }, - "Procedure", - "Narrative", + "Platform", + "Group", ) graph.MustAddE( - "risks", + "viewers", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: procedure.RisksTable, - Columns: procedure.RisksPrimaryKey, + Table: platform.ViewersTable, + Columns: platform.ViewersPrimaryKey, Bidi: false, }, - "Procedure", - "Risk", + "Platform", + "Group", ) graph.MustAddE( - "tasks", + "internal_owner_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: procedure.TasksTable, - Columns: procedure.TasksPrimaryKey, + Table: platform.InternalOwnerUserTable, + Columns: []string{platform.InternalOwnerUserColumn}, Bidi: false, }, - "Procedure", - "Task", + "Platform", + "User", ) graph.MustAddE( - "comments", + "internal_owner_group", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: procedure.CommentsTable, - Columns: []string{procedure.CommentsColumn}, + Table: platform.InternalOwnerGroupTable, + Columns: []string{platform.InternalOwnerGroupColumn}, Bidi: false, }, - "Procedure", - "Note", + "Platform", + "Group", ) graph.MustAddE( - "discussions", + "business_owner_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: procedure.DiscussionsTable, - Columns: []string{procedure.DiscussionsColumn}, + Table: platform.BusinessOwnerUserTable, + Columns: []string{platform.BusinessOwnerUserColumn}, Bidi: false, }, - "Procedure", - "Discussion", + "Platform", + "User", ) graph.MustAddE( - "file", + "business_owner_group", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: procedure.FileTable, - Columns: []string{procedure.FileColumn}, + Table: platform.BusinessOwnerGroupTable, + Columns: []string{platform.BusinessOwnerGroupColumn}, Bidi: false, }, - "Procedure", - "File", + "Platform", + "Group", ) graph.MustAddE( - "workflow_object_refs", + "technical_owner_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: procedure.WorkflowObjectRefsTable, - Columns: []string{procedure.WorkflowObjectRefsColumn}, + Rel: sqlgraph.M2O, + Inverse: false, + Table: platform.TechnicalOwnerUserTable, + Columns: []string{platform.TechnicalOwnerUserColumn}, Bidi: false, }, - "Procedure", - "WorkflowObjectRef", + "Platform", + "User", ) graph.MustAddE( - "owner", + "technical_owner_group", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: program.OwnerTable, - Columns: []string{program.OwnerColumn}, + Inverse: false, + Table: platform.TechnicalOwnerGroupTable, + Columns: []string{platform.TechnicalOwnerGroupColumn}, Bidi: false, }, - "Program", - "Organization", + "Platform", + "Group", ) graph.MustAddE( - "blocked_groups", + "security_owner_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.BlockedGroupsTable, - Columns: program.BlockedGroupsPrimaryKey, + Table: platform.SecurityOwnerUserTable, + Columns: []string{platform.SecurityOwnerUserColumn}, Bidi: false, }, - "Program", - "Group", + "Platform", + "User", ) graph.MustAddE( - "editors", + "security_owner_group", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.EditorsTable, - Columns: program.EditorsPrimaryKey, + Table: platform.SecurityOwnerGroupTable, + Columns: []string{platform.SecurityOwnerGroupColumn}, Bidi: false, }, - "Program", + "Platform", "Group", ) graph.MustAddE( - "viewers", + "platform_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.ViewersTable, - Columns: program.ViewersPrimaryKey, + Table: platform.PlatformKindTable, + Columns: []string{platform.PlatformKindColumn}, Bidi: false, }, - "Program", - "Group", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "program_kind", + "platform_data_classification", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: program.ProgramKindTable, - Columns: []string{program.ProgramKindColumn}, + Table: platform.PlatformDataClassificationTable, + Columns: []string{platform.PlatformDataClassificationColumn}, Bidi: false, }, - "Program", + "Platform", "CustomTypeEnum", ) graph.MustAddE( - "controls", + "environment", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.ControlsTable, - Columns: program.ControlsPrimaryKey, + Table: platform.EnvironmentTable, + Columns: []string{platform.EnvironmentColumn}, Bidi: false, }, - "Program", - "Control", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "subcontrols", + "scope", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.SubcontrolsTable, - Columns: []string{program.SubcontrolsColumn}, + Table: platform.ScopeTable, + Columns: []string{platform.ScopeColumn}, Bidi: false, }, - "Program", - "Subcontrol", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "control_objectives", + "access_model", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.ControlObjectivesTable, - Columns: program.ControlObjectivesPrimaryKey, + Table: platform.AccessModelTable, + Columns: []string{platform.AccessModelColumn}, Bidi: false, }, - "Program", - "ControlObjective", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "internal_policies", + "encryption_status", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.InternalPoliciesTable, - Columns: program.InternalPoliciesPrimaryKey, + Table: platform.EncryptionStatusTable, + Columns: []string{platform.EncryptionStatusColumn}, Bidi: false, }, - "Program", - "InternalPolicy", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "procedures", + "security_tier", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.ProceduresTable, - Columns: program.ProceduresPrimaryKey, + Table: platform.SecurityTierTable, + Columns: []string{platform.SecurityTierColumn}, Bidi: false, }, - "Program", - "Procedure", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "risks", + "criticality", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: program.RisksTable, - Columns: program.RisksPrimaryKey, + Table: platform.CriticalityTable, + Columns: []string{platform.CriticalityColumn}, Bidi: false, }, - "Program", - "Risk", + "Platform", + "CustomTypeEnum", ) graph.MustAddE( - "tasks", + "assets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: program.TasksTable, - Columns: program.TasksPrimaryKey, + Table: platform.AssetsTable, + Columns: platform.AssetsPrimaryKey, Bidi: false, }, - "Program", - "Task", + "Platform", + "Asset", ) graph.MustAddE( - "notes", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: program.NotesTable, - Columns: []string{program.NotesColumn}, + Table: platform.EntitiesTable, + Columns: platform.EntitiesPrimaryKey, Bidi: false, }, - "Program", - "Note", + "Platform", + "Entity", ) graph.MustAddE( - "files", + "evidence", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: program.FilesTable, - Columns: program.FilesPrimaryKey, + Table: platform.EvidenceTable, + Columns: platform.EvidencePrimaryKey, Bidi: false, }, - "Program", - "File", + "Platform", + "Evidence", ) graph.MustAddE( - "evidence", + "files", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: program.EvidenceTable, - Columns: program.EvidencePrimaryKey, + Table: platform.FilesTable, + Columns: platform.FilesPrimaryKey, Bidi: false, }, - "Program", - "Evidence", + "Platform", + "File", ) graph.MustAddE( - "narratives", + "architecture_diagrams", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: program.NarrativesTable, - Columns: program.NarrativesPrimaryKey, + Table: platform.ArchitectureDiagramsTable, + Columns: []string{platform.ArchitectureDiagramsColumn}, Bidi: false, }, - "Program", - "Narrative", + "Platform", + "File", ) graph.MustAddE( - "action_plans", + "data_flow_diagrams", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: program.ActionPlansTable, - Columns: program.ActionPlansPrimaryKey, + Table: platform.DataFlowDiagramsTable, + Columns: []string{platform.DataFlowDiagramsColumn}, Bidi: false, }, - "Program", - "ActionPlan", + "Platform", + "File", ) graph.MustAddE( - "system_detail", + "trust_boundary_diagrams", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: program.SystemDetailTable, - Columns: []string{program.SystemDetailColumn}, + Table: platform.TrustBoundaryDiagramsTable, + Columns: []string{platform.TrustBoundaryDiagramsColumn}, Bidi: false, }, - "Program", - "SystemDetail", + "Platform", + "File", ) graph.MustAddE( - "users", + "risks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: program.UsersTable, - Columns: program.UsersPrimaryKey, + Inverse: false, + Table: platform.RisksTable, + Columns: platform.RisksPrimaryKey, Bidi: false, }, - "Program", - "User", + "Platform", + "Risk", ) graph.MustAddE( - "program_owner", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: program.ProgramOwnerTable, - Columns: []string{program.ProgramOwnerColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: platform.ControlsTable, + Columns: platform.ControlsPrimaryKey, Bidi: false, }, - "Program", - "User", + "Platform", + "Control", ) graph.MustAddE( - "members", + "assessments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: program.MembersTable, - Columns: []string{program.MembersColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: platform.AssessmentsTable, + Columns: platform.AssessmentsPrimaryKey, Bidi: false, }, - "Program", - "ProgramMembership", + "Platform", + "Assessment", ) graph.MustAddE( - "program", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: programmembership.ProgramTable, - Columns: []string{programmembership.ProgramColumn}, + Table: platform.ScansTable, + Columns: platform.ScansPrimaryKey, Bidi: false, }, - "ProgramMembership", - "Program", + "Platform", + "Scan", ) graph.MustAddE( - "user", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: programmembership.UserTable, - Columns: []string{programmembership.UserColumn}, + Table: platform.TasksTable, + Columns: platform.TasksPrimaryKey, Bidi: false, }, - "ProgramMembership", - "User", + "Platform", + "Task", ) graph.MustAddE( - "org_membership", + "identity_holders", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: programmembership.OrgMembershipTable, - Columns: []string{programmembership.OrgMembershipColumn}, + Table: platform.IdentityHoldersTable, + Columns: platform.IdentityHoldersPrimaryKey, Bidi: false, }, - "ProgramMembership", - "OrgMembership", + "Platform", + "IdentityHolder", ) graph.MustAddE( - "owner", + "integrations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: remediation.OwnerTable, - Columns: []string{remediation.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: platform.IntegrationsTable, + Columns: []string{platform.IntegrationsColumn}, Bidi: false, }, - "Remediation", - "Organization", + "Platform", + "Integration", ) graph.MustAddE( - "blocked_groups", + "directory_sync_runs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: remediation.BlockedGroupsTable, - Columns: []string{remediation.BlockedGroupsColumn}, + Table: platform.DirectorySyncRunsTable, + Columns: []string{platform.DirectorySyncRunsColumn}, Bidi: false, }, - "Remediation", - "Group", + "Platform", + "DirectorySyncRun", ) graph.MustAddE( - "editors", + "directory_accounts", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: remediation.EditorsTable, - Columns: []string{remediation.EditorsColumn}, + Table: platform.DirectoryAccountsTable, + Columns: []string{platform.DirectoryAccountsColumn}, Bidi: false, }, - "Remediation", - "Group", + "Platform", + "DirectoryAccount", ) graph.MustAddE( - "viewers", + "directory_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: remediation.ViewersTable, - Columns: []string{remediation.ViewersColumn}, + Table: platform.DirectoryGroupsTable, + Columns: []string{platform.DirectoryGroupsColumn}, Bidi: false, }, - "Remediation", - "Group", + "Platform", + "DirectoryGroup", ) graph.MustAddE( - "environment", + "directory_memberships", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: remediation.EnvironmentTable, - Columns: []string{remediation.EnvironmentColumn}, + Table: platform.DirectoryMembershipsTable, + Columns: []string{platform.DirectoryMembershipsColumn}, Bidi: false, }, - "Remediation", - "CustomTypeEnum", + "Platform", + "DirectoryMembership", ) graph.MustAddE( - "scope", + "workflow_object_refs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: remediation.ScopeTable, - Columns: []string{remediation.ScopeColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: platform.WorkflowObjectRefsTable, + Columns: []string{platform.WorkflowObjectRefsColumn}, Bidi: false, }, - "Remediation", - "CustomTypeEnum", + "Platform", + "WorkflowObjectRef", ) graph.MustAddE( - "integrations", + "source_assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: remediation.IntegrationsTable, - Columns: remediation.IntegrationsPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: platform.SourceAssetsTable, + Columns: []string{platform.SourceAssetsColumn}, Bidi: false, }, - "Remediation", - "Integration", + "Platform", + "Asset", ) graph.MustAddE( - "scans", + "source_entities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: remediation.ScansTable, - Columns: remediation.ScansPrimaryKey, + Inverse: false, + Table: platform.SourceEntitiesTable, + Columns: platform.SourceEntitiesPrimaryKey, Bidi: false, }, - "Remediation", - "Scan", + "Platform", + "Entity", ) graph.MustAddE( - "findings", + "out_of_scope_assets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: remediation.FindingsTable, - Columns: remediation.FindingsPrimaryKey, + Table: platform.OutOfScopeAssetsTable, + Columns: platform.OutOfScopeAssetsPrimaryKey, Bidi: false, }, - "Remediation", - "Finding", + "Platform", + "Asset", ) graph.MustAddE( - "vulnerabilities", + "out_of_scope_vendors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: remediation.VulnerabilitiesTable, - Columns: remediation.VulnerabilitiesPrimaryKey, + Table: platform.OutOfScopeVendorsTable, + Columns: platform.OutOfScopeVendorsPrimaryKey, Bidi: false, }, - "Remediation", - "Vulnerability", + "Platform", + "Entity", ) graph.MustAddE( - "action_plans", + "applicable_frameworks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: remediation.ActionPlansTable, - Columns: remediation.ActionPlansPrimaryKey, + Table: platform.ApplicableFrameworksTable, + Columns: platform.ApplicableFrameworksPrimaryKey, Bidi: false, }, - "Remediation", - "ActionPlan", + "Platform", + "Standard", ) graph.MustAddE( - "tasks", + "generated_scans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: remediation.TasksTable, - Columns: []string{remediation.TasksColumn}, + Table: platform.GeneratedScansTable, + Columns: []string{platform.GeneratedScansColumn}, Bidi: false, }, - "Remediation", - "Task", + "Platform", + "Scan", ) graph.MustAddE( - "controls", + "platform_owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: remediation.ControlsTable, - Columns: remediation.ControlsPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: true, + Table: platform.PlatformOwnerTable, + Columns: []string{platform.PlatformOwnerColumn}, Bidi: false, }, - "Remediation", - "Control", + "Platform", + "User", ) graph.MustAddE( - "subcontrols", + "system_detail", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2O, Inverse: false, - Table: remediation.SubcontrolsTable, - Columns: remediation.SubcontrolsPrimaryKey, + Table: platform.SystemDetailTable, + Columns: []string{platform.SystemDetailColumn}, Bidi: false, }, - "Remediation", - "Subcontrol", + "Platform", + "SystemDetail", ) graph.MustAddE( - "risks", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: remediation.RisksTable, - Columns: remediation.RisksPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: true, + Table: procedure.OwnerTable, + Columns: []string{procedure.OwnerColumn}, Bidi: false, }, - "Remediation", - "Risk", + "Procedure", + "Organization", ) graph.MustAddE( - "programs", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: remediation.ProgramsTable, - Columns: []string{remediation.ProgramsColumn}, + Table: procedure.BlockedGroupsTable, + Columns: procedure.BlockedGroupsPrimaryKey, Bidi: false, }, - "Remediation", - "Program", + "Procedure", + "Group", ) graph.MustAddE( - "assets", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: remediation.AssetsTable, - Columns: []string{remediation.AssetsColumn}, + Table: procedure.EditorsTable, + Columns: procedure.EditorsPrimaryKey, Bidi: false, }, - "Remediation", - "Asset", + "Procedure", + "Group", ) graph.MustAddE( - "entities", + "approver", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: remediation.EntitiesTable, - Columns: []string{remediation.EntitiesColumn}, + Table: procedure.ApproverTable, + Columns: []string{procedure.ApproverColumn}, Bidi: false, }, - "Remediation", - "Entity", - ) - graph.MustAddE( - "reviews", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: remediation.ReviewsTable, - Columns: remediation.ReviewsPrimaryKey, - Bidi: false, - }, - "Remediation", - "Review", - ) - graph.MustAddE( - "comments", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: remediation.CommentsTable, - Columns: []string{remediation.CommentsColumn}, - Bidi: false, - }, - "Remediation", - "Note", - ) - graph.MustAddE( - "files", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: remediation.FilesTable, - Columns: []string{remediation.FilesColumn}, - Bidi: false, - }, - "Remediation", - "File", - ) - graph.MustAddE( - "owner", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: review.OwnerTable, - Columns: []string{review.OwnerColumn}, - Bidi: false, - }, - "Review", - "Organization", - ) - graph.MustAddE( - "blocked_groups", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: review.BlockedGroupsTable, - Columns: []string{review.BlockedGroupsColumn}, - Bidi: false, - }, - "Review", + "Procedure", "Group", ) graph.MustAddE( - "editors", + "delegate", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: review.EditorsTable, - Columns: []string{review.EditorsColumn}, + Table: procedure.DelegateTable, + Columns: []string{procedure.DelegateColumn}, Bidi: false, }, - "Review", + "Procedure", "Group", ) graph.MustAddE( - "viewers", + "procedure_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: review.ViewersTable, - Columns: []string{review.ViewersColumn}, + Table: procedure.ProcedureKindTable, + Columns: []string{procedure.ProcedureKindColumn}, Bidi: false, }, - "Review", - "Group", + "Procedure", + "CustomTypeEnum", ) graph.MustAddE( "environment", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: review.EnvironmentTable, - Columns: []string{review.EnvironmentColumn}, + Table: procedure.EnvironmentTable, + Columns: []string{procedure.EnvironmentColumn}, Bidi: false, }, - "Review", + "Procedure", "CustomTypeEnum", ) graph.MustAddE( @@ -13559,1139 +13499,1187 @@ var schemaGraph = func() *sqlgraph.Schema { &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: review.ScopeTable, - Columns: []string{review.ScopeColumn}, + Table: procedure.ScopeTable, + Columns: []string{procedure.ScopeColumn}, Bidi: false, }, - "Review", + "Procedure", "CustomTypeEnum", ) graph.MustAddE( - "integrations", + "controls", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: review.IntegrationsTable, - Columns: review.IntegrationsPrimaryKey, + Table: procedure.ControlsTable, + Columns: procedure.ControlsPrimaryKey, Bidi: false, }, - "Review", - "Integration", + "Procedure", + "Control", ) graph.MustAddE( - "findings", + "subcontrols", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: review.FindingsTable, - Columns: review.FindingsPrimaryKey, + Inverse: true, + Table: procedure.SubcontrolsTable, + Columns: procedure.SubcontrolsPrimaryKey, Bidi: false, }, - "Review", - "Finding", + "Procedure", + "Subcontrol", ) graph.MustAddE( - "vulnerabilities", + "internal_policies", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: review.VulnerabilitiesTable, - Columns: review.VulnerabilitiesPrimaryKey, + Inverse: true, + Table: procedure.InternalPoliciesTable, + Columns: procedure.InternalPoliciesPrimaryKey, Bidi: false, }, - "Review", - "Vulnerability", + "Procedure", + "InternalPolicy", ) graph.MustAddE( - "action_plans", + "programs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: review.ActionPlansTable, - Columns: review.ActionPlansPrimaryKey, + Inverse: true, + Table: procedure.ProgramsTable, + Columns: procedure.ProgramsPrimaryKey, Bidi: false, }, - "Review", - "ActionPlan", + "Procedure", + "Program", ) graph.MustAddE( - "remediations", + "narratives", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: review.RemediationsTable, - Columns: review.RemediationsPrimaryKey, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, Bidi: false, }, - "Review", - "Remediation", + "Procedure", + "Narrative", ) graph.MustAddE( - "controls", + "risks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: review.ControlsTable, - Columns: review.ControlsPrimaryKey, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, Bidi: false, }, - "Review", - "Control", + "Procedure", + "Risk", ) graph.MustAddE( - "subcontrols", + "tasks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: review.SubcontrolsTable, - Columns: review.SubcontrolsPrimaryKey, + Table: procedure.TasksTable, + Columns: procedure.TasksPrimaryKey, Bidi: false, }, - "Review", - "Subcontrol", + "Procedure", + "Task", ) graph.MustAddE( - "risks", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: review.RisksTable, - Columns: review.RisksPrimaryKey, + Table: procedure.CommentsTable, + Columns: []string{procedure.CommentsColumn}, Bidi: false, }, - "Review", - "Risk", + "Procedure", + "Note", ) graph.MustAddE( - "programs", + "discussions", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: review.ProgramsTable, - Columns: []string{review.ProgramsColumn}, + Table: procedure.DiscussionsTable, + Columns: []string{procedure.DiscussionsColumn}, Bidi: false, }, - "Review", - "Program", + "Procedure", + "Discussion", ) graph.MustAddE( - "assets", + "file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: review.AssetsTable, - Columns: []string{review.AssetsColumn}, + Table: procedure.FileTable, + Columns: []string{procedure.FileColumn}, Bidi: false, }, - "Review", - "Asset", + "Procedure", + "File", ) graph.MustAddE( - "entities", + "workflow_object_refs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: false, - Table: review.EntitiesTable, - Columns: []string{review.EntitiesColumn}, + Inverse: true, + Table: procedure.WorkflowObjectRefsTable, + Columns: []string{procedure.WorkflowObjectRefsColumn}, Bidi: false, }, - "Review", - "Entity", + "Procedure", + "WorkflowObjectRef", ) graph.MustAddE( - "tasks", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: review.TasksTable, - Columns: []string{review.TasksColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: program.OwnerTable, + Columns: []string{program.OwnerColumn}, Bidi: false, }, - "Review", - "Task", + "Program", + "Organization", ) graph.MustAddE( - "reviewer", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: review.ReviewerTable, - Columns: []string{review.ReviewerColumn}, + Table: program.BlockedGroupsTable, + Columns: program.BlockedGroupsPrimaryKey, Bidi: false, }, - "Review", - "User", + "Program", + "Group", ) graph.MustAddE( - "comments", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: review.CommentsTable, - Columns: []string{review.CommentsColumn}, + Table: program.EditorsTable, + Columns: program.EditorsPrimaryKey, Bidi: false, }, - "Review", - "Note", + "Program", + "Group", ) graph.MustAddE( - "files", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: review.FilesTable, - Columns: []string{review.FilesColumn}, + Table: program.ViewersTable, + Columns: program.ViewersPrimaryKey, Bidi: false, }, - "Review", - "File", + "Program", + "Group", ) graph.MustAddE( - "internal_policies", + "program_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: review.InternalPoliciesTable, - Columns: review.InternalPoliciesPrimaryKey, + Table: program.ProgramKindTable, + Columns: []string{program.ProgramKindColumn}, Bidi: false, }, - "Review", - "InternalPolicy", + "Program", + "CustomTypeEnum", ) graph.MustAddE( - "owner", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: risk.OwnerTable, - Columns: []string{risk.OwnerColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: program.ControlsTable, + Columns: program.ControlsPrimaryKey, Bidi: false, }, - "Risk", - "Organization", + "Program", + "Control", ) graph.MustAddE( - "blocked_groups", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: risk.BlockedGroupsTable, - Columns: risk.BlockedGroupsPrimaryKey, + Table: program.SubcontrolsTable, + Columns: []string{program.SubcontrolsColumn}, Bidi: false, }, - "Risk", - "Group", + "Program", + "Subcontrol", ) graph.MustAddE( - "editors", + "control_objectives", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: risk.EditorsTable, - Columns: risk.EditorsPrimaryKey, + Table: program.ControlObjectivesTable, + Columns: program.ControlObjectivesPrimaryKey, Bidi: false, }, - "Risk", - "Group", + "Program", + "ControlObjective", ) graph.MustAddE( - "viewers", + "internal_policies", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: risk.ViewersTable, - Columns: risk.ViewersPrimaryKey, + Table: program.InternalPoliciesTable, + Columns: program.InternalPoliciesPrimaryKey, Bidi: false, }, - "Risk", - "Group", + "Program", + "InternalPolicy", ) graph.MustAddE( - "risk_kind", + "procedures", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: risk.RiskKindTable, - Columns: []string{risk.RiskKindColumn}, + Table: program.ProceduresTable, + Columns: program.ProceduresPrimaryKey, Bidi: false, }, - "Risk", - "CustomTypeEnum", + "Program", + "Procedure", ) graph.MustAddE( - "risk_category", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: risk.RiskCategoryTable, - Columns: []string{risk.RiskCategoryColumn}, + Table: program.RisksTable, + Columns: program.RisksPrimaryKey, Bidi: false, }, + "Program", "Risk", - "CustomTypeEnum", ) graph.MustAddE( - "environment", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: risk.EnvironmentTable, - Columns: []string{risk.EnvironmentColumn}, + Table: program.TasksTable, + Columns: program.TasksPrimaryKey, Bidi: false, }, - "Risk", - "CustomTypeEnum", + "Program", + "Task", ) graph.MustAddE( - "scope", + "notes", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: risk.ScopeTable, - Columns: []string{risk.ScopeColumn}, + Table: program.NotesTable, + Columns: []string{program.NotesColumn}, Bidi: false, }, - "Risk", - "CustomTypeEnum", + "Program", + "Note", ) graph.MustAddE( - "controls", + "files", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.ControlsTable, - Columns: risk.ControlsPrimaryKey, + Inverse: false, + Table: program.FilesTable, + Columns: program.FilesPrimaryKey, Bidi: false, }, - "Risk", - "Control", + "Program", + "File", ) graph.MustAddE( - "subcontrols", + "evidence", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.SubcontrolsTable, - Columns: risk.SubcontrolsPrimaryKey, + Inverse: false, + Table: program.EvidenceTable, + Columns: program.EvidencePrimaryKey, Bidi: false, }, - "Risk", - "Subcontrol", + "Program", + "Evidence", ) graph.MustAddE( - "procedures", + "narratives", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.ProceduresTable, - Columns: risk.ProceduresPrimaryKey, + Inverse: false, + Table: program.NarrativesTable, + Columns: program.NarrativesPrimaryKey, Bidi: false, }, - "Risk", - "Procedure", + "Program", + "Narrative", ) graph.MustAddE( - "internal_policies", + "action_plans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.InternalPoliciesTable, - Columns: risk.InternalPoliciesPrimaryKey, + Inverse: false, + Table: program.ActionPlansTable, + Columns: program.ActionPlansPrimaryKey, Bidi: false, }, - "Risk", - "InternalPolicy", + "Program", + "ActionPlan", ) graph.MustAddE( - "programs", + "system_detail", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.ProgramsTable, - Columns: risk.ProgramsPrimaryKey, + Rel: sqlgraph.O2O, + Inverse: false, + Table: program.SystemDetailTable, + Columns: []string{program.SystemDetailColumn}, Bidi: false, }, - "Risk", "Program", + "SystemDetail", ) graph.MustAddE( - "platforms", + "users", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: risk.PlatformsTable, - Columns: risk.PlatformsPrimaryKey, + Table: program.UsersTable, + Columns: program.UsersPrimaryKey, Bidi: false, }, - "Risk", - "Platform", + "Program", + "User", ) graph.MustAddE( - "action_plans", + "program_owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: risk.ActionPlansTable, - Columns: risk.ActionPlansPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: true, + Table: program.ProgramOwnerTable, + Columns: []string{program.ProgramOwnerColumn}, Bidi: false, }, - "Risk", - "ActionPlan", + "Program", + "User", ) graph.MustAddE( - "tasks", + "members", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: risk.TasksTable, - Columns: risk.TasksPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: true, + Table: program.MembersTable, + Columns: []string{program.MembersColumn}, Bidi: false, }, - "Risk", - "Task", + "Program", + "ProgramMembership", ) graph.MustAddE( - "assets", + "program", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: risk.AssetsTable, - Columns: []string{risk.AssetsColumn}, + Table: programmembership.ProgramTable, + Columns: []string{programmembership.ProgramColumn}, Bidi: false, }, - "Risk", - "Asset", + "ProgramMembership", + "Program", ) graph.MustAddE( - "entities", + "user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: risk.EntitiesTable, - Columns: []string{risk.EntitiesColumn}, + Table: programmembership.UserTable, + Columns: []string{programmembership.UserColumn}, Bidi: false, }, - "Risk", - "Entity", + "ProgramMembership", + "User", ) graph.MustAddE( - "scans", + "org_membership", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: risk.ScansTable, - Columns: []string{risk.ScansColumn}, + Table: programmembership.OrgMembershipTable, + Columns: []string{programmembership.OrgMembershipColumn}, Bidi: false, }, - "Risk", - "Scan", + "ProgramMembership", + "OrgMembership", ) graph.MustAddE( - "stakeholder", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: risk.StakeholderTable, - Columns: []string{risk.StakeholderColumn}, + Inverse: true, + Table: remediation.OwnerTable, + Columns: []string{remediation.OwnerColumn}, Bidi: false, }, - "Risk", - "Group", + "Remediation", + "Organization", ) graph.MustAddE( - "delegate", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: risk.DelegateTable, - Columns: []string{risk.DelegateColumn}, + Table: remediation.BlockedGroupsTable, + Columns: []string{remediation.BlockedGroupsColumn}, Bidi: false, }, - "Risk", + "Remediation", "Group", ) graph.MustAddE( - "comments", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: risk.CommentsTable, - Columns: []string{risk.CommentsColumn}, + Table: remediation.EditorsTable, + Columns: []string{remediation.EditorsColumn}, Bidi: false, }, - "Risk", - "Note", + "Remediation", + "Group", ) graph.MustAddE( - "discussions", + "viewers", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: risk.DiscussionsTable, - Columns: []string{risk.DiscussionsColumn}, + Table: remediation.ViewersTable, + Columns: []string{remediation.ViewersColumn}, Bidi: false, }, - "Risk", - "Discussion", + "Remediation", + "Group", ) graph.MustAddE( - "reviews", + "environment", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: risk.ReviewsTable, - Columns: risk.ReviewsPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: remediation.EnvironmentTable, + Columns: []string{remediation.EnvironmentColumn}, Bidi: false, }, - "Risk", - "Review", + "Remediation", + "CustomTypeEnum", ) graph.MustAddE( - "remediations", + "scope", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: remediation.ScopeTable, + Columns: []string{remediation.ScopeColumn}, + Bidi: false, + }, + "Remediation", + "CustomTypeEnum", + ) + graph.MustAddE( + "integrations", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: risk.RemediationsTable, - Columns: risk.RemediationsPrimaryKey, + Table: remediation.IntegrationsTable, + Columns: remediation.IntegrationsPrimaryKey, Bidi: false, }, - "Risk", "Remediation", + "Integration", ) graph.MustAddE( - "owner", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: sladefinition.OwnerTable, - Columns: []string{sladefinition.OwnerColumn}, + Table: remediation.ScansTable, + Columns: remediation.ScansPrimaryKey, Bidi: false, }, - "SLADefinition", - "Organization", + "Remediation", + "Scan", ) graph.MustAddE( - "blocked_groups", + "findings", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: sladefinition.BlockedGroupsTable, - Columns: []string{sladefinition.BlockedGroupsColumn}, + Table: remediation.FindingsTable, + Columns: remediation.FindingsPrimaryKey, Bidi: false, }, - "SLADefinition", - "Group", + "Remediation", + "Finding", ) graph.MustAddE( - "editors", + "vulnerabilities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: sladefinition.EditorsTable, - Columns: []string{sladefinition.EditorsColumn}, + Table: remediation.VulnerabilitiesTable, + Columns: remediation.VulnerabilitiesPrimaryKey, Bidi: false, }, - "SLADefinition", - "Group", + "Remediation", + "Vulnerability", ) graph.MustAddE( - "viewers", + "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: sladefinition.ViewersTable, - Columns: []string{sladefinition.ViewersColumn}, + Table: remediation.ActionPlansTable, + Columns: remediation.ActionPlansPrimaryKey, Bidi: false, }, - "SLADefinition", - "Group", + "Remediation", + "ActionPlan", ) graph.MustAddE( - "owner", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: scan.OwnerTable, - Columns: []string{scan.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: remediation.TasksTable, + Columns: []string{remediation.TasksColumn}, Bidi: false, }, - "Scan", - "Organization", + "Remediation", + "Task", ) graph.MustAddE( - "blocked_groups", + "controls", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: scan.BlockedGroupsTable, - Columns: scan.BlockedGroupsPrimaryKey, + Table: remediation.ControlsTable, + Columns: remediation.ControlsPrimaryKey, Bidi: false, }, - "Scan", - "Group", + "Remediation", + "Control", ) graph.MustAddE( - "editors", + "subcontrols", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: scan.EditorsTable, - Columns: scan.EditorsPrimaryKey, + Table: remediation.SubcontrolsTable, + Columns: remediation.SubcontrolsPrimaryKey, Bidi: false, }, - "Scan", - "Group", + "Remediation", + "Subcontrol", ) graph.MustAddE( - "viewers", + "risks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: scan.ViewersTable, - Columns: scan.ViewersPrimaryKey, + Table: remediation.RisksTable, + Columns: remediation.RisksPrimaryKey, Bidi: false, }, - "Scan", - "Group", + "Remediation", + "Risk", ) graph.MustAddE( - "reviewed_by_user", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.ReviewedByUserTable, - Columns: []string{scan.ReviewedByUserColumn}, + Table: remediation.ProgramsTable, + Columns: []string{remediation.ProgramsColumn}, Bidi: false, }, - "Scan", - "User", + "Remediation", + "Program", ) graph.MustAddE( - "reviewed_by_group", + "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.ReviewedByGroupTable, - Columns: []string{scan.ReviewedByGroupColumn}, + Table: remediation.AssetsTable, + Columns: []string{remediation.AssetsColumn}, Bidi: false, }, - "Scan", - "Group", + "Remediation", + "Asset", ) graph.MustAddE( - "assigned_to_user", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.AssignedToUserTable, - Columns: []string{scan.AssignedToUserColumn}, + Table: remediation.EntitiesTable, + Columns: []string{remediation.EntitiesColumn}, Bidi: false, }, - "Scan", - "User", + "Remediation", + "Entity", ) graph.MustAddE( - "assigned_to_group", + "reviews", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: scan.AssignedToGroupTable, - Columns: []string{scan.AssignedToGroupColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: remediation.ReviewsTable, + Columns: remediation.ReviewsPrimaryKey, Bidi: false, }, - "Scan", - "Group", + "Remediation", + "Review", ) graph.MustAddE( - "environment", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.EnvironmentTable, - Columns: []string{scan.EnvironmentColumn}, + Table: remediation.CommentsTable, + Columns: []string{remediation.CommentsColumn}, Bidi: false, }, - "Scan", - "CustomTypeEnum", + "Remediation", + "Note", ) graph.MustAddE( - "scope", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.ScopeTable, - Columns: []string{scan.ScopeColumn}, + Table: remediation.FilesTable, + Columns: []string{remediation.FilesColumn}, Bidi: false, }, - "Scan", - "CustomTypeEnum", + "Remediation", + "File", ) graph.MustAddE( - "assets", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: scan.AssetsTable, - Columns: scan.AssetsPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: true, + Table: review.OwnerTable, + Columns: []string{review.OwnerColumn}, Bidi: false, }, - "Scan", - "Asset", + "Review", + "Organization", ) graph.MustAddE( - "entities", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: scan.EntitiesTable, - Columns: []string{scan.EntitiesColumn}, + Table: review.BlockedGroupsTable, + Columns: []string{review.BlockedGroupsColumn}, Bidi: false, }, - "Scan", - "Entity", - ) + "Review", + "Group", + ) graph.MustAddE( - "evidence", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.EvidenceTable, - Columns: scan.EvidencePrimaryKey, + Table: review.EditorsTable, + Columns: []string{review.EditorsColumn}, Bidi: false, }, - "Scan", - "Evidence", + "Review", + "Group", ) graph.MustAddE( - "files", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: scan.FilesTable, - Columns: scan.FilesPrimaryKey, + Table: review.ViewersTable, + Columns: []string{review.ViewersColumn}, Bidi: false, }, - "Scan", - "File", + "Review", + "Group", ) graph.MustAddE( - "remediations", + "environment", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: scan.RemediationsTable, - Columns: scan.RemediationsPrimaryKey, + Table: review.EnvironmentTable, + Columns: []string{review.EnvironmentColumn}, Bidi: false, }, - "Scan", - "Remediation", + "Review", + "CustomTypeEnum", ) graph.MustAddE( - "action_plans", + "scope", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: scan.ActionPlansTable, - Columns: scan.ActionPlansPrimaryKey, + Table: review.ScopeTable, + Columns: []string{review.ScopeColumn}, Bidi: false, }, - "Scan", - "ActionPlan", + "Review", + "CustomTypeEnum", ) graph.MustAddE( - "tasks", + "integrations", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: scan.TasksTable, - Columns: scan.TasksPrimaryKey, + Inverse: true, + Table: review.IntegrationsTable, + Columns: review.IntegrationsPrimaryKey, Bidi: false, }, - "Scan", - "Task", + "Review", + "Integration", ) graph.MustAddE( - "platforms", + "findings", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: scan.PlatformsTable, - Columns: scan.PlatformsPrimaryKey, + Inverse: false, + Table: review.FindingsTable, + Columns: review.FindingsPrimaryKey, Bidi: false, }, - "Scan", - "Platform", + "Review", + "Finding", ) graph.MustAddE( "vulnerabilities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: scan.VulnerabilitiesTable, - Columns: scan.VulnerabilitiesPrimaryKey, + Inverse: false, + Table: review.VulnerabilitiesTable, + Columns: review.VulnerabilitiesPrimaryKey, Bidi: false, }, - "Scan", + "Review", "Vulnerability", ) graph.MustAddE( - "controls", + "action_plans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: scan.ControlsTable, - Columns: scan.ControlsPrimaryKey, + Inverse: false, + Table: review.ActionPlansTable, + Columns: review.ActionPlansPrimaryKey, Bidi: false, }, - "Scan", - "Control", + "Review", + "ActionPlan", ) graph.MustAddE( - "subcontrols", + "remediations", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: scan.SubcontrolsTable, - Columns: scan.SubcontrolsPrimaryKey, + Inverse: false, + Table: review.RemediationsTable, + Columns: review.RemediationsPrimaryKey, Bidi: false, }, - "Scan", - "Subcontrol", + "Review", + "Remediation", ) graph.MustAddE( - "generated_by_platform", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: scan.GeneratedByPlatformTable, - Columns: []string{scan.GeneratedByPlatformColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: review.ControlsTable, + Columns: review.ControlsPrimaryKey, Bidi: false, }, - "Scan", - "Platform", + "Review", + "Control", ) graph.MustAddE( - "performed_by_user", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: scan.PerformedByUserTable, - Columns: []string{scan.PerformedByUserColumn}, + Table: review.SubcontrolsTable, + Columns: review.SubcontrolsPrimaryKey, Bidi: false, }, - "Scan", - "User", + "Review", + "Subcontrol", ) graph.MustAddE( - "performed_by_group", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: scan.PerformedByGroupTable, - Columns: []string{scan.PerformedByGroupColumn}, + Table: review.RisksTable, + Columns: review.RisksPrimaryKey, Bidi: false, }, - "Scan", - "Group", + "Review", + "Risk", ) graph.MustAddE( - "owner", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: scheduledjob.OwnerTable, - Columns: []string{scheduledjob.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: review.ProgramsTable, + Columns: []string{review.ProgramsColumn}, Bidi: false, }, - "ScheduledJob", - "Organization", + "Review", + "Program", ) graph.MustAddE( - "job_template", + "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: scheduledjob.JobTemplateTable, - Columns: []string{scheduledjob.JobTemplateColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: review.AssetsTable, + Columns: []string{review.AssetsColumn}, Bidi: false, }, - "ScheduledJob", - "JobTemplate", + "Review", + "Asset", ) graph.MustAddE( - "controls", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: scheduledjob.ControlsTable, - Columns: scheduledjob.ControlsPrimaryKey, + Table: review.EntitiesTable, + Columns: []string{review.EntitiesColumn}, Bidi: false, }, - "ScheduledJob", - "Control", + "Review", + "Entity", ) graph.MustAddE( - "subcontrols", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: scheduledjob.SubcontrolsTable, - Columns: scheduledjob.SubcontrolsPrimaryKey, + Table: review.TasksTable, + Columns: []string{review.TasksColumn}, Bidi: false, }, - "ScheduledJob", - "Subcontrol", + "Review", + "Task", ) graph.MustAddE( - "job_runner", + "reviewer", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: scheduledjob.JobRunnerTable, - Columns: []string{scheduledjob.JobRunnerColumn}, + Table: review.ReviewerTable, + Columns: []string{review.ReviewerColumn}, Bidi: false, }, - "ScheduledJob", - "JobRunner", + "Review", + "User", ) graph.MustAddE( - "owner", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: scheduledjobrun.OwnerTable, - Columns: []string{scheduledjobrun.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: review.CommentsTable, + Columns: []string{review.CommentsColumn}, Bidi: false, }, - "ScheduledJobRun", - "Organization", + "Review", + "Note", ) graph.MustAddE( - "scheduled_job", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: scheduledjobrun.ScheduledJobTable, - Columns: []string{scheduledjobrun.ScheduledJobColumn}, + Table: review.FilesTable, + Columns: []string{review.FilesColumn}, Bidi: false, }, - "ScheduledJobRun", - "ScheduledJob", + "Review", + "File", ) graph.MustAddE( - "job_runner", + "internal_policies", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: scheduledjobrun.JobRunnerTable, - Columns: []string{scheduledjobrun.JobRunnerColumn}, + Table: review.InternalPoliciesTable, + Columns: review.InternalPoliciesPrimaryKey, Bidi: false, }, - "ScheduledJobRun", - "JobRunner", + "Review", + "InternalPolicy", ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: standard.OwnerTable, - Columns: []string{standard.OwnerColumn}, + Table: risk.OwnerTable, + Columns: []string{risk.OwnerColumn}, Bidi: false, }, - "Standard", + "Risk", "Organization", ) graph.MustAddE( - "controls", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: standard.ControlsTable, - Columns: []string{standard.ControlsColumn}, + Table: risk.BlockedGroupsTable, + Columns: risk.BlockedGroupsPrimaryKey, Bidi: false, }, - "Standard", - "Control", + "Risk", + "Group", ) graph.MustAddE( - "trust_center_compliances", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: standard.TrustCenterCompliancesTable, - Columns: []string{standard.TrustCenterCompliancesColumn}, + Table: risk.EditorsTable, + Columns: risk.EditorsPrimaryKey, Bidi: false, }, - "Standard", - "TrustCenterCompliance", + "Risk", + "Group", ) graph.MustAddE( - "trust_center_docs", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: standard.TrustCenterDocsTable, - Columns: []string{standard.TrustCenterDocsColumn}, + Table: risk.ViewersTable, + Columns: risk.ViewersPrimaryKey, Bidi: false, }, - "Standard", - "TrustCenterDoc", + "Risk", + "Group", ) graph.MustAddE( - "applicable_platforms", + "risk_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: standard.ApplicablePlatformsTable, - Columns: standard.ApplicablePlatformsPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: risk.RiskKindTable, + Columns: []string{risk.RiskKindColumn}, Bidi: false, }, - "Standard", - "Platform", + "Risk", + "CustomTypeEnum", ) graph.MustAddE( - "logo_file", + "risk_category", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: standard.LogoFileTable, - Columns: []string{standard.LogoFileColumn}, + Table: risk.RiskCategoryTable, + Columns: []string{risk.RiskCategoryColumn}, Bidi: false, }, - "Standard", - "File", + "Risk", + "CustomTypeEnum", ) graph.MustAddE( - "evidence", + "environment", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: risk.EnvironmentTable, + Columns: []string{risk.EnvironmentColumn}, + Bidi: false, + }, + "Risk", + "CustomTypeEnum", + ) + graph.MustAddE( + "scope", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: risk.ScopeTable, + Columns: []string{risk.ScopeColumn}, + Bidi: false, + }, + "Risk", + "CustomTypeEnum", + ) + graph.MustAddE( + "controls", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: subcontrol.EvidenceTable, - Columns: subcontrol.EvidencePrimaryKey, + Table: risk.ControlsTable, + Columns: risk.ControlsPrimaryKey, Bidi: false, }, - "Subcontrol", - "Evidence", + "Risk", + "Control", ) graph.MustAddE( - "control_objectives", + "subcontrols", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: subcontrol.ControlObjectivesTable, - Columns: subcontrol.ControlObjectivesPrimaryKey, + Inverse: true, + Table: risk.SubcontrolsTable, + Columns: risk.SubcontrolsPrimaryKey, Bidi: false, }, + "Risk", "Subcontrol", - "ControlObjective", ) graph.MustAddE( - "tasks", + "procedures", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: subcontrol.TasksTable, - Columns: subcontrol.TasksPrimaryKey, + Inverse: true, + Table: risk.ProceduresTable, + Columns: risk.ProceduresPrimaryKey, Bidi: false, }, - "Subcontrol", - "Task", + "Risk", + "Procedure", ) graph.MustAddE( - "narratives", + "internal_policies", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: subcontrol.NarrativesTable, - Columns: []string{subcontrol.NarrativesColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.InternalPoliciesTable, + Columns: risk.InternalPoliciesPrimaryKey, Bidi: false, }, - "Subcontrol", - "Narrative", + "Risk", + "InternalPolicy", ) graph.MustAddE( - "risks", + "programs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: false, - Table: subcontrol.RisksTable, - Columns: subcontrol.RisksPrimaryKey, + Inverse: true, + Table: risk.ProgramsTable, + Columns: risk.ProgramsPrimaryKey, + Bidi: false, + }, + "Risk", + "Program", + ) + graph.MustAddE( + "platforms", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.PlatformsTable, + Columns: risk.PlatformsPrimaryKey, Bidi: false, }, - "Subcontrol", "Risk", + "Platform", ) graph.MustAddE( "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: subcontrol.ActionPlansTable, - Columns: []string{subcontrol.ActionPlansColumn}, + Table: risk.ActionPlansTable, + Columns: risk.ActionPlansPrimaryKey, Bidi: false, }, - "Subcontrol", + "Risk", "ActionPlan", ) graph.MustAddE( - "procedures", + "tasks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: subcontrol.ProceduresTable, - Columns: subcontrol.ProceduresPrimaryKey, + Table: risk.TasksTable, + Columns: risk.TasksPrimaryKey, Bidi: false, }, - "Subcontrol", - "Procedure", + "Risk", + "Task", ) graph.MustAddE( - "internal_policies", + "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: subcontrol.InternalPoliciesTable, - Columns: subcontrol.InternalPoliciesPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: risk.AssetsTable, + Columns: []string{risk.AssetsColumn}, Bidi: false, }, - "Subcontrol", - "InternalPolicy", + "Risk", + "Asset", ) graph.MustAddE( - "comments", + "entities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: subcontrol.CommentsTable, - Columns: []string{subcontrol.CommentsColumn}, + Table: risk.EntitiesTable, + Columns: []string{risk.EntitiesColumn}, Bidi: false, }, - "Subcontrol", - "Note", + "Risk", + "Entity", ) graph.MustAddE( - "discussions", + "scans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: subcontrol.DiscussionsTable, - Columns: []string{subcontrol.DiscussionsColumn}, + Table: risk.ScansTable, + Columns: []string{risk.ScansColumn}, Bidi: false, }, - "Subcontrol", - "Discussion", + "Risk", + "Scan", ) graph.MustAddE( - "control_owner", + "stakeholder", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: subcontrol.ControlOwnerTable, - Columns: []string{subcontrol.ControlOwnerColumn}, + Table: risk.StakeholderTable, + Columns: []string{risk.StakeholderColumn}, Bidi: false, }, - "Subcontrol", + "Risk", "Group", ) graph.MustAddE( @@ -14699,35 +14687,47 @@ var schemaGraph = func() *sqlgraph.Schema { &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: subcontrol.DelegateTable, - Columns: []string{subcontrol.DelegateColumn}, + Table: risk.DelegateTable, + Columns: []string{risk.DelegateColumn}, Bidi: false, }, - "Subcontrol", + "Risk", "Group", ) graph.MustAddE( - "responsible_party", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: subcontrol.ResponsiblePartyTable, - Columns: []string{subcontrol.ResponsiblePartyColumn}, + Table: risk.CommentsTable, + Columns: []string{risk.CommentsColumn}, Bidi: false, }, - "Subcontrol", - "Entity", + "Risk", + "Note", + ) + graph.MustAddE( + "discussions", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: risk.DiscussionsTable, + Columns: []string{risk.DiscussionsColumn}, + Bidi: false, + }, + "Risk", + "Discussion", ) graph.MustAddE( "reviews", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: subcontrol.ReviewsTable, - Columns: subcontrol.ReviewsPrimaryKey, + Table: risk.ReviewsTable, + Columns: risk.ReviewsPrimaryKey, Bidi: false, }, - "Subcontrol", + "Risk", "Review", ) graph.MustAddE( @@ -14735,1847 +14735,1799 @@ var schemaGraph = func() *sqlgraph.Schema { &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: subcontrol.RemediationsTable, - Columns: subcontrol.RemediationsPrimaryKey, + Table: risk.RemediationsTable, + Columns: risk.RemediationsPrimaryKey, Bidi: false, }, - "Subcontrol", + "Risk", "Remediation", ) graph.MustAddE( - "scans", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: false, - Table: subcontrol.ScansTable, - Columns: subcontrol.ScansPrimaryKey, - Bidi: false, - }, - "Subcontrol", - "Scan", - ) - graph.MustAddE( - "owner", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: subcontrol.OwnerTable, - Columns: []string{subcontrol.OwnerColumn}, + Table: sladefinition.OwnerTable, + Columns: []string{sladefinition.OwnerColumn}, Bidi: false, }, - "Subcontrol", + "SLADefinition", "Organization", ) graph.MustAddE( - "subcontrol_kind", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: subcontrol.SubcontrolKindTable, - Columns: []string{subcontrol.SubcontrolKindColumn}, + Table: sladefinition.BlockedGroupsTable, + Columns: []string{sladefinition.BlockedGroupsColumn}, Bidi: false, }, - "Subcontrol", - "CustomTypeEnum", + "SLADefinition", + "Group", ) graph.MustAddE( - "control", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: subcontrol.ControlTable, - Columns: []string{subcontrol.ControlColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: sladefinition.EditorsTable, + Columns: []string{sladefinition.EditorsColumn}, Bidi: false, }, - "Subcontrol", - "Control", + "SLADefinition", + "Group", ) graph.MustAddE( - "control_implementations", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: subcontrol.ControlImplementationsTable, - Columns: subcontrol.ControlImplementationsPrimaryKey, + Table: sladefinition.ViewersTable, + Columns: []string{sladefinition.ViewersColumn}, Bidi: false, }, - "Subcontrol", - "ControlImplementation", + "SLADefinition", + "Group", ) graph.MustAddE( - "scheduled_jobs", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: subcontrol.ScheduledJobsTable, - Columns: subcontrol.ScheduledJobsPrimaryKey, + Table: scan.OwnerTable, + Columns: []string{scan.OwnerColumn}, Bidi: false, }, - "Subcontrol", - "ScheduledJob", + "Scan", + "Organization", ) graph.MustAddE( - "mapped_to_subcontrols", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: subcontrol.MappedToSubcontrolsTable, - Columns: subcontrol.MappedToSubcontrolsPrimaryKey, + Inverse: false, + Table: scan.BlockedGroupsTable, + Columns: scan.BlockedGroupsPrimaryKey, Bidi: false, }, - "Subcontrol", - "MappedControl", + "Scan", + "Group", ) graph.MustAddE( - "mapped_from_subcontrols", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: subcontrol.MappedFromSubcontrolsTable, - Columns: subcontrol.MappedFromSubcontrolsPrimaryKey, + Inverse: false, + Table: scan.EditorsTable, + Columns: scan.EditorsPrimaryKey, Bidi: false, }, - "Subcontrol", - "MappedControl", + "Scan", + "Group", ) graph.MustAddE( - "workflow_object_refs", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: subcontrol.WorkflowObjectRefsTable, - Columns: []string{subcontrol.WorkflowObjectRefsColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: scan.ViewersTable, + Columns: scan.ViewersPrimaryKey, Bidi: false, }, - "Subcontrol", - "WorkflowObjectRef", + "Scan", + "Group", ) graph.MustAddE( - "assets", + "reviewed_by_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: subcontrol.AssetsTable, - Columns: subcontrol.AssetsPrimaryKey, + Table: scan.ReviewedByUserTable, + Columns: []string{scan.ReviewedByUserColumn}, Bidi: false, }, - "Subcontrol", - "Asset", + "Scan", + "User", ) graph.MustAddE( - "entities", + "reviewed_by_group", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: subcontrol.EntitiesTable, - Columns: subcontrol.EntitiesPrimaryKey, + Table: scan.ReviewedByGroupTable, + Columns: []string{scan.ReviewedByGroupColumn}, Bidi: false, }, - "Subcontrol", - "Entity", + "Scan", + "Group", ) graph.MustAddE( - "identity_holders", + "assigned_to_user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: subcontrol.IdentityHoldersTable, - Columns: subcontrol.IdentityHoldersPrimaryKey, + Table: scan.AssignedToUserTable, + Columns: []string{scan.AssignedToUserColumn}, Bidi: false, }, - "Subcontrol", - "IdentityHolder", + "Scan", + "User", ) graph.MustAddE( - "owner", + "assigned_to_group", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: subprocessor.OwnerTable, - Columns: []string{subprocessor.OwnerColumn}, + Inverse: false, + Table: scan.AssignedToGroupTable, + Columns: []string{scan.AssignedToGroupColumn}, Bidi: false, }, - "Subprocessor", - "Organization", + "Scan", + "Group", ) graph.MustAddE( - "logo_file", + "environment", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: subprocessor.LogoFileTable, - Columns: []string{subprocessor.LogoFileColumn}, + Table: scan.EnvironmentTable, + Columns: []string{scan.EnvironmentColumn}, Bidi: false, }, - "Subprocessor", - "File", + "Scan", + "CustomTypeEnum", ) graph.MustAddE( - "trust_center_subprocessors", + "scope", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: subprocessor.TrustCenterSubprocessorsTable, - Columns: []string{subprocessor.TrustCenterSubprocessorsColumn}, + Table: scan.ScopeTable, + Columns: []string{scan.ScopeColumn}, Bidi: false, }, - "Subprocessor", - "TrustCenterSubprocessor", + "Scan", + "CustomTypeEnum", ) graph.MustAddE( - "entities", + "assets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: subprocessor.EntitiesTable, - Columns: subprocessor.EntitiesPrimaryKey, + Inverse: false, + Table: scan.AssetsTable, + Columns: scan.AssetsPrimaryKey, Bidi: false, }, - "Subprocessor", - "Entity", + "Scan", + "Asset", ) graph.MustAddE( - "owner", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: subscriber.OwnerTable, - Columns: []string{subscriber.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: scan.EntitiesTable, + Columns: []string{scan.EntitiesColumn}, Bidi: false, }, - "Subscriber", - "Organization", + "Scan", + "Entity", ) graph.MustAddE( - "events", + "evidence", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: subscriber.EventsTable, - Columns: subscriber.EventsPrimaryKey, + Table: scan.EvidenceTable, + Columns: scan.EvidencePrimaryKey, Bidi: false, }, - "Subscriber", - "Event", + "Scan", + "Evidence", ) graph.MustAddE( - "owner", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: systemdetail.OwnerTable, - Columns: []string{systemdetail.OwnerColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: scan.FilesTable, + Columns: scan.FilesPrimaryKey, Bidi: false, }, - "SystemDetail", - "Organization", + "Scan", + "File", ) graph.MustAddE( - "program", + "remediations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, - Inverse: true, - Table: systemdetail.ProgramTable, - Columns: []string{systemdetail.ProgramColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: scan.RemediationsTable, + Columns: scan.RemediationsPrimaryKey, Bidi: false, }, - "SystemDetail", - "Program", + "Scan", + "Remediation", ) graph.MustAddE( - "platform", + "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, - Inverse: true, - Table: systemdetail.PlatformTable, - Columns: []string{systemdetail.PlatformColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: scan.ActionPlansTable, + Columns: scan.ActionPlansPrimaryKey, Bidi: false, }, - "SystemDetail", - "Platform", + "Scan", + "ActionPlan", ) graph.MustAddE( - "owner", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: tfasetting.OwnerTable, - Columns: []string{tfasetting.OwnerColumn}, - Bidi: false, - }, - "TFASetting", - "User", - ) - graph.MustAddE( - "owner", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: tagdefinition.OwnerTable, - Columns: []string{tagdefinition.OwnerColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: scan.TasksTable, + Columns: scan.TasksPrimaryKey, Bidi: false, }, - "TagDefinition", - "Organization", + "Scan", + "Task", ) graph.MustAddE( - "owner", + "platforms", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: task.OwnerTable, - Columns: []string{task.OwnerColumn}, + Table: scan.PlatformsTable, + Columns: scan.PlatformsPrimaryKey, Bidi: false, }, - "Task", - "Organization", + "Scan", + "Platform", ) graph.MustAddE( - "task_kind", + "vulnerabilities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: task.TaskKindTable, - Columns: []string{task.TaskKindColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: scan.VulnerabilitiesTable, + Columns: scan.VulnerabilitiesPrimaryKey, Bidi: false, }, - "Task", - "CustomTypeEnum", + "Scan", + "Vulnerability", ) graph.MustAddE( - "environment", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: task.EnvironmentTable, - Columns: []string{task.EnvironmentColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: scan.ControlsTable, + Columns: scan.ControlsPrimaryKey, Bidi: false, }, - "Task", - "CustomTypeEnum", + "Scan", + "Control", ) graph.MustAddE( - "scope", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: task.ScopeTable, - Columns: []string{task.ScopeColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: scan.SubcontrolsTable, + Columns: scan.SubcontrolsPrimaryKey, Bidi: false, }, - "Task", - "CustomTypeEnum", + "Scan", + "Subcontrol", ) graph.MustAddE( - "assigner", + "generated_by_platform", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: task.AssignerTable, - Columns: []string{task.AssignerColumn}, + Table: scan.GeneratedByPlatformTable, + Columns: []string{scan.GeneratedByPlatformColumn}, Bidi: false, }, - "Task", - "User", + "Scan", + "Platform", ) graph.MustAddE( - "assignee", + "performed_by_user", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: task.AssigneeTable, - Columns: []string{task.AssigneeColumn}, + Inverse: false, + Table: scan.PerformedByUserTable, + Columns: []string{scan.PerformedByUserColumn}, Bidi: false, }, - "Task", + "Scan", "User", ) graph.MustAddE( - "comments", + "performed_by_group", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: task.CommentsTable, - Columns: []string{task.CommentsColumn}, - Bidi: false, - }, - "Task", - "Note", - ) - graph.MustAddE( - "groups", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.GroupsTable, - Columns: task.GroupsPrimaryKey, + Table: scan.PerformedByGroupTable, + Columns: []string{scan.PerformedByGroupColumn}, Bidi: false, }, - "Task", + "Scan", "Group", ) graph.MustAddE( - "internal_policies", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: task.InternalPoliciesTable, - Columns: task.InternalPoliciesPrimaryKey, + Table: scheduledjob.OwnerTable, + Columns: []string{scheduledjob.OwnerColumn}, Bidi: false, }, - "Task", - "InternalPolicy", + "ScheduledJob", + "Organization", ) graph.MustAddE( - "procedures", + "job_template", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: task.ProceduresTable, - Columns: task.ProceduresPrimaryKey, + Table: scheduledjob.JobTemplateTable, + Columns: []string{scheduledjob.JobTemplateColumn}, Bidi: false, }, - "Task", - "Procedure", + "ScheduledJob", + "JobTemplate", ) graph.MustAddE( "controls", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: task.ControlsTable, - Columns: task.ControlsPrimaryKey, + Inverse: false, + Table: scheduledjob.ControlsTable, + Columns: scheduledjob.ControlsPrimaryKey, Bidi: false, }, - "Task", + "ScheduledJob", "Control", ) graph.MustAddE( "subcontrols", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, - Inverse: true, - Table: task.SubcontrolsTable, - Columns: task.SubcontrolsPrimaryKey, + Inverse: false, + Table: scheduledjob.SubcontrolsTable, + Columns: scheduledjob.SubcontrolsPrimaryKey, Bidi: false, }, - "Task", + "ScheduledJob", "Subcontrol", ) graph.MustAddE( - "control_objectives", + "job_runner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.ControlObjectivesTable, - Columns: task.ControlObjectivesPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: scheduledjob.JobRunnerTable, + Columns: []string{scheduledjob.JobRunnerColumn}, Bidi: false, }, - "Task", - "ControlObjective", + "ScheduledJob", + "JobRunner", ) graph.MustAddE( - "programs", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: task.ProgramsTable, - Columns: task.ProgramsPrimaryKey, + Table: scheduledjobrun.OwnerTable, + Columns: []string{scheduledjobrun.OwnerColumn}, Bidi: false, }, - "Task", - "Program", + "ScheduledJobRun", + "Organization", ) graph.MustAddE( - "risks", + "scheduled_job", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.RisksTable, - Columns: task.RisksPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: scheduledjobrun.ScheduledJobTable, + Columns: []string{scheduledjobrun.ScheduledJobColumn}, Bidi: false, }, - "Task", - "Risk", + "ScheduledJobRun", + "ScheduledJob", ) graph.MustAddE( - "platforms", + "job_runner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.PlatformsTable, - Columns: task.PlatformsPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: scheduledjobrun.JobRunnerTable, + Columns: []string{scheduledjobrun.JobRunnerColumn}, Bidi: false, }, - "Task", - "Platform", + "ScheduledJobRun", + "JobRunner", ) graph.MustAddE( - "scans", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: task.ScansTable, - Columns: task.ScansPrimaryKey, + Table: standard.OwnerTable, + Columns: []string{standard.OwnerColumn}, Bidi: false, }, - "Task", - "Scan", + "Standard", + "Organization", ) graph.MustAddE( - "identity_holders", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.IdentityHoldersTable, - Columns: task.IdentityHoldersPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: []string{standard.ControlsColumn}, Bidi: false, }, - "Task", - "IdentityHolder", + "Standard", + "Control", ) graph.MustAddE( - "control_implementations", + "trust_center_compliances", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.ControlImplementationsTable, - Columns: task.ControlImplementationsPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.TrustCenterCompliancesTable, + Columns: []string{standard.TrustCenterCompliancesColumn}, Bidi: false, }, - "Task", - "ControlImplementation", + "Standard", + "TrustCenterCompliance", ) graph.MustAddE( - "action_plans", + "trust_center_docs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.ActionPlansTable, - Columns: task.ActionPlansPrimaryKey, - Bidi: false, - }, - "Task", - "ActionPlan", - ) - graph.MustAddE( - "evidence", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: task.EvidenceTable, - Columns: task.EvidencePrimaryKey, + Table: standard.TrustCenterDocsTable, + Columns: []string{standard.TrustCenterDocsColumn}, Bidi: false, }, - "Task", - "Evidence", + "Standard", + "TrustCenterDoc", ) graph.MustAddE( - "workflow_object_refs", + "applicable_platforms", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: true, - Table: task.WorkflowObjectRefsTable, - Columns: []string{task.WorkflowObjectRefsColumn}, + Table: standard.ApplicablePlatformsTable, + Columns: standard.ApplicablePlatformsPrimaryKey, Bidi: false, }, - "Task", - "WorkflowObjectRef", + "Standard", + "Platform", ) graph.MustAddE( - "vulnerabilities", + "logo_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: task.VulnerabilitiesTable, - Columns: task.VulnerabilitiesPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: standard.LogoFileTable, + Columns: []string{standard.LogoFileColumn}, Bidi: false, }, - "Task", - "Vulnerability", + "Standard", + "File", ) graph.MustAddE( - "findings", + "evidence", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: true, - Table: task.FindingsTable, - Columns: task.FindingsPrimaryKey, + Table: subcontrol.EvidenceTable, + Columns: subcontrol.EvidencePrimaryKey, Bidi: false, }, - "Task", - "Finding", + "Subcontrol", + "Evidence", ) graph.MustAddE( - "parent", + "control_objectives", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: task.ParentTable, - Columns: []string{task.ParentColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: subcontrol.ControlObjectivesTable, + Columns: subcontrol.ControlObjectivesPrimaryKey, Bidi: false, }, - "Task", - "Task", + "Subcontrol", + "ControlObjective", ) graph.MustAddE( "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: task.TasksTable, - Columns: []string{task.TasksColumn}, + Table: subcontrol.TasksTable, + Columns: subcontrol.TasksPrimaryKey, Bidi: false, }, + "Subcontrol", "Task", - "Task", - ) - graph.MustAddE( - "owner", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: template.OwnerTable, - Columns: []string{template.OwnerColumn}, - Bidi: false, - }, - "Template", - "Organization", ) graph.MustAddE( - "environment", + "narratives", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: template.EnvironmentTable, - Columns: []string{template.EnvironmentColumn}, + Table: subcontrol.NarrativesTable, + Columns: []string{subcontrol.NarrativesColumn}, Bidi: false, }, - "Template", - "CustomTypeEnum", + "Subcontrol", + "Narrative", ) graph.MustAddE( - "scope", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: template.ScopeTable, - Columns: []string{template.ScopeColumn}, + Table: subcontrol.RisksTable, + Columns: subcontrol.RisksPrimaryKey, Bidi: false, }, - "Template", - "CustomTypeEnum", + "Subcontrol", + "Risk", ) graph.MustAddE( - "documents", + "action_plans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: template.DocumentsTable, - Columns: []string{template.DocumentsColumn}, + Table: subcontrol.ActionPlansTable, + Columns: []string{subcontrol.ActionPlansColumn}, Bidi: false, }, - "Template", - "DocumentData", + "Subcontrol", + "ActionPlan", ) graph.MustAddE( - "files", + "procedures", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: template.FilesTable, - Columns: template.FilesPrimaryKey, + Table: subcontrol.ProceduresTable, + Columns: subcontrol.ProceduresPrimaryKey, Bidi: false, }, - "Template", - "File", + "Subcontrol", + "Procedure", ) graph.MustAddE( - "trust_center", + "internal_policies", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: template.TrustCenterTable, - Columns: []string{template.TrustCenterColumn}, + Table: subcontrol.InternalPoliciesTable, + Columns: subcontrol.InternalPoliciesPrimaryKey, Bidi: false, }, - "Template", - "TrustCenter", + "Subcontrol", + "InternalPolicy", ) graph.MustAddE( - "assessments", + "comments", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: template.AssessmentsTable, - Columns: []string{template.AssessmentsColumn}, + Table: subcontrol.CommentsTable, + Columns: []string{subcontrol.CommentsColumn}, Bidi: false, }, - "Template", - "Assessment", + "Subcontrol", + "Note", ) graph.MustAddE( - "campaigns", + "discussions", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: template.CampaignsTable, - Columns: []string{template.CampaignsColumn}, + Table: subcontrol.DiscussionsTable, + Columns: []string{subcontrol.DiscussionsColumn}, Bidi: false, }, - "Template", - "Campaign", + "Subcontrol", + "Discussion", ) graph.MustAddE( - "identity_holders", + "control_owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: template.IdentityHoldersTable, - Columns: template.IdentityHoldersPrimaryKey, + Rel: sqlgraph.M2O, + Inverse: false, + Table: subcontrol.ControlOwnerTable, + Columns: []string{subcontrol.ControlOwnerColumn}, Bidi: false, }, - "Template", - "IdentityHolder", + "Subcontrol", + "Group", ) graph.MustAddE( - "owner", + "delegate", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: trustcenter.OwnerTable, - Columns: []string{trustcenter.OwnerColumn}, + Inverse: false, + Table: subcontrol.DelegateTable, + Columns: []string{subcontrol.DelegateColumn}, Bidi: false, }, - "TrustCenter", - "Organization", + "Subcontrol", + "Group", ) graph.MustAddE( - "blocked_groups", + "responsible_party", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: trustcenter.BlockedGroupsTable, - Columns: []string{trustcenter.BlockedGroupsColumn}, + Table: subcontrol.ResponsiblePartyTable, + Columns: []string{subcontrol.ResponsiblePartyColumn}, Bidi: false, }, - "TrustCenter", - "Group", + "Subcontrol", + "Entity", ) graph.MustAddE( - "editors", + "reviews", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenter.EditorsTable, - Columns: []string{trustcenter.EditorsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ReviewsTable, + Columns: subcontrol.ReviewsPrimaryKey, Bidi: false, }, - "TrustCenter", - "Group", + "Subcontrol", + "Review", ) graph.MustAddE( - "custom_domain", + "remediations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenter.CustomDomainTable, - Columns: []string{trustcenter.CustomDomainColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.RemediationsTable, + Columns: subcontrol.RemediationsPrimaryKey, Bidi: false, }, - "TrustCenter", - "CustomDomain", + "Subcontrol", + "Remediation", ) graph.MustAddE( - "preview_domain", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenter.PreviewDomainTable, - Columns: []string{trustcenter.PreviewDomainColumn}, + Table: subcontrol.ScansTable, + Columns: subcontrol.ScansPrimaryKey, Bidi: false, }, - "TrustCenter", - "CustomDomain", + "Subcontrol", + "Scan", ) graph.MustAddE( - "setting", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenter.SettingTable, - Columns: []string{trustcenter.SettingColumn}, + Inverse: true, + Table: subcontrol.OwnerTable, + Columns: []string{subcontrol.OwnerColumn}, Bidi: false, }, - "TrustCenter", - "TrustCenterSetting", + "Subcontrol", + "Organization", ) graph.MustAddE( - "preview_setting", + "subcontrol_kind", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: trustcenter.PreviewSettingTable, - Columns: []string{trustcenter.PreviewSettingColumn}, + Table: subcontrol.SubcontrolKindTable, + Columns: []string{subcontrol.SubcontrolKindColumn}, Bidi: false, }, - "TrustCenter", - "TrustCenterSetting", + "Subcontrol", + "CustomTypeEnum", ) graph.MustAddE( - "watermark_config", + "control", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenter.WatermarkConfigTable, - Columns: []string{trustcenter.WatermarkConfigColumn}, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: []string{subcontrol.ControlColumn}, Bidi: false, }, - "TrustCenter", - "TrustCenterWatermarkConfig", + "Subcontrol", + "Control", ) graph.MustAddE( - "trust_center_subprocessors", + "control_implementations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenter.TrustCenterSubprocessorsTable, - Columns: []string{trustcenter.TrustCenterSubprocessorsColumn}, + Table: subcontrol.ControlImplementationsTable, + Columns: subcontrol.ControlImplementationsPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterSubprocessor", + "Subcontrol", + "ControlImplementation", ) graph.MustAddE( - "trust_center_docs", + "scheduled_jobs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenter.TrustCenterDocsTable, - Columns: []string{trustcenter.TrustCenterDocsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ScheduledJobsTable, + Columns: subcontrol.ScheduledJobsPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterDoc", + "Subcontrol", + "ScheduledJob", ) graph.MustAddE( - "trust_center_compliances", + "mapped_to_subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenter.TrustCenterCompliancesTable, - Columns: []string{trustcenter.TrustCenterCompliancesColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.MappedToSubcontrolsTable, + Columns: subcontrol.MappedToSubcontrolsPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterCompliance", + "Subcontrol", + "MappedControl", ) graph.MustAddE( - "templates", + "mapped_from_subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenter.TemplatesTable, - Columns: []string{trustcenter.TemplatesColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.MappedFromSubcontrolsTable, + Columns: subcontrol.MappedFromSubcontrolsPrimaryKey, Bidi: false, }, - "TrustCenter", - "Template", + "Subcontrol", + "MappedControl", ) graph.MustAddE( - "posts", + "workflow_object_refs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenter.PostsTable, - Columns: []string{trustcenter.PostsColumn}, + Inverse: true, + Table: subcontrol.WorkflowObjectRefsTable, + Columns: []string{subcontrol.WorkflowObjectRefsColumn}, Bidi: false, }, - "TrustCenter", - "Note", + "Subcontrol", + "WorkflowObjectRef", ) graph.MustAddE( - "trust_center_entities", + "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenter.TrustCenterEntitiesTable, - Columns: []string{trustcenter.TrustCenterEntitiesColumn}, + Table: subcontrol.AssetsTable, + Columns: subcontrol.AssetsPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterEntity", + "Subcontrol", + "Asset", ) graph.MustAddE( - "trust_center_nda_requests", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenter.TrustCenterNdaRequestsTable, - Columns: []string{trustcenter.TrustCenterNdaRequestsColumn}, + Table: subcontrol.EntitiesTable, + Columns: subcontrol.EntitiesPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterNDARequest", + "Subcontrol", + "Entity", ) graph.MustAddE( - "trust_center_faqs", + "identity_holders", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenter.TrustCenterFaqsTable, - Columns: []string{trustcenter.TrustCenterFaqsColumn}, + Table: subcontrol.IdentityHoldersTable, + Columns: subcontrol.IdentityHoldersPrimaryKey, Bidi: false, }, - "TrustCenter", - "TrustCenterFAQ", + "Subcontrol", + "IdentityHolder", ) graph.MustAddE( - "blocked_groups", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, + Inverse: true, + Table: subprocessor.OwnerTable, + Columns: []string{subprocessor.OwnerColumn}, + Bidi: false, + }, + "Subprocessor", + "Organization", + ) + graph.MustAddE( + "logo_file", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, Inverse: false, - Table: trustcentercompliance.BlockedGroupsTable, - Columns: []string{trustcentercompliance.BlockedGroupsColumn}, + Table: subprocessor.LogoFileTable, + Columns: []string{subprocessor.LogoFileColumn}, Bidi: false, }, - "TrustCenterCompliance", - "Group", + "Subprocessor", + "File", ) graph.MustAddE( - "editors", + "trust_center_subprocessors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: trustcentercompliance.EditorsTable, - Columns: []string{trustcentercompliance.EditorsColumn}, + Table: subprocessor.TrustCenterSubprocessorsTable, + Columns: []string{subprocessor.TrustCenterSubprocessorsColumn}, Bidi: false, }, - "TrustCenterCompliance", - "Group", + "Subprocessor", + "TrustCenterSubprocessor", ) graph.MustAddE( - "trust_center", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: trustcentercompliance.TrustCenterTable, - Columns: []string{trustcentercompliance.TrustCenterColumn}, + Table: subprocessor.EntitiesTable, + Columns: subprocessor.EntitiesPrimaryKey, Bidi: false, }, - "TrustCenterCompliance", - "TrustCenter", + "Subprocessor", + "Entity", ) graph.MustAddE( - "standard", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: trustcentercompliance.StandardTable, - Columns: []string{trustcentercompliance.StandardColumn}, + Table: subscriber.OwnerTable, + Columns: []string{subscriber.OwnerColumn}, Bidi: false, }, - "TrustCenterCompliance", - "Standard", + "Subscriber", + "Organization", ) graph.MustAddE( - "trust_center_doc_kind", + "events", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenterdoc.TrustCenterDocKindTable, - Columns: []string{trustcenterdoc.TrustCenterDocKindColumn}, + Table: subscriber.EventsTable, + Columns: subscriber.EventsPrimaryKey, Bidi: false, }, - "TrustCenterDoc", - "CustomTypeEnum", + "Subscriber", + "Event", ) graph.MustAddE( - "blocked_groups", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterdoc.BlockedGroupsTable, - Columns: []string{trustcenterdoc.BlockedGroupsColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: systemdetail.OwnerTable, + Columns: []string{systemdetail.OwnerColumn}, Bidi: false, }, - "TrustCenterDoc", - "Group", + "SystemDetail", + "Organization", ) graph.MustAddE( - "editors", + "program", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterdoc.EditorsTable, - Columns: []string{trustcenterdoc.EditorsColumn}, + Rel: sqlgraph.O2O, + Inverse: true, + Table: systemdetail.ProgramTable, + Columns: []string{systemdetail.ProgramColumn}, Bidi: false, }, - "TrustCenterDoc", - "Group", + "SystemDetail", + "Program", ) graph.MustAddE( - "trust_center", + "platform", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2O, Inverse: true, - Table: trustcenterdoc.TrustCenterTable, - Columns: []string{trustcenterdoc.TrustCenterColumn}, + Table: systemdetail.PlatformTable, + Columns: []string{systemdetail.PlatformColumn}, Bidi: false, }, - "TrustCenterDoc", - "TrustCenter", + "SystemDetail", + "Platform", ) graph.MustAddE( - "standard", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: trustcenterdoc.StandardTable, - Columns: []string{trustcenterdoc.StandardColumn}, + Table: tfasetting.OwnerTable, + Columns: []string{tfasetting.OwnerColumn}, Bidi: false, }, - "TrustCenterDoc", - "Standard", + "TFASetting", + "User", ) graph.MustAddE( - "file", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenterdoc.FileTable, - Columns: []string{trustcenterdoc.FileColumn}, + Inverse: true, + Table: tagdefinition.OwnerTable, + Columns: []string{tagdefinition.OwnerColumn}, Bidi: false, }, - "TrustCenterDoc", - "File", + "TagDefinition", + "Organization", ) graph.MustAddE( - "original_file", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenterdoc.OriginalFileTable, - Columns: []string{trustcenterdoc.OriginalFileColumn}, + Inverse: true, + Table: task.OwnerTable, + Columns: []string{task.OwnerColumn}, Bidi: false, }, - "TrustCenterDoc", - "File", + "Task", + "Organization", ) graph.MustAddE( - "blocked_groups", + "task_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: trustcenterentity.BlockedGroupsTable, - Columns: []string{trustcenterentity.BlockedGroupsColumn}, + Table: task.TaskKindTable, + Columns: []string{task.TaskKindColumn}, Bidi: false, }, - "TrustCenterEntity", - "Group", + "Task", + "CustomTypeEnum", ) graph.MustAddE( - "editors", + "environment", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: trustcenterentity.EditorsTable, - Columns: []string{trustcenterentity.EditorsColumn}, + Table: task.EnvironmentTable, + Columns: []string{task.EnvironmentColumn}, Bidi: false, }, - "TrustCenterEntity", - "Group", + "Task", + "CustomTypeEnum", ) graph.MustAddE( - "logo_file", + "scope", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: trustcenterentity.LogoFileTable, - Columns: []string{trustcenterentity.LogoFileColumn}, + Table: task.ScopeTable, + Columns: []string{task.ScopeColumn}, Bidi: false, }, - "TrustCenterEntity", - "File", + "Task", + "CustomTypeEnum", ) graph.MustAddE( - "trust_center", + "assigner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: trustcenterentity.TrustCenterTable, - Columns: []string{trustcenterentity.TrustCenterColumn}, + Table: task.AssignerTable, + Columns: []string{task.AssignerColumn}, Bidi: false, }, - "TrustCenterEntity", - "TrustCenter", + "Task", + "User", ) graph.MustAddE( - "entity_type", + "assignee", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenterentity.EntityTypeTable, - Columns: []string{trustcenterentity.EntityTypeColumn}, + Inverse: true, + Table: task.AssigneeTable, + Columns: []string{task.AssigneeColumn}, Bidi: false, }, - "TrustCenterEntity", - "EntityType", + "Task", + "User", ) graph.MustAddE( - "trust_center_faq_kind", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: trustcenterfaq.TrustCenterFaqKindTable, - Columns: []string{trustcenterfaq.TrustCenterFaqKindColumn}, + Table: task.CommentsTable, + Columns: []string{task.CommentsColumn}, Bidi: false, }, - "TrustCenterFAQ", - "CustomTypeEnum", + "Task", + "Note", ) graph.MustAddE( - "blocked_groups", + "groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterfaq.BlockedGroupsTable, - Columns: []string{trustcenterfaq.BlockedGroupsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.GroupsTable, + Columns: task.GroupsPrimaryKey, Bidi: false, }, - "TrustCenterFAQ", + "Task", "Group", ) graph.MustAddE( - "editors", + "internal_policies", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterfaq.EditorsTable, - Columns: []string{trustcenterfaq.EditorsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.InternalPoliciesTable, + Columns: task.InternalPoliciesPrimaryKey, Bidi: false, }, - "TrustCenterFAQ", - "Group", + "Task", + "InternalPolicy", ) graph.MustAddE( - "trust_center", + "procedures", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: trustcenterfaq.TrustCenterTable, - Columns: []string{trustcenterfaq.TrustCenterColumn}, + Table: task.ProceduresTable, + Columns: task.ProceduresPrimaryKey, Bidi: false, }, - "TrustCenterFAQ", - "TrustCenter", + "Task", + "Procedure", ) graph.MustAddE( - "note", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: trustcenterfaq.NoteTable, - Columns: []string{trustcenterfaq.NoteColumn}, + Table: task.ControlsTable, + Columns: task.ControlsPrimaryKey, Bidi: false, }, - "TrustCenterFAQ", - "Note", + "Task", + "Control", ) graph.MustAddE( - "blocked_groups", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterndarequest.BlockedGroupsTable, - Columns: []string{trustcenterndarequest.BlockedGroupsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.SubcontrolsTable, + Columns: task.SubcontrolsPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "Group", + "Task", + "Subcontrol", ) graph.MustAddE( - "editors", + "control_objectives", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterndarequest.EditorsTable, - Columns: []string{trustcenterndarequest.EditorsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.ControlObjectivesTable, + Columns: task.ControlObjectivesPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "Group", + "Task", + "ControlObjective", ) graph.MustAddE( - "trust_center", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: trustcenterndarequest.TrustCenterTable, - Columns: []string{trustcenterndarequest.TrustCenterColumn}, + Table: task.ProgramsTable, + Columns: task.ProgramsPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "TrustCenter", + "Task", + "Program", ) graph.MustAddE( - "trust_center_docs", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcenterndarequest.TrustCenterDocsTable, - Columns: []string{trustcenterndarequest.TrustCenterDocsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.RisksTable, + Columns: task.RisksPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "TrustCenterDoc", + "Task", + "Risk", ) graph.MustAddE( - "document", + "platforms", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenterndarequest.DocumentTable, - Columns: []string{trustcenterndarequest.DocumentColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.PlatformsTable, + Columns: task.PlatformsPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "DocumentData", + "Task", + "Platform", ) graph.MustAddE( - "file", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcenterndarequest.FileTable, - Columns: []string{trustcenterndarequest.FileColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.ScansTable, + Columns: task.ScansPrimaryKey, Bidi: false, }, - "TrustCenterNDARequest", - "File", + "Task", + "Scan", ) graph.MustAddE( - "blocked_groups", + "identity_holders", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcentersetting.BlockedGroupsTable, - Columns: []string{trustcentersetting.BlockedGroupsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.IdentityHoldersTable, + Columns: task.IdentityHoldersPrimaryKey, Bidi: false, }, - "TrustCenterSetting", - "Group", + "Task", + "IdentityHolder", ) graph.MustAddE( - "editors", + "control_implementations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcentersetting.EditorsTable, - Columns: []string{trustcentersetting.EditorsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.ControlImplementationsTable, + Columns: task.ControlImplementationsPrimaryKey, Bidi: false, }, - "TrustCenterSetting", - "Group", + "Task", + "ControlImplementation", ) graph.MustAddE( - "logo_file", + "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcentersetting.LogoFileTable, - Columns: []string{trustcentersetting.LogoFileColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.ActionPlansTable, + Columns: task.ActionPlansPrimaryKey, Bidi: false, }, - "TrustCenterSetting", - "File", + "Task", + "ActionPlan", ) graph.MustAddE( - "favicon_file", + "evidence", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcentersetting.FaviconFileTable, - Columns: []string{trustcentersetting.FaviconFileColumn}, - Bidi: false, + Table: task.EvidenceTable, + Columns: task.EvidencePrimaryKey, + Bidi: false, }, - "TrustCenterSetting", - "File", + "Task", + "Evidence", ) graph.MustAddE( - "hero_image_file", + "workflow_object_refs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcentersetting.HeroImageFileTable, - Columns: []string{trustcentersetting.HeroImageFileColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: task.WorkflowObjectRefsTable, + Columns: []string{task.WorkflowObjectRefsColumn}, Bidi: false, }, - "TrustCenterSetting", - "File", + "Task", + "WorkflowObjectRef", ) graph.MustAddE( - "trust_center_subprocessor_kind", + "vulnerabilities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: trustcentersubprocessor.TrustCenterSubprocessorKindTable, - Columns: []string{trustcentersubprocessor.TrustCenterSubprocessorKindColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.VulnerabilitiesTable, + Columns: task.VulnerabilitiesPrimaryKey, Bidi: false, }, - "TrustCenterSubprocessor", - "CustomTypeEnum", + "Task", + "Vulnerability", ) graph.MustAddE( - "blocked_groups", + "findings", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: trustcentersubprocessor.BlockedGroupsTable, - Columns: []string{trustcentersubprocessor.BlockedGroupsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: task.FindingsTable, + Columns: task.FindingsPrimaryKey, Bidi: false, }, - "TrustCenterSubprocessor", - "Group", + "Task", + "Finding", ) graph.MustAddE( - "editors", + "parent", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: task.ParentTable, + Columns: []string{task.ParentColumn}, + Bidi: false, + }, + "Task", + "Task", + ) + graph.MustAddE( + "tasks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: trustcentersubprocessor.EditorsTable, - Columns: []string{trustcentersubprocessor.EditorsColumn}, + Table: task.TasksTable, + Columns: []string{task.TasksColumn}, Bidi: false, }, - "TrustCenterSubprocessor", - "Group", + "Task", + "Task", ) graph.MustAddE( - "trust_center", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: trustcentersubprocessor.TrustCenterTable, - Columns: []string{trustcentersubprocessor.TrustCenterColumn}, + Table: template.OwnerTable, + Columns: []string{template.OwnerColumn}, Bidi: false, }, - "TrustCenterSubprocessor", - "TrustCenter", + "Template", + "Organization", ) graph.MustAddE( - "subprocessor", + "environment", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: trustcentersubprocessor.SubprocessorTable, - Columns: []string{trustcentersubprocessor.SubprocessorColumn}, + Inverse: false, + Table: template.EnvironmentTable, + Columns: []string{template.EnvironmentColumn}, Bidi: false, }, - "TrustCenterSubprocessor", - "Subprocessor", + "Template", + "CustomTypeEnum", ) graph.MustAddE( - "owner", + "scope", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: trustcenterwatermarkconfig.OwnerTable, - Columns: []string{trustcenterwatermarkconfig.OwnerColumn}, + Inverse: false, + Table: template.ScopeTable, + Columns: []string{template.ScopeColumn}, Bidi: false, }, - "TrustCenterWatermarkConfig", - "Organization", + "Template", + "CustomTypeEnum", ) graph.MustAddE( - "blocked_groups", + "documents", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: trustcenterwatermarkconfig.BlockedGroupsTable, - Columns: []string{trustcenterwatermarkconfig.BlockedGroupsColumn}, + Table: template.DocumentsTable, + Columns: []string{template.DocumentsColumn}, Bidi: false, }, - "TrustCenterWatermarkConfig", - "Group", + "Template", + "DocumentData", ) graph.MustAddE( - "editors", + "files", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: trustcenterwatermarkconfig.EditorsTable, - Columns: []string{trustcenterwatermarkconfig.EditorsColumn}, + Table: template.FilesTable, + Columns: template.FilesPrimaryKey, Bidi: false, }, - "TrustCenterWatermarkConfig", - "Group", + "Template", + "File", ) graph.MustAddE( "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: trustcenterwatermarkconfig.TrustCenterTable, - Columns: []string{trustcenterwatermarkconfig.TrustCenterColumn}, + Table: template.TrustCenterTable, + Columns: []string{template.TrustCenterColumn}, Bidi: false, }, - "TrustCenterWatermarkConfig", + "Template", "TrustCenter", ) graph.MustAddE( - "file", + "assessments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: trustcenterwatermarkconfig.FileTable, - Columns: []string{trustcenterwatermarkconfig.FileColumn}, + Table: template.AssessmentsTable, + Columns: []string{template.AssessmentsColumn}, Bidi: false, }, - "TrustCenterWatermarkConfig", - "File", + "Template", + "Assessment", ) graph.MustAddE( - "personal_access_tokens", + "campaigns", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.PersonalAccessTokensTable, - Columns: []string{user.PersonalAccessTokensColumn}, + Table: template.CampaignsTable, + Columns: []string{template.CampaignsColumn}, Bidi: false, }, - "User", - "PersonalAccessToken", + "Template", + "Campaign", ) graph.MustAddE( - "tfa_settings", + "identity_holders", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: user.TfaSettingsTable, - Columns: []string{user.TfaSettingsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: template.IdentityHoldersTable, + Columns: template.IdentityHoldersPrimaryKey, Bidi: false, }, - "User", - "TFASetting", + "Template", + "IdentityHolder", ) graph.MustAddE( - "setting", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, - Inverse: false, - Table: user.SettingTable, - Columns: []string{user.SettingColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcenter.OwnerTable, + Columns: []string{trustcenter.OwnerColumn}, Bidi: false, }, - "User", - "UserSetting", + "TrustCenter", + "Organization", ) graph.MustAddE( - "email_verification_tokens", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.EmailVerificationTokensTable, - Columns: []string{user.EmailVerificationTokensColumn}, + Table: trustcenter.BlockedGroupsTable, + Columns: []string{trustcenter.BlockedGroupsColumn}, Bidi: false, }, - "User", - "EmailVerificationToken", + "TrustCenter", + "Group", ) graph.MustAddE( - "file_download_tokens", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.FileDownloadTokensTable, - Columns: []string{user.FileDownloadTokensColumn}, + Table: trustcenter.EditorsTable, + Columns: []string{trustcenter.EditorsColumn}, Bidi: false, }, - "User", - "FileDownloadToken", + "TrustCenter", + "Group", ) graph.MustAddE( - "password_reset_tokens", + "custom_domain", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: user.PasswordResetTokensTable, - Columns: []string{user.PasswordResetTokensColumn}, + Table: trustcenter.CustomDomainTable, + Columns: []string{trustcenter.CustomDomainColumn}, Bidi: false, }, - "User", - "PasswordResetToken", + "TrustCenter", + "CustomDomain", ) graph.MustAddE( - "groups", + "preview_domain", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: user.GroupsTable, - Columns: user.GroupsPrimaryKey, + Table: trustcenter.PreviewDomainTable, + Columns: []string{trustcenter.PreviewDomainColumn}, Bidi: false, }, - "User", - "Group", + "TrustCenter", + "CustomDomain", ) graph.MustAddE( - "organizations", + "setting", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: user.OrganizationsTable, - Columns: user.OrganizationsPrimaryKey, + Table: trustcenter.SettingTable, + Columns: []string{trustcenter.SettingColumn}, Bidi: false, }, - "User", - "Organization", + "TrustCenter", + "TrustCenterSetting", ) graph.MustAddE( - "webauthns", + "preview_setting", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: user.WebauthnsTable, - Columns: []string{user.WebauthnsColumn}, + Table: trustcenter.PreviewSettingTable, + Columns: []string{trustcenter.PreviewSettingColumn}, Bidi: false, }, - "User", - "Webauthn", + "TrustCenter", + "TrustCenterSetting", ) graph.MustAddE( - "avatar_file", + "watermark_config", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: user.AvatarFileTable, - Columns: []string{user.AvatarFileColumn}, + Table: trustcenter.WatermarkConfigTable, + Columns: []string{trustcenter.WatermarkConfigColumn}, Bidi: false, }, - "User", - "File", + "TrustCenter", + "TrustCenterWatermarkConfig", ) graph.MustAddE( - "events", + "trust_center_subprocessors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: user.EventsTable, - Columns: user.EventsPrimaryKey, + Table: trustcenter.TrustCenterSubprocessorsTable, + Columns: []string{trustcenter.TrustCenterSubprocessorsColumn}, Bidi: false, }, - "User", - "Event", + "TrustCenter", + "TrustCenterSubprocessor", ) graph.MustAddE( - "action_plans", + "trust_center_docs", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.ActionPlansTable, - Columns: []string{user.ActionPlansColumn}, + Table: trustcenter.TrustCenterDocsTable, + Columns: []string{trustcenter.TrustCenterDocsColumn}, Bidi: false, }, - "User", - "ActionPlan", + "TrustCenter", + "TrustCenterDoc", ) graph.MustAddE( - "campaigns", + "trust_center_compliances", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: user.CampaignsTable, - Columns: user.CampaignsPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: trustcenter.TrustCenterCompliancesTable, + Columns: []string{trustcenter.TrustCenterCompliancesColumn}, Bidi: false, }, - "User", - "Campaign", + "TrustCenter", + "TrustCenterCompliance", ) graph.MustAddE( - "campaign_targets", + "templates", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.CampaignTargetsTable, - Columns: []string{user.CampaignTargetsColumn}, + Table: trustcenter.TemplatesTable, + Columns: []string{trustcenter.TemplatesColumn}, Bidi: false, }, - "User", - "CampaignTarget", + "TrustCenter", + "Template", ) graph.MustAddE( - "subcontrols", + "posts", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.SubcontrolsTable, - Columns: []string{user.SubcontrolsColumn}, + Table: trustcenter.PostsTable, + Columns: []string{trustcenter.PostsColumn}, Bidi: false, }, - "User", - "Subcontrol", + "TrustCenter", + "Note", ) graph.MustAddE( - "assigner_tasks", + "trust_center_entities", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.AssignerTasksTable, - Columns: []string{user.AssignerTasksColumn}, + Table: trustcenter.TrustCenterEntitiesTable, + Columns: []string{trustcenter.TrustCenterEntitiesColumn}, Bidi: false, }, - "User", - "Task", + "TrustCenter", + "TrustCenterEntity", ) graph.MustAddE( - "assignee_tasks", + "trust_center_nda_requests", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.AssigneeTasksTable, - Columns: []string{user.AssigneeTasksColumn}, + Table: trustcenter.TrustCenterNdaRequestsTable, + Columns: []string{trustcenter.TrustCenterNdaRequestsColumn}, Bidi: false, }, - "User", - "Task", + "TrustCenter", + "TrustCenterNDARequest", ) graph.MustAddE( - "programs", + "trust_center_faqs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: user.ProgramsTable, - Columns: user.ProgramsPrimaryKey, + Table: trustcenter.TrustCenterFaqsTable, + Columns: []string{trustcenter.TrustCenterFaqsColumn}, Bidi: false, }, - "User", - "Program", + "TrustCenter", + "TrustCenterFAQ", ) graph.MustAddE( - "programs_owned", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.ProgramsOwnedTable, - Columns: []string{user.ProgramsOwnedColumn}, + Table: trustcentercompliance.BlockedGroupsTable, + Columns: []string{trustcentercompliance.BlockedGroupsColumn}, Bidi: false, }, - "User", - "Program", + "TrustCenterCompliance", + "Group", ) graph.MustAddE( - "platforms_owned", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.PlatformsOwnedTable, - Columns: []string{user.PlatformsOwnedColumn}, + Table: trustcentercompliance.EditorsTable, + Columns: []string{trustcentercompliance.EditorsColumn}, Bidi: false, }, - "User", - "Platform", + "TrustCenterCompliance", + "Group", ) graph.MustAddE( - "identity_holder_profiles", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: user.IdentityHolderProfilesTable, - Columns: []string{user.IdentityHolderProfilesColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcentercompliance.TrustCenterTable, + Columns: []string{trustcentercompliance.TrustCenterColumn}, Bidi: false, }, - "User", - "IdentityHolder", + "TrustCenterCompliance", + "TrustCenter", ) graph.MustAddE( - "impersonation_events", + "standard", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: user.ImpersonationEventsTable, - Columns: []string{user.ImpersonationEventsColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcentercompliance.StandardTable, + Columns: []string{trustcentercompliance.StandardColumn}, Bidi: false, }, - "User", - "ImpersonationEvent", + "TrustCenterCompliance", + "Standard", ) graph.MustAddE( - "targeted_impersonations", + "trust_center_doc_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: user.TargetedImpersonationsTable, - Columns: []string{user.TargetedImpersonationsColumn}, + Table: trustcenterdoc.TrustCenterDocKindTable, + Columns: []string{trustcenterdoc.TrustCenterDocKindColumn}, Bidi: false, }, - "User", - "ImpersonationEvent", + "TrustCenterDoc", + "CustomTypeEnum", ) graph.MustAddE( - "notifications", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.NotificationsTable, - Columns: []string{user.NotificationsColumn}, + Table: trustcenterdoc.BlockedGroupsTable, + Columns: []string{trustcenterdoc.BlockedGroupsColumn}, Bidi: false, }, - "User", - "Notification", + "TrustCenterDoc", + "Group", ) graph.MustAddE( - "group_memberships", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: user.GroupMembershipsTable, - Columns: []string{user.GroupMembershipsColumn}, + Inverse: false, + Table: trustcenterdoc.EditorsTable, + Columns: []string{trustcenterdoc.EditorsColumn}, Bidi: false, }, - "User", - "GroupMembership", + "TrustCenterDoc", + "Group", ) graph.MustAddE( - "org_memberships", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: user.OrgMembershipsTable, - Columns: []string{user.OrgMembershipsColumn}, + Table: trustcenterdoc.TrustCenterTable, + Columns: []string{trustcenterdoc.TrustCenterColumn}, Bidi: false, }, - "User", - "OrgMembership", + "TrustCenterDoc", + "TrustCenter", ) graph.MustAddE( - "program_memberships", + "standard", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: user.ProgramMembershipsTable, - Columns: []string{user.ProgramMembershipsColumn}, + Table: trustcenterdoc.StandardTable, + Columns: []string{trustcenterdoc.StandardColumn}, Bidi: false, }, - "User", - "ProgramMembership", + "TrustCenterDoc", + "Standard", ) graph.MustAddE( - "user", + "file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, - Inverse: true, - Table: usersetting.UserTable, - Columns: []string{usersetting.UserColumn}, + Rel: sqlgraph.M2O, + Inverse: false, + Table: trustcenterdoc.FileTable, + Columns: []string{trustcenterdoc.FileColumn}, Bidi: false, }, - "UserSetting", - "User", + "TrustCenterDoc", + "File", ) graph.MustAddE( - "default_org", + "original_file", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: usersetting.DefaultOrgTable, - Columns: []string{usersetting.DefaultOrgColumn}, + Table: trustcenterdoc.OriginalFileTable, + Columns: []string{trustcenterdoc.OriginalFileColumn}, Bidi: false, }, - "UserSetting", - "Organization", + "TrustCenterDoc", + "File", ) graph.MustAddE( - "owner", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: vendorriskscore.OwnerTable, - Columns: []string{vendorriskscore.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: trustcenterentity.BlockedGroupsTable, + Columns: []string{trustcenterentity.BlockedGroupsColumn}, Bidi: false, }, - "VendorRiskScore", - "Organization", + "TrustCenterEntity", + "Group", ) graph.MustAddE( - "vendor_scoring_config", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: vendorriskscore.VendorScoringConfigTable, - Columns: []string{vendorriskscore.VendorScoringConfigColumn}, + Table: trustcenterentity.EditorsTable, + Columns: []string{trustcenterentity.EditorsColumn}, Bidi: false, }, - "VendorRiskScore", - "VendorScoringConfig", + "TrustCenterEntity", + "Group", ) graph.MustAddE( - "entity", + "logo_file", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: vendorriskscore.EntityTable, - Columns: []string{vendorriskscore.EntityColumn}, - Bidi: false, - }, - "VendorRiskScore", - "Entity", - ) - graph.MustAddE( - "assessment_response", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: vendorriskscore.AssessmentResponseTable, - Columns: []string{vendorriskscore.AssessmentResponseColumn}, + Table: trustcenterentity.LogoFileTable, + Columns: []string{trustcenterentity.LogoFileColumn}, Bidi: false, }, - "VendorRiskScore", - "AssessmentResponse", + "TrustCenterEntity", + "File", ) graph.MustAddE( - "owner", + "trust_center", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: vendorscoringconfig.OwnerTable, - Columns: []string{vendorscoringconfig.OwnerColumn}, + Table: trustcenterentity.TrustCenterTable, + Columns: []string{trustcenterentity.TrustCenterColumn}, Bidi: false, }, - "VendorScoringConfig", - "Organization", + "TrustCenterEntity", + "TrustCenter", ) graph.MustAddE( - "vendor_risk_scores", + "entity_type", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vendorscoringconfig.VendorRiskScoresTable, - Columns: []string{vendorscoringconfig.VendorRiskScoresColumn}, + Table: trustcenterentity.EntityTypeTable, + Columns: []string{trustcenterentity.EntityTypeColumn}, Bidi: false, }, - "VendorScoringConfig", - "VendorRiskScore", + "TrustCenterEntity", + "EntityType", ) graph.MustAddE( - "owner", + "trust_center_faq_kind", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: true, - Table: vulnerability.OwnerTable, - Columns: []string{vulnerability.OwnerColumn}, + Inverse: false, + Table: trustcenterfaq.TrustCenterFaqKindTable, + Columns: []string{trustcenterfaq.TrustCenterFaqKindColumn}, Bidi: false, }, - "Vulnerability", - "Organization", + "TrustCenterFAQ", + "CustomTypeEnum", ) graph.MustAddE( "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.BlockedGroupsTable, - Columns: []string{vulnerability.BlockedGroupsColumn}, + Table: trustcenterfaq.BlockedGroupsTable, + Columns: []string{trustcenterfaq.BlockedGroupsColumn}, Bidi: false, }, - "Vulnerability", + "TrustCenterFAQ", "Group", ) graph.MustAddE( @@ -16583,1644 +16535,3559 @@ var schemaGraph = func() *sqlgraph.Schema { &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.EditorsTable, - Columns: []string{vulnerability.EditorsColumn}, + Table: trustcenterfaq.EditorsTable, + Columns: []string{trustcenterfaq.EditorsColumn}, Bidi: false, }, - "Vulnerability", + "TrustCenterFAQ", "Group", ) graph.MustAddE( - "viewers", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: vulnerability.ViewersTable, - Columns: []string{vulnerability.ViewersColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcenterfaq.TrustCenterTable, + Columns: []string{trustcenterfaq.TrustCenterColumn}, Bidi: false, }, - "Vulnerability", - "Group", + "TrustCenterFAQ", + "TrustCenter", ) graph.MustAddE( - "environment", + "note", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: vulnerability.EnvironmentTable, - Columns: []string{vulnerability.EnvironmentColumn}, + Inverse: true, + Table: trustcenterfaq.NoteTable, + Columns: []string{trustcenterfaq.NoteColumn}, Bidi: false, }, - "Vulnerability", - "CustomTypeEnum", + "TrustCenterFAQ", + "Note", ) graph.MustAddE( - "scope", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.ScopeTable, - Columns: []string{vulnerability.ScopeColumn}, + Table: trustcenterndarequest.BlockedGroupsTable, + Columns: []string{trustcenterndarequest.BlockedGroupsColumn}, Bidi: false, }, - "Vulnerability", - "CustomTypeEnum", + "TrustCenterNDARequest", + "Group", ) graph.MustAddE( - "vulnerability_status", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.VulnerabilityStatusTable, - Columns: []string{vulnerability.VulnerabilityStatusColumn}, + Table: trustcenterndarequest.EditorsTable, + Columns: []string{trustcenterndarequest.EditorsColumn}, Bidi: false, }, - "Vulnerability", - "CustomTypeEnum", + "TrustCenterNDARequest", + "Group", ) graph.MustAddE( - "integrations", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: vulnerability.IntegrationsTable, - Columns: vulnerability.IntegrationsPrimaryKey, + Table: trustcenterndarequest.TrustCenterTable, + Columns: []string{trustcenterndarequest.TrustCenterColumn}, Bidi: false, }, - "Vulnerability", - "Integration", + "TrustCenterNDARequest", + "TrustCenter", ) graph.MustAddE( - "findings", + "trust_center_docs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: vulnerability.FindingsTable, - Columns: vulnerability.FindingsPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: trustcenterndarequest.TrustCenterDocsTable, + Columns: []string{trustcenterndarequest.TrustCenterDocsColumn}, Bidi: false, }, - "Vulnerability", - "Finding", + "TrustCenterNDARequest", + "TrustCenterDoc", ) graph.MustAddE( - "action_plans", + "document", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.ActionPlansTable, - Columns: vulnerability.ActionPlansPrimaryKey, + Table: trustcenterndarequest.DocumentTable, + Columns: []string{trustcenterndarequest.DocumentColumn}, Bidi: false, }, - "Vulnerability", - "ActionPlan", + "TrustCenterNDARequest", + "DocumentData", ) graph.MustAddE( - "controls", + "file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.ControlsTable, - Columns: []string{vulnerability.ControlsColumn}, + Table: trustcenterndarequest.FileTable, + Columns: []string{trustcenterndarequest.FileColumn}, Bidi: false, }, - "Vulnerability", - "Control", + "TrustCenterNDARequest", + "File", ) graph.MustAddE( - "subcontrols", + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.SubcontrolsTable, - Columns: []string{vulnerability.SubcontrolsColumn}, + Table: trustcentersetting.BlockedGroupsTable, + Columns: []string{trustcentersetting.BlockedGroupsColumn}, Bidi: false, }, - "Vulnerability", - "Subcontrol", + "TrustCenterSetting", + "Group", ) graph.MustAddE( - "risks", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.RisksTable, - Columns: []string{vulnerability.RisksColumn}, + Table: trustcentersetting.EditorsTable, + Columns: []string{trustcentersetting.EditorsColumn}, Bidi: false, }, - "Vulnerability", - "Risk", + "TrustCenterSetting", + "Group", ) graph.MustAddE( - "programs", + "logo_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.ProgramsTable, - Columns: []string{vulnerability.ProgramsColumn}, + Table: trustcentersetting.LogoFileTable, + Columns: []string{trustcentersetting.LogoFileColumn}, Bidi: false, }, - "Vulnerability", - "Program", + "TrustCenterSetting", + "File", ) graph.MustAddE( - "assets", + "favicon_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.AssetsTable, - Columns: []string{vulnerability.AssetsColumn}, + Table: trustcentersetting.FaviconFileTable, + Columns: []string{trustcentersetting.FaviconFileColumn}, Bidi: false, }, - "Vulnerability", - "Asset", + "TrustCenterSetting", + "File", ) graph.MustAddE( - "entities", + "hero_image_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.EntitiesTable, - Columns: []string{vulnerability.EntitiesColumn}, + Table: trustcentersetting.HeroImageFileTable, + Columns: []string{trustcentersetting.HeroImageFileColumn}, Bidi: false, }, - "Vulnerability", - "Entity", + "TrustCenterSetting", + "File", ) graph.MustAddE( - "scans", + "trust_center_subprocessor_kind", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: vulnerability.ScansTable, - Columns: vulnerability.ScansPrimaryKey, + Table: trustcentersubprocessor.TrustCenterSubprocessorKindTable, + Columns: []string{trustcentersubprocessor.TrustCenterSubprocessorKindColumn}, Bidi: false, }, - "Vulnerability", - "Scan", + "TrustCenterSubprocessor", + "CustomTypeEnum", ) graph.MustAddE( - "tasks", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.TasksTable, - Columns: vulnerability.TasksPrimaryKey, + Table: trustcentersubprocessor.BlockedGroupsTable, + Columns: []string{trustcentersubprocessor.BlockedGroupsColumn}, Bidi: false, }, - "Vulnerability", - "Task", + "TrustCenterSubprocessor", + "Group", ) graph.MustAddE( - "remediations", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: vulnerability.RemediationsTable, - Columns: vulnerability.RemediationsPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: trustcentersubprocessor.EditorsTable, + Columns: []string{trustcentersubprocessor.EditorsColumn}, Bidi: false, }, - "Vulnerability", - "Remediation", - ) + "TrustCenterSubprocessor", + "Group", + ) graph.MustAddE( - "reviews", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.M2O, Inverse: true, - Table: vulnerability.ReviewsTable, - Columns: vulnerability.ReviewsPrimaryKey, + Table: trustcentersubprocessor.TrustCenterTable, + Columns: []string{trustcentersubprocessor.TrustCenterColumn}, Bidi: false, }, - "Vulnerability", - "Review", + "TrustCenterSubprocessor", + "TrustCenter", ) graph.MustAddE( - "comments", + "subprocessor", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: vulnerability.CommentsTable, - Columns: []string{vulnerability.CommentsColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcentersubprocessor.SubprocessorTable, + Columns: []string{trustcentersubprocessor.SubprocessorColumn}, Bidi: false, }, - "Vulnerability", - "Note", + "TrustCenterSubprocessor", + "Subprocessor", ) graph.MustAddE( - "files", + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: trustcenterwatermarkconfig.OwnerTable, + Columns: []string{trustcenterwatermarkconfig.OwnerColumn}, + Bidi: false, + }, + "TrustCenterWatermarkConfig", + "Organization", + ) + graph.MustAddE( + "blocked_groups", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: vulnerability.FilesTable, - Columns: []string{vulnerability.FilesColumn}, + Table: trustcenterwatermarkconfig.BlockedGroupsTable, + Columns: []string{trustcenterwatermarkconfig.BlockedGroupsColumn}, Bidi: false, }, - "Vulnerability", - "File", + "TrustCenterWatermarkConfig", + "Group", ) graph.MustAddE( - "owner", + "editors", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: webauthn.OwnerTable, - Columns: []string{webauthn.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: trustcenterwatermarkconfig.EditorsTable, + Columns: []string{trustcenterwatermarkconfig.EditorsColumn}, Bidi: false, }, - "Webauthn", - "User", + "TrustCenterWatermarkConfig", + "Group", ) graph.MustAddE( - "owner", + "trust_center", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: true, - Table: workflowassignment.OwnerTable, - Columns: []string{workflowassignment.OwnerColumn}, + Table: trustcenterwatermarkconfig.TrustCenterTable, + Columns: []string{trustcenterwatermarkconfig.TrustCenterColumn}, Bidi: false, }, - "WorkflowAssignment", - "Organization", + "TrustCenterWatermarkConfig", + "TrustCenter", ) graph.MustAddE( - "workflow_instance", + "file", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowassignment.WorkflowInstanceTable, - Columns: []string{workflowassignment.WorkflowInstanceColumn}, + Table: trustcenterwatermarkconfig.FileTable, + Columns: []string{trustcenterwatermarkconfig.FileColumn}, Bidi: false, }, - "WorkflowAssignment", - "WorkflowInstance", + "TrustCenterWatermarkConfig", + "File", ) graph.MustAddE( - "workflow_assignment_targets", + "personal_access_tokens", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowassignment.WorkflowAssignmentTargetsTable, - Columns: []string{workflowassignment.WorkflowAssignmentTargetsColumn}, + Table: user.PersonalAccessTokensTable, + Columns: []string{user.PersonalAccessTokensColumn}, Bidi: false, }, - "WorkflowAssignment", - "WorkflowAssignmentTarget", + "User", + "PersonalAccessToken", ) graph.MustAddE( - "user", + "tfa_settings", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowassignment.UserTable, - Columns: []string{workflowassignment.UserColumn}, + Table: user.TfaSettingsTable, + Columns: []string{user.TfaSettingsColumn}, Bidi: false, }, - "WorkflowAssignment", "User", + "TFASetting", ) graph.MustAddE( - "group", + "setting", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2O, Inverse: false, - Table: workflowassignment.GroupTable, - Columns: []string{workflowassignment.GroupColumn}, + Table: user.SettingTable, + Columns: []string{user.SettingColumn}, Bidi: false, }, - "WorkflowAssignment", - "Group", + "User", + "UserSetting", ) graph.MustAddE( - "owner", + "email_verification_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: workflowassignmenttarget.OwnerTable, - Columns: []string{workflowassignmenttarget.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.EmailVerificationTokensTable, + Columns: []string{user.EmailVerificationTokensColumn}, Bidi: false, }, - "WorkflowAssignmentTarget", - "Organization", + "User", + "EmailVerificationToken", ) graph.MustAddE( - "workflow_assignment", + "file_download_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowassignmenttarget.WorkflowAssignmentTable, - Columns: []string{workflowassignmenttarget.WorkflowAssignmentColumn}, + Table: user.FileDownloadTokensTable, + Columns: []string{user.FileDownloadTokensColumn}, Bidi: false, }, - "WorkflowAssignmentTarget", - "WorkflowAssignment", + "User", + "FileDownloadToken", ) graph.MustAddE( - "user", + "password_reset_tokens", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowassignmenttarget.UserTable, - Columns: []string{workflowassignmenttarget.UserColumn}, + Table: user.PasswordResetTokensTable, + Columns: []string{user.PasswordResetTokensColumn}, Bidi: false, }, - "WorkflowAssignmentTarget", "User", + "PasswordResetToken", ) graph.MustAddE( - "group", + "groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowassignmenttarget.GroupTable, - Columns: []string{workflowassignmenttarget.GroupColumn}, + Table: user.GroupsTable, + Columns: user.GroupsPrimaryKey, Bidi: false, }, - "WorkflowAssignmentTarget", + "User", "Group", ) graph.MustAddE( - "owner", + "organizations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: workflowdefinition.OwnerTable, - Columns: []string{workflowdefinition.OwnerColumn}, + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.OrganizationsTable, + Columns: user.OrganizationsPrimaryKey, Bidi: false, }, - "WorkflowDefinition", + "User", "Organization", ) graph.MustAddE( - "blocked_groups", + "webauthns", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowdefinition.BlockedGroupsTable, - Columns: []string{workflowdefinition.BlockedGroupsColumn}, + Table: user.WebauthnsTable, + Columns: []string{user.WebauthnsColumn}, Bidi: false, }, - "WorkflowDefinition", - "Group", + "User", + "Webauthn", ) graph.MustAddE( - "editors", + "avatar_file", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: workflowdefinition.EditorsTable, - Columns: []string{workflowdefinition.EditorsColumn}, + Table: user.AvatarFileTable, + Columns: []string{user.AvatarFileColumn}, Bidi: false, }, - "WorkflowDefinition", - "Group", + "User", + "File", ) graph.MustAddE( - "viewers", + "events", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowdefinition.ViewersTable, - Columns: []string{workflowdefinition.ViewersColumn}, + Table: user.EventsTable, + Columns: user.EventsPrimaryKey, Bidi: false, }, - "WorkflowDefinition", - "Group", + "User", + "Event", ) graph.MustAddE( - "tag_definitions", + "action_plans", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowdefinition.TagDefinitionsTable, - Columns: []string{workflowdefinition.TagDefinitionsColumn}, + Table: user.ActionPlansTable, + Columns: []string{user.ActionPlansColumn}, Bidi: false, }, - "WorkflowDefinition", - "TagDefinition", + "User", + "ActionPlan", ) graph.MustAddE( - "groups", + "campaigns", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: workflowdefinition.GroupsTable, - Columns: []string{workflowdefinition.GroupsColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: user.CampaignsTable, + Columns: user.CampaignsPrimaryKey, Bidi: false, }, - "WorkflowDefinition", - "Group", + "User", + "Campaign", ) graph.MustAddE( - "workflow_instances", + "campaign_targets", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: workflowdefinition.WorkflowInstancesTable, - Columns: []string{workflowdefinition.WorkflowInstancesColumn}, + Inverse: false, + Table: user.CampaignTargetsTable, + Columns: []string{user.CampaignTargetsColumn}, Bidi: false, }, - "WorkflowDefinition", - "WorkflowInstance", + "User", + "CampaignTarget", ) graph.MustAddE( - "notification_templates", + "subcontrols", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowdefinition.NotificationTemplatesTable, - Columns: []string{workflowdefinition.NotificationTemplatesColumn}, + Table: user.SubcontrolsTable, + Columns: []string{user.SubcontrolsColumn}, Bidi: false, }, - "WorkflowDefinition", - "NotificationTemplate", - ) + "User", + "Subcontrol", + ) graph.MustAddE( - "email_templates", + "assigner_tasks", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowdefinition.EmailTemplatesTable, - Columns: []string{workflowdefinition.EmailTemplatesColumn}, + Table: user.AssignerTasksTable, + Columns: []string{user.AssignerTasksColumn}, Bidi: false, }, - "WorkflowDefinition", - "EmailTemplate", + "User", + "Task", ) graph.MustAddE( - "owner", + "assignee_tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: workflowevent.OwnerTable, - Columns: []string{workflowevent.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AssigneeTasksTable, + Columns: []string{user.AssigneeTasksColumn}, Bidi: false, }, - "WorkflowEvent", - "Organization", + "User", + "Task", ) graph.MustAddE( - "workflow_instance", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowevent.WorkflowInstanceTable, - Columns: []string{workflowevent.WorkflowInstanceColumn}, + Table: user.ProgramsTable, + Columns: user.ProgramsPrimaryKey, Bidi: false, }, - "WorkflowEvent", - "WorkflowInstance", + "User", + "Program", ) graph.MustAddE( - "owner", + "programs_owned", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: workflowinstance.OwnerTable, - Columns: []string{workflowinstance.OwnerColumn}, + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.ProgramsOwnedTable, + Columns: []string{user.ProgramsOwnedColumn}, Bidi: false, }, - "WorkflowInstance", - "Organization", + "User", + "Program", ) graph.MustAddE( - "workflow_definition", + "platforms_owned", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.WorkflowDefinitionTable, - Columns: []string{workflowinstance.WorkflowDefinitionColumn}, + Table: user.PlatformsOwnedTable, + Columns: []string{user.PlatformsOwnedColumn}, Bidi: false, }, - "WorkflowInstance", - "WorkflowDefinition", + "User", + "Platform", ) graph.MustAddE( - "control", + "identity_holder_profiles", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.ControlTable, - Columns: []string{workflowinstance.ControlColumn}, + Table: user.IdentityHolderProfilesTable, + Columns: []string{user.IdentityHolderProfilesColumn}, Bidi: false, }, - "WorkflowInstance", - "Control", + "User", + "IdentityHolder", ) graph.MustAddE( - "internal_policy", + "impersonation_events", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.InternalPolicyTable, - Columns: []string{workflowinstance.InternalPolicyColumn}, + Table: user.ImpersonationEventsTable, + Columns: []string{user.ImpersonationEventsColumn}, Bidi: false, }, - "WorkflowInstance", - "InternalPolicy", + "User", + "ImpersonationEvent", ) graph.MustAddE( - "evidence", + "targeted_impersonations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.EvidenceTable, - Columns: []string{workflowinstance.EvidenceColumn}, + Table: user.TargetedImpersonationsTable, + Columns: []string{user.TargetedImpersonationsColumn}, Bidi: false, }, - "WorkflowInstance", - "Evidence", + "User", + "ImpersonationEvent", ) graph.MustAddE( - "subcontrol", + "notifications", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.SubcontrolTable, - Columns: []string{workflowinstance.SubcontrolColumn}, + Table: user.NotificationsTable, + Columns: []string{user.NotificationsColumn}, Bidi: false, }, - "WorkflowInstance", - "Subcontrol", + "User", + "Notification", ) graph.MustAddE( - "action_plan", + "group_memberships", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowinstance.ActionPlanTable, - Columns: []string{workflowinstance.ActionPlanColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: user.GroupMembershipsTable, + Columns: []string{user.GroupMembershipsColumn}, Bidi: false, }, - "WorkflowInstance", - "ActionPlan", + "User", + "GroupMembership", ) graph.MustAddE( - "procedure", + "org_memberships", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowinstance.ProcedureTable, - Columns: []string{workflowinstance.ProcedureColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: user.OrgMembershipsTable, + Columns: []string{user.OrgMembershipsColumn}, Bidi: false, }, - "WorkflowInstance", - "Procedure", + "User", + "OrgMembership", ) graph.MustAddE( - "campaign", + "program_memberships", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowinstance.CampaignTable, - Columns: []string{workflowinstance.CampaignColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: user.ProgramMembershipsTable, + Columns: []string{user.ProgramMembershipsColumn}, Bidi: false, }, - "WorkflowInstance", - "Campaign", + "User", + "ProgramMembership", ) graph.MustAddE( - "campaign_target", + "user", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowinstance.CampaignTargetTable, - Columns: []string{workflowinstance.CampaignTargetColumn}, + Rel: sqlgraph.O2O, + Inverse: true, + Table: usersetting.UserTable, + Columns: []string{usersetting.UserColumn}, Bidi: false, }, - "WorkflowInstance", - "CampaignTarget", + "UserSetting", + "User", ) graph.MustAddE( - "identity_holder", + "default_org", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowinstance.IdentityHolderTable, - Columns: []string{workflowinstance.IdentityHolderColumn}, + Table: usersetting.DefaultOrgTable, + Columns: []string{usersetting.DefaultOrgColumn}, Bidi: false, }, - "WorkflowInstance", - "IdentityHolder", + "UserSetting", + "Organization", ) graph.MustAddE( - "platform", + "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowinstance.PlatformTable, - Columns: []string{workflowinstance.PlatformColumn}, + Inverse: true, + Table: vendorriskscore.OwnerTable, + Columns: []string{vendorriskscore.OwnerColumn}, Bidi: false, }, - "WorkflowInstance", - "Platform", + "VendorRiskScore", + "Organization", ) graph.MustAddE( - "workflow_proposal", + "vendor_scoring_config", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowinstance.WorkflowProposalTable, - Columns: []string{workflowinstance.WorkflowProposalColumn}, + Table: vendorriskscore.VendorScoringConfigTable, + Columns: []string{vendorriskscore.VendorScoringConfigColumn}, Bidi: false, }, - "WorkflowInstance", - "WorkflowProposal", + "VendorRiskScore", + "VendorScoringConfig", ) graph.MustAddE( - "workflow_assignments", + "entity", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: workflowinstance.WorkflowAssignmentsTable, - Columns: []string{workflowinstance.WorkflowAssignmentsColumn}, + Table: vendorriskscore.EntityTable, + Columns: []string{vendorriskscore.EntityColumn}, Bidi: false, }, - "WorkflowInstance", - "WorkflowAssignment", + "VendorRiskScore", + "Entity", ) graph.MustAddE( - "workflow_events", + "assessment_response", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2O, Inverse: false, - Table: workflowinstance.WorkflowEventsTable, - Columns: []string{workflowinstance.WorkflowEventsColumn}, + Table: vendorriskscore.AssessmentResponseTable, + Columns: []string{vendorriskscore.AssessmentResponseColumn}, Bidi: false, }, - "WorkflowInstance", - "WorkflowEvent", + "VendorRiskScore", + "AssessmentResponse", ) graph.MustAddE( - "email_templates", + "owner", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: workflowinstance.EmailTemplatesTable, - Columns: []string{workflowinstance.EmailTemplatesColumn}, + Rel: sqlgraph.M2O, + Inverse: true, + Table: vendorscoringconfig.OwnerTable, + Columns: []string{vendorscoringconfig.OwnerColumn}, Bidi: false, }, - "WorkflowInstance", - "EmailTemplate", + "VendorScoringConfig", + "Organization", ) graph.MustAddE( - "workflow_object_refs", + "vendor_risk_scores", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: workflowinstance.WorkflowObjectRefsTable, - Columns: []string{workflowinstance.WorkflowObjectRefsColumn}, + Table: vendorscoringconfig.VendorRiskScoresTable, + Columns: []string{vendorscoringconfig.VendorRiskScoresColumn}, Bidi: false, }, - "WorkflowInstance", - "WorkflowObjectRef", + "VendorScoringConfig", + "VendorRiskScore", ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, - Table: workflowobjectref.OwnerTable, - Columns: []string{workflowobjectref.OwnerColumn}, + Table: vulnerability.OwnerTable, + Columns: []string{vulnerability.OwnerColumn}, Bidi: false, }, - "WorkflowObjectRef", + "Vulnerability", "Organization", ) graph.MustAddE( - "workflow_instance", + "blocked_groups", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.WorkflowInstanceTable, - Columns: []string{workflowobjectref.WorkflowInstanceColumn}, + Table: vulnerability.BlockedGroupsTable, + Columns: []string{vulnerability.BlockedGroupsColumn}, Bidi: false, }, - "WorkflowObjectRef", - "WorkflowInstance", + "Vulnerability", + "Group", ) graph.MustAddE( - "workflow_proposals", + "editors", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: workflowobjectref.WorkflowProposalsTable, - Columns: []string{workflowobjectref.WorkflowProposalsColumn}, + Inverse: false, + Table: vulnerability.EditorsTable, + Columns: []string{vulnerability.EditorsColumn}, Bidi: false, }, - "WorkflowObjectRef", - "WorkflowProposal", + "Vulnerability", + "Group", ) graph.MustAddE( - "control", + "viewers", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.ControlTable, - Columns: []string{workflowobjectref.ControlColumn}, + Table: vulnerability.ViewersTable, + Columns: []string{vulnerability.ViewersColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Control", + "Vulnerability", + "Group", ) graph.MustAddE( - "task", + "environment", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowobjectref.TaskTable, - Columns: []string{workflowobjectref.TaskColumn}, + Table: vulnerability.EnvironmentTable, + Columns: []string{vulnerability.EnvironmentColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Task", + "Vulnerability", + "CustomTypeEnum", ) graph.MustAddE( - "internal_policy", + "scope", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowobjectref.InternalPolicyTable, - Columns: []string{workflowobjectref.InternalPolicyColumn}, + Table: vulnerability.ScopeTable, + Columns: []string{vulnerability.ScopeColumn}, Bidi: false, }, - "WorkflowObjectRef", - "InternalPolicy", + "Vulnerability", + "CustomTypeEnum", ) graph.MustAddE( - "finding", + "vulnerability_status", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, - Table: workflowobjectref.FindingTable, - Columns: []string{workflowobjectref.FindingColumn}, + Table: vulnerability.VulnerabilityStatusTable, + Columns: []string{vulnerability.VulnerabilityStatusColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Finding", + "Vulnerability", + "CustomTypeEnum", ) graph.MustAddE( - "directory_account", + "integrations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowobjectref.DirectoryAccountTable, - Columns: []string{workflowobjectref.DirectoryAccountColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: vulnerability.IntegrationsTable, + Columns: vulnerability.IntegrationsPrimaryKey, Bidi: false, }, - "WorkflowObjectRef", - "DirectoryAccount", + "Vulnerability", + "Integration", ) graph.MustAddE( - "directory_group", + "findings", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowobjectref.DirectoryGroupTable, - Columns: []string{workflowobjectref.DirectoryGroupColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: vulnerability.FindingsTable, + Columns: vulnerability.FindingsPrimaryKey, Bidi: false, }, - "WorkflowObjectRef", - "DirectoryGroup", + "Vulnerability", + "Finding", ) graph.MustAddE( - "directory_membership", + "action_plans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowobjectref.DirectoryMembershipTable, - Columns: []string{workflowobjectref.DirectoryMembershipColumn}, + Table: vulnerability.ActionPlansTable, + Columns: vulnerability.ActionPlansPrimaryKey, Bidi: false, }, - "WorkflowObjectRef", - "DirectoryMembership", + "Vulnerability", + "ActionPlan", ) graph.MustAddE( - "evidence", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.EvidenceTable, - Columns: []string{workflowobjectref.EvidenceColumn}, + Table: vulnerability.ControlsTable, + Columns: []string{vulnerability.ControlsColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Evidence", + "Vulnerability", + "Control", ) graph.MustAddE( - "subcontrol", + "subcontrols", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.SubcontrolTable, - Columns: []string{workflowobjectref.SubcontrolColumn}, + Table: vulnerability.SubcontrolsTable, + Columns: []string{vulnerability.SubcontrolsColumn}, Bidi: false, }, - "WorkflowObjectRef", + "Vulnerability", "Subcontrol", ) graph.MustAddE( - "action_plan", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.ActionPlanTable, - Columns: []string{workflowobjectref.ActionPlanColumn}, + Table: vulnerability.RisksTable, + Columns: []string{vulnerability.RisksColumn}, Bidi: false, }, - "WorkflowObjectRef", - "ActionPlan", + "Vulnerability", + "Risk", ) graph.MustAddE( - "procedure", + "programs", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.ProcedureTable, - Columns: []string{workflowobjectref.ProcedureColumn}, + Table: vulnerability.ProgramsTable, + Columns: []string{vulnerability.ProgramsColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Procedure", + "Vulnerability", + "Program", ) graph.MustAddE( - "campaign", + "assets", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.CampaignTable, - Columns: []string{workflowobjectref.CampaignColumn}, + Table: vulnerability.AssetsTable, + Columns: []string{vulnerability.AssetsColumn}, Bidi: false, }, - "WorkflowObjectRef", - "Campaign", + "Vulnerability", + "Asset", ) graph.MustAddE( - "campaign_target", + "entities", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowobjectref.CampaignTargetTable, - Columns: []string{workflowobjectref.CampaignTargetColumn}, + Table: vulnerability.EntitiesTable, + Columns: []string{vulnerability.EntitiesColumn}, Bidi: false, }, - "WorkflowObjectRef", - "CampaignTarget", + "Vulnerability", + "Entity", ) graph.MustAddE( - "identity_holder", + "scans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowobjectref.IdentityHolderTable, - Columns: []string{workflowobjectref.IdentityHolderColumn}, + Table: vulnerability.ScansTable, + Columns: vulnerability.ScansPrimaryKey, Bidi: false, }, - "WorkflowObjectRef", - "IdentityHolder", + "Vulnerability", + "Scan", ) graph.MustAddE( - "platform", + "tasks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: false, - Table: workflowobjectref.PlatformTable, - Columns: []string{workflowobjectref.PlatformColumn}, + Table: vulnerability.TasksTable, + Columns: vulnerability.TasksPrimaryKey, Bidi: false, }, - "WorkflowObjectRef", - "Platform", + "Vulnerability", + "Task", ) graph.MustAddE( - "owner", + "remediations", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: workflowproposal.OwnerTable, - Columns: []string{workflowproposal.OwnerColumn}, + Table: vulnerability.RemediationsTable, + Columns: vulnerability.RemediationsPrimaryKey, Bidi: false, }, - "WorkflowProposal", - "Organization", + "Vulnerability", + "Remediation", ) graph.MustAddE( - "workflow_object_ref", + "reviews", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: workflowproposal.WorkflowObjectRefTable, - Columns: []string{workflowproposal.WorkflowObjectRefColumn}, + Rel: sqlgraph.M2M, + Inverse: true, + Table: vulnerability.ReviewsTable, + Columns: vulnerability.ReviewsPrimaryKey, Bidi: false, }, - "WorkflowProposal", - "WorkflowObjectRef", + "Vulnerability", + "Review", ) graph.MustAddE( - "user", + "comments", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: workflowproposal.UserTable, - Columns: []string{workflowproposal.UserColumn}, + Table: vulnerability.CommentsTable, + Columns: []string{vulnerability.CommentsColumn}, Bidi: false, }, - "WorkflowProposal", - "User", + "Vulnerability", + "Note", ) graph.MustAddE( - "workflow_instances", + "files", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: true, - Table: workflowproposal.WorkflowInstancesTable, - Columns: []string{workflowproposal.WorkflowInstancesColumn}, + Inverse: false, + Table: vulnerability.FilesTable, + Columns: []string{vulnerability.FilesColumn}, Bidi: false, }, - "WorkflowProposal", - "WorkflowInstance", + "Vulnerability", + "File", ) - return graph -}() - -// predicateAdder wraps the addPredicate method. -// All update, update-one and query builders implement this interface. -type predicateAdder interface { - addPredicate(func(s *sql.Selector)) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: webauthn.OwnerTable, + Columns: []string{webauthn.OwnerColumn}, + Bidi: false, + }, + "Webauthn", + "User", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowassignment.OwnerTable, + Columns: []string{workflowassignment.OwnerColumn}, + Bidi: false, + }, + "WorkflowAssignment", + "Organization", + ) + graph.MustAddE( + "workflow_instance", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignment.WorkflowInstanceTable, + Columns: []string{workflowassignment.WorkflowInstanceColumn}, + Bidi: false, + }, + "WorkflowAssignment", + "WorkflowInstance", + ) + graph.MustAddE( + "workflow_assignment_targets", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowassignment.WorkflowAssignmentTargetsTable, + Columns: []string{workflowassignment.WorkflowAssignmentTargetsColumn}, + Bidi: false, + }, + "WorkflowAssignment", + "WorkflowAssignmentTarget", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignment.UserTable, + Columns: []string{workflowassignment.UserColumn}, + Bidi: false, + }, + "WorkflowAssignment", + "User", + ) + graph.MustAddE( + "group", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignment.GroupTable, + Columns: []string{workflowassignment.GroupColumn}, + Bidi: false, + }, + "WorkflowAssignment", + "Group", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowassignmenttarget.OwnerTable, + Columns: []string{workflowassignmenttarget.OwnerColumn}, + Bidi: false, + }, + "WorkflowAssignmentTarget", + "Organization", + ) + graph.MustAddE( + "workflow_assignment", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignmenttarget.WorkflowAssignmentTable, + Columns: []string{workflowassignmenttarget.WorkflowAssignmentColumn}, + Bidi: false, + }, + "WorkflowAssignmentTarget", + "WorkflowAssignment", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignmenttarget.UserTable, + Columns: []string{workflowassignmenttarget.UserColumn}, + Bidi: false, + }, + "WorkflowAssignmentTarget", + "User", + ) + graph.MustAddE( + "group", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowassignmenttarget.GroupTable, + Columns: []string{workflowassignmenttarget.GroupColumn}, + Bidi: false, + }, + "WorkflowAssignmentTarget", + "Group", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowdefinition.OwnerTable, + Columns: []string{workflowdefinition.OwnerColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "Organization", + ) + graph.MustAddE( + "blocked_groups", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.BlockedGroupsTable, + Columns: []string{workflowdefinition.BlockedGroupsColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "Group", + ) + graph.MustAddE( + "editors", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.EditorsTable, + Columns: []string{workflowdefinition.EditorsColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "Group", + ) + graph.MustAddE( + "viewers", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.ViewersTable, + Columns: []string{workflowdefinition.ViewersColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "Group", + ) + graph.MustAddE( + "tag_definitions", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.TagDefinitionsTable, + Columns: []string{workflowdefinition.TagDefinitionsColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "TagDefinition", + ) + graph.MustAddE( + "groups", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.GroupsTable, + Columns: []string{workflowdefinition.GroupsColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "Group", + ) + graph.MustAddE( + "workflow_instances", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: true, + Table: workflowdefinition.WorkflowInstancesTable, + Columns: []string{workflowdefinition.WorkflowInstancesColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "WorkflowInstance", + ) + graph.MustAddE( + "notification_templates", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.NotificationTemplatesTable, + Columns: []string{workflowdefinition.NotificationTemplatesColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "NotificationTemplate", + ) + graph.MustAddE( + "email_templates", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowdefinition.EmailTemplatesTable, + Columns: []string{workflowdefinition.EmailTemplatesColumn}, + Bidi: false, + }, + "WorkflowDefinition", + "EmailTemplate", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowevent.OwnerTable, + Columns: []string{workflowevent.OwnerColumn}, + Bidi: false, + }, + "WorkflowEvent", + "Organization", + ) + graph.MustAddE( + "workflow_instance", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowevent.WorkflowInstanceTable, + Columns: []string{workflowevent.WorkflowInstanceColumn}, + Bidi: false, + }, + "WorkflowEvent", + "WorkflowInstance", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowinstance.OwnerTable, + Columns: []string{workflowinstance.OwnerColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Organization", + ) + graph.MustAddE( + "workflow_definition", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.WorkflowDefinitionTable, + Columns: []string{workflowinstance.WorkflowDefinitionColumn}, + Bidi: false, + }, + "WorkflowInstance", + "WorkflowDefinition", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.ControlTable, + Columns: []string{workflowinstance.ControlColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Control", + ) + graph.MustAddE( + "internal_policy", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.InternalPolicyTable, + Columns: []string{workflowinstance.InternalPolicyColumn}, + Bidi: false, + }, + "WorkflowInstance", + "InternalPolicy", + ) + graph.MustAddE( + "evidence", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.EvidenceTable, + Columns: []string{workflowinstance.EvidenceColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Evidence", + ) + graph.MustAddE( + "subcontrol", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.SubcontrolTable, + Columns: []string{workflowinstance.SubcontrolColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Subcontrol", + ) + graph.MustAddE( + "action_plan", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.ActionPlanTable, + Columns: []string{workflowinstance.ActionPlanColumn}, + Bidi: false, + }, + "WorkflowInstance", + "ActionPlan", + ) + graph.MustAddE( + "procedure", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.ProcedureTable, + Columns: []string{workflowinstance.ProcedureColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Procedure", + ) + graph.MustAddE( + "campaign", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.CampaignTable, + Columns: []string{workflowinstance.CampaignColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Campaign", + ) + graph.MustAddE( + "campaign_target", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.CampaignTargetTable, + Columns: []string{workflowinstance.CampaignTargetColumn}, + Bidi: false, + }, + "WorkflowInstance", + "CampaignTarget", + ) + graph.MustAddE( + "identity_holder", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.IdentityHolderTable, + Columns: []string{workflowinstance.IdentityHolderColumn}, + Bidi: false, + }, + "WorkflowInstance", + "IdentityHolder", + ) + graph.MustAddE( + "platform", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.PlatformTable, + Columns: []string{workflowinstance.PlatformColumn}, + Bidi: false, + }, + "WorkflowInstance", + "Platform", + ) + graph.MustAddE( + "workflow_proposal", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowinstance.WorkflowProposalTable, + Columns: []string{workflowinstance.WorkflowProposalColumn}, + Bidi: false, + }, + "WorkflowInstance", + "WorkflowProposal", + ) + graph.MustAddE( + "workflow_assignments", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowinstance.WorkflowAssignmentsTable, + Columns: []string{workflowinstance.WorkflowAssignmentsColumn}, + Bidi: false, + }, + "WorkflowInstance", + "WorkflowAssignment", + ) + graph.MustAddE( + "workflow_events", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowinstance.WorkflowEventsTable, + Columns: []string{workflowinstance.WorkflowEventsColumn}, + Bidi: false, + }, + "WorkflowInstance", + "WorkflowEvent", + ) + graph.MustAddE( + "email_templates", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowinstance.EmailTemplatesTable, + Columns: []string{workflowinstance.EmailTemplatesColumn}, + Bidi: false, + }, + "WorkflowInstance", + "EmailTemplate", + ) + graph.MustAddE( + "workflow_object_refs", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: workflowinstance.WorkflowObjectRefsTable, + Columns: []string{workflowinstance.WorkflowObjectRefsColumn}, + Bidi: false, + }, + "WorkflowInstance", + "WorkflowObjectRef", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowobjectref.OwnerTable, + Columns: []string{workflowobjectref.OwnerColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Organization", + ) + graph.MustAddE( + "workflow_instance", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.WorkflowInstanceTable, + Columns: []string{workflowobjectref.WorkflowInstanceColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "WorkflowInstance", + ) + graph.MustAddE( + "workflow_proposals", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: true, + Table: workflowobjectref.WorkflowProposalsTable, + Columns: []string{workflowobjectref.WorkflowProposalsColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "WorkflowProposal", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.ControlTable, + Columns: []string{workflowobjectref.ControlColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Control", + ) + graph.MustAddE( + "task", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.TaskTable, + Columns: []string{workflowobjectref.TaskColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Task", + ) + graph.MustAddE( + "internal_policy", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.InternalPolicyTable, + Columns: []string{workflowobjectref.InternalPolicyColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "InternalPolicy", + ) + graph.MustAddE( + "finding", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.FindingTable, + Columns: []string{workflowobjectref.FindingColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Finding", + ) + graph.MustAddE( + "directory_account", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.DirectoryAccountTable, + Columns: []string{workflowobjectref.DirectoryAccountColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "DirectoryAccount", + ) + graph.MustAddE( + "directory_group", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.DirectoryGroupTable, + Columns: []string{workflowobjectref.DirectoryGroupColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "DirectoryGroup", + ) + graph.MustAddE( + "directory_membership", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.DirectoryMembershipTable, + Columns: []string{workflowobjectref.DirectoryMembershipColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "DirectoryMembership", + ) + graph.MustAddE( + "evidence", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.EvidenceTable, + Columns: []string{workflowobjectref.EvidenceColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Evidence", + ) + graph.MustAddE( + "subcontrol", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.SubcontrolTable, + Columns: []string{workflowobjectref.SubcontrolColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Subcontrol", + ) + graph.MustAddE( + "action_plan", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.ActionPlanTable, + Columns: []string{workflowobjectref.ActionPlanColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "ActionPlan", + ) + graph.MustAddE( + "procedure", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.ProcedureTable, + Columns: []string{workflowobjectref.ProcedureColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Procedure", + ) + graph.MustAddE( + "campaign", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.CampaignTable, + Columns: []string{workflowobjectref.CampaignColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Campaign", + ) + graph.MustAddE( + "campaign_target", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.CampaignTargetTable, + Columns: []string{workflowobjectref.CampaignTargetColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "CampaignTarget", + ) + graph.MustAddE( + "identity_holder", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.IdentityHolderTable, + Columns: []string{workflowobjectref.IdentityHolderColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "IdentityHolder", + ) + graph.MustAddE( + "platform", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowobjectref.PlatformTable, + Columns: []string{workflowobjectref.PlatformColumn}, + Bidi: false, + }, + "WorkflowObjectRef", + "Platform", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: workflowproposal.OwnerTable, + Columns: []string{workflowproposal.OwnerColumn}, + Bidi: false, + }, + "WorkflowProposal", + "Organization", + ) + graph.MustAddE( + "workflow_object_ref", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowproposal.WorkflowObjectRefTable, + Columns: []string{workflowproposal.WorkflowObjectRefColumn}, + Bidi: false, + }, + "WorkflowProposal", + "WorkflowObjectRef", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: workflowproposal.UserTable, + Columns: []string{workflowproposal.UserColumn}, + Bidi: false, + }, + "WorkflowProposal", + "User", + ) + graph.MustAddE( + "workflow_instances", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: true, + Table: workflowproposal.WorkflowInstancesTable, + Columns: []string{workflowproposal.WorkflowInstancesColumn}, + Bidi: false, + }, + "WorkflowProposal", + "WorkflowInstance", + ) + return graph +}() + +// predicateAdder wraps the addPredicate method. +// All update, update-one and query builders implement this interface. +type predicateAdder interface { + addPredicate(func(s *sql.Selector)) +} + +// addPredicate implements the predicateAdder interface. +func (_q *APITokenQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the APITokenQuery builder. +func (_q *APITokenQuery) Filter() *APITokenFilter { + return &APITokenFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *APITokenMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the APITokenMutation builder. +func (m *APITokenMutation) Filter() *APITokenFilter { + return &APITokenFilter{config: m.config, predicateAdder: m} +} + +// APITokenFilter provides a generic filtering capability at runtime for APITokenQuery. +type APITokenFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *APITokenFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[0].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *APITokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(apitoken.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *APITokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *APITokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *APITokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(apitoken.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *APITokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(apitoken.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *APITokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *APITokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(apitoken.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *APITokenFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(apitoken.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *APITokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(apitoken.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *APITokenFilter) WhereName(p entql.StringP) { + f.Where(p.Field(apitoken.FieldName)) +} + +// WhereToken applies the entql string predicate on the token field. +func (f *APITokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(apitoken.FieldToken)) +} + +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *APITokenFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldExpiresAt)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *APITokenFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(apitoken.FieldDescription)) +} + +// WhereScopes applies the entql json.RawMessage predicate on the scopes field. +func (f *APITokenFilter) WhereScopes(p entql.BytesP) { + f.Where(p.Field(apitoken.FieldScopes)) +} + +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *APITokenFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldLastUsedAt)) +} + +// WhereIsActive applies the entql bool predicate on the is_active field. +func (f *APITokenFilter) WhereIsActive(p entql.BoolP) { + f.Where(p.Field(apitoken.FieldIsActive)) +} + +// WhereRevokedReason applies the entql string predicate on the revoked_reason field. +func (f *APITokenFilter) WhereRevokedReason(p entql.StringP) { + f.Where(p.Field(apitoken.FieldRevokedReason)) +} + +// WhereRevokedBy applies the entql string predicate on the revoked_by field. +func (f *APITokenFilter) WhereRevokedBy(p entql.StringP) { + f.Where(p.Field(apitoken.FieldRevokedBy)) +} + +// WhereRevokedAt applies the entql time.Time predicate on the revoked_at field. +func (f *APITokenFilter) WhereRevokedAt(p entql.TimeP) { + f.Where(p.Field(apitoken.FieldRevokedAt)) +} + +// WhereSSOAuthorizations applies the entql json.RawMessage predicate on the sso_authorizations field. +func (f *APITokenFilter) WhereSSOAuthorizations(p entql.BytesP) { + f.Where(p.Field(apitoken.FieldSSOAuthorizations)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *APITokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *APITokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (_q *ActionPlanQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the ActionPlanQuery builder. +func (_q *ActionPlanQuery) Filter() *ActionPlanFilter { + return &ActionPlanFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *ActionPlanMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the ActionPlanMutation builder. +func (m *ActionPlanMutation) Filter() *ActionPlanFilter { + return &ActionPlanFilter{config: m.config, predicateAdder: m} +} + +// ActionPlanFilter provides a generic filtering capability at runtime for ActionPlanQuery. +type ActionPlanFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *ActionPlanFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[1].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *ActionPlanFilter) WhereID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *ActionPlanFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *ActionPlanFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *ActionPlanFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *ActionPlanFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *ActionPlanFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *ActionPlanFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ActionPlanFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldTags)) +} + +// WhereRevision applies the entql string predicate on the revision field. +func (f *ActionPlanFilter) WhereRevision(p entql.StringP) { + f.Where(p.Field(actionplan.FieldRevision)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *ActionPlanFilter) WhereName(p entql.StringP) { + f.Where(p.Field(actionplan.FieldName)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ActionPlanFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(actionplan.FieldStatus)) +} + +// WhereManagementMode applies the entql string predicate on the management_mode field. +func (f *ActionPlanFilter) WhereManagementMode(p entql.StringP) { + f.Where(p.Field(actionplan.FieldManagementMode)) +} + +// WhereDetails applies the entql string predicate on the details field. +func (f *ActionPlanFilter) WhereDetails(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDetails)) +} + +// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. +func (f *ActionPlanFilter) WhereDetailsJSON(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldDetailsJSON)) +} + +// WhereApprovalRequired applies the entql bool predicate on the approval_required field. +func (f *ActionPlanFilter) WhereApprovalRequired(p entql.BoolP) { + f.Where(p.Field(actionplan.FieldApprovalRequired)) +} + +// WhereReviewDue applies the entql time.Time predicate on the review_due field. +func (f *ActionPlanFilter) WhereReviewDue(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldReviewDue)) +} + +// WhereReviewFrequency applies the entql string predicate on the review_frequency field. +func (f *ActionPlanFilter) WhereReviewFrequency(p entql.StringP) { + f.Where(p.Field(actionplan.FieldReviewFrequency)) +} + +// WhereApproverID applies the entql string predicate on the approver_id field. +func (f *ActionPlanFilter) WhereApproverID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldApproverID)) +} + +// WhereDelegateID applies the entql string predicate on the delegate_id field. +func (f *ActionPlanFilter) WhereDelegateID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDelegateID)) +} + +// WhereSummary applies the entql string predicate on the summary field. +func (f *ActionPlanFilter) WhereSummary(p entql.StringP) { + f.Where(p.Field(actionplan.FieldSummary)) +} + +// WhereTagSuggestions applies the entql json.RawMessage predicate on the tag_suggestions field. +func (f *ActionPlanFilter) WhereTagSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldTagSuggestions)) +} + +// WhereDismissedTagSuggestions applies the entql json.RawMessage predicate on the dismissed_tag_suggestions field. +func (f *ActionPlanFilter) WhereDismissedTagSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldDismissedTagSuggestions)) +} + +// WhereControlSuggestions applies the entql json.RawMessage predicate on the control_suggestions field. +func (f *ActionPlanFilter) WhereControlSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldControlSuggestions)) +} + +// WhereDismissedControlSuggestions applies the entql json.RawMessage predicate on the dismissed_control_suggestions field. +func (f *ActionPlanFilter) WhereDismissedControlSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldDismissedControlSuggestions)) +} + +// WhereImprovementSuggestions applies the entql json.RawMessage predicate on the improvement_suggestions field. +func (f *ActionPlanFilter) WhereImprovementSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldImprovementSuggestions)) +} + +// WhereDismissedImprovementSuggestions applies the entql json.RawMessage predicate on the dismissed_improvement_suggestions field. +func (f *ActionPlanFilter) WhereDismissedImprovementSuggestions(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldDismissedImprovementSuggestions)) +} + +// WhereURL applies the entql string predicate on the url field. +func (f *ActionPlanFilter) WhereURL(p entql.StringP) { + f.Where(p.Field(actionplan.FieldURL)) +} + +// WhereFileID applies the entql string predicate on the file_id field. +func (f *ActionPlanFilter) WhereFileID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldFileID)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *ActionPlanFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldOwnerID)) +} + +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *ActionPlanFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(actionplan.FieldSystemOwned)) +} + +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *ActionPlanFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(actionplan.FieldInternalNotes)) +} + +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *ActionPlanFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldSystemInternalID)) +} + +// WhereActionPlanKindName applies the entql string predicate on the action_plan_kind_name field. +func (f *ActionPlanFilter) WhereActionPlanKindName(p entql.StringP) { + f.Where(p.Field(actionplan.FieldActionPlanKindName)) +} + +// WhereActionPlanKindID applies the entql string predicate on the action_plan_kind_id field. +func (f *ActionPlanFilter) WhereActionPlanKindID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldActionPlanKindID)) +} + +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *ActionPlanFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(actionplan.FieldWorkflowEligibleMarker)) +} + +// WhereTitle applies the entql string predicate on the title field. +func (f *ActionPlanFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(actionplan.FieldTitle)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *ActionPlanFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDescription)) +} + +// WhereDueDate applies the entql time.Time predicate on the due_date field. +func (f *ActionPlanFilter) WhereDueDate(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldDueDate)) +} + +// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. +func (f *ActionPlanFilter) WhereCompletedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldCompletedAt)) +} + +// WherePriority applies the entql string predicate on the priority field. +func (f *ActionPlanFilter) WherePriority(p entql.StringP) { + f.Where(p.Field(actionplan.FieldPriority)) +} + +// WhereRequiresApproval applies the entql bool predicate on the requires_approval field. +func (f *ActionPlanFilter) WhereRequiresApproval(p entql.BoolP) { + f.Where(p.Field(actionplan.FieldRequiresApproval)) +} + +// WhereBlocked applies the entql bool predicate on the blocked field. +func (f *ActionPlanFilter) WhereBlocked(p entql.BoolP) { + f.Where(p.Field(actionplan.FieldBlocked)) +} + +// WhereBlockerReason applies the entql string predicate on the blocker_reason field. +func (f *ActionPlanFilter) WhereBlockerReason(p entql.StringP) { + f.Where(p.Field(actionplan.FieldBlockerReason)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *ActionPlanFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldMetadata)) +} + +// WhereRawPayload applies the entql json.RawMessage predicate on the raw_payload field. +func (f *ActionPlanFilter) WhereRawPayload(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldRawPayload)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *ActionPlanFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(actionplan.FieldSource)) +} + +// WhereHasApprover applies a predicate to check if query has an edge approver. +func (f *ActionPlanFilter) WhereHasApprover() { + f.Where(entql.HasEdge("approver")) +} + +// WhereHasApproverWith applies a predicate to check if query has an edge approver with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasApproverWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("approver", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasDelegate applies a predicate to check if query has an edge delegate. +func (f *ActionPlanFilter) WhereHasDelegate() { + f.Where(entql.HasEdge("delegate")) +} + +// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasDelegateWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ActionPlanFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *ActionPlanFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) +} + +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *ActionPlanFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) +} + +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *ActionPlanFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) +} + +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasActionPlanKind applies a predicate to check if query has an edge action_plan_kind. +func (f *ActionPlanFilter) WhereHasActionPlanKind() { + f.Where(entql.HasEdge("action_plan_kind")) +} + +// WhereHasActionPlanKindWith applies a predicate to check if query has an edge action_plan_kind with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasActionPlanKindWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("action_plan_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ActionPlanFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) +} + +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *ActionPlanFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) +} + +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *ActionPlanFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) +} + +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *ActionPlanFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) +} + +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. +func (f *ActionPlanFilter) WhereHasVulnerabilities() { + f.Where(entql.HasEdge("vulnerabilities")) +} + +// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { + f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *ActionPlanFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) +} + +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasReviews applies a predicate to check if query has an edge reviews. +func (f *ActionPlanFilter) WhereHasReviews() { + f.Where(entql.HasEdge("reviews")) +} + +// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasReviewsWith(preds ...predicate.Review) { + f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasRemediations applies a predicate to check if query has an edge remediations. +func (f *ActionPlanFilter) WhereHasRemediations() { + f.Where(entql.HasEdge("remediations")) +} + +// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { + f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *ActionPlanFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) +} + +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *ActionPlanFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) +} + +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasFile applies a predicate to check if query has an edge file. +func (f *ActionPlanFilter) WhereHasFile() { + f.Where(entql.HasEdge("file")) +} + +// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *ActionPlanFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) +} + +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (_q *AssessmentQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AssessmentQuery builder. +func (_q *AssessmentQuery) Filter() *AssessmentFilter { + return &AssessmentFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AssessmentMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AssessmentMutation builder. +func (m *AssessmentMutation) Filter() *AssessmentFilter { + return &AssessmentFilter{config: m.config, predicateAdder: m} +} + +// AssessmentFilter provides a generic filtering capability at runtime for AssessmentQuery. +type AssessmentFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AssessmentFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[2].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *AssessmentFilter) WhereID(p entql.StringP) { + f.Where(p.Field(assessment.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AssessmentFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(assessment.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AssessmentFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(assessment.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AssessmentFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(assessment.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AssessmentFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(assessment.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AssessmentFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(assessment.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AssessmentFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(assessment.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AssessmentFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(assessment.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AssessmentFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(assessment.FieldOwnerID)) +} + +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *AssessmentFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(assessment.FieldSystemOwned)) +} + +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *AssessmentFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(assessment.FieldInternalNotes)) +} + +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *AssessmentFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(assessment.FieldSystemInternalID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *AssessmentFilter) WhereName(p entql.StringP) { + f.Where(p.Field(assessment.FieldName)) +} + +// WhereAssessmentType applies the entql string predicate on the assessment_type field. +func (f *AssessmentFilter) WhereAssessmentType(p entql.StringP) { + f.Where(p.Field(assessment.FieldAssessmentType)) +} + +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *AssessmentFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(assessment.FieldTemplateID)) +} + +// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. +func (f *AssessmentFilter) WhereJsonconfig(p entql.BytesP) { + f.Where(p.Field(assessment.FieldJsonconfig)) +} + +// WhereUischema applies the entql json.RawMessage predicate on the uischema field. +func (f *AssessmentFilter) WhereUischema(p entql.BytesP) { + f.Where(p.Field(assessment.FieldUischema)) +} + +// WhereResponseDueDuration applies the entql int64 predicate on the response_due_duration field. +func (f *AssessmentFilter) WhereResponseDueDuration(p entql.Int64P) { + f.Where(p.Field(assessment.FieldResponseDueDuration)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *AssessmentFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *AssessmentFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) +} + +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *AssessmentFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) +} + +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *AssessmentFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) +} + +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *AssessmentFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) +} + +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *AssessmentFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) +} + +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *AssessmentFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) +} + +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. +func (f *AssessmentFilter) WhereHasAssessmentResponses() { + f.Where(entql.HasEdge("assessment_responses")) +} + +// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { + f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *AssessmentFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) +} + +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *AssessmentFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (_q *AssessmentResponseQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AssessmentResponseQuery builder. +func (_q *AssessmentResponseQuery) Filter() *AssessmentResponseFilter { + return &AssessmentResponseFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AssessmentResponseMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AssessmentResponseMutation builder. +func (m *AssessmentResponseMutation) Filter() *AssessmentResponseFilter { + return &AssessmentResponseFilter{config: m.config, predicateAdder: m} +} + +// AssessmentResponseFilter provides a generic filtering capability at runtime for AssessmentResponseQuery. +type AssessmentResponseFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AssessmentResponseFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[3].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *AssessmentResponseFilter) WhereID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AssessmentResponseFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AssessmentResponseFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AssessmentResponseFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AssessmentResponseFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AssessmentResponseFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AssessmentResponseFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AssessmentResponseFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldOwnerID)) +} + +// WhereAssessmentID applies the entql string predicate on the assessment_id field. +func (f *AssessmentResponseFilter) WhereAssessmentID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldAssessmentID)) +} + +// WhereIsTest applies the entql bool predicate on the is_test field. +func (f *AssessmentResponseFilter) WhereIsTest(p entql.BoolP) { + f.Where(p.Field(assessmentresponse.FieldIsTest)) +} + +// WhereCampaignID applies the entql string predicate on the campaign_id field. +func (f *AssessmentResponseFilter) WhereCampaignID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldCampaignID)) +} + +// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. +func (f *AssessmentResponseFilter) WhereIdentityHolderID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldIdentityHolderID)) +} + +// WhereEntityID applies the entql string predicate on the entity_id field. +func (f *AssessmentResponseFilter) WhereEntityID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldEntityID)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *AssessmentResponseFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldDisplayName)) +} + +// WhereEmail applies the entql string predicate on the email field. +func (f *AssessmentResponseFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldEmail)) +} + +// WhereSendAttempts applies the entql int predicate on the send_attempts field. +func (f *AssessmentResponseFilter) WhereSendAttempts(p entql.IntP) { + f.Where(p.Field(assessmentresponse.FieldSendAttempts)) +} + +// WhereEmailDeliveredAt applies the entql time.Time predicate on the email_delivered_at field. +func (f *AssessmentResponseFilter) WhereEmailDeliveredAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldEmailDeliveredAt)) +} + +// WhereEmailOpenedAt applies the entql time.Time predicate on the email_opened_at field. +func (f *AssessmentResponseFilter) WhereEmailOpenedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldEmailOpenedAt)) +} + +// WhereEmailClickedAt applies the entql time.Time predicate on the email_clicked_at field. +func (f *AssessmentResponseFilter) WhereEmailClickedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldEmailClickedAt)) +} + +// WhereEmailOpenCount applies the entql int predicate on the email_open_count field. +func (f *AssessmentResponseFilter) WhereEmailOpenCount(p entql.IntP) { + f.Where(p.Field(assessmentresponse.FieldEmailOpenCount)) +} + +// WhereEmailClickCount applies the entql int predicate on the email_click_count field. +func (f *AssessmentResponseFilter) WhereEmailClickCount(p entql.IntP) { + f.Where(p.Field(assessmentresponse.FieldEmailClickCount)) +} + +// WhereLastEmailEventAt applies the entql time.Time predicate on the last_email_event_at field. +func (f *AssessmentResponseFilter) WhereLastEmailEventAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldLastEmailEventAt)) +} + +// WhereEmailMetadata applies the entql json.RawMessage predicate on the email_metadata field. +func (f *AssessmentResponseFilter) WhereEmailMetadata(p entql.BytesP) { + f.Where(p.Field(assessmentresponse.FieldEmailMetadata)) } -// addPredicate implements the predicateAdder interface. -func (_q *APITokenQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereStatus applies the entql string predicate on the status field. +func (f *AssessmentResponseFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldStatus)) } -// Filter returns a Filter implementation to apply filters on the APITokenQuery builder. -func (_q *APITokenQuery) Filter() *APITokenFilter { - return &APITokenFilter{config: _q.config, predicateAdder: _q} +// WhereAssignedAt applies the entql time.Time predicate on the assigned_at field. +func (f *AssessmentResponseFilter) WhereAssignedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldAssignedAt)) } -// addPredicate implements the predicateAdder interface. -func (m *APITokenMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereStartedAt applies the entql time.Time predicate on the started_at field. +func (f *AssessmentResponseFilter) WhereStartedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldStartedAt)) } -// Filter returns an entql.Where implementation to apply filters on the APITokenMutation builder. -func (m *APITokenMutation) Filter() *APITokenFilter { - return &APITokenFilter{config: m.config, predicateAdder: m} +// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. +func (f *AssessmentResponseFilter) WhereCompletedAt(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldCompletedAt)) } -// APITokenFilter provides a generic filtering capability at runtime for APITokenQuery. -type APITokenFilter struct { - predicateAdder - config +// WhereDueDate applies the entql time.Time predicate on the due_date field. +func (f *AssessmentResponseFilter) WhereDueDate(p entql.TimeP) { + f.Where(p.Field(assessmentresponse.FieldDueDate)) } -// Where applies the entql predicate on the query filter. -func (f *APITokenFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[0].Type, p, s); err != nil { - s.AddError(err) +// WhereDocumentDataID applies the entql string predicate on the document_data_id field. +func (f *AssessmentResponseFilter) WhereDocumentDataID(p entql.StringP) { + f.Where(p.Field(assessmentresponse.FieldDocumentDataID)) +} + +// WhereIsDraft applies the entql bool predicate on the is_draft field. +func (f *AssessmentResponseFilter) WhereIsDraft(p entql.BoolP) { + f.Where(p.Field(assessmentresponse.FieldIsDraft)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *AssessmentResponseFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *APITokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(apitoken.FieldID)) +// WhereHasAssessment applies a predicate to check if query has an edge assessment. +func (f *AssessmentResponseFilter) WhereHasAssessment() { + f.Where(entql.HasEdge("assessment")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *APITokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldCreatedAt)) +// WhereHasAssessmentWith applies a predicate to check if query has an edge assessment with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasAssessmentWith(preds ...predicate.Assessment) { + f.Where(entql.HasEdgeWith("assessment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *APITokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldUpdatedAt)) +// WhereHasCampaign applies a predicate to check if query has an edge campaign. +func (f *AssessmentResponseFilter) WhereHasCampaign() { + f.Where(entql.HasEdge("campaign")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *APITokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(apitoken.FieldCreatedBy)) +// WhereHasCampaignWith applies a predicate to check if query has an edge campaign with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasCampaignWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaign", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *APITokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(apitoken.FieldUpdatedBy)) +// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. +func (f *AssessmentResponseFilter) WhereHasIdentityHolder() { + f.Where(entql.HasEdge("identity_holder")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *APITokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldDeletedAt)) +// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *APITokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(apitoken.FieldDeletedBy)) +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *AssessmentResponseFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *APITokenFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(apitoken.FieldTags)) +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *APITokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(apitoken.FieldOwnerID)) +// WhereHasDocument applies a predicate to check if query has an edge document. +func (f *AssessmentResponseFilter) WhereHasDocument() { + f.Where(entql.HasEdge("document")) } -// WhereName applies the entql string predicate on the name field. -func (f *APITokenFilter) WhereName(p entql.StringP) { - f.Where(p.Field(apitoken.FieldName)) +// WhereHasDocumentWith applies a predicate to check if query has an edge document with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasDocumentWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("document", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereToken applies the entql string predicate on the token field. -func (f *APITokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(apitoken.FieldToken)) +// WhereHasVendorRiskScores applies a predicate to check if query has an edge vendor_risk_scores. +func (f *AssessmentResponseFilter) WhereHasVendorRiskScores() { + f.Where(entql.HasEdge("vendor_risk_scores")) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *APITokenFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldExpiresAt)) +// WhereHasVendorRiskScoresWith applies a predicate to check if query has an edge vendor_risk_scores with a given conditions (other predicates). +func (f *AssessmentResponseFilter) WhereHasVendorRiskScoresWith(preds ...predicate.VendorRiskScore) { + f.Where(entql.HasEdgeWith("vendor_risk_scores", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDescription applies the entql string predicate on the description field. -func (f *APITokenFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(apitoken.FieldDescription)) +// addPredicate implements the predicateAdder interface. +func (_q *AssetQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereScopes applies the entql json.RawMessage predicate on the scopes field. -func (f *APITokenFilter) WhereScopes(p entql.BytesP) { - f.Where(p.Field(apitoken.FieldScopes)) +// Filter returns a Filter implementation to apply filters on the AssetQuery builder. +func (_q *AssetQuery) Filter() *AssetFilter { + return &AssetFilter{config: _q.config, predicateAdder: _q} } -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *APITokenFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldLastUsedAt)) +// addPredicate implements the predicateAdder interface. +func (m *AssetMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereIsActive applies the entql bool predicate on the is_active field. -func (f *APITokenFilter) WhereIsActive(p entql.BoolP) { - f.Where(p.Field(apitoken.FieldIsActive)) +// Filter returns an entql.Where implementation to apply filters on the AssetMutation builder. +func (m *AssetMutation) Filter() *AssetFilter { + return &AssetFilter{config: m.config, predicateAdder: m} } -// WhereRevokedReason applies the entql string predicate on the revoked_reason field. -func (f *APITokenFilter) WhereRevokedReason(p entql.StringP) { - f.Where(p.Field(apitoken.FieldRevokedReason)) +// AssetFilter provides a generic filtering capability at runtime for AssetQuery. +type AssetFilter struct { + predicateAdder + config } -// WhereRevokedBy applies the entql string predicate on the revoked_by field. -func (f *APITokenFilter) WhereRevokedBy(p entql.StringP) { - f.Where(p.Field(apitoken.FieldRevokedBy)) +// Where applies the entql predicate on the query filter. +func (f *AssetFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[4].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereRevokedAt applies the entql time.Time predicate on the revoked_at field. -func (f *APITokenFilter) WhereRevokedAt(p entql.TimeP) { - f.Where(p.Field(apitoken.FieldRevokedAt)) +// WhereID applies the entql string predicate on the id field. +func (f *AssetFilter) WhereID(p entql.StringP) { + f.Where(p.Field(asset.FieldID)) } -// WhereSSOAuthorizations applies the entql json.RawMessage predicate on the sso_authorizations field. -func (f *APITokenFilter) WhereSSOAuthorizations(p entql.BytesP) { - f.Where(p.Field(apitoken.FieldSSOAuthorizations)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AssetFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(asset.FieldCreatedAt)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *APITokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AssetFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(asset.FieldUpdatedAt)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *APITokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AssetFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(asset.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AssetFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(asset.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AssetFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(asset.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AssetFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(asset.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AssetFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(asset.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AssetFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(asset.FieldOwnerID)) +} + +// WhereInternalOwner applies the entql string predicate on the internal_owner field. +func (f *AssetFilter) WhereInternalOwner(p entql.StringP) { + f.Where(p.Field(asset.FieldInternalOwner)) } -// addPredicate implements the predicateAdder interface. -func (_q *ActionPlanQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. +func (f *AssetFilter) WhereInternalOwnerUserID(p entql.StringP) { + f.Where(p.Field(asset.FieldInternalOwnerUserID)) } -// Filter returns a Filter implementation to apply filters on the ActionPlanQuery builder. -func (_q *ActionPlanQuery) Filter() *ActionPlanFilter { - return &ActionPlanFilter{config: _q.config, predicateAdder: _q} +// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. +func (f *AssetFilter) WhereInternalOwnerGroupID(p entql.StringP) { + f.Where(p.Field(asset.FieldInternalOwnerGroupID)) } -// addPredicate implements the predicateAdder interface. -func (m *ActionPlanMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereAssetSubtypeName applies the entql string predicate on the asset_subtype_name field. +func (f *AssetFilter) WhereAssetSubtypeName(p entql.StringP) { + f.Where(p.Field(asset.FieldAssetSubtypeName)) } -// Filter returns an entql.Where implementation to apply filters on the ActionPlanMutation builder. -func (m *ActionPlanMutation) Filter() *ActionPlanFilter { - return &ActionPlanFilter{config: m.config, predicateAdder: m} +// WhereAssetSubtypeID applies the entql string predicate on the asset_subtype_id field. +func (f *AssetFilter) WhereAssetSubtypeID(p entql.StringP) { + f.Where(p.Field(asset.FieldAssetSubtypeID)) } -// ActionPlanFilter provides a generic filtering capability at runtime for ActionPlanQuery. -type ActionPlanFilter struct { - predicateAdder - config +// WhereAssetDataClassificationName applies the entql string predicate on the asset_data_classification_name field. +func (f *AssetFilter) WhereAssetDataClassificationName(p entql.StringP) { + f.Where(p.Field(asset.FieldAssetDataClassificationName)) } -// Where applies the entql predicate on the query filter. -func (f *ActionPlanFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[1].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereAssetDataClassificationID applies the entql string predicate on the asset_data_classification_id field. +func (f *AssetFilter) WhereAssetDataClassificationID(p entql.StringP) { + f.Where(p.Field(asset.FieldAssetDataClassificationID)) } -// WhereID applies the entql string predicate on the id field. -func (f *ActionPlanFilter) WhereID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldID)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *AssetFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(asset.FieldEnvironmentName)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ActionPlanFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldCreatedAt)) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *AssetFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(asset.FieldEnvironmentID)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ActionPlanFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldUpdatedAt)) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *AssetFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(asset.FieldScopeName)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ActionPlanFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(actionplan.FieldCreatedBy)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *AssetFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(asset.FieldScopeID)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ActionPlanFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(actionplan.FieldUpdatedBy)) +// WhereAccessModelName applies the entql string predicate on the access_model_name field. +func (f *AssetFilter) WhereAccessModelName(p entql.StringP) { + f.Where(p.Field(asset.FieldAccessModelName)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ActionPlanFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldDeletedAt)) +// WhereAccessModelID applies the entql string predicate on the access_model_id field. +func (f *AssetFilter) WhereAccessModelID(p entql.StringP) { + f.Where(p.Field(asset.FieldAccessModelID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ActionPlanFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(actionplan.FieldDeletedBy)) +// WhereEncryptionStatusName applies the entql string predicate on the encryption_status_name field. +func (f *AssetFilter) WhereEncryptionStatusName(p entql.StringP) { + f.Where(p.Field(asset.FieldEncryptionStatusName)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ActionPlanFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldTags)) +// WhereEncryptionStatusID applies the entql string predicate on the encryption_status_id field. +func (f *AssetFilter) WhereEncryptionStatusID(p entql.StringP) { + f.Where(p.Field(asset.FieldEncryptionStatusID)) } -// WhereRevision applies the entql string predicate on the revision field. -func (f *ActionPlanFilter) WhereRevision(p entql.StringP) { - f.Where(p.Field(actionplan.FieldRevision)) +// WhereSecurityTierName applies the entql string predicate on the security_tier_name field. +func (f *AssetFilter) WhereSecurityTierName(p entql.StringP) { + f.Where(p.Field(asset.FieldSecurityTierName)) } -// WhereName applies the entql string predicate on the name field. -func (f *ActionPlanFilter) WhereName(p entql.StringP) { - f.Where(p.Field(actionplan.FieldName)) +// WhereSecurityTierID applies the entql string predicate on the security_tier_id field. +func (f *AssetFilter) WhereSecurityTierID(p entql.StringP) { + f.Where(p.Field(asset.FieldSecurityTierID)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ActionPlanFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(actionplan.FieldStatus)) +// WhereCriticalityName applies the entql string predicate on the criticality_name field. +func (f *AssetFilter) WhereCriticalityName(p entql.StringP) { + f.Where(p.Field(asset.FieldCriticalityName)) } -// WhereManagementMode applies the entql string predicate on the management_mode field. -func (f *ActionPlanFilter) WhereManagementMode(p entql.StringP) { - f.Where(p.Field(actionplan.FieldManagementMode)) +// WhereCriticalityID applies the entql string predicate on the criticality_id field. +func (f *AssetFilter) WhereCriticalityID(p entql.StringP) { + f.Where(p.Field(asset.FieldCriticalityID)) } -// WhereDetails applies the entql string predicate on the details field. -func (f *ActionPlanFilter) WhereDetails(p entql.StringP) { - f.Where(p.Field(actionplan.FieldDetails)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *AssetFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(asset.FieldSystemOwned)) } -// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. -func (f *ActionPlanFilter) WhereDetailsJSON(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldDetailsJSON)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *AssetFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(asset.FieldInternalNotes)) } -// WhereApprovalRequired applies the entql bool predicate on the approval_required field. -func (f *ActionPlanFilter) WhereApprovalRequired(p entql.BoolP) { - f.Where(p.Field(actionplan.FieldApprovalRequired)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *AssetFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(asset.FieldSystemInternalID)) } -// WhereReviewDue applies the entql time.Time predicate on the review_due field. -func (f *ActionPlanFilter) WhereReviewDue(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldReviewDue)) +// WhereAssetType applies the entql string predicate on the asset_type field. +func (f *AssetFilter) WhereAssetType(p entql.StringP) { + f.Where(p.Field(asset.FieldAssetType)) } -// WhereReviewFrequency applies the entql string predicate on the review_frequency field. -func (f *ActionPlanFilter) WhereReviewFrequency(p entql.StringP) { - f.Where(p.Field(actionplan.FieldReviewFrequency)) +// WhereName applies the entql string predicate on the name field. +func (f *AssetFilter) WhereName(p entql.StringP) { + f.Where(p.Field(asset.FieldName)) } -// WhereApproverID applies the entql string predicate on the approver_id field. -func (f *ActionPlanFilter) WhereApproverID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldApproverID)) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *AssetFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(asset.FieldDisplayName)) } -// WhereDelegateID applies the entql string predicate on the delegate_id field. -func (f *ActionPlanFilter) WhereDelegateID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldDelegateID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *AssetFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(asset.FieldDescription)) } -// WhereSummary applies the entql string predicate on the summary field. -func (f *ActionPlanFilter) WhereSummary(p entql.StringP) { - f.Where(p.Field(actionplan.FieldSummary)) +// WhereIdentifier applies the entql string predicate on the identifier field. +func (f *AssetFilter) WhereIdentifier(p entql.StringP) { + f.Where(p.Field(asset.FieldIdentifier)) } -// WhereTagSuggestions applies the entql json.RawMessage predicate on the tag_suggestions field. -func (f *ActionPlanFilter) WhereTagSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldTagSuggestions)) +// WhereWebsite applies the entql string predicate on the website field. +func (f *AssetFilter) WhereWebsite(p entql.StringP) { + f.Where(p.Field(asset.FieldWebsite)) } -// WhereDismissedTagSuggestions applies the entql json.RawMessage predicate on the dismissed_tag_suggestions field. -func (f *ActionPlanFilter) WhereDismissedTagSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldDismissedTagSuggestions)) +// WherePhysicalLocation applies the entql string predicate on the physical_location field. +func (f *AssetFilter) WherePhysicalLocation(p entql.StringP) { + f.Where(p.Field(asset.FieldPhysicalLocation)) } -// WhereControlSuggestions applies the entql json.RawMessage predicate on the control_suggestions field. -func (f *ActionPlanFilter) WhereControlSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldControlSuggestions)) +// WhereRegion applies the entql string predicate on the region field. +func (f *AssetFilter) WhereRegion(p entql.StringP) { + f.Where(p.Field(asset.FieldRegion)) } -// WhereDismissedControlSuggestions applies the entql json.RawMessage predicate on the dismissed_control_suggestions field. -func (f *ActionPlanFilter) WhereDismissedControlSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldDismissedControlSuggestions)) +// WhereContainsPii applies the entql bool predicate on the contains_pii field. +func (f *AssetFilter) WhereContainsPii(p entql.BoolP) { + f.Where(p.Field(asset.FieldContainsPii)) } -// WhereImprovementSuggestions applies the entql json.RawMessage predicate on the improvement_suggestions field. -func (f *ActionPlanFilter) WhereImprovementSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldImprovementSuggestions)) +// WhereSourceType applies the entql string predicate on the source_type field. +func (f *AssetFilter) WhereSourceType(p entql.StringP) { + f.Where(p.Field(asset.FieldSourceType)) } -// WhereDismissedImprovementSuggestions applies the entql json.RawMessage predicate on the dismissed_improvement_suggestions field. -func (f *ActionPlanFilter) WhereDismissedImprovementSuggestions(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldDismissedImprovementSuggestions)) +// WhereSourcePlatformID applies the entql string predicate on the source_platform_id field. +func (f *AssetFilter) WhereSourcePlatformID(p entql.StringP) { + f.Where(p.Field(asset.FieldSourcePlatformID)) } -// WhereURL applies the entql string predicate on the url field. -func (f *ActionPlanFilter) WhereURL(p entql.StringP) { - f.Where(p.Field(actionplan.FieldURL)) +// WhereSourceIdentifier applies the entql string predicate on the source_identifier field. +func (f *AssetFilter) WhereSourceIdentifier(p entql.StringP) { + f.Where(p.Field(asset.FieldSourceIdentifier)) } -// WhereFileID applies the entql string predicate on the file_id field. -func (f *ActionPlanFilter) WhereFileID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldFileID)) +// WhereCostCenter applies the entql string predicate on the cost_center field. +func (f *AssetFilter) WhereCostCenter(p entql.StringP) { + f.Where(p.Field(asset.FieldCostCenter)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ActionPlanFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldOwnerID)) +// WhereEstimatedMonthlyCost applies the entql float64 predicate on the estimated_monthly_cost field. +func (f *AssetFilter) WhereEstimatedMonthlyCost(p entql.Float64P) { + f.Where(p.Field(asset.FieldEstimatedMonthlyCost)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *ActionPlanFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(actionplan.FieldSystemOwned)) +// WherePurchaseDate applies the entql time.Time predicate on the purchase_date field. +func (f *AssetFilter) WherePurchaseDate(p entql.TimeP) { + f.Where(p.Field(asset.FieldPurchaseDate)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *ActionPlanFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(actionplan.FieldInternalNotes)) +// WhereCpe applies the entql string predicate on the cpe field. +func (f *AssetFilter) WhereCpe(p entql.StringP) { + f.Where(p.Field(asset.FieldCpe)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *ActionPlanFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldSystemInternalID)) +// WhereCategories applies the entql json.RawMessage predicate on the categories field. +func (f *AssetFilter) WhereCategories(p entql.BytesP) { + f.Where(p.Field(asset.FieldCategories)) } -// WhereActionPlanKindName applies the entql string predicate on the action_plan_kind_name field. -func (f *ActionPlanFilter) WhereActionPlanKindName(p entql.StringP) { - f.Where(p.Field(actionplan.FieldActionPlanKindName)) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *AssetFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(asset.FieldIntegrationID)) } -// WhereActionPlanKindID applies the entql string predicate on the action_plan_kind_id field. -func (f *ActionPlanFilter) WhereActionPlanKindID(p entql.StringP) { - f.Where(p.Field(actionplan.FieldActionPlanKindID)) +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *AssetFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(asset.FieldObservedAt)) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *ActionPlanFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(actionplan.FieldWorkflowEligibleMarker)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *AssetFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereTitle applies the entql string predicate on the title field. -func (f *ActionPlanFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(actionplan.FieldTitle)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *AssetFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDescription applies the entql string predicate on the description field. -func (f *ActionPlanFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(actionplan.FieldDescription)) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *AssetFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereDueDate applies the entql time.Time predicate on the due_date field. -func (f *ActionPlanFilter) WhereDueDate(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldDueDate)) +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *AssetFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. -func (f *ActionPlanFilter) WhereCompletedAt(p entql.TimeP) { - f.Where(p.Field(actionplan.FieldCompletedAt)) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *AssetFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WherePriority applies the entql string predicate on the priority field. -func (f *ActionPlanFilter) WherePriority(p entql.StringP) { - f.Where(p.Field(actionplan.FieldPriority)) +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *AssetFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRequiresApproval applies the entql bool predicate on the requires_approval field. -func (f *ActionPlanFilter) WhereRequiresApproval(p entql.BoolP) { - f.Where(p.Field(actionplan.FieldRequiresApproval)) +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *AssetFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) } -// WhereBlocked applies the entql bool predicate on the blocked field. -func (f *ActionPlanFilter) WhereBlocked(p entql.BoolP) { - f.Where(p.Field(actionplan.FieldBlocked)) +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *AssetFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereBlockerReason applies the entql string predicate on the blocker_reason field. -func (f *ActionPlanFilter) WhereBlockerReason(p entql.StringP) { - f.Where(p.Field(actionplan.FieldBlockerReason)) +// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. +func (f *AssetFilter) WhereHasInternalOwnerUser() { + f.Where(entql.HasEdge("internal_owner_user")) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *ActionPlanFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldMetadata)) +// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). +func (f *AssetFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRawPayload applies the entql json.RawMessage predicate on the raw_payload field. -func (f *ActionPlanFilter) WhereRawPayload(p entql.BytesP) { - f.Where(p.Field(actionplan.FieldRawPayload)) +// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. +func (f *AssetFilter) WhereHasInternalOwnerGroup() { + f.Where(entql.HasEdge("internal_owner_group")) } -// WhereSource applies the entql string predicate on the source field. -func (f *ActionPlanFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(actionplan.FieldSource)) +// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). +func (f *AssetFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasApprover applies a predicate to check if query has an edge approver. -func (f *ActionPlanFilter) WhereHasApprover() { - f.Where(entql.HasEdge("approver")) +// WhereHasAssetSubtype applies a predicate to check if query has an edge asset_subtype. +func (f *AssetFilter) WhereHasAssetSubtype() { + f.Where(entql.HasEdge("asset_subtype")) } -// WhereHasApproverWith applies a predicate to check if query has an edge approver with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasApproverWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("approver", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssetSubtypeWith applies a predicate to check if query has an edge asset_subtype with a given conditions (other predicates). +func (f *AssetFilter) WhereHasAssetSubtypeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("asset_subtype", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDelegate applies a predicate to check if query has an edge delegate. -func (f *ActionPlanFilter) WhereHasDelegate() { - f.Where(entql.HasEdge("delegate")) +// WhereHasAssetDataClassification applies a predicate to check if query has an edge asset_data_classification. +func (f *AssetFilter) WhereHasAssetDataClassification() { + f.Where(entql.HasEdge("asset_data_classification")) } -// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasDelegateWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssetDataClassificationWith applies a predicate to check if query has an edge asset_data_classification with a given conditions (other predicates). +func (f *AssetFilter) WhereHasAssetDataClassificationWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("asset_data_classification", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ActionPlanFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *AssetFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *AssetFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *ActionPlanFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *AssetFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *AssetFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *ActionPlanFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasAccessModel applies a predicate to check if query has an edge access_model. +func (f *AssetFilter) WhereHasAccessModel() { + f.Where(entql.HasEdge("access_model")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAccessModelWith applies a predicate to check if query has an edge access_model with a given conditions (other predicates). +func (f *AssetFilter) WhereHasAccessModelWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("access_model", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *ActionPlanFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasEncryptionStatus applies a predicate to check if query has an edge encryption_status. +func (f *AssetFilter) WhereHasEncryptionStatus() { + f.Where(entql.HasEdge("encryption_status")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEncryptionStatusWith applies a predicate to check if query has an edge encryption_status with a given conditions (other predicates). +func (f *AssetFilter) WhereHasEncryptionStatusWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("encryption_status", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlanKind applies a predicate to check if query has an edge action_plan_kind. -func (f *ActionPlanFilter) WhereHasActionPlanKind() { - f.Where(entql.HasEdge("action_plan_kind")) +// WhereHasSecurityTier applies a predicate to check if query has an edge security_tier. +func (f *AssetFilter) WhereHasSecurityTier() { + f.Where(entql.HasEdge("security_tier")) } -// WhereHasActionPlanKindWith applies a predicate to check if query has an edge action_plan_kind with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasActionPlanKindWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("action_plan_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSecurityTierWith applies a predicate to check if query has an edge security_tier with a given conditions (other predicates). +func (f *AssetFilter) WhereHasSecurityTierWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("security_tier", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *ActionPlanFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// WhereHasCriticality applies a predicate to check if query has an edge criticality. +func (f *AssetFilter) WhereHasCriticality() { + f.Where(entql.HasEdge("criticality")) } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCriticalityWith applies a predicate to check if query has an edge criticality with a given conditions (other predicates). +func (f *AssetFilter) WhereHasCriticalityWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("criticality", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *ActionPlanFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *AssetFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *AssetFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *ActionPlanFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *AssetFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *AssetFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *ActionPlanFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *AssetFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *AssetFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. -func (f *ActionPlanFilter) WhereHasVulnerabilities() { - f.Where(entql.HasEdge("vulnerabilities")) +// WhereHasOutOfScopePlatforms applies a predicate to check if query has an edge out_of_scope_platforms. +func (f *AssetFilter) WhereHasOutOfScopePlatforms() { + f.Where(entql.HasEdge("out_of_scope_platforms")) } -// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { - f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOutOfScopePlatformsWith applies a predicate to check if query has an edge out_of_scope_platforms with a given conditions (other predicates). +func (f *AssetFilter) WhereHasOutOfScopePlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("out_of_scope_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *ActionPlanFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *AssetFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *AssetFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasReviews applies a predicate to check if query has an edge reviews. -func (f *ActionPlanFilter) WhereHasReviews() { - f.Where(entql.HasEdge("reviews")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *AssetFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) +} + +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *AssetFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasReviewsWith(preds ...predicate.Review) { - f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *AssetFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) +} + +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *AssetFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRemediations applies a predicate to check if query has an edge remediations. -func (f *ActionPlanFilter) WhereHasRemediations() { - f.Where(entql.HasEdge("remediations")) +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *AssetFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) } -// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { - f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *AssetFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *ActionPlanFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereHasSourcePlatform applies a predicate to check if query has an edge source_platform. +func (f *AssetFilter) WhereHasSourcePlatform() { + f.Where(entql.HasEdge("source_platform")) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSourcePlatformWith applies a predicate to check if query has an edge source_platform with a given conditions (other predicates). +func (f *AssetFilter) WhereHasSourcePlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("source_platform", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *ActionPlanFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *AssetFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *AssetFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFile applies a predicate to check if query has an edge file. -func (f *ActionPlanFilter) WhereHasFile() { - f.Where(entql.HasEdge("file")) +// WhereHasConnectedAssets applies a predicate to check if query has an edge connected_assets. +func (f *AssetFilter) WhereHasConnectedAssets() { + f.Where(entql.HasEdge("connected_assets")) } -// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasConnectedAssetsWith applies a predicate to check if query has an edge connected_assets with a given conditions (other predicates). +func (f *AssetFilter) WhereHasConnectedAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("connected_assets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *ActionPlanFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasConnectedFrom applies a predicate to check if query has an edge connected_from. +func (f *AssetFilter) WhereHasConnectedFrom() { + f.Where(entql.HasEdge("connected_from")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *ActionPlanFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasConnectedFromWith applies a predicate to check if query has an edge connected_from with a given conditions (other predicates). +func (f *AssetFilter) WhereHasConnectedFromWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("connected_from", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -18228,137 +20095,252 @@ func (f *ActionPlanFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.Wor } // addPredicate implements the predicateAdder interface. -func (_q *AssessmentQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *CampaignQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the AssessmentQuery builder. -func (_q *AssessmentQuery) Filter() *AssessmentFilter { - return &AssessmentFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the CampaignQuery builder. +func (_q *CampaignQuery) Filter() *CampaignFilter { + return &CampaignFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *AssessmentMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *CampaignMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the AssessmentMutation builder. -func (m *AssessmentMutation) Filter() *AssessmentFilter { - return &AssessmentFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the CampaignMutation builder. +func (m *CampaignMutation) Filter() *CampaignFilter { + return &CampaignFilter{config: m.config, predicateAdder: m} } -// AssessmentFilter provides a generic filtering capability at runtime for AssessmentQuery. -type AssessmentFilter struct { +// CampaignFilter provides a generic filtering capability at runtime for CampaignQuery. +type CampaignFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *AssessmentFilter) Where(p entql.P) { +func (f *CampaignFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[2].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[5].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *AssessmentFilter) WhereID(p entql.StringP) { - f.Where(p.Field(assessment.FieldID)) +func (f *CampaignFilter) WhereID(p entql.StringP) { + f.Where(p.Field(campaign.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *AssessmentFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(assessment.FieldCreatedAt)) +func (f *CampaignFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *AssessmentFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(assessment.FieldUpdatedAt)) +func (f *CampaignFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *AssessmentFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(assessment.FieldCreatedBy)) +func (f *CampaignFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(campaign.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *AssessmentFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(assessment.FieldUpdatedBy)) +func (f *CampaignFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(campaign.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *AssessmentFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(assessment.FieldDeletedAt)) +func (f *CampaignFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *AssessmentFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(assessment.FieldDeletedBy)) +func (f *CampaignFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(campaign.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *CampaignFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(campaign.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *AssessmentFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(assessment.FieldTags)) +func (f *CampaignFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(campaign.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *AssessmentFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(assessment.FieldOwnerID)) +func (f *CampaignFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(campaign.FieldOwnerID)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *AssessmentFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(assessment.FieldSystemOwned)) +// WhereInternalOwner applies the entql string predicate on the internal_owner field. +func (f *CampaignFilter) WhereInternalOwner(p entql.StringP) { + f.Where(p.Field(campaign.FieldInternalOwner)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *AssessmentFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(assessment.FieldInternalNotes)) +// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. +func (f *CampaignFilter) WhereInternalOwnerUserID(p entql.StringP) { + f.Where(p.Field(campaign.FieldInternalOwnerUserID)) +} + +// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. +func (f *CampaignFilter) WhereInternalOwnerGroupID(p entql.StringP) { + f.Where(p.Field(campaign.FieldInternalOwnerGroupID)) +} + +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *CampaignFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(campaign.FieldWorkflowEligibleMarker)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *CampaignFilter) WhereName(p entql.StringP) { + f.Where(p.Field(campaign.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *CampaignFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(campaign.FieldDescription)) +} + +// WhereCampaignType applies the entql string predicate on the campaign_type field. +func (f *CampaignFilter) WhereCampaignType(p entql.StringP) { + f.Where(p.Field(campaign.FieldCampaignType)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *CampaignFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(campaign.FieldStatus)) +} + +// WhereIsActive applies the entql bool predicate on the is_active field. +func (f *CampaignFilter) WhereIsActive(p entql.BoolP) { + f.Where(p.Field(campaign.FieldIsActive)) +} + +// WhereScheduledAt applies the entql time.Time predicate on the scheduled_at field. +func (f *CampaignFilter) WhereScheduledAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldScheduledAt)) +} + +// WhereLaunchedAt applies the entql time.Time predicate on the launched_at field. +func (f *CampaignFilter) WhereLaunchedAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldLaunchedAt)) +} + +// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. +func (f *CampaignFilter) WhereCompletedAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldCompletedAt)) +} + +// WhereDueDate applies the entql time.Time predicate on the due_date field. +func (f *CampaignFilter) WhereDueDate(p entql.TimeP) { + f.Where(p.Field(campaign.FieldDueDate)) +} + +// WhereIsRecurring applies the entql bool predicate on the is_recurring field. +func (f *CampaignFilter) WhereIsRecurring(p entql.BoolP) { + f.Where(p.Field(campaign.FieldIsRecurring)) +} + +// WhereRecurrenceFrequency applies the entql string predicate on the recurrence_frequency field. +func (f *CampaignFilter) WhereRecurrenceFrequency(p entql.StringP) { + f.Where(p.Field(campaign.FieldRecurrenceFrequency)) +} + +// WhereRecurrenceInterval applies the entql int predicate on the recurrence_interval field. +func (f *CampaignFilter) WhereRecurrenceInterval(p entql.IntP) { + f.Where(p.Field(campaign.FieldRecurrenceInterval)) +} + +// WhereRecurrenceTimezone applies the entql string predicate on the recurrence_timezone field. +func (f *CampaignFilter) WhereRecurrenceTimezone(p entql.StringP) { + f.Where(p.Field(campaign.FieldRecurrenceTimezone)) +} + +// WhereRecurrenceCron applies the entql string predicate on the recurrence_cron field. +func (f *CampaignFilter) WhereRecurrenceCron(p entql.StringP) { + f.Where(p.Field(campaign.FieldRecurrenceCron)) +} + +// WhereLastRunAt applies the entql time.Time predicate on the last_run_at field. +func (f *CampaignFilter) WhereLastRunAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldLastRunAt)) +} + +// WhereNextRunAt applies the entql time.Time predicate on the next_run_at field. +func (f *CampaignFilter) WhereNextRunAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldNextRunAt)) +} + +// WhereRecurrenceEndAt applies the entql time.Time predicate on the recurrence_end_at field. +func (f *CampaignFilter) WhereRecurrenceEndAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldRecurrenceEndAt)) +} + +// WhereRecipientCount applies the entql int predicate on the recipient_count field. +func (f *CampaignFilter) WhereRecipientCount(p entql.IntP) { + f.Where(p.Field(campaign.FieldRecipientCount)) +} + +// WhereResendCount applies the entql int predicate on the resend_count field. +func (f *CampaignFilter) WhereResendCount(p entql.IntP) { + f.Where(p.Field(campaign.FieldResendCount)) +} + +// WhereLastResentAt applies the entql time.Time predicate on the last_resent_at field. +func (f *CampaignFilter) WhereLastResentAt(p entql.TimeP) { + f.Where(p.Field(campaign.FieldLastResentAt)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *AssessmentFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(assessment.FieldSystemInternalID)) +// WhereEntityID applies the entql string predicate on the entity_id field. +func (f *CampaignFilter) WhereEntityID(p entql.StringP) { + f.Where(p.Field(campaign.FieldEntityID)) } -// WhereName applies the entql string predicate on the name field. -func (f *AssessmentFilter) WhereName(p entql.StringP) { - f.Where(p.Field(assessment.FieldName)) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *CampaignFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(campaign.FieldTemplateID)) } -// WhereAssessmentType applies the entql string predicate on the assessment_type field. -func (f *AssessmentFilter) WhereAssessmentType(p entql.StringP) { - f.Where(p.Field(assessment.FieldAssessmentType)) +// WhereAssessmentID applies the entql string predicate on the assessment_id field. +func (f *CampaignFilter) WhereAssessmentID(p entql.StringP) { + f.Where(p.Field(campaign.FieldAssessmentID)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *AssessmentFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(assessment.FieldTemplateID)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *CampaignFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(campaign.FieldMetadata)) } -// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. -func (f *AssessmentFilter) WhereJsonconfig(p entql.BytesP) { - f.Where(p.Field(assessment.FieldJsonconfig)) +// WhereEmailTemplateID applies the entql string predicate on the email_template_id field. +func (f *CampaignFilter) WhereEmailTemplateID(p entql.StringP) { + f.Where(p.Field(campaign.FieldEmailTemplateID)) } -// WhereUischema applies the entql json.RawMessage predicate on the uischema field. -func (f *AssessmentFilter) WhereUischema(p entql.BytesP) { - f.Where(p.Field(assessment.FieldUischema)) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *CampaignFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(campaign.FieldIntegrationID)) } -// WhereResponseDueDuration applies the entql int64 predicate on the response_due_duration field. -func (f *AssessmentFilter) WhereResponseDueDuration(p entql.Int64P) { - f.Where(p.Field(assessment.FieldResponseDueDuration)) +// WhereEmailBrandingID applies the entql string predicate on the email_branding_id field. +func (f *CampaignFilter) WhereEmailBrandingID(p entql.StringP) { + f.Where(p.Field(campaign.FieldEmailBrandingID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *AssessmentFilter) WhereHasOwner() { +func (f *CampaignFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *CampaignFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -18367,12 +20349,12 @@ func (f *AssessmentFilter) WhereHasOwnerWith(preds ...predicate.Organization) { } // WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *AssessmentFilter) WhereHasBlockedGroups() { +func (f *CampaignFilter) WhereHasBlockedGroups() { f.Where(entql.HasEdge("blocked_groups")) } // WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { +func (f *CampaignFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -18381,12 +20363,12 @@ func (f *AssessmentFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { } // WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *AssessmentFilter) WhereHasEditors() { +func (f *CampaignFilter) WhereHasEditors() { f.Where(entql.HasEdge("editors")) } // WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasEditorsWith(preds ...predicate.Group) { +func (f *CampaignFilter) WhereHasEditorsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -18395,12 +20377,12 @@ func (f *AssessmentFilter) WhereHasEditorsWith(preds ...predicate.Group) { } // WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *AssessmentFilter) WhereHasViewers() { +func (f *CampaignFilter) WhereHasViewers() { f.Where(entql.HasEdge("viewers")) } // WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasViewersWith(preds ...predicate.Group) { +func (f *CampaignFilter) WhereHasViewersWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -18408,353 +20390,210 @@ func (f *AssessmentFilter) WhereHasViewersWith(preds ...predicate.Group) { }))) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *AssessmentFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) -} - -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *AssessmentFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) -} - -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *AssessmentFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) -} - -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. -func (f *AssessmentFilter) WhereHasAssessmentResponses() { - f.Where(entql.HasEdge("assessment_responses")) +// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. +func (f *CampaignFilter) WhereHasInternalOwnerUser() { + f.Where(entql.HasEdge("internal_owner_user")) } -// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { - f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *AssessmentFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. +func (f *CampaignFilter) WhereHasInternalOwnerGroup() { + f.Where(entql.HasEdge("internal_owner_group")) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *AssessmentFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *AssessmentResponseQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the AssessmentResponseQuery builder. -func (_q *AssessmentResponseQuery) Filter() *AssessmentResponseFilter { - return &AssessmentResponseFilter{config: _q.config, predicateAdder: _q} -} - -// addPredicate implements the predicateAdder interface. -func (m *AssessmentResponseMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the AssessmentResponseMutation builder. -func (m *AssessmentResponseMutation) Filter() *AssessmentResponseFilter { - return &AssessmentResponseFilter{config: m.config, predicateAdder: m} -} - -// AssessmentResponseFilter provides a generic filtering capability at runtime for AssessmentResponseQuery. -type AssessmentResponseFilter struct { - predicateAdder - config -} - -// Where applies the entql predicate on the query filter. -func (f *AssessmentResponseFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[3].Type, p, s); err != nil { - s.AddError(err) - } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *AssessmentResponseFilter) WhereID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *AssessmentResponseFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *AssessmentResponseFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *AssessmentResponseFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *AssessmentResponseFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *AssessmentResponseFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *AssessmentResponseFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *AssessmentResponseFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldOwnerID)) -} - -// WhereAssessmentID applies the entql string predicate on the assessment_id field. -func (f *AssessmentResponseFilter) WhereAssessmentID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldAssessmentID)) -} - -// WhereIsTest applies the entql bool predicate on the is_test field. -func (f *AssessmentResponseFilter) WhereIsTest(p entql.BoolP) { - f.Where(p.Field(assessmentresponse.FieldIsTest)) -} - -// WhereCampaignID applies the entql string predicate on the campaign_id field. -func (f *AssessmentResponseFilter) WhereCampaignID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldCampaignID)) -} - -// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. -func (f *AssessmentResponseFilter) WhereIdentityHolderID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldIdentityHolderID)) -} - -// WhereEntityID applies the entql string predicate on the entity_id field. -func (f *AssessmentResponseFilter) WhereEntityID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldEntityID)) -} - -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *AssessmentResponseFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldDisplayName)) -} - -// WhereEmail applies the entql string predicate on the email field. -func (f *AssessmentResponseFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldEmail)) -} - -// WhereSendAttempts applies the entql int predicate on the send_attempts field. -func (f *AssessmentResponseFilter) WhereSendAttempts(p entql.IntP) { - f.Where(p.Field(assessmentresponse.FieldSendAttempts)) -} - -// WhereEmailDeliveredAt applies the entql time.Time predicate on the email_delivered_at field. -func (f *AssessmentResponseFilter) WhereEmailDeliveredAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldEmailDeliveredAt)) -} - -// WhereEmailOpenedAt applies the entql time.Time predicate on the email_opened_at field. -func (f *AssessmentResponseFilter) WhereEmailOpenedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldEmailOpenedAt)) -} - -// WhereEmailClickedAt applies the entql time.Time predicate on the email_clicked_at field. -func (f *AssessmentResponseFilter) WhereEmailClickedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldEmailClickedAt)) +// WhereHasAssessment applies a predicate to check if query has an edge assessment. +func (f *CampaignFilter) WhereHasAssessment() { + f.Where(entql.HasEdge("assessment")) } -// WhereEmailOpenCount applies the entql int predicate on the email_open_count field. -func (f *AssessmentResponseFilter) WhereEmailOpenCount(p entql.IntP) { - f.Where(p.Field(assessmentresponse.FieldEmailOpenCount)) +// WhereHasAssessmentWith applies a predicate to check if query has an edge assessment with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasAssessmentWith(preds ...predicate.Assessment) { + f.Where(entql.HasEdgeWith("assessment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmailClickCount applies the entql int predicate on the email_click_count field. -func (f *AssessmentResponseFilter) WhereEmailClickCount(p entql.IntP) { - f.Where(p.Field(assessmentresponse.FieldEmailClickCount)) +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *CampaignFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) } -// WhereLastEmailEventAt applies the entql time.Time predicate on the last_email_event_at field. -func (f *AssessmentResponseFilter) WhereLastEmailEventAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldLastEmailEventAt)) +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmailMetadata applies the entql json.RawMessage predicate on the email_metadata field. -func (f *AssessmentResponseFilter) WhereEmailMetadata(p entql.BytesP) { - f.Where(p.Field(assessmentresponse.FieldEmailMetadata)) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *CampaignFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereStatus applies the entql string predicate on the status field. -func (f *AssessmentResponseFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldStatus)) +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAssignedAt applies the entql time.Time predicate on the assigned_at field. -func (f *AssessmentResponseFilter) WhereAssignedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldAssignedAt)) +// WhereHasEmailTemplate applies a predicate to check if query has an edge email_template. +func (f *CampaignFilter) WhereHasEmailTemplate() { + f.Where(entql.HasEdge("email_template")) } -// WhereStartedAt applies the entql time.Time predicate on the started_at field. -func (f *AssessmentResponseFilter) WhereStartedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldStartedAt)) +// WhereHasEmailTemplateWith applies a predicate to check if query has an edge email_template with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasEmailTemplateWith(preds ...predicate.EmailTemplate) { + f.Where(entql.HasEdgeWith("email_template", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. -func (f *AssessmentResponseFilter) WhereCompletedAt(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldCompletedAt)) +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *CampaignFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) } -// WhereDueDate applies the entql time.Time predicate on the due_date field. -func (f *AssessmentResponseFilter) WhereDueDate(p entql.TimeP) { - f.Where(p.Field(assessmentresponse.FieldDueDate)) +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDocumentDataID applies the entql string predicate on the document_data_id field. -func (f *AssessmentResponseFilter) WhereDocumentDataID(p entql.StringP) { - f.Where(p.Field(assessmentresponse.FieldDocumentDataID)) +// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. +func (f *CampaignFilter) WhereHasCampaignTargets() { + f.Where(entql.HasEdge("campaign_targets")) } -// WhereIsDraft applies the entql bool predicate on the is_draft field. -func (f *AssessmentResponseFilter) WhereIsDraft(p entql.BoolP) { - f.Where(p.Field(assessmentresponse.FieldIsDraft)) +// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { + f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *AssessmentResponseFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. +func (f *CampaignFilter) WhereHasAssessmentResponses() { + f.Where(entql.HasEdge("assessment_responses")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { + f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessment applies a predicate to check if query has an edge assessment. -func (f *AssessmentResponseFilter) WhereHasAssessment() { - f.Where(entql.HasEdge("assessment")) +// WhereHasContacts applies a predicate to check if query has an edge contacts. +func (f *CampaignFilter) WhereHasContacts() { + f.Where(entql.HasEdge("contacts")) } -// WhereHasAssessmentWith applies a predicate to check if query has an edge assessment with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasAssessmentWith(preds ...predicate.Assessment) { - f.Where(entql.HasEdgeWith("assessment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasContactsWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaign applies a predicate to check if query has an edge campaign. -func (f *AssessmentResponseFilter) WhereHasCampaign() { - f.Where(entql.HasEdge("campaign")) +// WhereHasUsers applies a predicate to check if query has an edge users. +func (f *CampaignFilter) WhereHasUsers() { + f.Where(entql.HasEdge("users")) } -// WhereHasCampaignWith applies a predicate to check if query has an edge campaign with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasCampaignWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaign", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasUsersWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. -func (f *AssessmentResponseFilter) WhereHasIdentityHolder() { - f.Where(entql.HasEdge("identity_holder")) +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *CampaignFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) } -// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *AssessmentResponseFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *CampaignFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDocument applies a predicate to check if query has an edge document. -func (f *AssessmentResponseFilter) WhereHasDocument() { - f.Where(entql.HasEdge("document")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *CampaignFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasDocumentWith applies a predicate to check if query has an edge document with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasDocumentWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("document", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasVendorRiskScores applies a predicate to check if query has an edge vendor_risk_scores. -func (f *AssessmentResponseFilter) WhereHasVendorRiskScores() { - f.Where(entql.HasEdge("vendor_risk_scores")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *CampaignFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasVendorRiskScoresWith applies a predicate to check if query has an edge vendor_risk_scores with a given conditions (other predicates). -func (f *AssessmentResponseFilter) WhereHasVendorRiskScoresWith(preds ...predicate.VendorRiskScore) { - f.Where(entql.HasEdgeWith("vendor_risk_scores", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -18762,311 +20601,336 @@ func (f *AssessmentResponseFilter) WhereHasVendorRiskScoresWith(preds ...predica } // addPredicate implements the predicateAdder interface. -func (_q *AssetQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *CampaignTargetQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the AssetQuery builder. -func (_q *AssetQuery) Filter() *AssetFilter { - return &AssetFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the CampaignTargetQuery builder. +func (_q *CampaignTargetQuery) Filter() *CampaignTargetFilter { + return &CampaignTargetFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *AssetMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *CampaignTargetMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the AssetMutation builder. -func (m *AssetMutation) Filter() *AssetFilter { - return &AssetFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the CampaignTargetMutation builder. +func (m *CampaignTargetMutation) Filter() *CampaignTargetFilter { + return &CampaignTargetFilter{config: m.config, predicateAdder: m} } -// AssetFilter provides a generic filtering capability at runtime for AssetQuery. -type AssetFilter struct { +// CampaignTargetFilter provides a generic filtering capability at runtime for CampaignTargetQuery. +type CampaignTargetFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *AssetFilter) Where(p entql.P) { +func (f *CampaignTargetFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[4].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[6].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *AssetFilter) WhereID(p entql.StringP) { - f.Where(p.Field(asset.FieldID)) +func (f *CampaignTargetFilter) WhereID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *AssetFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(asset.FieldCreatedAt)) +func (f *CampaignTargetFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(campaigntarget.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *AssetFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(asset.FieldUpdatedAt)) +func (f *CampaignTargetFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(campaigntarget.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *AssetFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(asset.FieldCreatedBy)) +func (f *CampaignTargetFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *AssetFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(asset.FieldUpdatedBy)) +func (f *CampaignTargetFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *AssetFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(asset.FieldDeletedAt)) +func (f *CampaignTargetFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(campaigntarget.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *AssetFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(asset.FieldDeletedBy)) +func (f *CampaignTargetFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldDeletedBy)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *AssetFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(asset.FieldTags)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *CampaignTargetFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldOwnerID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *AssetFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(asset.FieldOwnerID)) +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *CampaignTargetFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(campaigntarget.FieldWorkflowEligibleMarker)) } -// WhereInternalOwner applies the entql string predicate on the internal_owner field. -func (f *AssetFilter) WhereInternalOwner(p entql.StringP) { - f.Where(p.Field(asset.FieldInternalOwner)) +// WhereCampaignID applies the entql string predicate on the campaign_id field. +func (f *CampaignTargetFilter) WhereCampaignID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldCampaignID)) } -// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. -func (f *AssetFilter) WhereInternalOwnerUserID(p entql.StringP) { - f.Where(p.Field(asset.FieldInternalOwnerUserID)) +// WhereContactID applies the entql string predicate on the contact_id field. +func (f *CampaignTargetFilter) WhereContactID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldContactID)) } -// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. -func (f *AssetFilter) WhereInternalOwnerGroupID(p entql.StringP) { - f.Where(p.Field(asset.FieldInternalOwnerGroupID)) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *CampaignTargetFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldUserID)) } -// WhereAssetSubtypeName applies the entql string predicate on the asset_subtype_name field. -func (f *AssetFilter) WhereAssetSubtypeName(p entql.StringP) { - f.Where(p.Field(asset.FieldAssetSubtypeName)) +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *CampaignTargetFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldGroupID)) } -// WhereAssetSubtypeID applies the entql string predicate on the asset_subtype_id field. -func (f *AssetFilter) WhereAssetSubtypeID(p entql.StringP) { - f.Where(p.Field(asset.FieldAssetSubtypeID)) +// WhereEmail applies the entql string predicate on the email field. +func (f *CampaignTargetFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldEmail)) } -// WhereAssetDataClassificationName applies the entql string predicate on the asset_data_classification_name field. -func (f *AssetFilter) WhereAssetDataClassificationName(p entql.StringP) { - f.Where(p.Field(asset.FieldAssetDataClassificationName)) +// WhereFullName applies the entql string predicate on the full_name field. +func (f *CampaignTargetFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldFullName)) } -// WhereAssetDataClassificationID applies the entql string predicate on the asset_data_classification_id field. -func (f *AssetFilter) WhereAssetDataClassificationID(p entql.StringP) { - f.Where(p.Field(asset.FieldAssetDataClassificationID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *CampaignTargetFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(campaigntarget.FieldStatus)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *AssetFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(asset.FieldEnvironmentName)) +// WhereSentAt applies the entql time.Time predicate on the sent_at field. +func (f *CampaignTargetFilter) WhereSentAt(p entql.TimeP) { + f.Where(p.Field(campaigntarget.FieldSentAt)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *AssetFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(asset.FieldEnvironmentID)) +// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. +func (f *CampaignTargetFilter) WhereCompletedAt(p entql.TimeP) { + f.Where(p.Field(campaigntarget.FieldCompletedAt)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *AssetFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(asset.FieldScopeName)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *CampaignTargetFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(campaigntarget.FieldMetadata)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *AssetFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(asset.FieldScopeID)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *CampaignTargetFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereAccessModelName applies the entql string predicate on the access_model_name field. -func (f *AssetFilter) WhereAccessModelName(p entql.StringP) { - f.Where(p.Field(asset.FieldAccessModelName)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAccessModelID applies the entql string predicate on the access_model_id field. -func (f *AssetFilter) WhereAccessModelID(p entql.StringP) { - f.Where(p.Field(asset.FieldAccessModelID)) +// WhereHasCampaign applies a predicate to check if query has an edge campaign. +func (f *CampaignTargetFilter) WhereHasCampaign() { + f.Where(entql.HasEdge("campaign")) } -// WhereEncryptionStatusName applies the entql string predicate on the encryption_status_name field. -func (f *AssetFilter) WhereEncryptionStatusName(p entql.StringP) { - f.Where(p.Field(asset.FieldEncryptionStatusName)) +// WhereHasCampaignWith applies a predicate to check if query has an edge campaign with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasCampaignWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaign", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEncryptionStatusID applies the entql string predicate on the encryption_status_id field. -func (f *AssetFilter) WhereEncryptionStatusID(p entql.StringP) { - f.Where(p.Field(asset.FieldEncryptionStatusID)) +// WhereHasContact applies a predicate to check if query has an edge contact. +func (f *CampaignTargetFilter) WhereHasContact() { + f.Where(entql.HasEdge("contact")) } -// WhereSecurityTierName applies the entql string predicate on the security_tier_name field. -func (f *AssetFilter) WhereSecurityTierName(p entql.StringP) { - f.Where(p.Field(asset.FieldSecurityTierName)) +// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasContactWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSecurityTierID applies the entql string predicate on the security_tier_id field. -func (f *AssetFilter) WhereSecurityTierID(p entql.StringP) { - f.Where(p.Field(asset.FieldSecurityTierID)) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *CampaignTargetFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereCriticalityName applies the entql string predicate on the criticality_name field. -func (f *AssetFilter) WhereCriticalityName(p entql.StringP) { - f.Where(p.Field(asset.FieldCriticalityName)) +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCriticalityID applies the entql string predicate on the criticality_id field. -func (f *AssetFilter) WhereCriticalityID(p entql.StringP) { - f.Where(p.Field(asset.FieldCriticalityID)) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *CampaignTargetFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *AssetFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(asset.FieldSystemOwned)) +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *AssetFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(asset.FieldInternalNotes)) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *CampaignTargetFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *AssetFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(asset.FieldSystemInternalID)) +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *CampaignTargetFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAssetType applies the entql string predicate on the asset_type field. -func (f *AssetFilter) WhereAssetType(p entql.StringP) { - f.Where(p.Field(asset.FieldAssetType)) +// addPredicate implements the predicateAdder interface. +func (_q *CheckResultQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereName applies the entql string predicate on the name field. -func (f *AssetFilter) WhereName(p entql.StringP) { - f.Where(p.Field(asset.FieldName)) +// Filter returns a Filter implementation to apply filters on the CheckResultQuery builder. +func (_q *CheckResultQuery) Filter() *CheckResultFilter { + return &CheckResultFilter{config: _q.config, predicateAdder: _q} } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *AssetFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(asset.FieldDisplayName)) +// addPredicate implements the predicateAdder interface. +func (m *CheckResultMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereDescription applies the entql string predicate on the description field. -func (f *AssetFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(asset.FieldDescription)) +// Filter returns an entql.Where implementation to apply filters on the CheckResultMutation builder. +func (m *CheckResultMutation) Filter() *CheckResultFilter { + return &CheckResultFilter{config: m.config, predicateAdder: m} } -// WhereIdentifier applies the entql string predicate on the identifier field. -func (f *AssetFilter) WhereIdentifier(p entql.StringP) { - f.Where(p.Field(asset.FieldIdentifier)) +// CheckResultFilter provides a generic filtering capability at runtime for CheckResultQuery. +type CheckResultFilter struct { + predicateAdder + config } -// WhereWebsite applies the entql string predicate on the website field. -func (f *AssetFilter) WhereWebsite(p entql.StringP) { - f.Where(p.Field(asset.FieldWebsite)) +// Where applies the entql predicate on the query filter. +func (f *CheckResultFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[7].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WherePhysicalLocation applies the entql string predicate on the physical_location field. -func (f *AssetFilter) WherePhysicalLocation(p entql.StringP) { - f.Where(p.Field(asset.FieldPhysicalLocation)) +// WhereID applies the entql string predicate on the id field. +func (f *CheckResultFilter) WhereID(p entql.StringP) { + f.Where(p.Field(checkresult.FieldID)) } -// WhereRegion applies the entql string predicate on the region field. -func (f *AssetFilter) WhereRegion(p entql.StringP) { - f.Where(p.Field(asset.FieldRegion)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *CheckResultFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(checkresult.FieldCreatedAt)) } -// WhereContainsPii applies the entql bool predicate on the contains_pii field. -func (f *AssetFilter) WhereContainsPii(p entql.BoolP) { - f.Where(p.Field(asset.FieldContainsPii)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *CheckResultFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(checkresult.FieldUpdatedAt)) } -// WhereSourceType applies the entql string predicate on the source_type field. -func (f *AssetFilter) WhereSourceType(p entql.StringP) { - f.Where(p.Field(asset.FieldSourceType)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *CheckResultFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(checkresult.FieldCreatedBy)) } -// WhereSourcePlatformID applies the entql string predicate on the source_platform_id field. -func (f *AssetFilter) WhereSourcePlatformID(p entql.StringP) { - f.Where(p.Field(asset.FieldSourcePlatformID)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *CheckResultFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(checkresult.FieldUpdatedBy)) } -// WhereSourceIdentifier applies the entql string predicate on the source_identifier field. -func (f *AssetFilter) WhereSourceIdentifier(p entql.StringP) { - f.Where(p.Field(asset.FieldSourceIdentifier)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *CheckResultFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(checkresult.FieldDeletedAt)) } -// WhereCostCenter applies the entql string predicate on the cost_center field. -func (f *AssetFilter) WhereCostCenter(p entql.StringP) { - f.Where(p.Field(asset.FieldCostCenter)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *CheckResultFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(checkresult.FieldDeletedBy)) } -// WhereEstimatedMonthlyCost applies the entql float64 predicate on the estimated_monthly_cost field. -func (f *AssetFilter) WhereEstimatedMonthlyCost(p entql.Float64P) { - f.Where(p.Field(asset.FieldEstimatedMonthlyCost)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *CheckResultFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(checkresult.FieldTags)) } -// WherePurchaseDate applies the entql time.Time predicate on the purchase_date field. -func (f *AssetFilter) WherePurchaseDate(p entql.TimeP) { - f.Where(p.Field(asset.FieldPurchaseDate)) +// WhereStatus applies the entql string predicate on the status field. +func (f *CheckResultFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(checkresult.FieldStatus)) } -// WhereCpe applies the entql string predicate on the cpe field. -func (f *AssetFilter) WhereCpe(p entql.StringP) { - f.Where(p.Field(asset.FieldCpe)) +// WhereSource applies the entql string predicate on the source field. +func (f *CheckResultFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(checkresult.FieldSource)) } -// WhereCategories applies the entql json.RawMessage predicate on the categories field. -func (f *AssetFilter) WhereCategories(p entql.BytesP) { - f.Where(p.Field(asset.FieldCategories)) +// WhereLastObservedAt applies the entql time.Time predicate on the last_observed_at field. +func (f *CheckResultFilter) WhereLastObservedAt(p entql.TimeP) { + f.Where(p.Field(checkresult.FieldLastObservedAt)) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *AssetFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(asset.FieldIntegrationID)) +// WhereExternalURI applies the entql string predicate on the external_uri field. +func (f *CheckResultFilter) WhereExternalURI(p entql.StringP) { + f.Where(p.Field(checkresult.FieldExternalURI)) } - -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *AssetFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(asset.FieldObservedAt)) + +// WhereDetails applies the entql string predicate on the details field. +func (f *CheckResultFilter) WhereDetails(p entql.StringP) { + f.Where(p.Field(checkresult.FieldDetails)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *AssetFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereParentExternalID applies the entql string predicate on the parent_external_id field. +func (f *CheckResultFilter) WhereParentExternalID(p entql.StringP) { + f.Where(p.Field(checkresult.FieldParentExternalID)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *AssetFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *CheckResultFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(checkresult.FieldIntegrationID)) } // WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *AssetFilter) WhereHasBlockedGroups() { +func (f *CheckResultFilter) WhereHasBlockedGroups() { f.Where(entql.HasEdge("blocked_groups")) } // WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *AssetFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { +func (f *CheckResultFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -19075,12 +20939,12 @@ func (f *AssetFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { } // WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *AssetFilter) WhereHasEditors() { +func (f *CheckResultFilter) WhereHasEditors() { f.Where(entql.HasEdge("editors")) } // WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *AssetFilter) WhereHasEditorsWith(preds ...predicate.Group) { +func (f *CheckResultFilter) WhereHasEditorsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -19089,12 +20953,12 @@ func (f *AssetFilter) WhereHasEditorsWith(preds ...predicate.Group) { } // WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *AssetFilter) WhereHasViewers() { +func (f *CheckResultFilter) WhereHasViewers() { f.Where(entql.HasEdge("viewers")) } // WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *AssetFilter) WhereHasViewersWith(preds ...predicate.Group) { +func (f *CheckResultFilter) WhereHasViewersWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -19102,308 +20966,242 @@ func (f *AssetFilter) WhereHasViewersWith(preds ...predicate.Group) { }))) } -// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. -func (f *AssetFilter) WhereHasInternalOwnerUser() { - f.Where(entql.HasEdge("internal_owner_user")) -} - -// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). -func (f *AssetFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. -func (f *AssetFilter) WhereHasInternalOwnerGroup() { - f.Where(entql.HasEdge("internal_owner_group")) -} - -// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). -func (f *AssetFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasAssetSubtype applies a predicate to check if query has an edge asset_subtype. -func (f *AssetFilter) WhereHasAssetSubtype() { - f.Where(entql.HasEdge("asset_subtype")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *CheckResultFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasAssetSubtypeWith applies a predicate to check if query has an edge asset_subtype with a given conditions (other predicates). -func (f *AssetFilter) WhereHasAssetSubtypeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("asset_subtype", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *CheckResultFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssetDataClassification applies a predicate to check if query has an edge asset_data_classification. -func (f *AssetFilter) WhereHasAssetDataClassification() { - f.Where(entql.HasEdge("asset_data_classification")) +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *CheckResultFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) } -// WhereHasAssetDataClassificationWith applies a predicate to check if query has an edge asset_data_classification with a given conditions (other predicates). -func (f *AssetFilter) WhereHasAssetDataClassificationWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("asset_data_classification", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *CheckResultFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *AssetFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *CheckResultFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *AssetFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *CheckResultFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *AssetFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// addPredicate implements the predicateAdder interface. +func (_q *ContactQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *AssetFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the ContactQuery builder. +func (_q *ContactQuery) Filter() *ContactFilter { + return &ContactFilter{config: _q.config, predicateAdder: _q} } -// WhereHasAccessModel applies a predicate to check if query has an edge access_model. -func (f *AssetFilter) WhereHasAccessModel() { - f.Where(entql.HasEdge("access_model")) +// addPredicate implements the predicateAdder interface. +func (m *ContactMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasAccessModelWith applies a predicate to check if query has an edge access_model with a given conditions (other predicates). -func (f *AssetFilter) WhereHasAccessModelWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("access_model", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the ContactMutation builder. +func (m *ContactMutation) Filter() *ContactFilter { + return &ContactFilter{config: m.config, predicateAdder: m} } -// WhereHasEncryptionStatus applies a predicate to check if query has an edge encryption_status. -func (f *AssetFilter) WhereHasEncryptionStatus() { - f.Where(entql.HasEdge("encryption_status")) +// ContactFilter provides a generic filtering capability at runtime for ContactQuery. +type ContactFilter struct { + predicateAdder + config } -// WhereHasEncryptionStatusWith applies a predicate to check if query has an edge encryption_status with a given conditions (other predicates). -func (f *AssetFilter) WhereHasEncryptionStatusWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("encryption_status", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *ContactFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasSecurityTier applies a predicate to check if query has an edge security_tier. -func (f *AssetFilter) WhereHasSecurityTier() { - f.Where(entql.HasEdge("security_tier")) +// WhereID applies the entql string predicate on the id field. +func (f *ContactFilter) WhereID(p entql.StringP) { + f.Where(p.Field(contact.FieldID)) } -// WhereHasSecurityTierWith applies a predicate to check if query has an edge security_tier with a given conditions (other predicates). -func (f *AssetFilter) WhereHasSecurityTierWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("security_tier", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *ContactFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldCreatedAt)) } -// WhereHasCriticality applies a predicate to check if query has an edge criticality. -func (f *AssetFilter) WhereHasCriticality() { - f.Where(entql.HasEdge("criticality")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *ContactFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldUpdatedAt)) } -// WhereHasCriticalityWith applies a predicate to check if query has an edge criticality with a given conditions (other predicates). -func (f *AssetFilter) WhereHasCriticalityWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("criticality", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *ContactFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldCreatedBy)) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *AssetFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *ContactFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldUpdatedBy)) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *AssetFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *ContactFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldDeletedAt)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *AssetFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *ContactFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldDeletedBy)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *AssetFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ContactFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(contact.FieldTags)) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *AssetFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *ContactFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(contact.FieldOwnerID)) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *AssetFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereFullName applies the entql string predicate on the full_name field. +func (f *ContactFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(contact.FieldFullName)) } -// WhereHasOutOfScopePlatforms applies a predicate to check if query has an edge out_of_scope_platforms. -func (f *AssetFilter) WhereHasOutOfScopePlatforms() { - f.Where(entql.HasEdge("out_of_scope_platforms")) +// WhereTitle applies the entql string predicate on the title field. +func (f *ContactFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(contact.FieldTitle)) } -// WhereHasOutOfScopePlatformsWith applies a predicate to check if query has an edge out_of_scope_platforms with a given conditions (other predicates). -func (f *AssetFilter) WhereHasOutOfScopePlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("out_of_scope_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCompany applies the entql string predicate on the company field. +func (f *ContactFilter) WhereCompany(p entql.StringP) { + f.Where(p.Field(contact.FieldCompany)) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *AssetFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// WhereEmail applies the entql string predicate on the email field. +func (f *ContactFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(contact.FieldEmail)) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *AssetFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WherePhoneNumber applies the entql string predicate on the phone_number field. +func (f *ContactFilter) WherePhoneNumber(p entql.StringP) { + f.Where(p.Field(contact.FieldPhoneNumber)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *AssetFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereAddress applies the entql string predicate on the address field. +func (f *ContactFilter) WhereAddress(p entql.StringP) { + f.Where(p.Field(contact.FieldAddress)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *AssetFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStatus applies the entql string predicate on the status field. +func (f *ContactFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(contact.FieldStatus)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *AssetFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *ContactFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(contact.FieldExternalID)) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *AssetFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *ContactFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(contact.FieldIntegrationID)) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *AssetFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *ContactFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldObservedAt)) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *AssetFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ContactFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ContactFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSourcePlatform applies a predicate to check if query has an edge source_platform. -func (f *AssetFilter) WhereHasSourcePlatform() { - f.Where(entql.HasEdge("source_platform")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *ContactFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasSourcePlatformWith applies a predicate to check if query has an edge source_platform with a given conditions (other predicates). -func (f *AssetFilter) WhereHasSourcePlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("source_platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *ContactFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *AssetFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *ContactFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *AssetFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *ContactFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasConnectedAssets applies a predicate to check if query has an edge connected_assets. -func (f *AssetFilter) WhereHasConnectedAssets() { - f.Where(entql.HasEdge("connected_assets")) +// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. +func (f *ContactFilter) WhereHasCampaignTargets() { + f.Where(entql.HasEdge("campaign_targets")) } -// WhereHasConnectedAssetsWith applies a predicate to check if query has an edge connected_assets with a given conditions (other predicates). -func (f *AssetFilter) WhereHasConnectedAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("connected_assets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). +func (f *ContactFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { + f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasConnectedFrom applies a predicate to check if query has an edge connected_from. -func (f *AssetFilter) WhereHasConnectedFrom() { - f.Where(entql.HasEdge("connected_from")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *ContactFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasConnectedFromWith applies a predicate to check if query has an edge connected_from with a given conditions (other predicates). -func (f *AssetFilter) WhereHasConnectedFromWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("connected_from", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -19411,705 +21209,808 @@ func (f *AssetFilter) WhereHasConnectedFromWith(preds ...predicate.Asset) { } // addPredicate implements the predicateAdder interface. -func (_q *CampaignQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *ControlQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the CampaignQuery builder. -func (_q *CampaignQuery) Filter() *CampaignFilter { - return &CampaignFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the ControlQuery builder. +func (_q *ControlQuery) Filter() *ControlFilter { + return &ControlFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *CampaignMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the CampaignMutation builder. -func (m *CampaignMutation) Filter() *CampaignFilter { - return &CampaignFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlMutation builder. +func (m *ControlMutation) Filter() *ControlFilter { + return &ControlFilter{config: m.config, predicateAdder: m} } -// CampaignFilter provides a generic filtering capability at runtime for CampaignQuery. -type CampaignFilter struct { +// ControlFilter provides a generic filtering capability at runtime for ControlQuery. +type ControlFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *CampaignFilter) Where(p entql.P) { +func (f *ControlFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[5].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[9].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *CampaignFilter) WhereID(p entql.StringP) { - f.Where(p.Field(campaign.FieldID)) +func (f *ControlFilter) WhereID(p entql.StringP) { + f.Where(p.Field(control.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *CampaignFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldCreatedAt)) +func (f *ControlFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *CampaignFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldUpdatedAt)) +func (f *ControlFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *CampaignFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(campaign.FieldCreatedBy)) +func (f *ControlFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(control.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *CampaignFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(campaign.FieldUpdatedBy)) +func (f *ControlFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(control.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *CampaignFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldDeletedAt)) +func (f *ControlFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *CampaignFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(campaign.FieldDeletedBy)) +func (f *ControlFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(control.FieldDeletedBy)) } // WhereDisplayID applies the entql string predicate on the display_id field. -func (f *CampaignFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(campaign.FieldDisplayID)) +func (f *ControlFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(control.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *CampaignFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(campaign.FieldTags)) +func (f *ControlFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(control.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *CampaignFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(campaign.FieldOwnerID)) +// WhereExternalUUID applies the entql string predicate on the external_uuid field. +func (f *ControlFilter) WhereExternalUUID(p entql.StringP) { + f.Where(p.Field(control.FieldExternalUUID)) } -// WhereInternalOwner applies the entql string predicate on the internal_owner field. -func (f *CampaignFilter) WhereInternalOwner(p entql.StringP) { - f.Where(p.Field(campaign.FieldInternalOwner)) +// WhereTitle applies the entql string predicate on the title field. +func (f *ControlFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(control.FieldTitle)) } -// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. -func (f *CampaignFilter) WhereInternalOwnerUserID(p entql.StringP) { - f.Where(p.Field(campaign.FieldInternalOwnerUserID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ControlFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(control.FieldDescription)) } -// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. -func (f *CampaignFilter) WhereInternalOwnerGroupID(p entql.StringP) { - f.Where(p.Field(campaign.FieldInternalOwnerGroupID)) +// WhereDescriptionJSON applies the entql json.RawMessage predicate on the description_json field. +func (f *ControlFilter) WhereDescriptionJSON(p entql.BytesP) { + f.Where(p.Field(control.FieldDescriptionJSON)) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *CampaignFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(campaign.FieldWorkflowEligibleMarker)) +// WhereAliases applies the entql json.RawMessage predicate on the aliases field. +func (f *ControlFilter) WhereAliases(p entql.BytesP) { + f.Where(p.Field(control.FieldAliases)) } -// WhereName applies the entql string predicate on the name field. -func (f *CampaignFilter) WhereName(p entql.StringP) { - f.Where(p.Field(campaign.FieldName)) +// WhereReferenceID applies the entql string predicate on the reference_id field. +func (f *ControlFilter) WhereReferenceID(p entql.StringP) { + f.Where(p.Field(control.FieldReferenceID)) +} + +// WhereAuditorReferenceID applies the entql string predicate on the auditor_reference_id field. +func (f *ControlFilter) WhereAuditorReferenceID(p entql.StringP) { + f.Where(p.Field(control.FieldAuditorReferenceID)) +} + +// WhereResponsiblePartyID applies the entql string predicate on the responsible_party_id field. +func (f *ControlFilter) WhereResponsiblePartyID(p entql.StringP) { + f.Where(p.Field(control.FieldResponsiblePartyID)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(control.FieldStatus)) +} + +// WhereImplementationStatus applies the entql string predicate on the implementation_status field. +func (f *ControlFilter) WhereImplementationStatus(p entql.StringP) { + f.Where(p.Field(control.FieldImplementationStatus)) +} + +// WhereImplementationDescription applies the entql string predicate on the implementation_description field. +func (f *ControlFilter) WhereImplementationDescription(p entql.StringP) { + f.Where(p.Field(control.FieldImplementationDescription)) +} + +// WherePublicRepresentation applies the entql string predicate on the public_representation field. +func (f *ControlFilter) WherePublicRepresentation(p entql.StringP) { + f.Where(p.Field(control.FieldPublicRepresentation)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *ControlFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(control.FieldSource)) +} + +// WhereSourceName applies the entql string predicate on the source_name field. +func (f *ControlFilter) WhereSourceName(p entql.StringP) { + f.Where(p.Field(control.FieldSourceName)) +} + +// WhereReferenceFramework applies the entql string predicate on the reference_framework field. +func (f *ControlFilter) WhereReferenceFramework(p entql.StringP) { + f.Where(p.Field(control.FieldReferenceFramework)) +} + +// WhereReferenceFrameworkRevision applies the entql string predicate on the reference_framework_revision field. +func (f *ControlFilter) WhereReferenceFrameworkRevision(p entql.StringP) { + f.Where(p.Field(control.FieldReferenceFrameworkRevision)) +} + +// WhereCategory applies the entql string predicate on the category field. +func (f *ControlFilter) WhereCategory(p entql.StringP) { + f.Where(p.Field(control.FieldCategory)) +} + +// WhereCategoryID applies the entql string predicate on the category_id field. +func (f *ControlFilter) WhereCategoryID(p entql.StringP) { + f.Where(p.Field(control.FieldCategoryID)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *CampaignFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(campaign.FieldDescription)) +// WhereSubcategory applies the entql string predicate on the subcategory field. +func (f *ControlFilter) WhereSubcategory(p entql.StringP) { + f.Where(p.Field(control.FieldSubcategory)) } -// WhereCampaignType applies the entql string predicate on the campaign_type field. -func (f *CampaignFilter) WhereCampaignType(p entql.StringP) { - f.Where(p.Field(campaign.FieldCampaignType)) +// WhereMappedCategories applies the entql json.RawMessage predicate on the mapped_categories field. +func (f *ControlFilter) WhereMappedCategories(p entql.BytesP) { + f.Where(p.Field(control.FieldMappedCategories)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *CampaignFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(campaign.FieldStatus)) +// WhereAssessmentObjectives applies the entql json.RawMessage predicate on the assessment_objectives field. +func (f *ControlFilter) WhereAssessmentObjectives(p entql.BytesP) { + f.Where(p.Field(control.FieldAssessmentObjectives)) } -// WhereIsActive applies the entql bool predicate on the is_active field. -func (f *CampaignFilter) WhereIsActive(p entql.BoolP) { - f.Where(p.Field(campaign.FieldIsActive)) +// WhereAssessmentMethods applies the entql json.RawMessage predicate on the assessment_methods field. +func (f *ControlFilter) WhereAssessmentMethods(p entql.BytesP) { + f.Where(p.Field(control.FieldAssessmentMethods)) } -// WhereScheduledAt applies the entql time.Time predicate on the scheduled_at field. -func (f *CampaignFilter) WhereScheduledAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldScheduledAt)) +// WhereControlQuestions applies the entql json.RawMessage predicate on the control_questions field. +func (f *ControlFilter) WhereControlQuestions(p entql.BytesP) { + f.Where(p.Field(control.FieldControlQuestions)) } -// WhereLaunchedAt applies the entql time.Time predicate on the launched_at field. -func (f *CampaignFilter) WhereLaunchedAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldLaunchedAt)) +// WhereImplementationGuidance applies the entql json.RawMessage predicate on the implementation_guidance field. +func (f *ControlFilter) WhereImplementationGuidance(p entql.BytesP) { + f.Where(p.Field(control.FieldImplementationGuidance)) } -// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. -func (f *CampaignFilter) WhereCompletedAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldCompletedAt)) +// WhereExampleEvidence applies the entql json.RawMessage predicate on the example_evidence field. +func (f *ControlFilter) WhereExampleEvidence(p entql.BytesP) { + f.Where(p.Field(control.FieldExampleEvidence)) } -// WhereDueDate applies the entql time.Time predicate on the due_date field. -func (f *CampaignFilter) WhereDueDate(p entql.TimeP) { - f.Where(p.Field(campaign.FieldDueDate)) +// WhereReferences applies the entql json.RawMessage predicate on the references field. +func (f *ControlFilter) WhereReferences(p entql.BytesP) { + f.Where(p.Field(control.FieldReferences)) } -// WhereIsRecurring applies the entql bool predicate on the is_recurring field. -func (f *CampaignFilter) WhereIsRecurring(p entql.BoolP) { - f.Where(p.Field(campaign.FieldIsRecurring)) +// WhereTestingProcedures applies the entql json.RawMessage predicate on the testing_procedures field. +func (f *ControlFilter) WhereTestingProcedures(p entql.BytesP) { + f.Where(p.Field(control.FieldTestingProcedures)) } -// WhereRecurrenceFrequency applies the entql string predicate on the recurrence_frequency field. -func (f *CampaignFilter) WhereRecurrenceFrequency(p entql.StringP) { - f.Where(p.Field(campaign.FieldRecurrenceFrequency)) +// WhereEvidenceRequests applies the entql json.RawMessage predicate on the evidence_requests field. +func (f *ControlFilter) WhereEvidenceRequests(p entql.BytesP) { + f.Where(p.Field(control.FieldEvidenceRequests)) } -// WhereRecurrenceInterval applies the entql int predicate on the recurrence_interval field. -func (f *CampaignFilter) WhereRecurrenceInterval(p entql.IntP) { - f.Where(p.Field(campaign.FieldRecurrenceInterval)) +// WhereControlOwnerID applies the entql string predicate on the control_owner_id field. +func (f *ControlFilter) WhereControlOwnerID(p entql.StringP) { + f.Where(p.Field(control.FieldControlOwnerID)) } -// WhereRecurrenceTimezone applies the entql string predicate on the recurrence_timezone field. -func (f *CampaignFilter) WhereRecurrenceTimezone(p entql.StringP) { - f.Where(p.Field(campaign.FieldRecurrenceTimezone)) +// WhereDelegateID applies the entql string predicate on the delegate_id field. +func (f *ControlFilter) WhereDelegateID(p entql.StringP) { + f.Where(p.Field(control.FieldDelegateID)) } -// WhereRecurrenceCron applies the entql string predicate on the recurrence_cron field. -func (f *CampaignFilter) WhereRecurrenceCron(p entql.StringP) { - f.Where(p.Field(campaign.FieldRecurrenceCron)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *ControlFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(control.FieldOwnerID)) } -// WhereLastRunAt applies the entql time.Time predicate on the last_run_at field. -func (f *CampaignFilter) WhereLastRunAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldLastRunAt)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *ControlFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(control.FieldSystemOwned)) } -// WhereNextRunAt applies the entql time.Time predicate on the next_run_at field. -func (f *CampaignFilter) WhereNextRunAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldNextRunAt)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *ControlFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(control.FieldInternalNotes)) } -// WhereRecurrenceEndAt applies the entql time.Time predicate on the recurrence_end_at field. -func (f *CampaignFilter) WhereRecurrenceEndAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldRecurrenceEndAt)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *ControlFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(control.FieldSystemInternalID)) } -// WhereRecipientCount applies the entql int predicate on the recipient_count field. -func (f *CampaignFilter) WhereRecipientCount(p entql.IntP) { - f.Where(p.Field(campaign.FieldRecipientCount)) +// WhereControlKindName applies the entql string predicate on the control_kind_name field. +func (f *ControlFilter) WhereControlKindName(p entql.StringP) { + f.Where(p.Field(control.FieldControlKindName)) } -// WhereResendCount applies the entql int predicate on the resend_count field. -func (f *CampaignFilter) WhereResendCount(p entql.IntP) { - f.Where(p.Field(campaign.FieldResendCount)) +// WhereControlKindID applies the entql string predicate on the control_kind_id field. +func (f *ControlFilter) WhereControlKindID(p entql.StringP) { + f.Where(p.Field(control.FieldControlKindID)) } -// WhereLastResentAt applies the entql time.Time predicate on the last_resent_at field. -func (f *CampaignFilter) WhereLastResentAt(p entql.TimeP) { - f.Where(p.Field(campaign.FieldLastResentAt)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *ControlFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(control.FieldEnvironmentName)) } -// WhereEntityID applies the entql string predicate on the entity_id field. -func (f *CampaignFilter) WhereEntityID(p entql.StringP) { - f.Where(p.Field(campaign.FieldEntityID)) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *ControlFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(control.FieldEnvironmentID)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *CampaignFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(campaign.FieldTemplateID)) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *ControlFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(control.FieldScopeName)) } -// WhereAssessmentID applies the entql string predicate on the assessment_id field. -func (f *CampaignFilter) WhereAssessmentID(p entql.StringP) { - f.Where(p.Field(campaign.FieldAssessmentID)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *ControlFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(control.FieldScopeID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *CampaignFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(campaign.FieldMetadata)) +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *ControlFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(control.FieldWorkflowEligibleMarker)) } -// WhereEmailTemplateID applies the entql string predicate on the email_template_id field. -func (f *CampaignFilter) WhereEmailTemplateID(p entql.StringP) { - f.Where(p.Field(campaign.FieldEmailTemplateID)) +// WhereRefCode applies the entql string predicate on the ref_code field. +func (f *ControlFilter) WhereRefCode(p entql.StringP) { + f.Where(p.Field(control.FieldRefCode)) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *CampaignFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(campaign.FieldIntegrationID)) +// WhereStandardID applies the entql string predicate on the standard_id field. +func (f *ControlFilter) WhereStandardID(p entql.StringP) { + f.Where(p.Field(control.FieldStandardID)) } -// WhereEmailBrandingID applies the entql string predicate on the email_branding_id field. -func (f *CampaignFilter) WhereEmailBrandingID(p entql.StringP) { - f.Where(p.Field(campaign.FieldEmailBrandingID)) +// WhereTrustCenterVisibility applies the entql string predicate on the trust_center_visibility field. +func (f *ControlFilter) WhereTrustCenterVisibility(p entql.StringP) { + f.Where(p.Field(control.FieldTrustCenterVisibility)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *CampaignFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereIsTrustCenterControl applies the entql bool predicate on the is_trust_center_control field. +func (f *ControlFilter) WhereIsTrustCenterControl(p entql.BoolP) { + f.Where(p.Field(control.FieldIsTrustCenterControl)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEvidence applies a predicate to check if query has an edge evidence. +func (f *ControlFilter) WhereHasEvidence() { + f.Where(entql.HasEdge("evidence")) +} + +// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). +func (f *ControlFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { + f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *CampaignFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. +func (f *ControlFilter) WhereHasControlObjectives() { + f.Where(entql.HasEdge("control_objectives")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *CampaignFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *ControlFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *ControlFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *CampaignFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *ControlFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *ControlFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. -func (f *CampaignFilter) WhereHasInternalOwnerUser() { - f.Where(entql.HasEdge("internal_owner_user")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ControlFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ControlFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. -func (f *CampaignFilter) WhereHasInternalOwnerGroup() { - f.Where(entql.HasEdge("internal_owner_group")) +// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. +func (f *ControlFilter) WhereHasActionPlans() { + f.Where(entql.HasEdge("action_plans")) } -// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). +func (f *ControlFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessment applies a predicate to check if query has an edge assessment. -func (f *CampaignFilter) WhereHasAssessment() { - f.Where(entql.HasEdge("assessment")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *ControlFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasAssessmentWith applies a predicate to check if query has an edge assessment with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasAssessmentWith(preds ...predicate.Assessment) { - f.Where(entql.HasEdgeWith("assessment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *ControlFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *CampaignFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) -} - -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *ControlFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) +} + +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *ControlFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *CampaignFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasComments applies a predicate to check if query has an edge comments. +func (f *ControlFilter) WhereHasComments() { + f.Where(entql.HasEdge("comments")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). +func (f *ControlFilter) WhereHasCommentsWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEmailTemplate applies a predicate to check if query has an edge email_template. -func (f *CampaignFilter) WhereHasEmailTemplate() { - f.Where(entql.HasEdge("email_template")) +// WhereHasDiscussions applies a predicate to check if query has an edge discussions. +func (f *ControlFilter) WhereHasDiscussions() { + f.Where(entql.HasEdge("discussions")) } -// WhereHasEmailTemplateWith applies a predicate to check if query has an edge email_template with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasEmailTemplateWith(preds ...predicate.EmailTemplate) { - f.Where(entql.HasEdgeWith("email_template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDiscussionsWith applies a predicate to check if query has an edge discussions with a given conditions (other predicates). +func (f *ControlFilter) WhereHasDiscussionsWith(preds ...predicate.Discussion) { + f.Where(entql.HasEdgeWith("discussions", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *CampaignFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// WhereHasControlOwner applies a predicate to check if query has an edge control_owner. +func (f *ControlFilter) WhereHasControlOwner() { + f.Where(entql.HasEdge("control_owner")) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlOwnerWith applies a predicate to check if query has an edge control_owner with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlOwnerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("control_owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. -func (f *CampaignFilter) WhereHasCampaignTargets() { - f.Where(entql.HasEdge("campaign_targets")) +// WhereHasDelegate applies a predicate to check if query has an edge delegate. +func (f *ControlFilter) WhereHasDelegate() { + f.Where(entql.HasEdge("delegate")) } -// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { - f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). +func (f *ControlFilter) WhereHasDelegateWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. -func (f *CampaignFilter) WhereHasAssessmentResponses() { - f.Where(entql.HasEdge("assessment_responses")) +// WhereHasResponsibleParty applies a predicate to check if query has an edge responsible_party. +func (f *ControlFilter) WhereHasResponsibleParty() { + f.Where(entql.HasEdge("responsible_party")) } -// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { - f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasResponsiblePartyWith applies a predicate to check if query has an edge responsible_party with a given conditions (other predicates). +func (f *ControlFilter) WhereHasResponsiblePartyWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("responsible_party", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasContacts applies a predicate to check if query has an edge contacts. -func (f *CampaignFilter) WhereHasContacts() { - f.Where(entql.HasEdge("contacts")) +// WhereHasReviews applies a predicate to check if query has an edge reviews. +func (f *ControlFilter) WhereHasReviews() { + f.Where(entql.HasEdge("reviews")) } -// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasContactsWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). +func (f *ControlFilter) WhereHasReviewsWith(preds ...predicate.Review) { + f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUsers applies a predicate to check if query has an edge users. -func (f *CampaignFilter) WhereHasUsers() { - f.Where(entql.HasEdge("users")) +// WhereHasRemediations applies a predicate to check if query has an edge remediations. +func (f *ControlFilter) WhereHasRemediations() { + f.Where(entql.HasEdge("remediations")) } -// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasUsersWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). +func (f *ControlFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { + f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *CampaignFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *ControlFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) } -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *ControlFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *CampaignFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ControlFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ControlFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *CampaignFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *ControlFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *ControlFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *CampaignFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *ControlFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *CampaignFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *ControlFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *CampaignTargetQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasControlKind applies a predicate to check if query has an edge control_kind. +func (f *ControlFilter) WhereHasControlKind() { + f.Where(entql.HasEdge("control_kind")) } -// Filter returns a Filter implementation to apply filters on the CampaignTargetQuery builder. -func (_q *CampaignTargetQuery) Filter() *CampaignTargetFilter { - return &CampaignTargetFilter{config: _q.config, predicateAdder: _q} +// WhereHasControlKindWith applies a predicate to check if query has an edge control_kind with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlKindWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("control_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *CampaignTargetMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *ControlFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// Filter returns an entql.Where implementation to apply filters on the CampaignTargetMutation builder. -func (m *CampaignTargetMutation) Filter() *CampaignTargetFilter { - return &CampaignTargetFilter{config: m.config, predicateAdder: m} +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *ControlFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// CampaignTargetFilter provides a generic filtering capability at runtime for CampaignTargetQuery. -type CampaignTargetFilter struct { - predicateAdder - config +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *ControlFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// Where applies the entql predicate on the query filter. -func (f *CampaignTargetFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[6].Type, p, s); err != nil { - s.AddError(err) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *ControlFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *CampaignTargetFilter) WhereID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldID)) + }))) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *CampaignTargetFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(campaigntarget.FieldCreatedAt)) +// WhereHasStandard applies a predicate to check if query has an edge standard. +func (f *ControlFilter) WhereHasStandard() { + f.Where(entql.HasEdge("standard")) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *CampaignTargetFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(campaigntarget.FieldUpdatedAt)) +// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). +func (f *ControlFilter) WhereHasStandardWith(preds ...predicate.Standard) { + f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *CampaignTargetFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldCreatedBy)) +// WhereHasCheckResults applies a predicate to check if query has an edge check_results. +func (f *ControlFilter) WhereHasCheckResults() { + f.Where(entql.HasEdge("check_results")) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *CampaignTargetFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldUpdatedBy)) +// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). +func (f *ControlFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { + f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *CampaignTargetFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(campaigntarget.FieldDeletedAt)) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *ControlFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *CampaignTargetFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldDeletedBy)) +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *ControlFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *CampaignTargetFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldOwnerID)) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *ControlFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *CampaignTargetFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(campaigntarget.FieldWorkflowEligibleMarker)) +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *ControlFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCampaignID applies the entql string predicate on the campaign_id field. -func (f *CampaignTargetFilter) WhereCampaignID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldCampaignID)) +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *ControlFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereContactID applies the entql string predicate on the contact_id field. -func (f *CampaignTargetFilter) WhereContactID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldContactID)) +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *ControlFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *CampaignTargetFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldUserID)) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *ControlFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *CampaignTargetFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldGroupID)) +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *ControlFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmail applies the entql string predicate on the email field. -func (f *CampaignTargetFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldEmail)) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *ControlFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereFullName applies the entql string predicate on the full_name field. -func (f *CampaignTargetFilter) WhereFullName(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldFullName)) +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *ControlFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStatus applies the entql string predicate on the status field. -func (f *CampaignTargetFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(campaigntarget.FieldStatus)) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *ControlFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereSentAt applies the entql time.Time predicate on the sent_at field. -func (f *CampaignTargetFilter) WhereSentAt(p entql.TimeP) { - f.Where(p.Field(campaigntarget.FieldSentAt)) +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *ControlFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. -func (f *CampaignTargetFilter) WhereCompletedAt(p entql.TimeP) { - f.Where(p.Field(campaigntarget.FieldCompletedAt)) +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *ControlFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *CampaignTargetFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(campaigntarget.FieldMetadata)) +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *ControlFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *CampaignTargetFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. +func (f *ControlFilter) WhereHasControlImplementations() { + f.Where(entql.HasEdge("control_implementations")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaign applies a predicate to check if query has an edge campaign. -func (f *CampaignTargetFilter) WhereHasCampaign() { - f.Where(entql.HasEdge("campaign")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *ControlFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasCampaignWith applies a predicate to check if query has an edge campaign with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasCampaignWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaign", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *ControlFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasContact applies a predicate to check if query has an edge contact. -func (f *CampaignTargetFilter) WhereHasContact() { - f.Where(entql.HasEdge("contact")) +// WhereHasScheduledJobs applies a predicate to check if query has an edge scheduled_jobs. +func (f *ControlFilter) WhereHasScheduledJobs() { + f.Where(entql.HasEdge("scheduled_jobs")) } -// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasContactWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScheduledJobsWith applies a predicate to check if query has an edge scheduled_jobs with a given conditions (other predicates). +func (f *ControlFilter) WhereHasScheduledJobsWith(preds ...predicate.ScheduledJob) { + f.Where(entql.HasEdgeWith("scheduled_jobs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *CampaignTargetFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereHasMappedToControls applies a predicate to check if query has an edge mapped_to_controls. +func (f *ControlFilter) WhereHasMappedToControls() { + f.Where(entql.HasEdge("mapped_to_controls")) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMappedToControlsWith applies a predicate to check if query has an edge mapped_to_controls with a given conditions (other predicates). +func (f *ControlFilter) WhereHasMappedToControlsWith(preds ...predicate.MappedControl) { + f.Where(entql.HasEdgeWith("mapped_to_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *CampaignTargetFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereHasMappedFromControls applies a predicate to check if query has an edge mapped_from_controls. +func (f *ControlFilter) WhereHasMappedFromControls() { + f.Where(entql.HasEdge("mapped_from_controls")) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMappedFromControlsWith applies a predicate to check if query has an edge mapped_from_controls with a given conditions (other predicates). +func (f *ControlFilter) WhereHasMappedFromControlsWith(preds ...predicate.MappedControl) { + f.Where(entql.HasEdgeWith("mapped_from_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -20117,12 +22018,12 @@ func (f *CampaignTargetFilter) WhereHasGroupWith(preds ...predicate.Group) { } // WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *CampaignTargetFilter) WhereHasWorkflowObjectRefs() { +func (f *ControlFilter) WhereHasWorkflowObjectRefs() { f.Where(entql.HasEdge("workflow_object_refs")) } // WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *CampaignTargetFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { +func (f *ControlFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20130,123 +22031,166 @@ func (f *CampaignTargetFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate }))) } +// WhereHasControlMappings applies a predicate to check if query has an edge control_mappings. +func (f *ControlFilter) WhereHasControlMappings() { + f.Where(entql.HasEdge("control_mappings")) +} + +// WhereHasControlMappingsWith applies a predicate to check if query has an edge control_mappings with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlMappingsWith(preds ...predicate.FindingControl) { + f.Where(entql.HasEdgeWith("control_mappings", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // addPredicate implements the predicateAdder interface. -func (_q *CheckResultQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *ControlImplementationQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the CheckResultQuery builder. -func (_q *CheckResultQuery) Filter() *CheckResultFilter { - return &CheckResultFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the ControlImplementationQuery builder. +func (_q *ControlImplementationQuery) Filter() *ControlImplementationFilter { + return &ControlImplementationFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *CheckResultMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlImplementationMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the CheckResultMutation builder. -func (m *CheckResultMutation) Filter() *CheckResultFilter { - return &CheckResultFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlImplementationMutation builder. +func (m *ControlImplementationMutation) Filter() *ControlImplementationFilter { + return &ControlImplementationFilter{config: m.config, predicateAdder: m} } -// CheckResultFilter provides a generic filtering capability at runtime for CheckResultQuery. -type CheckResultFilter struct { +// ControlImplementationFilter provides a generic filtering capability at runtime for ControlImplementationQuery. +type ControlImplementationFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *CheckResultFilter) Where(p entql.P) { +func (f *ControlImplementationFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[7].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[10].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *CheckResultFilter) WhereID(p entql.StringP) { - f.Where(p.Field(checkresult.FieldID)) +func (f *ControlImplementationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *CheckResultFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(checkresult.FieldCreatedAt)) +func (f *ControlImplementationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(controlimplementation.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *CheckResultFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(checkresult.FieldUpdatedAt)) +func (f *ControlImplementationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(controlimplementation.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *CheckResultFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(checkresult.FieldCreatedBy)) +func (f *ControlImplementationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *CheckResultFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(checkresult.FieldUpdatedBy)) +func (f *ControlImplementationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *CheckResultFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(checkresult.FieldDeletedAt)) +func (f *ControlImplementationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(controlimplementation.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *CheckResultFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(checkresult.FieldDeletedBy)) +func (f *ControlImplementationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *CheckResultFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(checkresult.FieldTags)) +func (f *ControlImplementationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(controlimplementation.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *ControlImplementationFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldOwnerID)) +} + +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *ControlImplementationFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(controlimplementation.FieldSystemOwned)) +} + +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *ControlImplementationFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldInternalNotes)) +} + +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *ControlImplementationFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldSystemInternalID)) } // WhereStatus applies the entql string predicate on the status field. -func (f *CheckResultFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(checkresult.FieldStatus)) +func (f *ControlImplementationFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldStatus)) } -// WhereSource applies the entql string predicate on the source field. -func (f *CheckResultFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(checkresult.FieldSource)) +// WhereImplementationDate applies the entql time.Time predicate on the implementation_date field. +func (f *ControlImplementationFilter) WhereImplementationDate(p entql.TimeP) { + f.Where(p.Field(controlimplementation.FieldImplementationDate)) } -// WhereLastObservedAt applies the entql time.Time predicate on the last_observed_at field. -func (f *CheckResultFilter) WhereLastObservedAt(p entql.TimeP) { - f.Where(p.Field(checkresult.FieldLastObservedAt)) +// WhereVerified applies the entql bool predicate on the verified field. +func (f *ControlImplementationFilter) WhereVerified(p entql.BoolP) { + f.Where(p.Field(controlimplementation.FieldVerified)) } -// WhereExternalURI applies the entql string predicate on the external_uri field. -func (f *CheckResultFilter) WhereExternalURI(p entql.StringP) { - f.Where(p.Field(checkresult.FieldExternalURI)) +// WhereVerificationDate applies the entql time.Time predicate on the verification_date field. +func (f *ControlImplementationFilter) WhereVerificationDate(p entql.TimeP) { + f.Where(p.Field(controlimplementation.FieldVerificationDate)) } // WhereDetails applies the entql string predicate on the details field. -func (f *CheckResultFilter) WhereDetails(p entql.StringP) { - f.Where(p.Field(checkresult.FieldDetails)) +func (f *ControlImplementationFilter) WhereDetails(p entql.StringP) { + f.Where(p.Field(controlimplementation.FieldDetails)) } -// WhereParentExternalID applies the entql string predicate on the parent_external_id field. -func (f *CheckResultFilter) WhereParentExternalID(p entql.StringP) { - f.Where(p.Field(checkresult.FieldParentExternalID)) +// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. +func (f *ControlImplementationFilter) WhereDetailsJSON(p entql.BytesP) { + f.Where(p.Field(controlimplementation.FieldDetailsJSON)) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *CheckResultFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(checkresult.FieldIntegrationID)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ControlImplementationFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ControlImplementationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *CheckResultFilter) WhereHasBlockedGroups() { +func (f *ControlImplementationFilter) WhereHasBlockedGroups() { f.Where(entql.HasEdge("blocked_groups")) } // WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { +func (f *ControlImplementationFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20255,12 +22199,12 @@ func (f *CheckResultFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) } // WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *CheckResultFilter) WhereHasEditors() { +func (f *ControlImplementationFilter) WhereHasEditors() { f.Where(entql.HasEdge("editors")) } // WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasEditorsWith(preds ...predicate.Group) { +func (f *ControlImplementationFilter) WhereHasEditorsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20269,12 +22213,12 @@ func (f *CheckResultFilter) WhereHasEditorsWith(preds ...predicate.Group) { } // WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *CheckResultFilter) WhereHasViewers() { +func (f *ControlImplementationFilter) WhereHasViewers() { f.Where(entql.HasEdge("viewers")) } // WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasViewersWith(preds ...predicate.Group) { +func (f *ControlImplementationFilter) WhereHasViewersWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20283,12 +22227,12 @@ func (f *CheckResultFilter) WhereHasViewersWith(preds ...predicate.Group) { } // WhereHasControls applies a predicate to check if query has an edge controls. -func (f *CheckResultFilter) WhereHasControls() { +func (f *ControlImplementationFilter) WhereHasControls() { f.Where(entql.HasEdge("controls")) } // WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasControlsWith(preds ...predicate.Control) { +func (f *ControlImplementationFilter) WhereHasControlsWith(preds ...predicate.Control) { f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20296,28 +22240,28 @@ func (f *CheckResultFilter) WhereHasControlsWith(preds ...predicate.Control) { }))) } -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *CheckResultFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *ControlImplementationFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *ControlImplementationFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *CheckResultFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *ControlImplementationFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *CheckResultFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *ControlImplementationFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -20325,199 +22269,326 @@ func (f *CheckResultFilter) WhereHasIntegrationWith(preds ...predicate.Integrati } // addPredicate implements the predicateAdder interface. -func (_q *ContactQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *ControlObjectiveQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ContactQuery builder. -func (_q *ContactQuery) Filter() *ContactFilter { - return &ContactFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the ControlObjectiveQuery builder. +func (_q *ControlObjectiveQuery) Filter() *ControlObjectiveFilter { + return &ControlObjectiveFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *ContactMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlObjectiveMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ContactMutation builder. -func (m *ContactMutation) Filter() *ContactFilter { - return &ContactFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlObjectiveMutation builder. +func (m *ControlObjectiveMutation) Filter() *ControlObjectiveFilter { + return &ControlObjectiveFilter{config: m.config, predicateAdder: m} } -// ContactFilter provides a generic filtering capability at runtime for ContactQuery. -type ContactFilter struct { +// ControlObjectiveFilter provides a generic filtering capability at runtime for ControlObjectiveQuery. +type ControlObjectiveFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ContactFilter) Where(p entql.P) { +func (f *ControlObjectiveFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[11].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *ContactFilter) WhereID(p entql.StringP) { - f.Where(p.Field(contact.FieldID)) +func (f *ControlObjectiveFilter) WhereID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ContactFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldCreatedAt)) +func (f *ControlObjectiveFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ContactFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldUpdatedAt)) +func (f *ControlObjectiveFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ContactFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldCreatedBy)) +func (f *ControlObjectiveFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ContactFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldUpdatedBy)) +func (f *ControlObjectiveFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ContactFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldDeletedAt)) +func (f *ControlObjectiveFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ContactFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldDeletedBy)) +func (f *ControlObjectiveFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *ControlObjectiveFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ContactFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(contact.FieldTags)) +func (f *ControlObjectiveFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(controlobjective.FieldTags)) +} + +// WhereRevision applies the entql string predicate on the revision field. +func (f *ControlObjectiveFilter) WhereRevision(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldRevision)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ContactFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(contact.FieldOwnerID)) +func (f *ControlObjectiveFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldOwnerID)) } -// WhereFullName applies the entql string predicate on the full_name field. -func (f *ContactFilter) WhereFullName(p entql.StringP) { - f.Where(p.Field(contact.FieldFullName)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *ControlObjectiveFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(controlobjective.FieldSystemOwned)) } -// WhereTitle applies the entql string predicate on the title field. -func (f *ContactFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(contact.FieldTitle)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *ControlObjectiveFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldInternalNotes)) } -// WhereCompany applies the entql string predicate on the company field. -func (f *ContactFilter) WhereCompany(p entql.StringP) { - f.Where(p.Field(contact.FieldCompany)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *ControlObjectiveFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldSystemInternalID)) } -// WhereEmail applies the entql string predicate on the email field. -func (f *ContactFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(contact.FieldEmail)) +// WhereName applies the entql string predicate on the name field. +func (f *ControlObjectiveFilter) WhereName(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldName)) +} + +// WhereDesiredOutcome applies the entql string predicate on the desired_outcome field. +func (f *ControlObjectiveFilter) WhereDesiredOutcome(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldDesiredOutcome)) +} + +// WhereDesiredOutcomeJSON applies the entql json.RawMessage predicate on the desired_outcome_json field. +func (f *ControlObjectiveFilter) WhereDesiredOutcomeJSON(p entql.BytesP) { + f.Where(p.Field(controlobjective.FieldDesiredOutcomeJSON)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlObjectiveFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldStatus)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *ControlObjectiveFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldSource)) +} + +// WhereControlObjectiveType applies the entql string predicate on the control_objective_type field. +func (f *ControlObjectiveFilter) WhereControlObjectiveType(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldControlObjectiveType)) +} + +// WhereCategory applies the entql string predicate on the category field. +func (f *ControlObjectiveFilter) WhereCategory(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldCategory)) +} + +// WhereSubcategory applies the entql string predicate on the subcategory field. +func (f *ControlObjectiveFilter) WhereSubcategory(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldSubcategory)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ControlObjectiveFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *ControlObjectiveFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) +} + +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *ControlObjectiveFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) +} + +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *ControlObjectiveFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) +} + +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *ControlObjectiveFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WherePhoneNumber applies the entql string predicate on the phone_number field. -func (f *ContactFilter) WherePhoneNumber(p entql.StringP) { - f.Where(p.Field(contact.FieldPhoneNumber)) +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAddress applies the entql string predicate on the address field. -func (f *ContactFilter) WhereAddress(p entql.StringP) { - f.Where(p.Field(contact.FieldAddress)) +// WhereHasEvidence applies a predicate to check if query has an edge evidence. +func (f *ControlObjectiveFilter) WhereHasEvidence() { + f.Where(entql.HasEdge("evidence")) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ContactFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(contact.FieldStatus)) +// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { + f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *ContactFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(contact.FieldExternalID)) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *ControlObjectiveFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *ContactFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(contact.FieldIntegrationID)) +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *ContactFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldObservedAt)) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *ControlObjectiveFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ContactFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ContactFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *ControlObjectiveFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) +} + +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *ContactFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *ControlObjectiveFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *ContactFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *ContactFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ControlObjectiveFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *ContactFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. -func (f *ContactFilter) WhereHasCampaignTargets() { - f.Where(entql.HasEdge("campaign_targets")) +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *ControlObjectiveFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) } -// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). -func (f *ContactFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { - f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *ContactFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *ControlObjectiveFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -20525,332 +22596,295 @@ func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (_q *ControlQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *CustomDomainQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ControlQuery builder. -func (_q *ControlQuery) Filter() *ControlFilter { - return &ControlFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the CustomDomainQuery builder. +func (_q *CustomDomainQuery) Filter() *CustomDomainFilter { + return &CustomDomainFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *ControlMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *CustomDomainMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ControlMutation builder. -func (m *ControlMutation) Filter() *ControlFilter { - return &ControlFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the CustomDomainMutation builder. +func (m *CustomDomainMutation) Filter() *CustomDomainFilter { + return &CustomDomainFilter{config: m.config, predicateAdder: m} } -// ControlFilter provides a generic filtering capability at runtime for ControlQuery. -type ControlFilter struct { +// CustomDomainFilter provides a generic filtering capability at runtime for CustomDomainQuery. +type CustomDomainFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ControlFilter) Where(p entql.P) { +func (f *CustomDomainFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[9].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *ControlFilter) WhereID(p entql.StringP) { - f.Where(p.Field(control.FieldID)) +func (f *CustomDomainFilter) WhereID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ControlFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(control.FieldCreatedAt)) +func (f *CustomDomainFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(customdomain.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ControlFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(control.FieldUpdatedAt)) +func (f *CustomDomainFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(customdomain.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ControlFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(control.FieldCreatedBy)) +func (f *CustomDomainFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(customdomain.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ControlFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(control.FieldUpdatedBy)) +func (f *CustomDomainFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(customdomain.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ControlFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(control.FieldDeletedAt)) +func (f *CustomDomainFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(customdomain.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ControlFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(control.FieldDeletedBy)) -} - -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *ControlFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(control.FieldDisplayID)) +func (f *CustomDomainFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(customdomain.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ControlFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(control.FieldTags)) -} - -// WhereExternalUUID applies the entql string predicate on the external_uuid field. -func (f *ControlFilter) WhereExternalUUID(p entql.StringP) { - f.Where(p.Field(control.FieldExternalUUID)) -} - -// WhereTitle applies the entql string predicate on the title field. -func (f *ControlFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(control.FieldTitle)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *ControlFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(control.FieldDescription)) -} - -// WhereDescriptionJSON applies the entql json.RawMessage predicate on the description_json field. -func (f *ControlFilter) WhereDescriptionJSON(p entql.BytesP) { - f.Where(p.Field(control.FieldDescriptionJSON)) -} - -// WhereAliases applies the entql json.RawMessage predicate on the aliases field. -func (f *ControlFilter) WhereAliases(p entql.BytesP) { - f.Where(p.Field(control.FieldAliases)) -} - -// WhereReferenceID applies the entql string predicate on the reference_id field. -func (f *ControlFilter) WhereReferenceID(p entql.StringP) { - f.Where(p.Field(control.FieldReferenceID)) -} - -// WhereAuditorReferenceID applies the entql string predicate on the auditor_reference_id field. -func (f *ControlFilter) WhereAuditorReferenceID(p entql.StringP) { - f.Where(p.Field(control.FieldAuditorReferenceID)) -} - -// WhereResponsiblePartyID applies the entql string predicate on the responsible_party_id field. -func (f *ControlFilter) WhereResponsiblePartyID(p entql.StringP) { - f.Where(p.Field(control.FieldResponsiblePartyID)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *ControlFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(control.FieldStatus)) +func (f *CustomDomainFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(customdomain.FieldTags)) } -// WhereImplementationStatus applies the entql string predicate on the implementation_status field. -func (f *ControlFilter) WhereImplementationStatus(p entql.StringP) { - f.Where(p.Field(control.FieldImplementationStatus)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *CustomDomainFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldOwnerID)) } -// WhereImplementationDescription applies the entql string predicate on the implementation_description field. -func (f *ControlFilter) WhereImplementationDescription(p entql.StringP) { - f.Where(p.Field(control.FieldImplementationDescription)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *CustomDomainFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(customdomain.FieldSystemOwned)) } -// WherePublicRepresentation applies the entql string predicate on the public_representation field. -func (f *ControlFilter) WherePublicRepresentation(p entql.StringP) { - f.Where(p.Field(control.FieldPublicRepresentation)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *CustomDomainFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(customdomain.FieldInternalNotes)) } -// WhereSource applies the entql string predicate on the source field. -func (f *ControlFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(control.FieldSource)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *CustomDomainFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldSystemInternalID)) } -// WhereSourceName applies the entql string predicate on the source_name field. -func (f *ControlFilter) WhereSourceName(p entql.StringP) { - f.Where(p.Field(control.FieldSourceName)) +// WhereCnameRecord applies the entql string predicate on the cname_record field. +func (f *CustomDomainFilter) WhereCnameRecord(p entql.StringP) { + f.Where(p.Field(customdomain.FieldCnameRecord)) } -// WhereReferenceFramework applies the entql string predicate on the reference_framework field. -func (f *ControlFilter) WhereReferenceFramework(p entql.StringP) { - f.Where(p.Field(control.FieldReferenceFramework)) +// WhereMappableDomainID applies the entql string predicate on the mappable_domain_id field. +func (f *CustomDomainFilter) WhereMappableDomainID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldMappableDomainID)) } -// WhereReferenceFrameworkRevision applies the entql string predicate on the reference_framework_revision field. -func (f *ControlFilter) WhereReferenceFrameworkRevision(p entql.StringP) { - f.Where(p.Field(control.FieldReferenceFrameworkRevision)) +// WhereDNSVerificationID applies the entql string predicate on the dns_verification_id field. +func (f *CustomDomainFilter) WhereDNSVerificationID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldDNSVerificationID)) } -// WhereCategory applies the entql string predicate on the category field. -func (f *ControlFilter) WhereCategory(p entql.StringP) { - f.Where(p.Field(control.FieldCategory)) +// WhereTrustCenterID applies the entql string predicate on the trust_center_id field. +func (f *CustomDomainFilter) WhereTrustCenterID(p entql.StringP) { + f.Where(p.Field(customdomain.FieldTrustCenterID)) } -// WhereCategoryID applies the entql string predicate on the category_id field. -func (f *ControlFilter) WhereCategoryID(p entql.StringP) { - f.Where(p.Field(control.FieldCategoryID)) +// WhereDomainType applies the entql string predicate on the domain_type field. +func (f *CustomDomainFilter) WhereDomainType(p entql.StringP) { + f.Where(p.Field(customdomain.FieldDomainType)) } -// WhereSubcategory applies the entql string predicate on the subcategory field. -func (f *ControlFilter) WhereSubcategory(p entql.StringP) { - f.Where(p.Field(control.FieldSubcategory)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *CustomDomainFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereMappedCategories applies the entql json.RawMessage predicate on the mapped_categories field. -func (f *ControlFilter) WhereMappedCategories(p entql.BytesP) { - f.Where(p.Field(control.FieldMappedCategories)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *CustomDomainFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAssessmentObjectives applies the entql json.RawMessage predicate on the assessment_objectives field. -func (f *ControlFilter) WhereAssessmentObjectives(p entql.BytesP) { - f.Where(p.Field(control.FieldAssessmentObjectives)) +// WhereHasMappableDomain applies a predicate to check if query has an edge mappable_domain. +func (f *CustomDomainFilter) WhereHasMappableDomain() { + f.Where(entql.HasEdge("mappable_domain")) } -// WhereAssessmentMethods applies the entql json.RawMessage predicate on the assessment_methods field. -func (f *ControlFilter) WhereAssessmentMethods(p entql.BytesP) { - f.Where(p.Field(control.FieldAssessmentMethods)) +// WhereHasMappableDomainWith applies a predicate to check if query has an edge mappable_domain with a given conditions (other predicates). +func (f *CustomDomainFilter) WhereHasMappableDomainWith(preds ...predicate.MappableDomain) { + f.Where(entql.HasEdgeWith("mappable_domain", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereControlQuestions applies the entql json.RawMessage predicate on the control_questions field. -func (f *ControlFilter) WhereControlQuestions(p entql.BytesP) { - f.Where(p.Field(control.FieldControlQuestions)) +// WhereHasDNSVerification applies a predicate to check if query has an edge dns_verification. +func (f *CustomDomainFilter) WhereHasDNSVerification() { + f.Where(entql.HasEdge("dns_verification")) } -// WhereImplementationGuidance applies the entql json.RawMessage predicate on the implementation_guidance field. -func (f *ControlFilter) WhereImplementationGuidance(p entql.BytesP) { - f.Where(p.Field(control.FieldImplementationGuidance)) +// WhereHasDNSVerificationWith applies a predicate to check if query has an edge dns_verification with a given conditions (other predicates). +func (f *CustomDomainFilter) WhereHasDNSVerificationWith(preds ...predicate.DNSVerification) { + f.Where(entql.HasEdgeWith("dns_verification", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExampleEvidence applies the entql json.RawMessage predicate on the example_evidence field. -func (f *ControlFilter) WhereExampleEvidence(p entql.BytesP) { - f.Where(p.Field(control.FieldExampleEvidence)) +// addPredicate implements the predicateAdder interface. +func (_q *CustomTypeEnumQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereReferences applies the entql json.RawMessage predicate on the references field. -func (f *ControlFilter) WhereReferences(p entql.BytesP) { - f.Where(p.Field(control.FieldReferences)) +// Filter returns a Filter implementation to apply filters on the CustomTypeEnumQuery builder. +func (_q *CustomTypeEnumQuery) Filter() *CustomTypeEnumFilter { + return &CustomTypeEnumFilter{config: _q.config, predicateAdder: _q} } -// WhereTestingProcedures applies the entql json.RawMessage predicate on the testing_procedures field. -func (f *ControlFilter) WhereTestingProcedures(p entql.BytesP) { - f.Where(p.Field(control.FieldTestingProcedures)) +// addPredicate implements the predicateAdder interface. +func (m *CustomTypeEnumMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereEvidenceRequests applies the entql json.RawMessage predicate on the evidence_requests field. -func (f *ControlFilter) WhereEvidenceRequests(p entql.BytesP) { - f.Where(p.Field(control.FieldEvidenceRequests)) +// Filter returns an entql.Where implementation to apply filters on the CustomTypeEnumMutation builder. +func (m *CustomTypeEnumMutation) Filter() *CustomTypeEnumFilter { + return &CustomTypeEnumFilter{config: m.config, predicateAdder: m} } -// WhereControlOwnerID applies the entql string predicate on the control_owner_id field. -func (f *ControlFilter) WhereControlOwnerID(p entql.StringP) { - f.Where(p.Field(control.FieldControlOwnerID)) +// CustomTypeEnumFilter provides a generic filtering capability at runtime for CustomTypeEnumQuery. +type CustomTypeEnumFilter struct { + predicateAdder + config } -// WhereDelegateID applies the entql string predicate on the delegate_id field. -func (f *ControlFilter) WhereDelegateID(p entql.StringP) { - f.Where(p.Field(control.FieldDelegateID)) +// Where applies the entql predicate on the query filter. +func (f *CustomTypeEnumFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[13].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ControlFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(control.FieldOwnerID)) +// WhereID applies the entql string predicate on the id field. +func (f *CustomTypeEnumFilter) WhereID(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldID)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *ControlFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(control.FieldSystemOwned)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *CustomTypeEnumFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(customtypeenum.FieldCreatedAt)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *ControlFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(control.FieldInternalNotes)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *CustomTypeEnumFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(customtypeenum.FieldUpdatedAt)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *ControlFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(control.FieldSystemInternalID)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *CustomTypeEnumFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldCreatedBy)) } -// WhereControlKindName applies the entql string predicate on the control_kind_name field. -func (f *ControlFilter) WhereControlKindName(p entql.StringP) { - f.Where(p.Field(control.FieldControlKindName)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *CustomTypeEnumFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldUpdatedBy)) } -// WhereControlKindID applies the entql string predicate on the control_kind_id field. -func (f *ControlFilter) WhereControlKindID(p entql.StringP) { - f.Where(p.Field(control.FieldControlKindID)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *CustomTypeEnumFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(customtypeenum.FieldDeletedAt)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *ControlFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(control.FieldEnvironmentName)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *CustomTypeEnumFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldDeletedBy)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *ControlFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(control.FieldEnvironmentID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *CustomTypeEnumFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldOwnerID)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *ControlFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(control.FieldScopeName)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *CustomTypeEnumFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(customtypeenum.FieldSystemOwned)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *ControlFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(control.FieldScopeID)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *CustomTypeEnumFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldInternalNotes)) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *ControlFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(control.FieldWorkflowEligibleMarker)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *CustomTypeEnumFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldSystemInternalID)) } -// WhereRefCode applies the entql string predicate on the ref_code field. -func (f *ControlFilter) WhereRefCode(p entql.StringP) { - f.Where(p.Field(control.FieldRefCode)) +// WhereObjectType applies the entql string predicate on the object_type field. +func (f *CustomTypeEnumFilter) WhereObjectType(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldObjectType)) } -// WhereStandardID applies the entql string predicate on the standard_id field. -func (f *ControlFilter) WhereStandardID(p entql.StringP) { - f.Where(p.Field(control.FieldStandardID)) +// WhereField applies the entql string predicate on the field field. +func (f *CustomTypeEnumFilter) WhereField(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldField)) } -// WhereTrustCenterVisibility applies the entql string predicate on the trust_center_visibility field. -func (f *ControlFilter) WhereTrustCenterVisibility(p entql.StringP) { - f.Where(p.Field(control.FieldTrustCenterVisibility)) +// WhereName applies the entql string predicate on the name field. +func (f *CustomTypeEnumFilter) WhereName(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldName)) } -// WhereIsTrustCenterControl applies the entql bool predicate on the is_trust_center_control field. -func (f *ControlFilter) WhereIsTrustCenterControl(p entql.BoolP) { - f.Where(p.Field(control.FieldIsTrustCenterControl)) +// WhereDescription applies the entql string predicate on the description field. +func (f *CustomTypeEnumFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldDescription)) } -// WhereHasEvidence applies a predicate to check if query has an edge evidence. -func (f *ControlFilter) WhereHasEvidence() { - f.Where(entql.HasEdge("evidence")) +// WhereColor applies the entql string predicate on the color field. +func (f *CustomTypeEnumFilter) WhereColor(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldColor)) } -// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). -func (f *ControlFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { - f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIcon applies the entql string predicate on the icon field. +func (f *CustomTypeEnumFilter) WhereIcon(p entql.StringP) { + f.Where(p.Field(customtypeenum.FieldIcon)) } -// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. -func (f *ControlFilter) WhereHasControlObjectives() { - f.Where(entql.HasEdge("control_objectives")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *CustomTypeEnumFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). -func (f *ControlFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -20858,12 +22892,12 @@ func (f *ControlFilter) WhereHasControlObjectivesWith(preds ...predicate.Control } // WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *ControlFilter) WhereHasTasks() { +func (f *CustomTypeEnumFilter) WhereHasTasks() { f.Where(entql.HasEdge("tasks")) } // WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *ControlFilter) WhereHasTasksWith(preds ...predicate.Task) { +func (f *CustomTypeEnumFilter) WhereHasTasksWith(preds ...predicate.Task) { f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20871,56 +22905,56 @@ func (f *ControlFilter) WhereHasTasksWith(preds ...predicate.Task) { }))) } -// WhereHasNarratives applies a predicate to check if query has an edge narratives. -func (f *ControlFilter) WhereHasNarratives() { - f.Where(entql.HasEdge("narratives")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *CustomTypeEnumFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). -func (f *ControlFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *ControlFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *CustomTypeEnumFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *ControlFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. -func (f *ControlFilter) WhereHasActionPlans() { - f.Where(entql.HasEdge("action_plans")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *CustomTypeEnumFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). -func (f *ControlFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedures applies a predicate to check if query has an edge procedures. -func (f *ControlFilter) WhereHasProcedures() { - f.Where(entql.HasEdge("procedures")) +// WhereHasRiskCategories applies a predicate to check if query has an edge risk_categories. +func (f *CustomTypeEnumFilter) WhereHasRiskCategories() { + f.Where(entql.HasEdge("risk_categories")) } -// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). -func (f *ControlFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRiskCategoriesWith applies a predicate to check if query has an edge risk_categories with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasRiskCategoriesWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk_categories", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -20928,12 +22962,12 @@ func (f *ControlFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { } // WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *ControlFilter) WhereHasInternalPolicies() { +func (f *CustomTypeEnumFilter) WhereHasInternalPolicies() { f.Where(entql.HasEdge("internal_policies")) } // WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *ControlFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { +func (f *CustomTypeEnumFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -20941,643 +22975,652 @@ func (f *ControlFilter) WhereHasInternalPoliciesWith(preds ...predicate.Internal }))) } -// WhereHasComments applies a predicate to check if query has an edge comments. -func (f *ControlFilter) WhereHasComments() { - f.Where(entql.HasEdge("comments")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *CustomTypeEnumFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). -func (f *ControlFilter) WhereHasCommentsWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDiscussions applies a predicate to check if query has an edge discussions. -func (f *ControlFilter) WhereHasDiscussions() { - f.Where(entql.HasEdge("discussions")) +// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. +func (f *CustomTypeEnumFilter) WhereHasActionPlans() { + f.Where(entql.HasEdge("action_plans")) } -// WhereHasDiscussionsWith applies a predicate to check if query has an edge discussions with a given conditions (other predicates). -func (f *ControlFilter) WhereHasDiscussionsWith(preds ...predicate.Discussion) { - f.Where(entql.HasEdgeWith("discussions", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlOwner applies a predicate to check if query has an edge control_owner. -func (f *ControlFilter) WhereHasControlOwner() { - f.Where(entql.HasEdge("control_owner")) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *CustomTypeEnumFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereHasControlOwnerWith applies a predicate to check if query has an edge control_owner with a given conditions (other predicates). -func (f *ControlFilter) WhereHasControlOwnerWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("control_owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDelegate applies a predicate to check if query has an edge delegate. -func (f *ControlFilter) WhereHasDelegate() { - f.Where(entql.HasEdge("delegate")) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *CustomTypeEnumFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). -func (f *ControlFilter) WhereHasDelegateWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *CustomTypeEnumFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasResponsibleParty applies a predicate to check if query has an edge responsible_party. -func (f *ControlFilter) WhereHasResponsibleParty() { - f.Where(entql.HasEdge("responsible_party")) +// addPredicate implements the predicateAdder interface. +func (_q *DNSVerificationQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasResponsiblePartyWith applies a predicate to check if query has an edge responsible_party with a given conditions (other predicates). -func (f *ControlFilter) WhereHasResponsiblePartyWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("responsible_party", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the DNSVerificationQuery builder. +func (_q *DNSVerificationQuery) Filter() *DNSVerificationFilter { + return &DNSVerificationFilter{config: _q.config, predicateAdder: _q} } -// WhereHasReviews applies a predicate to check if query has an edge reviews. -func (f *ControlFilter) WhereHasReviews() { - f.Where(entql.HasEdge("reviews")) +// addPredicate implements the predicateAdder interface. +func (m *DNSVerificationMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). -func (f *ControlFilter) WhereHasReviewsWith(preds ...predicate.Review) { - f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the DNSVerificationMutation builder. +func (m *DNSVerificationMutation) Filter() *DNSVerificationFilter { + return &DNSVerificationFilter{config: m.config, predicateAdder: m} } -// WhereHasRemediations applies a predicate to check if query has an edge remediations. -func (f *ControlFilter) WhereHasRemediations() { - f.Where(entql.HasEdge("remediations")) +// DNSVerificationFilter provides a generic filtering capability at runtime for DNSVerificationQuery. +type DNSVerificationFilter struct { + predicateAdder + config } -// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). -func (f *ControlFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { - f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *DNSVerificationFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *ControlFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereID applies the entql string predicate on the id field. +func (f *DNSVerificationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldID)) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *ControlFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *DNSVerificationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(dnsverification.FieldCreatedAt)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ControlFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *DNSVerificationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(dnsverification.FieldUpdatedAt)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ControlFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *DNSVerificationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldCreatedBy)) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *ControlFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *DNSVerificationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldUpdatedBy)) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *ControlFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *DNSVerificationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(dnsverification.FieldDeletedAt)) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *ControlFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *DNSVerificationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldDeletedBy)) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *ControlFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *DNSVerificationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(dnsverification.FieldTags)) } -// WhereHasControlKind applies a predicate to check if query has an edge control_kind. -func (f *ControlFilter) WhereHasControlKind() { - f.Where(entql.HasEdge("control_kind")) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DNSVerificationFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldOwnerID)) } -// WhereHasControlKindWith applies a predicate to check if query has an edge control_kind with a given conditions (other predicates). -func (f *ControlFilter) WhereHasControlKindWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("control_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCloudflareHostnameID applies the entql string predicate on the cloudflare_hostname_id field. +func (f *DNSVerificationFilter) WhereCloudflareHostnameID(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldCloudflareHostnameID)) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *ControlFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereDNSTxtRecord applies the entql string predicate on the dns_txt_record field. +func (f *DNSVerificationFilter) WhereDNSTxtRecord(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldDNSTxtRecord)) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *ControlFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereDNSTxtValue applies the entql string predicate on the dns_txt_value field. +func (f *DNSVerificationFilter) WhereDNSTxtValue(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldDNSTxtValue)) +} + +// WhereDNSVerificationStatus applies the entql string predicate on the dns_verification_status field. +func (f *DNSVerificationFilter) WhereDNSVerificationStatus(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldDNSVerificationStatus)) +} + +// WhereDNSVerificationStatusReason applies the entql string predicate on the dns_verification_status_reason field. +func (f *DNSVerificationFilter) WhereDNSVerificationStatusReason(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldDNSVerificationStatusReason)) +} + +// WhereAcmeChallengePath applies the entql string predicate on the acme_challenge_path field. +func (f *DNSVerificationFilter) WhereAcmeChallengePath(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldAcmeChallengePath)) +} + +// WhereExpectedAcmeChallengeValue applies the entql string predicate on the expected_acme_challenge_value field. +func (f *DNSVerificationFilter) WhereExpectedAcmeChallengeValue(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldExpectedAcmeChallengeValue)) +} + +// WhereAcmeChallengeStatus applies the entql string predicate on the acme_challenge_status field. +func (f *DNSVerificationFilter) WhereAcmeChallengeStatus(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldAcmeChallengeStatus)) +} + +// WhereAcmeChallengeStatusReason applies the entql string predicate on the acme_challenge_status_reason field. +func (f *DNSVerificationFilter) WhereAcmeChallengeStatusReason(p entql.StringP) { + f.Where(p.Field(dnsverification.FieldAcmeChallengeStatusReason)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *DNSVerificationFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *DNSVerificationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *ControlFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasCustomDomains applies a predicate to check if query has an edge custom_domains. +func (f *DNSVerificationFilter) WhereHasCustomDomains() { + f.Where(entql.HasEdge("custom_domains")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *ControlFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCustomDomainsWith applies a predicate to check if query has an edge custom_domains with a given conditions (other predicates). +func (f *DNSVerificationFilter) WhereHasCustomDomainsWith(preds ...predicate.CustomDomain) { + f.Where(entql.HasEdgeWith("custom_domains", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasStandard applies a predicate to check if query has an edge standard. -func (f *ControlFilter) WhereHasStandard() { - f.Where(entql.HasEdge("standard")) +// addPredicate implements the predicateAdder interface. +func (_q *DirectoryAccountQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). -func (f *ControlFilter) WhereHasStandardWith(preds ...predicate.Standard) { - f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the DirectoryAccountQuery builder. +func (_q *DirectoryAccountQuery) Filter() *DirectoryAccountFilter { + return &DirectoryAccountFilter{config: _q.config, predicateAdder: _q} } -// WhereHasCheckResults applies a predicate to check if query has an edge check_results. -func (f *ControlFilter) WhereHasCheckResults() { - f.Where(entql.HasEdge("check_results")) +// addPredicate implements the predicateAdder interface. +func (m *DirectoryAccountMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). -func (f *ControlFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { - f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the DirectoryAccountMutation builder. +func (m *DirectoryAccountMutation) Filter() *DirectoryAccountFilter { + return &DirectoryAccountFilter{config: m.config, predicateAdder: m} } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *ControlFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// DirectoryAccountFilter provides a generic filtering capability at runtime for DirectoryAccountQuery. +type DirectoryAccountFilter struct { + predicateAdder + config } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *ControlFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *DirectoryAccountFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[15].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *ControlFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereID applies the entql string predicate on the id field. +func (f *DirectoryAccountFilter) WhereID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldID)) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *ControlFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *DirectoryAccountFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldCreatedAt)) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *ControlFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *DirectoryAccountFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldUpdatedAt)) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *ControlFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *DirectoryAccountFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldCreatedBy)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *ControlFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *DirectoryAccountFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldUpdatedBy)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *ControlFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *DirectoryAccountFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDisplayID)) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *ControlFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *DirectoryAccountFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(directoryaccount.FieldTags)) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *ControlFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DirectoryAccountFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldOwnerID)) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *ControlFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *DirectoryAccountFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldEnvironmentName)) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *ControlFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *DirectoryAccountFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldEnvironmentID)) } -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *ControlFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *DirectoryAccountFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldScopeName)) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *ControlFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *DirectoryAccountFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldScopeID)) } -// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. -func (f *ControlFilter) WhereHasControlImplementations() { - f.Where(entql.HasEdge("control_implementations")) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *DirectoryAccountFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldIntegrationID)) } -// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). -func (f *ControlFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. +func (f *DirectoryAccountFilter) WhereDirectorySyncRunID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDirectorySyncRunID)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *ControlFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WherePlatformID applies the entql string predicate on the platform_id field. +func (f *DirectoryAccountFilter) WherePlatformID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldPlatformID)) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *ControlFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. +func (f *DirectoryAccountFilter) WhereDirectoryInstanceID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDirectoryInstanceID)) } -// WhereHasScheduledJobs applies a predicate to check if query has an edge scheduled_jobs. -func (f *ControlFilter) WhereHasScheduledJobs() { - f.Where(entql.HasEdge("scheduled_jobs")) +// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. +func (f *DirectoryAccountFilter) WhereIdentityHolderID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldIdentityHolderID)) } -// WhereHasScheduledJobsWith applies a predicate to check if query has an edge scheduled_jobs with a given conditions (other predicates). -func (f *ControlFilter) WhereHasScheduledJobsWith(preds ...predicate.ScheduledJob) { - f.Where(entql.HasEdgeWith("scheduled_jobs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDirectoryName applies the entql string predicate on the directory_name field. +func (f *DirectoryAccountFilter) WhereDirectoryName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDirectoryName)) } -// WhereHasMappedToControls applies a predicate to check if query has an edge mapped_to_controls. -func (f *ControlFilter) WhereHasMappedToControls() { - f.Where(entql.HasEdge("mapped_to_controls")) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *DirectoryAccountFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldExternalID)) +} + +// WhereSecondaryKey applies the entql string predicate on the secondary_key field. +func (f *DirectoryAccountFilter) WhereSecondaryKey(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldSecondaryKey)) +} + +// WhereCanonicalEmail applies the entql string predicate on the canonical_email field. +func (f *DirectoryAccountFilter) WhereCanonicalEmail(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldCanonicalEmail)) +} + +// WhereEmailAliases applies the entql json.RawMessage predicate on the email_aliases field. +func (f *DirectoryAccountFilter) WhereEmailAliases(p entql.BytesP) { + f.Where(p.Field(directoryaccount.FieldEmailAliases)) +} + +// WherePhoneNumber applies the entql string predicate on the phone_number field. +func (f *DirectoryAccountFilter) WherePhoneNumber(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldPhoneNumber)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *DirectoryAccountFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDisplayName)) +} + +// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. +func (f *DirectoryAccountFilter) WhereAvatarRemoteURL(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldAvatarRemoteURL)) +} + +// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. +func (f *DirectoryAccountFilter) WhereAvatarLocalFileID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldAvatarLocalFileID)) +} + +// WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field. +func (f *DirectoryAccountFilter) WhereAvatarUpdatedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldAvatarUpdatedAt)) } -// WhereHasMappedToControlsWith applies a predicate to check if query has an edge mapped_to_controls with a given conditions (other predicates). -func (f *ControlFilter) WhereHasMappedToControlsWith(preds ...predicate.MappedControl) { - f.Where(entql.HasEdgeWith("mapped_to_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereGivenName applies the entql string predicate on the given_name field. +func (f *DirectoryAccountFilter) WhereGivenName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldGivenName)) } -// WhereHasMappedFromControls applies a predicate to check if query has an edge mapped_from_controls. -func (f *ControlFilter) WhereHasMappedFromControls() { - f.Where(entql.HasEdge("mapped_from_controls")) +// WhereFamilyName applies the entql string predicate on the family_name field. +func (f *DirectoryAccountFilter) WhereFamilyName(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldFamilyName)) } -// WhereHasMappedFromControlsWith applies a predicate to check if query has an edge mapped_from_controls with a given conditions (other predicates). -func (f *ControlFilter) WhereHasMappedFromControlsWith(preds ...predicate.MappedControl) { - f.Where(entql.HasEdgeWith("mapped_from_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereJobTitle applies the entql string predicate on the job_title field. +func (f *DirectoryAccountFilter) WhereJobTitle(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldJobTitle)) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *ControlFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereDepartment applies the entql string predicate on the department field. +func (f *DirectoryAccountFilter) WhereDepartment(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldDepartment)) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *ControlFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOrganizationUnit applies the entql string predicate on the organization_unit field. +func (f *DirectoryAccountFilter) WhereOrganizationUnit(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldOrganizationUnit)) } -// WhereHasControlMappings applies a predicate to check if query has an edge control_mappings. -func (f *ControlFilter) WhereHasControlMappings() { - f.Where(entql.HasEdge("control_mappings")) +// WhereAccountType applies the entql string predicate on the account_type field. +func (f *DirectoryAccountFilter) WhereAccountType(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldAccountType)) } -// WhereHasControlMappingsWith applies a predicate to check if query has an edge control_mappings with a given conditions (other predicates). -func (f *ControlFilter) WhereHasControlMappingsWith(preds ...predicate.FindingControl) { - f.Where(entql.HasEdgeWith("control_mappings", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStatus applies the entql string predicate on the status field. +func (f *DirectoryAccountFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldStatus)) } -// addPredicate implements the predicateAdder interface. -func (_q *ControlImplementationQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereMfaState applies the entql string predicate on the mfa_state field. +func (f *DirectoryAccountFilter) WhereMfaState(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldMfaState)) } -// Filter returns a Filter implementation to apply filters on the ControlImplementationQuery builder. -func (_q *ControlImplementationQuery) Filter() *ControlImplementationFilter { - return &ControlImplementationFilter{config: _q.config, predicateAdder: _q} +// WhereLastSeenIP applies the entql string predicate on the last_seen_ip field. +func (f *DirectoryAccountFilter) WhereLastSeenIP(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldLastSeenIP)) } -// addPredicate implements the predicateAdder interface. -func (m *ControlImplementationMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereLastLoginAt applies the entql time.Time predicate on the last_login_at field. +func (f *DirectoryAccountFilter) WhereLastLoginAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldLastLoginAt)) } -// Filter returns an entql.Where implementation to apply filters on the ControlImplementationMutation builder. -func (m *ControlImplementationMutation) Filter() *ControlImplementationFilter { - return &ControlImplementationFilter{config: m.config, predicateAdder: m} +// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. +func (f *DirectoryAccountFilter) WhereFirstSeenAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldFirstSeenAt)) } -// ControlImplementationFilter provides a generic filtering capability at runtime for ControlImplementationQuery. -type ControlImplementationFilter struct { - predicateAdder - config +// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. +func (f *DirectoryAccountFilter) WhereLastSeenAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldLastSeenAt)) } -// Where applies the entql predicate on the query filter. -func (f *ControlImplementationFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[10].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereAddedAt applies the entql time.Time predicate on the added_at field. +func (f *DirectoryAccountFilter) WhereAddedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldAddedAt)) } -// WhereID applies the entql string predicate on the id field. -func (f *ControlImplementationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldID)) +// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. +func (f *DirectoryAccountFilter) WhereRemovedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldRemovedAt)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ControlImplementationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(controlimplementation.FieldCreatedAt)) +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *DirectoryAccountFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(directoryaccount.FieldObservedAt)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ControlImplementationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(controlimplementation.FieldUpdatedAt)) +// WhereProfileHash applies the entql string predicate on the profile_hash field. +func (f *DirectoryAccountFilter) WhereProfileHash(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldProfileHash)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ControlImplementationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldCreatedBy)) +// WhereProfile applies the entql json.RawMessage predicate on the profile field. +func (f *DirectoryAccountFilter) WhereProfile(p entql.BytesP) { + f.Where(p.Field(directoryaccount.FieldProfile)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ControlImplementationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldUpdatedBy)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *DirectoryAccountFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(directoryaccount.FieldMetadata)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ControlImplementationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(controlimplementation.FieldDeletedAt)) +// WhereRawProfileFileID applies the entql string predicate on the raw_profile_file_id field. +func (f *DirectoryAccountFilter) WhereRawProfileFileID(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldRawProfileFileID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ControlImplementationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldDeletedBy)) +// WhereSourceVersion applies the entql string predicate on the source_version field. +func (f *DirectoryAccountFilter) WhereSourceVersion(p entql.StringP) { + f.Where(p.Field(directoryaccount.FieldSourceVersion)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ControlImplementationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(controlimplementation.FieldTags)) +// WherePrimarySource applies the entql bool predicate on the primary_source field. +func (f *DirectoryAccountFilter) WherePrimarySource(p entql.BoolP) { + f.Where(p.Field(directoryaccount.FieldPrimarySource)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ControlImplementationFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldOwnerID)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *DirectoryAccountFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *ControlImplementationFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(controlimplementation.FieldSystemOwned)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *ControlImplementationFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldInternalNotes)) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *DirectoryAccountFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *ControlImplementationFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldSystemInternalID)) +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ControlImplementationFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldStatus)) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *DirectoryAccountFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereImplementationDate applies the entql time.Time predicate on the implementation_date field. -func (f *ControlImplementationFilter) WhereImplementationDate(p entql.TimeP) { - f.Where(p.Field(controlimplementation.FieldImplementationDate)) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereVerified applies the entql bool predicate on the verified field. -func (f *ControlImplementationFilter) WhereVerified(p entql.BoolP) { - f.Where(p.Field(controlimplementation.FieldVerified)) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *DirectoryAccountFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereVerificationDate applies the entql time.Time predicate on the verification_date field. -func (f *ControlImplementationFilter) WhereVerificationDate(p entql.TimeP) { - f.Where(p.Field(controlimplementation.FieldVerificationDate)) +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDetails applies the entql string predicate on the details field. -func (f *ControlImplementationFilter) WhereDetails(p entql.StringP) { - f.Where(p.Field(controlimplementation.FieldDetails)) +// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. +func (f *DirectoryAccountFilter) WhereHasDirectorySyncRun() { + f.Where(entql.HasEdge("directory_sync_run")) } -// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. -func (f *ControlImplementationFilter) WhereDetailsJSON(p entql.BytesP) { - f.Where(p.Field(controlimplementation.FieldDetailsJSON)) +// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { + f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ControlImplementationFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasPlatform applies a predicate to check if query has an edge platform. +func (f *DirectoryAccountFilter) WhereHasPlatform() { + f.Where(entql.HasEdge("platform")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasPlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *ControlImplementationFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. +func (f *DirectoryAccountFilter) WhereHasIdentityHolder() { + f.Where(entql.HasEdge("identity_holder")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *ControlImplementationFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasAvatarFile applies a predicate to check if query has an edge avatar_file. +func (f *DirectoryAccountFilter) WhereHasAvatarFile() { + f.Where(entql.HasEdge("avatar_file")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAvatarFileWith applies a predicate to check if query has an edge avatar_file with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasAvatarFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("avatar_file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *ControlImplementationFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *DirectoryAccountFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasGroupsWith(preds ...predicate.DirectoryGroup) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *ControlImplementationFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *DirectoryAccountFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *ControlImplementationFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *DirectoryAccountFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *ControlImplementationFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereHasMemberships applies a predicate to check if query has an edge memberships. +func (f *DirectoryAccountFilter) WhereHasMemberships() { + f.Where(entql.HasEdge("memberships")) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *ControlImplementationFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMembershipsWith applies a predicate to check if query has an edge memberships with a given conditions (other predicates). +func (f *DirectoryAccountFilter) WhereHasMembershipsWith(preds ...predicate.DirectoryMembership) { + f.Where(entql.HasEdgeWith("memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -21585,488 +23628,335 @@ func (f *ControlImplementationFilter) WhereHasTasksWith(preds ...predicate.Task) } // addPredicate implements the predicateAdder interface. -func (_q *ControlObjectiveQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *DirectoryGroupQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ControlObjectiveQuery builder. -func (_q *ControlObjectiveQuery) Filter() *ControlObjectiveFilter { - return &ControlObjectiveFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the DirectoryGroupQuery builder. +func (_q *DirectoryGroupQuery) Filter() *DirectoryGroupFilter { + return &DirectoryGroupFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *ControlObjectiveMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DirectoryGroupMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ControlObjectiveMutation builder. -func (m *ControlObjectiveMutation) Filter() *ControlObjectiveFilter { - return &ControlObjectiveFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DirectoryGroupMutation builder. +func (m *DirectoryGroupMutation) Filter() *DirectoryGroupFilter { + return &DirectoryGroupFilter{config: m.config, predicateAdder: m} } -// ControlObjectiveFilter provides a generic filtering capability at runtime for ControlObjectiveQuery. -type ControlObjectiveFilter struct { +// DirectoryGroupFilter provides a generic filtering capability at runtime for DirectoryGroupQuery. +type DirectoryGroupFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ControlObjectiveFilter) Where(p entql.P) { +func (f *DirectoryGroupFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[11].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *ControlObjectiveFilter) WhereID(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldID)) +func (f *DirectoryGroupFilter) WhereID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ControlObjectiveFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(controlobjective.FieldCreatedAt)) +func (f *DirectoryGroupFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ControlObjectiveFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(controlobjective.FieldUpdatedAt)) +func (f *DirectoryGroupFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ControlObjectiveFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldCreatedBy)) +func (f *DirectoryGroupFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ControlObjectiveFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ControlObjectiveFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(controlobjective.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ControlObjectiveFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldDeletedBy)) +func (f *DirectoryGroupFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldUpdatedBy)) } // WhereDisplayID applies the entql string predicate on the display_id field. -func (f *ControlObjectiveFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldDisplayID)) +func (f *DirectoryGroupFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ControlObjectiveFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(controlobjective.FieldTags)) -} - -// WhereRevision applies the entql string predicate on the revision field. -func (f *ControlObjectiveFilter) WhereRevision(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldRevision)) +func (f *DirectoryGroupFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(directorygroup.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ControlObjectiveFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldOwnerID)) -} - -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *ControlObjectiveFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(controlobjective.FieldSystemOwned)) -} - -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *ControlObjectiveFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldInternalNotes)) -} - -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *ControlObjectiveFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldSystemInternalID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *ControlObjectiveFilter) WhereName(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldName)) -} - -// WhereDesiredOutcome applies the entql string predicate on the desired_outcome field. -func (f *ControlObjectiveFilter) WhereDesiredOutcome(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldDesiredOutcome)) -} - -// WhereDesiredOutcomeJSON applies the entql json.RawMessage predicate on the desired_outcome_json field. -func (f *ControlObjectiveFilter) WhereDesiredOutcomeJSON(p entql.BytesP) { - f.Where(p.Field(controlobjective.FieldDesiredOutcomeJSON)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *ControlObjectiveFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldStatus)) -} - -// WhereSource applies the entql string predicate on the source field. -func (f *ControlObjectiveFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldSource)) -} - -// WhereControlObjectiveType applies the entql string predicate on the control_objective_type field. -func (f *ControlObjectiveFilter) WhereControlObjectiveType(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldControlObjectiveType)) -} - -// WhereCategory applies the entql string predicate on the category field. -func (f *ControlObjectiveFilter) WhereCategory(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldCategory)) -} - -// WhereSubcategory applies the entql string predicate on the subcategory field. -func (f *ControlObjectiveFilter) WhereSubcategory(p entql.StringP) { - f.Where(p.Field(controlobjective.FieldSubcategory)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ControlObjectiveFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) -} - -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *ControlObjectiveFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) -} - -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *ControlObjectiveFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) -} - -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *ControlObjectiveFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) -} - -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *ControlObjectiveFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) -} - -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasEvidence applies a predicate to check if query has an edge evidence. -func (f *ControlObjectiveFilter) WhereHasEvidence() { - f.Where(entql.HasEdge("evidence")) +func (f *DirectoryGroupFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldOwnerID)) } -// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { - f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *DirectoryGroupFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldEnvironmentName)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *ControlObjectiveFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *DirectoryGroupFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldEnvironmentID)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *DirectoryGroupFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldScopeName)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *ControlObjectiveFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *DirectoryGroupFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldScopeID)) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *DirectoryGroupFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldIntegrationID)) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *ControlObjectiveFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WherePlatformID applies the entql string predicate on the platform_id field. +func (f *DirectoryGroupFilter) WherePlatformID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldPlatformID)) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. +func (f *DirectoryGroupFilter) WhereDirectoryInstanceID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDirectoryInstanceID)) } -// WhereHasProcedures applies a predicate to check if query has an edge procedures. -func (f *ControlObjectiveFilter) WhereHasProcedures() { - f.Where(entql.HasEdge("procedures")) +// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. +func (f *DirectoryGroupFilter) WhereDirectorySyncRunID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDirectorySyncRunID)) } -// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *DirectoryGroupFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldExternalID)) } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *ControlObjectiveFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// WhereEmail applies the entql string predicate on the email field. +func (f *DirectoryGroupFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldEmail)) } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *DirectoryGroupFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDisplayName)) } -// WhereHasNarratives applies a predicate to check if query has an edge narratives. -func (f *ControlObjectiveFilter) WhereHasNarratives() { - f.Where(entql.HasEdge("narratives")) +// WhereDescription applies the entql string predicate on the description field. +func (f *DirectoryGroupFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDescription)) } -// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereClassification applies the entql string predicate on the classification field. +func (f *DirectoryGroupFilter) WhereClassification(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldClassification)) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *ControlObjectiveFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereStatus applies the entql string predicate on the status field. +func (f *DirectoryGroupFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldStatus)) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *ControlObjectiveFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExternalSharingAllowed applies the entql bool predicate on the external_sharing_allowed field. +func (f *DirectoryGroupFilter) WhereExternalSharingAllowed(p entql.BoolP) { + f.Where(p.Field(directorygroup.FieldExternalSharingAllowed)) } -// addPredicate implements the predicateAdder interface. -func (_q *CustomDomainQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereMemberCount applies the entql int predicate on the member_count field. +func (f *DirectoryGroupFilter) WhereMemberCount(p entql.IntP) { + f.Where(p.Field(directorygroup.FieldMemberCount)) } -// Filter returns a Filter implementation to apply filters on the CustomDomainQuery builder. -func (_q *CustomDomainQuery) Filter() *CustomDomainFilter { - return &CustomDomainFilter{config: _q.config, predicateAdder: _q} +// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. +func (f *DirectoryGroupFilter) WhereFirstSeenAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldFirstSeenAt)) } -// addPredicate implements the predicateAdder interface. -func (m *CustomDomainMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. +func (f *DirectoryGroupFilter) WhereLastSeenAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldLastSeenAt)) } -// Filter returns an entql.Where implementation to apply filters on the CustomDomainMutation builder. -func (m *CustomDomainMutation) Filter() *CustomDomainFilter { - return &CustomDomainFilter{config: m.config, predicateAdder: m} +// WhereAddedAt applies the entql time.Time predicate on the added_at field. +func (f *DirectoryGroupFilter) WhereAddedAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldAddedAt)) } -// CustomDomainFilter provides a generic filtering capability at runtime for CustomDomainQuery. -type CustomDomainFilter struct { - predicateAdder - config +// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. +func (f *DirectoryGroupFilter) WhereRemovedAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldRemovedAt)) } -// Where applies the entql predicate on the query filter. -func (f *CustomDomainFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *DirectoryGroupFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(directorygroup.FieldObservedAt)) } -// WhereID applies the entql string predicate on the id field. -func (f *CustomDomainFilter) WhereID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldID)) +// WhereProfileHash applies the entql string predicate on the profile_hash field. +func (f *DirectoryGroupFilter) WhereProfileHash(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldProfileHash)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *CustomDomainFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(customdomain.FieldCreatedAt)) +// WhereProfile applies the entql json.RawMessage predicate on the profile field. +func (f *DirectoryGroupFilter) WhereProfile(p entql.BytesP) { + f.Where(p.Field(directorygroup.FieldProfile)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *CustomDomainFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(customdomain.FieldUpdatedAt)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *DirectoryGroupFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(directorygroup.FieldMetadata)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *CustomDomainFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(customdomain.FieldCreatedBy)) +// WhereRawProfileFileID applies the entql string predicate on the raw_profile_file_id field. +func (f *DirectoryGroupFilter) WhereRawProfileFileID(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldRawProfileFileID)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *CustomDomainFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(customdomain.FieldUpdatedBy)) +// WhereSourceVersion applies the entql string predicate on the source_version field. +func (f *DirectoryGroupFilter) WhereSourceVersion(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldSourceVersion)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *CustomDomainFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(customdomain.FieldDeletedAt)) +// WhereDirectoryName applies the entql string predicate on the directory_name field. +func (f *DirectoryGroupFilter) WhereDirectoryName(p entql.StringP) { + f.Where(p.Field(directorygroup.FieldDirectoryName)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *CustomDomainFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(customdomain.FieldDeletedBy)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *DirectoryGroupFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *CustomDomainFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(customdomain.FieldTags)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *CustomDomainFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldOwnerID)) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *DirectoryGroupFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *CustomDomainFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(customdomain.FieldSystemOwned)) +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *CustomDomainFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(customdomain.FieldInternalNotes)) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *DirectoryGroupFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *CustomDomainFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldSystemInternalID)) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCnameRecord applies the entql string predicate on the cname_record field. -func (f *CustomDomainFilter) WhereCnameRecord(p entql.StringP) { - f.Where(p.Field(customdomain.FieldCnameRecord)) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *DirectoryGroupFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) +} + +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMappableDomainID applies the entql string predicate on the mappable_domain_id field. -func (f *CustomDomainFilter) WhereMappableDomainID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldMappableDomainID)) +// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. +func (f *DirectoryGroupFilter) WhereHasDirectorySyncRun() { + f.Where(entql.HasEdge("directory_sync_run")) } -// WhereDNSVerificationID applies the entql string predicate on the dns_verification_id field. -func (f *CustomDomainFilter) WhereDNSVerificationID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldDNSVerificationID)) +// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { + f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTrustCenterID applies the entql string predicate on the trust_center_id field. -func (f *CustomDomainFilter) WhereTrustCenterID(p entql.StringP) { - f.Where(p.Field(customdomain.FieldTrustCenterID)) +// WhereHasPlatform applies a predicate to check if query has an edge platform. +func (f *DirectoryGroupFilter) WhereHasPlatform() { + f.Where(entql.HasEdge("platform")) } -// WhereDomainType applies the entql string predicate on the domain_type field. -func (f *CustomDomainFilter) WhereDomainType(p entql.StringP) { - f.Where(p.Field(customdomain.FieldDomainType)) +// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasPlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *CustomDomainFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasAccounts applies a predicate to check if query has an edge accounts. +func (f *DirectoryGroupFilter) WhereHasAccounts() { + f.Where(entql.HasEdge("accounts")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *CustomDomainFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAccountsWith applies a predicate to check if query has an edge accounts with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasAccountsWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMappableDomain applies a predicate to check if query has an edge mappable_domain. -func (f *CustomDomainFilter) WhereHasMappableDomain() { - f.Where(entql.HasEdge("mappable_domain")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *DirectoryGroupFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasMappableDomainWith applies a predicate to check if query has an edge mappable_domain with a given conditions (other predicates). -func (f *CustomDomainFilter) WhereHasMappableDomainWith(preds ...predicate.MappableDomain) { - f.Where(entql.HasEdgeWith("mappable_domain", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDNSVerification applies a predicate to check if query has an edge dns_verification. -func (f *CustomDomainFilter) WhereHasDNSVerification() { - f.Where(entql.HasEdge("dns_verification")) +// WhereHasMembers applies a predicate to check if query has an edge members. +func (f *DirectoryGroupFilter) WhereHasMembers() { + f.Where(entql.HasEdge("members")) } -// WhereHasDNSVerificationWith applies a predicate to check if query has an edge dns_verification with a given conditions (other predicates). -func (f *CustomDomainFilter) WhereHasDNSVerificationWith(preds ...predicate.DNSVerification) { - f.Where(entql.HasEdgeWith("dns_verification", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). +func (f *DirectoryGroupFilter) WhereHasMembersWith(preds ...predicate.DirectoryMembership) { + f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -22074,426 +23964,309 @@ func (f *CustomDomainFilter) WhereHasDNSVerificationWith(preds ...predicate.DNSV } // addPredicate implements the predicateAdder interface. -func (_q *CustomTypeEnumQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *DirectoryMembershipQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the CustomTypeEnumQuery builder. -func (_q *CustomTypeEnumQuery) Filter() *CustomTypeEnumFilter { - return &CustomTypeEnumFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the DirectoryMembershipQuery builder. +func (_q *DirectoryMembershipQuery) Filter() *DirectoryMembershipFilter { + return &DirectoryMembershipFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *CustomTypeEnumMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DirectoryMembershipMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the CustomTypeEnumMutation builder. -func (m *CustomTypeEnumMutation) Filter() *CustomTypeEnumFilter { - return &CustomTypeEnumFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DirectoryMembershipMutation builder. +func (m *DirectoryMembershipMutation) Filter() *DirectoryMembershipFilter { + return &DirectoryMembershipFilter{config: m.config, predicateAdder: m} } -// CustomTypeEnumFilter provides a generic filtering capability at runtime for CustomTypeEnumQuery. -type CustomTypeEnumFilter struct { +// DirectoryMembershipFilter provides a generic filtering capability at runtime for DirectoryMembershipQuery. +type DirectoryMembershipFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *CustomTypeEnumFilter) Where(p entql.P) { +func (f *DirectoryMembershipFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[13].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[17].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *CustomTypeEnumFilter) WhereID(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldID)) +func (f *DirectoryMembershipFilter) WhereID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *CustomTypeEnumFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(customtypeenum.FieldCreatedAt)) +func (f *DirectoryMembershipFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *CustomTypeEnumFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(customtypeenum.FieldUpdatedAt)) +func (f *DirectoryMembershipFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *CustomTypeEnumFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldCreatedBy)) +func (f *DirectoryMembershipFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *CustomTypeEnumFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldUpdatedBy)) +func (f *DirectoryMembershipFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldUpdatedBy)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *CustomTypeEnumFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(customtypeenum.FieldDeletedAt)) +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *DirectoryMembershipFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDisplayID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *CustomTypeEnumFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldDeletedBy)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DirectoryMembershipFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldOwnerID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *CustomTypeEnumFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldOwnerID)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *DirectoryMembershipFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldEnvironmentName)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *CustomTypeEnumFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(customtypeenum.FieldSystemOwned)) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *DirectoryMembershipFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldEnvironmentID)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *CustomTypeEnumFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldInternalNotes)) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *DirectoryMembershipFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldScopeName)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *CustomTypeEnumFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldSystemInternalID)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *DirectoryMembershipFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldScopeID)) } -// WhereObjectType applies the entql string predicate on the object_type field. -func (f *CustomTypeEnumFilter) WhereObjectType(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldObjectType)) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *DirectoryMembershipFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldIntegrationID)) } -// WhereField applies the entql string predicate on the field field. -func (f *CustomTypeEnumFilter) WhereField(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldField)) +// WherePlatformID applies the entql string predicate on the platform_id field. +func (f *DirectoryMembershipFilter) WherePlatformID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldPlatformID)) } -// WhereName applies the entql string predicate on the name field. -func (f *CustomTypeEnumFilter) WhereName(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldName)) +// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. +func (f *DirectoryMembershipFilter) WhereDirectoryInstanceID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDirectoryInstanceID)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *CustomTypeEnumFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldDescription)) +// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. +func (f *DirectoryMembershipFilter) WhereDirectorySyncRunID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDirectorySyncRunID)) } -// WhereColor applies the entql string predicate on the color field. -func (f *CustomTypeEnumFilter) WhereColor(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldColor)) +// WhereDirectoryAccountID applies the entql string predicate on the directory_account_id field. +func (f *DirectoryMembershipFilter) WhereDirectoryAccountID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDirectoryAccountID)) } -// WhereIcon applies the entql string predicate on the icon field. -func (f *CustomTypeEnumFilter) WhereIcon(p entql.StringP) { - f.Where(p.Field(customtypeenum.FieldIcon)) +// WhereDirectoryGroupID applies the entql string predicate on the directory_group_id field. +func (f *DirectoryMembershipFilter) WhereDirectoryGroupID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDirectoryGroupID)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *CustomTypeEnumFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereRole applies the entql string predicate on the role field. +func (f *DirectoryMembershipFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldRole)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSource applies the entql string predicate on the source field. +func (f *DirectoryMembershipFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldSource)) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *CustomTypeEnumFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereDirectoryName applies the entql string predicate on the directory_name field. +func (f *DirectoryMembershipFilter) WhereDirectoryName(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldDirectoryName)) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. +func (f *DirectoryMembershipFilter) WhereFirstSeenAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldFirstSeenAt)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *CustomTypeEnumFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. +func (f *DirectoryMembershipFilter) WhereLastSeenAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldLastSeenAt)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereAddedAt applies the entql time.Time predicate on the added_at field. +func (f *DirectoryMembershipFilter) WhereAddedAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldAddedAt)) +} + +// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. +func (f *DirectoryMembershipFilter) WhereRemovedAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldRemovedAt)) +} + +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *DirectoryMembershipFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(directorymembership.FieldObservedAt)) +} + +// WhereLastConfirmedRunID applies the entql string predicate on the last_confirmed_run_id field. +func (f *DirectoryMembershipFilter) WhereLastConfirmedRunID(p entql.StringP) { + f.Where(p.Field(directorymembership.FieldLastConfirmedRunID)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *DirectoryMembershipFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(directorymembership.FieldMetadata)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *CustomTypeEnumFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *DirectoryMembershipFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *CustomTypeEnumFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *DirectoryMembershipFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRiskCategories applies a predicate to check if query has an edge risk_categories. -func (f *CustomTypeEnumFilter) WhereHasRiskCategories() { - f.Where(entql.HasEdge("risk_categories")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *DirectoryMembershipFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasRiskCategoriesWith applies a predicate to check if query has an edge risk_categories with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasRiskCategoriesWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk_categories", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *CustomTypeEnumFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *DirectoryMembershipFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedures applies a predicate to check if query has an edge procedures. -func (f *CustomTypeEnumFilter) WhereHasProcedures() { - f.Where(entql.HasEdge("procedures")) +// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. +func (f *DirectoryMembershipFilter) WhereHasDirectorySyncRun() { + f.Where(entql.HasEdge("directory_sync_run")) } -// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { + f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. -func (f *CustomTypeEnumFilter) WhereHasActionPlans() { - f.Where(entql.HasEdge("action_plans")) +// WhereHasPlatform applies a predicate to check if query has an edge platform. +func (f *DirectoryMembershipFilter) WhereHasPlatform() { + f.Where(entql.HasEdge("platform")) } -// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasPlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *CustomTypeEnumFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// WhereHasDirectoryAccount applies a predicate to check if query has an edge directory_account. +func (f *DirectoryMembershipFilter) WhereHasDirectoryAccount() { + f.Where(entql.HasEdge("directory_account")) } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryAccountWith applies a predicate to check if query has an edge directory_account with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasDirectoryAccountWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("directory_account", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *CustomTypeEnumFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereHasDirectoryGroup applies a predicate to check if query has an edge directory_group. +func (f *DirectoryMembershipFilter) WhereHasDirectoryGroup() { + f.Where(entql.HasEdge("directory_group")) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *CustomTypeEnumFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryGroupWith applies a predicate to check if query has an edge directory_group with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasDirectoryGroupWith(preds ...predicate.DirectoryGroup) { + f.Where(entql.HasEdgeWith("directory_group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *DNSVerificationQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the DNSVerificationQuery builder. -func (_q *DNSVerificationQuery) Filter() *DNSVerificationFilter { - return &DNSVerificationFilter{config: _q.config, predicateAdder: _q} -} - -// addPredicate implements the predicateAdder interface. -func (m *DNSVerificationMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the DNSVerificationMutation builder. -func (m *DNSVerificationMutation) Filter() *DNSVerificationFilter { - return &DNSVerificationFilter{config: m.config, predicateAdder: m} -} - -// DNSVerificationFilter provides a generic filtering capability at runtime for DNSVerificationQuery. -type DNSVerificationFilter struct { - predicateAdder - config -} - -// Where applies the entql predicate on the query filter. -func (f *DNSVerificationFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { - s.AddError(err) - } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *DNSVerificationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DNSVerificationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(dnsverification.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DNSVerificationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(dnsverification.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DNSVerificationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DNSVerificationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *DNSVerificationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(dnsverification.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *DNSVerificationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldDeletedBy)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DNSVerificationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(dnsverification.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DNSVerificationFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldOwnerID)) -} - -// WhereCloudflareHostnameID applies the entql string predicate on the cloudflare_hostname_id field. -func (f *DNSVerificationFilter) WhereCloudflareHostnameID(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldCloudflareHostnameID)) -} - -// WhereDNSTxtRecord applies the entql string predicate on the dns_txt_record field. -func (f *DNSVerificationFilter) WhereDNSTxtRecord(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldDNSTxtRecord)) -} - -// WhereDNSTxtValue applies the entql string predicate on the dns_txt_value field. -func (f *DNSVerificationFilter) WhereDNSTxtValue(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldDNSTxtValue)) -} - -// WhereDNSVerificationStatus applies the entql string predicate on the dns_verification_status field. -func (f *DNSVerificationFilter) WhereDNSVerificationStatus(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldDNSVerificationStatus)) -} - -// WhereDNSVerificationStatusReason applies the entql string predicate on the dns_verification_status_reason field. -func (f *DNSVerificationFilter) WhereDNSVerificationStatusReason(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldDNSVerificationStatusReason)) -} - -// WhereAcmeChallengePath applies the entql string predicate on the acme_challenge_path field. -func (f *DNSVerificationFilter) WhereAcmeChallengePath(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldAcmeChallengePath)) -} - -// WhereExpectedAcmeChallengeValue applies the entql string predicate on the expected_acme_challenge_value field. -func (f *DNSVerificationFilter) WhereExpectedAcmeChallengeValue(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldExpectedAcmeChallengeValue)) -} - -// WhereAcmeChallengeStatus applies the entql string predicate on the acme_challenge_status field. -func (f *DNSVerificationFilter) WhereAcmeChallengeStatus(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldAcmeChallengeStatus)) -} - -// WhereAcmeChallengeStatusReason applies the entql string predicate on the acme_challenge_status_reason field. -func (f *DNSVerificationFilter) WhereAcmeChallengeStatusReason(p entql.StringP) { - f.Where(p.Field(dnsverification.FieldAcmeChallengeStatusReason)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DNSVerificationFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *DirectoryMembershipFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DNSVerificationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCustomDomains applies a predicate to check if query has an edge custom_domains. -func (f *DNSVerificationFilter) WhereHasCustomDomains() { - f.Where(entql.HasEdge("custom_domains")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *DirectoryMembershipFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasCustomDomainsWith applies a predicate to check if query has an edge custom_domains with a given conditions (other predicates). -func (f *DNSVerificationFilter) WhereHasCustomDomainsWith(preds ...predicate.CustomDomain) { - f.Where(entql.HasEdgeWith("custom_domains", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *DirectoryMembershipFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -22501,287 +24274,162 @@ func (f *DNSVerificationFilter) WhereHasCustomDomainsWith(preds ...predicate.Cus } // addPredicate implements the predicateAdder interface. -func (_q *DirectoryAccountQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *DirectorySyncRunQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DirectoryAccountQuery builder. -func (_q *DirectoryAccountQuery) Filter() *DirectoryAccountFilter { - return &DirectoryAccountFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the DirectorySyncRunQuery builder. +func (_q *DirectorySyncRunQuery) Filter() *DirectorySyncRunFilter { + return &DirectorySyncRunFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *DirectoryAccountMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DirectorySyncRunMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DirectoryAccountMutation builder. -func (m *DirectoryAccountMutation) Filter() *DirectoryAccountFilter { - return &DirectoryAccountFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DirectorySyncRunMutation builder. +func (m *DirectorySyncRunMutation) Filter() *DirectorySyncRunFilter { + return &DirectorySyncRunFilter{config: m.config, predicateAdder: m} } -// DirectoryAccountFilter provides a generic filtering capability at runtime for DirectoryAccountQuery. -type DirectoryAccountFilter struct { +// DirectorySyncRunFilter provides a generic filtering capability at runtime for DirectorySyncRunQuery. +type DirectorySyncRunFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DirectoryAccountFilter) Where(p entql.P) { +func (f *DirectorySyncRunFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[15].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *DirectoryAccountFilter) WhereID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldID)) +func (f *DirectorySyncRunFilter) WhereID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DirectoryAccountFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldCreatedAt)) +func (f *DirectorySyncRunFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(directorysyncrun.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DirectoryAccountFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldUpdatedAt)) +func (f *DirectorySyncRunFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(directorysyncrun.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DirectoryAccountFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldCreatedBy)) +func (f *DirectorySyncRunFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DirectoryAccountFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldUpdatedBy)) +func (f *DirectorySyncRunFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldUpdatedBy)) } // WhereDisplayID applies the entql string predicate on the display_id field. -func (f *DirectoryAccountFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDisplayID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DirectoryAccountFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(directoryaccount.FieldTags)) +func (f *DirectorySyncRunFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldDisplayID)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DirectoryAccountFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldOwnerID)) +func (f *DirectorySyncRunFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldOwnerID)) } // WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *DirectoryAccountFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldEnvironmentName)) +func (f *DirectorySyncRunFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldEnvironmentName)) } // WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *DirectoryAccountFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldEnvironmentID)) +func (f *DirectorySyncRunFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldEnvironmentID)) } // WhereScopeName applies the entql string predicate on the scope_name field. -func (f *DirectoryAccountFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldScopeName)) +func (f *DirectorySyncRunFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldScopeName)) } // WhereScopeID applies the entql string predicate on the scope_id field. -func (f *DirectoryAccountFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldScopeID)) +func (f *DirectorySyncRunFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldScopeID)) } // WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *DirectoryAccountFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldIntegrationID)) -} - -// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. -func (f *DirectoryAccountFilter) WhereDirectorySyncRunID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDirectorySyncRunID)) +func (f *DirectorySyncRunFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldIntegrationID)) } // WherePlatformID applies the entql string predicate on the platform_id field. -func (f *DirectoryAccountFilter) WherePlatformID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldPlatformID)) +func (f *DirectorySyncRunFilter) WherePlatformID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldPlatformID)) } // WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. -func (f *DirectoryAccountFilter) WhereDirectoryInstanceID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDirectoryInstanceID)) -} - -// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. -func (f *DirectoryAccountFilter) WhereIdentityHolderID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldIdentityHolderID)) -} - -// WhereDirectoryName applies the entql string predicate on the directory_name field. -func (f *DirectoryAccountFilter) WhereDirectoryName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDirectoryName)) -} - -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *DirectoryAccountFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldExternalID)) -} - -// WhereSecondaryKey applies the entql string predicate on the secondary_key field. -func (f *DirectoryAccountFilter) WhereSecondaryKey(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldSecondaryKey)) -} - -// WhereCanonicalEmail applies the entql string predicate on the canonical_email field. -func (f *DirectoryAccountFilter) WhereCanonicalEmail(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldCanonicalEmail)) -} - -// WhereEmailAliases applies the entql json.RawMessage predicate on the email_aliases field. -func (f *DirectoryAccountFilter) WhereEmailAliases(p entql.BytesP) { - f.Where(p.Field(directoryaccount.FieldEmailAliases)) -} - -// WherePhoneNumber applies the entql string predicate on the phone_number field. -func (f *DirectoryAccountFilter) WherePhoneNumber(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldPhoneNumber)) -} - -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *DirectoryAccountFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDisplayName)) -} - -// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. -func (f *DirectoryAccountFilter) WhereAvatarRemoteURL(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldAvatarRemoteURL)) -} - -// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. -func (f *DirectoryAccountFilter) WhereAvatarLocalFileID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldAvatarLocalFileID)) -} - -// WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field. -func (f *DirectoryAccountFilter) WhereAvatarUpdatedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldAvatarUpdatedAt)) -} - -// WhereGivenName applies the entql string predicate on the given_name field. -func (f *DirectoryAccountFilter) WhereGivenName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldGivenName)) -} - -// WhereFamilyName applies the entql string predicate on the family_name field. -func (f *DirectoryAccountFilter) WhereFamilyName(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldFamilyName)) -} - -// WhereJobTitle applies the entql string predicate on the job_title field. -func (f *DirectoryAccountFilter) WhereJobTitle(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldJobTitle)) -} - -// WhereDepartment applies the entql string predicate on the department field. -func (f *DirectoryAccountFilter) WhereDepartment(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldDepartment)) -} - -// WhereOrganizationUnit applies the entql string predicate on the organization_unit field. -func (f *DirectoryAccountFilter) WhereOrganizationUnit(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldOrganizationUnit)) -} - -// WhereAccountType applies the entql string predicate on the account_type field. -func (f *DirectoryAccountFilter) WhereAccountType(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldAccountType)) +func (f *DirectorySyncRunFilter) WhereDirectoryInstanceID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldDirectoryInstanceID)) } // WhereStatus applies the entql string predicate on the status field. -func (f *DirectoryAccountFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldStatus)) -} - -// WhereMfaState applies the entql string predicate on the mfa_state field. -func (f *DirectoryAccountFilter) WhereMfaState(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldMfaState)) -} - -// WhereLastSeenIP applies the entql string predicate on the last_seen_ip field. -func (f *DirectoryAccountFilter) WhereLastSeenIP(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldLastSeenIP)) -} - -// WhereLastLoginAt applies the entql time.Time predicate on the last_login_at field. -func (f *DirectoryAccountFilter) WhereLastLoginAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldLastLoginAt)) -} - -// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. -func (f *DirectoryAccountFilter) WhereFirstSeenAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldFirstSeenAt)) -} - -// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. -func (f *DirectoryAccountFilter) WhereLastSeenAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldLastSeenAt)) -} - -// WhereAddedAt applies the entql time.Time predicate on the added_at field. -func (f *DirectoryAccountFilter) WhereAddedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldAddedAt)) +func (f *DirectorySyncRunFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldStatus)) } -// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. -func (f *DirectoryAccountFilter) WhereRemovedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldRemovedAt)) +// WhereStartedAt applies the entql time.Time predicate on the started_at field. +func (f *DirectorySyncRunFilter) WhereStartedAt(p entql.TimeP) { + f.Where(p.Field(directorysyncrun.FieldStartedAt)) } -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *DirectoryAccountFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(directoryaccount.FieldObservedAt)) +// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. +func (f *DirectorySyncRunFilter) WhereCompletedAt(p entql.TimeP) { + f.Where(p.Field(directorysyncrun.FieldCompletedAt)) } -// WhereProfileHash applies the entql string predicate on the profile_hash field. -func (f *DirectoryAccountFilter) WhereProfileHash(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldProfileHash)) +// WhereSourceCursor applies the entql string predicate on the source_cursor field. +func (f *DirectorySyncRunFilter) WhereSourceCursor(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldSourceCursor)) } -// WhereProfile applies the entql json.RawMessage predicate on the profile field. -func (f *DirectoryAccountFilter) WhereProfile(p entql.BytesP) { - f.Where(p.Field(directoryaccount.FieldProfile)) +// WhereFullCount applies the entql int predicate on the full_count field. +func (f *DirectorySyncRunFilter) WhereFullCount(p entql.IntP) { + f.Where(p.Field(directorysyncrun.FieldFullCount)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *DirectoryAccountFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(directoryaccount.FieldMetadata)) +// WhereDeltaCount applies the entql int predicate on the delta_count field. +func (f *DirectorySyncRunFilter) WhereDeltaCount(p entql.IntP) { + f.Where(p.Field(directorysyncrun.FieldDeltaCount)) } -// WhereRawProfileFileID applies the entql string predicate on the raw_profile_file_id field. -func (f *DirectoryAccountFilter) WhereRawProfileFileID(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldRawProfileFileID)) +// WhereError applies the entql string predicate on the error field. +func (f *DirectorySyncRunFilter) WhereError(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldError)) } -// WhereSourceVersion applies the entql string predicate on the source_version field. -func (f *DirectoryAccountFilter) WhereSourceVersion(p entql.StringP) { - f.Where(p.Field(directoryaccount.FieldSourceVersion)) +// WhereRawManifestFileID applies the entql string predicate on the raw_manifest_file_id field. +func (f *DirectorySyncRunFilter) WhereRawManifestFileID(p entql.StringP) { + f.Where(p.Field(directorysyncrun.FieldRawManifestFileID)) } -// WherePrimarySource applies the entql bool predicate on the primary_source field. -func (f *DirectoryAccountFilter) WherePrimarySource(p entql.BoolP) { - f.Where(p.Field(directoryaccount.FieldPrimarySource)) +// WhereStats applies the entql json.RawMessage predicate on the stats field. +func (f *DirectorySyncRunFilter) WhereStats(p entql.BytesP) { + f.Where(p.Field(directorysyncrun.FieldStats)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DirectoryAccountFilter) WhereHasOwner() { +func (f *DirectorySyncRunFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *DirectorySyncRunFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -22790,12 +24438,12 @@ func (f *DirectoryAccountFilter) WhereHasOwnerWith(preds ...predicate.Organizati } // WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *DirectoryAccountFilter) WhereHasEnvironment() { +func (f *DirectorySyncRunFilter) WhereHasEnvironment() { f.Where(entql.HasEdge("environment")) } // WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { +func (f *DirectorySyncRunFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -22804,12 +24452,12 @@ func (f *DirectoryAccountFilter) WhereHasEnvironmentWith(preds ...predicate.Cust } // WhereHasScope applies a predicate to check if query has an edge scope. -func (f *DirectoryAccountFilter) WhereHasScope() { +func (f *DirectorySyncRunFilter) WhereHasScope() { f.Where(entql.HasEdge("scope")) } // WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { +func (f *DirectorySyncRunFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -22818,12 +24466,12 @@ func (f *DirectoryAccountFilter) WhereHasScopeWith(preds ...predicate.CustomType } // WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *DirectoryAccountFilter) WhereHasIntegration() { +func (f *DirectorySyncRunFilter) WhereHasIntegration() { f.Where(entql.HasEdge("integration")) } // WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { +func (f *DirectorySyncRunFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -22831,27 +24479,13 @@ func (f *DirectoryAccountFilter) WhereHasIntegrationWith(preds ...predicate.Inte }))) } -// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. -func (f *DirectoryAccountFilter) WhereHasDirectorySyncRun() { - f.Where(entql.HasEdge("directory_sync_run")) -} - -// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { - f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - // WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *DirectoryAccountFilter) WhereHasPlatform() { +func (f *DirectorySyncRunFilter) WhereHasPlatform() { f.Where(entql.HasEdge("platform")) } // WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasPlatformWith(preds ...predicate.Platform) { +func (f *DirectorySyncRunFilter) WhereHasPlatformWith(preds ...predicate.Platform) { f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -22859,84 +24493,42 @@ func (f *DirectoryAccountFilter) WhereHasPlatformWith(preds ...predicate.Platfor }))) } -// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. -func (f *DirectoryAccountFilter) WhereHasIdentityHolder() { - f.Where(entql.HasEdge("identity_holder")) -} - -// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasAvatarFile applies a predicate to check if query has an edge avatar_file. -func (f *DirectoryAccountFilter) WhereHasAvatarFile() { - f.Where(entql.HasEdge("avatar_file")) -} - -// WhereHasAvatarFileWith applies a predicate to check if query has an edge avatar_file with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasAvatarFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("avatar_file", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *DirectoryAccountFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) -} - -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasGroupsWith(preds ...predicate.DirectoryGroup) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *DirectoryAccountFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. +func (f *DirectorySyncRunFilter) WhereHasDirectoryAccounts() { + f.Where(entql.HasEdge("directory_accounts")) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). +func (f *DirectorySyncRunFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *DirectoryAccountFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasDirectoryGroups applies a predicate to check if query has an edge directory_groups. +func (f *DirectorySyncRunFilter) WhereHasDirectoryGroups() { + f.Where(entql.HasEdge("directory_groups")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryGroupsWith applies a predicate to check if query has an edge directory_groups with a given conditions (other predicates). +func (f *DirectorySyncRunFilter) WhereHasDirectoryGroupsWith(preds ...predicate.DirectoryGroup) { + f.Where(entql.HasEdgeWith("directory_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMemberships applies a predicate to check if query has an edge memberships. -func (f *DirectoryAccountFilter) WhereHasMemberships() { - f.Where(entql.HasEdge("memberships")) +// WhereHasDirectoryMemberships applies a predicate to check if query has an edge directory_memberships. +func (f *DirectorySyncRunFilter) WhereHasDirectoryMemberships() { + f.Where(entql.HasEdge("directory_memberships")) } -// WhereHasMembershipsWith applies a predicate to check if query has an edge memberships with a given conditions (other predicates). -func (f *DirectoryAccountFilter) WhereHasMembershipsWith(preds ...predicate.DirectoryMembership) { - f.Where(entql.HasEdgeWith("memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryMembershipsWith applies a predicate to check if query has an edge directory_memberships with a given conditions (other predicates). +func (f *DirectorySyncRunFilter) WhereHasDirectoryMembershipsWith(preds ...predicate.DirectoryMembership) { + f.Where(entql.HasEdgeWith("directory_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -22944,222 +24536,97 @@ func (f *DirectoryAccountFilter) WhereHasMembershipsWith(preds ...predicate.Dire } // addPredicate implements the predicateAdder interface. -func (_q *DirectoryGroupQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *DiscussionQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DirectoryGroupQuery builder. -func (_q *DirectoryGroupQuery) Filter() *DirectoryGroupFilter { - return &DirectoryGroupFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the DiscussionQuery builder. +func (_q *DiscussionQuery) Filter() *DiscussionFilter { + return &DiscussionFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *DirectoryGroupMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DiscussionMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DirectoryGroupMutation builder. -func (m *DirectoryGroupMutation) Filter() *DirectoryGroupFilter { - return &DirectoryGroupFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DiscussionMutation builder. +func (m *DiscussionMutation) Filter() *DiscussionFilter { + return &DiscussionFilter{config: m.config, predicateAdder: m} } -// DirectoryGroupFilter provides a generic filtering capability at runtime for DirectoryGroupQuery. -type DirectoryGroupFilter struct { +// DiscussionFilter provides a generic filtering capability at runtime for DiscussionQuery. +type DiscussionFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DirectoryGroupFilter) Where(p entql.P) { +func (f *DiscussionFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { - s.AddError(err) - } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *DirectoryGroupFilter) WhereID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DirectoryGroupFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DirectoryGroupFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DirectoryGroupFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DirectoryGroupFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldUpdatedBy)) -} - -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *DirectoryGroupFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDisplayID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DirectoryGroupFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(directorygroup.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DirectoryGroupFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldOwnerID)) -} - -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *DirectoryGroupFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldEnvironmentName)) -} - -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *DirectoryGroupFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldEnvironmentID)) -} - -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *DirectoryGroupFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldScopeName)) -} - -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *DirectoryGroupFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldScopeID)) -} - -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *DirectoryGroupFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldIntegrationID)) -} - -// WherePlatformID applies the entql string predicate on the platform_id field. -func (f *DirectoryGroupFilter) WherePlatformID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldPlatformID)) -} - -// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. -func (f *DirectoryGroupFilter) WhereDirectoryInstanceID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDirectoryInstanceID)) -} - -// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. -func (f *DirectoryGroupFilter) WhereDirectorySyncRunID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDirectorySyncRunID)) -} - -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *DirectoryGroupFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldExternalID)) -} - -// WhereEmail applies the entql string predicate on the email field. -func (f *DirectoryGroupFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldEmail)) -} - -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *DirectoryGroupFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDisplayName)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *DirectoryGroupFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDescription)) -} - -// WhereClassification applies the entql string predicate on the classification field. -func (f *DirectoryGroupFilter) WhereClassification(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldClassification)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *DirectoryGroupFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldStatus)) -} - -// WhereExternalSharingAllowed applies the entql bool predicate on the external_sharing_allowed field. -func (f *DirectoryGroupFilter) WhereExternalSharingAllowed(p entql.BoolP) { - f.Where(p.Field(directorygroup.FieldExternalSharingAllowed)) -} - -// WhereMemberCount applies the entql int predicate on the member_count field. -func (f *DirectoryGroupFilter) WhereMemberCount(p entql.IntP) { - f.Where(p.Field(directorygroup.FieldMemberCount)) -} - -// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. -func (f *DirectoryGroupFilter) WhereFirstSeenAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldFirstSeenAt)) + if err := schemaGraph.EvalP(schemaGraph.Nodes[19].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. -func (f *DirectoryGroupFilter) WhereLastSeenAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldLastSeenAt)) +// WhereID applies the entql string predicate on the id field. +func (f *DiscussionFilter) WhereID(p entql.StringP) { + f.Where(p.Field(discussion.FieldID)) } -// WhereAddedAt applies the entql time.Time predicate on the added_at field. -func (f *DirectoryGroupFilter) WhereAddedAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldAddedAt)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *DiscussionFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(discussion.FieldCreatedAt)) } -// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. -func (f *DirectoryGroupFilter) WhereRemovedAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldRemovedAt)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *DiscussionFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(discussion.FieldUpdatedAt)) } -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *DirectoryGroupFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(directorygroup.FieldObservedAt)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *DiscussionFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(discussion.FieldCreatedBy)) } -// WhereProfileHash applies the entql string predicate on the profile_hash field. -func (f *DirectoryGroupFilter) WhereProfileHash(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldProfileHash)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *DiscussionFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(discussion.FieldUpdatedBy)) } -// WhereProfile applies the entql json.RawMessage predicate on the profile field. -func (f *DirectoryGroupFilter) WhereProfile(p entql.BytesP) { - f.Where(p.Field(directorygroup.FieldProfile)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *DiscussionFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(discussion.FieldDeletedAt)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *DirectoryGroupFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(directorygroup.FieldMetadata)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *DiscussionFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(discussion.FieldDeletedBy)) } -// WhereRawProfileFileID applies the entql string predicate on the raw_profile_file_id field. -func (f *DirectoryGroupFilter) WhereRawProfileFileID(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldRawProfileFileID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DiscussionFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(discussion.FieldOwnerID)) } -// WhereSourceVersion applies the entql string predicate on the source_version field. -func (f *DirectoryGroupFilter) WhereSourceVersion(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldSourceVersion)) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *DiscussionFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(discussion.FieldExternalID)) } -// WhereDirectoryName applies the entql string predicate on the directory_name field. -func (f *DirectoryGroupFilter) WhereDirectoryName(p entql.StringP) { - f.Where(p.Field(directorygroup.FieldDirectoryName)) +// WhereIsResolved applies the entql bool predicate on the is_resolved field. +func (f *DiscussionFilter) WhereIsResolved(p entql.BoolP) { + f.Where(p.Field(discussion.FieldIsResolved)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DirectoryGroupFilter) WhereHasOwner() { +func (f *DiscussionFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *DiscussionFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23167,112 +24634,84 @@ func (f *DirectoryGroupFilter) WhereHasOwnerWith(preds ...predicate.Organization }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *DirectoryGroupFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) -} - -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *DirectoryGroupFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) -} - -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *DirectoryGroupFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasComments applies a predicate to check if query has an edge comments. +func (f *DiscussionFilter) WhereHasComments() { + f.Where(entql.HasEdge("comments")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasCommentsWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. -func (f *DirectoryGroupFilter) WhereHasDirectorySyncRun() { - f.Where(entql.HasEdge("directory_sync_run")) +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *DiscussionFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) } -// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { - f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *DirectoryGroupFilter) WhereHasPlatform() { - f.Where(entql.HasEdge("platform")) +// WhereHasSubcontrol applies a predicate to check if query has an edge subcontrol. +func (f *DiscussionFilter) WhereHasSubcontrol() { + f.Where(entql.HasEdge("subcontrol")) } -// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasPlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolWith applies a predicate to check if query has an edge subcontrol with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasSubcontrolWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrol", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAccounts applies a predicate to check if query has an edge accounts. -func (f *DirectoryGroupFilter) WhereHasAccounts() { - f.Where(entql.HasEdge("accounts")) +// WhereHasProcedure applies a predicate to check if query has an edge procedure. +func (f *DiscussionFilter) WhereHasProcedure() { + f.Where(entql.HasEdge("procedure")) } -// WhereHasAccountsWith applies a predicate to check if query has an edge accounts with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasAccountsWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *DirectoryGroupFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasRisk applies a predicate to check if query has an edge risk. +func (f *DiscussionFilter) WhereHasRisk() { + f.Where(entql.HasEdge("risk")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRiskWith applies a predicate to check if query has an edge risk with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasRiskWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMembers applies a predicate to check if query has an edge members. -func (f *DirectoryGroupFilter) WhereHasMembers() { - f.Where(entql.HasEdge("members")) +// WhereHasInternalPolicy applies a predicate to check if query has an edge internal_policy. +func (f *DiscussionFilter) WhereHasInternalPolicy() { + f.Where(entql.HasEdge("internal_policy")) } -// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). -func (f *DirectoryGroupFilter) WhereHasMembersWith(preds ...predicate.DirectoryMembership) { - f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicyWith applies a predicate to check if query has an edge internal_policy with a given conditions (other predicates). +func (f *DiscussionFilter) WhereHasInternalPolicyWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policy", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -23280,182 +24719,122 @@ func (f *DirectoryGroupFilter) WhereHasMembersWith(preds ...predicate.DirectoryM } // addPredicate implements the predicateAdder interface. -func (_q *DirectoryMembershipQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *DocumentDataQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DirectoryMembershipQuery builder. -func (_q *DirectoryMembershipQuery) Filter() *DirectoryMembershipFilter { - return &DirectoryMembershipFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the DocumentDataQuery builder. +func (_q *DocumentDataQuery) Filter() *DocumentDataFilter { + return &DocumentDataFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *DirectoryMembershipMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DocumentDataMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DirectoryMembershipMutation builder. -func (m *DirectoryMembershipMutation) Filter() *DirectoryMembershipFilter { - return &DirectoryMembershipFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DocumentDataMutation builder. +func (m *DocumentDataMutation) Filter() *DocumentDataFilter { + return &DocumentDataFilter{config: m.config, predicateAdder: m} } -// DirectoryMembershipFilter provides a generic filtering capability at runtime for DirectoryMembershipQuery. -type DirectoryMembershipFilter struct { +// DocumentDataFilter provides a generic filtering capability at runtime for DocumentDataQuery. +type DocumentDataFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DirectoryMembershipFilter) Where(p entql.P) { +func (f *DocumentDataFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[17].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[20].Type, p, s); err != nil { s.AddError(err) } }) } -// WhereID applies the entql string predicate on the id field. -func (f *DirectoryMembershipFilter) WhereID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DirectoryMembershipFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DirectoryMembershipFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DirectoryMembershipFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DirectoryMembershipFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldUpdatedBy)) -} - -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *DirectoryMembershipFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDisplayID)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DirectoryMembershipFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldOwnerID)) -} - -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *DirectoryMembershipFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldEnvironmentName)) -} - -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *DirectoryMembershipFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldEnvironmentID)) -} - -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *DirectoryMembershipFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldScopeName)) -} - -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *DirectoryMembershipFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldScopeID)) -} - -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *DirectoryMembershipFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldIntegrationID)) -} - -// WherePlatformID applies the entql string predicate on the platform_id field. -func (f *DirectoryMembershipFilter) WherePlatformID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldPlatformID)) -} - -// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. -func (f *DirectoryMembershipFilter) WhereDirectoryInstanceID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDirectoryInstanceID)) +// WhereID applies the entql string predicate on the id field. +func (f *DocumentDataFilter) WhereID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldID)) } -// WhereDirectorySyncRunID applies the entql string predicate on the directory_sync_run_id field. -func (f *DirectoryMembershipFilter) WhereDirectorySyncRunID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDirectorySyncRunID)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *DocumentDataFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldCreatedAt)) } -// WhereDirectoryAccountID applies the entql string predicate on the directory_account_id field. -func (f *DirectoryMembershipFilter) WhereDirectoryAccountID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDirectoryAccountID)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *DocumentDataFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldUpdatedAt)) } -// WhereDirectoryGroupID applies the entql string predicate on the directory_group_id field. -func (f *DirectoryMembershipFilter) WhereDirectoryGroupID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDirectoryGroupID)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *DocumentDataFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldCreatedBy)) } -// WhereRole applies the entql string predicate on the role field. -func (f *DirectoryMembershipFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldRole)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *DocumentDataFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldUpdatedBy)) } -// WhereSource applies the entql string predicate on the source field. -func (f *DirectoryMembershipFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldSource)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *DocumentDataFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldDeletedAt)) } -// WhereDirectoryName applies the entql string predicate on the directory_name field. -func (f *DirectoryMembershipFilter) WhereDirectoryName(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldDirectoryName)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *DocumentDataFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldDeletedBy)) } -// WhereFirstSeenAt applies the entql time.Time predicate on the first_seen_at field. -func (f *DirectoryMembershipFilter) WhereFirstSeenAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldFirstSeenAt)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *DocumentDataFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(documentdata.FieldTags)) } -// WhereLastSeenAt applies the entql time.Time predicate on the last_seen_at field. -func (f *DirectoryMembershipFilter) WhereLastSeenAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldLastSeenAt)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DocumentDataFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldOwnerID)) } -// WhereAddedAt applies the entql time.Time predicate on the added_at field. -func (f *DirectoryMembershipFilter) WhereAddedAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldAddedAt)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *DocumentDataFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(documentdata.FieldEnvironmentName)) } -// WhereRemovedAt applies the entql time.Time predicate on the removed_at field. -func (f *DirectoryMembershipFilter) WhereRemovedAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldRemovedAt)) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *DocumentDataFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldEnvironmentID)) } -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *DirectoryMembershipFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(directorymembership.FieldObservedAt)) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *DocumentDataFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(documentdata.FieldScopeName)) } -// WhereLastConfirmedRunID applies the entql string predicate on the last_confirmed_run_id field. -func (f *DirectoryMembershipFilter) WhereLastConfirmedRunID(p entql.StringP) { - f.Where(p.Field(directorymembership.FieldLastConfirmedRunID)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *DocumentDataFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldScopeID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *DirectoryMembershipFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(directorymembership.FieldMetadata)) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *DocumentDataFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldTemplateID)) +} + +// WhereData applies the entql json.RawMessage predicate on the data field. +func (f *DocumentDataFilter) WhereData(p entql.BytesP) { + f.Where(p.Field(documentdata.FieldData)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DirectoryMembershipFilter) WhereHasOwner() { +func (f *DocumentDataFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *DocumentDataFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23464,12 +24843,12 @@ func (f *DirectoryMembershipFilter) WhereHasOwnerWith(preds ...predicate.Organiz } // WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *DirectoryMembershipFilter) WhereHasEnvironment() { +func (f *DocumentDataFilter) WhereHasEnvironment() { f.Where(entql.HasEdge("environment")) } // WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { +func (f *DocumentDataFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23478,12 +24857,12 @@ func (f *DirectoryMembershipFilter) WhereHasEnvironmentWith(preds ...predicate.C } // WhereHasScope applies a predicate to check if query has an edge scope. -func (f *DirectoryMembershipFilter) WhereHasScope() { +func (f *DocumentDataFilter) WhereHasScope() { f.Where(entql.HasEdge("scope")) } // WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { +func (f *DocumentDataFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23491,261 +24870,245 @@ func (f *DirectoryMembershipFilter) WhereHasScopeWith(preds ...predicate.CustomT }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *DirectoryMembershipFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *DocumentDataFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectorySyncRun applies a predicate to check if query has an edge directory_sync_run. -func (f *DirectoryMembershipFilter) WhereHasDirectorySyncRun() { - f.Where(entql.HasEdge("directory_sync_run")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *DocumentDataFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasDirectorySyncRunWith applies a predicate to check if query has an edge directory_sync_run with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasDirectorySyncRunWith(preds ...predicate.DirectorySyncRun) { - f.Where(entql.HasEdgeWith("directory_sync_run", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *DirectoryMembershipFilter) WhereHasPlatform() { - f.Where(entql.HasEdge("platform")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *DocumentDataFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasPlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryAccount applies a predicate to check if query has an edge directory_account. -func (f *DirectoryMembershipFilter) WhereHasDirectoryAccount() { - f.Where(entql.HasEdge("directory_account")) +// addPredicate implements the predicateAdder interface. +func (_q *EmailTemplateQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasDirectoryAccountWith applies a predicate to check if query has an edge directory_account with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasDirectoryAccountWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("directory_account", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the EmailTemplateQuery builder. +func (_q *EmailTemplateQuery) Filter() *EmailTemplateFilter { + return &EmailTemplateFilter{config: _q.config, predicateAdder: _q} } -// WhereHasDirectoryGroup applies a predicate to check if query has an edge directory_group. -func (f *DirectoryMembershipFilter) WhereHasDirectoryGroup() { - f.Where(entql.HasEdge("directory_group")) +// addPredicate implements the predicateAdder interface. +func (m *EmailTemplateMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasDirectoryGroupWith applies a predicate to check if query has an edge directory_group with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasDirectoryGroupWith(preds ...predicate.DirectoryGroup) { - f.Where(entql.HasEdgeWith("directory_group", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the EmailTemplateMutation builder. +func (m *EmailTemplateMutation) Filter() *EmailTemplateFilter { + return &EmailTemplateFilter{config: m.config, predicateAdder: m} } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *DirectoryMembershipFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// EmailTemplateFilter provides a generic filtering capability at runtime for EmailTemplateQuery. +type EmailTemplateFilter struct { + predicateAdder + config } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *EmailTemplateFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[21].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *DirectoryMembershipFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereID applies the entql string predicate on the id field. +func (f *EmailTemplateFilter) WhereID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldID)) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *DirectoryMembershipFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EmailTemplateFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(emailtemplate.FieldCreatedAt)) } -// addPredicate implements the predicateAdder interface. -func (_q *DirectorySyncRunQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EmailTemplateFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(emailtemplate.FieldUpdatedAt)) } -// Filter returns a Filter implementation to apply filters on the DirectorySyncRunQuery builder. -func (_q *DirectorySyncRunQuery) Filter() *DirectorySyncRunFilter { - return &DirectorySyncRunFilter{config: _q.config, predicateAdder: _q} +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EmailTemplateFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldCreatedBy)) } -// addPredicate implements the predicateAdder interface. -func (m *DirectorySyncRunMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EmailTemplateFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldUpdatedBy)) } -// Filter returns an entql.Where implementation to apply filters on the DirectorySyncRunMutation builder. -func (m *DirectorySyncRunMutation) Filter() *DirectorySyncRunFilter { - return &DirectorySyncRunFilter{config: m.config, predicateAdder: m} +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EmailTemplateFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(emailtemplate.FieldDeletedAt)) } -// DirectorySyncRunFilter provides a generic filtering capability at runtime for DirectorySyncRunQuery. -type DirectorySyncRunFilter struct { - predicateAdder - config +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EmailTemplateFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldDeletedBy)) } -// Where applies the entql predicate on the query filter. -func (f *DirectorySyncRunFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereRevision applies the entql string predicate on the revision field. +func (f *EmailTemplateFilter) WhereRevision(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldRevision)) } -// WhereID applies the entql string predicate on the id field. -func (f *DirectorySyncRunFilter) WhereID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EmailTemplateFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldOwnerID)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DirectorySyncRunFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(directorysyncrun.FieldCreatedAt)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *EmailTemplateFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(emailtemplate.FieldSystemOwned)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DirectorySyncRunFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(directorysyncrun.FieldUpdatedAt)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *EmailTemplateFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldInternalNotes)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DirectorySyncRunFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldCreatedBy)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *EmailTemplateFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldSystemInternalID)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DirectorySyncRunFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldUpdatedBy)) +// WhereKey applies the entql string predicate on the key field. +func (f *EmailTemplateFilter) WhereKey(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldKey)) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *DirectorySyncRunFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldDisplayID)) +// WhereName applies the entql string predicate on the name field. +func (f *EmailTemplateFilter) WhereName(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldName)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DirectorySyncRunFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldOwnerID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *EmailTemplateFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldDescription)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *DirectorySyncRunFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldEnvironmentName)) +// WhereFormat applies the entql string predicate on the format field. +func (f *EmailTemplateFilter) WhereFormat(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldFormat)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *DirectorySyncRunFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldEnvironmentID)) +// WhereLocale applies the entql string predicate on the locale field. +func (f *EmailTemplateFilter) WhereLocale(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldLocale)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *DirectorySyncRunFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldScopeName)) +// WhereSubjectTemplate applies the entql string predicate on the subject_template field. +func (f *EmailTemplateFilter) WhereSubjectTemplate(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldSubjectTemplate)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *DirectorySyncRunFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldScopeID)) +// WherePreheaderTemplate applies the entql string predicate on the preheader_template field. +func (f *EmailTemplateFilter) WherePreheaderTemplate(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldPreheaderTemplate)) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *DirectorySyncRunFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldIntegrationID)) +// WhereBodyTemplate applies the entql string predicate on the body_template field. +func (f *EmailTemplateFilter) WhereBodyTemplate(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldBodyTemplate)) } -// WherePlatformID applies the entql string predicate on the platform_id field. -func (f *DirectorySyncRunFilter) WherePlatformID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldPlatformID)) +// WhereTextTemplate applies the entql string predicate on the text_template field. +func (f *EmailTemplateFilter) WhereTextTemplate(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldTextTemplate)) } -// WhereDirectoryInstanceID applies the entql string predicate on the directory_instance_id field. -func (f *DirectorySyncRunFilter) WhereDirectoryInstanceID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldDirectoryInstanceID)) +// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. +func (f *EmailTemplateFilter) WhereJsonconfig(p entql.BytesP) { + f.Where(p.Field(emailtemplate.FieldJsonconfig)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *DirectorySyncRunFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldStatus)) +// WhereUischema applies the entql json.RawMessage predicate on the uischema field. +func (f *EmailTemplateFilter) WhereUischema(p entql.BytesP) { + f.Where(p.Field(emailtemplate.FieldUischema)) } -// WhereStartedAt applies the entql time.Time predicate on the started_at field. -func (f *DirectorySyncRunFilter) WhereStartedAt(p entql.TimeP) { - f.Where(p.Field(directorysyncrun.FieldStartedAt)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EmailTemplateFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(emailtemplate.FieldMetadata)) } -// WhereCompletedAt applies the entql time.Time predicate on the completed_at field. -func (f *DirectorySyncRunFilter) WhereCompletedAt(p entql.TimeP) { - f.Where(p.Field(directorysyncrun.FieldCompletedAt)) +// WhereActive applies the entql bool predicate on the active field. +func (f *EmailTemplateFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(emailtemplate.FieldActive)) } -// WhereSourceCursor applies the entql string predicate on the source_cursor field. -func (f *DirectorySyncRunFilter) WhereSourceCursor(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldSourceCursor)) +// WhereVersion applies the entql int predicate on the version field. +func (f *EmailTemplateFilter) WhereVersion(p entql.IntP) { + f.Where(p.Field(emailtemplate.FieldVersion)) } -// WhereFullCount applies the entql int predicate on the full_count field. -func (f *DirectorySyncRunFilter) WhereFullCount(p entql.IntP) { - f.Where(p.Field(directorysyncrun.FieldFullCount)) +// WhereTemplateContext applies the entql string predicate on the template_context field. +func (f *EmailTemplateFilter) WhereTemplateContext(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldTemplateContext)) } -// WhereDeltaCount applies the entql int predicate on the delta_count field. -func (f *DirectorySyncRunFilter) WhereDeltaCount(p entql.IntP) { - f.Where(p.Field(directorysyncrun.FieldDeltaCount)) +// WhereDefaults applies the entql json.RawMessage predicate on the defaults field. +func (f *EmailTemplateFilter) WhereDefaults(p entql.BytesP) { + f.Where(p.Field(emailtemplate.FieldDefaults)) } -// WhereError applies the entql string predicate on the error field. -func (f *DirectorySyncRunFilter) WhereError(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldError)) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *EmailTemplateFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldIntegrationID)) } -// WhereRawManifestFileID applies the entql string predicate on the raw_manifest_file_id field. -func (f *DirectorySyncRunFilter) WhereRawManifestFileID(p entql.StringP) { - f.Where(p.Field(directorysyncrun.FieldRawManifestFileID)) +// WhereWorkflowDefinitionID applies the entql string predicate on the workflow_definition_id field. +func (f *EmailTemplateFilter) WhereWorkflowDefinitionID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldWorkflowDefinitionID)) } -// WhereStats applies the entql json.RawMessage predicate on the stats field. -func (f *DirectorySyncRunFilter) WhereStats(p entql.BytesP) { - f.Where(p.Field(directorysyncrun.FieldStats)) +// WhereWorkflowInstanceID applies the entql string predicate on the workflow_instance_id field. +func (f *EmailTemplateFilter) WhereWorkflowInstanceID(p entql.StringP) { + f.Where(p.Field(emailtemplate.FieldWorkflowInstanceID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DirectorySyncRunFilter) WhereHasOwner() { +func (f *EmailTemplateFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *EmailTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23753,28 +25116,42 @@ func (f *DirectorySyncRunFilter) WhereHasOwnerWith(preds ...predicate.Organizati }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *DirectorySyncRunFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *EmailTemplateFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *DirectorySyncRunFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *EmailTemplateFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *EmailTemplateFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) +} + +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -23782,12 +25159,12 @@ func (f *DirectorySyncRunFilter) WhereHasScopeWith(preds ...predicate.CustomType } // WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *DirectorySyncRunFilter) WhereHasIntegration() { +func (f *EmailTemplateFilter) WhereHasIntegration() { f.Where(entql.HasEdge("integration")) } // WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { +func (f *EmailTemplateFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -23795,56 +25172,70 @@ func (f *DirectorySyncRunFilter) WhereHasIntegrationWith(preds ...predicate.Inte }))) } -// WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *DirectorySyncRunFilter) WhereHasPlatform() { - f.Where(entql.HasEdge("platform")) +// WhereHasWorkflowDefinition applies a predicate to check if query has an edge workflow_definition. +func (f *EmailTemplateFilter) WhereHasWorkflowDefinition() { + f.Where(entql.HasEdge("workflow_definition")) } -// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasPlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowDefinitionWith applies a predicate to check if query has an edge workflow_definition with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasWorkflowDefinitionWith(preds ...predicate.WorkflowDefinition) { + f.Where(entql.HasEdgeWith("workflow_definition", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. -func (f *DirectorySyncRunFilter) WhereHasDirectoryAccounts() { - f.Where(entql.HasEdge("directory_accounts")) +// WhereHasWorkflowInstance applies a predicate to check if query has an edge workflow_instance. +func (f *EmailTemplateFilter) WhereHasWorkflowInstance() { + f.Where(entql.HasEdge("workflow_instance")) } -// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowInstanceWith applies a predicate to check if query has an edge workflow_instance with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasWorkflowInstanceWith(preds ...predicate.WorkflowInstance) { + f.Where(entql.HasEdgeWith("workflow_instance", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryGroups applies a predicate to check if query has an edge directory_groups. -func (f *DirectorySyncRunFilter) WhereHasDirectoryGroups() { - f.Where(entql.HasEdge("directory_groups")) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *EmailTemplateFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereHasDirectoryGroupsWith applies a predicate to check if query has an edge directory_groups with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasDirectoryGroupsWith(preds ...predicate.DirectoryGroup) { - f.Where(entql.HasEdgeWith("directory_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryMemberships applies a predicate to check if query has an edge directory_memberships. -func (f *DirectorySyncRunFilter) WhereHasDirectoryMemberships() { - f.Where(entql.HasEdge("directory_memberships")) +// WhereHasNotificationTemplates applies a predicate to check if query has an edge notification_templates. +func (f *EmailTemplateFilter) WhereHasNotificationTemplates() { + f.Where(entql.HasEdge("notification_templates")) } -// WhereHasDirectoryMembershipsWith applies a predicate to check if query has an edge directory_memberships with a given conditions (other predicates). -func (f *DirectorySyncRunFilter) WhereHasDirectoryMembershipsWith(preds ...predicate.DirectoryMembership) { - f.Where(entql.HasEdgeWith("directory_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNotificationTemplatesWith applies a predicate to check if query has an edge notification_templates with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasNotificationTemplatesWith(preds ...predicate.NotificationTemplate) { + f.Where(entql.HasEdgeWith("notification_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *EmailTemplateFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) +} + +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *EmailTemplateFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -23852,182 +25243,108 @@ func (f *DirectorySyncRunFilter) WhereHasDirectoryMembershipsWith(preds ...predi } // addPredicate implements the predicateAdder interface. -func (_q *DiscussionQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *EmailVerificationTokenQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DiscussionQuery builder. -func (_q *DiscussionQuery) Filter() *DiscussionFilter { - return &DiscussionFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the EmailVerificationTokenQuery builder. +func (_q *EmailVerificationTokenQuery) Filter() *EmailVerificationTokenFilter { + return &EmailVerificationTokenFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *DiscussionMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EmailVerificationTokenMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DiscussionMutation builder. -func (m *DiscussionMutation) Filter() *DiscussionFilter { - return &DiscussionFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EmailVerificationTokenMutation builder. +func (m *EmailVerificationTokenMutation) Filter() *EmailVerificationTokenFilter { + return &EmailVerificationTokenFilter{config: m.config, predicateAdder: m} } -// DiscussionFilter provides a generic filtering capability at runtime for DiscussionQuery. -type DiscussionFilter struct { +// EmailVerificationTokenFilter provides a generic filtering capability at runtime for EmailVerificationTokenQuery. +type EmailVerificationTokenFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DiscussionFilter) Where(p entql.P) { +func (f *EmailVerificationTokenFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[19].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[22].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *DiscussionFilter) WhereID(p entql.StringP) { - f.Where(p.Field(discussion.FieldID)) +func (f *EmailVerificationTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DiscussionFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(discussion.FieldCreatedAt)) +func (f *EmailVerificationTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DiscussionFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(discussion.FieldUpdatedAt)) +func (f *EmailVerificationTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DiscussionFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(discussion.FieldCreatedBy)) +func (f *EmailVerificationTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DiscussionFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(discussion.FieldUpdatedBy)) +func (f *EmailVerificationTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *DiscussionFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(discussion.FieldDeletedAt)) +func (f *EmailVerificationTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *DiscussionFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(discussion.FieldDeletedBy)) +func (f *EmailVerificationTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldDeletedBy)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DiscussionFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(discussion.FieldOwnerID)) -} - -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *DiscussionFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(discussion.FieldExternalID)) -} - -// WhereIsResolved applies the entql bool predicate on the is_resolved field. -func (f *DiscussionFilter) WhereIsResolved(p entql.BoolP) { - f.Where(p.Field(discussion.FieldIsResolved)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DiscussionFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) -} - -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasComments applies a predicate to check if query has an edge comments. -func (f *DiscussionFilter) WhereHasComments() { - f.Where(entql.HasEdge("comments")) -} - -// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasCommentsWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasControl applies a predicate to check if query has an edge control. -func (f *DiscussionFilter) WhereHasControl() { - f.Where(entql.HasEdge("control")) -} - -// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasControlWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasSubcontrol applies a predicate to check if query has an edge subcontrol. -func (f *DiscussionFilter) WhereHasSubcontrol() { - f.Where(entql.HasEdge("subcontrol")) -} - -// WhereHasSubcontrolWith applies a predicate to check if query has an edge subcontrol with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasSubcontrolWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrol", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +func (f *EmailVerificationTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldOwnerID)) } -// WhereHasProcedure applies a predicate to check if query has an edge procedure. -func (f *DiscussionFilter) WhereHasProcedure() { - f.Where(entql.HasEdge("procedure")) +// WhereToken applies the entql string predicate on the token field. +func (f *EmailVerificationTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldToken)) } -// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTTL applies the entql time.Time predicate on the ttl field. +func (f *EmailVerificationTokenFilter) WhereTTL(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldTTL)) } -// WhereHasRisk applies a predicate to check if query has an edge risk. -func (f *DiscussionFilter) WhereHasRisk() { - f.Where(entql.HasEdge("risk")) +// WhereEmail applies the entql string predicate on the email field. +func (f *EmailVerificationTokenFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldEmail)) } -// WhereHasRiskWith applies a predicate to check if query has an edge risk with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasRiskWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *EmailVerificationTokenFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(emailverificationtoken.FieldSecret)) } -// WhereHasInternalPolicy applies a predicate to check if query has an edge internal_policy. -func (f *DiscussionFilter) WhereHasInternalPolicy() { - f.Where(entql.HasEdge("internal_policy")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EmailVerificationTokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasInternalPolicyWith applies a predicate to check if query has an edge internal_policy with a given conditions (other predicates). -func (f *DiscussionFilter) WhereHasInternalPolicyWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policy", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EmailVerificationTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -24035,396 +25352,372 @@ func (f *DiscussionFilter) WhereHasInternalPolicyWith(preds ...predicate.Interna } // addPredicate implements the predicateAdder interface. -func (_q *DocumentDataQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *EntityQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DocumentDataQuery builder. -func (_q *DocumentDataQuery) Filter() *DocumentDataFilter { - return &DocumentDataFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the EntityQuery builder. +func (_q *EntityQuery) Filter() *EntityFilter { + return &EntityFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *DocumentDataMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntityMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DocumentDataMutation builder. -func (m *DocumentDataMutation) Filter() *DocumentDataFilter { - return &DocumentDataFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntityMutation builder. +func (m *EntityMutation) Filter() *EntityFilter { + return &EntityFilter{config: m.config, predicateAdder: m} } -// DocumentDataFilter provides a generic filtering capability at runtime for DocumentDataQuery. -type DocumentDataFilter struct { +// EntityFilter provides a generic filtering capability at runtime for EntityQuery. +type EntityFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DocumentDataFilter) Where(p entql.P) { +func (f *EntityFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[20].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[23].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *DocumentDataFilter) WhereID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldID)) +func (f *EntityFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entity.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DocumentDataFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldCreatedAt)) +func (f *EntityFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DocumentDataFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldUpdatedAt)) +func (f *EntityFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DocumentDataFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldCreatedBy)) +func (f *EntityFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DocumentDataFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldUpdatedBy)) +func (f *EntityFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *DocumentDataFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldDeletedAt)) +func (f *EntityFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *DocumentDataFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldDeletedBy)) +func (f *EntityFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DocumentDataFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(documentdata.FieldTags)) +func (f *EntityFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entity.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DocumentDataFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldOwnerID)) +func (f *EntityFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entity.FieldOwnerID)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *DocumentDataFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(documentdata.FieldEnvironmentName)) +// WhereInternalOwner applies the entql string predicate on the internal_owner field. +func (f *EntityFilter) WhereInternalOwner(p entql.StringP) { + f.Where(p.Field(entity.FieldInternalOwner)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *DocumentDataFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldEnvironmentID)) +// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. +func (f *EntityFilter) WhereInternalOwnerUserID(p entql.StringP) { + f.Where(p.Field(entity.FieldInternalOwnerUserID)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *DocumentDataFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(documentdata.FieldScopeName)) +// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. +func (f *EntityFilter) WhereInternalOwnerGroupID(p entql.StringP) { + f.Where(p.Field(entity.FieldInternalOwnerGroupID)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *DocumentDataFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldScopeID)) +// WhereReviewedBy applies the entql string predicate on the reviewed_by field. +func (f *EntityFilter) WhereReviewedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldReviewedBy)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *DocumentDataFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldTemplateID)) +// WhereReviewedByUserID applies the entql string predicate on the reviewed_by_user_id field. +func (f *EntityFilter) WhereReviewedByUserID(p entql.StringP) { + f.Where(p.Field(entity.FieldReviewedByUserID)) } -// WhereData applies the entql json.RawMessage predicate on the data field. -func (f *DocumentDataFilter) WhereData(p entql.BytesP) { - f.Where(p.Field(documentdata.FieldData)) +// WhereReviewedByGroupID applies the entql string predicate on the reviewed_by_group_id field. +func (f *EntityFilter) WhereReviewedByGroupID(p entql.StringP) { + f.Where(p.Field(entity.FieldReviewedByGroupID)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DocumentDataFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereLastReviewedAt applies the entql time.Time predicate on the last_reviewed_at field. +func (f *EntityFilter) WhereLastReviewedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldLastReviewedAt)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *EntityFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(entity.FieldSystemOwned)) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *DocumentDataFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *EntityFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(entity.FieldInternalNotes)) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *EntityFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(entity.FieldSystemInternalID)) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *DocumentDataFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereEntityRelationshipStateName applies the entql string predicate on the entity_relationship_state_name field. +func (f *EntityFilter) WhereEntityRelationshipStateName(p entql.StringP) { + f.Where(p.Field(entity.FieldEntityRelationshipStateName)) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEntityRelationshipStateID applies the entql string predicate on the entity_relationship_state_id field. +func (f *EntityFilter) WhereEntityRelationshipStateID(p entql.StringP) { + f.Where(p.Field(entity.FieldEntityRelationshipStateID)) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *DocumentDataFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) +// WhereEntitySecurityQuestionnaireStatusName applies the entql string predicate on the entity_security_questionnaire_status_name field. +func (f *EntityFilter) WhereEntitySecurityQuestionnaireStatusName(p entql.StringP) { + f.Where(p.Field(entity.FieldEntitySecurityQuestionnaireStatusName)) } -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEntitySecurityQuestionnaireStatusID applies the entql string predicate on the entity_security_questionnaire_status_id field. +func (f *EntityFilter) WhereEntitySecurityQuestionnaireStatusID(p entql.StringP) { + f.Where(p.Field(entity.FieldEntitySecurityQuestionnaireStatusID)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *DocumentDataFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereEntitySourceTypeName applies the entql string predicate on the entity_source_type_name field. +func (f *EntityFilter) WhereEntitySourceTypeName(p entql.StringP) { + f.Where(p.Field(entity.FieldEntitySourceTypeName)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEntitySourceTypeID applies the entql string predicate on the entity_source_type_id field. +func (f *EntityFilter) WhereEntitySourceTypeID(p entql.StringP) { + f.Where(p.Field(entity.FieldEntitySourceTypeID)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *DocumentDataFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *EntityFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(entity.FieldEnvironmentName)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *EntityFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(entity.FieldEnvironmentID)) } -// addPredicate implements the predicateAdder interface. -func (_q *EmailTemplateQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *EntityFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(entity.FieldScopeName)) } -// Filter returns a Filter implementation to apply filters on the EmailTemplateQuery builder. -func (_q *EmailTemplateQuery) Filter() *EmailTemplateFilter { - return &EmailTemplateFilter{config: _q.config, predicateAdder: _q} +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *EntityFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(entity.FieldScopeID)) } -// addPredicate implements the predicateAdder interface. -func (m *EmailTemplateMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereName applies the entql string predicate on the name field. +func (f *EntityFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entity.FieldName)) } -// Filter returns an entql.Where implementation to apply filters on the EmailTemplateMutation builder. -func (m *EmailTemplateMutation) Filter() *EmailTemplateFilter { - return &EmailTemplateFilter{config: m.config, predicateAdder: m} +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *EntityFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(entity.FieldDisplayName)) } -// EmailTemplateFilter provides a generic filtering capability at runtime for EmailTemplateQuery. -type EmailTemplateFilter struct { - predicateAdder - config +// WhereDescription applies the entql string predicate on the description field. +func (f *EntityFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(entity.FieldDescription)) } -// Where applies the entql predicate on the query filter. -func (f *EmailTemplateFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[21].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *EntityFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(entity.FieldDomains)) } -// WhereID applies the entql string predicate on the id field. -func (f *EmailTemplateFilter) WhereID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldID)) +// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. +func (f *EntityFilter) WhereEntityTypeID(p entql.StringP) { + f.Where(p.Field(entity.FieldEntityTypeID)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EmailTemplateFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(emailtemplate.FieldCreatedAt)) +// WhereStatus applies the entql string predicate on the status field. +func (f *EntityFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(entity.FieldStatus)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EmailTemplateFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(emailtemplate.FieldUpdatedAt)) +// WhereApprovedForUse applies the entql bool predicate on the approved_for_use field. +func (f *EntityFilter) WhereApprovedForUse(p entql.BoolP) { + f.Where(p.Field(entity.FieldApprovedForUse)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EmailTemplateFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldCreatedBy)) +// WhereLinkedAssetIds applies the entql json.RawMessage predicate on the linked_asset_ids field. +func (f *EntityFilter) WhereLinkedAssetIds(p entql.BytesP) { + f.Where(p.Field(entity.FieldLinkedAssetIds)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EmailTemplateFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldUpdatedBy)) +// WhereHasSoc2 applies the entql bool predicate on the has_soc2 field. +func (f *EntityFilter) WhereHasSoc2(p entql.BoolP) { + f.Where(p.Field(entity.FieldHasSoc2)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EmailTemplateFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(emailtemplate.FieldDeletedAt)) +// WhereSoc2PeriodEnd applies the entql time.Time predicate on the soc2_period_end field. +func (f *EntityFilter) WhereSoc2PeriodEnd(p entql.TimeP) { + f.Where(p.Field(entity.FieldSoc2PeriodEnd)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EmailTemplateFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldDeletedBy)) +// WhereContractStartDate applies the entql time.Time predicate on the contract_start_date field. +func (f *EntityFilter) WhereContractStartDate(p entql.TimeP) { + f.Where(p.Field(entity.FieldContractStartDate)) } -// WhereRevision applies the entql string predicate on the revision field. -func (f *EmailTemplateFilter) WhereRevision(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldRevision)) +// WhereContractEndDate applies the entql time.Time predicate on the contract_end_date field. +func (f *EntityFilter) WhereContractEndDate(p entql.TimeP) { + f.Where(p.Field(entity.FieldContractEndDate)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EmailTemplateFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldOwnerID)) +// WhereAutoRenews applies the entql bool predicate on the auto_renews field. +func (f *EntityFilter) WhereAutoRenews(p entql.BoolP) { + f.Where(p.Field(entity.FieldAutoRenews)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *EmailTemplateFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(emailtemplate.FieldSystemOwned)) +// WhereTerminationNoticeDays applies the entql int predicate on the termination_notice_days field. +func (f *EntityFilter) WhereTerminationNoticeDays(p entql.IntP) { + f.Where(p.Field(entity.FieldTerminationNoticeDays)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *EmailTemplateFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldInternalNotes)) +// WhereAnnualSpend applies the entql float64 predicate on the annual_spend field. +func (f *EntityFilter) WhereAnnualSpend(p entql.Float64P) { + f.Where(p.Field(entity.FieldAnnualSpend)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *EmailTemplateFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldSystemInternalID)) +// WhereSpendCurrency applies the entql string predicate on the spend_currency field. +func (f *EntityFilter) WhereSpendCurrency(p entql.StringP) { + f.Where(p.Field(entity.FieldSpendCurrency)) } -// WhereKey applies the entql string predicate on the key field. -func (f *EmailTemplateFilter) WhereKey(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldKey)) +// WhereBillingModel applies the entql string predicate on the billing_model field. +func (f *EntityFilter) WhereBillingModel(p entql.StringP) { + f.Where(p.Field(entity.FieldBillingModel)) } -// WhereName applies the entql string predicate on the name field. -func (f *EmailTemplateFilter) WhereName(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldName)) +// WhereRenewalRisk applies the entql string predicate on the renewal_risk field. +func (f *EntityFilter) WhereRenewalRisk(p entql.StringP) { + f.Where(p.Field(entity.FieldRenewalRisk)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EmailTemplateFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldDescription)) +// WhereSSOEnforced applies the entql bool predicate on the sso_enforced field. +func (f *EntityFilter) WhereSSOEnforced(p entql.BoolP) { + f.Where(p.Field(entity.FieldSSOEnforced)) } -// WhereFormat applies the entql string predicate on the format field. -func (f *EmailTemplateFilter) WhereFormat(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldFormat)) +// WhereMfaSupported applies the entql bool predicate on the mfa_supported field. +func (f *EntityFilter) WhereMfaSupported(p entql.BoolP) { + f.Where(p.Field(entity.FieldMfaSupported)) } -// WhereLocale applies the entql string predicate on the locale field. -func (f *EmailTemplateFilter) WhereLocale(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldLocale)) +// WhereMfaEnforced applies the entql bool predicate on the mfa_enforced field. +func (f *EntityFilter) WhereMfaEnforced(p entql.BoolP) { + f.Where(p.Field(entity.FieldMfaEnforced)) } -// WhereSubjectTemplate applies the entql string predicate on the subject_template field. -func (f *EmailTemplateFilter) WhereSubjectTemplate(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldSubjectTemplate)) +// WhereStatusPageURL applies the entql string predicate on the status_page_url field. +func (f *EntityFilter) WhereStatusPageURL(p entql.StringP) { + f.Where(p.Field(entity.FieldStatusPageURL)) } -// WherePreheaderTemplate applies the entql string predicate on the preheader_template field. -func (f *EmailTemplateFilter) WherePreheaderTemplate(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldPreheaderTemplate)) +// WhereProvidedServices applies the entql json.RawMessage predicate on the provided_services field. +func (f *EntityFilter) WhereProvidedServices(p entql.BytesP) { + f.Where(p.Field(entity.FieldProvidedServices)) } -// WhereBodyTemplate applies the entql string predicate on the body_template field. -func (f *EmailTemplateFilter) WhereBodyTemplate(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldBodyTemplate)) +// WhereLinks applies the entql json.RawMessage predicate on the links field. +func (f *EntityFilter) WhereLinks(p entql.BytesP) { + f.Where(p.Field(entity.FieldLinks)) } -// WhereTextTemplate applies the entql string predicate on the text_template field. -func (f *EmailTemplateFilter) WhereTextTemplate(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldTextTemplate)) +// WhereRiskRating applies the entql string predicate on the risk_rating field. +func (f *EntityFilter) WhereRiskRating(p entql.StringP) { + f.Where(p.Field(entity.FieldRiskRating)) } -// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. -func (f *EmailTemplateFilter) WhereJsonconfig(p entql.BytesP) { - f.Where(p.Field(emailtemplate.FieldJsonconfig)) +// WhereRiskScore applies the entql int predicate on the risk_score field. +func (f *EntityFilter) WhereRiskScore(p entql.IntP) { + f.Where(p.Field(entity.FieldRiskScore)) +} + +// WhereRiskScoreCoverage applies the entql int predicate on the risk_score_coverage field. +func (f *EntityFilter) WhereRiskScoreCoverage(p entql.IntP) { + f.Where(p.Field(entity.FieldRiskScoreCoverage)) } -// WhereUischema applies the entql json.RawMessage predicate on the uischema field. -func (f *EmailTemplateFilter) WhereUischema(p entql.BytesP) { - f.Where(p.Field(emailtemplate.FieldUischema)) +// WhereTier applies the entql string predicate on the tier field. +func (f *EntityFilter) WhereTier(p entql.StringP) { + f.Where(p.Field(entity.FieldTier)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EmailTemplateFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(emailtemplate.FieldMetadata)) +// WhereReviewFrequency applies the entql string predicate on the review_frequency field. +func (f *EntityFilter) WhereReviewFrequency(p entql.StringP) { + f.Where(p.Field(entity.FieldReviewFrequency)) } -// WhereActive applies the entql bool predicate on the active field. -func (f *EmailTemplateFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(emailtemplate.FieldActive)) +// WhereNextReviewAt applies the entql time.Time predicate on the next_review_at field. +func (f *EntityFilter) WhereNextReviewAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldNextReviewAt)) } -// WhereVersion applies the entql int predicate on the version field. -func (f *EmailTemplateFilter) WhereVersion(p entql.IntP) { - f.Where(p.Field(emailtemplate.FieldVersion)) +// WhereContractRenewalAt applies the entql time.Time predicate on the contract_renewal_at field. +func (f *EntityFilter) WhereContractRenewalAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldContractRenewalAt)) } -// WhereTemplateContext applies the entql string predicate on the template_context field. -func (f *EmailTemplateFilter) WhereTemplateContext(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldTemplateContext)) +// WhereVendorMetadata applies the entql json.RawMessage predicate on the vendor_metadata field. +func (f *EntityFilter) WhereVendorMetadata(p entql.BytesP) { + f.Where(p.Field(entity.FieldVendorMetadata)) } -// WhereDefaults applies the entql json.RawMessage predicate on the defaults field. -func (f *EmailTemplateFilter) WhereDefaults(p entql.BytesP) { - f.Where(p.Field(emailtemplate.FieldDefaults)) +// WhereLogoRemoteURL applies the entql string predicate on the logo_remote_url field. +func (f *EntityFilter) WhereLogoRemoteURL(p entql.StringP) { + f.Where(p.Field(entity.FieldLogoRemoteURL)) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *EmailTemplateFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldIntegrationID)) +// WhereLogoFileID applies the entql string predicate on the logo_file_id field. +func (f *EntityFilter) WhereLogoFileID(p entql.StringP) { + f.Where(p.Field(entity.FieldLogoFileID)) } -// WhereWorkflowDefinitionID applies the entql string predicate on the workflow_definition_id field. -func (f *EmailTemplateFilter) WhereWorkflowDefinitionID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldWorkflowDefinitionID)) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *EntityFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(entity.FieldExternalID)) } -// WhereWorkflowInstanceID applies the entql string predicate on the workflow_instance_id field. -func (f *EmailTemplateFilter) WhereWorkflowInstanceID(p entql.StringP) { - f.Where(p.Field(emailtemplate.FieldWorkflowInstanceID)) +// WhereObservedAt applies the entql time.Time predicate on the observed_at field. +func (f *EntityFilter) WhereObservedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldObservedAt)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EmailTemplateFilter) WhereHasOwner() { +func (f *EntityFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *EntityFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -24433,12 +25726,12 @@ func (f *EmailTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) } // WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *EmailTemplateFilter) WhereHasBlockedGroups() { +func (f *EntityFilter) WhereHasBlockedGroups() { f.Where(entql.HasEdge("blocked_groups")) } // WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { +func (f *EntityFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -24447,12 +25740,12 @@ func (f *EmailTemplateFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group } // WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *EmailTemplateFilter) WhereHasEditors() { +func (f *EntityFilter) WhereHasEditors() { f.Where(entql.HasEdge("editors")) } // WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasEditorsWith(preds ...predicate.Group) { +func (f *EntityFilter) WhereHasEditorsWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -24461,12 +25754,12 @@ func (f *EmailTemplateFilter) WhereHasEditorsWith(preds ...predicate.Group) { } // WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *EmailTemplateFilter) WhereHasViewers() { +func (f *EntityFilter) WhereHasViewers() { f.Where(entql.HasEdge("viewers")) } // WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasViewersWith(preds ...predicate.Group) { +func (f *EntityFilter) WhereHasViewersWith(preds ...predicate.Group) { f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -24474,1043 +25767,1338 @@ func (f *EmailTemplateFilter) WhereHasViewersWith(preds ...predicate.Group) { }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *EmailTemplateFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. +func (f *EntityFilter) WhereHasInternalOwnerUser() { + f.Where(entql.HasEdge("internal_owner_user")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). +func (f *EntityFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowDefinition applies a predicate to check if query has an edge workflow_definition. -func (f *EmailTemplateFilter) WhereHasWorkflowDefinition() { - f.Where(entql.HasEdge("workflow_definition")) +// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. +func (f *EntityFilter) WhereHasInternalOwnerGroup() { + f.Where(entql.HasEdge("internal_owner_group")) } -// WhereHasWorkflowDefinitionWith applies a predicate to check if query has an edge workflow_definition with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasWorkflowDefinitionWith(preds ...predicate.WorkflowDefinition) { - f.Where(entql.HasEdgeWith("workflow_definition", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). +func (f *EntityFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowInstance applies a predicate to check if query has an edge workflow_instance. -func (f *EmailTemplateFilter) WhereHasWorkflowInstance() { - f.Where(entql.HasEdge("workflow_instance")) +// WhereHasReviewedByUser applies a predicate to check if query has an edge reviewed_by_user. +func (f *EntityFilter) WhereHasReviewedByUser() { + f.Where(entql.HasEdge("reviewed_by_user")) } -// WhereHasWorkflowInstanceWith applies a predicate to check if query has an edge workflow_instance with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasWorkflowInstanceWith(preds ...predicate.WorkflowInstance) { - f.Where(entql.HasEdgeWith("workflow_instance", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewedByUserWith applies a predicate to check if query has an edge reviewed_by_user with a given conditions (other predicates). +func (f *EntityFilter) WhereHasReviewedByUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("reviewed_by_user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *EmailTemplateFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereHasReviewedByGroup applies a predicate to check if query has an edge reviewed_by_group. +func (f *EntityFilter) WhereHasReviewedByGroup() { + f.Where(entql.HasEdge("reviewed_by_group")) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewedByGroupWith applies a predicate to check if query has an edge reviewed_by_group with a given conditions (other predicates). +func (f *EntityFilter) WhereHasReviewedByGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("reviewed_by_group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNotificationTemplates applies a predicate to check if query has an edge notification_templates. -func (f *EmailTemplateFilter) WhereHasNotificationTemplates() { - f.Where(entql.HasEdge("notification_templates")) +// WhereHasEntityRelationshipState applies a predicate to check if query has an edge entity_relationship_state. +func (f *EntityFilter) WhereHasEntityRelationshipState() { + f.Where(entql.HasEdge("entity_relationship_state")) } -// WhereHasNotificationTemplatesWith applies a predicate to check if query has an edge notification_templates with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasNotificationTemplatesWith(preds ...predicate.NotificationTemplate) { - f.Where(entql.HasEdgeWith("notification_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntityRelationshipStateWith applies a predicate to check if query has an edge entity_relationship_state with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEntityRelationshipStateWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("entity_relationship_state", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *EmailTemplateFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasEntitySecurityQuestionnaireStatus applies a predicate to check if query has an edge entity_security_questionnaire_status. +func (f *EntityFilter) WhereHasEntitySecurityQuestionnaireStatus() { + f.Where(entql.HasEdge("entity_security_questionnaire_status")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *EmailTemplateFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitySecurityQuestionnaireStatusWith applies a predicate to check if query has an edge entity_security_questionnaire_status with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEntitySecurityQuestionnaireStatusWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("entity_security_questionnaire_status", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *EmailVerificationTokenQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasEntitySourceType applies a predicate to check if query has an edge entity_source_type. +func (f *EntityFilter) WhereHasEntitySourceType() { + f.Where(entql.HasEdge("entity_source_type")) } -// Filter returns a Filter implementation to apply filters on the EmailVerificationTokenQuery builder. -func (_q *EmailVerificationTokenQuery) Filter() *EmailVerificationTokenFilter { - return &EmailVerificationTokenFilter{config: _q.config, predicateAdder: _q} +// WhereHasEntitySourceTypeWith applies a predicate to check if query has an edge entity_source_type with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEntitySourceTypeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("entity_source_type", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *EmailVerificationTokenMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *EntityFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// Filter returns an entql.Where implementation to apply filters on the EmailVerificationTokenMutation builder. -func (m *EmailVerificationTokenMutation) Filter() *EmailVerificationTokenFilter { - return &EmailVerificationTokenFilter{config: m.config, predicateAdder: m} +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// EmailVerificationTokenFilter provides a generic filtering capability at runtime for EmailVerificationTokenQuery. -type EmailVerificationTokenFilter struct { - predicateAdder - config +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *EntityFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// Where applies the entql predicate on the query filter. -func (f *EmailVerificationTokenFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[22].Type, p, s); err != nil { - s.AddError(err) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *EntityFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *EmailVerificationTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldID)) +// WhereHasContacts applies a predicate to check if query has an edge contacts. +func (f *EntityFilter) WhereHasContacts() { + f.Where(entql.HasEdge("contacts")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EmailVerificationTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldCreatedAt)) +// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). +func (f *EntityFilter) WhereHasContactsWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EmailVerificationTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldUpdatedAt)) +// WhereHasDocuments applies a predicate to check if query has an edge documents. +func (f *EntityFilter) WhereHasDocuments() { + f.Where(entql.HasEdge("documents")) +} + +// WhereHasDocumentsWith applies a predicate to check if query has an edge documents with a given conditions (other predicates). +func (f *EntityFilter) WhereHasDocumentsWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("documents", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasNotes applies a predicate to check if query has an edge notes. +func (f *EntityFilter) WhereHasNotes() { + f.Where(entql.HasEdge("notes")) +} + +// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). +func (f *EntityFilter) WhereHasNotesWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *EntityFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) +} + +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *EntityFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *EntityFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EmailVerificationTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldCreatedBy)) +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *EntityFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EmailVerificationTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldUpdatedBy)) +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *EntityFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EmailVerificationTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldDeletedAt)) +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *EntityFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EmailVerificationTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldDeletedBy)) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *EntityFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EmailVerificationTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldOwnerID)) +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *EntityFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereToken applies the entql string predicate on the token field. -func (f *EmailVerificationTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldToken)) +// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. +func (f *EntityFilter) WhereHasAssessmentResponses() { + f.Where(entql.HasEdge("assessment_responses")) } -// WhereTTL applies the entql time.Time predicate on the ttl field. -func (f *EmailVerificationTokenFilter) WhereTTL(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldTTL)) +// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). +func (f *EntityFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { + f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmail applies the entql string predicate on the email field. -func (f *EmailVerificationTokenFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldEmail)) +// WhereHasVendorRiskScores applies a predicate to check if query has an edge vendor_risk_scores. +func (f *EntityFilter) WhereHasVendorRiskScores() { + f.Where(entql.HasEdge("vendor_risk_scores")) } -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *EmailVerificationTokenFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(emailverificationtoken.FieldSecret)) +// WhereHasVendorRiskScoresWith applies a predicate to check if query has an edge vendor_risk_scores with a given conditions (other predicates). +func (f *EntityFilter) WhereHasVendorRiskScoresWith(preds ...predicate.VendorRiskScore) { + f.Where(entql.HasEdgeWith("vendor_risk_scores", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EmailVerificationTokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *EntityFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EmailVerificationTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *EntityFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *EntityQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasSubprocessors applies a predicate to check if query has an edge subprocessors. +func (f *EntityFilter) WhereHasSubprocessors() { + f.Where(entql.HasEdge("subprocessors")) } -// Filter returns a Filter implementation to apply filters on the EntityQuery builder. -func (_q *EntityQuery) Filter() *EntityFilter { - return &EntityFilter{config: _q.config, predicateAdder: _q} +// WhereHasSubprocessorsWith applies a predicate to check if query has an edge subprocessors with a given conditions (other predicates). +func (f *EntityFilter) WhereHasSubprocessorsWith(preds ...predicate.Subprocessor) { + f.Where(entql.HasEdgeWith("subprocessors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *EntityMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasAuthMethods applies a predicate to check if query has an edge auth_methods. +func (f *EntityFilter) WhereHasAuthMethods() { + f.Where(entql.HasEdge("auth_methods")) } -// Filter returns an entql.Where implementation to apply filters on the EntityMutation builder. -func (m *EntityMutation) Filter() *EntityFilter { - return &EntityFilter{config: m.config, predicateAdder: m} +// WhereHasAuthMethodsWith applies a predicate to check if query has an edge auth_methods with a given conditions (other predicates). +func (f *EntityFilter) WhereHasAuthMethodsWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("auth_methods", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// EntityFilter provides a generic filtering capability at runtime for EntityQuery. -type EntityFilter struct { - predicateAdder - config +// WhereHasEmployerIdentityHolders applies a predicate to check if query has an edge employer_identity_holders. +func (f *EntityFilter) WhereHasEmployerIdentityHolders() { + f.Where(entql.HasEdge("employer_identity_holders")) } -// Where applies the entql predicate on the query filter. -func (f *EntityFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[23].Type, p, s); err != nil { - s.AddError(err) +// WhereHasEmployerIdentityHoldersWith applies a predicate to check if query has an edge employer_identity_holders with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEmployerIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("employer_identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *EntityFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entity.FieldID)) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *EntityFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldCreatedAt)) +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *EntityFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldUpdatedAt)) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *EntityFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldCreatedBy)) +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *EntityFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldUpdatedBy)) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *EntityFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldDeletedAt)) +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *EntityFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldDeletedBy)) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *EntityFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entity.FieldTags)) +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *EntityFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entity.FieldOwnerID)) +// WhereHasOutOfScopePlatforms applies a predicate to check if query has an edge out_of_scope_platforms. +func (f *EntityFilter) WhereHasOutOfScopePlatforms() { + f.Where(entql.HasEdge("out_of_scope_platforms")) } -// WhereInternalOwner applies the entql string predicate on the internal_owner field. -func (f *EntityFilter) WhereInternalOwner(p entql.StringP) { - f.Where(p.Field(entity.FieldInternalOwner)) +// WhereHasOutOfScopePlatformsWith applies a predicate to check if query has an edge out_of_scope_platforms with a given conditions (other predicates). +func (f *EntityFilter) WhereHasOutOfScopePlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("out_of_scope_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. -func (f *EntityFilter) WhereInternalOwnerUserID(p entql.StringP) { - f.Where(p.Field(entity.FieldInternalOwnerUserID)) +// WhereHasSourcePlatforms applies a predicate to check if query has an edge source_platforms. +func (f *EntityFilter) WhereHasSourcePlatforms() { + f.Where(entql.HasEdge("source_platforms")) } -// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. -func (f *EntityFilter) WhereInternalOwnerGroupID(p entql.StringP) { - f.Where(p.Field(entity.FieldInternalOwnerGroupID)) +// WhereHasSourcePlatformsWith applies a predicate to check if query has an edge source_platforms with a given conditions (other predicates). +func (f *EntityFilter) WhereHasSourcePlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("source_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereReviewedBy applies the entql string predicate on the reviewed_by field. -func (f *EntityFilter) WhereReviewedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldReviewedBy)) +// WhereHasEntityType applies a predicate to check if query has an edge entity_type. +func (f *EntityFilter) WhereHasEntityType() { + f.Where(entql.HasEdge("entity_type")) } -// WhereReviewedByUserID applies the entql string predicate on the reviewed_by_user_id field. -func (f *EntityFilter) WhereReviewedByUserID(p entql.StringP) { - f.Where(p.Field(entity.FieldReviewedByUserID)) +// WhereHasEntityTypeWith applies a predicate to check if query has an edge entity_type with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEntityTypeWith(preds ...predicate.EntityType) { + f.Where(entql.HasEdgeWith("entity_type", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereReviewedByGroupID applies the entql string predicate on the reviewed_by_group_id field. -func (f *EntityFilter) WhereReviewedByGroupID(p entql.StringP) { - f.Where(p.Field(entity.FieldReviewedByGroupID)) +// WhereHasLogoFile applies a predicate to check if query has an edge logo_file. +func (f *EntityFilter) WhereHasLogoFile() { + f.Where(entql.HasEdge("logo_file")) } -// WhereLastReviewedAt applies the entql time.Time predicate on the last_reviewed_at field. -func (f *EntityFilter) WhereLastReviewedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldLastReviewedAt)) +// WhereHasLogoFileWith applies a predicate to check if query has an edge logo_file with a given conditions (other predicates). +func (f *EntityFilter) WhereHasLogoFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("logo_file", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *EntityFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(entity.FieldSystemOwned)) +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *EntityFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *EntityFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(entity.FieldInternalNotes)) +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *EntityFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *EntityFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(entity.FieldSystemInternalID)) +// addPredicate implements the predicateAdder interface. +func (_q *EntityTypeQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereEntityRelationshipStateName applies the entql string predicate on the entity_relationship_state_name field. -func (f *EntityFilter) WhereEntityRelationshipStateName(p entql.StringP) { - f.Where(p.Field(entity.FieldEntityRelationshipStateName)) +// Filter returns a Filter implementation to apply filters on the EntityTypeQuery builder. +func (_q *EntityTypeQuery) Filter() *EntityTypeFilter { + return &EntityTypeFilter{config: _q.config, predicateAdder: _q} } -// WhereEntityRelationshipStateID applies the entql string predicate on the entity_relationship_state_id field. -func (f *EntityFilter) WhereEntityRelationshipStateID(p entql.StringP) { - f.Where(p.Field(entity.FieldEntityRelationshipStateID)) +// addPredicate implements the predicateAdder interface. +func (m *EntityTypeMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereEntitySecurityQuestionnaireStatusName applies the entql string predicate on the entity_security_questionnaire_status_name field. -func (f *EntityFilter) WhereEntitySecurityQuestionnaireStatusName(p entql.StringP) { - f.Where(p.Field(entity.FieldEntitySecurityQuestionnaireStatusName)) +// Filter returns an entql.Where implementation to apply filters on the EntityTypeMutation builder. +func (m *EntityTypeMutation) Filter() *EntityTypeFilter { + return &EntityTypeFilter{config: m.config, predicateAdder: m} } -// WhereEntitySecurityQuestionnaireStatusID applies the entql string predicate on the entity_security_questionnaire_status_id field. -func (f *EntityFilter) WhereEntitySecurityQuestionnaireStatusID(p entql.StringP) { - f.Where(p.Field(entity.FieldEntitySecurityQuestionnaireStatusID)) +// EntityTypeFilter provides a generic filtering capability at runtime for EntityTypeQuery. +type EntityTypeFilter struct { + predicateAdder + config } -// WhereEntitySourceTypeName applies the entql string predicate on the entity_source_type_name field. -func (f *EntityFilter) WhereEntitySourceTypeName(p entql.StringP) { - f.Where(p.Field(entity.FieldEntitySourceTypeName)) +// Where applies the entql predicate on the query filter. +func (f *EntityTypeFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[24].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereEntitySourceTypeID applies the entql string predicate on the entity_source_type_id field. -func (f *EntityFilter) WhereEntitySourceTypeID(p entql.StringP) { - f.Where(p.Field(entity.FieldEntitySourceTypeID)) +// WhereID applies the entql string predicate on the id field. +func (f *EntityTypeFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldID)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *EntityFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(entity.FieldEnvironmentName)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EntityTypeFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldCreatedAt)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *EntityFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(entity.FieldEnvironmentID)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EntityTypeFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldUpdatedAt)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *EntityFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(entity.FieldScopeName)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EntityTypeFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldCreatedBy)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *EntityFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(entity.FieldScopeID)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EntityTypeFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldUpdatedBy)) } -// WhereName applies the entql string predicate on the name field. -func (f *EntityFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entity.FieldName)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntityTypeFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldDeletedAt)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *EntityFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(entity.FieldDisplayName)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntityTypeFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldDeletedBy)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EntityFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(entity.FieldDescription)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntityTypeFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitytype.FieldTags)) } -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *EntityFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(entity.FieldDomains)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntityTypeFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldOwnerID)) } -// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. -func (f *EntityFilter) WhereEntityTypeID(p entql.StringP) { - f.Where(p.Field(entity.FieldEntityTypeID)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *EntityTypeFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(entitytype.FieldSystemOwned)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *EntityFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(entity.FieldStatus)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *EntityTypeFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(entitytype.FieldInternalNotes)) } -// WhereApprovedForUse applies the entql bool predicate on the approved_for_use field. -func (f *EntityFilter) WhereApprovedForUse(p entql.BoolP) { - f.Where(p.Field(entity.FieldApprovedForUse)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *EntityTypeFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldSystemInternalID)) } -// WhereLinkedAssetIds applies the entql json.RawMessage predicate on the linked_asset_ids field. -func (f *EntityFilter) WhereLinkedAssetIds(p entql.BytesP) { - f.Where(p.Field(entity.FieldLinkedAssetIds)) +// WhereName applies the entql string predicate on the name field. +func (f *EntityTypeFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entitytype.FieldName)) } -// WhereHasSoc2 applies the entql bool predicate on the has_soc2 field. -func (f *EntityFilter) WhereHasSoc2(p entql.BoolP) { - f.Where(p.Field(entity.FieldHasSoc2)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntityTypeFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereSoc2PeriodEnd applies the entql time.Time predicate on the soc2_period_end field. -func (f *EntityFilter) WhereSoc2PeriodEnd(p entql.TimeP) { - f.Where(p.Field(entity.FieldSoc2PeriodEnd)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EntityTypeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereContractStartDate applies the entql time.Time predicate on the contract_start_date field. -func (f *EntityFilter) WhereContractStartDate(p entql.TimeP) { - f.Where(p.Field(entity.FieldContractStartDate)) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *EntityTypeFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereContractEndDate applies the entql time.Time predicate on the contract_end_date field. -func (f *EntityFilter) WhereContractEndDate(p entql.TimeP) { - f.Where(p.Field(entity.FieldContractEndDate)) +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *EntityTypeFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAutoRenews applies the entql bool predicate on the auto_renews field. -func (f *EntityFilter) WhereAutoRenews(p entql.BoolP) { - f.Where(p.Field(entity.FieldAutoRenews)) +// addPredicate implements the predicateAdder interface. +func (_q *EventQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereTerminationNoticeDays applies the entql int predicate on the termination_notice_days field. -func (f *EntityFilter) WhereTerminationNoticeDays(p entql.IntP) { - f.Where(p.Field(entity.FieldTerminationNoticeDays)) +// Filter returns a Filter implementation to apply filters on the EventQuery builder. +func (_q *EventQuery) Filter() *EventFilter { + return &EventFilter{config: _q.config, predicateAdder: _q} } -// WhereAnnualSpend applies the entql float64 predicate on the annual_spend field. -func (f *EntityFilter) WhereAnnualSpend(p entql.Float64P) { - f.Where(p.Field(entity.FieldAnnualSpend)) +// addPredicate implements the predicateAdder interface. +func (m *EventMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereSpendCurrency applies the entql string predicate on the spend_currency field. -func (f *EntityFilter) WhereSpendCurrency(p entql.StringP) { - f.Where(p.Field(entity.FieldSpendCurrency)) +// Filter returns an entql.Where implementation to apply filters on the EventMutation builder. +func (m *EventMutation) Filter() *EventFilter { + return &EventFilter{config: m.config, predicateAdder: m} } -// WhereBillingModel applies the entql string predicate on the billing_model field. -func (f *EntityFilter) WhereBillingModel(p entql.StringP) { - f.Where(p.Field(entity.FieldBillingModel)) +// EventFilter provides a generic filtering capability at runtime for EventQuery. +type EventFilter struct { + predicateAdder + config } -// WhereRenewalRisk applies the entql string predicate on the renewal_risk field. -func (f *EntityFilter) WhereRenewalRisk(p entql.StringP) { - f.Where(p.Field(entity.FieldRenewalRisk)) +// Where applies the entql predicate on the query filter. +func (f *EventFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereSSOEnforced applies the entql bool predicate on the sso_enforced field. -func (f *EntityFilter) WhereSSOEnforced(p entql.BoolP) { - f.Where(p.Field(entity.FieldSSOEnforced)) +// WhereID applies the entql string predicate on the id field. +func (f *EventFilter) WhereID(p entql.StringP) { + f.Where(p.Field(event.FieldID)) } -// WhereMfaSupported applies the entql bool predicate on the mfa_supported field. -func (f *EntityFilter) WhereMfaSupported(p entql.BoolP) { - f.Where(p.Field(entity.FieldMfaSupported)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EventFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(event.FieldCreatedAt)) } -// WhereMfaEnforced applies the entql bool predicate on the mfa_enforced field. -func (f *EntityFilter) WhereMfaEnforced(p entql.BoolP) { - f.Where(p.Field(entity.FieldMfaEnforced)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EventFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(event.FieldUpdatedAt)) } -// WhereStatusPageURL applies the entql string predicate on the status_page_url field. -func (f *EntityFilter) WhereStatusPageURL(p entql.StringP) { - f.Where(p.Field(entity.FieldStatusPageURL)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EventFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(event.FieldCreatedBy)) } -// WhereProvidedServices applies the entql json.RawMessage predicate on the provided_services field. -func (f *EntityFilter) WhereProvidedServices(p entql.BytesP) { - f.Where(p.Field(entity.FieldProvidedServices)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EventFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(event.FieldUpdatedBy)) } -// WhereLinks applies the entql json.RawMessage predicate on the links field. -func (f *EntityFilter) WhereLinks(p entql.BytesP) { - f.Where(p.Field(entity.FieldLinks)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EventFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(event.FieldTags)) } -// WhereRiskRating applies the entql string predicate on the risk_rating field. -func (f *EntityFilter) WhereRiskRating(p entql.StringP) { - f.Where(p.Field(entity.FieldRiskRating)) +// WhereEventID applies the entql string predicate on the event_id field. +func (f *EventFilter) WhereEventID(p entql.StringP) { + f.Where(p.Field(event.FieldEventID)) } -// WhereRiskScore applies the entql int predicate on the risk_score field. -func (f *EntityFilter) WhereRiskScore(p entql.IntP) { - f.Where(p.Field(entity.FieldRiskScore)) +// WhereCorrelationID applies the entql string predicate on the correlation_id field. +func (f *EventFilter) WhereCorrelationID(p entql.StringP) { + f.Where(p.Field(event.FieldCorrelationID)) } -// WhereRiskScoreCoverage applies the entql int predicate on the risk_score_coverage field. -func (f *EntityFilter) WhereRiskScoreCoverage(p entql.IntP) { - f.Where(p.Field(entity.FieldRiskScoreCoverage)) +// WhereEventType applies the entql string predicate on the event_type field. +func (f *EventFilter) WhereEventType(p entql.StringP) { + f.Where(p.Field(event.FieldEventType)) } -// WhereTier applies the entql string predicate on the tier field. -func (f *EntityFilter) WhereTier(p entql.StringP) { - f.Where(p.Field(entity.FieldTier)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EventFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(event.FieldMetadata)) } -// WhereReviewFrequency applies the entql string predicate on the review_frequency field. -func (f *EntityFilter) WhereReviewFrequency(p entql.StringP) { - f.Where(p.Field(entity.FieldReviewFrequency)) +// WhereHasUsers applies a predicate to check if query has an edge users. +func (f *EventFilter) WhereHasUsers() { + f.Where(entql.HasEdge("users")) } -// WhereNextReviewAt applies the entql time.Time predicate on the next_review_at field. -func (f *EntityFilter) WhereNextReviewAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldNextReviewAt)) +// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). +func (f *EventFilter) WhereHasUsersWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereContractRenewalAt applies the entql time.Time predicate on the contract_renewal_at field. -func (f *EntityFilter) WhereContractRenewalAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldContractRenewalAt)) +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *EventFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) } -// WhereVendorMetadata applies the entql json.RawMessage predicate on the vendor_metadata field. -func (f *EntityFilter) WhereVendorMetadata(p entql.BytesP) { - f.Where(p.Field(entity.FieldVendorMetadata)) +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *EventFilter) WhereHasGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereLogoRemoteURL applies the entql string predicate on the logo_remote_url field. -func (f *EntityFilter) WhereLogoRemoteURL(p entql.StringP) { - f.Where(p.Field(entity.FieldLogoRemoteURL)) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *EventFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereLogoFileID applies the entql string predicate on the logo_file_id field. -func (f *EntityFilter) WhereLogoFileID(p entql.StringP) { - f.Where(p.Field(entity.FieldLogoFileID)) +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *EventFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *EntityFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(entity.FieldExternalID)) +// WhereHasOrganizations applies a predicate to check if query has an edge organizations. +func (f *EventFilter) WhereHasOrganizations() { + f.Where(entql.HasEdge("organizations")) } -// WhereObservedAt applies the entql time.Time predicate on the observed_at field. -func (f *EntityFilter) WhereObservedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldObservedAt)) +// WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates). +func (f *EventFilter) WhereHasOrganizationsWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organizations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntityFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasInvites applies a predicate to check if query has an edge invites. +func (f *EventFilter) WhereHasInvites() { + f.Where(entql.HasEdge("invites")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntityFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). +func (f *EventFilter) WhereHasInvitesWith(preds ...predicate.Invite) { + f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *EntityFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens. +func (f *EventFilter) WhereHasPersonalAccessTokens() { + f.Where(entql.HasEdge("personal_access_tokens")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *EntityFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates). +func (f *EventFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) { + f.Where(entql.HasEdgeWith("personal_access_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *EntityFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasSecrets applies a predicate to check if query has an edge secrets. +func (f *EventFilter) WhereHasSecrets() { + f.Where(entql.HasEdge("secrets")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). +func (f *EventFilter) WhereHasSecretsWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *EntityFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasOrgMemberships applies a predicate to check if query has an edge org_memberships. +func (f *EventFilter) WhereHasOrgMemberships() { + f.Where(entql.HasEdge("org_memberships")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *EntityFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgMembershipsWith applies a predicate to check if query has an edge org_memberships with a given conditions (other predicates). +func (f *EventFilter) WhereHasOrgMembershipsWith(preds ...predicate.OrgMembership) { + f.Where(entql.HasEdgeWith("org_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. -func (f *EntityFilter) WhereHasInternalOwnerUser() { - f.Where(entql.HasEdge("internal_owner_user")) +// WhereHasGroupMemberships applies a predicate to check if query has an edge group_memberships. +func (f *EventFilter) WhereHasGroupMemberships() { + f.Where(entql.HasEdge("group_memberships")) } -// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). -func (f *EntityFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupMembershipsWith applies a predicate to check if query has an edge group_memberships with a given conditions (other predicates). +func (f *EventFilter) WhereHasGroupMembershipsWith(preds ...predicate.GroupMembership) { + f.Where(entql.HasEdgeWith("group_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. -func (f *EntityFilter) WhereHasInternalOwnerGroup() { - f.Where(entql.HasEdge("internal_owner_group")) +// WhereHasSubscribers applies a predicate to check if query has an edge subscribers. +func (f *EventFilter) WhereHasSubscribers() { + f.Where(entql.HasEdge("subscribers")) } -// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). -func (f *EntityFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubscribersWith applies a predicate to check if query has an edge subscribers with a given conditions (other predicates). +func (f *EventFilter) WhereHasSubscribersWith(preds ...predicate.Subscriber) { + f.Where(entql.HasEdgeWith("subscribers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasReviewedByUser applies a predicate to check if query has an edge reviewed_by_user. -func (f *EntityFilter) WhereHasReviewedByUser() { - f.Where(entql.HasEdge("reviewed_by_user")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *EventFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasReviewedByUserWith applies a predicate to check if query has an edge reviewed_by_user with a given conditions (other predicates). -func (f *EntityFilter) WhereHasReviewedByUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("reviewed_by_user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *EventFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasReviewedByGroup applies a predicate to check if query has an edge reviewed_by_group. -func (f *EntityFilter) WhereHasReviewedByGroup() { - f.Where(entql.HasEdge("reviewed_by_group")) +// WhereHasOrgSubscriptions applies a predicate to check if query has an edge org_subscriptions. +func (f *EventFilter) WhereHasOrgSubscriptions() { + f.Where(entql.HasEdge("org_subscriptions")) } -// WhereHasReviewedByGroupWith applies a predicate to check if query has an edge reviewed_by_group with a given conditions (other predicates). -func (f *EntityFilter) WhereHasReviewedByGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("reviewed_by_group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgSubscriptionsWith applies a predicate to check if query has an edge org_subscriptions with a given conditions (other predicates). +func (f *EventFilter) WhereHasOrgSubscriptionsWith(preds ...predicate.OrgSubscription) { + f.Where(entql.HasEdgeWith("org_subscriptions", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntityRelationshipState applies a predicate to check if query has an edge entity_relationship_state. -func (f *EntityFilter) WhereHasEntityRelationshipState() { - f.Where(entql.HasEdge("entity_relationship_state")) +// addPredicate implements the predicateAdder interface. +func (_q *EvidenceQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the EvidenceQuery builder. +func (_q *EvidenceQuery) Filter() *EvidenceFilter { + return &EvidenceFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *EvidenceMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the EvidenceMutation builder. +func (m *EvidenceMutation) Filter() *EvidenceFilter { + return &EvidenceFilter{config: m.config, predicateAdder: m} +} + +// EvidenceFilter provides a generic filtering capability at runtime for EvidenceQuery. +type EvidenceFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *EvidenceFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[26].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *EvidenceFilter) WhereID(p entql.StringP) { + f.Where(p.Field(evidence.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EvidenceFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(evidence.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EvidenceFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(evidence.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EvidenceFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(evidence.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EvidenceFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(evidence.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EvidenceFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(evidence.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EvidenceFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(evidence.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *EvidenceFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(evidence.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EvidenceFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(evidence.FieldTags)) } -// WhereHasEntityRelationshipStateWith applies a predicate to check if query has an edge entity_relationship_state with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEntityRelationshipStateWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("entity_relationship_state", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EvidenceFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(evidence.FieldOwnerID)) } -// WhereHasEntitySecurityQuestionnaireStatus applies a predicate to check if query has an edge entity_security_questionnaire_status. -func (f *EntityFilter) WhereHasEntitySecurityQuestionnaireStatus() { - f.Where(entql.HasEdge("entity_security_questionnaire_status")) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *EvidenceFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(evidence.FieldEnvironmentName)) } -// WhereHasEntitySecurityQuestionnaireStatusWith applies a predicate to check if query has an edge entity_security_questionnaire_status with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEntitySecurityQuestionnaireStatusWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("entity_security_questionnaire_status", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *EvidenceFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(evidence.FieldEnvironmentID)) } -// WhereHasEntitySourceType applies a predicate to check if query has an edge entity_source_type. -func (f *EntityFilter) WhereHasEntitySourceType() { - f.Where(entql.HasEdge("entity_source_type")) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *EvidenceFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(evidence.FieldScopeName)) } -// WhereHasEntitySourceTypeWith applies a predicate to check if query has an edge entity_source_type with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEntitySourceTypeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("entity_source_type", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *EvidenceFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(evidence.FieldScopeID)) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *EntityFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *EvidenceFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(evidence.FieldWorkflowEligibleMarker)) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExternalUUID applies the entql string predicate on the external_uuid field. +func (f *EvidenceFilter) WhereExternalUUID(p entql.StringP) { + f.Where(p.Field(evidence.FieldExternalUUID)) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *EntityFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereName applies the entql string predicate on the name field. +func (f *EvidenceFilter) WhereName(p entql.StringP) { + f.Where(p.Field(evidence.FieldName)) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *EntityFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDescription applies the entql string predicate on the description field. +func (f *EvidenceFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(evidence.FieldDescription)) } -// WhereHasContacts applies a predicate to check if query has an edge contacts. -func (f *EntityFilter) WhereHasContacts() { - f.Where(entql.HasEdge("contacts")) +// WhereCollectionProcedure applies the entql string predicate on the collection_procedure field. +func (f *EvidenceFilter) WhereCollectionProcedure(p entql.StringP) { + f.Where(p.Field(evidence.FieldCollectionProcedure)) } -// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). -func (f *EntityFilter) WhereHasContactsWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreationDate applies the entql time.Time predicate on the creation_date field. +func (f *EvidenceFilter) WhereCreationDate(p entql.TimeP) { + f.Where(p.Field(evidence.FieldCreationDate)) } -// WhereHasDocuments applies a predicate to check if query has an edge documents. -func (f *EntityFilter) WhereHasDocuments() { - f.Where(entql.HasEdge("documents")) +// WhereRenewalDate applies the entql time.Time predicate on the renewal_date field. +func (f *EvidenceFilter) WhereRenewalDate(p entql.TimeP) { + f.Where(p.Field(evidence.FieldRenewalDate)) } -// WhereHasDocumentsWith applies a predicate to check if query has an edge documents with a given conditions (other predicates). -func (f *EntityFilter) WhereHasDocumentsWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("documents", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSource applies the entql string predicate on the source field. +func (f *EvidenceFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(evidence.FieldSource)) } -// WhereHasNotes applies a predicate to check if query has an edge notes. -func (f *EntityFilter) WhereHasNotes() { - f.Where(entql.HasEdge("notes")) +// WhereIsAutomated applies the entql bool predicate on the is_automated field. +func (f *EvidenceFilter) WhereIsAutomated(p entql.BoolP) { + f.Where(p.Field(evidence.FieldIsAutomated)) } -// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). -func (f *EntityFilter) WhereHasNotesWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereURL applies the entql string predicate on the url field. +func (f *EvidenceFilter) WhereURL(p entql.StringP) { + f.Where(p.Field(evidence.FieldURL)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *EntityFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereStatus applies the entql string predicate on the status field. +func (f *EvidenceFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(evidence.FieldStatus)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *EntityFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereReviewFrequency applies the entql string predicate on the review_frequency field. +func (f *EvidenceFilter) WhereReviewFrequency(p entql.StringP) { + f.Where(p.Field(evidence.FieldReviewFrequency)) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *EntityFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EvidenceFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *EntityFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *EntityFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *EvidenceFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *EntityFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *EntityFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *EvidenceFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *EntityFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. -func (f *EntityFilter) WhereHasAssessmentResponses() { - f.Where(entql.HasEdge("assessment_responses")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *EvidenceFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). -func (f *EntityFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { - f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasVendorRiskScores applies a predicate to check if query has an edge vendor_risk_scores. -func (f *EntityFilter) WhereHasVendorRiskScores() { - f.Where(entql.HasEdge("vendor_risk_scores")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *EvidenceFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasVendorRiskScoresWith applies a predicate to check if query has an edge vendor_risk_scores with a given conditions (other predicates). -func (f *EntityFilter) WhereHasVendorRiskScoresWith(preds ...predicate.VendorRiskScore) { - f.Where(entql.HasEdgeWith("vendor_risk_scores", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *EntityFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. +func (f *EvidenceFilter) WhereHasControlObjectives() { + f.Where(entql.HasEdge("control_objectives")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *EntityFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubprocessors applies a predicate to check if query has an edge subprocessors. -func (f *EntityFilter) WhereHasSubprocessors() { - f.Where(entql.HasEdge("subprocessors")) +// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. +func (f *EvidenceFilter) WhereHasControlImplementations() { + f.Where(entql.HasEdge("control_implementations")) } -// WhereHasSubprocessorsWith applies a predicate to check if query has an edge subprocessors with a given conditions (other predicates). -func (f *EntityFilter) WhereHasSubprocessorsWith(preds ...predicate.Subprocessor) { - f.Where(entql.HasEdgeWith("subprocessors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAuthMethods applies a predicate to check if query has an edge auth_methods. -func (f *EntityFilter) WhereHasAuthMethods() { - f.Where(entql.HasEdge("auth_methods")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *EvidenceFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasAuthMethodsWith applies a predicate to check if query has an edge auth_methods with a given conditions (other predicates). -func (f *EntityFilter) WhereHasAuthMethodsWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("auth_methods", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEmployerIdentityHolders applies a predicate to check if query has an edge employer_identity_holders. -func (f *EntityFilter) WhereHasEmployerIdentityHolders() { - f.Where(entql.HasEdge("employer_identity_holders")) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *EvidenceFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereHasEmployerIdentityHoldersWith applies a predicate to check if query has an edge employer_identity_holders with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEmployerIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("employer_identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *EntityFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *EvidenceFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *EntityFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *EntityFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *EvidenceFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *EntityFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *EntityFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *EvidenceFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *EntityFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *EntityFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereHasComments applies a predicate to check if query has an edge comments. +func (f *EvidenceFilter) WhereHasComments() { + f.Where(entql.HasEdge("comments")) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *EntityFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasCommentsWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOutOfScopePlatforms applies a predicate to check if query has an edge out_of_scope_platforms. -func (f *EntityFilter) WhereHasOutOfScopePlatforms() { - f.Where(entql.HasEdge("out_of_scope_platforms")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *EvidenceFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasOutOfScopePlatformsWith applies a predicate to check if query has an edge out_of_scope_platforms with a given conditions (other predicates). -func (f *EntityFilter) WhereHasOutOfScopePlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("out_of_scope_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *EvidenceFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSourcePlatforms applies a predicate to check if query has an edge source_platforms. -func (f *EntityFilter) WhereHasSourcePlatforms() { - f.Where(entql.HasEdge("source_platforms")) +// addPredicate implements the predicateAdder interface. +func (_q *ExportQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasSourcePlatformsWith applies a predicate to check if query has an edge source_platforms with a given conditions (other predicates). -func (f *EntityFilter) WhereHasSourcePlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("source_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Filter returns a Filter implementation to apply filters on the ExportQuery builder. +func (_q *ExportQuery) Filter() *ExportFilter { + return &ExportFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *ExportMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the ExportMutation builder. +func (m *ExportMutation) Filter() *ExportFilter { + return &ExportFilter{config: m.config, predicateAdder: m} +} + +// ExportFilter provides a generic filtering capability at runtime for ExportQuery. +type ExportFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *ExportFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[27].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasEntityType applies a predicate to check if query has an edge entity_type. -func (f *EntityFilter) WhereHasEntityType() { - f.Where(entql.HasEdge("entity_type")) +// WhereID applies the entql string predicate on the id field. +func (f *ExportFilter) WhereID(p entql.StringP) { + f.Where(p.Field(export.FieldID)) } -// WhereHasEntityTypeWith applies a predicate to check if query has an edge entity_type with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEntityTypeWith(preds ...predicate.EntityType) { - f.Where(entql.HasEdgeWith("entity_type", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *ExportFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(export.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *ExportFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(export.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *ExportFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(export.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *ExportFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(export.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *ExportFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(export.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *ExportFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(export.FieldDeletedBy)) +} + +// WhereRequestorID applies the entql string predicate on the requestor_id field. +func (f *ExportFilter) WhereRequestorID(p entql.StringP) { + f.Where(p.Field(export.FieldRequestorID)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *ExportFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(export.FieldOwnerID)) +} + +// WhereExportType applies the entql string predicate on the export_type field. +func (f *ExportFilter) WhereExportType(p entql.StringP) { + f.Where(p.Field(export.FieldExportType)) +} + +// WhereFormat applies the entql string predicate on the format field. +func (f *ExportFilter) WhereFormat(p entql.StringP) { + f.Where(p.Field(export.FieldFormat)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ExportFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(export.FieldStatus)) +} + +// WhereFields applies the entql json.RawMessage predicate on the fields field. +func (f *ExportFilter) WhereFields(p entql.BytesP) { + f.Where(p.Field(export.FieldFields)) +} + +// WhereFilters applies the entql string predicate on the filters field. +func (f *ExportFilter) WhereFilters(p entql.StringP) { + f.Where(p.Field(export.FieldFilters)) +} + +// WhereErrorMessage applies the entql string predicate on the error_message field. +func (f *ExportFilter) WhereErrorMessage(p entql.StringP) { + f.Where(p.Field(export.FieldErrorMessage)) +} + +// WhereMode applies the entql string predicate on the mode field. +func (f *ExportFilter) WhereMode(p entql.StringP) { + f.Where(p.Field(export.FieldMode)) +} + +// WhereExportMetadata applies the entql json.RawMessage predicate on the export_metadata field. +func (f *ExportFilter) WhereExportMetadata(p entql.BytesP) { + f.Where(p.Field(export.FieldExportMetadata)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ExportFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ExportFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasLogoFile applies a predicate to check if query has an edge logo_file. -func (f *EntityFilter) WhereHasLogoFile() { - f.Where(entql.HasEdge("logo_file")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *ExportFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasLogoFileWith applies a predicate to check if query has an edge logo_file with a given conditions (other predicates). -func (f *EntityFilter) WhereHasLogoFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("logo_file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *ExportFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *EntityFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *ExportFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *EntityFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *ExportFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -25518,1412 +27106,1467 @@ func (f *EntityFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalP } // addPredicate implements the predicateAdder interface. -func (_q *EntityTypeQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *FileQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntityTypeQuery builder. -func (_q *EntityTypeQuery) Filter() *EntityTypeFilter { - return &EntityTypeFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the FileQuery builder. +func (_q *FileQuery) Filter() *FileFilter { + return &FileFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *EntityTypeMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *FileMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntityTypeMutation builder. -func (m *EntityTypeMutation) Filter() *EntityTypeFilter { - return &EntityTypeFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the FileMutation builder. +func (m *FileMutation) Filter() *FileFilter { + return &FileFilter{config: m.config, predicateAdder: m} } -// EntityTypeFilter provides a generic filtering capability at runtime for EntityTypeQuery. -type EntityTypeFilter struct { +// FileFilter provides a generic filtering capability at runtime for FileQuery. +type FileFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntityTypeFilter) Where(p entql.P) { +func (f *FileFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[24].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntityTypeFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldID)) +func (f *FileFilter) WhereID(p entql.StringP) { + f.Where(p.Field(file.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityTypeFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldCreatedAt)) +func (f *FileFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityTypeFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldUpdatedAt)) +func (f *FileFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityTypeFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldCreatedBy)) +func (f *FileFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(file.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityTypeFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldUpdatedBy)) +func (f *FileFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(file.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityTypeFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldDeletedAt)) +func (f *FileFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityTypeFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldDeletedBy)) +func (f *FileFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(file.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityTypeFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitytype.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityTypeFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldOwnerID)) +func (f *FileFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(file.FieldTags)) } // WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *EntityTypeFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(entitytype.FieldSystemOwned)) +func (f *FileFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(file.FieldSystemOwned)) } // WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *EntityTypeFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(entitytype.FieldInternalNotes)) +func (f *FileFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(file.FieldInternalNotes)) } // WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *EntityTypeFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldSystemInternalID)) +func (f *FileFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(file.FieldSystemInternalID)) } -// WhereName applies the entql string predicate on the name field. -func (f *EntityTypeFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entitytype.FieldName)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *FileFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(file.FieldEnvironmentName)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntityTypeFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *FileFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(file.FieldEnvironmentID)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntityTypeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *FileFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(file.FieldScopeName)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *EntityTypeFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *FileFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(file.FieldScopeID)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *EntityTypeFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCategoryName applies the entql string predicate on the category_name field. +func (f *FileFilter) WhereCategoryName(p entql.StringP) { + f.Where(p.Field(file.FieldCategoryName)) } -// addPredicate implements the predicateAdder interface. -func (_q *EventQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereCategoryID applies the entql string predicate on the category_id field. +func (f *FileFilter) WhereCategoryID(p entql.StringP) { + f.Where(p.Field(file.FieldCategoryID)) } -// Filter returns a Filter implementation to apply filters on the EventQuery builder. -func (_q *EventQuery) Filter() *EventFilter { - return &EventFilter{config: _q.config, predicateAdder: _q} +// WhereName applies the entql string predicate on the name field. +func (f *FileFilter) WhereName(p entql.StringP) { + f.Where(p.Field(file.FieldName)) } -// addPredicate implements the predicateAdder interface. -func (m *EventMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. +func (f *FileFilter) WhereProvidedFileName(p entql.StringP) { + f.Where(p.Field(file.FieldProvidedFileName)) } -// Filter returns an entql.Where implementation to apply filters on the EventMutation builder. -func (m *EventMutation) Filter() *EventFilter { - return &EventFilter{config: m.config, predicateAdder: m} +// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. +func (f *FileFilter) WhereProvidedFileExtension(p entql.StringP) { + f.Where(p.Field(file.FieldProvidedFileExtension)) } -// EventFilter provides a generic filtering capability at runtime for EventQuery. -type EventFilter struct { - predicateAdder - config +// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. +func (f *FileFilter) WhereProvidedFileSize(p entql.Int64P) { + f.Where(p.Field(file.FieldProvidedFileSize)) } -// Where applies the entql predicate on the query filter. -func (f *EventFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. +func (f *FileFilter) WherePersistedFileSize(p entql.Int64P) { + f.Where(p.Field(file.FieldPersistedFileSize)) } -// WhereID applies the entql string predicate on the id field. -func (f *EventFilter) WhereID(p entql.StringP) { - f.Where(p.Field(event.FieldID)) +// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. +func (f *FileFilter) WhereDetectedMimeType(p entql.StringP) { + f.Where(p.Field(file.FieldDetectedMimeType)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EventFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(event.FieldCreatedAt)) +// WhereMd5Hash applies the entql string predicate on the md5_hash field. +func (f *FileFilter) WhereMd5Hash(p entql.StringP) { + f.Where(p.Field(file.FieldMd5Hash)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EventFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(event.FieldUpdatedAt)) +// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. +func (f *FileFilter) WhereDetectedContentType(p entql.StringP) { + f.Where(p.Field(file.FieldDetectedContentType)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EventFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(event.FieldCreatedBy)) +// WhereStoreKey applies the entql string predicate on the store_key field. +func (f *FileFilter) WhereStoreKey(p entql.StringP) { + f.Where(p.Field(file.FieldStoreKey)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EventFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(event.FieldUpdatedBy)) +// WhereCategoryType applies the entql string predicate on the category_type field. +func (f *FileFilter) WhereCategoryType(p entql.StringP) { + f.Where(p.Field(file.FieldCategoryType)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EventFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(event.FieldTags)) +// WhereURI applies the entql string predicate on the uri field. +func (f *FileFilter) WhereURI(p entql.StringP) { + f.Where(p.Field(file.FieldURI)) } -// WhereEventID applies the entql string predicate on the event_id field. -func (f *EventFilter) WhereEventID(p entql.StringP) { - f.Where(p.Field(event.FieldEventID)) +// WhereStorageScheme applies the entql string predicate on the storage_scheme field. +func (f *FileFilter) WhereStorageScheme(p entql.StringP) { + f.Where(p.Field(file.FieldStorageScheme)) } -// WhereCorrelationID applies the entql string predicate on the correlation_id field. -func (f *EventFilter) WhereCorrelationID(p entql.StringP) { - f.Where(p.Field(event.FieldCorrelationID)) +// WhereStorageVolume applies the entql string predicate on the storage_volume field. +func (f *FileFilter) WhereStorageVolume(p entql.StringP) { + f.Where(p.Field(file.FieldStorageVolume)) } -// WhereEventType applies the entql string predicate on the event_type field. -func (f *EventFilter) WhereEventType(p entql.StringP) { - f.Where(p.Field(event.FieldEventType)) +// WhereStoragePath applies the entql string predicate on the storage_path field. +func (f *FileFilter) WhereStoragePath(p entql.StringP) { + f.Where(p.Field(file.FieldStoragePath)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EventFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(event.FieldMetadata)) +// WhereFileContents applies the entql []byte predicate on the file_contents field. +func (f *FileFilter) WhereFileContents(p entql.BytesP) { + f.Where(p.Field(file.FieldFileContents)) } -// WhereHasUsers applies a predicate to check if query has an edge users. -func (f *EventFilter) WhereHasUsers() { - f.Where(entql.HasEdge("users")) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *FileFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(file.FieldMetadata)) } -// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). -func (f *EventFilter) WhereHasUsersWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStorageRegion applies the entql string predicate on the storage_region field. +func (f *FileFilter) WhereStorageRegion(p entql.StringP) { + f.Where(p.Field(file.FieldStorageRegion)) } -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *EventFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) +// WhereStorageProvider applies the entql string predicate on the storage_provider field. +func (f *FileFilter) WhereStorageProvider(p entql.StringP) { + f.Where(p.Field(file.FieldStorageProvider)) } -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *EventFilter) WhereHasGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereLastAccessedAt applies the entql time.Time predicate on the last_accessed_at field. +func (f *FileFilter) WhereLastAccessedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldLastAccessedAt)) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *EventFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *FileFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *EventFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *FileFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganizations applies a predicate to check if query has an edge organizations. -func (f *EventFilter) WhereHasOrganizations() { - f.Where(entql.HasEdge("organizations")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *FileFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates). -func (f *EventFilter) WhereHasOrganizationsWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organizations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *FileFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInvites applies a predicate to check if query has an edge invites. -func (f *EventFilter) WhereHasInvites() { - f.Where(entql.HasEdge("invites")) +// WhereHasCategory applies a predicate to check if query has an edge category. +func (f *FileFilter) WhereHasCategory() { + f.Where(entql.HasEdge("category")) } -// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). -func (f *EventFilter) WhereHasInvitesWith(preds ...predicate.Invite) { - f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCategoryWith applies a predicate to check if query has an edge category with a given conditions (other predicates). +func (f *FileFilter) WhereHasCategoryWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("category", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens. -func (f *EventFilter) WhereHasPersonalAccessTokens() { - f.Where(entql.HasEdge("personal_access_tokens")) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *FileFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates). -func (f *EventFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) { - f.Where(entql.HasEdgeWith("personal_access_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *FileFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSecrets applies a predicate to check if query has an edge secrets. -func (f *EventFilter) WhereHasSecrets() { - f.Where(entql.HasEdge("secrets")) +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *FileFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) } -// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). -func (f *EventFilter) WhereHasSecretsWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *FileFilter) WhereHasGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgMemberships applies a predicate to check if query has an edge org_memberships. -func (f *EventFilter) WhereHasOrgMemberships() { - f.Where(entql.HasEdge("org_memberships")) +// WhereHasContact applies a predicate to check if query has an edge contact. +func (f *FileFilter) WhereHasContact() { + f.Where(entql.HasEdge("contact")) } -// WhereHasOrgMembershipsWith applies a predicate to check if query has an edge org_memberships with a given conditions (other predicates). -func (f *EventFilter) WhereHasOrgMembershipsWith(preds ...predicate.OrgMembership) { - f.Where(entql.HasEdgeWith("org_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). +func (f *FileFilter) WhereHasContactWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasGroupMemberships applies a predicate to check if query has an edge group_memberships. -func (f *EventFilter) WhereHasGroupMemberships() { - f.Where(entql.HasEdge("group_memberships")) +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *FileFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) } -// WhereHasGroupMembershipsWith applies a predicate to check if query has an edge group_memberships with a given conditions (other predicates). -func (f *EventFilter) WhereHasGroupMembershipsWith(preds ...predicate.GroupMembership) { - f.Where(entql.HasEdgeWith("group_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *FileFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubscribers applies a predicate to check if query has an edge subscribers. -func (f *EventFilter) WhereHasSubscribers() { - f.Where(entql.HasEdge("subscribers")) +// WhereHasOrganizationSetting applies a predicate to check if query has an edge organization_setting. +func (f *FileFilter) WhereHasOrganizationSetting() { + f.Where(entql.HasEdge("organization_setting")) } -// WhereHasSubscribersWith applies a predicate to check if query has an edge subscribers with a given conditions (other predicates). -func (f *EventFilter) WhereHasSubscribersWith(preds ...predicate.Subscriber) { - f.Where(entql.HasEdgeWith("subscribers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganizationSettingWith applies a predicate to check if query has an edge organization_setting with a given conditions (other predicates). +func (f *FileFilter) WhereHasOrganizationSettingWith(preds ...predicate.OrganizationSetting) { + f.Where(entql.HasEdgeWith("organization_setting", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *EventFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *FileFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *EventFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *FileFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgSubscriptions applies a predicate to check if query has an edge org_subscriptions. -func (f *EventFilter) WhereHasOrgSubscriptions() { - f.Where(entql.HasEdge("org_subscriptions")) +// WhereHasDocument applies a predicate to check if query has an edge document. +func (f *FileFilter) WhereHasDocument() { + f.Where(entql.HasEdge("document")) } -// WhereHasOrgSubscriptionsWith applies a predicate to check if query has an edge org_subscriptions with a given conditions (other predicates). -func (f *EventFilter) WhereHasOrgSubscriptionsWith(preds ...predicate.OrgSubscription) { - f.Where(entql.HasEdgeWith("org_subscriptions", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDocumentWith applies a predicate to check if query has an edge document with a given conditions (other predicates). +func (f *FileFilter) WhereHasDocumentWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("document", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *EvidenceQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasProgram applies a predicate to check if query has an edge program. +func (f *FileFilter) WhereHasProgram() { + f.Where(entql.HasEdge("program")) } -// Filter returns a Filter implementation to apply filters on the EvidenceQuery builder. -func (_q *EvidenceQuery) Filter() *EvidenceFilter { - return &EvidenceFilter{config: _q.config, predicateAdder: _q} +// WhereHasProgramWith applies a predicate to check if query has an edge program with a given conditions (other predicates). +func (f *FileFilter) WhereHasProgramWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("program", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *EvidenceMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasPlatform applies a predicate to check if query has an edge platform. +func (f *FileFilter) WhereHasPlatform() { + f.Where(entql.HasEdge("platform")) } -// Filter returns an entql.Where implementation to apply filters on the EvidenceMutation builder. -func (m *EvidenceMutation) Filter() *EvidenceFilter { - return &EvidenceFilter{config: m.config, predicateAdder: m} +// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). +func (f *FileFilter) WhereHasPlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// EvidenceFilter provides a generic filtering capability at runtime for EvidenceQuery. -type EvidenceFilter struct { - predicateAdder - config +// WhereHasEvidence applies a predicate to check if query has an edge evidence. +func (f *FileFilter) WhereHasEvidence() { + f.Where(entql.HasEdge("evidence")) } -// Where applies the entql predicate on the query filter. -func (f *EvidenceFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[26].Type, p, s); err != nil { - s.AddError(err) +// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). +func (f *FileFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { + f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *EvidenceFilter) WhereID(p entql.StringP) { - f.Where(p.Field(evidence.FieldID)) +// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. +func (f *FileFilter) WhereHasIdentityHolder() { + f.Where(entql.HasEdge("identity_holder")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EvidenceFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(evidence.FieldCreatedAt)) +// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). +func (f *FileFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EvidenceFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(evidence.FieldUpdatedAt)) +// WhereHasScan applies a predicate to check if query has an edge scan. +func (f *FileFilter) WhereHasScan() { + f.Where(entql.HasEdge("scan")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EvidenceFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(evidence.FieldCreatedBy)) +// WhereHasScanWith applies a predicate to check if query has an edge scan with a given conditions (other predicates). +func (f *FileFilter) WhereHasScanWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scan", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EvidenceFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(evidence.FieldUpdatedBy)) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *FileFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EvidenceFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(evidence.FieldDeletedAt)) +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *FileFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EvidenceFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(evidence.FieldDeletedBy)) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *FileFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *EvidenceFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(evidence.FieldDisplayID)) +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *FileFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EvidenceFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(evidence.FieldTags)) +// WhereHasSecrets applies a predicate to check if query has an edge secrets. +func (f *FileFilter) WhereHasSecrets() { + f.Where(entql.HasEdge("secrets")) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EvidenceFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(evidence.FieldOwnerID)) +// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). +func (f *FileFilter) WhereHasSecretsWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *EvidenceFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(evidence.FieldEnvironmentName)) +// WhereHasTrustCenterEntities applies a predicate to check if query has an edge trust_center_entities. +func (f *FileFilter) WhereHasTrustCenterEntities() { + f.Where(entql.HasEdge("trust_center_entities")) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *EvidenceFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(evidence.FieldEnvironmentID)) +// WhereHasTrustCenterEntitiesWith applies a predicate to check if query has an edge trust_center_entities with a given conditions (other predicates). +func (f *FileFilter) WhereHasTrustCenterEntitiesWith(preds ...predicate.TrustCenterEntity) { + f.Where(entql.HasEdgeWith("trust_center_entities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *EvidenceFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(evidence.FieldScopeName)) +// WhereHasTrustCenterDoc applies a predicate to check if query has an edge trust_center_doc. +func (f *FileFilter) WhereHasTrustCenterDoc() { + f.Where(entql.HasEdge("trust_center_doc")) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *EvidenceFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(evidence.FieldScopeID)) +// WhereHasTrustCenterDocWith applies a predicate to check if query has an edge trust_center_doc with a given conditions (other predicates). +func (f *FileFilter) WhereHasTrustCenterDocWith(preds ...predicate.TrustCenterDoc) { + f.Where(entql.HasEdgeWith("trust_center_doc", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *EvidenceFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(evidence.FieldWorkflowEligibleMarker)) +// WhereHasOriginalTrustCenterDoc applies a predicate to check if query has an edge original_trust_center_doc. +func (f *FileFilter) WhereHasOriginalTrustCenterDoc() { + f.Where(entql.HasEdge("original_trust_center_doc")) } -// WhereExternalUUID applies the entql string predicate on the external_uuid field. -func (f *EvidenceFilter) WhereExternalUUID(p entql.StringP) { - f.Where(p.Field(evidence.FieldExternalUUID)) +// WhereHasOriginalTrustCenterDocWith applies a predicate to check if query has an edge original_trust_center_doc with a given conditions (other predicates). +func (f *FileFilter) WhereHasOriginalTrustCenterDocWith(preds ...predicate.TrustCenterDoc) { + f.Where(entql.HasEdgeWith("original_trust_center_doc", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereName applies the entql string predicate on the name field. -func (f *EvidenceFilter) WhereName(p entql.StringP) { - f.Where(p.Field(evidence.FieldName)) +// addPredicate implements the predicateAdder interface. +func (_q *FileDownloadTokenQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EvidenceFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(evidence.FieldDescription)) +// Filter returns a Filter implementation to apply filters on the FileDownloadTokenQuery builder. +func (_q *FileDownloadTokenQuery) Filter() *FileDownloadTokenFilter { + return &FileDownloadTokenFilter{config: _q.config, predicateAdder: _q} } -// WhereCollectionProcedure applies the entql string predicate on the collection_procedure field. -func (f *EvidenceFilter) WhereCollectionProcedure(p entql.StringP) { - f.Where(p.Field(evidence.FieldCollectionProcedure)) +// addPredicate implements the predicateAdder interface. +func (m *FileDownloadTokenMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereCreationDate applies the entql time.Time predicate on the creation_date field. -func (f *EvidenceFilter) WhereCreationDate(p entql.TimeP) { - f.Where(p.Field(evidence.FieldCreationDate)) +// Filter returns an entql.Where implementation to apply filters on the FileDownloadTokenMutation builder. +func (m *FileDownloadTokenMutation) Filter() *FileDownloadTokenFilter { + return &FileDownloadTokenFilter{config: m.config, predicateAdder: m} } -// WhereRenewalDate applies the entql time.Time predicate on the renewal_date field. -func (f *EvidenceFilter) WhereRenewalDate(p entql.TimeP) { - f.Where(p.Field(evidence.FieldRenewalDate)) +// FileDownloadTokenFilter provides a generic filtering capability at runtime for FileDownloadTokenQuery. +type FileDownloadTokenFilter struct { + predicateAdder + config } -// WhereSource applies the entql string predicate on the source field. -func (f *EvidenceFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(evidence.FieldSource)) +// Where applies the entql predicate on the query filter. +func (f *FileDownloadTokenFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[29].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereIsAutomated applies the entql bool predicate on the is_automated field. -func (f *EvidenceFilter) WhereIsAutomated(p entql.BoolP) { - f.Where(p.Field(evidence.FieldIsAutomated)) +// WhereID applies the entql string predicate on the id field. +func (f *FileDownloadTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldID)) } -// WhereURL applies the entql string predicate on the url field. -func (f *EvidenceFilter) WhereURL(p entql.StringP) { - f.Where(p.Field(evidence.FieldURL)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *FileDownloadTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(filedownloadtoken.FieldCreatedAt)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *EvidenceFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(evidence.FieldStatus)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *FileDownloadTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(filedownloadtoken.FieldUpdatedAt)) } -// WhereReviewFrequency applies the entql string predicate on the review_frequency field. -func (f *EvidenceFilter) WhereReviewFrequency(p entql.StringP) { - f.Where(p.Field(evidence.FieldReviewFrequency)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *FileDownloadTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldCreatedBy)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EvidenceFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *FileDownloadTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldUpdatedBy)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *FileDownloadTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(filedownloadtoken.FieldDeletedAt)) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *EvidenceFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *FileDownloadTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldDeletedBy)) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *FileDownloadTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldOwnerID)) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *EvidenceFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereToken applies the entql string predicate on the token field. +func (f *FileDownloadTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldToken)) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTTL applies the entql time.Time predicate on the ttl field. +func (f *FileDownloadTokenFilter) WhereTTL(p entql.TimeP) { + f.Where(p.Field(filedownloadtoken.FieldTTL)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *EvidenceFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *FileDownloadTokenFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldUserID)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *FileDownloadTokenFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldOrganizationID)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *EvidenceFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereFileID applies the entql string predicate on the file_id field. +func (f *FileDownloadTokenFilter) WhereFileID(p entql.StringP) { + f.Where(p.Field(filedownloadtoken.FieldFileID)) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *FileDownloadTokenFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(filedownloadtoken.FieldSecret)) } -// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. -func (f *EvidenceFilter) WhereHasControlObjectives() { - f.Where(entql.HasEdge("control_objectives")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *FileDownloadTokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *FileDownloadTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. -func (f *EvidenceFilter) WhereHasControlImplementations() { - f.Where(entql.HasEdge("control_implementations")) +// addPredicate implements the predicateAdder interface. +func (_q *FindingQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the FindingQuery builder. +func (_q *FindingQuery) Filter() *FindingFilter { + return &FindingFilter{config: _q.config, predicateAdder: _q} } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *EvidenceFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// addPredicate implements the predicateAdder interface. +func (m *FindingMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the FindingMutation builder. +func (m *FindingMutation) Filter() *FindingFilter { + return &FindingFilter{config: m.config, predicateAdder: m} } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *EvidenceFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// FindingFilter provides a generic filtering capability at runtime for FindingQuery. +type FindingFilter struct { + predicateAdder + config } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *FindingFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[30].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *EvidenceFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereID applies the entql string predicate on the id field. +func (f *FindingFilter) WhereID(p entql.StringP) { + f.Where(p.Field(finding.FieldID)) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *FindingFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(finding.FieldCreatedAt)) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *EvidenceFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *FindingFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(finding.FieldUpdatedAt)) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *FindingFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(finding.FieldCreatedBy)) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *EvidenceFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *FindingFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(finding.FieldUpdatedBy)) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *FindingFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(finding.FieldDeletedAt)) } -// WhereHasComments applies a predicate to check if query has an edge comments. -func (f *EvidenceFilter) WhereHasComments() { - f.Where(entql.HasEdge("comments")) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *FindingFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(finding.FieldDeletedBy)) } -// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasCommentsWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *FindingFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(finding.FieldDisplayID)) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *EvidenceFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *FindingFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(finding.FieldTags)) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *EvidenceFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *FindingFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(finding.FieldOwnerID)) } -// addPredicate implements the predicateAdder interface. -func (_q *ExportQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *FindingFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(finding.FieldSystemOwned)) } -// Filter returns a Filter implementation to apply filters on the ExportQuery builder. -func (_q *ExportQuery) Filter() *ExportFilter { - return &ExportFilter{config: _q.config, predicateAdder: _q} +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *FindingFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(finding.FieldInternalNotes)) } -// addPredicate implements the predicateAdder interface. -func (m *ExportMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *FindingFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(finding.FieldSystemInternalID)) } -// Filter returns an entql.Where implementation to apply filters on the ExportMutation builder. -func (m *ExportMutation) Filter() *ExportFilter { - return &ExportFilter{config: m.config, predicateAdder: m} +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *FindingFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(finding.FieldEnvironmentName)) } -// ExportFilter provides a generic filtering capability at runtime for ExportQuery. -type ExportFilter struct { - predicateAdder - config +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *FindingFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(finding.FieldEnvironmentID)) } -// Where applies the entql predicate on the query filter. -func (f *ExportFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[27].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *FindingFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(finding.FieldScopeName)) } -// WhereID applies the entql string predicate on the id field. -func (f *ExportFilter) WhereID(p entql.StringP) { - f.Where(p.Field(export.FieldID)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *FindingFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(finding.FieldScopeID)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ExportFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(export.FieldCreatedAt)) +// WhereFindingStatusName applies the entql string predicate on the finding_status_name field. +func (f *FindingFilter) WhereFindingStatusName(p entql.StringP) { + f.Where(p.Field(finding.FieldFindingStatusName)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ExportFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(export.FieldUpdatedAt)) +// WhereFindingStatusID applies the entql string predicate on the finding_status_id field. +func (f *FindingFilter) WhereFindingStatusID(p entql.StringP) { + f.Where(p.Field(finding.FieldFindingStatusID)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ExportFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(export.FieldCreatedBy)) +// WhereExternalID applies the entql string predicate on the external_id field. +func (f *FindingFilter) WhereExternalID(p entql.StringP) { + f.Where(p.Field(finding.FieldExternalID)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ExportFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(export.FieldUpdatedBy)) +// WhereSecurityLevel applies the entql string predicate on the security_level field. +func (f *FindingFilter) WhereSecurityLevel(p entql.StringP) { + f.Where(p.Field(finding.FieldSecurityLevel)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ExportFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(export.FieldDeletedAt)) +// WhereExternalOwnerID applies the entql string predicate on the external_owner_id field. +func (f *FindingFilter) WhereExternalOwnerID(p entql.StringP) { + f.Where(p.Field(finding.FieldExternalOwnerID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ExportFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(export.FieldDeletedBy)) +// WhereSource applies the entql string predicate on the source field. +func (f *FindingFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(finding.FieldSource)) } -// WhereRequestorID applies the entql string predicate on the requestor_id field. -func (f *ExportFilter) WhereRequestorID(p entql.StringP) { - f.Where(p.Field(export.FieldRequestorID)) +// WhereResourceName applies the entql string predicate on the resource_name field. +func (f *FindingFilter) WhereResourceName(p entql.StringP) { + f.Where(p.Field(finding.FieldResourceName)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ExportFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(export.FieldOwnerID)) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *FindingFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(finding.FieldDisplayName)) } -// WhereExportType applies the entql string predicate on the export_type field. -func (f *ExportFilter) WhereExportType(p entql.StringP) { - f.Where(p.Field(export.FieldExportType)) +// WhereState applies the entql string predicate on the state field. +func (f *FindingFilter) WhereState(p entql.StringP) { + f.Where(p.Field(finding.FieldState)) } -// WhereFormat applies the entql string predicate on the format field. -func (f *ExportFilter) WhereFormat(p entql.StringP) { - f.Where(p.Field(export.FieldFormat)) +// WhereCategory applies the entql string predicate on the category field. +func (f *FindingFilter) WhereCategory(p entql.StringP) { + f.Where(p.Field(finding.FieldCategory)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ExportFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(export.FieldStatus)) +// WhereCategories applies the entql json.RawMessage predicate on the categories field. +func (f *FindingFilter) WhereCategories(p entql.BytesP) { + f.Where(p.Field(finding.FieldCategories)) } -// WhereFields applies the entql json.RawMessage predicate on the fields field. -func (f *ExportFilter) WhereFields(p entql.BytesP) { - f.Where(p.Field(export.FieldFields)) +// WhereFindingClass applies the entql string predicate on the finding_class field. +func (f *FindingFilter) WhereFindingClass(p entql.StringP) { + f.Where(p.Field(finding.FieldFindingClass)) } -// WhereFilters applies the entql string predicate on the filters field. -func (f *ExportFilter) WhereFilters(p entql.StringP) { - f.Where(p.Field(export.FieldFilters)) +// WhereSeverity applies the entql string predicate on the severity field. +func (f *FindingFilter) WhereSeverity(p entql.StringP) { + f.Where(p.Field(finding.FieldSeverity)) } -// WhereErrorMessage applies the entql string predicate on the error_message field. -func (f *ExportFilter) WhereErrorMessage(p entql.StringP) { - f.Where(p.Field(export.FieldErrorMessage)) +// WhereNumericSeverity applies the entql float64 predicate on the numeric_severity field. +func (f *FindingFilter) WhereNumericSeverity(p entql.Float64P) { + f.Where(p.Field(finding.FieldNumericSeverity)) } -// WhereMode applies the entql string predicate on the mode field. -func (f *ExportFilter) WhereMode(p entql.StringP) { - f.Where(p.Field(export.FieldMode)) +// WhereScore applies the entql float64 predicate on the score field. +func (f *FindingFilter) WhereScore(p entql.Float64P) { + f.Where(p.Field(finding.FieldScore)) } -// WhereExportMetadata applies the entql json.RawMessage predicate on the export_metadata field. -func (f *ExportFilter) WhereExportMetadata(p entql.BytesP) { - f.Where(p.Field(export.FieldExportMetadata)) +// WhereImpact applies the entql float64 predicate on the impact field. +func (f *FindingFilter) WhereImpact(p entql.Float64P) { + f.Where(p.Field(finding.FieldImpact)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ExportFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereExploitability applies the entql float64 predicate on the exploitability field. +func (f *FindingFilter) WhereExploitability(p entql.Float64P) { + f.Where(p.Field(finding.FieldExploitability)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ExportFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WherePriority applies the entql string predicate on the priority field. +func (f *FindingFilter) WherePriority(p entql.StringP) { + f.Where(p.Field(finding.FieldPriority)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *ExportFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereOpen applies the entql bool predicate on the open field. +func (f *FindingFilter) WhereOpen(p entql.BoolP) { + f.Where(p.Field(finding.FieldOpen)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *ExportFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereBlocksProduction applies the entql bool predicate on the blocks_production field. +func (f *FindingFilter) WhereBlocksProduction(p entql.BoolP) { + f.Where(p.Field(finding.FieldBlocksProduction)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *ExportFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereProduction applies the entql bool predicate on the production field. +func (f *FindingFilter) WhereProduction(p entql.BoolP) { + f.Where(p.Field(finding.FieldProduction)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *ExportFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WherePublic applies the entql bool predicate on the public field. +func (f *FindingFilter) WherePublic(p entql.BoolP) { + f.Where(p.Field(finding.FieldPublic)) } -// addPredicate implements the predicateAdder interface. -func (_q *FileQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereValidated applies the entql bool predicate on the validated field. +func (f *FindingFilter) WhereValidated(p entql.BoolP) { + f.Where(p.Field(finding.FieldValidated)) } -// Filter returns a Filter implementation to apply filters on the FileQuery builder. -func (_q *FileQuery) Filter() *FileFilter { - return &FileFilter{config: _q.config, predicateAdder: _q} +// WhereAssessmentID applies the entql string predicate on the assessment_id field. +func (f *FindingFilter) WhereAssessmentID(p entql.StringP) { + f.Where(p.Field(finding.FieldAssessmentID)) } -// addPredicate implements the predicateAdder interface. -func (m *FileMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereDescription applies the entql string predicate on the description field. +func (f *FindingFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(finding.FieldDescription)) } -// Filter returns an entql.Where implementation to apply filters on the FileMutation builder. -func (m *FileMutation) Filter() *FileFilter { - return &FileFilter{config: m.config, predicateAdder: m} +// WhereRecommendation applies the entql string predicate on the recommendation field. +func (f *FindingFilter) WhereRecommendation(p entql.StringP) { + f.Where(p.Field(finding.FieldRecommendation)) } -// FileFilter provides a generic filtering capability at runtime for FileQuery. -type FileFilter struct { - predicateAdder - config +// WhereRecommendedActions applies the entql string predicate on the recommended_actions field. +func (f *FindingFilter) WhereRecommendedActions(p entql.StringP) { + f.Where(p.Field(finding.FieldRecommendedActions)) } -// Where applies the entql predicate on the query filter. -func (f *FileFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereReferences applies the entql json.RawMessage predicate on the references field. +func (f *FindingFilter) WhereReferences(p entql.BytesP) { + f.Where(p.Field(finding.FieldReferences)) } -// WhereID applies the entql string predicate on the id field. -func (f *FileFilter) WhereID(p entql.StringP) { - f.Where(p.Field(file.FieldID)) +// WhereStepsToReproduce applies the entql json.RawMessage predicate on the steps_to_reproduce field. +func (f *FindingFilter) WhereStepsToReproduce(p entql.BytesP) { + f.Where(p.Field(finding.FieldStepsToReproduce)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FileFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldCreatedAt)) +// WhereTargets applies the entql json.RawMessage predicate on the targets field. +func (f *FindingFilter) WhereTargets(p entql.BytesP) { + f.Where(p.Field(finding.FieldTargets)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FileFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldUpdatedAt)) +// WhereTargetDetails applies the entql json.RawMessage predicate on the target_details field. +func (f *FindingFilter) WhereTargetDetails(p entql.BytesP) { + f.Where(p.Field(finding.FieldTargetDetails)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FileFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(file.FieldCreatedBy)) +// WhereVector applies the entql string predicate on the vector field. +func (f *FindingFilter) WhereVector(p entql.StringP) { + f.Where(p.Field(finding.FieldVector)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FileFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(file.FieldUpdatedBy)) +// WhereRemediationSLA applies the entql int predicate on the remediation_sla field. +func (f *FindingFilter) WhereRemediationSLA(p entql.IntP) { + f.Where(p.Field(finding.FieldRemediationSLA)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FileFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldDeletedAt)) +// WhereEventTime applies the entql time.Time predicate on the event_time field. +func (f *FindingFilter) WhereEventTime(p entql.TimeP) { + f.Where(p.Field(finding.FieldEventTime)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FileFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(file.FieldDeletedBy)) +// WhereReportedAt applies the entql time.Time predicate on the reported_at field. +func (f *FindingFilter) WhereReportedAt(p entql.TimeP) { + f.Where(p.Field(finding.FieldReportedAt)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FileFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(file.FieldTags)) +// WhereSourceUpdatedAt applies the entql time.Time predicate on the source_updated_at field. +func (f *FindingFilter) WhereSourceUpdatedAt(p entql.TimeP) { + f.Where(p.Field(finding.FieldSourceUpdatedAt)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *FileFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(file.FieldSystemOwned)) +// WhereExternalURI applies the entql string predicate on the external_uri field. +func (f *FindingFilter) WhereExternalURI(p entql.StringP) { + f.Where(p.Field(finding.FieldExternalURI)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *FileFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(file.FieldInternalNotes)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *FindingFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(finding.FieldMetadata)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *FileFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(file.FieldSystemInternalID)) +// WhereRawPayload applies the entql json.RawMessage predicate on the raw_payload field. +func (f *FindingFilter) WhereRawPayload(p entql.BytesP) { + f.Where(p.Field(finding.FieldRawPayload)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *FileFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(file.FieldEnvironmentName)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *FindingFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *FileFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(file.FieldEnvironmentID)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *FindingFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *FileFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(file.FieldScopeName)) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *FindingFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *FileFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(file.FieldScopeID)) +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *FindingFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCategoryName applies the entql string predicate on the category_name field. -func (f *FileFilter) WhereCategoryName(p entql.StringP) { - f.Where(p.Field(file.FieldCategoryName)) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *FindingFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereCategoryID applies the entql string predicate on the category_id field. -func (f *FileFilter) WhereCategoryID(p entql.StringP) { - f.Where(p.Field(file.FieldCategoryID)) +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *FindingFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereName applies the entql string predicate on the name field. -func (f *FileFilter) WhereName(p entql.StringP) { - f.Where(p.Field(file.FieldName)) +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *FindingFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) } -// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. -func (f *FileFilter) WhereProvidedFileName(p entql.StringP) { - f.Where(p.Field(file.FieldProvidedFileName)) +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *FindingFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. -func (f *FileFilter) WhereProvidedFileExtension(p entql.StringP) { - f.Where(p.Field(file.FieldProvidedFileExtension)) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *FindingFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. -func (f *FileFilter) WhereProvidedFileSize(p entql.Int64P) { - f.Where(p.Field(file.FieldProvidedFileSize)) +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *FindingFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. -func (f *FileFilter) WherePersistedFileSize(p entql.Int64P) { - f.Where(p.Field(file.FieldPersistedFileSize)) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *FindingFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. -func (f *FileFilter) WhereDetectedMimeType(p entql.StringP) { - f.Where(p.Field(file.FieldDetectedMimeType)) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *FindingFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMd5Hash applies the entql string predicate on the md5_hash field. -func (f *FileFilter) WhereMd5Hash(p entql.StringP) { - f.Where(p.Field(file.FieldMd5Hash)) +// WhereHasFindingStatus applies a predicate to check if query has an edge finding_status. +func (f *FindingFilter) WhereHasFindingStatus() { + f.Where(entql.HasEdge("finding_status")) } -// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. -func (f *FileFilter) WhereDetectedContentType(p entql.StringP) { - f.Where(p.Field(file.FieldDetectedContentType)) +// WhereHasFindingStatusWith applies a predicate to check if query has an edge finding_status with a given conditions (other predicates). +func (f *FindingFilter) WhereHasFindingStatusWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("finding_status", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStoreKey applies the entql string predicate on the store_key field. -func (f *FileFilter) WhereStoreKey(p entql.StringP) { - f.Where(p.Field(file.FieldStoreKey)) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *FindingFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereCategoryType applies the entql string predicate on the category_type field. -func (f *FileFilter) WhereCategoryType(p entql.StringP) { - f.Where(p.Field(file.FieldCategoryType)) +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *FindingFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereURI applies the entql string predicate on the uri field. -func (f *FileFilter) WhereURI(p entql.StringP) { - f.Where(p.Field(file.FieldURI)) +// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. +func (f *FindingFilter) WhereHasVulnerabilities() { + f.Where(entql.HasEdge("vulnerabilities")) } -// WhereStorageScheme applies the entql string predicate on the storage_scheme field. -func (f *FileFilter) WhereStorageScheme(p entql.StringP) { - f.Where(p.Field(file.FieldStorageScheme)) +// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). +func (f *FindingFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { + f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStorageVolume applies the entql string predicate on the storage_volume field. -func (f *FileFilter) WhereStorageVolume(p entql.StringP) { - f.Where(p.Field(file.FieldStorageVolume)) +// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. +func (f *FindingFilter) WhereHasActionPlans() { + f.Where(entql.HasEdge("action_plans")) } -// WhereStoragePath applies the entql string predicate on the storage_path field. -func (f *FileFilter) WhereStoragePath(p entql.StringP) { - f.Where(p.Field(file.FieldStoragePath)) +// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). +func (f *FindingFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereFileContents applies the entql []byte predicate on the file_contents field. -func (f *FileFilter) WhereFileContents(p entql.BytesP) { - f.Where(p.Field(file.FieldFileContents)) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *FindingFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *FileFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(file.FieldMetadata)) +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *FindingFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStorageRegion applies the entql string predicate on the storage_region field. -func (f *FileFilter) WhereStorageRegion(p entql.StringP) { - f.Where(p.Field(file.FieldStorageRegion)) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *FindingFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) +} + +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *FindingFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStorageProvider applies the entql string predicate on the storage_provider field. -func (f *FileFilter) WhereStorageProvider(p entql.StringP) { - f.Where(p.Field(file.FieldStorageProvider)) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *FindingFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereLastAccessedAt applies the entql time.Time predicate on the last_accessed_at field. -func (f *FileFilter) WhereLastAccessedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldLastAccessedAt)) +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *FindingFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *FileFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *FindingFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *FileFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *FindingFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *FileFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *FindingFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *FileFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *FindingFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCategory applies a predicate to check if query has an edge category. -func (f *FileFilter) WhereHasCategory() { - f.Where(entql.HasEdge("category")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *FindingFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasCategoryWith applies a predicate to check if query has an edge category with a given conditions (other predicates). -func (f *FileFilter) WhereHasCategoryWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("category", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *FindingFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *FileFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasScans applies a predicate to check if query has an edge scans. +func (f *FindingFilter) WhereHasScans() { + f.Where(entql.HasEdge("scans")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *FileFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). +func (f *FindingFilter) WhereHasScansWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *FileFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *FindingFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *FileFilter) WhereHasGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *FindingFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasContact applies a predicate to check if query has an edge contact. -func (f *FileFilter) WhereHasContact() { - f.Where(entql.HasEdge("contact")) +// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. +func (f *FindingFilter) WhereHasDirectoryAccounts() { + f.Where(entql.HasEdge("directory_accounts")) } -// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). -func (f *FileFilter) WhereHasContactWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). +func (f *FindingFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *FileFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *FindingFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *FileFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *FindingFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganizationSetting applies a predicate to check if query has an edge organization_setting. -func (f *FileFilter) WhereHasOrganizationSetting() { - f.Where(entql.HasEdge("organization_setting")) +// WhereHasRemediations applies a predicate to check if query has an edge remediations. +func (f *FindingFilter) WhereHasRemediations() { + f.Where(entql.HasEdge("remediations")) } -// WhereHasOrganizationSettingWith applies a predicate to check if query has an edge organization_setting with a given conditions (other predicates). -func (f *FileFilter) WhereHasOrganizationSettingWith(preds ...predicate.OrganizationSetting) { - f.Where(entql.HasEdgeWith("organization_setting", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). +func (f *FindingFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { + f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *FileFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) +// WhereHasReviews applies a predicate to check if query has an edge reviews. +func (f *FindingFilter) WhereHasReviews() { + f.Where(entql.HasEdge("reviews")) } -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *FileFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). +func (f *FindingFilter) WhereHasReviewsWith(preds ...predicate.Review) { + f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDocument applies a predicate to check if query has an edge document. -func (f *FileFilter) WhereHasDocument() { - f.Where(entql.HasEdge("document")) +// WhereHasComments applies a predicate to check if query has an edge comments. +func (f *FindingFilter) WhereHasComments() { + f.Where(entql.HasEdge("comments")) } -// WhereHasDocumentWith applies a predicate to check if query has an edge document with a given conditions (other predicates). -func (f *FileFilter) WhereHasDocumentWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("document", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). +func (f *FindingFilter) WhereHasCommentsWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProgram applies a predicate to check if query has an edge program. -func (f *FileFilter) WhereHasProgram() { - f.Where(entql.HasEdge("program")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *FindingFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasProgramWith applies a predicate to check if query has an edge program with a given conditions (other predicates). -func (f *FileFilter) WhereHasProgramWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("program", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *FindingFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *FileFilter) WhereHasPlatform() { - f.Where(entql.HasEdge("platform")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *FindingFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *FileFilter) WhereHasPlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *FindingFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvidence applies a predicate to check if query has an edge evidence. -func (f *FileFilter) WhereHasEvidence() { - f.Where(entql.HasEdge("evidence")) +// WhereHasCheckResults applies a predicate to check if query has an edge check_results. +func (f *FindingFilter) WhereHasCheckResults() { + f.Where(entql.HasEdge("check_results")) } -// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). -func (f *FileFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { - f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). +func (f *FindingFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { + f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolder applies a predicate to check if query has an edge identity_holder. -func (f *FileFilter) WhereHasIdentityHolder() { - f.Where(entql.HasEdge("identity_holder")) +// WhereHasControlMappings applies a predicate to check if query has an edge control_mappings. +func (f *FindingFilter) WhereHasControlMappings() { + f.Where(entql.HasEdge("control_mappings")) } -// WhereHasIdentityHolderWith applies a predicate to check if query has an edge identity_holder with a given conditions (other predicates). -func (f *FileFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlMappingsWith applies a predicate to check if query has an edge control_mappings with a given conditions (other predicates). +func (f *FindingFilter) WhereHasControlMappingsWith(preds ...predicate.FindingControl) { + f.Where(entql.HasEdgeWith("control_mappings", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScan applies a predicate to check if query has an edge scan. -func (f *FileFilter) WhereHasScan() { - f.Where(entql.HasEdge("scan")) +// addPredicate implements the predicateAdder interface. +func (_q *FindingControlQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the FindingControlQuery builder. +func (_q *FindingControlQuery) Filter() *FindingControlFilter { + return &FindingControlFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *FindingControlMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the FindingControlMutation builder. +func (m *FindingControlMutation) Filter() *FindingControlFilter { + return &FindingControlFilter{config: m.config, predicateAdder: m} +} + +// FindingControlFilter provides a generic filtering capability at runtime for FindingControlQuery. +type FindingControlFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *FindingControlFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[31].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *FindingControlFilter) WhereID(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *FindingControlFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(findingcontrol.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *FindingControlFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(findingcontrol.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *FindingControlFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *FindingControlFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldUpdatedBy)) +} + +// WhereFindingID applies the entql string predicate on the finding_id field. +func (f *FindingControlFilter) WhereFindingID(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldFindingID)) +} + +// WhereControlID applies the entql string predicate on the control_id field. +func (f *FindingControlFilter) WhereControlID(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldControlID)) } -// WhereHasScanWith applies a predicate to check if query has an edge scan with a given conditions (other predicates). -func (f *FileFilter) WhereHasScanWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scan", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStandardID applies the entql string predicate on the standard_id field. +func (f *FindingControlFilter) WhereStandardID(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldStandardID)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *FileFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereExternalStandard applies the entql string predicate on the external_standard field. +func (f *FindingControlFilter) WhereExternalStandard(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldExternalStandard)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *FileFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExternalStandardVersion applies the entql string predicate on the external_standard_version field. +func (f *FindingControlFilter) WhereExternalStandardVersion(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldExternalStandardVersion)) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *FileFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereExternalControlID applies the entql string predicate on the external_control_id field. +func (f *FindingControlFilter) WhereExternalControlID(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldExternalControlID)) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *FileFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSource applies the entql string predicate on the source field. +func (f *FindingControlFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(findingcontrol.FieldSource)) } -// WhereHasSecrets applies a predicate to check if query has an edge secrets. -func (f *FileFilter) WhereHasSecrets() { - f.Where(entql.HasEdge("secrets")) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *FindingControlFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(findingcontrol.FieldMetadata)) } -// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). -func (f *FileFilter) WhereHasSecretsWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDiscoveredAt applies the entql time.Time predicate on the discovered_at field. +func (f *FindingControlFilter) WhereDiscoveredAt(p entql.TimeP) { + f.Where(p.Field(findingcontrol.FieldDiscoveredAt)) } -// WhereHasTrustCenterEntities applies a predicate to check if query has an edge trust_center_entities. -func (f *FileFilter) WhereHasTrustCenterEntities() { - f.Where(entql.HasEdge("trust_center_entities")) +// WhereHasFinding applies a predicate to check if query has an edge finding. +func (f *FindingControlFilter) WhereHasFinding() { + f.Where(entql.HasEdge("finding")) } -// WhereHasTrustCenterEntitiesWith applies a predicate to check if query has an edge trust_center_entities with a given conditions (other predicates). -func (f *FileFilter) WhereHasTrustCenterEntitiesWith(preds ...predicate.TrustCenterEntity) { - f.Where(entql.HasEdgeWith("trust_center_entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFindingWith applies a predicate to check if query has an edge finding with a given conditions (other predicates). +func (f *FindingControlFilter) WhereHasFindingWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("finding", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTrustCenterDoc applies a predicate to check if query has an edge trust_center_doc. -func (f *FileFilter) WhereHasTrustCenterDoc() { - f.Where(entql.HasEdge("trust_center_doc")) +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *FindingControlFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) } -// WhereHasTrustCenterDocWith applies a predicate to check if query has an edge trust_center_doc with a given conditions (other predicates). -func (f *FileFilter) WhereHasTrustCenterDocWith(preds ...predicate.TrustCenterDoc) { - f.Where(entql.HasEdgeWith("trust_center_doc", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *FindingControlFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOriginalTrustCenterDoc applies a predicate to check if query has an edge original_trust_center_doc. -func (f *FileFilter) WhereHasOriginalTrustCenterDoc() { - f.Where(entql.HasEdge("original_trust_center_doc")) +// WhereHasStandard applies a predicate to check if query has an edge standard. +func (f *FindingControlFilter) WhereHasStandard() { + f.Where(entql.HasEdge("standard")) } -// WhereHasOriginalTrustCenterDocWith applies a predicate to check if query has an edge original_trust_center_doc with a given conditions (other predicates). -func (f *FileFilter) WhereHasOriginalTrustCenterDocWith(preds ...predicate.TrustCenterDoc) { - f.Where(entql.HasEdgeWith("original_trust_center_doc", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). +func (f *FindingControlFilter) WhereHasStandardWith(preds ...predicate.Standard) { + f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -26931,811 +28574,985 @@ func (f *FileFilter) WhereHasOriginalTrustCenterDocWith(preds ...predicate.Trust } // addPredicate implements the predicateAdder interface. -func (_q *FileDownloadTokenQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *GroupQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the FileDownloadTokenQuery builder. -func (_q *FileDownloadTokenQuery) Filter() *FileDownloadTokenFilter { - return &FileDownloadTokenFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the GroupQuery builder. +func (_q *GroupQuery) Filter() *GroupFilter { + return &GroupFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *FileDownloadTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *GroupMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the FileDownloadTokenMutation builder. -func (m *FileDownloadTokenMutation) Filter() *FileDownloadTokenFilter { - return &FileDownloadTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the GroupMutation builder. +func (m *GroupMutation) Filter() *GroupFilter { + return &GroupFilter{config: m.config, predicateAdder: m} } -// FileDownloadTokenFilter provides a generic filtering capability at runtime for FileDownloadTokenQuery. -type FileDownloadTokenFilter struct { +// GroupFilter provides a generic filtering capability at runtime for GroupQuery. +type GroupFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *FileDownloadTokenFilter) Where(p entql.P) { +func (f *GroupFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[29].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[32].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *FileDownloadTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldID)) +func (f *GroupFilter) WhereID(p entql.StringP) { + f.Where(p.Field(group.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FileDownloadTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(filedownloadtoken.FieldCreatedAt)) +func (f *GroupFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FileDownloadTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(filedownloadtoken.FieldUpdatedAt)) +func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FileDownloadTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldCreatedBy)) +func (f *GroupFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(group.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FileDownloadTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldUpdatedBy)) +func (f *GroupFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(group.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FileDownloadTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(filedownloadtoken.FieldDeletedAt)) +func (f *GroupFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FileDownloadTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldDeletedBy)) +func (f *GroupFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(group.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *GroupFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(group.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *GroupFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(group.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *FileDownloadTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldOwnerID)) +func (f *GroupFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(group.FieldOwnerID)) } -// WhereToken applies the entql string predicate on the token field. -func (f *FileDownloadTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldToken)) +// WhereName applies the entql string predicate on the name field. +func (f *GroupFilter) WhereName(p entql.StringP) { + f.Where(p.Field(group.FieldName)) } -// WhereTTL applies the entql time.Time predicate on the ttl field. -func (f *FileDownloadTokenFilter) WhereTTL(p entql.TimeP) { - f.Where(p.Field(filedownloadtoken.FieldTTL)) +// WhereDescription applies the entql string predicate on the description field. +func (f *GroupFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(group.FieldDescription)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *FileDownloadTokenFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldUserID)) +// WhereIsManaged applies the entql bool predicate on the is_managed field. +func (f *GroupFilter) WhereIsManaged(p entql.BoolP) { + f.Where(p.Field(group.FieldIsManaged)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *FileDownloadTokenFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldOrganizationID)) +// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. +func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP) { + f.Where(p.Field(group.FieldGravatarLogoURL)) } -// WhereFileID applies the entql string predicate on the file_id field. -func (f *FileDownloadTokenFilter) WhereFileID(p entql.StringP) { - f.Where(p.Field(filedownloadtoken.FieldFileID)) +// WhereLogoURL applies the entql string predicate on the logo_url field. +func (f *GroupFilter) WhereLogoURL(p entql.StringP) { + f.Where(p.Field(group.FieldLogoURL)) } -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *FileDownloadTokenFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(filedownloadtoken.FieldSecret)) +// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. +func (f *GroupFilter) WhereAvatarLocalFileID(p entql.StringP) { + f.Where(p.Field(group.FieldAvatarLocalFileID)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *GroupFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(group.FieldDisplayName)) +} + +// WhereOscalRole applies the entql string predicate on the oscal_role field. +func (f *GroupFilter) WhereOscalRole(p entql.StringP) { + f.Where(p.Field(group.FieldOscalRole)) +} + +// WhereOscalPartyUUID applies the entql string predicate on the oscal_party_uuid field. +func (f *GroupFilter) WhereOscalPartyUUID(p entql.StringP) { + f.Where(p.Field(group.FieldOscalPartyUUID)) +} + +// WhereOscalContactUuids applies the entql json.RawMessage predicate on the oscal_contact_uuids field. +func (f *GroupFilter) WhereOscalContactUuids(p entql.BytesP) { + f.Where(p.Field(group.FieldOscalContactUuids)) +} + +// WhereScimExternalID applies the entql string predicate on the scim_external_id field. +func (f *GroupFilter) WhereScimExternalID(p entql.StringP) { + f.Where(p.Field(group.FieldScimExternalID)) +} + +// WhereScimDisplayName applies the entql string predicate on the scim_display_name field. +func (f *GroupFilter) WhereScimDisplayName(p entql.StringP) { + f.Where(p.Field(group.FieldScimDisplayName)) +} + +// WhereScimActive applies the entql bool predicate on the scim_active field. +func (f *GroupFilter) WhereScimActive(p entql.BoolP) { + f.Where(p.Field(group.FieldScimActive)) +} + +// WhereScimGroupMailing applies the entql string predicate on the scim_group_mailing field. +func (f *GroupFilter) WhereScimGroupMailing(p entql.StringP) { + f.Where(p.Field(group.FieldScimGroupMailing)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *FileDownloadTokenFilter) WhereHasOwner() { +func (f *GroupFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *FileDownloadTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { +func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { - p(s) - } - }))) -} - -// addPredicate implements the predicateAdder interface. -func (_q *FindingQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the FindingQuery builder. -func (_q *FindingQuery) Filter() *FindingFilter { - return &FindingFilter{config: _q.config, predicateAdder: _q} + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *FindingMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasProgramEditors applies a predicate to check if query has an edge program_editors. +func (f *GroupFilter) WhereHasProgramEditors() { + f.Where(entql.HasEdge("program_editors")) } -// Filter returns an entql.Where implementation to apply filters on the FindingMutation builder. -func (m *FindingMutation) Filter() *FindingFilter { - return &FindingFilter{config: m.config, predicateAdder: m} +// WhereHasProgramEditorsWith applies a predicate to check if query has an edge program_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasProgramEditorsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("program_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// FindingFilter provides a generic filtering capability at runtime for FindingQuery. -type FindingFilter struct { - predicateAdder - config +// WhereHasProgramBlockedGroups applies a predicate to check if query has an edge program_blocked_groups. +func (f *GroupFilter) WhereHasProgramBlockedGroups() { + f.Where(entql.HasEdge("program_blocked_groups")) } -// Where applies the entql predicate on the query filter. -func (f *FindingFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[30].Type, p, s); err != nil { - s.AddError(err) +// WhereHasProgramBlockedGroupsWith applies a predicate to check if query has an edge program_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasProgramBlockedGroupsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("program_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *FindingFilter) WhereID(p entql.StringP) { - f.Where(p.Field(finding.FieldID)) +// WhereHasProgramViewers applies a predicate to check if query has an edge program_viewers. +func (f *GroupFilter) WhereHasProgramViewers() { + f.Where(entql.HasEdge("program_viewers")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FindingFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(finding.FieldCreatedAt)) +// WhereHasProgramViewersWith applies a predicate to check if query has an edge program_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasProgramViewersWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("program_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FindingFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(finding.FieldUpdatedAt)) +// WhereHasRiskEditors applies a predicate to check if query has an edge risk_editors. +func (f *GroupFilter) WhereHasRiskEditors() { + f.Where(entql.HasEdge("risk_editors")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FindingFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(finding.FieldCreatedBy)) +// WhereHasRiskEditorsWith applies a predicate to check if query has an edge risk_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasRiskEditorsWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FindingFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(finding.FieldUpdatedBy)) +// WhereHasRiskBlockedGroups applies a predicate to check if query has an edge risk_blocked_groups. +func (f *GroupFilter) WhereHasRiskBlockedGroups() { + f.Where(entql.HasEdge("risk_blocked_groups")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FindingFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(finding.FieldDeletedAt)) +// WhereHasRiskBlockedGroupsWith applies a predicate to check if query has an edge risk_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasRiskBlockedGroupsWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FindingFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(finding.FieldDeletedBy)) +// WhereHasRiskViewers applies a predicate to check if query has an edge risk_viewers. +func (f *GroupFilter) WhereHasRiskViewers() { + f.Where(entql.HasEdge("risk_viewers")) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *FindingFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(finding.FieldDisplayID)) +// WhereHasRiskViewersWith applies a predicate to check if query has an edge risk_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasRiskViewersWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FindingFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(finding.FieldTags)) +// WhereHasControlObjectiveEditors applies a predicate to check if query has an edge control_objective_editors. +func (f *GroupFilter) WhereHasControlObjectiveEditors() { + f.Where(entql.HasEdge("control_objective_editors")) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *FindingFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(finding.FieldOwnerID)) +// WhereHasControlObjectiveEditorsWith applies a predicate to check if query has an edge control_objective_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlObjectiveEditorsWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objective_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *FindingFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(finding.FieldSystemOwned)) +// WhereHasControlObjectiveBlockedGroups applies a predicate to check if query has an edge control_objective_blocked_groups. +func (f *GroupFilter) WhereHasControlObjectiveBlockedGroups() { + f.Where(entql.HasEdge("control_objective_blocked_groups")) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *FindingFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(finding.FieldInternalNotes)) +// WhereHasControlObjectiveBlockedGroupsWith applies a predicate to check if query has an edge control_objective_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlObjectiveBlockedGroupsWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objective_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *FindingFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(finding.FieldSystemInternalID)) +// WhereHasControlObjectiveViewers applies a predicate to check if query has an edge control_objective_viewers. +func (f *GroupFilter) WhereHasControlObjectiveViewers() { + f.Where(entql.HasEdge("control_objective_viewers")) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *FindingFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(finding.FieldEnvironmentName)) +// WhereHasControlObjectiveViewersWith applies a predicate to check if query has an edge control_objective_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlObjectiveViewersWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objective_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *FindingFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(finding.FieldEnvironmentID)) +// WhereHasNarrativeEditors applies a predicate to check if query has an edge narrative_editors. +func (f *GroupFilter) WhereHasNarrativeEditors() { + f.Where(entql.HasEdge("narrative_editors")) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *FindingFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(finding.FieldScopeName)) +// WhereHasNarrativeEditorsWith applies a predicate to check if query has an edge narrative_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasNarrativeEditorsWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narrative_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *FindingFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(finding.FieldScopeID)) +// WhereHasNarrativeBlockedGroups applies a predicate to check if query has an edge narrative_blocked_groups. +func (f *GroupFilter) WhereHasNarrativeBlockedGroups() { + f.Where(entql.HasEdge("narrative_blocked_groups")) } -// WhereFindingStatusName applies the entql string predicate on the finding_status_name field. -func (f *FindingFilter) WhereFindingStatusName(p entql.StringP) { - f.Where(p.Field(finding.FieldFindingStatusName)) +// WhereHasNarrativeBlockedGroupsWith applies a predicate to check if query has an edge narrative_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasNarrativeBlockedGroupsWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narrative_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereFindingStatusID applies the entql string predicate on the finding_status_id field. -func (f *FindingFilter) WhereFindingStatusID(p entql.StringP) { - f.Where(p.Field(finding.FieldFindingStatusID)) +// WhereHasNarrativeViewers applies a predicate to check if query has an edge narrative_viewers. +func (f *GroupFilter) WhereHasNarrativeViewers() { + f.Where(entql.HasEdge("narrative_viewers")) } -// WhereExternalID applies the entql string predicate on the external_id field. -func (f *FindingFilter) WhereExternalID(p entql.StringP) { - f.Where(p.Field(finding.FieldExternalID)) +// WhereHasNarrativeViewersWith applies a predicate to check if query has an edge narrative_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasNarrativeViewersWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narrative_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSecurityLevel applies the entql string predicate on the security_level field. -func (f *FindingFilter) WhereSecurityLevel(p entql.StringP) { - f.Where(p.Field(finding.FieldSecurityLevel)) +// WhereHasControlImplementationEditors applies a predicate to check if query has an edge control_implementation_editors. +func (f *GroupFilter) WhereHasControlImplementationEditors() { + f.Where(entql.HasEdge("control_implementation_editors")) } -// WhereExternalOwnerID applies the entql string predicate on the external_owner_id field. -func (f *FindingFilter) WhereExternalOwnerID(p entql.StringP) { - f.Where(p.Field(finding.FieldExternalOwnerID)) +// WhereHasControlImplementationEditorsWith applies a predicate to check if query has an edge control_implementation_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlImplementationEditorsWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementation_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSource applies the entql string predicate on the source field. -func (f *FindingFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(finding.FieldSource)) +// WhereHasControlImplementationBlockedGroups applies a predicate to check if query has an edge control_implementation_blocked_groups. +func (f *GroupFilter) WhereHasControlImplementationBlockedGroups() { + f.Where(entql.HasEdge("control_implementation_blocked_groups")) } -// WhereResourceName applies the entql string predicate on the resource_name field. -func (f *FindingFilter) WhereResourceName(p entql.StringP) { - f.Where(p.Field(finding.FieldResourceName)) +// WhereHasControlImplementationBlockedGroupsWith applies a predicate to check if query has an edge control_implementation_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlImplementationBlockedGroupsWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementation_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *FindingFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(finding.FieldDisplayName)) +// WhereHasControlImplementationViewers applies a predicate to check if query has an edge control_implementation_viewers. +func (f *GroupFilter) WhereHasControlImplementationViewers() { + f.Where(entql.HasEdge("control_implementation_viewers")) } -// WhereState applies the entql string predicate on the state field. -func (f *FindingFilter) WhereState(p entql.StringP) { - f.Where(p.Field(finding.FieldState)) +// WhereHasControlImplementationViewersWith applies a predicate to check if query has an edge control_implementation_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlImplementationViewersWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementation_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCategory applies the entql string predicate on the category field. -func (f *FindingFilter) WhereCategory(p entql.StringP) { - f.Where(p.Field(finding.FieldCategory)) +// WhereHasScanEditors applies a predicate to check if query has an edge scan_editors. +func (f *GroupFilter) WhereHasScanEditors() { + f.Where(entql.HasEdge("scan_editors")) } - -// WhereCategories applies the entql json.RawMessage predicate on the categories field. -func (f *FindingFilter) WhereCategories(p entql.BytesP) { - f.Where(p.Field(finding.FieldCategories)) + +// WhereHasScanEditorsWith applies a predicate to check if query has an edge scan_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasScanEditorsWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scan_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereFindingClass applies the entql string predicate on the finding_class field. -func (f *FindingFilter) WhereFindingClass(p entql.StringP) { - f.Where(p.Field(finding.FieldFindingClass)) +// WhereHasScanBlockedGroups applies a predicate to check if query has an edge scan_blocked_groups. +func (f *GroupFilter) WhereHasScanBlockedGroups() { + f.Where(entql.HasEdge("scan_blocked_groups")) } -// WhereSeverity applies the entql string predicate on the severity field. -func (f *FindingFilter) WhereSeverity(p entql.StringP) { - f.Where(p.Field(finding.FieldSeverity)) +// WhereHasScanBlockedGroupsWith applies a predicate to check if query has an edge scan_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasScanBlockedGroupsWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scan_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereNumericSeverity applies the entql float64 predicate on the numeric_severity field. -func (f *FindingFilter) WhereNumericSeverity(p entql.Float64P) { - f.Where(p.Field(finding.FieldNumericSeverity)) +// WhereHasScanViewers applies a predicate to check if query has an edge scan_viewers. +func (f *GroupFilter) WhereHasScanViewers() { + f.Where(entql.HasEdge("scan_viewers")) } -// WhereScore applies the entql float64 predicate on the score field. -func (f *FindingFilter) WhereScore(p entql.Float64P) { - f.Where(p.Field(finding.FieldScore)) +// WhereHasScanViewersWith applies a predicate to check if query has an edge scan_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasScanViewersWith(preds ...predicate.Scan) { + f.Where(entql.HasEdgeWith("scan_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereImpact applies the entql float64 predicate on the impact field. -func (f *FindingFilter) WhereImpact(p entql.Float64P) { - f.Where(p.Field(finding.FieldImpact)) +// WhereHasEntityEditors applies a predicate to check if query has an edge entity_editors. +func (f *GroupFilter) WhereHasEntityEditors() { + f.Where(entql.HasEdge("entity_editors")) } -// WhereExploitability applies the entql float64 predicate on the exploitability field. -func (f *FindingFilter) WhereExploitability(p entql.Float64P) { - f.Where(p.Field(finding.FieldExploitability)) +// WhereHasEntityEditorsWith applies a predicate to check if query has an edge entity_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasEntityEditorsWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WherePriority applies the entql string predicate on the priority field. -func (f *FindingFilter) WherePriority(p entql.StringP) { - f.Where(p.Field(finding.FieldPriority)) +// WhereHasEntityBlockedGroups applies a predicate to check if query has an edge entity_blocked_groups. +func (f *GroupFilter) WhereHasEntityBlockedGroups() { + f.Where(entql.HasEdge("entity_blocked_groups")) } -// WhereOpen applies the entql bool predicate on the open field. -func (f *FindingFilter) WhereOpen(p entql.BoolP) { - f.Where(p.Field(finding.FieldOpen)) +// WhereHasEntityBlockedGroupsWith applies a predicate to check if query has an edge entity_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasEntityBlockedGroupsWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereBlocksProduction applies the entql bool predicate on the blocks_production field. -func (f *FindingFilter) WhereBlocksProduction(p entql.BoolP) { - f.Where(p.Field(finding.FieldBlocksProduction)) +// WhereHasEntityViewers applies a predicate to check if query has an edge entity_viewers. +func (f *GroupFilter) WhereHasEntityViewers() { + f.Where(entql.HasEdge("entity_viewers")) } -// WhereProduction applies the entql bool predicate on the production field. -func (f *FindingFilter) WhereProduction(p entql.BoolP) { - f.Where(p.Field(finding.FieldProduction)) +// WhereHasEntityViewersWith applies a predicate to check if query has an edge entity_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasEntityViewersWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WherePublic applies the entql bool predicate on the public field. -func (f *FindingFilter) WherePublic(p entql.BoolP) { - f.Where(p.Field(finding.FieldPublic)) +// WhereHasActionPlanEditors applies a predicate to check if query has an edge action_plan_editors. +func (f *GroupFilter) WhereHasActionPlanEditors() { + f.Where(entql.HasEdge("action_plan_editors")) } -// WhereValidated applies the entql bool predicate on the validated field. -func (f *FindingFilter) WhereValidated(p entql.BoolP) { - f.Where(p.Field(finding.FieldValidated)) +// WhereHasActionPlanEditorsWith applies a predicate to check if query has an edge action_plan_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasActionPlanEditorsWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plan_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAssessmentID applies the entql string predicate on the assessment_id field. -func (f *FindingFilter) WhereAssessmentID(p entql.StringP) { - f.Where(p.Field(finding.FieldAssessmentID)) +// WhereHasActionPlanBlockedGroups applies a predicate to check if query has an edge action_plan_blocked_groups. +func (f *GroupFilter) WhereHasActionPlanBlockedGroups() { + f.Where(entql.HasEdge("action_plan_blocked_groups")) } -// WhereDescription applies the entql string predicate on the description field. -func (f *FindingFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(finding.FieldDescription)) +// WhereHasActionPlanBlockedGroupsWith applies a predicate to check if query has an edge action_plan_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasActionPlanBlockedGroupsWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plan_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRecommendation applies the entql string predicate on the recommendation field. -func (f *FindingFilter) WhereRecommendation(p entql.StringP) { - f.Where(p.Field(finding.FieldRecommendation)) +// WhereHasActionPlanViewers applies a predicate to check if query has an edge action_plan_viewers. +func (f *GroupFilter) WhereHasActionPlanViewers() { + f.Where(entql.HasEdge("action_plan_viewers")) } -// WhereRecommendedActions applies the entql string predicate on the recommended_actions field. -func (f *FindingFilter) WhereRecommendedActions(p entql.StringP) { - f.Where(p.Field(finding.FieldRecommendedActions)) +// WhereHasActionPlanViewersWith applies a predicate to check if query has an edge action_plan_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasActionPlanViewersWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plan_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereReferences applies the entql json.RawMessage predicate on the references field. -func (f *FindingFilter) WhereReferences(p entql.BytesP) { - f.Where(p.Field(finding.FieldReferences)) +// WhereHasPlatformEditors applies a predicate to check if query has an edge platform_editors. +func (f *GroupFilter) WhereHasPlatformEditors() { + f.Where(entql.HasEdge("platform_editors")) } -// WhereStepsToReproduce applies the entql json.RawMessage predicate on the steps_to_reproduce field. -func (f *FindingFilter) WhereStepsToReproduce(p entql.BytesP) { - f.Where(p.Field(finding.FieldStepsToReproduce)) +// WhereHasPlatformEditorsWith applies a predicate to check if query has an edge platform_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasPlatformEditorsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTargets applies the entql json.RawMessage predicate on the targets field. -func (f *FindingFilter) WhereTargets(p entql.BytesP) { - f.Where(p.Field(finding.FieldTargets)) +// WhereHasPlatformBlockedGroups applies a predicate to check if query has an edge platform_blocked_groups. +func (f *GroupFilter) WhereHasPlatformBlockedGroups() { + f.Where(entql.HasEdge("platform_blocked_groups")) } -// WhereTargetDetails applies the entql json.RawMessage predicate on the target_details field. -func (f *FindingFilter) WhereTargetDetails(p entql.BytesP) { - f.Where(p.Field(finding.FieldTargetDetails)) +// WhereHasPlatformBlockedGroupsWith applies a predicate to check if query has an edge platform_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasPlatformBlockedGroupsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereVector applies the entql string predicate on the vector field. -func (f *FindingFilter) WhereVector(p entql.StringP) { - f.Where(p.Field(finding.FieldVector)) +// WhereHasPlatformViewers applies a predicate to check if query has an edge platform_viewers. +func (f *GroupFilter) WhereHasPlatformViewers() { + f.Where(entql.HasEdge("platform_viewers")) } -// WhereRemediationSLA applies the entql int predicate on the remediation_sla field. -func (f *FindingFilter) WhereRemediationSLA(p entql.IntP) { - f.Where(p.Field(finding.FieldRemediationSLA)) +// WhereHasPlatformViewersWith applies a predicate to check if query has an edge platform_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasPlatformViewersWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEventTime applies the entql time.Time predicate on the event_time field. -func (f *FindingFilter) WhereEventTime(p entql.TimeP) { - f.Where(p.Field(finding.FieldEventTime)) +// WhereHasCampaignEditors applies a predicate to check if query has an edge campaign_editors. +func (f *GroupFilter) WhereHasCampaignEditors() { + f.Where(entql.HasEdge("campaign_editors")) } -// WhereReportedAt applies the entql time.Time predicate on the reported_at field. -func (f *FindingFilter) WhereReportedAt(p entql.TimeP) { - f.Where(p.Field(finding.FieldReportedAt)) +// WhereHasCampaignEditorsWith applies a predicate to check if query has an edge campaign_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasCampaignEditorsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaign_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSourceUpdatedAt applies the entql time.Time predicate on the source_updated_at field. -func (f *FindingFilter) WhereSourceUpdatedAt(p entql.TimeP) { - f.Where(p.Field(finding.FieldSourceUpdatedAt)) +// WhereHasCampaignBlockedGroups applies a predicate to check if query has an edge campaign_blocked_groups. +func (f *GroupFilter) WhereHasCampaignBlockedGroups() { + f.Where(entql.HasEdge("campaign_blocked_groups")) } -// WhereExternalURI applies the entql string predicate on the external_uri field. -func (f *FindingFilter) WhereExternalURI(p entql.StringP) { - f.Where(p.Field(finding.FieldExternalURI)) +// WhereHasCampaignBlockedGroupsWith applies a predicate to check if query has an edge campaign_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasCampaignBlockedGroupsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaign_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *FindingFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(finding.FieldMetadata)) +// WhereHasCampaignViewers applies a predicate to check if query has an edge campaign_viewers. +func (f *GroupFilter) WhereHasCampaignViewers() { + f.Where(entql.HasEdge("campaign_viewers")) } -// WhereRawPayload applies the entql json.RawMessage predicate on the raw_payload field. -func (f *FindingFilter) WhereRawPayload(p entql.BytesP) { - f.Where(p.Field(finding.FieldRawPayload)) +// WhereHasCampaignViewersWith applies a predicate to check if query has an edge campaign_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasCampaignViewersWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaign_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *FindingFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasProcedureEditors applies a predicate to check if query has an edge procedure_editors. +func (f *GroupFilter) WhereHasProcedureEditors() { + f.Where(entql.HasEdge("procedure_editors")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *FindingFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProcedureEditorsWith applies a predicate to check if query has an edge procedure_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasProcedureEditorsWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *FindingFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasProcedureBlockedGroups applies a predicate to check if query has an edge procedure_blocked_groups. +func (f *GroupFilter) WhereHasProcedureBlockedGroups() { + f.Where(entql.HasEdge("procedure_blocked_groups")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *FindingFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProcedureBlockedGroupsWith applies a predicate to check if query has an edge procedure_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasProcedureBlockedGroupsWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *FindingFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasInternalPolicyEditors applies a predicate to check if query has an edge internal_policy_editors. +func (f *GroupFilter) WhereHasInternalPolicyEditors() { + f.Where(entql.HasEdge("internal_policy_editors")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *FindingFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicyEditorsWith applies a predicate to check if query has an edge internal_policy_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasInternalPolicyEditorsWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policy_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *FindingFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasInternalPolicyBlockedGroups applies a predicate to check if query has an edge internal_policy_blocked_groups. +func (f *GroupFilter) WhereHasInternalPolicyBlockedGroups() { + f.Where(entql.HasEdge("internal_policy_blocked_groups")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *FindingFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicyBlockedGroupsWith applies a predicate to check if query has an edge internal_policy_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasInternalPolicyBlockedGroupsWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policy_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *FindingFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasControlEditors applies a predicate to check if query has an edge control_editors. +func (f *GroupFilter) WhereHasControlEditors() { + f.Where(entql.HasEdge("control_editors")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *FindingFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlEditorsWith applies a predicate to check if query has an edge control_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlEditorsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *FindingFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasControlBlockedGroups applies a predicate to check if query has an edge control_blocked_groups. +func (f *GroupFilter) WhereHasControlBlockedGroups() { + f.Where(entql.HasEdge("control_blocked_groups")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *FindingFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlBlockedGroupsWith applies a predicate to check if query has an edge control_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasControlBlockedGroupsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFindingStatus applies a predicate to check if query has an edge finding_status. -func (f *FindingFilter) WhereHasFindingStatus() { - f.Where(entql.HasEdge("finding_status")) +// WhereHasMappedControlEditors applies a predicate to check if query has an edge mapped_control_editors. +func (f *GroupFilter) WhereHasMappedControlEditors() { + f.Where(entql.HasEdge("mapped_control_editors")) } -// WhereHasFindingStatusWith applies a predicate to check if query has an edge finding_status with a given conditions (other predicates). -func (f *FindingFilter) WhereHasFindingStatusWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("finding_status", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMappedControlEditorsWith applies a predicate to check if query has an edge mapped_control_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasMappedControlEditorsWith(preds ...predicate.MappedControl) { + f.Where(entql.HasEdgeWith("mapped_control_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *FindingFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasMappedControlBlockedGroups applies a predicate to check if query has an edge mapped_control_blocked_groups. +func (f *GroupFilter) WhereHasMappedControlBlockedGroups() { + f.Where(entql.HasEdge("mapped_control_blocked_groups")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *FindingFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMappedControlBlockedGroupsWith applies a predicate to check if query has an edge mapped_control_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasMappedControlBlockedGroupsWith(preds ...predicate.MappedControl) { + f.Where(entql.HasEdgeWith("mapped_control_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. -func (f *FindingFilter) WhereHasVulnerabilities() { - f.Where(entql.HasEdge("vulnerabilities")) +// WhereHasSetting applies a predicate to check if query has an edge setting. +func (f *GroupFilter) WhereHasSetting() { + f.Where(entql.HasEdge("setting")) } -// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). -func (f *FindingFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { - f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). +func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting) { + f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. -func (f *FindingFilter) WhereHasActionPlans() { - f.Where(entql.HasEdge("action_plans")) +// WhereHasUsers applies a predicate to check if query has an edge users. +func (f *GroupFilter) WhereHasUsers() { + f.Where(entql.HasEdge("users")) } -// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). -func (f *FindingFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). +func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *FindingFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *GroupFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *FindingFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *GroupFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *FindingFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *GroupFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *FindingFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *GroupFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *FindingFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// WhereHasAvatarFile applies a predicate to check if query has an edge avatar_file. +func (f *GroupFilter) WhereHasAvatarFile() { + f.Where(entql.HasEdge("avatar_file")) } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *FindingFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAvatarFileWith applies a predicate to check if query has an edge avatar_file with a given conditions (other predicates). +func (f *GroupFilter) WhereHasAvatarFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("avatar_file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *FindingFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *GroupFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *FindingFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *GroupFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *FindingFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *GroupFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *FindingFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *GroupFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *FindingFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *GroupFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *FindingFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *GroupFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScans applies a predicate to check if query has an edge scans. -func (f *FindingFilter) WhereHasScans() { - f.Where(entql.HasEdge("scans")) +// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. +func (f *GroupFilter) WhereHasCampaignTargets() { + f.Where(entql.HasEdge("campaign_targets")) } -// WhereHasScansWith applies a predicate to check if query has an edge scans with a given conditions (other predicates). -func (f *FindingFilter) WhereHasScansWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). +func (f *GroupFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { + f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *FindingFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereHasInvites applies a predicate to check if query has an edge invites. +func (f *GroupFilter) WhereHasInvites() { + f.Where(entql.HasEdge("invites")) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *FindingFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). +func (f *GroupFilter) WhereHasInvitesWith(preds ...predicate.Invite) { + f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. -func (f *FindingFilter) WhereHasDirectoryAccounts() { - f.Where(entql.HasEdge("directory_accounts")) +// WhereHasMembers applies a predicate to check if query has an edge members. +func (f *GroupFilter) WhereHasMembers() { + f.Where(entql.HasEdge("members")) } -// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). -func (f *FindingFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). +func (f *GroupFilter) WhereHasMembersWith(preds ...predicate.GroupMembership) { + f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *FindingFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// addPredicate implements the predicateAdder interface. +func (_q *GroupMembershipQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *FindingFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Filter returns a Filter implementation to apply filters on the GroupMembershipQuery builder. +func (_q *GroupMembershipQuery) Filter() *GroupMembershipFilter { + return &GroupMembershipFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *GroupMembershipMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the GroupMembershipMutation builder. +func (m *GroupMembershipMutation) Filter() *GroupMembershipFilter { + return &GroupMembershipFilter{config: m.config, predicateAdder: m} +} + +// GroupMembershipFilter provides a generic filtering capability at runtime for GroupMembershipQuery. +type GroupMembershipFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *GroupMembershipFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[33].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasRemediations applies a predicate to check if query has an edge remediations. -func (f *FindingFilter) WhereHasRemediations() { - f.Where(entql.HasEdge("remediations")) +// WhereID applies the entql string predicate on the id field. +func (f *GroupMembershipFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *GroupMembershipFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembership.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *GroupMembershipFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembership.FieldUpdatedAt)) } -// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). -func (f *FindingFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { - f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *GroupMembershipFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldCreatedBy)) } -// WhereHasReviews applies a predicate to check if query has an edge reviews. -func (f *FindingFilter) WhereHasReviews() { - f.Where(entql.HasEdge("reviews")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *GroupMembershipFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldUpdatedBy)) } -// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). -func (f *FindingFilter) WhereHasReviewsWith(preds ...predicate.Review) { - f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereRole applies the entql string predicate on the role field. +func (f *GroupMembershipFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldRole)) } -// WhereHasComments applies a predicate to check if query has an edge comments. -func (f *FindingFilter) WhereHasComments() { - f.Where(entql.HasEdge("comments")) +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupMembershipFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldGroupID)) } -// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). -func (f *FindingFilter) WhereHasCommentsWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *GroupMembershipFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldUserID)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *FindingFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *GroupMembershipFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *FindingFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *FindingFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *GroupMembershipFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *FindingFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCheckResults applies a predicate to check if query has an edge check_results. -func (f *FindingFilter) WhereHasCheckResults() { - f.Where(entql.HasEdge("check_results")) +// WhereHasOrgMembership applies a predicate to check if query has an edge org_membership. +func (f *GroupMembershipFilter) WhereHasOrgMembership() { + f.Where(entql.HasEdge("org_membership")) } -// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). -func (f *FindingFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { - f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgMembershipWith applies a predicate to check if query has an edge org_membership with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasOrgMembershipWith(preds ...predicate.OrgMembership) { + f.Where(entql.HasEdgeWith("org_membership", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlMappings applies a predicate to check if query has an edge control_mappings. -func (f *FindingFilter) WhereHasControlMappings() { - f.Where(entql.HasEdge("control_mappings")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *GroupMembershipFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasControlMappingsWith applies a predicate to check if query has an edge control_mappings with a given conditions (other predicates). -func (f *FindingFilter) WhereHasControlMappingsWith(preds ...predicate.FindingControl) { - f.Where(entql.HasEdgeWith("control_mappings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -27743,146 +29560,108 @@ func (f *FindingFilter) WhereHasControlMappingsWith(preds ...predicate.FindingCo } // addPredicate implements the predicateAdder interface. -func (_q *FindingControlQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *GroupSettingQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the FindingControlQuery builder. -func (_q *FindingControlQuery) Filter() *FindingControlFilter { - return &FindingControlFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder. +func (_q *GroupSettingQuery) Filter() *GroupSettingFilter { + return &GroupSettingFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *FindingControlMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *GroupSettingMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the FindingControlMutation builder. -func (m *FindingControlMutation) Filter() *FindingControlFilter { - return &FindingControlFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder. +func (m *GroupSettingMutation) Filter() *GroupSettingFilter { + return &GroupSettingFilter{config: m.config, predicateAdder: m} } -// FindingControlFilter provides a generic filtering capability at runtime for FindingControlQuery. -type FindingControlFilter struct { +// GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery. +type GroupSettingFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *FindingControlFilter) Where(p entql.P) { +func (f *GroupSettingFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[31].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[34].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *FindingControlFilter) WhereID(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldID)) +func (f *GroupSettingFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FindingControlFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(findingcontrol.FieldCreatedAt)) +func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FindingControlFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(findingcontrol.FieldUpdatedAt)) +func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FindingControlFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldCreatedBy)) +func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FindingControlFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldUpdatedBy)) -} - -// WhereFindingID applies the entql string predicate on the finding_id field. -func (f *FindingControlFilter) WhereFindingID(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldFindingID)) -} - -// WhereControlID applies the entql string predicate on the control_id field. -func (f *FindingControlFilter) WhereControlID(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldControlID)) -} - -// WhereStandardID applies the entql string predicate on the standard_id field. -func (f *FindingControlFilter) WhereStandardID(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldStandardID)) -} - -// WhereExternalStandard applies the entql string predicate on the external_standard field. -func (f *FindingControlFilter) WhereExternalStandard(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldExternalStandard)) -} - -// WhereExternalStandardVersion applies the entql string predicate on the external_standard_version field. -func (f *FindingControlFilter) WhereExternalStandardVersion(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldExternalStandardVersion)) -} - -// WhereExternalControlID applies the entql string predicate on the external_control_id field. -func (f *FindingControlFilter) WhereExternalControlID(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldExternalControlID)) +func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldUpdatedBy)) } -// WhereSource applies the entql string predicate on the source field. -func (f *FindingControlFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(findingcontrol.FieldSource)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldDeletedAt)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *FindingControlFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(findingcontrol.FieldMetadata)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldDeletedBy)) } -// WhereDiscoveredAt applies the entql time.Time predicate on the discovered_at field. -func (f *FindingControlFilter) WhereDiscoveredAt(p entql.TimeP) { - f.Where(p.Field(findingcontrol.FieldDiscoveredAt)) +// WhereVisibility applies the entql string predicate on the visibility field. +func (f *GroupSettingFilter) WhereVisibility(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldVisibility)) } -// WhereHasFinding applies a predicate to check if query has an edge finding. -func (f *FindingControlFilter) WhereHasFinding() { - f.Where(entql.HasEdge("finding")) +// WhereJoinPolicy applies the entql string predicate on the join_policy field. +func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldJoinPolicy)) } -// WhereHasFindingWith applies a predicate to check if query has an edge finding with a given conditions (other predicates). -func (f *FindingControlFilter) WhereHasFindingWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("finding", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. +func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP) { + f.Where(p.Field(groupsetting.FieldSyncToSlack)) } -// WhereHasControl applies a predicate to check if query has an edge control. -func (f *FindingControlFilter) WhereHasControl() { - f.Where(entql.HasEdge("control")) +// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. +func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP) { + f.Where(p.Field(groupsetting.FieldSyncToGithub)) } -// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). -func (f *FindingControlFilter) WhereHasControlWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupSettingFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldGroupID)) } -// WhereHasStandard applies a predicate to check if query has an edge standard. -func (f *FindingControlFilter) WhereHasStandard() { - f.Where(entql.HasEdge("standard")) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *GroupSettingFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). -func (f *FindingControlFilter) WhereHasStandardWith(preds ...predicate.Standard) { - f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -27890,167 +29669,147 @@ func (f *FindingControlFilter) WhereHasStandardWith(preds ...predicate.Standard) } // addPredicate implements the predicateAdder interface. -func (_q *GroupQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *HushQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupQuery builder. -func (_q *GroupQuery) Filter() *GroupFilter { - return &GroupFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the HushQuery builder. +func (_q *HushQuery) Filter() *HushFilter { + return &HushFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *GroupMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *HushMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupMutation builder. -func (m *GroupMutation) Filter() *GroupFilter { - return &GroupFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the HushMutation builder. +func (m *HushMutation) Filter() *HushFilter { + return &HushFilter{config: m.config, predicateAdder: m} } -// GroupFilter provides a generic filtering capability at runtime for GroupQuery. -type GroupFilter struct { +// HushFilter provides a generic filtering capability at runtime for HushQuery. +type HushFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupFilter) Where(p entql.P) { +func (f *HushFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[32].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[35].Type, p, s); err != nil { s.AddError(err) } }) } -// WhereID applies the entql string predicate on the id field. -func (f *GroupFilter) WhereID(p entql.StringP) { - f.Where(p.Field(group.FieldID)) +// WhereID applies the entql string predicate on the id field. +func (f *HushFilter) WhereID(p entql.StringP) { + f.Where(p.Field(hush.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldCreatedAt)) +func (f *HushFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldUpdatedAt)) +func (f *HushFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(group.FieldCreatedBy)) +func (f *HushFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(group.FieldUpdatedBy)) +func (f *HushFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldDeletedAt)) +func (f *HushFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(group.FieldDeletedBy)) -} - -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *GroupFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(group.FieldDisplayID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *GroupFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(group.FieldTags)) +func (f *HushFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldDeletedBy)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *GroupFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(group.FieldOwnerID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *GroupFilter) WhereName(p entql.StringP) { - f.Where(p.Field(group.FieldName)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *GroupFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(group.FieldDescription)) +func (f *HushFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(hush.FieldOwnerID)) } -// WhereIsManaged applies the entql bool predicate on the is_managed field. -func (f *GroupFilter) WhereIsManaged(p entql.BoolP) { - f.Where(p.Field(group.FieldIsManaged)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *HushFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(hush.FieldSystemOwned)) } -// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. -func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP) { - f.Where(p.Field(group.FieldGravatarLogoURL)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *HushFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(hush.FieldInternalNotes)) } -// WhereLogoURL applies the entql string predicate on the logo_url field. -func (f *GroupFilter) WhereLogoURL(p entql.StringP) { - f.Where(p.Field(group.FieldLogoURL)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *HushFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(hush.FieldSystemInternalID)) } -// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. -func (f *GroupFilter) WhereAvatarLocalFileID(p entql.StringP) { - f.Where(p.Field(group.FieldAvatarLocalFileID)) +// WhereName applies the entql string predicate on the name field. +func (f *HushFilter) WhereName(p entql.StringP) { + f.Where(p.Field(hush.FieldName)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *GroupFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(group.FieldDisplayName)) +// WhereDescription applies the entql string predicate on the description field. +func (f *HushFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(hush.FieldDescription)) } -// WhereOscalRole applies the entql string predicate on the oscal_role field. -func (f *GroupFilter) WhereOscalRole(p entql.StringP) { - f.Where(p.Field(group.FieldOscalRole)) +// WhereKind applies the entql string predicate on the kind field. +func (f *HushFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(hush.FieldKind)) } -// WhereOscalPartyUUID applies the entql string predicate on the oscal_party_uuid field. -func (f *GroupFilter) WhereOscalPartyUUID(p entql.StringP) { - f.Where(p.Field(group.FieldOscalPartyUUID)) +// WhereSecretName applies the entql string predicate on the secret_name field. +func (f *HushFilter) WhereSecretName(p entql.StringP) { + f.Where(p.Field(hush.FieldSecretName)) } -// WhereOscalContactUuids applies the entql json.RawMessage predicate on the oscal_contact_uuids field. -func (f *GroupFilter) WhereOscalContactUuids(p entql.BytesP) { - f.Where(p.Field(group.FieldOscalContactUuids)) +// WhereSecretValue applies the entql string predicate on the secret_value field. +func (f *HushFilter) WhereSecretValue(p entql.StringP) { + f.Where(p.Field(hush.FieldSecretValue)) } -// WhereScimExternalID applies the entql string predicate on the scim_external_id field. -func (f *GroupFilter) WhereScimExternalID(p entql.StringP) { - f.Where(p.Field(group.FieldScimExternalID)) +// WhereCredentialSet applies the entql json.RawMessage predicate on the credential_set field. +func (f *HushFilter) WhereCredentialSet(p entql.BytesP) { + f.Where(p.Field(hush.FieldCredentialSet)) } -// WhereScimDisplayName applies the entql string predicate on the scim_display_name field. -func (f *GroupFilter) WhereScimDisplayName(p entql.StringP) { - f.Where(p.Field(group.FieldScimDisplayName)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *HushFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(hush.FieldMetadata)) } -// WhereScimActive applies the entql bool predicate on the scim_active field. -func (f *GroupFilter) WhereScimActive(p entql.BoolP) { - f.Where(p.Field(group.FieldScimActive)) +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *HushFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldLastUsedAt)) } -// WhereScimGroupMailing applies the entql string predicate on the scim_group_mailing field. -func (f *GroupFilter) WhereScimGroupMailing(p entql.StringP) { - f.Where(p.Field(group.FieldScimGroupMailing)) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *HushFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldExpiresAt)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *GroupFilter) WhereHasOwner() { +func (f *HushFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *HushFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -28058,630 +29817,524 @@ func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { }))) } -// WhereHasProgramEditors applies a predicate to check if query has an edge program_editors. -func (f *GroupFilter) WhereHasProgramEditors() { - f.Where(entql.HasEdge("program_editors")) -} - -// WhereHasProgramEditorsWith applies a predicate to check if query has an edge program_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasProgramEditorsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("program_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasProgramBlockedGroups applies a predicate to check if query has an edge program_blocked_groups. -func (f *GroupFilter) WhereHasProgramBlockedGroups() { - f.Where(entql.HasEdge("program_blocked_groups")) -} - -// WhereHasProgramBlockedGroupsWith applies a predicate to check if query has an edge program_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasProgramBlockedGroupsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("program_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasProgramViewers applies a predicate to check if query has an edge program_viewers. -func (f *GroupFilter) WhereHasProgramViewers() { - f.Where(entql.HasEdge("program_viewers")) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *HushFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereHasProgramViewersWith applies a predicate to check if query has an edge program_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasProgramViewersWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("program_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *HushFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRiskEditors applies a predicate to check if query has an edge risk_editors. -func (f *GroupFilter) WhereHasRiskEditors() { - f.Where(entql.HasEdge("risk_editors")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *HushFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasRiskEditorsWith applies a predicate to check if query has an edge risk_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasRiskEditorsWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *HushFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRiskBlockedGroups applies a predicate to check if query has an edge risk_blocked_groups. -func (f *GroupFilter) WhereHasRiskBlockedGroups() { - f.Where(entql.HasEdge("risk_blocked_groups")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *HushFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasRiskBlockedGroupsWith applies a predicate to check if query has an edge risk_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasRiskBlockedGroupsWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *HushFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRiskViewers applies a predicate to check if query has an edge risk_viewers. -func (f *GroupFilter) WhereHasRiskViewers() { - f.Where(entql.HasEdge("risk_viewers")) +// addPredicate implements the predicateAdder interface. +func (_q *IdentityHolderQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasRiskViewersWith applies a predicate to check if query has an edge risk_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasRiskViewersWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the IdentityHolderQuery builder. +func (_q *IdentityHolderQuery) Filter() *IdentityHolderFilter { + return &IdentityHolderFilter{config: _q.config, predicateAdder: _q} } -// WhereHasControlObjectiveEditors applies a predicate to check if query has an edge control_objective_editors. -func (f *GroupFilter) WhereHasControlObjectiveEditors() { - f.Where(entql.HasEdge("control_objective_editors")) +// addPredicate implements the predicateAdder interface. +func (m *IdentityHolderMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasControlObjectiveEditorsWith applies a predicate to check if query has an edge control_objective_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlObjectiveEditorsWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objective_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the IdentityHolderMutation builder. +func (m *IdentityHolderMutation) Filter() *IdentityHolderFilter { + return &IdentityHolderFilter{config: m.config, predicateAdder: m} } -// WhereHasControlObjectiveBlockedGroups applies a predicate to check if query has an edge control_objective_blocked_groups. -func (f *GroupFilter) WhereHasControlObjectiveBlockedGroups() { - f.Where(entql.HasEdge("control_objective_blocked_groups")) +// IdentityHolderFilter provides a generic filtering capability at runtime for IdentityHolderQuery. +type IdentityHolderFilter struct { + predicateAdder + config } -// WhereHasControlObjectiveBlockedGroupsWith applies a predicate to check if query has an edge control_objective_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlObjectiveBlockedGroupsWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objective_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *IdentityHolderFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[36].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasControlObjectiveViewers applies a predicate to check if query has an edge control_objective_viewers. -func (f *GroupFilter) WhereHasControlObjectiveViewers() { - f.Where(entql.HasEdge("control_objective_viewers")) +// WhereID applies the entql string predicate on the id field. +func (f *IdentityHolderFilter) WhereID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldID)) } -// WhereHasControlObjectiveViewersWith applies a predicate to check if query has an edge control_objective_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlObjectiveViewersWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objective_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *IdentityHolderFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(identityholder.FieldCreatedAt)) } -// WhereHasNarrativeEditors applies a predicate to check if query has an edge narrative_editors. -func (f *GroupFilter) WhereHasNarrativeEditors() { - f.Where(entql.HasEdge("narrative_editors")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *IdentityHolderFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(identityholder.FieldUpdatedAt)) } -// WhereHasNarrativeEditorsWith applies a predicate to check if query has an edge narrative_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasNarrativeEditorsWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narrative_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *IdentityHolderFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(identityholder.FieldCreatedBy)) } -// WhereHasNarrativeBlockedGroups applies a predicate to check if query has an edge narrative_blocked_groups. -func (f *GroupFilter) WhereHasNarrativeBlockedGroups() { - f.Where(entql.HasEdge("narrative_blocked_groups")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *IdentityHolderFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(identityholder.FieldUpdatedBy)) } -// WhereHasNarrativeBlockedGroupsWith applies a predicate to check if query has an edge narrative_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasNarrativeBlockedGroupsWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narrative_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *IdentityHolderFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(identityholder.FieldDeletedAt)) } -// WhereHasNarrativeViewers applies a predicate to check if query has an edge narrative_viewers. -func (f *GroupFilter) WhereHasNarrativeViewers() { - f.Where(entql.HasEdge("narrative_viewers")) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *IdentityHolderFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(identityholder.FieldDeletedBy)) } -// WhereHasNarrativeViewersWith applies a predicate to check if query has an edge narrative_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasNarrativeViewersWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narrative_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *IdentityHolderFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldDisplayID)) } -// WhereHasControlImplementationEditors applies a predicate to check if query has an edge control_implementation_editors. -func (f *GroupFilter) WhereHasControlImplementationEditors() { - f.Where(entql.HasEdge("control_implementation_editors")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *IdentityHolderFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(identityholder.FieldTags)) } -// WhereHasControlImplementationEditorsWith applies a predicate to check if query has an edge control_implementation_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlImplementationEditorsWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementation_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *IdentityHolderFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldOwnerID)) } -// WhereHasControlImplementationBlockedGroups applies a predicate to check if query has an edge control_implementation_blocked_groups. -func (f *GroupFilter) WhereHasControlImplementationBlockedGroups() { - f.Where(entql.HasEdge("control_implementation_blocked_groups")) +// WhereInternalOwner applies the entql string predicate on the internal_owner field. +func (f *IdentityHolderFilter) WhereInternalOwner(p entql.StringP) { + f.Where(p.Field(identityholder.FieldInternalOwner)) } -// WhereHasControlImplementationBlockedGroupsWith applies a predicate to check if query has an edge control_implementation_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlImplementationBlockedGroupsWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementation_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. +func (f *IdentityHolderFilter) WhereInternalOwnerUserID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldInternalOwnerUserID)) } -// WhereHasControlImplementationViewers applies a predicate to check if query has an edge control_implementation_viewers. -func (f *GroupFilter) WhereHasControlImplementationViewers() { - f.Where(entql.HasEdge("control_implementation_viewers")) +// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. +func (f *IdentityHolderFilter) WhereInternalOwnerGroupID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldInternalOwnerGroupID)) } -// WhereHasControlImplementationViewersWith applies a predicate to check if query has an edge control_implementation_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlImplementationViewersWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementation_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *IdentityHolderFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(identityholder.FieldEnvironmentName)) } -// WhereHasScanEditors applies a predicate to check if query has an edge scan_editors. -func (f *GroupFilter) WhereHasScanEditors() { - f.Where(entql.HasEdge("scan_editors")) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *IdentityHolderFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldEnvironmentID)) } -// WhereHasScanEditorsWith applies a predicate to check if query has an edge scan_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasScanEditorsWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scan_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *IdentityHolderFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(identityholder.FieldScopeName)) } -// WhereHasScanBlockedGroups applies a predicate to check if query has an edge scan_blocked_groups. -func (f *GroupFilter) WhereHasScanBlockedGroups() { - f.Where(entql.HasEdge("scan_blocked_groups")) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *IdentityHolderFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldScopeID)) } -// WhereHasScanBlockedGroupsWith applies a predicate to check if query has an edge scan_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasScanBlockedGroupsWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scan_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *IdentityHolderFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(identityholder.FieldWorkflowEligibleMarker)) } -// WhereHasScanViewers applies a predicate to check if query has an edge scan_viewers. -func (f *GroupFilter) WhereHasScanViewers() { - f.Where(entql.HasEdge("scan_viewers")) +// WhereFullName applies the entql string predicate on the full_name field. +func (f *IdentityHolderFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(identityholder.FieldFullName)) } -// WhereHasScanViewersWith applies a predicate to check if query has an edge scan_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasScanViewersWith(preds ...predicate.Scan) { - f.Where(entql.HasEdgeWith("scan_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEmail applies the entql string predicate on the email field. +func (f *IdentityHolderFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(identityholder.FieldEmail)) } -// WhereHasEntityEditors applies a predicate to check if query has an edge entity_editors. -func (f *GroupFilter) WhereHasEntityEditors() { - f.Where(entql.HasEdge("entity_editors")) +// WhereAlternateEmail applies the entql string predicate on the alternate_email field. +func (f *IdentityHolderFilter) WhereAlternateEmail(p entql.StringP) { + f.Where(p.Field(identityholder.FieldAlternateEmail)) } -// WhereHasEntityEditorsWith applies a predicate to check if query has an edge entity_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasEntityEditorsWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEmailAliases applies the entql json.RawMessage predicate on the email_aliases field. +func (f *IdentityHolderFilter) WhereEmailAliases(p entql.BytesP) { + f.Where(p.Field(identityholder.FieldEmailAliases)) } -// WhereHasEntityBlockedGroups applies a predicate to check if query has an edge entity_blocked_groups. -func (f *GroupFilter) WhereHasEntityBlockedGroups() { - f.Where(entql.HasEdge("entity_blocked_groups")) +// WherePhoneNumber applies the entql string predicate on the phone_number field. +func (f *IdentityHolderFilter) WherePhoneNumber(p entql.StringP) { + f.Where(p.Field(identityholder.FieldPhoneNumber)) } -// WhereHasEntityBlockedGroupsWith applies a predicate to check if query has an edge entity_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasEntityBlockedGroupsWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIsOpenlaneUser applies the entql bool predicate on the is_openlane_user field. +func (f *IdentityHolderFilter) WhereIsOpenlaneUser(p entql.BoolP) { + f.Where(p.Field(identityholder.FieldIsOpenlaneUser)) } -// WhereHasEntityViewers applies a predicate to check if query has an edge entity_viewers. -func (f *GroupFilter) WhereHasEntityViewers() { - f.Where(entql.HasEdge("entity_viewers")) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *IdentityHolderFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldUserID)) } -// WhereHasEntityViewersWith applies a predicate to check if query has an edge entity_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasEntityViewersWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIdentityHolderType applies the entql string predicate on the identity_holder_type field. +func (f *IdentityHolderFilter) WhereIdentityHolderType(p entql.StringP) { + f.Where(p.Field(identityholder.FieldIdentityHolderType)) } -// WhereHasActionPlanEditors applies a predicate to check if query has an edge action_plan_editors. -func (f *GroupFilter) WhereHasActionPlanEditors() { - f.Where(entql.HasEdge("action_plan_editors")) +// WhereStatus applies the entql string predicate on the status field. +func (f *IdentityHolderFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(identityholder.FieldStatus)) } -// WhereHasActionPlanEditorsWith applies a predicate to check if query has an edge action_plan_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasActionPlanEditorsWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plan_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIsActive applies the entql bool predicate on the is_active field. +func (f *IdentityHolderFilter) WhereIsActive(p entql.BoolP) { + f.Where(p.Field(identityholder.FieldIsActive)) } -// WhereHasActionPlanBlockedGroups applies a predicate to check if query has an edge action_plan_blocked_groups. -func (f *GroupFilter) WhereHasActionPlanBlockedGroups() { - f.Where(entql.HasEdge("action_plan_blocked_groups")) +// WhereTitle applies the entql string predicate on the title field. +func (f *IdentityHolderFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(identityholder.FieldTitle)) } -// WhereHasActionPlanBlockedGroupsWith applies a predicate to check if query has an edge action_plan_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasActionPlanBlockedGroupsWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plan_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDepartment applies the entql string predicate on the department field. +func (f *IdentityHolderFilter) WhereDepartment(p entql.StringP) { + f.Where(p.Field(identityholder.FieldDepartment)) } -// WhereHasActionPlanViewers applies a predicate to check if query has an edge action_plan_viewers. -func (f *GroupFilter) WhereHasActionPlanViewers() { - f.Where(entql.HasEdge("action_plan_viewers")) +// WhereTeam applies the entql string predicate on the team field. +func (f *IdentityHolderFilter) WhereTeam(p entql.StringP) { + f.Where(p.Field(identityholder.FieldTeam)) } -// WhereHasActionPlanViewersWith applies a predicate to check if query has an edge action_plan_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasActionPlanViewersWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plan_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereLocation applies the entql string predicate on the location field. +func (f *IdentityHolderFilter) WhereLocation(p entql.StringP) { + f.Where(p.Field(identityholder.FieldLocation)) } -// WhereHasPlatformEditors applies a predicate to check if query has an edge platform_editors. -func (f *GroupFilter) WhereHasPlatformEditors() { - f.Where(entql.HasEdge("platform_editors")) +// WhereStartDate applies the entql time.Time predicate on the start_date field. +func (f *IdentityHolderFilter) WhereStartDate(p entql.TimeP) { + f.Where(p.Field(identityholder.FieldStartDate)) } -// WhereHasPlatformEditorsWith applies a predicate to check if query has an edge platform_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasPlatformEditorsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEndDate applies the entql time.Time predicate on the end_date field. +func (f *IdentityHolderFilter) WhereEndDate(p entql.TimeP) { + f.Where(p.Field(identityholder.FieldEndDate)) } -// WhereHasPlatformBlockedGroups applies a predicate to check if query has an edge platform_blocked_groups. -func (f *GroupFilter) WhereHasPlatformBlockedGroups() { - f.Where(entql.HasEdge("platform_blocked_groups")) +// WhereEmployerEntityID applies the entql string predicate on the employer_entity_id field. +func (f *IdentityHolderFilter) WhereEmployerEntityID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldEmployerEntityID)) } -// WhereHasPlatformBlockedGroupsWith applies a predicate to check if query has an edge platform_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasPlatformBlockedGroupsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExternalUserID applies the entql string predicate on the external_user_id field. +func (f *IdentityHolderFilter) WhereExternalUserID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldExternalUserID)) } -// WhereHasPlatformViewers applies a predicate to check if query has an edge platform_viewers. -func (f *GroupFilter) WhereHasPlatformViewers() { - f.Where(entql.HasEdge("platform_viewers")) +// WhereExternalReferenceID applies the entql string predicate on the external_reference_id field. +func (f *IdentityHolderFilter) WhereExternalReferenceID(p entql.StringP) { + f.Where(p.Field(identityholder.FieldExternalReferenceID)) } -// WhereHasPlatformViewersWith applies a predicate to check if query has an edge platform_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasPlatformViewersWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *IdentityHolderFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(identityholder.FieldMetadata)) } -// WhereHasCampaignEditors applies a predicate to check if query has an edge campaign_editors. -func (f *GroupFilter) WhereHasCampaignEditors() { - f.Where(entql.HasEdge("campaign_editors")) +// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. +func (f *IdentityHolderFilter) WhereAvatarRemoteURL(p entql.StringP) { + f.Where(p.Field(identityholder.FieldAvatarRemoteURL)) } -// WhereHasCampaignEditorsWith applies a predicate to check if query has an edge campaign_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasCampaignEditorsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaign_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *IdentityHolderFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaignBlockedGroups applies a predicate to check if query has an edge campaign_blocked_groups. -func (f *GroupFilter) WhereHasCampaignBlockedGroups() { - f.Where(entql.HasEdge("campaign_blocked_groups")) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *IdentityHolderFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereHasCampaignBlockedGroupsWith applies a predicate to check if query has an edge campaign_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasCampaignBlockedGroupsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaign_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaignViewers applies a predicate to check if query has an edge campaign_viewers. -func (f *GroupFilter) WhereHasCampaignViewers() { - f.Where(entql.HasEdge("campaign_viewers")) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *IdentityHolderFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereHasCampaignViewersWith applies a predicate to check if query has an edge campaign_viewers with a given conditions (other predicates). -func (f *GroupFilter) WhereHasCampaignViewersWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaign_viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedureEditors applies a predicate to check if query has an edge procedure_editors. -func (f *GroupFilter) WhereHasProcedureEditors() { - f.Where(entql.HasEdge("procedure_editors")) +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *IdentityHolderFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) } -// WhereHasProcedureEditorsWith applies a predicate to check if query has an edge procedure_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasProcedureEditorsWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedure_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedureBlockedGroups applies a predicate to check if query has an edge procedure_blocked_groups. -func (f *GroupFilter) WhereHasProcedureBlockedGroups() { - f.Where(entql.HasEdge("procedure_blocked_groups")) +// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. +func (f *IdentityHolderFilter) WhereHasInternalOwnerUser() { + f.Where(entql.HasEdge("internal_owner_user")) } -// WhereHasProcedureBlockedGroupsWith applies a predicate to check if query has an edge procedure_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasProcedureBlockedGroupsWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedure_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicyEditors applies a predicate to check if query has an edge internal_policy_editors. -func (f *GroupFilter) WhereHasInternalPolicyEditors() { - f.Where(entql.HasEdge("internal_policy_editors")) +// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. +func (f *IdentityHolderFilter) WhereHasInternalOwnerGroup() { + f.Where(entql.HasEdge("internal_owner_group")) } -// WhereHasInternalPolicyEditorsWith applies a predicate to check if query has an edge internal_policy_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasInternalPolicyEditorsWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policy_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicyBlockedGroups applies a predicate to check if query has an edge internal_policy_blocked_groups. -func (f *GroupFilter) WhereHasInternalPolicyBlockedGroups() { - f.Where(entql.HasEdge("internal_policy_blocked_groups")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *IdentityHolderFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasInternalPolicyBlockedGroupsWith applies a predicate to check if query has an edge internal_policy_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasInternalPolicyBlockedGroupsWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policy_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlEditors applies a predicate to check if query has an edge control_editors. -func (f *GroupFilter) WhereHasControlEditors() { - f.Where(entql.HasEdge("control_editors")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *IdentityHolderFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasControlEditorsWith applies a predicate to check if query has an edge control_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlEditorsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("control_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlBlockedGroups applies a predicate to check if query has an edge control_blocked_groups. -func (f *GroupFilter) WhereHasControlBlockedGroups() { - f.Where(entql.HasEdge("control_blocked_groups")) +// WhereHasEmployer applies a predicate to check if query has an edge employer. +func (f *IdentityHolderFilter) WhereHasEmployer() { + f.Where(entql.HasEdge("employer")) } -// WhereHasControlBlockedGroupsWith applies a predicate to check if query has an edge control_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasControlBlockedGroupsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("control_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEmployerWith applies a predicate to check if query has an edge employer with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasEmployerWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("employer", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMappedControlEditors applies a predicate to check if query has an edge mapped_control_editors. -func (f *GroupFilter) WhereHasMappedControlEditors() { - f.Where(entql.HasEdge("mapped_control_editors")) +// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. +func (f *IdentityHolderFilter) WhereHasAssessmentResponses() { + f.Where(entql.HasEdge("assessment_responses")) } -// WhereHasMappedControlEditorsWith applies a predicate to check if query has an edge mapped_control_editors with a given conditions (other predicates). -func (f *GroupFilter) WhereHasMappedControlEditorsWith(preds ...predicate.MappedControl) { - f.Where(entql.HasEdgeWith("mapped_control_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { + f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMappedControlBlockedGroups applies a predicate to check if query has an edge mapped_control_blocked_groups. -func (f *GroupFilter) WhereHasMappedControlBlockedGroups() { - f.Where(entql.HasEdge("mapped_control_blocked_groups")) +// WhereHasAssessments applies a predicate to check if query has an edge assessments. +func (f *IdentityHolderFilter) WhereHasAssessments() { + f.Where(entql.HasEdge("assessments")) } -// WhereHasMappedControlBlockedGroupsWith applies a predicate to check if query has an edge mapped_control_blocked_groups with a given conditions (other predicates). -func (f *GroupFilter) WhereHasMappedControlBlockedGroupsWith(preds ...predicate.MappedControl) { - f.Where(entql.HasEdgeWith("mapped_control_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssessmentsWith applies a predicate to check if query has an edge assessments with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasAssessmentsWith(preds ...predicate.Assessment) { + f.Where(entql.HasEdgeWith("assessments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSetting applies a predicate to check if query has an edge setting. -func (f *GroupFilter) WhereHasSetting() { - f.Where(entql.HasEdge("setting")) +// WhereHasTemplates applies a predicate to check if query has an edge templates. +func (f *IdentityHolderFilter) WhereHasTemplates() { + f.Where(entql.HasEdge("templates")) } -// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). -func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting) { - f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTemplatesWith applies a predicate to check if query has an edge templates with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasTemplatesWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("templates", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUsers applies a predicate to check if query has an edge users. -func (f *GroupFilter) WhereHasUsers() { - f.Where(entql.HasEdge("users")) +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *IdentityHolderFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). -func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *GroupFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *IdentityHolderFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *GroupFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *GroupFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. +func (f *IdentityHolderFilter) WhereHasDirectoryAccounts() { + f.Where(entql.HasEdge("directory_accounts")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *GroupFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAvatarFile applies a predicate to check if query has an edge avatar_file. -func (f *GroupFilter) WhereHasAvatarFile() { - f.Where(entql.HasEdge("avatar_file")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *IdentityHolderFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasAvatarFileWith applies a predicate to check if query has an edge avatar_file with a given conditions (other predicates). -func (f *GroupFilter) WhereHasAvatarFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("avatar_file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *GroupFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *IdentityHolderFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *GroupFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *GroupFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereHasPlatforms applies a predicate to check if query has an edge platforms. +func (f *IdentityHolderFilter) WhereHasPlatforms() { + f.Where(entql.HasEdge("platforms")) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *GroupFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -28689,12 +30342,12 @@ func (f *GroupFilter) WhereHasTasksWith(preds ...predicate.Task) { } // WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *GroupFilter) WhereHasCampaigns() { +func (f *IdentityHolderFilter) WhereHasCampaigns() { f.Where(entql.HasEdge("campaigns")) } // WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *GroupFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { +func (f *IdentityHolderFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -28702,131 +30355,70 @@ func (f *GroupFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { }))) } -// WhereHasCampaignTargets applies a predicate to check if query has an edge campaign_targets. -func (f *GroupFilter) WhereHasCampaignTargets() { - f.Where(entql.HasEdge("campaign_targets")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *IdentityHolderFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasCampaignTargetsWith applies a predicate to check if query has an edge campaign_targets with a given conditions (other predicates). -func (f *GroupFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarget) { - f.Where(entql.HasEdgeWith("campaign_targets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInvites applies a predicate to check if query has an edge invites. -func (f *GroupFilter) WhereHasInvites() { - f.Where(entql.HasEdge("invites")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *IdentityHolderFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). -func (f *GroupFilter) WhereHasInvitesWith(preds ...predicate.Invite) { - f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMembers applies a predicate to check if query has an edge members. -func (f *GroupFilter) WhereHasMembers() { - f.Where(entql.HasEdge("members")) +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *IdentityHolderFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) } -// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). -func (f *GroupFilter) WhereHasMembersWith(preds ...predicate.GroupMembership) { - f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *GroupMembershipQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the GroupMembershipQuery builder. -func (_q *GroupMembershipQuery) Filter() *GroupMembershipFilter { - return &GroupMembershipFilter{config: _q.config, predicateAdder: _q} -} - -// addPredicate implements the predicateAdder interface. -func (m *GroupMembershipMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the GroupMembershipMutation builder. -func (m *GroupMembershipMutation) Filter() *GroupMembershipFilter { - return &GroupMembershipFilter{config: m.config, predicateAdder: m} -} - -// GroupMembershipFilter provides a generic filtering capability at runtime for GroupMembershipQuery. -type GroupMembershipFilter struct { - predicateAdder - config +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *IdentityHolderFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// Where applies the entql predicate on the query filter. -func (f *GroupMembershipFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[33].Type, p, s); err != nil { - s.AddError(err) +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *GroupMembershipFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupMembershipFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembership.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupMembershipFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembership.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupMembershipFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupMembershipFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldUpdatedBy)) -} - -// WhereRole applies the entql string predicate on the role field. -func (f *GroupMembershipFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldRole)) -} - -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupMembershipFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldGroupID)) -} - -// WhereUserID applies the entql string predicate on the user_id field. -func (f *GroupMembershipFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldUserID)) + }))) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *GroupMembershipFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereHasAccessPlatforms applies a predicate to check if query has an edge access_platforms. +func (f *IdentityHolderFilter) WhereHasAccessPlatforms() { + f.Where(entql.HasEdge("access_platforms")) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAccessPlatformsWith applies a predicate to check if query has an edge access_platforms with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasAccessPlatformsWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("access_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -28834,12 +30426,12 @@ func (f *GroupMembershipFilter) WhereHasGroupWith(preds ...predicate.Group) { } // WhereHasUser applies a predicate to check if query has an edge user. -func (f *GroupMembershipFilter) WhereHasUser() { +func (f *IdentityHolderFilter) WhereHasUser() { f.Where(entql.HasEdge("user")) } // WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { +func (f *IdentityHolderFilter) WhereHasUserWith(preds ...predicate.User) { f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -28847,28 +30439,14 @@ func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { }))) } -// WhereHasOrgMembership applies a predicate to check if query has an edge org_membership. -func (f *GroupMembershipFilter) WhereHasOrgMembership() { - f.Where(entql.HasEdge("org_membership")) -} - -// WhereHasOrgMembershipWith applies a predicate to check if query has an edge org_membership with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasOrgMembershipWith(preds ...predicate.OrgMembership) { - f.Where(entql.HasEdgeWith("org_membership", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *GroupMembershipFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *IdentityHolderFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -28876,108 +30454,161 @@ func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (_q *GroupSettingQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *ImpersonationEventQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder. -func (_q *GroupSettingQuery) Filter() *GroupSettingFilter { - return &GroupSettingFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the ImpersonationEventQuery builder. +func (_q *ImpersonationEventQuery) Filter() *ImpersonationEventFilter { + return &ImpersonationEventFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *GroupSettingMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ImpersonationEventMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder. -func (m *GroupSettingMutation) Filter() *GroupSettingFilter { - return &GroupSettingFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ImpersonationEventMutation builder. +func (m *ImpersonationEventMutation) Filter() *ImpersonationEventFilter { + return &ImpersonationEventFilter{config: m.config, predicateAdder: m} } -// GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery. -type GroupSettingFilter struct { +// ImpersonationEventFilter provides a generic filtering capability at runtime for ImpersonationEventQuery. +type ImpersonationEventFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupSettingFilter) Where(p entql.P) { +func (f *ImpersonationEventFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[34].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[37].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *GroupSettingFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldID)) +func (f *ImpersonationEventFilter) WhereID(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldCreatedAt)) +func (f *ImpersonationEventFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(impersonationevent.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldUpdatedAt)) +func (f *ImpersonationEventFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(impersonationevent.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldCreatedBy)) +func (f *ImpersonationEventFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldUpdatedBy)) +func (f *ImpersonationEventFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldDeletedAt)) +func (f *ImpersonationEventFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(impersonationevent.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldDeletedBy)) +func (f *ImpersonationEventFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ImpersonationEventFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(impersonationevent.FieldTags)) +} + +// WhereImpersonationType applies the entql string predicate on the impersonation_type field. +func (f *ImpersonationEventFilter) WhereImpersonationType(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldImpersonationType)) +} + +// WhereAction applies the entql string predicate on the action field. +func (f *ImpersonationEventFilter) WhereAction(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldAction)) +} + +// WhereReason applies the entql string predicate on the reason field. +func (f *ImpersonationEventFilter) WhereReason(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldReason)) +} + +// WhereIPAddress applies the entql string predicate on the ip_address field. +func (f *ImpersonationEventFilter) WhereIPAddress(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldIPAddress)) +} + +// WhereUserAgent applies the entql string predicate on the user_agent field. +func (f *ImpersonationEventFilter) WhereUserAgent(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldUserAgent)) +} + +// WhereScopes applies the entql json.RawMessage predicate on the scopes field. +func (f *ImpersonationEventFilter) WhereScopes(p entql.BytesP) { + f.Where(p.Field(impersonationevent.FieldScopes)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *ImpersonationEventFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldUserID)) +} + +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *ImpersonationEventFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldOrganizationID)) } -// WhereVisibility applies the entql string predicate on the visibility field. -func (f *GroupSettingFilter) WhereVisibility(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldVisibility)) +// WhereTargetUserID applies the entql string predicate on the target_user_id field. +func (f *ImpersonationEventFilter) WhereTargetUserID(p entql.StringP) { + f.Where(p.Field(impersonationevent.FieldTargetUserID)) } -// WhereJoinPolicy applies the entql string predicate on the join_policy field. -func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldJoinPolicy)) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *ImpersonationEventFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. -func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP) { - f.Where(p.Field(groupsetting.FieldSyncToSlack)) +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *ImpersonationEventFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. -func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP) { - f.Where(p.Field(groupsetting.FieldSyncToGithub)) +// WhereHasTargetUser applies a predicate to check if query has an edge target_user. +func (f *ImpersonationEventFilter) WhereHasTargetUser() { + f.Where(entql.HasEdge("target_user")) } -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupSettingFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldGroupID)) +// WhereHasTargetUserWith applies a predicate to check if query has an edge target_user with a given conditions (other predicates). +func (f *ImpersonationEventFilter) WhereHasTargetUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("target_user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *GroupSettingFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *ImpersonationEventFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *ImpersonationEventFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -28985,784 +30616,779 @@ func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group) { } // addPredicate implements the predicateAdder interface. -func (_q *HushQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *IntegrationQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the HushQuery builder. -func (_q *HushQuery) Filter() *HushFilter { - return &HushFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the IntegrationQuery builder. +func (_q *IntegrationQuery) Filter() *IntegrationFilter { + return &IntegrationFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *HushMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *IntegrationMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the HushMutation builder. -func (m *HushMutation) Filter() *HushFilter { - return &HushFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder. +func (m *IntegrationMutation) Filter() *IntegrationFilter { + return &IntegrationFilter{config: m.config, predicateAdder: m} } -// HushFilter provides a generic filtering capability at runtime for HushQuery. -type HushFilter struct { +// IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery. +type IntegrationFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *HushFilter) Where(p entql.P) { +func (f *IntegrationFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[35].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[38].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *HushFilter) WhereID(p entql.StringP) { - f.Where(p.Field(hush.FieldID)) +func (f *IntegrationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(integration.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *HushFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldCreatedAt)) +func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *HushFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldUpdatedAt)) +func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *HushFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldCreatedBy)) +func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *HushFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldUpdatedBy)) +func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *HushFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldDeletedAt)) +func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *HushFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldDeletedBy)) +func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *IntegrationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(integration.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *HushFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(hush.FieldOwnerID)) +func (f *IntegrationFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(integration.FieldOwnerID)) } // WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *HushFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(hush.FieldSystemOwned)) +func (f *IntegrationFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(integration.FieldSystemOwned)) } // WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *HushFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(hush.FieldInternalNotes)) +func (f *IntegrationFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(integration.FieldInternalNotes)) } // WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *HushFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(hush.FieldSystemInternalID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *HushFilter) WhereName(p entql.StringP) { - f.Where(p.Field(hush.FieldName)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *HushFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(hush.FieldDescription)) -} - -// WhereKind applies the entql string predicate on the kind field. -func (f *HushFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(hush.FieldKind)) -} - -// WhereSecretName applies the entql string predicate on the secret_name field. -func (f *HushFilter) WhereSecretName(p entql.StringP) { - f.Where(p.Field(hush.FieldSecretName)) -} - -// WhereSecretValue applies the entql string predicate on the secret_value field. -func (f *HushFilter) WhereSecretValue(p entql.StringP) { - f.Where(p.Field(hush.FieldSecretValue)) -} - -// WhereCredentialSet applies the entql json.RawMessage predicate on the credential_set field. -func (f *HushFilter) WhereCredentialSet(p entql.BytesP) { - f.Where(p.Field(hush.FieldCredentialSet)) -} - -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *HushFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(hush.FieldMetadata)) -} - -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *HushFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldLastUsedAt)) -} - -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *HushFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldExpiresAt)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *HushFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) -} - -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *HushFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *HushFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) -} - -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *HushFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *HushFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +func (f *IntegrationFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(integration.FieldSystemInternalID)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *HushFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *IntegrationFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(integration.FieldEnvironmentName)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *HushFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *IntegrationFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(integration.FieldEnvironmentID)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *HushFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *IntegrationFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(integration.FieldScopeName)) } -// addPredicate implements the predicateAdder interface. -func (_q *IdentityHolderQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *IntegrationFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(integration.FieldScopeID)) } -// Filter returns a Filter implementation to apply filters on the IdentityHolderQuery builder. -func (_q *IdentityHolderQuery) Filter() *IdentityHolderFilter { - return &IdentityHolderFilter{config: _q.config, predicateAdder: _q} +// WhereName applies the entql string predicate on the name field. +func (f *IntegrationFilter) WhereName(p entql.StringP) { + f.Where(p.Field(integration.FieldName)) } -// addPredicate implements the predicateAdder interface. -func (m *IdentityHolderMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereDescription applies the entql string predicate on the description field. +func (f *IntegrationFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(integration.FieldDescription)) } -// Filter returns an entql.Where implementation to apply filters on the IdentityHolderMutation builder. -func (m *IdentityHolderMutation) Filter() *IdentityHolderFilter { - return &IdentityHolderFilter{config: m.config, predicateAdder: m} +// WhereKind applies the entql string predicate on the kind field. +func (f *IntegrationFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(integration.FieldKind)) } -// IdentityHolderFilter provides a generic filtering capability at runtime for IdentityHolderQuery. -type IdentityHolderFilter struct { - predicateAdder - config +// WhereIntegrationType applies the entql string predicate on the integration_type field. +func (f *IntegrationFilter) WhereIntegrationType(p entql.StringP) { + f.Where(p.Field(integration.FieldIntegrationType)) } -// Where applies the entql predicate on the query filter. -func (f *IdentityHolderFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[36].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WherePlatformID applies the entql string predicate on the platform_id field. +func (f *IntegrationFilter) WherePlatformID(p entql.StringP) { + f.Where(p.Field(integration.FieldPlatformID)) } -// WhereID applies the entql string predicate on the id field. -func (f *IdentityHolderFilter) WhereID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldID)) +// WhereProviderMetadata applies the entql json.RawMessage predicate on the provider_metadata field. +func (f *IntegrationFilter) WhereProviderMetadata(p entql.BytesP) { + f.Where(p.Field(integration.FieldProviderMetadata)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IdentityHolderFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(identityholder.FieldCreatedAt)) +// WhereConfig applies the entql json.RawMessage predicate on the config field. +func (f *IntegrationFilter) WhereConfig(p entql.BytesP) { + f.Where(p.Field(integration.FieldConfig)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IdentityHolderFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(identityholder.FieldUpdatedAt)) +// WhereInstallationMetadata applies the entql json.RawMessage predicate on the installation_metadata field. +func (f *IntegrationFilter) WhereInstallationMetadata(p entql.BytesP) { + f.Where(p.Field(integration.FieldInstallationMetadata)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IdentityHolderFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(identityholder.FieldCreatedBy)) +// WhereProviderState applies the entql json.RawMessage predicate on the provider_state field. +func (f *IntegrationFilter) WhereProviderState(p entql.BytesP) { + f.Where(p.Field(integration.FieldProviderState)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IdentityHolderFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(identityholder.FieldUpdatedBy)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *IntegrationFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(integration.FieldMetadata)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IdentityHolderFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(identityholder.FieldDeletedAt)) +// WhereDefinitionID applies the entql string predicate on the definition_id field. +func (f *IntegrationFilter) WhereDefinitionID(p entql.StringP) { + f.Where(p.Field(integration.FieldDefinitionID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IdentityHolderFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(identityholder.FieldDeletedBy)) +// WhereDefinitionVersion applies the entql string predicate on the definition_version field. +func (f *IntegrationFilter) WhereDefinitionVersion(p entql.StringP) { + f.Where(p.Field(integration.FieldDefinitionVersion)) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *IdentityHolderFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldDisplayID)) +// WhereDefinitionSlug applies the entql string predicate on the definition_slug field. +func (f *IntegrationFilter) WhereDefinitionSlug(p entql.StringP) { + f.Where(p.Field(integration.FieldDefinitionSlug)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *IdentityHolderFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(identityholder.FieldTags)) +// WhereFamily applies the entql string predicate on the family field. +func (f *IntegrationFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(integration.FieldFamily)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IdentityHolderFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldOwnerID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *IntegrationFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(integration.FieldStatus)) } -// WhereInternalOwner applies the entql string predicate on the internal_owner field. -func (f *IdentityHolderFilter) WhereInternalOwner(p entql.StringP) { - f.Where(p.Field(identityholder.FieldInternalOwner)) +// WhereProviderMetadataSnapshot applies the entql json.RawMessage predicate on the provider_metadata_snapshot field. +func (f *IntegrationFilter) WhereProviderMetadataSnapshot(p entql.BytesP) { + f.Where(p.Field(integration.FieldProviderMetadataSnapshot)) } -// WhereInternalOwnerUserID applies the entql string predicate on the internal_owner_user_id field. -func (f *IdentityHolderFilter) WhereInternalOwnerUserID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldInternalOwnerUserID)) +// WherePrimaryDirectory applies the entql bool predicate on the primary_directory field. +func (f *IntegrationFilter) WherePrimaryDirectory(p entql.BoolP) { + f.Where(p.Field(integration.FieldPrimaryDirectory)) } -// WhereInternalOwnerGroupID applies the entql string predicate on the internal_owner_group_id field. -func (f *IdentityHolderFilter) WhereInternalOwnerGroupID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldInternalOwnerGroupID)) +// WhereCampaignEmail applies the entql bool predicate on the campaign_email field. +func (f *IntegrationFilter) WhereCampaignEmail(p entql.BoolP) { + f.Where(p.Field(integration.FieldCampaignEmail)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *IdentityHolderFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(identityholder.FieldEnvironmentName)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *IntegrationFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *IdentityHolderFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldEnvironmentID)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *IdentityHolderFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(identityholder.FieldScopeName)) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *IntegrationFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *IdentityHolderFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldScopeID)) +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *IdentityHolderFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(identityholder.FieldWorkflowEligibleMarker)) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *IntegrationFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereFullName applies the entql string predicate on the full_name field. -func (f *IdentityHolderFilter) WhereFullName(p entql.StringP) { - f.Where(p.Field(identityholder.FieldFullName)) +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmail applies the entql string predicate on the email field. -func (f *IdentityHolderFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(identityholder.FieldEmail)) +// WhereHasSecrets applies a predicate to check if query has an edge secrets. +func (f *IntegrationFilter) WhereHasSecrets() { + f.Where(entql.HasEdge("secrets")) } -// WhereAlternateEmail applies the entql string predicate on the alternate_email field. -func (f *IdentityHolderFilter) WhereAlternateEmail(p entql.StringP) { - f.Where(p.Field(identityholder.FieldAlternateEmail)) +// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEmailAliases applies the entql json.RawMessage predicate on the email_aliases field. -func (f *IdentityHolderFilter) WhereEmailAliases(p entql.BytesP) { - f.Where(p.Field(identityholder.FieldEmailAliases)) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *IntegrationFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WherePhoneNumber applies the entql string predicate on the phone_number field. -func (f *IdentityHolderFilter) WherePhoneNumber(p entql.StringP) { - f.Where(p.Field(identityholder.FieldPhoneNumber)) +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIsOpenlaneUser applies the entql bool predicate on the is_openlane_user field. -func (f *IdentityHolderFilter) WhereIsOpenlaneUser(p entql.BoolP) { - f.Where(p.Field(identityholder.FieldIsOpenlaneUser)) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *IntegrationFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *IdentityHolderFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldUserID)) +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIdentityHolderType applies the entql string predicate on the identity_holder_type field. -func (f *IdentityHolderFilter) WhereIdentityHolderType(p entql.StringP) { - f.Where(p.Field(identityholder.FieldIdentityHolderType)) +// WhereHasFindings applies a predicate to check if query has an edge findings. +func (f *IntegrationFilter) WhereHasFindings() { + f.Where(entql.HasEdge("findings")) } -// WhereStatus applies the entql string predicate on the status field. -func (f *IdentityHolderFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(identityholder.FieldStatus)) +// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasFindingsWith(preds ...predicate.Finding) { + f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIsActive applies the entql bool predicate on the is_active field. -func (f *IdentityHolderFilter) WhereIsActive(p entql.BoolP) { - f.Where(p.Field(identityholder.FieldIsActive)) +// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. +func (f *IntegrationFilter) WhereHasVulnerabilities() { + f.Where(entql.HasEdge("vulnerabilities")) } -// WhereTitle applies the entql string predicate on the title field. -func (f *IdentityHolderFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(identityholder.FieldTitle)) +// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { + f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDepartment applies the entql string predicate on the department field. -func (f *IdentityHolderFilter) WhereDepartment(p entql.StringP) { - f.Where(p.Field(identityholder.FieldDepartment)) +// WhereHasReviews applies a predicate to check if query has an edge reviews. +func (f *IntegrationFilter) WhereHasReviews() { + f.Where(entql.HasEdge("reviews")) } -// WhereTeam applies the entql string predicate on the team field. -func (f *IdentityHolderFilter) WhereTeam(p entql.StringP) { - f.Where(p.Field(identityholder.FieldTeam)) +// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasReviewsWith(preds ...predicate.Review) { + f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereLocation applies the entql string predicate on the location field. -func (f *IdentityHolderFilter) WhereLocation(p entql.StringP) { - f.Where(p.Field(identityholder.FieldLocation)) +// WhereHasRemediations applies a predicate to check if query has an edge remediations. +func (f *IntegrationFilter) WhereHasRemediations() { + f.Where(entql.HasEdge("remediations")) } -// WhereStartDate applies the entql time.Time predicate on the start_date field. -func (f *IdentityHolderFilter) WhereStartDate(p entql.TimeP) { - f.Where(p.Field(identityholder.FieldStartDate)) +// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { + f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereEndDate applies the entql time.Time predicate on the end_date field. -func (f *IdentityHolderFilter) WhereEndDate(p entql.TimeP) { - f.Where(p.Field(identityholder.FieldEndDate)) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *IntegrationFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereEmployerEntityID applies the entql string predicate on the employer_entity_id field. -func (f *IdentityHolderFilter) WhereEmployerEntityID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldEmployerEntityID)) +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExternalUserID applies the entql string predicate on the external_user_id field. -func (f *IdentityHolderFilter) WhereExternalUserID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldExternalUserID)) +// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. +func (f *IntegrationFilter) WhereHasActionPlans() { + f.Where(entql.HasEdge("action_plans")) } -// WhereExternalReferenceID applies the entql string predicate on the external_reference_id field. -func (f *IdentityHolderFilter) WhereExternalReferenceID(p entql.StringP) { - f.Where(p.Field(identityholder.FieldExternalReferenceID)) +// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *IdentityHolderFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(identityholder.FieldMetadata)) +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *IntegrationFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. -func (f *IdentityHolderFilter) WhereAvatarRemoteURL(p entql.StringP) { - f.Where(p.Field(identityholder.FieldAvatarRemoteURL)) +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *IdentityHolderFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. +func (f *IntegrationFilter) WhereHasDirectoryAccounts() { + f.Where(entql.HasEdge("directory_accounts")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { + f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *IdentityHolderFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasDirectoryGroups applies a predicate to check if query has an edge directory_groups. +func (f *IntegrationFilter) WhereHasDirectoryGroups() { + f.Where(entql.HasEdge("directory_groups")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryGroupsWith applies a predicate to check if query has an edge directory_groups with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasDirectoryGroupsWith(preds ...predicate.DirectoryGroup) { + f.Where(entql.HasEdgeWith("directory_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *IdentityHolderFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereHasDirectoryMemberships applies a predicate to check if query has an edge directory_memberships. +func (f *IntegrationFilter) WhereHasDirectoryMemberships() { + f.Where(entql.HasEdge("directory_memberships")) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectoryMembershipsWith applies a predicate to check if query has an edge directory_memberships with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasDirectoryMembershipsWith(preds ...predicate.DirectoryMembership) { + f.Where(entql.HasEdgeWith("directory_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *IdentityHolderFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereHasDirectorySyncRuns applies a predicate to check if query has an edge directory_sync_runs. +func (f *IntegrationFilter) WhereHasDirectorySyncRuns() { + f.Where(entql.HasEdge("directory_sync_runs")) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDirectorySyncRunsWith applies a predicate to check if query has an edge directory_sync_runs with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasDirectorySyncRunsWith(preds ...predicate.DirectorySyncRun) { + f.Where(entql.HasEdgeWith("directory_sync_runs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerUser applies a predicate to check if query has an edge internal_owner_user. -func (f *IdentityHolderFilter) WhereHasInternalOwnerUser() { - f.Where(entql.HasEdge("internal_owner_user")) +// WhereHasCheckResults applies a predicate to check if query has an edge check_results. +func (f *IntegrationFilter) WhereHasCheckResults() { + f.Where(entql.HasEdge("check_results")) } -// WhereHasInternalOwnerUserWith applies a predicate to check if query has an edge internal_owner_user with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasInternalOwnerUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("internal_owner_user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { + f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalOwnerGroup applies a predicate to check if query has an edge internal_owner_group. -func (f *IdentityHolderFilter) WhereHasInternalOwnerGroup() { - f.Where(entql.HasEdge("internal_owner_group")) +// WhereHasPlatform applies a predicate to check if query has an edge platform. +func (f *IntegrationFilter) WhereHasPlatform() { + f.Where(entql.HasEdge("platform")) } -// WhereHasInternalOwnerGroupWith applies a predicate to check if query has an edge internal_owner_group with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasInternalOwnerGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("internal_owner_group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasPlatformWith(preds ...predicate.Platform) { + f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *IdentityHolderFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasNotificationTemplates applies a predicate to check if query has an edge notification_templates. +func (f *IntegrationFilter) WhereHasNotificationTemplates() { + f.Where(entql.HasEdge("notification_templates")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNotificationTemplatesWith applies a predicate to check if query has an edge notification_templates with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasNotificationTemplatesWith(preds ...predicate.NotificationTemplate) { + f.Where(entql.HasEdgeWith("notification_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *IdentityHolderFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasEmailTemplates applies a predicate to check if query has an edge email_templates. +func (f *IntegrationFilter) WhereHasEmailTemplates() { + f.Where(entql.HasEdge("email_templates")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEmailTemplatesWith applies a predicate to check if query has an edge email_templates with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasEmailTemplatesWith(preds ...predicate.EmailTemplate) { + f.Where(entql.HasEdgeWith("email_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEmployer applies a predicate to check if query has an edge employer. -func (f *IdentityHolderFilter) WhereHasEmployer() { - f.Where(entql.HasEdge("employer")) +// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. +func (f *IntegrationFilter) WhereHasCampaigns() { + f.Where(entql.HasEdge("campaigns")) } -// WhereHasEmployerWith applies a predicate to check if query has an edge employer with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasEmployerWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("employer", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { + f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessmentResponses applies a predicate to check if query has an edge assessment_responses. -func (f *IdentityHolderFilter) WhereHasAssessmentResponses() { - f.Where(entql.HasEdge("assessment_responses")) +// WhereHasIntegrationWebhooks applies a predicate to check if query has an edge integration_webhooks. +func (f *IntegrationFilter) WhereHasIntegrationWebhooks() { + f.Where(entql.HasEdge("integration_webhooks")) } -// WhereHasAssessmentResponsesWith applies a predicate to check if query has an edge assessment_responses with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) { - f.Where(entql.HasEdgeWith("assessment_responses", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWebhooksWith applies a predicate to check if query has an edge integration_webhooks with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasIntegrationWebhooksWith(preds ...predicate.IntegrationWebhook) { + f.Where(entql.HasEdgeWith("integration_webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssessments applies a predicate to check if query has an edge assessments. -func (f *IdentityHolderFilter) WhereHasAssessments() { - f.Where(entql.HasEdge("assessments")) +// WhereHasIntegrationRuns applies a predicate to check if query has an edge integration_runs. +func (f *IntegrationFilter) WhereHasIntegrationRuns() { + f.Where(entql.HasEdge("integration_runs")) } -// WhereHasAssessmentsWith applies a predicate to check if query has an edge assessments with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasAssessmentsWith(preds ...predicate.Assessment) { - f.Where(entql.HasEdgeWith("assessments", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationRunsWith applies a predicate to check if query has an edge integration_runs with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasIntegrationRunsWith(preds ...predicate.IntegrationRun) { + f.Where(entql.HasEdgeWith("integration_runs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTemplates applies a predicate to check if query has an edge templates. -func (f *IdentityHolderFilter) WhereHasTemplates() { - f.Where(entql.HasEdge("templates")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *IntegrationFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasTemplatesWith applies a predicate to check if query has an edge templates with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasTemplatesWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("templates", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *IdentityHolderFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// addPredicate implements the predicateAdder interface. +func (_q *IntegrationRunQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the IntegrationRunQuery builder. +func (_q *IntegrationRunQuery) Filter() *IntegrationRunFilter { + return &IntegrationRunFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *IntegrationRunMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the IntegrationRunMutation builder. +func (m *IntegrationRunMutation) Filter() *IntegrationRunFilter { + return &IntegrationRunFilter{config: m.config, predicateAdder: m} +} + +// IntegrationRunFilter provides a generic filtering capability at runtime for IntegrationRunQuery. +type IntegrationRunFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *IntegrationRunFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[39].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *IntegrationRunFilter) WhereID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *IntegrationRunFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(integrationrun.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *IntegrationRunFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(integrationrun.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *IntegrationRunFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *IntegrationRunFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *IntegrationRunFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(integrationrun.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *IntegrationRunFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldDeletedBy)) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *IntegrationRunFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldOwnerID)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *IdentityHolderFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *IntegrationRunFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldIntegrationID)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOperationName applies the entql string predicate on the operation_name field. +func (f *IntegrationRunFilter) WhereOperationName(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldOperationName)) } -// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. -func (f *IdentityHolderFilter) WhereHasDirectoryAccounts() { - f.Where(entql.HasEdge("directory_accounts")) +// WhereOperationKind applies the entql string predicate on the operation_kind field. +func (f *IntegrationRunFilter) WhereOperationKind(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldOperationKind)) } -// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereRunType applies the entql string predicate on the run_type field. +func (f *IntegrationRunFilter) WhereRunType(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldRunType)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *IdentityHolderFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereOperationConfig applies the entql json.RawMessage predicate on the operation_config field. +func (f *IntegrationRunFilter) WhereOperationConfig(p entql.BytesP) { + f.Where(p.Field(integrationrun.FieldOperationConfig)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMappingVersion applies the entql string predicate on the mapping_version field. +func (f *IntegrationRunFilter) WhereMappingVersion(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldMappingVersion)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *IdentityHolderFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereStatus applies the entql string predicate on the status field. +func (f *IntegrationRunFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldStatus)) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStartedAt applies the entql time.Time predicate on the started_at field. +func (f *IntegrationRunFilter) WhereStartedAt(p entql.TimeP) { + f.Where(p.Field(integrationrun.FieldStartedAt)) } -// WhereHasPlatforms applies a predicate to check if query has an edge platforms. -func (f *IdentityHolderFilter) WhereHasPlatforms() { - f.Where(entql.HasEdge("platforms")) +// WhereFinishedAt applies the entql time.Time predicate on the finished_at field. +func (f *IntegrationRunFilter) WhereFinishedAt(p entql.TimeP) { + f.Where(p.Field(integrationrun.FieldFinishedAt)) } -// WhereHasPlatformsWith applies a predicate to check if query has an edge platforms with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDurationMs applies the entql int predicate on the duration_ms field. +func (f *IntegrationRunFilter) WhereDurationMs(p entql.IntP) { + f.Where(p.Field(integrationrun.FieldDurationMs)) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *IdentityHolderFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereRequestFileID applies the entql string predicate on the request_file_id field. +func (f *IntegrationRunFilter) WhereRequestFileID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldRequestFileID)) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereResponseFileID applies the entql string predicate on the response_file_id field. +func (f *IntegrationRunFilter) WhereResponseFileID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldResponseFileID)) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *IdentityHolderFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereEventID applies the entql string predicate on the event_id field. +func (f *IntegrationRunFilter) WhereEventID(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldEventID)) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSummary applies the entql string predicate on the summary field. +func (f *IntegrationRunFilter) WhereSummary(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldSummary)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *IdentityHolderFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereError applies the entql string predicate on the error field. +func (f *IntegrationRunFilter) WhereError(p entql.StringP) { + f.Where(p.Field(integrationrun.FieldError)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMetrics applies the entql json.RawMessage predicate on the metrics field. +func (f *IntegrationRunFilter) WhereMetrics(p entql.BytesP) { + f.Where(p.Field(integrationrun.FieldMetrics)) } -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *IdentityHolderFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *IntegrationRunFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *IntegrationRunFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *IdentityHolderFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *IntegrationRunFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *IntegrationRunFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAccessPlatforms applies a predicate to check if query has an edge access_platforms. -func (f *IdentityHolderFilter) WhereHasAccessPlatforms() { - f.Where(entql.HasEdge("access_platforms")) +// WhereHasRequestFile applies a predicate to check if query has an edge request_file. +func (f *IntegrationRunFilter) WhereHasRequestFile() { + f.Where(entql.HasEdge("request_file")) } -// WhereHasAccessPlatformsWith applies a predicate to check if query has an edge access_platforms with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasAccessPlatformsWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("access_platforms", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRequestFileWith applies a predicate to check if query has an edge request_file with a given conditions (other predicates). +func (f *IntegrationRunFilter) WhereHasRequestFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("request_file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *IdentityHolderFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereHasResponseFile applies a predicate to check if query has an edge response_file. +func (f *IntegrationRunFilter) WhereHasResponseFile() { + f.Where(entql.HasEdge("response_file")) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasResponseFileWith applies a predicate to check if query has an edge response_file with a given conditions (other predicates). +func (f *IntegrationRunFilter) WhereHasResponseFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("response_file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *IdentityHolderFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WhereHasEvent applies a predicate to check if query has an edge event. +func (f *IntegrationRunFilter) WhereHasEvent() { + f.Where(entql.HasEdge("event")) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *IdentityHolderFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventWith applies a predicate to check if query has an edge event with a given conditions (other predicates). +func (f *IntegrationRunFilter) WhereHasEventWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("event", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -29770,161 +31396,172 @@ func (f *IdentityHolderFilter) WhereHasInternalPoliciesWith(preds ...predicate.I } // addPredicate implements the predicateAdder interface. -func (_q *ImpersonationEventQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *IntegrationWebhookQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ImpersonationEventQuery builder. -func (_q *ImpersonationEventQuery) Filter() *ImpersonationEventFilter { - return &ImpersonationEventFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the IntegrationWebhookQuery builder. +func (_q *IntegrationWebhookQuery) Filter() *IntegrationWebhookFilter { + return &IntegrationWebhookFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *ImpersonationEventMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *IntegrationWebhookMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ImpersonationEventMutation builder. -func (m *ImpersonationEventMutation) Filter() *ImpersonationEventFilter { - return &ImpersonationEventFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the IntegrationWebhookMutation builder. +func (m *IntegrationWebhookMutation) Filter() *IntegrationWebhookFilter { + return &IntegrationWebhookFilter{config: m.config, predicateAdder: m} } -// ImpersonationEventFilter provides a generic filtering capability at runtime for ImpersonationEventQuery. -type ImpersonationEventFilter struct { +// IntegrationWebhookFilter provides a generic filtering capability at runtime for IntegrationWebhookQuery. +type IntegrationWebhookFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ImpersonationEventFilter) Where(p entql.P) { +func (f *IntegrationWebhookFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[37].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[40].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *ImpersonationEventFilter) WhereID(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldID)) +func (f *IntegrationWebhookFilter) WhereID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ImpersonationEventFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(impersonationevent.FieldCreatedAt)) +func (f *IntegrationWebhookFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(integrationwebhook.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ImpersonationEventFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(impersonationevent.FieldUpdatedAt)) +func (f *IntegrationWebhookFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(integrationwebhook.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ImpersonationEventFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldCreatedBy)) +func (f *IntegrationWebhookFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ImpersonationEventFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldUpdatedBy)) +func (f *IntegrationWebhookFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *IntegrationWebhookFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(integrationwebhook.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *IntegrationWebhookFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *IntegrationWebhookFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldOwnerID)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ImpersonationEventFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(impersonationevent.FieldDeletedAt)) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *IntegrationWebhookFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldIntegrationID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ImpersonationEventFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldDeletedBy)) +// WhereProvider applies the entql string predicate on the provider field. +func (f *IntegrationWebhookFilter) WhereProvider(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldProvider)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ImpersonationEventFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(impersonationevent.FieldTags)) +// WhereName applies the entql string predicate on the name field. +func (f *IntegrationWebhookFilter) WhereName(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldName)) } -// WhereImpersonationType applies the entql string predicate on the impersonation_type field. -func (f *ImpersonationEventFilter) WhereImpersonationType(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldImpersonationType)) +// WhereStatus applies the entql string predicate on the status field. +func (f *IntegrationWebhookFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldStatus)) } -// WhereAction applies the entql string predicate on the action field. -func (f *ImpersonationEventFilter) WhereAction(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldAction)) +// WhereEndpointID applies the entql string predicate on the endpoint_id field. +func (f *IntegrationWebhookFilter) WhereEndpointID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldEndpointID)) } -// WhereReason applies the entql string predicate on the reason field. -func (f *ImpersonationEventFilter) WhereReason(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldReason)) +// WhereEndpointURL applies the entql string predicate on the endpoint_url field. +func (f *IntegrationWebhookFilter) WhereEndpointURL(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldEndpointURL)) } -// WhereIPAddress applies the entql string predicate on the ip_address field. -func (f *ImpersonationEventFilter) WhereIPAddress(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldIPAddress)) +// WhereSecretToken applies the entql string predicate on the secret_token field. +func (f *IntegrationWebhookFilter) WhereSecretToken(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldSecretToken)) } -// WhereUserAgent applies the entql string predicate on the user_agent field. -func (f *ImpersonationEventFilter) WhereUserAgent(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldUserAgent)) +// WhereAllowedEvents applies the entql json.RawMessage predicate on the allowed_events field. +func (f *IntegrationWebhookFilter) WhereAllowedEvents(p entql.BytesP) { + f.Where(p.Field(integrationwebhook.FieldAllowedEvents)) } -// WhereScopes applies the entql json.RawMessage predicate on the scopes field. -func (f *ImpersonationEventFilter) WhereScopes(p entql.BytesP) { - f.Where(p.Field(impersonationevent.FieldScopes)) +// WhereLastDeliveryID applies the entql string predicate on the last_delivery_id field. +func (f *IntegrationWebhookFilter) WhereLastDeliveryID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldLastDeliveryID)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *ImpersonationEventFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldUserID)) +// WhereLastDeliveryAt applies the entql time.Time predicate on the last_delivery_at field. +func (f *IntegrationWebhookFilter) WhereLastDeliveryAt(p entql.TimeP) { + f.Where(p.Field(integrationwebhook.FieldLastDeliveryAt)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *ImpersonationEventFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldOrganizationID)) +// WhereLastDeliveryStatus applies the entql string predicate on the last_delivery_status field. +func (f *IntegrationWebhookFilter) WhereLastDeliveryStatus(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldLastDeliveryStatus)) } -// WhereTargetUserID applies the entql string predicate on the target_user_id field. -func (f *ImpersonationEventFilter) WhereTargetUserID(p entql.StringP) { - f.Where(p.Field(impersonationevent.FieldTargetUserID)) +// WhereLastDeliveryError applies the entql string predicate on the last_delivery_error field. +func (f *IntegrationWebhookFilter) WhereLastDeliveryError(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldLastDeliveryError)) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *ImpersonationEventFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereExternalEventID applies the entql string predicate on the external_event_id field. +func (f *IntegrationWebhookFilter) WhereExternalEventID(p entql.StringP) { + f.Where(p.Field(integrationwebhook.FieldExternalEventID)) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *ImpersonationEventFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *IntegrationWebhookFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(integrationwebhook.FieldMetadata)) } -// WhereHasTargetUser applies a predicate to check if query has an edge target_user. -func (f *ImpersonationEventFilter) WhereHasTargetUser() { - f.Where(entql.HasEdge("target_user")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *IntegrationWebhookFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasTargetUserWith applies a predicate to check if query has an edge target_user with a given conditions (other predicates). -func (f *ImpersonationEventFilter) WhereHasTargetUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("target_user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *IntegrationWebhookFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *ImpersonationEventFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *IntegrationWebhookFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *ImpersonationEventFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *IntegrationWebhookFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -29932,217 +31569,252 @@ func (f *ImpersonationEventFilter) WhereHasOrganizationWith(preds ...predicate.O } // addPredicate implements the predicateAdder interface. -func (_q *IntegrationQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *InternalPolicyQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the IntegrationQuery builder. -func (_q *IntegrationQuery) Filter() *IntegrationFilter { - return &IntegrationFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the InternalPolicyQuery builder. +func (_q *InternalPolicyQuery) Filter() *InternalPolicyFilter { + return &InternalPolicyFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *IntegrationMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *InternalPolicyMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder. -func (m *IntegrationMutation) Filter() *IntegrationFilter { - return &IntegrationFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the InternalPolicyMutation builder. +func (m *InternalPolicyMutation) Filter() *InternalPolicyFilter { + return &InternalPolicyFilter{config: m.config, predicateAdder: m} } -// IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery. -type IntegrationFilter struct { +// InternalPolicyFilter provides a generic filtering capability at runtime for InternalPolicyQuery. +type InternalPolicyFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *IntegrationFilter) Where(p entql.P) { +func (f *InternalPolicyFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[38].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[41].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *IntegrationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(integration.FieldID)) +func (f *InternalPolicyFilter) WhereID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldCreatedAt)) +func (f *InternalPolicyFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldUpdatedAt)) +func (f *InternalPolicyFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldCreatedBy)) +func (f *InternalPolicyFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldUpdatedBy)) +func (f *InternalPolicyFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldDeletedAt)) +func (f *InternalPolicyFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldDeletedBy)) +func (f *InternalPolicyFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *InternalPolicyFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *IntegrationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(integration.FieldTags)) +func (f *InternalPolicyFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldTags)) +} + +// WhereRevision applies the entql string predicate on the revision field. +func (f *InternalPolicyFilter) WhereRevision(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldRevision)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IntegrationFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(integration.FieldOwnerID)) +func (f *InternalPolicyFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldOwnerID)) } // WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *IntegrationFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(integration.FieldSystemOwned)) +func (f *InternalPolicyFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(internalpolicy.FieldSystemOwned)) } // WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *IntegrationFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(integration.FieldInternalNotes)) +func (f *InternalPolicyFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldInternalNotes)) } // WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *IntegrationFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(integration.FieldSystemInternalID)) +func (f *InternalPolicyFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldSystemInternalID)) } -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *IntegrationFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(integration.FieldEnvironmentName)) +// WhereName applies the entql string predicate on the name field. +func (f *InternalPolicyFilter) WhereName(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldName)) } -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *IntegrationFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(integration.FieldEnvironmentID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *InternalPolicyFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldStatus)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *IntegrationFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(integration.FieldScopeName)) +// WhereManagementMode applies the entql string predicate on the management_mode field. +func (f *InternalPolicyFilter) WhereManagementMode(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldManagementMode)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *IntegrationFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(integration.FieldScopeID)) +// WhereDetails applies the entql string predicate on the details field. +func (f *InternalPolicyFilter) WhereDetails(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDetails)) } -// WhereName applies the entql string predicate on the name field. -func (f *IntegrationFilter) WhereName(p entql.StringP) { - f.Where(p.Field(integration.FieldName)) +// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. +func (f *InternalPolicyFilter) WhereDetailsJSON(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldDetailsJSON)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *IntegrationFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(integration.FieldDescription)) +// WhereApprovalRequired applies the entql bool predicate on the approval_required field. +func (f *InternalPolicyFilter) WhereApprovalRequired(p entql.BoolP) { + f.Where(p.Field(internalpolicy.FieldApprovalRequired)) +} + +// WhereReviewDue applies the entql time.Time predicate on the review_due field. +func (f *InternalPolicyFilter) WhereReviewDue(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldReviewDue)) +} + +// WhereReviewFrequency applies the entql string predicate on the review_frequency field. +func (f *InternalPolicyFilter) WhereReviewFrequency(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldReviewFrequency)) +} + +// WhereApproverID applies the entql string predicate on the approver_id field. +func (f *InternalPolicyFilter) WhereApproverID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldApproverID)) +} + +// WhereDelegateID applies the entql string predicate on the delegate_id field. +func (f *InternalPolicyFilter) WhereDelegateID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDelegateID)) +} + +// WhereSummary applies the entql string predicate on the summary field. +func (f *InternalPolicyFilter) WhereSummary(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldSummary)) } -// WhereKind applies the entql string predicate on the kind field. -func (f *IntegrationFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(integration.FieldKind)) +// WhereTagSuggestions applies the entql json.RawMessage predicate on the tag_suggestions field. +func (f *InternalPolicyFilter) WhereTagSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldTagSuggestions)) } -// WhereIntegrationType applies the entql string predicate on the integration_type field. -func (f *IntegrationFilter) WhereIntegrationType(p entql.StringP) { - f.Where(p.Field(integration.FieldIntegrationType)) +// WhereDismissedTagSuggestions applies the entql json.RawMessage predicate on the dismissed_tag_suggestions field. +func (f *InternalPolicyFilter) WhereDismissedTagSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldDismissedTagSuggestions)) } -// WherePlatformID applies the entql string predicate on the platform_id field. -func (f *IntegrationFilter) WherePlatformID(p entql.StringP) { - f.Where(p.Field(integration.FieldPlatformID)) +// WhereControlSuggestions applies the entql json.RawMessage predicate on the control_suggestions field. +func (f *InternalPolicyFilter) WhereControlSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldControlSuggestions)) } -// WhereProviderMetadata applies the entql json.RawMessage predicate on the provider_metadata field. -func (f *IntegrationFilter) WhereProviderMetadata(p entql.BytesP) { - f.Where(p.Field(integration.FieldProviderMetadata)) +// WhereDismissedControlSuggestions applies the entql json.RawMessage predicate on the dismissed_control_suggestions field. +func (f *InternalPolicyFilter) WhereDismissedControlSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldDismissedControlSuggestions)) } -// WhereConfig applies the entql json.RawMessage predicate on the config field. -func (f *IntegrationFilter) WhereConfig(p entql.BytesP) { - f.Where(p.Field(integration.FieldConfig)) +// WhereImprovementSuggestions applies the entql json.RawMessage predicate on the improvement_suggestions field. +func (f *InternalPolicyFilter) WhereImprovementSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldImprovementSuggestions)) } -// WhereInstallationMetadata applies the entql json.RawMessage predicate on the installation_metadata field. -func (f *IntegrationFilter) WhereInstallationMetadata(p entql.BytesP) { - f.Where(p.Field(integration.FieldInstallationMetadata)) +// WhereDismissedImprovementSuggestions applies the entql json.RawMessage predicate on the dismissed_improvement_suggestions field. +func (f *InternalPolicyFilter) WhereDismissedImprovementSuggestions(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldDismissedImprovementSuggestions)) } -// WhereProviderState applies the entql json.RawMessage predicate on the provider_state field. -func (f *IntegrationFilter) WhereProviderState(p entql.BytesP) { - f.Where(p.Field(integration.FieldProviderState)) +// WhereURL applies the entql string predicate on the url field. +func (f *InternalPolicyFilter) WhereURL(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldURL)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *IntegrationFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(integration.FieldMetadata)) +// WhereFileID applies the entql string predicate on the file_id field. +func (f *InternalPolicyFilter) WhereFileID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldFileID)) } -// WhereDefinitionID applies the entql string predicate on the definition_id field. -func (f *IntegrationFilter) WhereDefinitionID(p entql.StringP) { - f.Where(p.Field(integration.FieldDefinitionID)) +// WhereInternalPolicyKindName applies the entql string predicate on the internal_policy_kind_name field. +func (f *InternalPolicyFilter) WhereInternalPolicyKindName(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldInternalPolicyKindName)) } -// WhereDefinitionVersion applies the entql string predicate on the definition_version field. -func (f *IntegrationFilter) WhereDefinitionVersion(p entql.StringP) { - f.Where(p.Field(integration.FieldDefinitionVersion)) +// WhereInternalPolicyKindID applies the entql string predicate on the internal_policy_kind_id field. +func (f *InternalPolicyFilter) WhereInternalPolicyKindID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldInternalPolicyKindID)) } -// WhereDefinitionSlug applies the entql string predicate on the definition_slug field. -func (f *IntegrationFilter) WhereDefinitionSlug(p entql.StringP) { - f.Where(p.Field(integration.FieldDefinitionSlug)) +// WhereEnvironmentName applies the entql string predicate on the environment_name field. +func (f *InternalPolicyFilter) WhereEnvironmentName(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldEnvironmentName)) } -// WhereFamily applies the entql string predicate on the family field. -func (f *IntegrationFilter) WhereFamily(p entql.StringP) { - f.Where(p.Field(integration.FieldFamily)) +// WhereEnvironmentID applies the entql string predicate on the environment_id field. +func (f *InternalPolicyFilter) WhereEnvironmentID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldEnvironmentID)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *IntegrationFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(integration.FieldStatus)) +// WhereScopeName applies the entql string predicate on the scope_name field. +func (f *InternalPolicyFilter) WhereScopeName(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldScopeName)) } -// WhereProviderMetadataSnapshot applies the entql json.RawMessage predicate on the provider_metadata_snapshot field. -func (f *IntegrationFilter) WhereProviderMetadataSnapshot(p entql.BytesP) { - f.Where(p.Field(integration.FieldProviderMetadataSnapshot)) +// WhereScopeID applies the entql string predicate on the scope_id field. +func (f *InternalPolicyFilter) WhereScopeID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldScopeID)) } -// WherePrimaryDirectory applies the entql bool predicate on the primary_directory field. -func (f *IntegrationFilter) WherePrimaryDirectory(p entql.BoolP) { - f.Where(p.Field(integration.FieldPrimaryDirectory)) +// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. +func (f *InternalPolicyFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { + f.Where(p.Field(internalpolicy.FieldWorkflowEligibleMarker)) } -// WhereCampaignEmail applies the entql bool predicate on the campaign_email field. -func (f *IntegrationFilter) WhereCampaignEmail(p entql.BoolP) { - f.Where(p.Field(integration.FieldCampaignEmail)) +// WhereExternalUUID applies the entql string predicate on the external_uuid field. +func (f *InternalPolicyFilter) WhereExternalUUID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldExternalUUID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *IntegrationFilter) WhereHasOwner() { +func (f *InternalPolicyFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *InternalPolicyFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -30150,336 +31822,336 @@ func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { }))) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *IntegrationFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *InternalPolicyFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *IntegrationFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *InternalPolicyFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSecrets applies a predicate to check if query has an edge secrets. -func (f *IntegrationFilter) WhereHasSecrets() { - f.Where(entql.HasEdge("secrets")) +// WhereHasApprover applies a predicate to check if query has an edge approver. +func (f *InternalPolicyFilter) WhereHasApprover() { + f.Where(entql.HasEdge("approver")) } -// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasApproverWith applies a predicate to check if query has an edge approver with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasApproverWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("approver", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *IntegrationFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasDelegate applies a predicate to check if query has an edge delegate. +func (f *InternalPolicyFilter) WhereHasDelegate() { + f.Where(entql.HasEdge("delegate")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasDelegateWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *IntegrationFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasInternalPolicyKind applies a predicate to check if query has an edge internal_policy_kind. +func (f *InternalPolicyFilter) WhereHasInternalPolicyKind() { + f.Where(entql.HasEdge("internal_policy_kind")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicyKindWith applies a predicate to check if query has an edge internal_policy_kind with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasInternalPolicyKindWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("internal_policy_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFindings applies a predicate to check if query has an edge findings. -func (f *IntegrationFilter) WhereHasFindings() { - f.Where(entql.HasEdge("findings")) +// WhereHasEnvironment applies a predicate to check if query has an edge environment. +func (f *InternalPolicyFilter) WhereHasEnvironment() { + f.Where(entql.HasEdge("environment")) } -// WhereHasFindingsWith applies a predicate to check if query has an edge findings with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasFindingsWith(preds ...predicate.Finding) { - f.Where(entql.HasEdgeWith("findings", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasVulnerabilities applies a predicate to check if query has an edge vulnerabilities. -func (f *IntegrationFilter) WhereHasVulnerabilities() { - f.Where(entql.HasEdge("vulnerabilities")) +// WhereHasScope applies a predicate to check if query has an edge scope. +func (f *InternalPolicyFilter) WhereHasScope() { + f.Where(entql.HasEdge("scope")) } -// WhereHasVulnerabilitiesWith applies a predicate to check if query has an edge vulnerabilities with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasVulnerabilitiesWith(preds ...predicate.Vulnerability) { - f.Where(entql.HasEdgeWith("vulnerabilities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { + f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasReviews applies a predicate to check if query has an edge reviews. -func (f *IntegrationFilter) WhereHasReviews() { - f.Where(entql.HasEdge("reviews")) +// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. +func (f *InternalPolicyFilter) WhereHasControlObjectives() { + f.Where(entql.HasEdge("control_objectives")) } -// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasReviewsWith(preds ...predicate.Review) { - f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRemediations applies a predicate to check if query has an edge remediations. -func (f *IntegrationFilter) WhereHasRemediations() { - f.Where(entql.HasEdge("remediations")) +// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. +func (f *InternalPolicyFilter) WhereHasControlImplementations() { + f.Where(entql.HasEdge("control_implementations")) } -// WhereHasRemediationsWith applies a predicate to check if query has an edge remediations with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasRemediationsWith(preds ...predicate.Remediation) { - f.Where(entql.HasEdgeWith("remediations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { + f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *IntegrationFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *InternalPolicyFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlans applies a predicate to check if query has an edge action_plans. -func (f *IntegrationFilter) WhereHasActionPlans() { - f.Where(entql.HasEdge("action_plans")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *InternalPolicyFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasActionPlansWith applies a predicate to check if query has an edge action_plans with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasActionPlansWith(preds ...predicate.ActionPlan) { - f.Where(entql.HasEdgeWith("action_plans", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *IntegrationFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *InternalPolicyFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryAccounts applies a predicate to check if query has an edge directory_accounts. -func (f *IntegrationFilter) WhereHasDirectoryAccounts() { - f.Where(entql.HasEdge("directory_accounts")) +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *InternalPolicyFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) } -// WhereHasDirectoryAccountsWith applies a predicate to check if query has an edge directory_accounts with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasDirectoryAccountsWith(preds ...predicate.DirectoryAccount) { - f.Where(entql.HasEdgeWith("directory_accounts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryGroups applies a predicate to check if query has an edge directory_groups. -func (f *IntegrationFilter) WhereHasDirectoryGroups() { - f.Where(entql.HasEdge("directory_groups")) +// WhereHasTasks applies a predicate to check if query has an edge tasks. +func (f *InternalPolicyFilter) WhereHasTasks() { + f.Where(entql.HasEdge("tasks")) } -// WhereHasDirectoryGroupsWith applies a predicate to check if query has an edge directory_groups with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasDirectoryGroupsWith(preds ...predicate.DirectoryGroup) { - f.Where(entql.HasEdgeWith("directory_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasTasksWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectoryMemberships applies a predicate to check if query has an edge directory_memberships. -func (f *IntegrationFilter) WhereHasDirectoryMemberships() { - f.Where(entql.HasEdge("directory_memberships")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *InternalPolicyFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasDirectoryMembershipsWith applies a predicate to check if query has an edge directory_memberships with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasDirectoryMembershipsWith(preds ...predicate.DirectoryMembership) { - f.Where(entql.HasEdgeWith("directory_memberships", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDirectorySyncRuns applies a predicate to check if query has an edge directory_sync_runs. -func (f *IntegrationFilter) WhereHasDirectorySyncRuns() { - f.Where(entql.HasEdge("directory_sync_runs")) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *InternalPolicyFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereHasDirectorySyncRunsWith applies a predicate to check if query has an edge directory_sync_runs with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasDirectorySyncRunsWith(preds ...predicate.DirectorySyncRun) { - f.Where(entql.HasEdgeWith("directory_sync_runs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCheckResults applies a predicate to check if query has an edge check_results. -func (f *IntegrationFilter) WhereHasCheckResults() { - f.Where(entql.HasEdge("check_results")) +// WhereHasFile applies a predicate to check if query has an edge file. +func (f *InternalPolicyFilter) WhereHasFile() { + f.Where(entql.HasEdge("file")) } -// WhereHasCheckResultsWith applies a predicate to check if query has an edge check_results with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasCheckResultsWith(preds ...predicate.CheckResult) { - f.Where(entql.HasEdgeWith("check_results", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlatform applies a predicate to check if query has an edge platform. -func (f *IntegrationFilter) WhereHasPlatform() { - f.Where(entql.HasEdge("platform")) +// WhereHasComments applies a predicate to check if query has an edge comments. +func (f *InternalPolicyFilter) WhereHasComments() { + f.Where(entql.HasEdge("comments")) } -// WhereHasPlatformWith applies a predicate to check if query has an edge platform with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasPlatformWith(preds ...predicate.Platform) { - f.Where(entql.HasEdgeWith("platform", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasCommentsWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNotificationTemplates applies a predicate to check if query has an edge notification_templates. -func (f *IntegrationFilter) WhereHasNotificationTemplates() { - f.Where(entql.HasEdge("notification_templates")) +// WhereHasDiscussions applies a predicate to check if query has an edge discussions. +func (f *InternalPolicyFilter) WhereHasDiscussions() { + f.Where(entql.HasEdge("discussions")) } -// WhereHasNotificationTemplatesWith applies a predicate to check if query has an edge notification_templates with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasNotificationTemplatesWith(preds ...predicate.NotificationTemplate) { - f.Where(entql.HasEdgeWith("notification_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDiscussionsWith applies a predicate to check if query has an edge discussions with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasDiscussionsWith(preds ...predicate.Discussion) { + f.Where(entql.HasEdgeWith("discussions", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEmailTemplates applies a predicate to check if query has an edge email_templates. -func (f *IntegrationFilter) WhereHasEmailTemplates() { - f.Where(entql.HasEdge("email_templates")) +// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. +func (f *InternalPolicyFilter) WhereHasWorkflowObjectRefs() { + f.Where(entql.HasEdge("workflow_object_refs")) } -// WhereHasEmailTemplatesWith applies a predicate to check if query has an edge email_templates with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasEmailTemplatesWith(preds ...predicate.EmailTemplate) { - f.Where(entql.HasEdgeWith("email_templates", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { + f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasCampaigns applies a predicate to check if query has an edge campaigns. -func (f *IntegrationFilter) WhereHasCampaigns() { - f.Where(entql.HasEdge("campaigns")) +// WhereHasAssets applies a predicate to check if query has an edge assets. +func (f *InternalPolicyFilter) WhereHasAssets() { + f.Where(entql.HasEdge("assets")) } -// WhereHasCampaignsWith applies a predicate to check if query has an edge campaigns with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasCampaignsWith(preds ...predicate.Campaign) { - f.Where(entql.HasEdgeWith("campaigns", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasAssetsWith(preds ...predicate.Asset) { + f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrationWebhooks applies a predicate to check if query has an edge integration_webhooks. -func (f *IntegrationFilter) WhereHasIntegrationWebhooks() { - f.Where(entql.HasEdge("integration_webhooks")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *InternalPolicyFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasIntegrationWebhooksWith applies a predicate to check if query has an edge integration_webhooks with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasIntegrationWebhooksWith(preds ...predicate.IntegrationWebhook) { - f.Where(entql.HasEdgeWith("integration_webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrationRuns applies a predicate to check if query has an edge integration_runs. -func (f *IntegrationFilter) WhereHasIntegrationRuns() { - f.Where(entql.HasEdge("integration_runs")) +// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. +func (f *InternalPolicyFilter) WhereHasIdentityHolders() { + f.Where(entql.HasEdge("identity_holders")) } -// WhereHasIntegrationRunsWith applies a predicate to check if query has an edge integration_runs with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasIntegrationRunsWith(preds ...predicate.IntegrationRun) { - f.Where(entql.HasEdgeWith("integration_runs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *IntegrationFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereHasReviews applies a predicate to check if query has an edge reviews. +func (f *InternalPolicyFilter) WhereHasReviews() { + f.Where(entql.HasEdge("reviews")) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasReviewsWith(preds ...predicate.Review) { + f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -30487,224 +32159,161 @@ func (f *IntegrationFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { } // addPredicate implements the predicateAdder interface. -func (_q *IntegrationRunQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *InviteQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the IntegrationRunQuery builder. -func (_q *IntegrationRunQuery) Filter() *IntegrationRunFilter { - return &IntegrationRunFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the InviteQuery builder. +func (_q *InviteQuery) Filter() *InviteFilter { + return &InviteFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *IntegrationRunMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *InviteMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the IntegrationRunMutation builder. -func (m *IntegrationRunMutation) Filter() *IntegrationRunFilter { - return &IntegrationRunFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the InviteMutation builder. +func (m *InviteMutation) Filter() *InviteFilter { + return &InviteFilter{config: m.config, predicateAdder: m} } -// IntegrationRunFilter provides a generic filtering capability at runtime for IntegrationRunQuery. -type IntegrationRunFilter struct { +// InviteFilter provides a generic filtering capability at runtime for InviteQuery. +type InviteFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *IntegrationRunFilter) Where(p entql.P) { +func (f *InviteFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[39].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[42].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *IntegrationRunFilter) WhereID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldID)) +func (f *InviteFilter) WhereID(p entql.StringP) { + f.Where(p.Field(invite.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IntegrationRunFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(integrationrun.FieldCreatedAt)) +func (f *InviteFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IntegrationRunFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(integrationrun.FieldUpdatedAt)) +func (f *InviteFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IntegrationRunFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldCreatedBy)) +func (f *InviteFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IntegrationRunFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldUpdatedBy)) +func (f *InviteFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IntegrationRunFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(integrationrun.FieldDeletedAt)) +func (f *InviteFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IntegrationRunFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IntegrationRunFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldOwnerID)) -} - -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *IntegrationRunFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldIntegrationID)) -} - -// WhereOperationName applies the entql string predicate on the operation_name field. -func (f *IntegrationRunFilter) WhereOperationName(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldOperationName)) -} - -// WhereOperationKind applies the entql string predicate on the operation_kind field. -func (f *IntegrationRunFilter) WhereOperationKind(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldOperationKind)) -} - -// WhereRunType applies the entql string predicate on the run_type field. -func (f *IntegrationRunFilter) WhereRunType(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldRunType)) -} - -// WhereOperationConfig applies the entql json.RawMessage predicate on the operation_config field. -func (f *IntegrationRunFilter) WhereOperationConfig(p entql.BytesP) { - f.Where(p.Field(integrationrun.FieldOperationConfig)) -} - -// WhereMappingVersion applies the entql string predicate on the mapping_version field. -func (f *IntegrationRunFilter) WhereMappingVersion(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldMappingVersion)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *IntegrationRunFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldStatus)) -} - -// WhereStartedAt applies the entql time.Time predicate on the started_at field. -func (f *IntegrationRunFilter) WhereStartedAt(p entql.TimeP) { - f.Where(p.Field(integrationrun.FieldStartedAt)) -} - -// WhereFinishedAt applies the entql time.Time predicate on the finished_at field. -func (f *IntegrationRunFilter) WhereFinishedAt(p entql.TimeP) { - f.Where(p.Field(integrationrun.FieldFinishedAt)) -} - -// WhereDurationMs applies the entql int predicate on the duration_ms field. -func (f *IntegrationRunFilter) WhereDurationMs(p entql.IntP) { - f.Where(p.Field(integrationrun.FieldDurationMs)) +func (f *InviteFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldDeletedBy)) } -// WhereRequestFileID applies the entql string predicate on the request_file_id field. -func (f *IntegrationRunFilter) WhereRequestFileID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldRequestFileID)) +// WhereRequestorID applies the entql string predicate on the requestor_id field. +func (f *InviteFilter) WhereRequestorID(p entql.StringP) { + f.Where(p.Field(invite.FieldRequestorID)) } -// WhereResponseFileID applies the entql string predicate on the response_file_id field. -func (f *IntegrationRunFilter) WhereResponseFileID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldResponseFileID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *InviteFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(invite.FieldOwnerID)) } -// WhereEventID applies the entql string predicate on the event_id field. -func (f *IntegrationRunFilter) WhereEventID(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldEventID)) +// WhereToken applies the entql string predicate on the token field. +func (f *InviteFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(invite.FieldToken)) } -// WhereSummary applies the entql string predicate on the summary field. -func (f *IntegrationRunFilter) WhereSummary(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldSummary)) +// WhereExpires applies the entql time.Time predicate on the expires field. +func (f *InviteFilter) WhereExpires(p entql.TimeP) { + f.Where(p.Field(invite.FieldExpires)) } -// WhereError applies the entql string predicate on the error field. -func (f *IntegrationRunFilter) WhereError(p entql.StringP) { - f.Where(p.Field(integrationrun.FieldError)) +// WhereRecipient applies the entql string predicate on the recipient field. +func (f *InviteFilter) WhereRecipient(p entql.StringP) { + f.Where(p.Field(invite.FieldRecipient)) } -// WhereMetrics applies the entql json.RawMessage predicate on the metrics field. -func (f *IntegrationRunFilter) WhereMetrics(p entql.BytesP) { - f.Where(p.Field(integrationrun.FieldMetrics)) +// WhereStatus applies the entql string predicate on the status field. +func (f *InviteFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(invite.FieldStatus)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *IntegrationRunFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereRole applies the entql string predicate on the role field. +func (f *InviteFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(invite.FieldRole)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *IntegrationRunFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSendAttempts applies the entql int predicate on the send_attempts field. +func (f *InviteFilter) WhereSendAttempts(p entql.IntP) { + f.Where(p.Field(invite.FieldSendAttempts)) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *IntegrationRunFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *InviteFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(invite.FieldSecret)) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *IntegrationRunFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnershipTransfer applies the entql bool predicate on the ownership_transfer field. +func (f *InviteFilter) WhereOwnershipTransfer(p entql.BoolP) { + f.Where(p.Field(invite.FieldOwnershipTransfer)) } -// WhereHasRequestFile applies a predicate to check if query has an edge request_file. -func (f *IntegrationRunFilter) WhereHasRequestFile() { - f.Where(entql.HasEdge("request_file")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *InviteFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasRequestFileWith applies a predicate to check if query has an edge request_file with a given conditions (other predicates). -func (f *IntegrationRunFilter) WhereHasRequestFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("request_file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *InviteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasResponseFile applies a predicate to check if query has an edge response_file. -func (f *IntegrationRunFilter) WhereHasResponseFile() { - f.Where(entql.HasEdge("response_file")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *InviteFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasResponseFileWith applies a predicate to check if query has an edge response_file with a given conditions (other predicates). -func (f *IntegrationRunFilter) WhereHasResponseFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("response_file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *InviteFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvent applies a predicate to check if query has an edge event. -func (f *IntegrationRunFilter) WhereHasEvent() { - f.Where(entql.HasEdge("event")) +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *InviteFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) } -// WhereHasEventWith applies a predicate to check if query has an edge event with a given conditions (other predicates). -func (f *IntegrationRunFilter) WhereHasEventWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("event", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *InviteFilter) WhereHasGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -30712,157 +32321,122 @@ func (f *IntegrationRunFilter) WhereHasEventWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (_q *IntegrationWebhookQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *JobResultQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the IntegrationWebhookQuery builder. -func (_q *IntegrationWebhookQuery) Filter() *IntegrationWebhookFilter { - return &IntegrationWebhookFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the JobResultQuery builder. +func (_q *JobResultQuery) Filter() *JobResultFilter { + return &JobResultFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *IntegrationWebhookMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *JobResultMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the IntegrationWebhookMutation builder. -func (m *IntegrationWebhookMutation) Filter() *IntegrationWebhookFilter { - return &IntegrationWebhookFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the JobResultMutation builder. +func (m *JobResultMutation) Filter() *JobResultFilter { + return &JobResultFilter{config: m.config, predicateAdder: m} } -// IntegrationWebhookFilter provides a generic filtering capability at runtime for IntegrationWebhookQuery. -type IntegrationWebhookFilter struct { +// JobResultFilter provides a generic filtering capability at runtime for JobResultQuery. +type JobResultFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *IntegrationWebhookFilter) Where(p entql.P) { +func (f *JobResultFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[40].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[43].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *IntegrationWebhookFilter) WhereID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldID)) +func (f *JobResultFilter) WhereID(p entql.StringP) { + f.Where(p.Field(jobresult.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IntegrationWebhookFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(integrationwebhook.FieldCreatedAt)) +func (f *JobResultFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(jobresult.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IntegrationWebhookFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(integrationwebhook.FieldUpdatedAt)) +func (f *JobResultFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(jobresult.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IntegrationWebhookFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldCreatedBy)) +func (f *JobResultFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(jobresult.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IntegrationWebhookFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldUpdatedBy)) +func (f *JobResultFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(jobresult.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IntegrationWebhookFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(integrationwebhook.FieldDeletedAt)) +func (f *JobResultFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(jobresult.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IntegrationWebhookFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldDeletedBy)) +func (f *JobResultFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(jobresult.FieldDeletedBy)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IntegrationWebhookFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldOwnerID)) -} - -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *IntegrationWebhookFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldIntegrationID)) -} - -// WhereProvider applies the entql string predicate on the provider field. -func (f *IntegrationWebhookFilter) WhereProvider(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldProvider)) +func (f *JobResultFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(jobresult.FieldOwnerID)) } -// WhereName applies the entql string predicate on the name field. -func (f *IntegrationWebhookFilter) WhereName(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldName)) +// WhereScheduledJobID applies the entql string predicate on the scheduled_job_id field. +func (f *JobResultFilter) WhereScheduledJobID(p entql.StringP) { + f.Where(p.Field(jobresult.FieldScheduledJobID)) } // WhereStatus applies the entql string predicate on the status field. -func (f *IntegrationWebhookFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldStatus)) -} - -// WhereEndpointID applies the entql string predicate on the endpoint_id field. -func (f *IntegrationWebhookFilter) WhereEndpointID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldEndpointID)) -} - -// WhereEndpointURL applies the entql string predicate on the endpoint_url field. -func (f *IntegrationWebhookFilter) WhereEndpointURL(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldEndpointURL)) -} - -// WhereSecretToken applies the entql string predicate on the secret_token field. -func (f *IntegrationWebhookFilter) WhereSecretToken(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldSecretToken)) -} - -// WhereAllowedEvents applies the entql json.RawMessage predicate on the allowed_events field. -func (f *IntegrationWebhookFilter) WhereAllowedEvents(p entql.BytesP) { - f.Where(p.Field(integrationwebhook.FieldAllowedEvents)) -} - -// WhereLastDeliveryID applies the entql string predicate on the last_delivery_id field. -func (f *IntegrationWebhookFilter) WhereLastDeliveryID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldLastDeliveryID)) +func (f *JobResultFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(jobresult.FieldStatus)) } -// WhereLastDeliveryAt applies the entql time.Time predicate on the last_delivery_at field. -func (f *IntegrationWebhookFilter) WhereLastDeliveryAt(p entql.TimeP) { - f.Where(p.Field(integrationwebhook.FieldLastDeliveryAt)) +// WhereExitCode applies the entql int predicate on the exit_code field. +func (f *JobResultFilter) WhereExitCode(p entql.IntP) { + f.Where(p.Field(jobresult.FieldExitCode)) } -// WhereLastDeliveryStatus applies the entql string predicate on the last_delivery_status field. -func (f *IntegrationWebhookFilter) WhereLastDeliveryStatus(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldLastDeliveryStatus)) +// WhereFinishedAt applies the entql time.Time predicate on the finished_at field. +func (f *JobResultFilter) WhereFinishedAt(p entql.TimeP) { + f.Where(p.Field(jobresult.FieldFinishedAt)) } -// WhereLastDeliveryError applies the entql string predicate on the last_delivery_error field. -func (f *IntegrationWebhookFilter) WhereLastDeliveryError(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldLastDeliveryError)) +// WhereStartedAt applies the entql time.Time predicate on the started_at field. +func (f *JobResultFilter) WhereStartedAt(p entql.TimeP) { + f.Where(p.Field(jobresult.FieldStartedAt)) } -// WhereExternalEventID applies the entql string predicate on the external_event_id field. -func (f *IntegrationWebhookFilter) WhereExternalEventID(p entql.StringP) { - f.Where(p.Field(integrationwebhook.FieldExternalEventID)) +// WhereFileID applies the entql string predicate on the file_id field. +func (f *JobResultFilter) WhereFileID(p entql.StringP) { + f.Where(p.Field(jobresult.FieldFileID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *IntegrationWebhookFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(integrationwebhook.FieldMetadata)) +// WhereLog applies the entql string predicate on the log field. +func (f *JobResultFilter) WhereLog(p entql.StringP) { + f.Where(p.Field(jobresult.FieldLog)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *IntegrationWebhookFilter) WhereHasOwner() { +func (f *JobResultFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *IntegrationWebhookFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *JobResultFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -30870,14 +32444,28 @@ func (f *IntegrationWebhookFilter) WhereHasOwnerWith(preds ...predicate.Organiza }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *IntegrationWebhookFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasScheduledJob applies a predicate to check if query has an edge scheduled_job. +func (f *JobResultFilter) WhereHasScheduledJob() { + f.Where(entql.HasEdge("scheduled_job")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *IntegrationWebhookFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScheduledJobWith applies a predicate to check if query has an edge scheduled_job with a given conditions (other predicates). +func (f *JobResultFilter) WhereHasScheduledJobWith(preds ...predicate.ScheduledJob) { + f.Where(entql.HasEdgeWith("scheduled_job", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasFile applies a predicate to check if query has an edge file. +func (f *JobResultFilter) WhereHasFile() { + f.Where(entql.HasEdge("file")) +} + +// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). +func (f *JobResultFilter) WhereHasFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -30885,252 +32473,142 @@ func (f *IntegrationWebhookFilter) WhereHasIntegrationWith(preds ...predicate.In } // addPredicate implements the predicateAdder interface. -func (_q *InternalPolicyQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *JobRunnerQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } - -// Filter returns a Filter implementation to apply filters on the InternalPolicyQuery builder. -func (_q *InternalPolicyQuery) Filter() *InternalPolicyFilter { - return &InternalPolicyFilter{config: _q.config, predicateAdder: _q} + +// Filter returns a Filter implementation to apply filters on the JobRunnerQuery builder. +func (_q *JobRunnerQuery) Filter() *JobRunnerFilter { + return &JobRunnerFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *InternalPolicyMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *JobRunnerMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the InternalPolicyMutation builder. -func (m *InternalPolicyMutation) Filter() *InternalPolicyFilter { - return &InternalPolicyFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the JobRunnerMutation builder. +func (m *JobRunnerMutation) Filter() *JobRunnerFilter { + return &JobRunnerFilter{config: m.config, predicateAdder: m} } -// InternalPolicyFilter provides a generic filtering capability at runtime for InternalPolicyQuery. -type InternalPolicyFilter struct { +// JobRunnerFilter provides a generic filtering capability at runtime for JobRunnerQuery. +type JobRunnerFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *InternalPolicyFilter) Where(p entql.P) { +func (f *JobRunnerFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[41].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[44].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *InternalPolicyFilter) WhereID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldID)) +func (f *JobRunnerFilter) WhereID(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *InternalPolicyFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(internalpolicy.FieldCreatedAt)) +func (f *JobRunnerFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunner.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *InternalPolicyFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(internalpolicy.FieldUpdatedAt)) +func (f *JobRunnerFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunner.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *InternalPolicyFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldCreatedBy)) +func (f *JobRunnerFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *InternalPolicyFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldUpdatedBy)) +func (f *JobRunnerFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *InternalPolicyFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(internalpolicy.FieldDeletedAt)) +func (f *JobRunnerFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(jobrunner.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *InternalPolicyFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldDeletedBy)) +func (f *JobRunnerFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldDeletedBy)) } // WhereDisplayID applies the entql string predicate on the display_id field. -func (f *InternalPolicyFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldDisplayID)) +func (f *JobRunnerFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *InternalPolicyFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldTags)) -} - -// WhereRevision applies the entql string predicate on the revision field. -func (f *InternalPolicyFilter) WhereRevision(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldRevision)) +func (f *JobRunnerFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(jobrunner.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *InternalPolicyFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldOwnerID)) +func (f *JobRunnerFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldOwnerID)) } // WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *InternalPolicyFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(internalpolicy.FieldSystemOwned)) +func (f *JobRunnerFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(jobrunner.FieldSystemOwned)) } // WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *InternalPolicyFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldInternalNotes)) +func (f *JobRunnerFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldInternalNotes)) } // WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *InternalPolicyFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldSystemInternalID)) +func (f *JobRunnerFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldSystemInternalID)) } // WhereName applies the entql string predicate on the name field. -func (f *InternalPolicyFilter) WhereName(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldName)) +func (f *JobRunnerFilter) WhereName(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldName)) } // WhereStatus applies the entql string predicate on the status field. -func (f *InternalPolicyFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldStatus)) -} - -// WhereManagementMode applies the entql string predicate on the management_mode field. -func (f *InternalPolicyFilter) WhereManagementMode(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldManagementMode)) -} - -// WhereDetails applies the entql string predicate on the details field. -func (f *InternalPolicyFilter) WhereDetails(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldDetails)) -} - -// WhereDetailsJSON applies the entql json.RawMessage predicate on the details_json field. -func (f *InternalPolicyFilter) WhereDetailsJSON(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldDetailsJSON)) -} - -// WhereApprovalRequired applies the entql bool predicate on the approval_required field. -func (f *InternalPolicyFilter) WhereApprovalRequired(p entql.BoolP) { - f.Where(p.Field(internalpolicy.FieldApprovalRequired)) -} - -// WhereReviewDue applies the entql time.Time predicate on the review_due field. -func (f *InternalPolicyFilter) WhereReviewDue(p entql.TimeP) { - f.Where(p.Field(internalpolicy.FieldReviewDue)) -} - -// WhereReviewFrequency applies the entql string predicate on the review_frequency field. -func (f *InternalPolicyFilter) WhereReviewFrequency(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldReviewFrequency)) -} - -// WhereApproverID applies the entql string predicate on the approver_id field. -func (f *InternalPolicyFilter) WhereApproverID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldApproverID)) -} - -// WhereDelegateID applies the entql string predicate on the delegate_id field. -func (f *InternalPolicyFilter) WhereDelegateID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldDelegateID)) -} - -// WhereSummary applies the entql string predicate on the summary field. -func (f *InternalPolicyFilter) WhereSummary(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldSummary)) -} - -// WhereTagSuggestions applies the entql json.RawMessage predicate on the tag_suggestions field. -func (f *InternalPolicyFilter) WhereTagSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldTagSuggestions)) -} - -// WhereDismissedTagSuggestions applies the entql json.RawMessage predicate on the dismissed_tag_suggestions field. -func (f *InternalPolicyFilter) WhereDismissedTagSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldDismissedTagSuggestions)) -} - -// WhereControlSuggestions applies the entql json.RawMessage predicate on the control_suggestions field. -func (f *InternalPolicyFilter) WhereControlSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldControlSuggestions)) -} - -// WhereDismissedControlSuggestions applies the entql json.RawMessage predicate on the dismissed_control_suggestions field. -func (f *InternalPolicyFilter) WhereDismissedControlSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldDismissedControlSuggestions)) -} - -// WhereImprovementSuggestions applies the entql json.RawMessage predicate on the improvement_suggestions field. -func (f *InternalPolicyFilter) WhereImprovementSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldImprovementSuggestions)) -} - -// WhereDismissedImprovementSuggestions applies the entql json.RawMessage predicate on the dismissed_improvement_suggestions field. -func (f *InternalPolicyFilter) WhereDismissedImprovementSuggestions(p entql.BytesP) { - f.Where(p.Field(internalpolicy.FieldDismissedImprovementSuggestions)) -} - -// WhereURL applies the entql string predicate on the url field. -func (f *InternalPolicyFilter) WhereURL(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldURL)) -} - -// WhereFileID applies the entql string predicate on the file_id field. -func (f *InternalPolicyFilter) WhereFileID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldFileID)) -} - -// WhereInternalPolicyKindName applies the entql string predicate on the internal_policy_kind_name field. -func (f *InternalPolicyFilter) WhereInternalPolicyKindName(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldInternalPolicyKindName)) -} - -// WhereInternalPolicyKindID applies the entql string predicate on the internal_policy_kind_id field. -func (f *InternalPolicyFilter) WhereInternalPolicyKindID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldInternalPolicyKindID)) -} - -// WhereEnvironmentName applies the entql string predicate on the environment_name field. -func (f *InternalPolicyFilter) WhereEnvironmentName(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldEnvironmentName)) -} - -// WhereEnvironmentID applies the entql string predicate on the environment_id field. -func (f *InternalPolicyFilter) WhereEnvironmentID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldEnvironmentID)) +func (f *JobRunnerFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldStatus)) } -// WhereScopeName applies the entql string predicate on the scope_name field. -func (f *InternalPolicyFilter) WhereScopeName(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldScopeName)) +// WhereIPAddress applies the entql string predicate on the ip_address field. +func (f *JobRunnerFilter) WhereIPAddress(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldIPAddress)) } -// WhereScopeID applies the entql string predicate on the scope_id field. -func (f *InternalPolicyFilter) WhereScopeID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldScopeID)) +// WhereLastSeen applies the entql time.Time predicate on the last_seen field. +func (f *JobRunnerFilter) WhereLastSeen(p entql.TimeP) { + f.Where(p.Field(jobrunner.FieldLastSeen)) } -// WhereWorkflowEligibleMarker applies the entql bool predicate on the workflow_eligible_marker field. -func (f *InternalPolicyFilter) WhereWorkflowEligibleMarker(p entql.BoolP) { - f.Where(p.Field(internalpolicy.FieldWorkflowEligibleMarker)) +// WhereVersion applies the entql string predicate on the version field. +func (f *JobRunnerFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldVersion)) } -// WhereExternalUUID applies the entql string predicate on the external_uuid field. -func (f *InternalPolicyFilter) WhereExternalUUID(p entql.StringP) { - f.Where(p.Field(internalpolicy.FieldExternalUUID)) +// WhereOs applies the entql string predicate on the os field. +func (f *JobRunnerFilter) WhereOs(p entql.StringP) { + f.Where(p.Field(jobrunner.FieldOs)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *InternalPolicyFilter) WhereHasOwner() { +func (f *JobRunnerFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *JobRunnerFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -31138,336 +32616,285 @@ func (f *InternalPolicyFilter) WhereHasOwnerWith(preds ...predicate.Organization }))) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *InternalPolicyFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereHasJobRunnerTokens applies a predicate to check if query has an edge job_runner_tokens. +func (f *JobRunnerFilter) WhereHasJobRunnerTokens() { + f.Where(entql.HasEdge("job_runner_tokens")) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnerTokensWith applies a predicate to check if query has an edge job_runner_tokens with a given conditions (other predicates). +func (f *JobRunnerFilter) WhereHasJobRunnerTokensWith(preds ...predicate.JobRunnerToken) { + f.Where(entql.HasEdgeWith("job_runner_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *InternalPolicyFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// addPredicate implements the predicateAdder interface. +func (_q *JobRunnerRegistrationTokenQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the JobRunnerRegistrationTokenQuery builder. +func (_q *JobRunnerRegistrationTokenQuery) Filter() *JobRunnerRegistrationTokenFilter { + return &JobRunnerRegistrationTokenFilter{config: _q.config, predicateAdder: _q} } -// WhereHasApprover applies a predicate to check if query has an edge approver. -func (f *InternalPolicyFilter) WhereHasApprover() { - f.Where(entql.HasEdge("approver")) +// addPredicate implements the predicateAdder interface. +func (m *JobRunnerRegistrationTokenMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the JobRunnerRegistrationTokenMutation builder. +func (m *JobRunnerRegistrationTokenMutation) Filter() *JobRunnerRegistrationTokenFilter { + return &JobRunnerRegistrationTokenFilter{config: m.config, predicateAdder: m} } -// WhereHasApproverWith applies a predicate to check if query has an edge approver with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasApproverWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("approver", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// JobRunnerRegistrationTokenFilter provides a generic filtering capability at runtime for JobRunnerRegistrationTokenQuery. +type JobRunnerRegistrationTokenFilter struct { + predicateAdder + config } -// WhereHasDelegate applies a predicate to check if query has an edge delegate. -func (f *InternalPolicyFilter) WhereHasDelegate() { - f.Where(entql.HasEdge("delegate")) +// Where applies the entql predicate on the query filter. +func (f *JobRunnerRegistrationTokenFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[45].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WhereHasDelegateWith applies a predicate to check if query has an edge delegate with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasDelegateWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("delegate", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereID applies the entql string predicate on the id field. +func (f *JobRunnerRegistrationTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldID)) } -// WhereHasInternalPolicyKind applies a predicate to check if query has an edge internal_policy_kind. -func (f *InternalPolicyFilter) WhereHasInternalPolicyKind() { - f.Where(entql.HasEdge("internal_policy_kind")) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *JobRunnerRegistrationTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldCreatedAt)) } -// WhereHasInternalPolicyKindWith applies a predicate to check if query has an edge internal_policy_kind with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasInternalPolicyKindWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("internal_policy_kind", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *JobRunnerRegistrationTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldUpdatedAt)) } -// WhereHasEnvironment applies a predicate to check if query has an edge environment. -func (f *InternalPolicyFilter) WhereHasEnvironment() { - f.Where(entql.HasEdge("environment")) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *JobRunnerRegistrationTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldCreatedBy)) } -// WhereHasEnvironmentWith applies a predicate to check if query has an edge environment with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasEnvironmentWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("environment", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *JobRunnerRegistrationTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldUpdatedBy)) } -// WhereHasScope applies a predicate to check if query has an edge scope. -func (f *InternalPolicyFilter) WhereHasScope() { - f.Where(entql.HasEdge("scope")) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *JobRunnerRegistrationTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldDeletedAt)) } -// WhereHasScopeWith applies a predicate to check if query has an edge scope with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasScopeWith(preds ...predicate.CustomTypeEnum) { - f.Where(entql.HasEdgeWith("scope", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *JobRunnerRegistrationTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldDeletedBy)) } -// WhereHasControlObjectives applies a predicate to check if query has an edge control_objectives. -func (f *InternalPolicyFilter) WhereHasControlObjectives() { - f.Where(entql.HasEdge("control_objectives")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *JobRunnerRegistrationTokenFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldTags)) } -// WhereHasControlObjectivesWith applies a predicate to check if query has an edge control_objectives with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasControlObjectivesWith(preds ...predicate.ControlObjective) { - f.Where(entql.HasEdgeWith("control_objectives", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *JobRunnerRegistrationTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldOwnerID)) } -// WhereHasControlImplementations applies a predicate to check if query has an edge control_implementations. -func (f *InternalPolicyFilter) WhereHasControlImplementations() { - f.Where(entql.HasEdge("control_implementations")) +// WhereToken applies the entql string predicate on the token field. +func (f *JobRunnerRegistrationTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldToken)) } -// WhereHasControlImplementationsWith applies a predicate to check if query has an edge control_implementations with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasControlImplementationsWith(preds ...predicate.ControlImplementation) { - f.Where(entql.HasEdgeWith("control_implementations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *JobRunnerRegistrationTokenFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldExpiresAt)) } -// WhereHasControls applies a predicate to check if query has an edge controls. -func (f *InternalPolicyFilter) WhereHasControls() { - f.Where(entql.HasEdge("controls")) +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *JobRunnerRegistrationTokenFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldLastUsedAt)) } -// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereJobRunnerID applies the entql string predicate on the job_runner_id field. +func (f *JobRunnerRegistrationTokenFilter) WhereJobRunnerID(p entql.StringP) { + f.Where(p.Field(jobrunnerregistrationtoken.FieldJobRunnerID)) } -// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. -func (f *InternalPolicyFilter) WhereHasSubcontrols() { - f.Where(entql.HasEdge("subcontrols")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *JobRunnerRegistrationTokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *JobRunnerRegistrationTokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedures applies a predicate to check if query has an edge procedures. -func (f *InternalPolicyFilter) WhereHasProcedures() { - f.Where(entql.HasEdge("procedures")) +// WhereHasJobRunner applies a predicate to check if query has an edge job_runner. +func (f *JobRunnerRegistrationTokenFilter) WhereHasJobRunner() { + f.Where(entql.HasEdge("job_runner")) } -// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnerWith applies a predicate to check if query has an edge job_runner with a given conditions (other predicates). +func (f *JobRunnerRegistrationTokenFilter) WhereHasJobRunnerWith(preds ...predicate.JobRunner) { + f.Where(entql.HasEdgeWith("job_runner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNarratives applies a predicate to check if query has an edge narratives. -func (f *InternalPolicyFilter) WhereHasNarratives() { - f.Where(entql.HasEdge("narratives")) +// addPredicate implements the predicateAdder interface. +func (_q *JobRunnerTokenQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { - f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the JobRunnerTokenQuery builder. +func (_q *JobRunnerTokenQuery) Filter() *JobRunnerTokenFilter { + return &JobRunnerTokenFilter{config: _q.config, predicateAdder: _q} } -// WhereHasTasks applies a predicate to check if query has an edge tasks. -func (f *InternalPolicyFilter) WhereHasTasks() { - f.Where(entql.HasEdge("tasks")) +// addPredicate implements the predicateAdder interface. +func (m *JobRunnerTokenMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasTasksWith applies a predicate to check if query has an edge tasks with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasTasksWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("tasks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the JobRunnerTokenMutation builder. +func (m *JobRunnerTokenMutation) Filter() *JobRunnerTokenFilter { + return &JobRunnerTokenFilter{config: m.config, predicateAdder: m} } -// WhereHasRisks applies a predicate to check if query has an edge risks. -func (f *InternalPolicyFilter) WhereHasRisks() { - f.Where(entql.HasEdge("risks")) +// JobRunnerTokenFilter provides a generic filtering capability at runtime for JobRunnerTokenQuery. +type JobRunnerTokenFilter struct { + predicateAdder + config } -// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasRisksWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *JobRunnerTokenFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[46].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *InternalPolicyFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// WhereID applies the entql string predicate on the id field. +func (f *JobRunnerTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldID)) } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *JobRunnerTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldCreatedAt)) } -// WhereHasFile applies a predicate to check if query has an edge file. -func (f *InternalPolicyFilter) WhereHasFile() { - f.Where(entql.HasEdge("file")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *JobRunnerTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldUpdatedAt)) } -// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *JobRunnerTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldCreatedBy)) } -// WhereHasComments applies a predicate to check if query has an edge comments. -func (f *InternalPolicyFilter) WhereHasComments() { - f.Where(entql.HasEdge("comments")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *JobRunnerTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldUpdatedBy)) } -// WhereHasCommentsWith applies a predicate to check if query has an edge comments with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasCommentsWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("comments", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *JobRunnerTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *JobRunnerTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldDeletedBy)) } -// WhereHasDiscussions applies a predicate to check if query has an edge discussions. -func (f *InternalPolicyFilter) WhereHasDiscussions() { - f.Where(entql.HasEdge("discussions")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *JobRunnerTokenFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(jobrunnertoken.FieldTags)) } -// WhereHasDiscussionsWith applies a predicate to check if query has an edge discussions with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasDiscussionsWith(preds ...predicate.Discussion) { - f.Where(entql.HasEdgeWith("discussions", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *JobRunnerTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldOwnerID)) } -// WhereHasWorkflowObjectRefs applies a predicate to check if query has an edge workflow_object_refs. -func (f *InternalPolicyFilter) WhereHasWorkflowObjectRefs() { - f.Where(entql.HasEdge("workflow_object_refs")) +// WhereToken applies the entql string predicate on the token field. +func (f *JobRunnerTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldToken)) } -// WhereHasWorkflowObjectRefsWith applies a predicate to check if query has an edge workflow_object_refs with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasWorkflowObjectRefsWith(preds ...predicate.WorkflowObjectRef) { - f.Where(entql.HasEdgeWith("workflow_object_refs", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *JobRunnerTokenFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldExpiresAt)) } -// WhereHasAssets applies a predicate to check if query has an edge assets. -func (f *InternalPolicyFilter) WhereHasAssets() { - f.Where(entql.HasEdge("assets")) +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *JobRunnerTokenFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldLastUsedAt)) } -// WhereHasAssetsWith applies a predicate to check if query has an edge assets with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasAssetsWith(preds ...predicate.Asset) { - f.Where(entql.HasEdgeWith("assets", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIsActive applies the entql bool predicate on the is_active field. +func (f *JobRunnerTokenFilter) WhereIsActive(p entql.BoolP) { + f.Where(p.Field(jobrunnertoken.FieldIsActive)) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *InternalPolicyFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereRevokedReason applies the entql string predicate on the revoked_reason field. +func (f *JobRunnerTokenFilter) WhereRevokedReason(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldRevokedReason)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereRevokedBy applies the entql string predicate on the revoked_by field. +func (f *JobRunnerTokenFilter) WhereRevokedBy(p entql.StringP) { + f.Where(p.Field(jobrunnertoken.FieldRevokedBy)) } -// WhereHasIdentityHolders applies a predicate to check if query has an edge identity_holders. -func (f *InternalPolicyFilter) WhereHasIdentityHolders() { - f.Where(entql.HasEdge("identity_holders")) +// WhereRevokedAt applies the entql time.Time predicate on the revoked_at field. +func (f *JobRunnerTokenFilter) WhereRevokedAt(p entql.TimeP) { + f.Where(p.Field(jobrunnertoken.FieldRevokedAt)) } -// WhereHasIdentityHoldersWith applies a predicate to check if query has an edge identity_holders with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasIdentityHoldersWith(preds ...predicate.IdentityHolder) { - f.Where(entql.HasEdgeWith("identity_holders", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *JobRunnerTokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *JobRunnerTokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasReviews applies a predicate to check if query has an edge reviews. -func (f *InternalPolicyFilter) WhereHasReviews() { - f.Where(entql.HasEdge("reviews")) +// WhereHasJobRunners applies a predicate to check if query has an edge job_runners. +func (f *JobRunnerTokenFilter) WhereHasJobRunners() { + f.Where(entql.HasEdge("job_runners")) } -// WhereHasReviewsWith applies a predicate to check if query has an edge reviews with a given conditions (other predicates). -func (f *InternalPolicyFilter) WhereHasReviewsWith(preds ...predicate.Review) { - f.Where(entql.HasEdgeWith("reviews", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnersWith applies a predicate to check if query has an edge job_runners with a given conditions (other predicates). +func (f *JobRunnerTokenFilter) WhereHasJobRunnersWith(preds ...predicate.JobRunner) { + f.Where(entql.HasEdgeWith("job_runners", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -31475,161 +32902,162 @@ func (f *InternalPolicyFilter) WhereHasReviewsWith(preds ...predicate.Review) { } // addPredicate implements the predicateAdder interface. -func (_q *InviteQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *JobTemplateQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the InviteQuery builder. -func (_q *InviteQuery) Filter() *InviteFilter { - return &InviteFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the JobTemplateQuery builder. +func (_q *JobTemplateQuery) Filter() *JobTemplateFilter { + return &JobTemplateFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *InviteMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *JobTemplateMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the InviteMutation builder. -func (m *InviteMutation) Filter() *InviteFilter { - return &InviteFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the JobTemplateMutation builder. +func (m *JobTemplateMutation) Filter() *JobTemplateFilter { + return &JobTemplateFilter{config: m.config, predicateAdder: m} } -// InviteFilter provides a generic filtering capability at runtime for InviteQuery. -type InviteFilter struct { +// JobTemplateFilter provides a generic filtering capability at runtime for JobTemplateQuery. +type JobTemplateFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *InviteFilter) Where(p entql.P) { +func (f *JobTemplateFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[42].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[47].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *InviteFilter) WhereID(p entql.StringP) { - f.Where(p.Field(invite.FieldID)) +func (f *JobTemplateFilter) WhereID(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *InviteFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldCreatedAt)) +func (f *JobTemplateFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(jobtemplate.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *InviteFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldUpdatedAt)) +func (f *JobTemplateFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(jobtemplate.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *InviteFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldCreatedBy)) +func (f *JobTemplateFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *InviteFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldUpdatedBy)) +func (f *JobTemplateFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *InviteFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldDeletedAt)) +func (f *JobTemplateFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(jobtemplate.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *InviteFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldDeletedBy)) +func (f *JobTemplateFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldDeletedBy)) } -// WhereRequestorID applies the entql string predicate on the requestor_id field. -func (f *InviteFilter) WhereRequestorID(p entql.StringP) { - f.Where(p.Field(invite.FieldRequestorID)) +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *JobTemplateFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *JobTemplateFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(jobtemplate.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *InviteFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(invite.FieldOwnerID)) +func (f *JobTemplateFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldOwnerID)) } -// WhereToken applies the entql string predicate on the token field. -func (f *InviteFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(invite.FieldToken)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *JobTemplateFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(jobtemplate.FieldSystemOwned)) } -// WhereExpires applies the entql time.Time predicate on the expires field. -func (f *InviteFilter) WhereExpires(p entql.TimeP) { - f.Where(p.Field(invite.FieldExpires)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *JobTemplateFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldInternalNotes)) } -// WhereRecipient applies the entql string predicate on the recipient field. -func (f *InviteFilter) WhereRecipient(p entql.StringP) { - f.Where(p.Field(invite.FieldRecipient)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *JobTemplateFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldSystemInternalID)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *InviteFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(invite.FieldStatus)) +// WhereTitle applies the entql string predicate on the title field. +func (f *JobTemplateFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldTitle)) } -// WhereRole applies the entql string predicate on the role field. -func (f *InviteFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(invite.FieldRole)) +// WhereDescription applies the entql string predicate on the description field. +func (f *JobTemplateFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldDescription)) } -// WhereSendAttempts applies the entql int predicate on the send_attempts field. -func (f *InviteFilter) WhereSendAttempts(p entql.IntP) { - f.Where(p.Field(invite.FieldSendAttempts)) +// WherePlatform applies the entql string predicate on the platform field. +func (f *JobTemplateFilter) WherePlatform(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldPlatform)) } -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *InviteFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(invite.FieldSecret)) +// WhereWindmillPath applies the entql string predicate on the windmill_path field. +func (f *JobTemplateFilter) WhereWindmillPath(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldWindmillPath)) } -// WhereOwnershipTransfer applies the entql bool predicate on the ownership_transfer field. -func (f *InviteFilter) WhereOwnershipTransfer(p entql.BoolP) { - f.Where(p.Field(invite.FieldOwnershipTransfer)) +// WhereDownloadURL applies the entql string predicate on the download_url field. +func (f *JobTemplateFilter) WhereDownloadURL(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldDownloadURL)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *InviteFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereConfiguration applies the entql json.RawMessage predicate on the configuration field. +func (f *JobTemplateFilter) WhereConfiguration(p entql.BytesP) { + f.Where(p.Field(jobtemplate.FieldConfiguration)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *InviteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCron applies the entql string predicate on the cron field. +func (f *JobTemplateFilter) WhereCron(p entql.StringP) { + f.Where(p.Field(jobtemplate.FieldCron)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *InviteFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *JobTemplateFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *InviteFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *JobTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *InviteFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) +// WhereHasScheduledJobs applies a predicate to check if query has an edge scheduled_jobs. +func (f *JobTemplateFilter) WhereHasScheduledJobs() { + f.Where(entql.HasEdge("scheduled_jobs")) } -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *InviteFilter) WhereHasGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScheduledJobsWith applies a predicate to check if query has an edge scheduled_jobs with a given conditions (other predicates). +func (f *JobTemplateFilter) WhereHasScheduledJobsWith(preds ...predicate.ScheduledJob) { + f.Where(entql.HasEdgeWith("scheduled_jobs", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -31637,151 +33065,98 @@ func (f *InviteFilter) WhereHasGroupsWith(preds ...predicate.Group) { } // addPredicate implements the predicateAdder interface. -func (_q *JobResultQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *MappableDomainQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the JobResultQuery builder. -func (_q *JobResultQuery) Filter() *JobResultFilter { - return &JobResultFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the MappableDomainQuery builder. +func (_q *MappableDomainQuery) Filter() *MappableDomainFilter { + return &MappableDomainFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *JobResultMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *MappableDomainMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the JobResultMutation builder. -func (m *JobResultMutation) Filter() *JobResultFilter { - return &JobResultFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the MappableDomainMutation builder. +func (m *MappableDomainMutation) Filter() *MappableDomainFilter { + return &MappableDomainFilter{config: m.config, predicateAdder: m} } -// JobResultFilter provides a generic filtering capability at runtime for JobResultQuery. -type JobResultFilter struct { +// MappableDomainFilter provides a generic filtering capability at runtime for MappableDomainQuery. +type MappableDomainFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *JobResultFilter) Where(p entql.P) { +func (f *MappableDomainFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[43].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *JobResultFilter) WhereID(p entql.StringP) { - f.Where(p.Field(jobresult.FieldID)) +func (f *MappableDomainFilter) WhereID(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *JobResultFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(jobresult.FieldCreatedAt)) +func (f *MappableDomainFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(mappabledomain.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *JobResultFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(jobresult.FieldUpdatedAt)) +func (f *MappableDomainFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(mappabledomain.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *JobResultFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(jobresult.FieldCreatedBy)) +func (f *MappableDomainFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *JobResultFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(jobresult.FieldUpdatedBy)) +func (f *MappableDomainFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *JobResultFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(jobresult.FieldDeletedAt)) +func (f *MappableDomainFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(mappabledomain.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *JobResultFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(jobresult.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *JobResultFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(jobresult.FieldOwnerID)) -} - -// WhereScheduledJobID applies the entql string predicate on the scheduled_job_id field. -func (f *JobResultFilter) WhereScheduledJobID(p entql.StringP) { - f.Where(p.Field(jobresult.FieldScheduledJobID)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *JobResultFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(jobresult.FieldStatus)) -} - -// WhereExitCode applies the entql int predicate on the exit_code field. -func (f *JobResultFilter) WhereExitCode(p entql.IntP) { - f.Where(p.Field(jobresult.FieldExitCode)) -} - -// WhereFinishedAt applies the entql time.Time predicate on the finished_at field. -func (f *JobResultFilter) WhereFinishedAt(p entql.TimeP) { - f.Where(p.Field(jobresult.FieldFinishedAt)) -} - -// WhereStartedAt applies the entql time.Time predicate on the started_at field. -func (f *JobResultFilter) WhereStartedAt(p entql.TimeP) { - f.Where(p.Field(jobresult.FieldStartedAt)) -} - -// WhereFileID applies the entql string predicate on the file_id field. -func (f *JobResultFilter) WhereFileID(p entql.StringP) { - f.Where(p.Field(jobresult.FieldFileID)) -} - -// WhereLog applies the entql string predicate on the log field. -func (f *JobResultFilter) WhereLog(p entql.StringP) { - f.Where(p.Field(jobresult.FieldLog)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *JobResultFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +func (f *MappableDomainFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldDeletedBy)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *JobResultFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *MappableDomainFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(mappabledomain.FieldTags)) } -// WhereHasScheduledJob applies a predicate to check if query has an edge scheduled_job. -func (f *JobResultFilter) WhereHasScheduledJob() { - f.Where(entql.HasEdge("scheduled_job")) +// WhereName applies the entql string predicate on the name field. +func (f *MappableDomainFilter) WhereName(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldName)) } -// WhereHasScheduledJobWith applies a predicate to check if query has an edge scheduled_job with a given conditions (other predicates). -func (f *JobResultFilter) WhereHasScheduledJobWith(preds ...predicate.ScheduledJob) { - f.Where(entql.HasEdgeWith("scheduled_job", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereZoneID applies the entql string predicate on the zone_id field. +func (f *MappableDomainFilter) WhereZoneID(p entql.StringP) { + f.Where(p.Field(mappabledomain.FieldZoneID)) } -// WhereHasFile applies a predicate to check if query has an edge file. -func (f *JobResultFilter) WhereHasFile() { - f.Where(entql.HasEdge("file")) +// WhereHasCustomDomains applies a predicate to check if query has an edge custom_domains. +func (f *MappableDomainFilter) WhereHasCustomDomains() { + f.Where(entql.HasEdge("custom_domains")) } -// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). -func (f *JobResultFilter) WhereHasFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCustomDomainsWith applies a predicate to check if query has an edge custom_domains with a given conditions (other predicates). +func (f *MappableDomainFilter) WhereHasCustomDomainsWith(preds ...predicate.CustomDomain) { + f.Where(entql.HasEdgeWith("custom_domains", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -31789,157 +33164,212 @@ func (f *JobResultFilter) WhereHasFileWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (_q *JobRunnerQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *MappedControlQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the JobRunnerQuery builder. -func (_q *JobRunnerQuery) Filter() *JobRunnerFilter { - return &JobRunnerFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the MappedControlQuery builder. +func (_q *MappedControlQuery) Filter() *MappedControlFilter { + return &MappedControlFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *JobRunnerMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *MappedControlMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the JobRunnerMutation builder. -func (m *JobRunnerMutation) Filter() *JobRunnerFilter { - return &JobRunnerFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the MappedControlMutation builder. +func (m *MappedControlMutation) Filter() *MappedControlFilter { + return &MappedControlFilter{config: m.config, predicateAdder: m} } -// JobRunnerFilter provides a generic filtering capability at runtime for JobRunnerQuery. -type JobRunnerFilter struct { +// MappedControlFilter provides a generic filtering capability at runtime for MappedControlQuery. +type MappedControlFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *JobRunnerFilter) Where(p entql.P) { +func (f *MappedControlFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[44].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[49].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *JobRunnerFilter) WhereID(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldID)) +func (f *MappedControlFilter) WhereID(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *JobRunnerFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunner.FieldCreatedAt)) +func (f *MappedControlFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(mappedcontrol.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *JobRunnerFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunner.FieldUpdatedAt)) +func (f *MappedControlFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(mappedcontrol.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *JobRunnerFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldCreatedBy)) +func (f *MappedControlFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *JobRunnerFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldUpdatedBy)) +func (f *MappedControlFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *JobRunnerFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(jobrunner.FieldDeletedAt)) +func (f *MappedControlFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(mappedcontrol.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *JobRunnerFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldDeletedBy)) +func (f *MappedControlFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldDeletedBy)) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *JobRunnerFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldDisplayID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *MappedControlFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(mappedcontrol.FieldTags)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *JobRunnerFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(jobrunner.FieldTags)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *MappedControlFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(mappedcontrol.FieldSystemOwned)) +} + +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *MappedControlFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldInternalNotes)) +} + +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *MappedControlFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldSystemInternalID)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *JobRunnerFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldOwnerID)) +func (f *MappedControlFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldOwnerID)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *JobRunnerFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(jobrunner.FieldSystemOwned)) +// WhereMappingType applies the entql string predicate on the mapping_type field. +func (f *MappedControlFilter) WhereMappingType(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldMappingType)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *JobRunnerFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldInternalNotes)) +// WhereRelation applies the entql string predicate on the relation field. +func (f *MappedControlFilter) WhereRelation(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldRelation)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *JobRunnerFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldSystemInternalID)) +// WhereConfidence applies the entql int predicate on the confidence field. +func (f *MappedControlFilter) WhereConfidence(p entql.IntP) { + f.Where(p.Field(mappedcontrol.FieldConfidence)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *MappedControlFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(mappedcontrol.FieldSource)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *MappedControlFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *MappedControlFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) +} + +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereName applies the entql string predicate on the name field. -func (f *JobRunnerFilter) WhereName(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldName)) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *MappedControlFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereStatus applies the entql string predicate on the status field. -func (f *JobRunnerFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldStatus)) +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIPAddress applies the entql string predicate on the ip_address field. -func (f *JobRunnerFilter) WhereIPAddress(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldIPAddress)) +// WhereHasFromControls applies a predicate to check if query has an edge from_controls. +func (f *MappedControlFilter) WhereHasFromControls() { + f.Where(entql.HasEdge("from_controls")) } -// WhereLastSeen applies the entql time.Time predicate on the last_seen field. -func (f *JobRunnerFilter) WhereLastSeen(p entql.TimeP) { - f.Where(p.Field(jobrunner.FieldLastSeen)) +// WhereHasFromControlsWith applies a predicate to check if query has an edge from_controls with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasFromControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("from_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereVersion applies the entql string predicate on the version field. -func (f *JobRunnerFilter) WhereVersion(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldVersion)) +// WhereHasToControls applies a predicate to check if query has an edge to_controls. +func (f *MappedControlFilter) WhereHasToControls() { + f.Where(entql.HasEdge("to_controls")) } -// WhereOs applies the entql string predicate on the os field. -func (f *JobRunnerFilter) WhereOs(p entql.StringP) { - f.Where(p.Field(jobrunner.FieldOs)) +// WhereHasToControlsWith applies a predicate to check if query has an edge to_controls with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasToControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("to_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *JobRunnerFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasFromSubcontrols applies a predicate to check if query has an edge from_subcontrols. +func (f *MappedControlFilter) WhereHasFromSubcontrols() { + f.Where(entql.HasEdge("from_subcontrols")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *JobRunnerFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFromSubcontrolsWith applies a predicate to check if query has an edge from_subcontrols with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasFromSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("from_subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasJobRunnerTokens applies a predicate to check if query has an edge job_runner_tokens. -func (f *JobRunnerFilter) WhereHasJobRunnerTokens() { - f.Where(entql.HasEdge("job_runner_tokens")) +// WhereHasToSubcontrols applies a predicate to check if query has an edge to_subcontrols. +func (f *MappedControlFilter) WhereHasToSubcontrols() { + f.Where(entql.HasEdge("to_subcontrols")) } -// WhereHasJobRunnerTokensWith applies a predicate to check if query has an edge job_runner_tokens with a given conditions (other predicates). -func (f *JobRunnerFilter) WhereHasJobRunnerTokensWith(preds ...predicate.JobRunnerToken) { - f.Where(entql.HasEdgeWith("job_runner_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasToSubcontrolsWith applies a predicate to check if query has an edge to_subcontrols with a given conditions (other predicates). +func (f *MappedControlFilter) WhereHasToSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("to_subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -31947,270 +33377,226 @@ func (f *JobRunnerFilter) WhereHasJobRunnerTokensWith(preds ...predicate.JobRunn } // addPredicate implements the predicateAdder interface. -func (_q *JobRunnerRegistrationTokenQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *NarrativeQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the JobRunnerRegistrationTokenQuery builder. -func (_q *JobRunnerRegistrationTokenQuery) Filter() *JobRunnerRegistrationTokenFilter { - return &JobRunnerRegistrationTokenFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the NarrativeQuery builder. +func (_q *NarrativeQuery) Filter() *NarrativeFilter { + return &NarrativeFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *JobRunnerRegistrationTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *NarrativeMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the JobRunnerRegistrationTokenMutation builder. -func (m *JobRunnerRegistrationTokenMutation) Filter() *JobRunnerRegistrationTokenFilter { - return &JobRunnerRegistrationTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the NarrativeMutation builder. +func (m *NarrativeMutation) Filter() *NarrativeFilter { + return &NarrativeFilter{config: m.config, predicateAdder: m} } -// JobRunnerRegistrationTokenFilter provides a generic filtering capability at runtime for JobRunnerRegistrationTokenQuery. -type JobRunnerRegistrationTokenFilter struct { +// NarrativeFilter provides a generic filtering capability at runtime for NarrativeQuery. +type NarrativeFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *JobRunnerRegistrationTokenFilter) Where(p entql.P) { +func (f *NarrativeFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[45].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[50].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *JobRunnerRegistrationTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldID)) +func (f *NarrativeFilter) WhereID(p entql.StringP) { + f.Where(p.Field(narrative.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *JobRunnerRegistrationTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldCreatedAt)) +func (f *NarrativeFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *JobRunnerRegistrationTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldUpdatedAt)) +func (f *NarrativeFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *JobRunnerRegistrationTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldCreatedBy)) +func (f *NarrativeFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *JobRunnerRegistrationTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldUpdatedBy)) +func (f *NarrativeFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *JobRunnerRegistrationTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldDeletedAt)) +func (f *NarrativeFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *JobRunnerRegistrationTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldDeletedBy)) +func (f *NarrativeFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *NarrativeFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(narrative.FieldDisplayID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *JobRunnerRegistrationTokenFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldTags)) +func (f *NarrativeFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(narrative.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *JobRunnerRegistrationTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldOwnerID)) +func (f *NarrativeFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(narrative.FieldOwnerID)) } -// WhereToken applies the entql string predicate on the token field. -func (f *JobRunnerRegistrationTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldToken)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *NarrativeFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(narrative.FieldSystemOwned)) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *JobRunnerRegistrationTokenFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldExpiresAt)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *NarrativeFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(narrative.FieldInternalNotes)) } -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *JobRunnerRegistrationTokenFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldLastUsedAt)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *NarrativeFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(narrative.FieldSystemInternalID)) } -// WhereJobRunnerID applies the entql string predicate on the job_runner_id field. -func (f *JobRunnerRegistrationTokenFilter) WhereJobRunnerID(p entql.StringP) { - f.Where(p.Field(jobrunnerregistrationtoken.FieldJobRunnerID)) +// WhereName applies the entql string predicate on the name field. +func (f *NarrativeFilter) WhereName(p entql.StringP) { + f.Where(p.Field(narrative.FieldName)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *JobRunnerRegistrationTokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereDescription applies the entql string predicate on the description field. +func (f *NarrativeFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(narrative.FieldDescription)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *JobRunnerRegistrationTokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDetails applies the entql string predicate on the details field. +func (f *NarrativeFilter) WhereDetails(p entql.StringP) { + f.Where(p.Field(narrative.FieldDetails)) } -// WhereHasJobRunner applies a predicate to check if query has an edge job_runner. -func (f *JobRunnerRegistrationTokenFilter) WhereHasJobRunner() { - f.Where(entql.HasEdge("job_runner")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *NarrativeFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasJobRunnerWith applies a predicate to check if query has an edge job_runner with a given conditions (other predicates). -func (f *JobRunnerRegistrationTokenFilter) WhereHasJobRunnerWith(preds ...predicate.JobRunner) { - f.Where(entql.HasEdgeWith("job_runner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) - } - }))) -} - -// addPredicate implements the predicateAdder interface. -func (_q *JobRunnerTokenQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the JobRunnerTokenQuery builder. -func (_q *JobRunnerTokenQuery) Filter() *JobRunnerTokenFilter { - return &JobRunnerTokenFilter{config: _q.config, predicateAdder: _q} -} - -// addPredicate implements the predicateAdder interface. -func (m *JobRunnerTokenMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the JobRunnerTokenMutation builder. -func (m *JobRunnerTokenMutation) Filter() *JobRunnerTokenFilter { - return &JobRunnerTokenFilter{config: m.config, predicateAdder: m} -} - -// JobRunnerTokenFilter provides a generic filtering capability at runtime for JobRunnerTokenQuery. -type JobRunnerTokenFilter struct { - predicateAdder - config -} - -// Where applies the entql predicate on the query filter. -func (f *JobRunnerTokenFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[46].Type, p, s); err != nil { - s.AddError(err) - } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *JobRunnerTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *JobRunnerTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *JobRunnerTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *JobRunnerTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *JobRunnerTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *JobRunnerTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldDeletedAt)) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *JobRunnerTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldDeletedBy)) +// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. +func (f *NarrativeFilter) WhereHasBlockedGroups() { + f.Where(entql.HasEdge("blocked_groups")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *JobRunnerTokenFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(jobrunnertoken.FieldTags)) +// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *JobRunnerTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldOwnerID)) +// WhereHasEditors applies a predicate to check if query has an edge editors. +func (f *NarrativeFilter) WhereHasEditors() { + f.Where(entql.HasEdge("editors")) } -// WhereToken applies the entql string predicate on the token field. -func (f *JobRunnerTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldToken)) +// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasEditorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *JobRunnerTokenFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldExpiresAt)) +// WhereHasViewers applies a predicate to check if query has an edge viewers. +func (f *NarrativeFilter) WhereHasViewers() { + f.Where(entql.HasEdge("viewers")) } -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *JobRunnerTokenFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldLastUsedAt)) +// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIsActive applies the entql bool predicate on the is_active field. -func (f *JobRunnerTokenFilter) WhereIsActive(p entql.BoolP) { - f.Where(p.Field(jobrunnertoken.FieldIsActive)) +// WhereHasSatisfies applies a predicate to check if query has an edge satisfies. +func (f *NarrativeFilter) WhereHasSatisfies() { + f.Where(entql.HasEdge("satisfies")) } -// WhereRevokedReason applies the entql string predicate on the revoked_reason field. -func (f *JobRunnerTokenFilter) WhereRevokedReason(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldRevokedReason)) +// WhereHasSatisfiesWith applies a predicate to check if query has an edge satisfies with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasSatisfiesWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("satisfies", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRevokedBy applies the entql string predicate on the revoked_by field. -func (f *JobRunnerTokenFilter) WhereRevokedBy(p entql.StringP) { - f.Where(p.Field(jobrunnertoken.FieldRevokedBy)) +// WhereHasPrograms applies a predicate to check if query has an edge programs. +func (f *NarrativeFilter) WhereHasPrograms() { + f.Where(entql.HasEdge("programs")) } -// WhereRevokedAt applies the entql time.Time predicate on the revoked_at field. -func (f *JobRunnerTokenFilter) WhereRevokedAt(p entql.TimeP) { - f.Where(p.Field(jobrunnertoken.FieldRevokedAt)) +// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasProgramsWith(preds ...predicate.Program) { + f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *JobRunnerTokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. +func (f *NarrativeFilter) WhereHasInternalPolicies() { + f.Where(entql.HasEdge("internal_policies")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *JobRunnerTokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasJobRunners applies a predicate to check if query has an edge job_runners. -func (f *JobRunnerTokenFilter) WhereHasJobRunners() { - f.Where(entql.HasEdge("job_runners")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *NarrativeFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasJobRunnersWith applies a predicate to check if query has an edge job_runners with a given conditions (other predicates). -func (f *JobRunnerTokenFilter) WhereHasJobRunnersWith(preds ...predicate.JobRunner) { - f.Where(entql.HasEdgeWith("job_runners", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -32218,147 +33604,127 @@ func (f *JobRunnerTokenFilter) WhereHasJobRunnersWith(preds ...predicate.JobRunn } // addPredicate implements the predicateAdder interface. -func (_q *JobTemplateQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *NoteQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the JobTemplateQuery builder. -func (_q *JobTemplateQuery) Filter() *JobTemplateFilter { - return &JobTemplateFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the NoteQuery builder. +func (_q *NoteQuery) Filter() *NoteFilter { + return &NoteFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *JobTemplateMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *NoteMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the JobTemplateMutation builder. -func (m *JobTemplateMutation) Filter() *JobTemplateFilter { - return &JobTemplateFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the NoteMutation builder. +func (m *NoteMutation) Filter() *NoteFilter { + return &NoteFilter{config: m.config, predicateAdder: m} } -// JobTemplateFilter provides a generic filtering capability at runtime for JobTemplateQuery. -type JobTemplateFilter struct { +// NoteFilter provides a generic filtering capability at runtime for NoteQuery. +type NoteFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *JobTemplateFilter) Where(p entql.P) { +func (f *NoteFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[47].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[51].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *JobTemplateFilter) WhereID(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldID)) +func (f *NoteFilter) WhereID(p entql.StringP) { + f.Where(p.Field(note.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *JobTemplateFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(jobtemplate.FieldCreatedAt)) +func (f *NoteFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *JobTemplateFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(jobtemplate.FieldUpdatedAt)) +func (f *NoteFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *JobTemplateFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldCreatedBy)) +func (f *NoteFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(note.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *JobTemplateFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldUpdatedBy)) +func (f *NoteFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(note.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *JobTemplateFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(jobtemplate.FieldDeletedAt)) +func (f *NoteFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *JobTemplateFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldDeletedBy)) +func (f *NoteFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(note.FieldDeletedBy)) } // WhereDisplayID applies the entql string predicate on the display_id field. -func (f *JobTemplateFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldDisplayID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *JobTemplateFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(jobtemplate.FieldTags)) +func (f *NoteFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(note.FieldDisplayID)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *JobTemplateFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldOwnerID)) -} - -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *JobTemplateFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(jobtemplate.FieldSystemOwned)) -} - -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *JobTemplateFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldInternalNotes)) -} - -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *JobTemplateFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldSystemInternalID)) +func (f *NoteFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(note.FieldOwnerID)) } // WhereTitle applies the entql string predicate on the title field. -func (f *JobTemplateFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldTitle)) +func (f *NoteFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(note.FieldTitle)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *JobTemplateFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldDescription)) +// WhereText applies the entql string predicate on the text field. +func (f *NoteFilter) WhereText(p entql.StringP) { + f.Where(p.Field(note.FieldText)) } -// WherePlatform applies the entql string predicate on the platform field. -func (f *JobTemplateFilter) WherePlatform(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldPlatform)) +// WhereTextJSON applies the entql json.RawMessage predicate on the text_json field. +func (f *NoteFilter) WhereTextJSON(p entql.BytesP) { + f.Where(p.Field(note.FieldTextJSON)) } -// WhereWindmillPath applies the entql string predicate on the windmill_path field. -func (f *JobTemplateFilter) WhereWindmillPath(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldWindmillPath)) +// WhereNoteRef applies the entql string predicate on the note_ref field. +func (f *NoteFilter) WhereNoteRef(p entql.StringP) { + f.Where(p.Field(note.FieldNoteRef)) } -// WhereDownloadURL applies the entql string predicate on the download_url field. -func (f *JobTemplateFilter) WhereDownloadURL(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldDownloadURL)) +// WhereDiscussionID applies the entql string predicate on the discussion_id field. +func (f *NoteFilter) WhereDiscussionID(p entql.StringP) { + f.Where(p.Field(note.FieldDiscussionID)) } -// WhereConfiguration applies the entql json.RawMessage predicate on the configuration field. -func (f *JobTemplateFilter) WhereConfiguration(p entql.BytesP) { - f.Where(p.Field(jobtemplate.FieldConfiguration)) +// WhereIsEdited applies the entql bool predicate on the is_edited field. +func (f *NoteFilter) WhereIsEdited(p entql.BoolP) { + f.Where(p.Field(note.FieldIsEdited)) } -// WhereCron applies the entql string predicate on the cron field. -func (f *JobTemplateFilter) WhereCron(p entql.StringP) { - f.Where(p.Field(jobtemplate.FieldCron)) +// WhereTrustCenterID applies the entql string predicate on the trust_center_id field. +func (f *NoteFilter) WhereTrustCenterID(p entql.StringP) { + f.Where(p.Field(note.FieldTrustCenterID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *JobTemplateFilter) WhereHasOwner() { +func (f *NoteFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *JobTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *NoteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -32366,113 +33732,154 @@ func (f *JobTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { }))) } -// WhereHasScheduledJobs applies a predicate to check if query has an edge scheduled_jobs. -func (f *JobTemplateFilter) WhereHasScheduledJobs() { - f.Where(entql.HasEdge("scheduled_jobs")) +// WhereHasTask applies a predicate to check if query has an edge task. +func (f *NoteFilter) WhereHasTask() { + f.Where(entql.HasEdge("task")) } -// WhereHasScheduledJobsWith applies a predicate to check if query has an edge scheduled_jobs with a given conditions (other predicates). -func (f *JobTemplateFilter) WhereHasScheduledJobsWith(preds ...predicate.ScheduledJob) { - f.Where(entql.HasEdgeWith("scheduled_jobs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTaskWith applies a predicate to check if query has an edge task with a given conditions (other predicates). +func (f *NoteFilter) WhereHasTaskWith(preds ...predicate.Task) { + f.Where(entql.HasEdgeWith("task", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *NoteFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) +} + +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *NoteFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *MappableDomainQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasSubcontrol applies a predicate to check if query has an edge subcontrol. +func (f *NoteFilter) WhereHasSubcontrol() { + f.Where(entql.HasEdge("subcontrol")) } -// Filter returns a Filter implementation to apply filters on the MappableDomainQuery builder. -func (_q *MappableDomainQuery) Filter() *MappableDomainFilter { - return &MappableDomainFilter{config: _q.config, predicateAdder: _q} +// WhereHasSubcontrolWith applies a predicate to check if query has an edge subcontrol with a given conditions (other predicates). +func (f *NoteFilter) WhereHasSubcontrolWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrol", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *MappableDomainMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasProcedure applies a predicate to check if query has an edge procedure. +func (f *NoteFilter) WhereHasProcedure() { + f.Where(entql.HasEdge("procedure")) } -// Filter returns an entql.Where implementation to apply filters on the MappableDomainMutation builder. -func (m *MappableDomainMutation) Filter() *MappableDomainFilter { - return &MappableDomainFilter{config: m.config, predicateAdder: m} +// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). +func (f *NoteFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// MappableDomainFilter provides a generic filtering capability at runtime for MappableDomainQuery. -type MappableDomainFilter struct { - predicateAdder - config +// WhereHasRisk applies a predicate to check if query has an edge risk. +func (f *NoteFilter) WhereHasRisk() { + f.Where(entql.HasEdge("risk")) } -// Where applies the entql predicate on the query filter. -func (f *MappableDomainFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { - s.AddError(err) +// WhereHasRiskWith applies a predicate to check if query has an edge risk with a given conditions (other predicates). +func (f *NoteFilter) WhereHasRiskWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *MappableDomainFilter) WhereID(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldID)) +// WhereHasInternalPolicy applies a predicate to check if query has an edge internal_policy. +func (f *NoteFilter) WhereHasInternalPolicy() { + f.Where(entql.HasEdge("internal_policy")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *MappableDomainFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(mappabledomain.FieldCreatedAt)) +// WhereHasInternalPolicyWith applies a predicate to check if query has an edge internal_policy with a given conditions (other predicates). +func (f *NoteFilter) WhereHasInternalPolicyWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internal_policy", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *MappableDomainFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(mappabledomain.FieldUpdatedAt)) +// WhereHasEvidence applies a predicate to check if query has an edge evidence. +func (f *NoteFilter) WhereHasEvidence() { + f.Where(entql.HasEdge("evidence")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *MappableDomainFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldCreatedBy)) +// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). +func (f *NoteFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { + f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *MappableDomainFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldUpdatedBy)) +// WhereHasTrustCenter applies a predicate to check if query has an edge trust_center. +func (f *NoteFilter) WhereHasTrustCenter() { + f.Where(entql.HasEdge("trust_center")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *MappableDomainFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(mappabledomain.FieldDeletedAt)) +// WhereHasTrustCenterWith applies a predicate to check if query has an edge trust_center with a given conditions (other predicates). +func (f *NoteFilter) WhereHasTrustCenterWith(preds ...predicate.TrustCenter) { + f.Where(entql.HasEdgeWith("trust_center", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *MappableDomainFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldDeletedBy)) +// WhereHasDiscussion applies a predicate to check if query has an edge discussion. +func (f *NoteFilter) WhereHasDiscussion() { + f.Where(entql.HasEdge("discussion")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *MappableDomainFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(mappabledomain.FieldTags)) +// WhereHasDiscussionWith applies a predicate to check if query has an edge discussion with a given conditions (other predicates). +func (f *NoteFilter) WhereHasDiscussionWith(preds ...predicate.Discussion) { + f.Where(entql.HasEdgeWith("discussion", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereName applies the entql string predicate on the name field. -func (f *MappableDomainFilter) WhereName(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldName)) +// WhereHasTrustCenterFaqs applies a predicate to check if query has an edge trust_center_faqs. +func (f *NoteFilter) WhereHasTrustCenterFaqs() { + f.Where(entql.HasEdge("trust_center_faqs")) } -// WhereZoneID applies the entql string predicate on the zone_id field. -func (f *MappableDomainFilter) WhereZoneID(p entql.StringP) { - f.Where(p.Field(mappabledomain.FieldZoneID)) +// WhereHasTrustCenterFaqsWith applies a predicate to check if query has an edge trust_center_faqs with a given conditions (other predicates). +func (f *NoteFilter) WhereHasTrustCenterFaqsWith(preds ...predicate.TrustCenterFAQ) { + f.Where(entql.HasEdgeWith("trust_center_faqs", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasCustomDomains applies a predicate to check if query has an edge custom_domains. -func (f *MappableDomainFilter) WhereHasCustomDomains() { - f.Where(entql.HasEdge("custom_domains")) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *NoteFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereHasCustomDomainsWith applies a predicate to check if query has an edge custom_domains with a given conditions (other predicates). -func (f *MappableDomainFilter) WhereHasCustomDomainsWith(preds ...predicate.CustomDomain) { - f.Where(entql.HasEdgeWith("custom_domains", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *NoteFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -32480,212 +33887,161 @@ func (f *MappableDomainFilter) WhereHasCustomDomainsWith(preds ...predicate.Cust } // addPredicate implements the predicateAdder interface. -func (_q *MappedControlQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *NotificationQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the MappedControlQuery builder. -func (_q *MappedControlQuery) Filter() *MappedControlFilter { - return &MappedControlFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the NotificationQuery builder. +func (_q *NotificationQuery) Filter() *NotificationFilter { + return &NotificationFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *MappedControlMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *NotificationMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the MappedControlMutation builder. -func (m *MappedControlMutation) Filter() *MappedControlFilter { - return &MappedControlFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the NotificationMutation builder. +func (m *NotificationMutation) Filter() *NotificationFilter { + return &NotificationFilter{config: m.config, predicateAdder: m} } -// MappedControlFilter provides a generic filtering capability at runtime for MappedControlQuery. -type MappedControlFilter struct { +// NotificationFilter provides a generic filtering capability at runtime for NotificationQuery. +type NotificationFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *MappedControlFilter) Where(p entql.P) { +func (f *NotificationFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[49].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[52].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *MappedControlFilter) WhereID(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldID)) +func (f *NotificationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(notification.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *MappedControlFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(mappedcontrol.FieldCreatedAt)) +func (f *NotificationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(notification.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *MappedControlFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(mappedcontrol.FieldUpdatedAt)) +func (f *NotificationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(notification.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *MappedControlFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldCreatedBy)) +func (f *NotificationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(notification.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *MappedControlFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *MappedControlFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(mappedcontrol.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *MappedControlFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldDeletedBy)) +func (f *NotificationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(notification.FieldUpdatedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *MappedControlFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(mappedcontrol.FieldTags)) -} - -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *MappedControlFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(mappedcontrol.FieldSystemOwned)) -} - -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *MappedControlFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldInternalNotes)) -} - -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *MappedControlFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldSystemInternalID)) +func (f *NotificationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(notification.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *MappedControlFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldOwnerID)) -} - -// WhereMappingType applies the entql string predicate on the mapping_type field. -func (f *MappedControlFilter) WhereMappingType(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldMappingType)) -} - -// WhereRelation applies the entql string predicate on the relation field. -func (f *MappedControlFilter) WhereRelation(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldRelation)) +func (f *NotificationFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(notification.FieldOwnerID)) } -// WhereConfidence applies the entql int predicate on the confidence field. -func (f *MappedControlFilter) WhereConfidence(p entql.IntP) { - f.Where(p.Field(mappedcontrol.FieldConfidence)) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *NotificationFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(notification.FieldUserID)) } -// WhereSource applies the entql string predicate on the source field. -func (f *MappedControlFilter) WhereSource(p entql.StringP) { - f.Where(p.Field(mappedcontrol.FieldSource)) +// WhereNotificationType applies the entql string predicate on the notification_type field. +func (f *NotificationFilter) WhereNotificationType(p entql.StringP) { + f.Where(p.Field(notification.FieldNotificationType)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *MappedControlFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereObjectType applies the entql string predicate on the object_type field. +func (f *NotificationFilter) WhereObjectType(p entql.StringP) { + f.Where(p.Field(notification.FieldObjectType)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTitle applies the entql string predicate on the title field. +func (f *NotificationFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(notification.FieldTitle)) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *MappedControlFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereBody applies the entql string predicate on the body field. +func (f *NotificationFilter) WhereBody(p entql.StringP) { + f.Where(p.Field(notification.FieldBody)) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereData applies the entql json.RawMessage predicate on the data field. +func (f *NotificationFilter) WhereData(p entql.BytesP) { + f.Where(p.Field(notification.FieldData)) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *MappedControlFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *NotificationFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(notification.FieldTemplateID)) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereReadAt applies the entql time.Time predicate on the read_at field. +func (f *NotificationFilter) WhereReadAt(p entql.TimeP) { + f.Where(p.Field(notification.FieldReadAt)) } -// WhereHasFromControls applies a predicate to check if query has an edge from_controls. -func (f *MappedControlFilter) WhereHasFromControls() { - f.Where(entql.HasEdge("from_controls")) +// WhereChannels applies the entql json.RawMessage predicate on the channels field. +func (f *NotificationFilter) WhereChannels(p entql.BytesP) { + f.Where(p.Field(notification.FieldChannels)) } -// WhereHasFromControlsWith applies a predicate to check if query has an edge from_controls with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasFromControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("from_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTopic applies the entql string predicate on the topic field. +func (f *NotificationFilter) WhereTopic(p entql.StringP) { + f.Where(p.Field(notification.FieldTopic)) } -// WhereHasToControls applies a predicate to check if query has an edge to_controls. -func (f *MappedControlFilter) WhereHasToControls() { - f.Where(entql.HasEdge("to_controls")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *NotificationFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasToControlsWith applies a predicate to check if query has an edge to_controls with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasToControlsWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("to_controls", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *NotificationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFromSubcontrols applies a predicate to check if query has an edge from_subcontrols. -func (f *MappedControlFilter) WhereHasFromSubcontrols() { - f.Where(entql.HasEdge("from_subcontrols")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *NotificationFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasFromSubcontrolsWith applies a predicate to check if query has an edge from_subcontrols with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasFromSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("from_subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *NotificationFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasToSubcontrols applies a predicate to check if query has an edge to_subcontrols. -func (f *MappedControlFilter) WhereHasToSubcontrols() { - f.Where(entql.HasEdge("to_subcontrols")) +// WhereHasNotificationTemplate applies a predicate to check if query has an edge notification_template. +func (f *NotificationFilter) WhereHasNotificationTemplate() { + f.Where(entql.HasEdge("notification_template")) } -// WhereHasToSubcontrolsWith applies a predicate to check if query has an edge to_subcontrols with a given conditions (other predicates). -func (f *MappedControlFilter) WhereHasToSubcontrolsWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("to_subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNotificationTemplateWith applies a predicate to check if query has an edge notification_template with a given conditions (other predicates). +func (f *NotificationFilter) WhereHasNotificationTemplateWith(preds ...predicate.NotificationTemplate) { + f.Where(entql.HasEdgeWith("notification_template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -32693,226 +34049,221 @@ func (f *MappedControlFilter) WhereHasToSubcontrolsWith(preds ...predicate.Subco } // addPredicate implements the predicateAdder interface. -func (_q *NarrativeQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *NotificationPreferenceQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NarrativeQuery builder. -func (_q *NarrativeQuery) Filter() *NarrativeFilter { - return &NarrativeFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the NotificationPreferenceQuery builder. +func (_q *NotificationPreferenceQuery) Filter() *NotificationPreferenceFilter { + return &NotificationPreferenceFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *NarrativeMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *NotificationPreferenceMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NarrativeMutation builder. -func (m *NarrativeMutation) Filter() *NarrativeFilter { - return &NarrativeFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the NotificationPreferenceMutation builder. +func (m *NotificationPreferenceMutation) Filter() *NotificationPreferenceFilter { + return &NotificationPreferenceFilter{config: m.config, predicateAdder: m} } -// NarrativeFilter provides a generic filtering capability at runtime for NarrativeQuery. -type NarrativeFilter struct { +// NotificationPreferenceFilter provides a generic filtering capability at runtime for NotificationPreferenceQuery. +type NotificationPreferenceFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NarrativeFilter) Where(p entql.P) { +func (f *NotificationPreferenceFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[50].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[53].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NarrativeFilter) WhereID(p entql.StringP) { - f.Where(p.Field(narrative.FieldID)) +func (f *NotificationPreferenceFilter) WhereID(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NarrativeFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(narrative.FieldCreatedAt)) +func (f *NotificationPreferenceFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NarrativeFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(narrative.FieldUpdatedAt)) +func (f *NotificationPreferenceFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NarrativeFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(narrative.FieldCreatedBy)) +func (f *NotificationPreferenceFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NarrativeFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(narrative.FieldUpdatedBy)) +func (f *NotificationPreferenceFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NarrativeFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(narrative.FieldDeletedAt)) +func (f *NotificationPreferenceFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NarrativeFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(narrative.FieldDeletedBy)) +func (f *NotificationPreferenceFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldDeletedBy)) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *NarrativeFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(narrative.FieldDisplayID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *NotificationPreferenceFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldOwnerID)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *NarrativeFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(narrative.FieldTags)) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *NotificationPreferenceFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldUserID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NarrativeFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(narrative.FieldOwnerID)) +// WhereChannel applies the entql string predicate on the channel field. +func (f *NotificationPreferenceFilter) WhereChannel(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldChannel)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *NarrativeFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(narrative.FieldSystemOwned)) +// WhereStatus applies the entql string predicate on the status field. +func (f *NotificationPreferenceFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldStatus)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *NarrativeFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(narrative.FieldInternalNotes)) +// WhereProvider applies the entql string predicate on the provider field. +func (f *NotificationPreferenceFilter) WhereProvider(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldProvider)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *NarrativeFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(narrative.FieldSystemInternalID)) +// WhereDestination applies the entql string predicate on the destination field. +func (f *NotificationPreferenceFilter) WhereDestination(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldDestination)) } -// WhereName applies the entql string predicate on the name field. -func (f *NarrativeFilter) WhereName(p entql.StringP) { - f.Where(p.Field(narrative.FieldName)) +// WhereConfig applies the entql json.RawMessage predicate on the config field. +func (f *NotificationPreferenceFilter) WhereConfig(p entql.BytesP) { + f.Where(p.Field(notificationpreference.FieldConfig)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *NarrativeFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(narrative.FieldDescription)) +// WhereEnabled applies the entql bool predicate on the enabled field. +func (f *NotificationPreferenceFilter) WhereEnabled(p entql.BoolP) { + f.Where(p.Field(notificationpreference.FieldEnabled)) } -// WhereDetails applies the entql string predicate on the details field. -func (f *NarrativeFilter) WhereDetails(p entql.StringP) { - f.Where(p.Field(narrative.FieldDetails)) +// WhereCadence applies the entql string predicate on the cadence field. +func (f *NotificationPreferenceFilter) WhereCadence(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldCadence)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NarrativeFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WherePriority applies the entql string predicate on the priority field. +func (f *NotificationPreferenceFilter) WherePriority(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldPriority)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTopicPatterns applies the entql json.RawMessage predicate on the topic_patterns field. +func (f *NotificationPreferenceFilter) WhereTopicPatterns(p entql.BytesP) { + f.Where(p.Field(notificationpreference.FieldTopicPatterns)) } -// WhereHasBlockedGroups applies a predicate to check if query has an edge blocked_groups. -func (f *NarrativeFilter) WhereHasBlockedGroups() { - f.Where(entql.HasEdge("blocked_groups")) +// WhereTopicOverrides applies the entql json.RawMessage predicate on the topic_overrides field. +func (f *NotificationPreferenceFilter) WhereTopicOverrides(p entql.BytesP) { + f.Where(p.Field(notificationpreference.FieldTopicOverrides)) } -// WhereHasBlockedGroupsWith applies a predicate to check if query has an edge blocked_groups with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasBlockedGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *NotificationPreferenceFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldTemplateID)) } -// WhereHasEditors applies a predicate to check if query has an edge editors. -func (f *NarrativeFilter) WhereHasEditors() { - f.Where(entql.HasEdge("editors")) +// WhereMuteUntil applies the entql time.Time predicate on the mute_until field. +func (f *NotificationPreferenceFilter) WhereMuteUntil(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldMuteUntil)) } -// WhereHasEditorsWith applies a predicate to check if query has an edge editors with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasEditorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("editors", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereQuietHoursStart applies the entql string predicate on the quiet_hours_start field. +func (f *NotificationPreferenceFilter) WhereQuietHoursStart(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldQuietHoursStart)) } -// WhereHasViewers applies a predicate to check if query has an edge viewers. -func (f *NarrativeFilter) WhereHasViewers() { - f.Where(entql.HasEdge("viewers")) +// WhereQuietHoursEnd applies the entql string predicate on the quiet_hours_end field. +func (f *NotificationPreferenceFilter) WhereQuietHoursEnd(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldQuietHoursEnd)) +} + +// WhereTimezone applies the entql string predicate on the timezone field. +func (f *NotificationPreferenceFilter) WhereTimezone(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldTimezone)) +} + +// WhereIsDefault applies the entql bool predicate on the is_default field. +func (f *NotificationPreferenceFilter) WhereIsDefault(p entql.BoolP) { + f.Where(p.Field(notificationpreference.FieldIsDefault)) } -// WhereHasViewersWith applies a predicate to check if query has an edge viewers with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasViewersWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereVerifiedAt applies the entql time.Time predicate on the verified_at field. +func (f *NotificationPreferenceFilter) WhereVerifiedAt(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldVerifiedAt)) } -// WhereHasSatisfies applies a predicate to check if query has an edge satisfies. -func (f *NarrativeFilter) WhereHasSatisfies() { - f.Where(entql.HasEdge("satisfies")) +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *NotificationPreferenceFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(notificationpreference.FieldLastUsedAt)) } -// WhereHasSatisfiesWith applies a predicate to check if query has an edge satisfies with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasSatisfiesWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("satisfies", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereLastError applies the entql string predicate on the last_error field. +func (f *NotificationPreferenceFilter) WhereLastError(p entql.StringP) { + f.Where(p.Field(notificationpreference.FieldLastError)) } -// WhereHasPrograms applies a predicate to check if query has an edge programs. -func (f *NarrativeFilter) WhereHasPrograms() { - f.Where(entql.HasEdge("programs")) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *NotificationPreferenceFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(notificationpreference.FieldMetadata)) } -// WhereHasProgramsWith applies a predicate to check if query has an edge programs with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasProgramsWith(preds ...predicate.Program) { - f.Where(entql.HasEdgeWith("programs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *NotificationPreferenceFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *NotificationPreferenceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicies applies a predicate to check if query has an edge internal_policies. -func (f *NarrativeFilter) WhereHasInternalPolicies() { - f.Where(entql.HasEdge("internal_policies")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *NotificationPreferenceFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasInternalPoliciesWith applies a predicate to check if query has an edge internal_policies with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasInternalPoliciesWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policies", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *NotificationPreferenceFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedures applies a predicate to check if query has an edge procedures. -func (f *NarrativeFilter) WhereHasProcedures() { - f.Where(entql.HasEdge("procedures")) +// WhereHasNotificationTemplate applies a predicate to check if query has an edge notification_template. +func (f *NotificationPreferenceFilter) WhereHasNotificationTemplate() { + f.Where(entql.HasEdge("notification_template")) } -// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). -func (f *NarrativeFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNotificationTemplateWith applies a predicate to check if query has an edge notification_template with a given conditions (other predicates). +func (f *NotificationPreferenceFilter) WhereHasNotificationTemplateWith(preds ...predicate.NotificationTemplate) { + f.Where(entql.HasEdgeWith("notification_template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -32920,282 +34271,274 @@ func (f *NarrativeFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { } // addPredicate implements the predicateAdder interface. -func (_q *NoteQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *NotificationTemplateQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NoteQuery builder. -func (_q *NoteQuery) Filter() *NoteFilter { - return &NoteFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the NotificationTemplateQuery builder. +func (_q *NotificationTemplateQuery) Filter() *NotificationTemplateFilter { + return &NotificationTemplateFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *NoteMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *NotificationTemplateMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NoteMutation builder. -func (m *NoteMutation) Filter() *NoteFilter { - return &NoteFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the NotificationTemplateMutation builder. +func (m *NotificationTemplateMutation) Filter() *NotificationTemplateFilter { + return &NotificationTemplateFilter{config: m.config, predicateAdder: m} } -// NoteFilter provides a generic filtering capability at runtime for NoteQuery. -type NoteFilter struct { +// NotificationTemplateFilter provides a generic filtering capability at runtime for NotificationTemplateQuery. +type NotificationTemplateFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NoteFilter) Where(p entql.P) { +func (f *NotificationTemplateFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[51].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[54].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NoteFilter) WhereID(p entql.StringP) { - f.Where(p.Field(note.FieldID)) +func (f *NotificationTemplateFilter) WhereID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NoteFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldCreatedAt)) +func (f *NotificationTemplateFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(notificationtemplate.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NoteFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldUpdatedAt)) +func (f *NotificationTemplateFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(notificationtemplate.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NoteFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(note.FieldCreatedBy)) +func (f *NotificationTemplateFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NoteFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(note.FieldUpdatedBy)) +func (f *NotificationTemplateFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NoteFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldDeletedAt)) +func (f *NotificationTemplateFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(notificationtemplate.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NoteFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(note.FieldDeletedBy)) +func (f *NotificationTemplateFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldDeletedBy)) } -// WhereDisplayID applies the entql string predicate on the display_id field. -func (f *NoteFilter) WhereDisplayID(p entql.StringP) { - f.Where(p.Field(note.FieldDisplayID)) +// WhereRevision applies the entql string predicate on the revision field. +func (f *NotificationTemplateFilter) WhereRevision(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldRevision)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NoteFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(note.FieldOwnerID)) +func (f *NotificationTemplateFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldOwnerID)) } -// WhereTitle applies the entql string predicate on the title field. -func (f *NoteFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(note.FieldTitle)) +// WhereSystemOwned applies the entql bool predicate on the system_owned field. +func (f *NotificationTemplateFilter) WhereSystemOwned(p entql.BoolP) { + f.Where(p.Field(notificationtemplate.FieldSystemOwned)) } -// WhereText applies the entql string predicate on the text field. -func (f *NoteFilter) WhereText(p entql.StringP) { - f.Where(p.Field(note.FieldText)) +// WhereInternalNotes applies the entql string predicate on the internal_notes field. +func (f *NotificationTemplateFilter) WhereInternalNotes(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldInternalNotes)) } -// WhereTextJSON applies the entql json.RawMessage predicate on the text_json field. -func (f *NoteFilter) WhereTextJSON(p entql.BytesP) { - f.Where(p.Field(note.FieldTextJSON)) +// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. +func (f *NotificationTemplateFilter) WhereSystemInternalID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldSystemInternalID)) } -// WhereNoteRef applies the entql string predicate on the note_ref field. -func (f *NoteFilter) WhereNoteRef(p entql.StringP) { - f.Where(p.Field(note.FieldNoteRef)) +// WhereKey applies the entql string predicate on the key field. +func (f *NotificationTemplateFilter) WhereKey(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldKey)) } -// WhereDiscussionID applies the entql string predicate on the discussion_id field. -func (f *NoteFilter) WhereDiscussionID(p entql.StringP) { - f.Where(p.Field(note.FieldDiscussionID)) +// WhereName applies the entql string predicate on the name field. +func (f *NotificationTemplateFilter) WhereName(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldName)) } -// WhereIsEdited applies the entql bool predicate on the is_edited field. -func (f *NoteFilter) WhereIsEdited(p entql.BoolP) { - f.Where(p.Field(note.FieldIsEdited)) +// WhereDescription applies the entql string predicate on the description field. +func (f *NotificationTemplateFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldDescription)) } -// WhereTrustCenterID applies the entql string predicate on the trust_center_id field. -func (f *NoteFilter) WhereTrustCenterID(p entql.StringP) { - f.Where(p.Field(note.FieldTrustCenterID)) +// WhereChannel applies the entql string predicate on the channel field. +func (f *NotificationTemplateFilter) WhereChannel(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldChannel)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NoteFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereFormat applies the entql string predicate on the format field. +func (f *NotificationTemplateFilter) WhereFormat(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldFormat)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NoteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereLocale applies the entql string predicate on the locale field. +func (f *NotificationTemplateFilter) WhereLocale(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldLocale)) } -// WhereHasTask applies a predicate to check if query has an edge task. -func (f *NoteFilter) WhereHasTask() { - f.Where(entql.HasEdge("task")) +// WhereTopicPattern applies the entql string predicate on the topic_pattern field. +func (f *NotificationTemplateFilter) WhereTopicPattern(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldTopicPattern)) } -// WhereHasTaskWith applies a predicate to check if query has an edge task with a given conditions (other predicates). -func (f *NoteFilter) WhereHasTaskWith(preds ...predicate.Task) { - f.Where(entql.HasEdgeWith("task", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereIntegrationID applies the entql string predicate on the integration_id field. +func (f *NotificationTemplateFilter) WhereIntegrationID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldIntegrationID)) } -// WhereHasControl applies a predicate to check if query has an edge control. -func (f *NoteFilter) WhereHasControl() { - f.Where(entql.HasEdge("control")) +// WhereDestinations applies the entql json.RawMessage predicate on the destinations field. +func (f *NotificationTemplateFilter) WhereDestinations(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldDestinations)) } -// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). -func (f *NoteFilter) WhereHasControlWith(preds ...predicate.Control) { - f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereWorkflowDefinitionID applies the entql string predicate on the workflow_definition_id field. +func (f *NotificationTemplateFilter) WhereWorkflowDefinitionID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldWorkflowDefinitionID)) } -// WhereHasSubcontrol applies a predicate to check if query has an edge subcontrol. -func (f *NoteFilter) WhereHasSubcontrol() { - f.Where(entql.HasEdge("subcontrol")) +// WhereEmailTemplateID applies the entql string predicate on the email_template_id field. +func (f *NotificationTemplateFilter) WhereEmailTemplateID(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldEmailTemplateID)) } -// WhereHasSubcontrolWith applies a predicate to check if query has an edge subcontrol with a given conditions (other predicates). -func (f *NoteFilter) WhereHasSubcontrolWith(preds ...predicate.Subcontrol) { - f.Where(entql.HasEdgeWith("subcontrol", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTitleTemplate applies the entql string predicate on the title_template field. +func (f *NotificationTemplateFilter) WhereTitleTemplate(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldTitleTemplate)) } -// WhereHasProcedure applies a predicate to check if query has an edge procedure. -func (f *NoteFilter) WhereHasProcedure() { - f.Where(entql.HasEdge("procedure")) +// WhereSubjectTemplate applies the entql string predicate on the subject_template field. +func (f *NotificationTemplateFilter) WhereSubjectTemplate(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldSubjectTemplate)) +} + +// WhereBodyTemplate applies the entql string predicate on the body_template field. +func (f *NotificationTemplateFilter) WhereBodyTemplate(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldBodyTemplate)) +} + +// WhereBlocks applies the entql json.RawMessage predicate on the blocks field. +func (f *NotificationTemplateFilter) WhereBlocks(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldBlocks)) +} + +// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. +func (f *NotificationTemplateFilter) WhereJsonconfig(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldJsonconfig)) } -// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). -func (f *NoteFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { - f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUischema applies the entql json.RawMessage predicate on the uischema field. +func (f *NotificationTemplateFilter) WhereUischema(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldUischema)) } -// WhereHasRisk applies a predicate to check if query has an edge risk. -func (f *NoteFilter) WhereHasRisk() { - f.Where(entql.HasEdge("risk")) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *NotificationTemplateFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldMetadata)) } -// WhereHasRiskWith applies a predicate to check if query has an edge risk with a given conditions (other predicates). -func (f *NoteFilter) WhereHasRiskWith(preds ...predicate.Risk) { - f.Where(entql.HasEdgeWith("risk", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereActive applies the entql bool predicate on the active field. +func (f *NotificationTemplateFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(notificationtemplate.FieldActive)) } -// WhereHasInternalPolicy applies a predicate to check if query has an edge internal_policy. -func (f *NoteFilter) WhereHasInternalPolicy() { - f.Where(entql.HasEdge("internal_policy")) +// WhereVersion applies the entql int predicate on the version field. +func (f *NotificationTemplateFilter) WhereVersion(p entql.IntP) { + f.Where(p.Field(notificationtemplate.FieldVersion)) } -// WhereHasInternalPolicyWith applies a predicate to check if query has an edge internal_policy with a given conditions (other predicates). -func (f *NoteFilter) WhereHasInternalPolicyWith(preds ...predicate.InternalPolicy) { - f.Where(entql.HasEdgeWith("internal_policy", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTemplateContext applies the entql string predicate on the template_context field. +func (f *NotificationTemplateFilter) WhereTemplateContext(p entql.StringP) { + f.Where(p.Field(notificationtemplate.FieldTemplateContext)) } -// WhereHasEvidence applies a predicate to check if query has an edge evidence. -func (f *NoteFilter) WhereHasEvidence() { - f.Where(entql.HasEdge("evidence")) +// WhereDefaults applies the entql json.RawMessage predicate on the defaults field. +func (f *NotificationTemplateFilter) WhereDefaults(p entql.BytesP) { + f.Where(p.Field(notificationtemplate.FieldDefaults)) } -// WhereHasEvidenceWith applies a predicate to check if query has an edge evidence with a given conditions (other predicates). -func (f *NoteFilter) WhereHasEvidenceWith(preds ...predicate.Evidence) { - f.Where(entql.HasEdgeWith("evidence", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *NotificationTemplateFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *NotificationTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTrustCenter applies a predicate to check if query has an edge trust_center. -func (f *NoteFilter) WhereHasTrustCenter() { - f.Where(entql.HasEdge("trust_center")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *NotificationTemplateFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasTrustCenterWith applies a predicate to check if query has an edge trust_center with a given conditions (other predicates). -func (f *NoteFilter) WhereHasTrustCenterWith(preds ...predicate.TrustCenter) { - f.Where(entql.HasEdgeWith("trust_center", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *NotificationTemplateFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDiscussion applies a predicate to check if query has an edge discussion. -func (f *NoteFilter) WhereHasDiscussion() { - f.Where(entql.HasEdge("discussion")) +// WhereHasWorkflowDefinition applies a predicate to check if query has an edge workflow_definition. +func (f *NotificationTemplateFilter) WhereHasWorkflowDefinition() { + f.Where(entql.HasEdge("workflow_definition")) } -// WhereHasDiscussionWith applies a predicate to check if query has an edge discussion with a given conditions (other predicates). -func (f *NoteFilter) WhereHasDiscussionWith(preds ...predicate.Discussion) { - f.Where(entql.HasEdgeWith("discussion", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowDefinitionWith applies a predicate to check if query has an edge workflow_definition with a given conditions (other predicates). +func (f *NotificationTemplateFilter) WhereHasWorkflowDefinitionWith(preds ...predicate.WorkflowDefinition) { + f.Where(entql.HasEdgeWith("workflow_definition", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTrustCenterFaqs applies a predicate to check if query has an edge trust_center_faqs. -func (f *NoteFilter) WhereHasTrustCenterFaqs() { - f.Where(entql.HasEdge("trust_center_faqs")) +// WhereHasEmailTemplate applies a predicate to check if query has an edge email_template. +func (f *NotificationTemplateFilter) WhereHasEmailTemplate() { + f.Where(entql.HasEdge("email_template")) } -// WhereHasTrustCenterFaqsWith applies a predicate to check if query has an edge trust_center_faqs with a given conditions (other predicates). -func (f *NoteFilter) WhereHasTrustCenterFaqsWith(preds ...predicate.TrustCenterFAQ) { - f.Where(entql.HasEdgeWith("trust_center_faqs", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEmailTemplateWith applies a predicate to check if query has an edge email_template with a given conditions (other predicates). +func (f *NotificationTemplateFilter) WhereHasEmailTemplateWith(preds ...predicate.EmailTemplate) { + f.Where(entql.HasEdgeWith("email_template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *NoteFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasNotifications applies a predicate to check if query has an edge notifications. +func (f *NotificationTemplateFilter) WhereHasNotifications() { + f.Where(entql.HasEdge("notifications")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *NoteFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNotificationsWith applies a predicate to check if query has an edge notifications with a given conditions (other predicates). +func (f *NotificationTemplateFilter) WhereHasNotificationsWith(preds ...predicate.Notification) { + f.Where(entql.HasEdgeWith("notifications", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -33203,133 +34546,187 @@ func (f *NoteFilter) WhereHasFilesWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (_q *NotificationQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *OnboardingQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NotificationQuery builder. -func (_q *NotificationQuery) Filter() *NotificationFilter { - return &NotificationFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the OnboardingQuery builder. +func (_q *OnboardingQuery) Filter() *OnboardingFilter { + return &OnboardingFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *NotificationMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OnboardingMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NotificationMutation builder. -func (m *NotificationMutation) Filter() *NotificationFilter { - return &NotificationFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OnboardingMutation builder. +func (m *OnboardingMutation) Filter() *OnboardingFilter { + return &OnboardingFilter{config: m.config, predicateAdder: m} } -// NotificationFilter provides a generic filtering capability at runtime for NotificationQuery. -type NotificationFilter struct { +// OnboardingFilter provides a generic filtering capability at runtime for OnboardingQuery. +type OnboardingFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NotificationFilter) Where(p entql.P) { +func (f *OnboardingFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[52].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[55].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NotificationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(notification.FieldID)) +func (f *OnboardingFilter) WhereID(p entql.StringP) { + f.Where(p.Field(onboarding.FieldID)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NotificationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(notification.FieldCreatedAt)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OnboardingFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(onboarding.FieldDeletedAt)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NotificationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(notification.FieldUpdatedAt)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OnboardingFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(onboarding.FieldDeletedBy)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NotificationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(notification.FieldCreatedBy)) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OnboardingFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(onboarding.FieldOrganizationID)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NotificationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(notification.FieldUpdatedBy)) +// WhereCompanyName applies the entql string predicate on the company_name field. +func (f *OnboardingFilter) WhereCompanyName(p entql.StringP) { + f.Where(p.Field(onboarding.FieldCompanyName)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *NotificationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(notification.FieldTags)) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *OnboardingFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(onboarding.FieldDomains)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NotificationFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(notification.FieldOwnerID)) +// WhereCompanyDetails applies the entql json.RawMessage predicate on the company_details field. +func (f *OnboardingFilter) WhereCompanyDetails(p entql.BytesP) { + f.Where(p.Field(onboarding.FieldCompanyDetails)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *NotificationFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(notification.FieldUserID)) +// WhereUserDetails applies the entql json.RawMessage predicate on the user_details field. +func (f *OnboardingFilter) WhereUserDetails(p entql.BytesP) { + f.Where(p.Field(onboarding.FieldUserDetails)) } -// WhereNotificationType applies the entql string predicate on the notification_type field. -func (f *NotificationFilter) WhereNotificationType(p entql.StringP) { - f.Where(p.Field(notification.FieldNotificationType)) +// WhereCompliance applies the entql json.RawMessage predicate on the compliance field. +func (f *OnboardingFilter) WhereCompliance(p entql.BytesP) { + f.Where(p.Field(onboarding.FieldCompliance)) } -// WhereObjectType applies the entql string predicate on the object_type field. -func (f *NotificationFilter) WhereObjectType(p entql.StringP) { - f.Where(p.Field(notification.FieldObjectType)) +// WhereDemoRequested applies the entql bool predicate on the demo_requested field. +func (f *OnboardingFilter) WhereDemoRequested(p entql.BoolP) { + f.Where(p.Field(onboarding.FieldDemoRequested)) } -// WhereTitle applies the entql string predicate on the title field. -func (f *NotificationFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(notification.FieldTitle)) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *OnboardingFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereBody applies the entql string predicate on the body field. -func (f *NotificationFilter) WhereBody(p entql.StringP) { - f.Where(p.Field(notification.FieldBody)) +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *OnboardingFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereData applies the entql json.RawMessage predicate on the data field. -func (f *NotificationFilter) WhereData(p entql.BytesP) { - f.Where(p.Field(notification.FieldData)) +// addPredicate implements the predicateAdder interface. +func (_q *OrgMembershipQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OrgMembershipQuery builder. +func (_q *OrgMembershipQuery) Filter() *OrgMembershipFilter { + return &OrgMembershipFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *OrgMembershipMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OrgMembershipMutation builder. +func (m *OrgMembershipMutation) Filter() *OrgMembershipFilter { + return &OrgMembershipFilter{config: m.config, predicateAdder: m} +} + +// OrgMembershipFilter provides a generic filtering capability at runtime for OrgMembershipQuery. +type OrgMembershipFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OrgMembershipFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[56].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OrgMembershipFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrgMembershipFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembership.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrgMembershipFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembership.FieldUpdatedAt)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *NotificationFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(notification.FieldTemplateID)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrgMembershipFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldCreatedBy)) } -// WhereReadAt applies the entql time.Time predicate on the read_at field. -func (f *NotificationFilter) WhereReadAt(p entql.TimeP) { - f.Where(p.Field(notification.FieldReadAt)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrgMembershipFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldUpdatedBy)) } -// WhereChannels applies the entql json.RawMessage predicate on the channels field. -func (f *NotificationFilter) WhereChannels(p entql.BytesP) { - f.Where(p.Field(notification.FieldChannels)) +// WhereRole applies the entql string predicate on the role field. +func (f *OrgMembershipFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldRole)) } -// WhereTopic applies the entql string predicate on the topic field. -func (f *NotificationFilter) WhereTopic(p entql.StringP) { - f.Where(p.Field(notification.FieldTopic)) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OrgMembershipFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldOrganizationID)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NotificationFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *OrgMembershipFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldUserID)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NotificationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *OrgMembershipFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) +} + +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *OrgMembershipFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -33337,12 +34734,12 @@ func (f *NotificationFilter) WhereHasOwnerWith(preds ...predicate.Organization) } // WhereHasUser applies a predicate to check if query has an edge user. -func (f *NotificationFilter) WhereHasUser() { +func (f *OrgMembershipFilter) WhereHasUser() { f.Where(entql.HasEdge("user")) } // WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *NotificationFilter) WhereHasUserWith(preds ...predicate.User) { +func (f *OrgMembershipFilter) WhereHasUserWith(preds ...predicate.User) { f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -33350,14 +34747,14 @@ func (f *NotificationFilter) WhereHasUserWith(preds ...predicate.User) { }))) } -// WhereHasNotificationTemplate applies a predicate to check if query has an edge notification_template. -func (f *NotificationFilter) WhereHasNotificationTemplate() { - f.Where(entql.HasEdge("notification_template")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *OrgMembershipFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasNotificationTemplateWith applies a predicate to check if query has an edge notification_template with a given conditions (other predicates). -func (f *NotificationFilter) WhereHasNotificationTemplateWith(preds ...predicate.NotificationTemplate) { - f.Where(entql.HasEdgeWith("notification_template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -33365,192 +34762,137 @@ func (f *NotificationFilter) WhereHasNotificationTemplateWith(preds ...predicate } // addPredicate implements the predicateAdder interface. -func (_q *NotificationPreferenceQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *OrgModuleQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NotificationPreferenceQuery builder. -func (_q *NotificationPreferenceQuery) Filter() *NotificationPreferenceFilter { - return &NotificationPreferenceFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the OrgModuleQuery builder. +func (_q *OrgModuleQuery) Filter() *OrgModuleFilter { + return &OrgModuleFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *NotificationPreferenceMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrgModuleMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NotificationPreferenceMutation builder. -func (m *NotificationPreferenceMutation) Filter() *NotificationPreferenceFilter { - return &NotificationPreferenceFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrgModuleMutation builder. +func (m *OrgModuleMutation) Filter() *OrgModuleFilter { + return &OrgModuleFilter{config: m.config, predicateAdder: m} } -// NotificationPreferenceFilter provides a generic filtering capability at runtime for NotificationPreferenceQuery. -type NotificationPreferenceFilter struct { +// OrgModuleFilter provides a generic filtering capability at runtime for OrgModuleQuery. +type OrgModuleFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NotificationPreferenceFilter) Where(p entql.P) { +func (f *OrgModuleFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[53].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[57].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NotificationPreferenceFilter) WhereID(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldID)) +func (f *OrgModuleFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NotificationPreferenceFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldCreatedAt)) +func (f *OrgModuleFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgmodule.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NotificationPreferenceFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldUpdatedAt)) +func (f *OrgModuleFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgmodule.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NotificationPreferenceFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldCreatedBy)) +func (f *OrgModuleFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NotificationPreferenceFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldUpdatedBy)) +func (f *OrgModuleFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NotificationPreferenceFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldDeletedAt)) +func (f *OrgModuleFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgmodule.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NotificationPreferenceFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NotificationPreferenceFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldOwnerID)) -} - -// WhereUserID applies the entql string predicate on the user_id field. -func (f *NotificationPreferenceFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldUserID)) -} - -// WhereChannel applies the entql string predicate on the channel field. -func (f *NotificationPreferenceFilter) WhereChannel(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldChannel)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *NotificationPreferenceFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldStatus)) -} - -// WhereProvider applies the entql string predicate on the provider field. -func (f *NotificationPreferenceFilter) WhereProvider(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldProvider)) -} - -// WhereDestination applies the entql string predicate on the destination field. -func (f *NotificationPreferenceFilter) WhereDestination(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldDestination)) -} - -// WhereConfig applies the entql json.RawMessage predicate on the config field. -func (f *NotificationPreferenceFilter) WhereConfig(p entql.BytesP) { - f.Where(p.Field(notificationpreference.FieldConfig)) -} - -// WhereEnabled applies the entql bool predicate on the enabled field. -func (f *NotificationPreferenceFilter) WhereEnabled(p entql.BoolP) { - f.Where(p.Field(notificationpreference.FieldEnabled)) -} - -// WhereCadence applies the entql string predicate on the cadence field. -func (f *NotificationPreferenceFilter) WhereCadence(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldCadence)) -} - -// WherePriority applies the entql string predicate on the priority field. -func (f *NotificationPreferenceFilter) WherePriority(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldPriority)) -} - -// WhereTopicPatterns applies the entql json.RawMessage predicate on the topic_patterns field. -func (f *NotificationPreferenceFilter) WhereTopicPatterns(p entql.BytesP) { - f.Where(p.Field(notificationpreference.FieldTopicPatterns)) +func (f *OrgModuleFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldDeletedBy)) } -// WhereTopicOverrides applies the entql json.RawMessage predicate on the topic_overrides field. -func (f *NotificationPreferenceFilter) WhereTopicOverrides(p entql.BytesP) { - f.Where(p.Field(notificationpreference.FieldTopicOverrides)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrgModuleFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(orgmodule.FieldTags)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *NotificationPreferenceFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldTemplateID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *OrgModuleFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldOwnerID)) } -// WhereMuteUntil applies the entql time.Time predicate on the mute_until field. -func (f *NotificationPreferenceFilter) WhereMuteUntil(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldMuteUntil)) +// WhereModule applies the entql string predicate on the module field. +func (f *OrgModuleFilter) WhereModule(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldModule)) } -// WhereQuietHoursStart applies the entql string predicate on the quiet_hours_start field. -func (f *NotificationPreferenceFilter) WhereQuietHoursStart(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldQuietHoursStart)) +// WherePrice applies the entql json.RawMessage predicate on the price field. +func (f *OrgModuleFilter) WherePrice(p entql.BytesP) { + f.Where(p.Field(orgmodule.FieldPrice)) } -// WhereQuietHoursEnd applies the entql string predicate on the quiet_hours_end field. -func (f *NotificationPreferenceFilter) WhereQuietHoursEnd(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldQuietHoursEnd)) +// WhereStripePriceID applies the entql string predicate on the stripe_price_id field. +func (f *OrgModuleFilter) WhereStripePriceID(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldStripePriceID)) } -// WhereTimezone applies the entql string predicate on the timezone field. -func (f *NotificationPreferenceFilter) WhereTimezone(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldTimezone)) +// WhereStatus applies the entql string predicate on the status field. +func (f *OrgModuleFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldStatus)) } -// WhereIsDefault applies the entql bool predicate on the is_default field. -func (f *NotificationPreferenceFilter) WhereIsDefault(p entql.BoolP) { - f.Where(p.Field(notificationpreference.FieldIsDefault)) +// WhereVisibility applies the entql string predicate on the visibility field. +func (f *OrgModuleFilter) WhereVisibility(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldVisibility)) } -// WhereVerifiedAt applies the entql time.Time predicate on the verified_at field. -func (f *NotificationPreferenceFilter) WhereVerifiedAt(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldVerifiedAt)) +// WhereActive applies the entql bool predicate on the active field. +func (f *OrgModuleFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(orgmodule.FieldActive)) } -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *NotificationPreferenceFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(notificationpreference.FieldLastUsedAt)) +// WhereModuleLookupKey applies the entql string predicate on the module_lookup_key field. +func (f *OrgModuleFilter) WhereModuleLookupKey(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldModuleLookupKey)) } -// WhereLastError applies the entql string predicate on the last_error field. -func (f *NotificationPreferenceFilter) WhereLastError(p entql.StringP) { - f.Where(p.Field(notificationpreference.FieldLastError)) +// WhereSubscriptionID applies the entql string predicate on the subscription_id field. +func (f *OrgModuleFilter) WhereSubscriptionID(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldSubscriptionID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *NotificationPreferenceFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(notificationpreference.FieldMetadata)) +// WherePriceID applies the entql string predicate on the price_id field. +func (f *OrgModuleFilter) WherePriceID(p entql.StringP) { + f.Where(p.Field(orgmodule.FieldPriceID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NotificationPreferenceFilter) WhereHasOwner() { +func (f *OrgModuleFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NotificationPreferenceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *OrgModuleFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -33558,28 +34900,42 @@ func (f *NotificationPreferenceFilter) WhereHasOwnerWith(preds ...predicate.Orga }))) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *NotificationPreferenceFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. +func (f *OrgModuleFilter) WhereHasOrgSubscription() { + f.Where(entql.HasEdge("org_subscription")) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *NotificationPreferenceFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). +func (f *OrgModuleFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { + f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOrgProducts applies a predicate to check if query has an edge org_products. +func (f *OrgModuleFilter) WhereHasOrgProducts() { + f.Where(entql.HasEdge("org_products")) +} + +// WhereHasOrgProductsWith applies a predicate to check if query has an edge org_products with a given conditions (other predicates). +func (f *OrgModuleFilter) WhereHasOrgProductsWith(preds ...predicate.OrgProduct) { + f.Where(entql.HasEdgeWith("org_products", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNotificationTemplate applies a predicate to check if query has an edge notification_template. -func (f *NotificationPreferenceFilter) WhereHasNotificationTemplate() { - f.Where(entql.HasEdge("notification_template")) +// WhereHasOrgPrices applies a predicate to check if query has an edge org_prices. +func (f *OrgModuleFilter) WhereHasOrgPrices() { + f.Where(entql.HasEdge("org_prices")) } -// WhereHasNotificationTemplateWith applies a predicate to check if query has an edge notification_template with a given conditions (other predicates). -func (f *NotificationPreferenceFilter) WhereHasNotificationTemplateWith(preds ...predicate.NotificationTemplate) { - f.Where(entql.HasEdgeWith("notification_template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgPricesWith applies a predicate to check if query has an edge org_prices with a given conditions (other predicates). +func (f *OrgModuleFilter) WhereHasOrgPricesWith(preds ...predicate.OrgPrice) { + f.Where(entql.HasEdgeWith("org_prices", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -33587,217 +34943,288 @@ func (f *NotificationPreferenceFilter) WhereHasNotificationTemplateWith(preds .. } // addPredicate implements the predicateAdder interface. -func (_q *NotificationTemplateQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *OrgPriceQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NotificationTemplateQuery builder. -func (_q *NotificationTemplateQuery) Filter() *NotificationTemplateFilter { - return &NotificationTemplateFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the OrgPriceQuery builder. +func (_q *OrgPriceQuery) Filter() *OrgPriceFilter { + return &OrgPriceFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *NotificationTemplateMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrgPriceMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NotificationTemplateMutation builder. -func (m *NotificationTemplateMutation) Filter() *NotificationTemplateFilter { - return &NotificationTemplateFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrgPriceMutation builder. +func (m *OrgPriceMutation) Filter() *OrgPriceFilter { + return &OrgPriceFilter{config: m.config, predicateAdder: m} } -// NotificationTemplateFilter provides a generic filtering capability at runtime for NotificationTemplateQuery. -type NotificationTemplateFilter struct { +// OrgPriceFilter provides a generic filtering capability at runtime for OrgPriceQuery. +type OrgPriceFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NotificationTemplateFilter) Where(p entql.P) { +func (f *OrgPriceFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[54].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NotificationTemplateFilter) WhereID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldID)) +func (f *OrgPriceFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgprice.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NotificationTemplateFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(notificationtemplate.FieldCreatedAt)) +func (f *OrgPriceFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgprice.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NotificationTemplateFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(notificationtemplate.FieldUpdatedAt)) +func (f *OrgPriceFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgprice.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NotificationTemplateFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldCreatedBy)) +func (f *OrgPriceFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgprice.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NotificationTemplateFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldUpdatedBy)) +func (f *OrgPriceFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgprice.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NotificationTemplateFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(notificationtemplate.FieldDeletedAt)) +func (f *OrgPriceFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgprice.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NotificationTemplateFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldDeletedBy)) +func (f *OrgPriceFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgprice.FieldDeletedBy)) } -// WhereRevision applies the entql string predicate on the revision field. -func (f *NotificationTemplateFilter) WhereRevision(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldRevision)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrgPriceFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(orgprice.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NotificationTemplateFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldOwnerID)) +func (f *OrgPriceFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(orgprice.FieldOwnerID)) } -// WhereSystemOwned applies the entql bool predicate on the system_owned field. -func (f *NotificationTemplateFilter) WhereSystemOwned(p entql.BoolP) { - f.Where(p.Field(notificationtemplate.FieldSystemOwned)) +// WherePrice applies the entql json.RawMessage predicate on the price field. +func (f *OrgPriceFilter) WherePrice(p entql.BytesP) { + f.Where(p.Field(orgprice.FieldPrice)) } -// WhereInternalNotes applies the entql string predicate on the internal_notes field. -func (f *NotificationTemplateFilter) WhereInternalNotes(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldInternalNotes)) +// WhereStripePriceID applies the entql string predicate on the stripe_price_id field. +func (f *OrgPriceFilter) WhereStripePriceID(p entql.StringP) { + f.Where(p.Field(orgprice.FieldStripePriceID)) } -// WhereSystemInternalID applies the entql string predicate on the system_internal_id field. -func (f *NotificationTemplateFilter) WhereSystemInternalID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldSystemInternalID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *OrgPriceFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(orgprice.FieldStatus)) } -// WhereKey applies the entql string predicate on the key field. -func (f *NotificationTemplateFilter) WhereKey(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldKey)) +// WhereActive applies the entql bool predicate on the active field. +func (f *OrgPriceFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(orgprice.FieldActive)) } -// WhereName applies the entql string predicate on the name field. -func (f *NotificationTemplateFilter) WhereName(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldName)) +// WhereProductID applies the entql string predicate on the product_id field. +func (f *OrgPriceFilter) WhereProductID(p entql.StringP) { + f.Where(p.Field(orgprice.FieldProductID)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *NotificationTemplateFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldDescription)) +// WhereSubscriptionID applies the entql string predicate on the subscription_id field. +func (f *OrgPriceFilter) WhereSubscriptionID(p entql.StringP) { + f.Where(p.Field(orgprice.FieldSubscriptionID)) } -// WhereChannel applies the entql string predicate on the channel field. -func (f *NotificationTemplateFilter) WhereChannel(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldChannel)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *OrgPriceFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereFormat applies the entql string predicate on the format field. -func (f *NotificationTemplateFilter) WhereFormat(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldFormat)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *OrgPriceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereLocale applies the entql string predicate on the locale field. -func (f *NotificationTemplateFilter) WhereLocale(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldLocale)) +// WhereHasOrgProducts applies a predicate to check if query has an edge org_products. +func (f *OrgPriceFilter) WhereHasOrgProducts() { + f.Where(entql.HasEdge("org_products")) } -// WhereTopicPattern applies the entql string predicate on the topic_pattern field. -func (f *NotificationTemplateFilter) WhereTopicPattern(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldTopicPattern)) +// WhereHasOrgProductsWith applies a predicate to check if query has an edge org_products with a given conditions (other predicates). +func (f *OrgPriceFilter) WhereHasOrgProductsWith(preds ...predicate.OrgProduct) { + f.Where(entql.HasEdgeWith("org_products", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereIntegrationID applies the entql string predicate on the integration_id field. -func (f *NotificationTemplateFilter) WhereIntegrationID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldIntegrationID)) +// WhereHasOrgModules applies a predicate to check if query has an edge org_modules. +func (f *OrgPriceFilter) WhereHasOrgModules() { + f.Where(entql.HasEdge("org_modules")) } -// WhereDestinations applies the entql json.RawMessage predicate on the destinations field. -func (f *NotificationTemplateFilter) WhereDestinations(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldDestinations)) +// WhereHasOrgModulesWith applies a predicate to check if query has an edge org_modules with a given conditions (other predicates). +func (f *OrgPriceFilter) WhereHasOrgModulesWith(preds ...predicate.OrgModule) { + f.Where(entql.HasEdgeWith("org_modules", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereWorkflowDefinitionID applies the entql string predicate on the workflow_definition_id field. -func (f *NotificationTemplateFilter) WhereWorkflowDefinitionID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldWorkflowDefinitionID)) +// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. +func (f *OrgPriceFilter) WhereHasOrgSubscription() { + f.Where(entql.HasEdge("org_subscription")) } -// WhereEmailTemplateID applies the entql string predicate on the email_template_id field. -func (f *NotificationTemplateFilter) WhereEmailTemplateID(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldEmailTemplateID)) +// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). +func (f *OrgPriceFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { + f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTitleTemplate applies the entql string predicate on the title_template field. -func (f *NotificationTemplateFilter) WhereTitleTemplate(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldTitleTemplate)) +// addPredicate implements the predicateAdder interface. +func (_q *OrgProductQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) } -// WhereSubjectTemplate applies the entql string predicate on the subject_template field. -func (f *NotificationTemplateFilter) WhereSubjectTemplate(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldSubjectTemplate)) +// Filter returns a Filter implementation to apply filters on the OrgProductQuery builder. +func (_q *OrgProductQuery) Filter() *OrgProductFilter { + return &OrgProductFilter{config: _q.config, predicateAdder: _q} } -// WhereBodyTemplate applies the entql string predicate on the body_template field. -func (f *NotificationTemplateFilter) WhereBodyTemplate(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldBodyTemplate)) +// addPredicate implements the predicateAdder interface. +func (m *OrgProductMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereBlocks applies the entql json.RawMessage predicate on the blocks field. -func (f *NotificationTemplateFilter) WhereBlocks(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldBlocks)) +// Filter returns an entql.Where implementation to apply filters on the OrgProductMutation builder. +func (m *OrgProductMutation) Filter() *OrgProductFilter { + return &OrgProductFilter{config: m.config, predicateAdder: m} +} + +// OrgProductFilter provides a generic filtering capability at runtime for OrgProductQuery. +type OrgProductFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OrgProductFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[59].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OrgProductFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrgProductFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgproduct.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrgProductFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgproduct.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrgProductFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrgProductFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrgProductFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgproduct.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrgProductFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrgProductFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(orgproduct.FieldTags)) } -// WhereJsonconfig applies the entql json.RawMessage predicate on the jsonconfig field. -func (f *NotificationTemplateFilter) WhereJsonconfig(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldJsonconfig)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *OrgProductFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldOwnerID)) } -// WhereUischema applies the entql json.RawMessage predicate on the uischema field. -func (f *NotificationTemplateFilter) WhereUischema(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldUischema)) +// WhereModule applies the entql string predicate on the module field. +func (f *OrgProductFilter) WhereModule(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldModule)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *NotificationTemplateFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldMetadata)) +// WhereStripeProductID applies the entql string predicate on the stripe_product_id field. +func (f *OrgProductFilter) WhereStripeProductID(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldStripeProductID)) } -// WhereActive applies the entql bool predicate on the active field. -func (f *NotificationTemplateFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(notificationtemplate.FieldActive)) +// WhereStatus applies the entql string predicate on the status field. +func (f *OrgProductFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldStatus)) } -// WhereVersion applies the entql int predicate on the version field. -func (f *NotificationTemplateFilter) WhereVersion(p entql.IntP) { - f.Where(p.Field(notificationtemplate.FieldVersion)) +// WhereActive applies the entql bool predicate on the active field. +func (f *OrgProductFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(orgproduct.FieldActive)) } -// WhereTemplateContext applies the entql string predicate on the template_context field. -func (f *NotificationTemplateFilter) WhereTemplateContext(p entql.StringP) { - f.Where(p.Field(notificationtemplate.FieldTemplateContext)) +// WhereSubscriptionID applies the entql string predicate on the subscription_id field. +func (f *OrgProductFilter) WhereSubscriptionID(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldSubscriptionID)) } -// WhereDefaults applies the entql json.RawMessage predicate on the defaults field. -func (f *NotificationTemplateFilter) WhereDefaults(p entql.BytesP) { - f.Where(p.Field(notificationtemplate.FieldDefaults)) +// WherePriceID applies the entql string predicate on the price_id field. +func (f *OrgProductFilter) WherePriceID(p entql.StringP) { + f.Where(p.Field(orgproduct.FieldPriceID)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NotificationTemplateFilter) WhereHasOwner() { +func (f *OrgProductFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NotificationTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *OrgProductFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -33805,56 +35232,42 @@ func (f *NotificationTemplateFilter) WhereHasOwnerWith(preds ...predicate.Organi }))) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *NotificationTemplateFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) -} - -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *NotificationTemplateFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasWorkflowDefinition applies a predicate to check if query has an edge workflow_definition. -func (f *NotificationTemplateFilter) WhereHasWorkflowDefinition() { - f.Where(entql.HasEdge("workflow_definition")) +// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. +func (f *OrgProductFilter) WhereHasOrgSubscription() { + f.Where(entql.HasEdge("org_subscription")) } -// WhereHasWorkflowDefinitionWith applies a predicate to check if query has an edge workflow_definition with a given conditions (other predicates). -func (f *NotificationTemplateFilter) WhereHasWorkflowDefinitionWith(preds ...predicate.WorkflowDefinition) { - f.Where(entql.HasEdgeWith("workflow_definition", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). +func (f *OrgProductFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { + f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEmailTemplate applies a predicate to check if query has an edge email_template. -func (f *NotificationTemplateFilter) WhereHasEmailTemplate() { - f.Where(entql.HasEdge("email_template")) +// WhereHasOrgPrices applies a predicate to check if query has an edge org_prices. +func (f *OrgProductFilter) WhereHasOrgPrices() { + f.Where(entql.HasEdge("org_prices")) } -// WhereHasEmailTemplateWith applies a predicate to check if query has an edge email_template with a given conditions (other predicates). -func (f *NotificationTemplateFilter) WhereHasEmailTemplateWith(preds ...predicate.EmailTemplate) { - f.Where(entql.HasEdgeWith("email_template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgPricesWith applies a predicate to check if query has an edge org_prices with a given conditions (other predicates). +func (f *OrgProductFilter) WhereHasOrgPricesWith(preds ...predicate.OrgPrice) { + f.Where(entql.HasEdgeWith("org_prices", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNotifications applies a predicate to check if query has an edge notifications. -func (f *NotificationTemplateFilter) WhereHasNotifications() { - f.Where(entql.HasEdge("notifications")) +// WhereHasOrgModules applies a predicate to check if query has an edge org_modules. +func (f *OrgProductFilter) WhereHasOrgModules() { + f.Where(entql.HasEdge("org_modules")) } -// WhereHasNotificationsWith applies a predicate to check if query has an edge notifications with a given conditions (other predicates). -func (f *NotificationTemplateFilter) WhereHasNotificationsWith(preds ...predicate.Notification) { - f.Where(entql.HasEdgeWith("notifications", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrgModulesWith applies a predicate to check if query has an edge org_modules with a given conditions (other predicates). +func (f *OrgProductFilter) WhereHasOrgModulesWith(preds ...predicate.OrgModule) { + f.Where(entql.HasEdgeWith("org_modules", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -33862,215 +35275,179 @@ func (f *NotificationTemplateFilter) WhereHasNotificationsWith(preds ...predicat } // addPredicate implements the predicateAdder interface. -func (_q *OnboardingQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *OrgSubscriptionQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OnboardingQuery builder. -func (_q *OnboardingQuery) Filter() *OnboardingFilter { - return &OnboardingFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the OrgSubscriptionQuery builder. +func (_q *OrgSubscriptionQuery) Filter() *OrgSubscriptionFilter { + return &OrgSubscriptionFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *OnboardingMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrgSubscriptionMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OnboardingMutation builder. -func (m *OnboardingMutation) Filter() *OnboardingFilter { - return &OnboardingFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrgSubscriptionMutation builder. +func (m *OrgSubscriptionMutation) Filter() *OrgSubscriptionFilter { + return &OrgSubscriptionFilter{config: m.config, predicateAdder: m} } -// OnboardingFilter provides a generic filtering capability at runtime for OnboardingQuery. -type OnboardingFilter struct { +// OrgSubscriptionFilter provides a generic filtering capability at runtime for OrgSubscriptionQuery. +type OrgSubscriptionFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OnboardingFilter) Where(p entql.P) { +func (f *OrgSubscriptionFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[55].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OnboardingFilter) WhereID(p entql.StringP) { - f.Where(p.Field(onboarding.FieldID)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OnboardingFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(onboarding.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OnboardingFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(onboarding.FieldDeletedBy)) -} - -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OnboardingFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(onboarding.FieldOrganizationID)) -} - -// WhereCompanyName applies the entql string predicate on the company_name field. -func (f *OnboardingFilter) WhereCompanyName(p entql.StringP) { - f.Where(p.Field(onboarding.FieldCompanyName)) -} - -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *OnboardingFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(onboarding.FieldDomains)) -} - -// WhereCompanyDetails applies the entql json.RawMessage predicate on the company_details field. -func (f *OnboardingFilter) WhereCompanyDetails(p entql.BytesP) { - f.Where(p.Field(onboarding.FieldCompanyDetails)) -} - -// WhereUserDetails applies the entql json.RawMessage predicate on the user_details field. -func (f *OnboardingFilter) WhereUserDetails(p entql.BytesP) { - f.Where(p.Field(onboarding.FieldUserDetails)) +func (f *OrgSubscriptionFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldID)) } -// WhereCompliance applies the entql json.RawMessage predicate on the compliance field. -func (f *OnboardingFilter) WhereCompliance(p entql.BytesP) { - f.Where(p.Field(onboarding.FieldCompliance)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrgSubscriptionFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgsubscription.FieldCreatedAt)) } -// WhereDemoRequested applies the entql bool predicate on the demo_requested field. -func (f *OnboardingFilter) WhereDemoRequested(p entql.BoolP) { - f.Where(p.Field(onboarding.FieldDemoRequested)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrgSubscriptionFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgsubscription.FieldUpdatedAt)) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *OnboardingFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrgSubscriptionFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldCreatedBy)) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *OnboardingFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrgSubscriptionFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldUpdatedBy)) } -// addPredicate implements the predicateAdder interface. -func (_q *OrgMembershipQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrgSubscriptionFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgsubscription.FieldDeletedAt)) } -// Filter returns a Filter implementation to apply filters on the OrgMembershipQuery builder. -func (_q *OrgMembershipQuery) Filter() *OrgMembershipFilter { - return &OrgMembershipFilter{config: _q.config, predicateAdder: _q} +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrgSubscriptionFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldDeletedBy)) } -// addPredicate implements the predicateAdder interface. -func (m *OrgMembershipMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrgSubscriptionFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(orgsubscription.FieldTags)) } -// Filter returns an entql.Where implementation to apply filters on the OrgMembershipMutation builder. -func (m *OrgMembershipMutation) Filter() *OrgMembershipFilter { - return &OrgMembershipFilter{config: m.config, predicateAdder: m} +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *OrgSubscriptionFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldOwnerID)) } -// OrgMembershipFilter provides a generic filtering capability at runtime for OrgMembershipQuery. -type OrgMembershipFilter struct { - predicateAdder - config +// WhereStripeSubscriptionID applies the entql string predicate on the stripe_subscription_id field. +func (f *OrgSubscriptionFilter) WhereStripeSubscriptionID(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldStripeSubscriptionID)) } -// Where applies the entql predicate on the query filter. -func (f *OrgMembershipFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[56].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereStripeSubscriptionStatus applies the entql string predicate on the stripe_subscription_status field. +func (f *OrgSubscriptionFilter) WhereStripeSubscriptionStatus(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldStripeSubscriptionStatus)) } -// WhereID applies the entql string predicate on the id field. -func (f *OrgMembershipFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldID)) +// WhereActive applies the entql bool predicate on the active field. +func (f *OrgSubscriptionFilter) WhereActive(p entql.BoolP) { + f.Where(p.Field(orgsubscription.FieldActive)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgMembershipFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembership.FieldCreatedAt)) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *OrgSubscriptionFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(orgsubscription.FieldExpiresAt)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgMembershipFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembership.FieldUpdatedAt)) +// WhereTrialExpiresAt applies the entql time.Time predicate on the trial_expires_at field. +func (f *OrgSubscriptionFilter) WhereTrialExpiresAt(p entql.TimeP) { + f.Where(p.Field(orgsubscription.FieldTrialExpiresAt)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgMembershipFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldCreatedBy)) +// WhereDaysUntilDue applies the entql string predicate on the days_until_due field. +func (f *OrgSubscriptionFilter) WhereDaysUntilDue(p entql.StringP) { + f.Where(p.Field(orgsubscription.FieldDaysUntilDue)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgMembershipFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldUpdatedBy)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *OrgSubscriptionFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereRole applies the entql string predicate on the role field. -func (f *OrgMembershipFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldRole)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *OrgSubscriptionFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OrgMembershipFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldOrganizationID)) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *OrgSubscriptionFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *OrgMembershipFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldUserID)) +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *OrgSubscriptionFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *OrgMembershipFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasModules applies a predicate to check if query has an edge modules. +func (f *OrgSubscriptionFilter) WhereHasModules() { + f.Where(entql.HasEdge("modules")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasModulesWith applies a predicate to check if query has an edge modules with a given conditions (other predicates). +func (f *OrgSubscriptionFilter) WhereHasModulesWith(preds ...predicate.OrgModule) { + f.Where(entql.HasEdgeWith("modules", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *OrgMembershipFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereHasProducts applies a predicate to check if query has an edge products. +func (f *OrgSubscriptionFilter) WhereHasProducts() { + f.Where(entql.HasEdge("products")) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProductsWith applies a predicate to check if query has an edge products with a given conditions (other predicates). +func (f *OrgSubscriptionFilter) WhereHasProductsWith(preds ...predicate.OrgProduct) { + f.Where(entql.HasEdgeWith("products", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *OrgMembershipFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasPrices applies a predicate to check if query has an edge prices. +func (f *OrgSubscriptionFilter) WhereHasPrices() { + f.Where(entql.HasEdge("prices")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPricesWith applies a predicate to check if query has an edge prices with a given conditions (other predicates). +func (f *OrgSubscriptionFilter) WhereHasPricesWith(preds ...predicate.OrgPrice) { + f.Where(entql.HasEdgeWith("prices", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -34078,901 +35455,1006 @@ func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (_q *OrgModuleQuery) addPredicate(pred func(s *sql.Selector)) { +func (_q *OrganizationQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrgModuleQuery builder. -func (_q *OrgModuleQuery) Filter() *OrgModuleFilter { - return &OrgModuleFilter{config: _q.config, predicateAdder: _q} +// Filter returns a Filter implementation to apply filters on the OrganizationQuery builder. +func (_q *OrganizationQuery) Filter() *OrganizationFilter { + return &OrganizationFilter{config: _q.config, predicateAdder: _q} } // addPredicate implements the predicateAdder interface. -func (m *OrgModuleMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrganizationMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrgModuleMutation builder. -func (m *OrgModuleMutation) Filter() *OrgModuleFilter { - return &OrgModuleFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder. +func (m *OrganizationMutation) Filter() *OrganizationFilter { + return &OrganizationFilter{config: m.config, predicateAdder: m} } -// OrgModuleFilter provides a generic filtering capability at runtime for OrgModuleQuery. -type OrgModuleFilter struct { +// OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery. +type OrganizationFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrgModuleFilter) Where(p entql.P) { +func (f *OrganizationFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[57].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrgModuleFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldID)) +func (f *OrganizationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(organization.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgModuleFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgmodule.FieldCreatedAt)) +func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgModuleFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgmodule.FieldUpdatedAt)) +func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgModuleFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldCreatedBy)) +func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgModuleFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldUpdatedBy)) +func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgModuleFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgmodule.FieldDeletedAt)) +func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgModuleFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldDeletedBy)) +func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrgModuleFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(orgmodule.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OrgModuleFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldOwnerID)) -} - -// WhereModule applies the entql string predicate on the module field. -func (f *OrgModuleFilter) WhereModule(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldModule)) -} - -// WherePrice applies the entql json.RawMessage predicate on the price field. -func (f *OrgModuleFilter) WherePrice(p entql.BytesP) { - f.Where(p.Field(orgmodule.FieldPrice)) -} - -// WhereStripePriceID applies the entql string predicate on the stripe_price_id field. -func (f *OrgModuleFilter) WhereStripePriceID(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldStripePriceID)) -} - -// WhereStatus applies the entql string predicate on the status field. -func (f *OrgModuleFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldStatus)) -} - -// WhereVisibility applies the entql string predicate on the visibility field. -func (f *OrgModuleFilter) WhereVisibility(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldVisibility)) +func (f *OrganizationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(organization.FieldTags)) } -// WhereActive applies the entql bool predicate on the active field. -func (f *OrgModuleFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(orgmodule.FieldActive)) +// WhereName applies the entql string predicate on the name field. +func (f *OrganizationFilter) WhereName(p entql.StringP) { + f.Where(p.Field(organization.FieldName)) } -// WhereModuleLookupKey applies the entql string predicate on the module_lookup_key field. -func (f *OrgModuleFilter) WhereModuleLookupKey(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldModuleLookupKey)) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *OrganizationFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(organization.FieldDisplayName)) } -// WhereSubscriptionID applies the entql string predicate on the subscription_id field. -func (f *OrgModuleFilter) WhereSubscriptionID(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldSubscriptionID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *OrganizationFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(organization.FieldDescription)) } -// WherePriceID applies the entql string predicate on the price_id field. -func (f *OrgModuleFilter) WherePriceID(p entql.StringP) { - f.Where(p.Field(orgmodule.FieldPriceID)) +// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. +func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP) { + f.Where(p.Field(organization.FieldParentOrganizationID)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *OrgModuleFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WherePersonalOrg applies the entql bool predicate on the personal_org field. +func (f *OrganizationFilter) WherePersonalOrg(p entql.BoolP) { + f.Where(p.Field(organization.FieldPersonalOrg)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *OrgModuleFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. +func (f *OrganizationFilter) WhereAvatarRemoteURL(p entql.StringP) { + f.Where(p.Field(organization.FieldAvatarRemoteURL)) } -// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. -func (f *OrgModuleFilter) WhereHasOrgSubscription() { - f.Where(entql.HasEdge("org_subscription")) +// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. +func (f *OrganizationFilter) WhereAvatarLocalFileID(p entql.StringP) { + f.Where(p.Field(organization.FieldAvatarLocalFileID)) } -// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). -func (f *OrgModuleFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { - f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field. +func (f *OrganizationFilter) WhereAvatarUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldAvatarUpdatedAt)) } -// WhereHasOrgProducts applies a predicate to check if query has an edge org_products. -func (f *OrgModuleFilter) WhereHasOrgProducts() { - f.Where(entql.HasEdge("org_products")) +// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. +func (f *OrganizationFilter) WhereDedicatedDb(p entql.BoolP) { + f.Where(p.Field(organization.FieldDedicatedDb)) } -// WhereHasOrgProductsWith applies a predicate to check if query has an edge org_products with a given conditions (other predicates). -func (f *OrgModuleFilter) WhereHasOrgProductsWith(preds ...predicate.OrgProduct) { - f.Where(entql.HasEdgeWith("org_products", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStripeCustomerID applies the entql string predicate on the stripe_customer_id field. +func (f *OrganizationFilter) WhereStripeCustomerID(p entql.StringP) { + f.Where(p.Field(organization.FieldStripeCustomerID)) } -// WhereHasOrgPrices applies a predicate to check if query has an edge org_prices. -func (f *OrgModuleFilter) WhereHasOrgPrices() { - f.Where(entql.HasEdge("org_prices")) +// WhereHasActionPlanCreators applies a predicate to check if query has an edge action_plan_creators. +func (f *OrganizationFilter) WhereHasActionPlanCreators() { + f.Where(entql.HasEdge("action_plan_creators")) } -// WhereHasOrgPricesWith applies a predicate to check if query has an edge org_prices with a given conditions (other predicates). -func (f *OrgModuleFilter) WhereHasOrgPricesWith(preds ...predicate.OrgPrice) { - f.Where(entql.HasEdgeWith("org_prices", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasActionPlanCreatorsWith applies a predicate to check if query has an edge action_plan_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasActionPlanCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("action_plan_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } - }))) -} - -// addPredicate implements the predicateAdder interface. -func (_q *OrgPriceQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the OrgPriceQuery builder. -func (_q *OrgPriceQuery) Filter() *OrgPriceFilter { - return &OrgPriceFilter{config: _q.config, predicateAdder: _q} -} - -// addPredicate implements the predicateAdder interface. -func (m *OrgPriceMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the OrgPriceMutation builder. -func (m *OrgPriceMutation) Filter() *OrgPriceFilter { - return &OrgPriceFilter{config: m.config, predicateAdder: m} + }))) } -// OrgPriceFilter provides a generic filtering capability at runtime for OrgPriceQuery. -type OrgPriceFilter struct { - predicateAdder - config +// WhereHasAPITokenCreators applies a predicate to check if query has an edge api_token_creators. +func (f *OrganizationFilter) WhereHasAPITokenCreators() { + f.Where(entql.HasEdge("api_token_creators")) } -// Where applies the entql predicate on the query filter. -func (f *OrgPriceFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { - s.AddError(err) +// WhereHasAPITokenCreatorsWith applies a predicate to check if query has an edge api_token_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAPITokenCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("api_token_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *OrgPriceFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgprice.FieldID)) +// WhereHasAssessmentCreators applies a predicate to check if query has an edge assessment_creators. +func (f *OrganizationFilter) WhereHasAssessmentCreators() { + f.Where(entql.HasEdge("assessment_creators")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgPriceFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgprice.FieldCreatedAt)) +// WhereHasAssessmentCreatorsWith applies a predicate to check if query has an edge assessment_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAssessmentCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("assessment_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgPriceFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgprice.FieldUpdatedAt)) +// WhereHasAssetCreators applies a predicate to check if query has an edge asset_creators. +func (f *OrganizationFilter) WhereHasAssetCreators() { + f.Where(entql.HasEdge("asset_creators")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgPriceFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgprice.FieldCreatedBy)) +// WhereHasAssetCreatorsWith applies a predicate to check if query has an edge asset_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAssetCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("asset_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgPriceFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgprice.FieldUpdatedBy)) +// WhereHasCampaignCreators applies a predicate to check if query has an edge campaign_creators. +func (f *OrganizationFilter) WhereHasCampaignCreators() { + f.Where(entql.HasEdge("campaign_creators")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgPriceFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgprice.FieldDeletedAt)) +// WhereHasCampaignCreatorsWith applies a predicate to check if query has an edge campaign_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasCampaignCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("campaign_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgPriceFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgprice.FieldDeletedBy)) +// WhereHasCampaignTargetCreators applies a predicate to check if query has an edge campaign_target_creators. +func (f *OrganizationFilter) WhereHasCampaignTargetCreators() { + f.Where(entql.HasEdge("campaign_target_creators")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrgPriceFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(orgprice.FieldTags)) +// WhereHasCampaignTargetCreatorsWith applies a predicate to check if query has an edge campaign_target_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasCampaignTargetCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("campaign_target_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OrgPriceFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(orgprice.FieldOwnerID)) +// WhereHasCheckResultCreators applies a predicate to check if query has an edge check_result_creators. +func (f *OrganizationFilter) WhereHasCheckResultCreators() { + f.Where(entql.HasEdge("check_result_creators")) } -// WherePrice applies the entql json.RawMessage predicate on the price field. -func (f *OrgPriceFilter) WherePrice(p entql.BytesP) { - f.Where(p.Field(orgprice.FieldPrice)) +// WhereHasCheckResultCreatorsWith applies a predicate to check if query has an edge check_result_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasCheckResultCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("check_result_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStripePriceID applies the entql string predicate on the stripe_price_id field. -func (f *OrgPriceFilter) WhereStripePriceID(p entql.StringP) { - f.Where(p.Field(orgprice.FieldStripePriceID)) +// WhereHasContactCreators applies a predicate to check if query has an edge contact_creators. +func (f *OrganizationFilter) WhereHasContactCreators() { + f.Where(entql.HasEdge("contact_creators")) } -// WhereStatus applies the entql string predicate on the status field. -func (f *OrgPriceFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(orgprice.FieldStatus)) +// WhereHasContactCreatorsWith applies a predicate to check if query has an edge contact_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasContactCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("contact_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereActive applies the entql bool predicate on the active field. -func (f *OrgPriceFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(orgprice.FieldActive)) +// WhereHasControlCreators applies a predicate to check if query has an edge control_creators. +func (f *OrganizationFilter) WhereHasControlCreators() { + f.Where(entql.HasEdge("control_creators")) } -// WhereProductID applies the entql string predicate on the product_id field. -func (f *OrgPriceFilter) WhereProductID(p entql.StringP) { - f.Where(p.Field(orgprice.FieldProductID)) +// WhereHasControlCreatorsWith applies a predicate to check if query has an edge control_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasControlCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("control_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSubscriptionID applies the entql string predicate on the subscription_id field. -func (f *OrgPriceFilter) WhereSubscriptionID(p entql.StringP) { - f.Where(p.Field(orgprice.FieldSubscriptionID)) +// WhereHasControlImplementationCreators applies a predicate to check if query has an edge control_implementation_creators. +func (f *OrganizationFilter) WhereHasControlImplementationCreators() { + f.Where(entql.HasEdge("control_implementation_creators")) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *OrgPriceFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasControlImplementationCreatorsWith applies a predicate to check if query has an edge control_implementation_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasControlImplementationCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("control_implementation_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *OrgPriceFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlObjectiveCreators applies a predicate to check if query has an edge control_objective_creators. +func (f *OrganizationFilter) WhereHasControlObjectiveCreators() { + f.Where(entql.HasEdge("control_objective_creators")) +} + +// WhereHasControlObjectiveCreatorsWith applies a predicate to check if query has an edge control_objective_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasControlObjectiveCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("control_objective_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgProducts applies a predicate to check if query has an edge org_products. -func (f *OrgPriceFilter) WhereHasOrgProducts() { - f.Where(entql.HasEdge("org_products")) +// WhereHasCustomTypeEnumCreators applies a predicate to check if query has an edge custom_type_enum_creators. +func (f *OrganizationFilter) WhereHasCustomTypeEnumCreators() { + f.Where(entql.HasEdge("custom_type_enum_creators")) } -// WhereHasOrgProductsWith applies a predicate to check if query has an edge org_products with a given conditions (other predicates). -func (f *OrgPriceFilter) WhereHasOrgProductsWith(preds ...predicate.OrgProduct) { - f.Where(entql.HasEdgeWith("org_products", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCustomTypeEnumCreatorsWith applies a predicate to check if query has an edge custom_type_enum_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasCustomTypeEnumCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("custom_type_enum_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgModules applies a predicate to check if query has an edge org_modules. -func (f *OrgPriceFilter) WhereHasOrgModules() { - f.Where(entql.HasEdge("org_modules")) +// WhereHasDiscussionCreators applies a predicate to check if query has an edge discussion_creators. +func (f *OrganizationFilter) WhereHasDiscussionCreators() { + f.Where(entql.HasEdge("discussion_creators")) } -// WhereHasOrgModulesWith applies a predicate to check if query has an edge org_modules with a given conditions (other predicates). -func (f *OrgPriceFilter) WhereHasOrgModulesWith(preds ...predicate.OrgModule) { - f.Where(entql.HasEdgeWith("org_modules", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDiscussionCreatorsWith applies a predicate to check if query has an edge discussion_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasDiscussionCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("discussion_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. -func (f *OrgPriceFilter) WhereHasOrgSubscription() { - f.Where(entql.HasEdge("org_subscription")) +// WhereHasEmailBrandingCreators applies a predicate to check if query has an edge email_branding_creators. +func (f *OrganizationFilter) WhereHasEmailBrandingCreators() { + f.Where(entql.HasEdge("email_branding_creators")) } -// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). -func (f *OrgPriceFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { - f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEmailBrandingCreatorsWith applies a predicate to check if query has an edge email_branding_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEmailBrandingCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("email_branding_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *OrgProductQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasEmailTemplateCreators applies a predicate to check if query has an edge email_template_creators. +func (f *OrganizationFilter) WhereHasEmailTemplateCreators() { + f.Where(entql.HasEdge("email_template_creators")) } -// Filter returns a Filter implementation to apply filters on the OrgProductQuery builder. -func (_q *OrgProductQuery) Filter() *OrgProductFilter { - return &OrgProductFilter{config: _q.config, predicateAdder: _q} +// WhereHasEmailTemplateCreatorsWith applies a predicate to check if query has an edge email_template_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEmailTemplateCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("email_template_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *OrgProductMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasEntityCreators applies a predicate to check if query has an edge entity_creators. +func (f *OrganizationFilter) WhereHasEntityCreators() { + f.Where(entql.HasEdge("entity_creators")) } -// Filter returns an entql.Where implementation to apply filters on the OrgProductMutation builder. -func (m *OrgProductMutation) Filter() *OrgProductFilter { - return &OrgProductFilter{config: m.config, predicateAdder: m} +// WhereHasEntityCreatorsWith applies a predicate to check if query has an edge entity_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntityCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("entity_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// OrgProductFilter provides a generic filtering capability at runtime for OrgProductQuery. -type OrgProductFilter struct { - predicateAdder - config +// WhereHasEntityTypeCreators applies a predicate to check if query has an edge entity_type_creators. +func (f *OrganizationFilter) WhereHasEntityTypeCreators() { + f.Where(entql.HasEdge("entity_type_creators")) } -// Where applies the entql predicate on the query filter. -func (f *OrgProductFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[59].Type, p, s); err != nil { - s.AddError(err) +// WhereHasEntityTypeCreatorsWith applies a predicate to check if query has an edge entity_type_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntityTypeCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("entity_type_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *OrgProductFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldID)) +// WhereHasEvidenceCreators applies a predicate to check if query has an edge evidence_creators. +func (f *OrganizationFilter) WhereHasEvidenceCreators() { + f.Where(entql.HasEdge("evidence_creators")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgProductFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgproduct.FieldCreatedAt)) +// WhereHasEvidenceCreatorsWith applies a predicate to check if query has an edge evidence_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEvidenceCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("evidence_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgProductFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgproduct.FieldUpdatedAt)) +// WhereHasExportCreators applies a predicate to check if query has an edge export_creators. +func (f *OrganizationFilter) WhereHasExportCreators() { + f.Where(entql.HasEdge("export_creators")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgProductFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldCreatedBy)) +// WhereHasExportCreatorsWith applies a predicate to check if query has an edge export_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasExportCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("export_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgProductFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldUpdatedBy)) +// WhereHasFileCreators applies a predicate to check if query has an edge file_creators. +func (f *OrganizationFilter) WhereHasFileCreators() { + f.Where(entql.HasEdge("file_creators")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgProductFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgproduct.FieldDeletedAt)) +// WhereHasFileCreatorsWith applies a predicate to check if query has an edge file_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasFileCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("file_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgProductFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldDeletedBy)) +// WhereHasFindingCreators applies a predicate to check if query has an edge finding_creators. +func (f *OrganizationFilter) WhereHasFindingCreators() { + f.Where(entql.HasEdge("finding_creators")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrgProductFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(orgproduct.FieldTags)) +// WhereHasFindingCreatorsWith applies a predicate to check if query has an edge finding_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasFindingCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("finding_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OrgProductFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldOwnerID)) +// WhereHasGroupCreators applies a predicate to check if query has an edge group_creators. +func (f *OrganizationFilter) WhereHasGroupCreators() { + f.Where(entql.HasEdge("group_creators")) } -// WhereModule applies the entql string predicate on the module field. -func (f *OrgProductFilter) WhereModule(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldModule)) +// WhereHasGroupCreatorsWith applies a predicate to check if query has an edge group_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasGroupCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStripeProductID applies the entql string predicate on the stripe_product_id field. -func (f *OrgProductFilter) WhereStripeProductID(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldStripeProductID)) +// WhereHasIdentityHolderCreators applies a predicate to check if query has an edge identity_holder_creators. +func (f *OrganizationFilter) WhereHasIdentityHolderCreators() { + f.Where(entql.HasEdge("identity_holder_creators")) +} + +// WhereHasIdentityHolderCreatorsWith applies a predicate to check if query has an edge identity_holder_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasIdentityHolderCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("identity_holder_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStatus applies the entql string predicate on the status field. -func (f *OrgProductFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldStatus)) +// WhereHasIntegrationCreators applies a predicate to check if query has an edge integration_creators. +func (f *OrganizationFilter) WhereHasIntegrationCreators() { + f.Where(entql.HasEdge("integration_creators")) } -// WhereActive applies the entql bool predicate on the active field. -func (f *OrgProductFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(orgproduct.FieldActive)) +// WhereHasIntegrationCreatorsWith applies a predicate to check if query has an edge integration_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasIntegrationCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("integration_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSubscriptionID applies the entql string predicate on the subscription_id field. -func (f *OrgProductFilter) WhereSubscriptionID(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldSubscriptionID)) +// WhereHasIntegrationWebhookCreators applies a predicate to check if query has an edge integration_webhook_creators. +func (f *OrganizationFilter) WhereHasIntegrationWebhookCreators() { + f.Where(entql.HasEdge("integration_webhook_creators")) } -// WherePriceID applies the entql string predicate on the price_id field. -func (f *OrgProductFilter) WherePriceID(p entql.StringP) { - f.Where(p.Field(orgproduct.FieldPriceID)) +// WhereHasIntegrationWebhookCreatorsWith applies a predicate to check if query has an edge integration_webhook_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasIntegrationWebhookCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("integration_webhook_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *OrgProductFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasInternalPolicyCreators applies a predicate to check if query has an edge internal_policy_creators. +func (f *OrganizationFilter) WhereHasInternalPolicyCreators() { + f.Where(entql.HasEdge("internal_policy_creators")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *OrgProductFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalPolicyCreatorsWith applies a predicate to check if query has an edge internal_policy_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasInternalPolicyCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("internal_policy_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgSubscription applies a predicate to check if query has an edge org_subscription. -func (f *OrgProductFilter) WhereHasOrgSubscription() { - f.Where(entql.HasEdge("org_subscription")) +// WhereHasJobRunnerCreators applies a predicate to check if query has an edge job_runner_creators. +func (f *OrganizationFilter) WhereHasJobRunnerCreators() { + f.Where(entql.HasEdge("job_runner_creators")) } -// WhereHasOrgSubscriptionWith applies a predicate to check if query has an edge org_subscription with a given conditions (other predicates). -func (f *OrgProductFilter) WhereHasOrgSubscriptionWith(preds ...predicate.OrgSubscription) { - f.Where(entql.HasEdgeWith("org_subscription", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnerCreatorsWith applies a predicate to check if query has an edge job_runner_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasJobRunnerCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("job_runner_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgPrices applies a predicate to check if query has an edge org_prices. -func (f *OrgProductFilter) WhereHasOrgPrices() { - f.Where(entql.HasEdge("org_prices")) +// WhereHasJobRunnerRegistrationTokenCreators applies a predicate to check if query has an edge job_runner_registration_token_creators. +func (f *OrganizationFilter) WhereHasJobRunnerRegistrationTokenCreators() { + f.Where(entql.HasEdge("job_runner_registration_token_creators")) } -// WhereHasOrgPricesWith applies a predicate to check if query has an edge org_prices with a given conditions (other predicates). -func (f *OrgProductFilter) WhereHasOrgPricesWith(preds ...predicate.OrgPrice) { - f.Where(entql.HasEdgeWith("org_prices", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnerRegistrationTokenCreatorsWith applies a predicate to check if query has an edge job_runner_registration_token_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasJobRunnerRegistrationTokenCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("job_runner_registration_token_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrgModules applies a predicate to check if query has an edge org_modules. -func (f *OrgProductFilter) WhereHasOrgModules() { - f.Where(entql.HasEdge("org_modules")) +// WhereHasJobRunnerTokenCreators applies a predicate to check if query has an edge job_runner_token_creators. +func (f *OrganizationFilter) WhereHasJobRunnerTokenCreators() { + f.Where(entql.HasEdge("job_runner_token_creators")) } -// WhereHasOrgModulesWith applies a predicate to check if query has an edge org_modules with a given conditions (other predicates). -func (f *OrgProductFilter) WhereHasOrgModulesWith(preds ...predicate.OrgModule) { - f.Where(entql.HasEdgeWith("org_modules", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasJobRunnerTokenCreatorsWith applies a predicate to check if query has an edge job_runner_token_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasJobRunnerTokenCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("job_runner_token_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *OrgSubscriptionQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasJobTemplateCreators applies a predicate to check if query has an edge job_template_creators. +func (f *OrganizationFilter) WhereHasJobTemplateCreators() { + f.Where(entql.HasEdge("job_template_creators")) } -// Filter returns a Filter implementation to apply filters on the OrgSubscriptionQuery builder. -func (_q *OrgSubscriptionQuery) Filter() *OrgSubscriptionFilter { - return &OrgSubscriptionFilter{config: _q.config, predicateAdder: _q} +// WhereHasJobTemplateCreatorsWith applies a predicate to check if query has an edge job_template_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasJobTemplateCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("job_template_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *OrgSubscriptionMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasMappedControlCreators applies a predicate to check if query has an edge mapped_control_creators. +func (f *OrganizationFilter) WhereHasMappedControlCreators() { + f.Where(entql.HasEdge("mapped_control_creators")) } -// Filter returns an entql.Where implementation to apply filters on the OrgSubscriptionMutation builder. -func (m *OrgSubscriptionMutation) Filter() *OrgSubscriptionFilter { - return &OrgSubscriptionFilter{config: m.config, predicateAdder: m} +// WhereHasMappedControlCreatorsWith applies a predicate to check if query has an edge mapped_control_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasMappedControlCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("mapped_control_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// OrgSubscriptionFilter provides a generic filtering capability at runtime for OrgSubscriptionQuery. -type OrgSubscriptionFilter struct { - predicateAdder - config +// WhereHasNarrativeCreators applies a predicate to check if query has an edge narrative_creators. +func (f *OrganizationFilter) WhereHasNarrativeCreators() { + f.Where(entql.HasEdge("narrative_creators")) } -// Where applies the entql predicate on the query filter. -func (f *OrgSubscriptionFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { - s.AddError(err) +// WhereHasNarrativeCreatorsWith applies a predicate to check if query has an edge narrative_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasNarrativeCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("narrative_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *OrgSubscriptionFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldID)) + }))) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgSubscriptionFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgsubscription.FieldCreatedAt)) +// WhereHasNoteCreators applies a predicate to check if query has an edge note_creators. +func (f *OrganizationFilter) WhereHasNoteCreators() { + f.Where(entql.HasEdge("note_creators")) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgSubscriptionFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgsubscription.FieldUpdatedAt)) +// WhereHasNoteCreatorsWith applies a predicate to check if query has an edge note_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasNoteCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("note_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgSubscriptionFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldCreatedBy)) +// WhereHasNotificationTemplateCreators applies a predicate to check if query has an edge notification_template_creators. +func (f *OrganizationFilter) WhereHasNotificationTemplateCreators() { + f.Where(entql.HasEdge("notification_template_creators")) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgSubscriptionFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldUpdatedBy)) +// WhereHasNotificationTemplateCreatorsWith applies a predicate to check if query has an edge notification_template_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasNotificationTemplateCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("notification_template_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgSubscriptionFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgsubscription.FieldDeletedAt)) +// WhereHasOrganizationCreators applies a predicate to check if query has an edge organization_creators. +func (f *OrganizationFilter) WhereHasOrganizationCreators() { + f.Where(entql.HasEdge("organization_creators")) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgSubscriptionFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldDeletedBy)) +// WhereHasOrganizationCreatorsWith applies a predicate to check if query has an edge organization_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasOrganizationCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("organization_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrgSubscriptionFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(orgsubscription.FieldTags)) +// WhereHasPlatformCreators applies a predicate to check if query has an edge platform_creators. +func (f *OrganizationFilter) WhereHasPlatformCreators() { + f.Where(entql.HasEdge("platform_creators")) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OrgSubscriptionFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldOwnerID)) +// WhereHasPlatformCreatorsWith applies a predicate to check if query has an edge platform_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasPlatformCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("platform_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereStripeSubscriptionID applies the entql string predicate on the stripe_subscription_id field. -func (f *OrgSubscriptionFilter) WhereStripeSubscriptionID(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldStripeSubscriptionID)) +// WhereHasProcedureCreators applies a predicate to check if query has an edge procedure_creators. +func (f *OrganizationFilter) WhereHasProcedureCreators() { + f.Where(entql.HasEdge("procedure_creators")) } -// WhereStripeSubscriptionStatus applies the entql string predicate on the stripe_subscription_status field. -func (f *OrgSubscriptionFilter) WhereStripeSubscriptionStatus(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldStripeSubscriptionStatus)) +// WhereHasProcedureCreatorsWith applies a predicate to check if query has an edge procedure_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasProcedureCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("procedure_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereActive applies the entql bool predicate on the active field. -func (f *OrgSubscriptionFilter) WhereActive(p entql.BoolP) { - f.Where(p.Field(orgsubscription.FieldActive)) +// WhereHasProgramCreators applies a predicate to check if query has an edge program_creators. +func (f *OrganizationFilter) WhereHasProgramCreators() { + f.Where(entql.HasEdge("program_creators")) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *OrgSubscriptionFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(orgsubscription.FieldExpiresAt)) +// WhereHasProgramCreatorsWith applies a predicate to check if query has an edge program_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasProgramCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("program_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereTrialExpiresAt applies the entql time.Time predicate on the trial_expires_at field. -func (f *OrgSubscriptionFilter) WhereTrialExpiresAt(p entql.TimeP) { - f.Where(p.Field(orgsubscription.FieldTrialExpiresAt)) +// WhereHasRemediationCreators applies a predicate to check if query has an edge remediation_creators. +func (f *OrganizationFilter) WhereHasRemediationCreators() { + f.Where(entql.HasEdge("remediation_creators")) } -// WhereDaysUntilDue applies the entql string predicate on the days_until_due field. -func (f *OrgSubscriptionFilter) WhereDaysUntilDue(p entql.StringP) { - f.Where(p.Field(orgsubscription.FieldDaysUntilDue)) +// WhereHasRemediationCreatorsWith applies a predicate to check if query has an edge remediation_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasRemediationCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("remediation_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *OrgSubscriptionFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasReviewCreators applies a predicate to check if query has an edge review_creators. +func (f *OrganizationFilter) WhereHasReviewCreators() { + f.Where(entql.HasEdge("review_creators")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *OrgSubscriptionFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasReviewCreatorsWith applies a predicate to check if query has an edge review_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasReviewCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("review_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *OrgSubscriptionFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasRiskCreators applies a predicate to check if query has an edge risk_creators. +func (f *OrganizationFilter) WhereHasRiskCreators() { + f.Where(entql.HasEdge("risk_creators")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *OrgSubscriptionFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRiskCreatorsWith applies a predicate to check if query has an edge risk_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasRiskCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("risk_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasModules applies a predicate to check if query has an edge modules. -func (f *OrgSubscriptionFilter) WhereHasModules() { - f.Where(entql.HasEdge("modules")) +// WhereHasScanCreators applies a predicate to check if query has an edge scan_creators. +func (f *OrganizationFilter) WhereHasScanCreators() { + f.Where(entql.HasEdge("scan_creators")) } -// WhereHasModulesWith applies a predicate to check if query has an edge modules with a given conditions (other predicates). -func (f *OrgSubscriptionFilter) WhereHasModulesWith(preds ...predicate.OrgModule) { - f.Where(entql.HasEdgeWith("modules", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScanCreatorsWith applies a predicate to check if query has an edge scan_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasScanCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("scan_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProducts applies a predicate to check if query has an edge products. -func (f *OrgSubscriptionFilter) WhereHasProducts() { - f.Where(entql.HasEdge("products")) +// WhereHasScheduledJobCreators applies a predicate to check if query has an edge scheduled_job_creators. +func (f *OrganizationFilter) WhereHasScheduledJobCreators() { + f.Where(entql.HasEdge("scheduled_job_creators")) } -// WhereHasProductsWith applies a predicate to check if query has an edge products with a given conditions (other predicates). -func (f *OrgSubscriptionFilter) WhereHasProductsWith(preds ...predicate.OrgProduct) { - f.Where(entql.HasEdgeWith("products", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScheduledJobCreatorsWith applies a predicate to check if query has an edge scheduled_job_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasScheduledJobCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("scheduled_job_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPrices applies a predicate to check if query has an edge prices. -func (f *OrgSubscriptionFilter) WhereHasPrices() { - f.Where(entql.HasEdge("prices")) +// WhereHasScheduledJobRunCreators applies a predicate to check if query has an edge scheduled_job_run_creators. +func (f *OrganizationFilter) WhereHasScheduledJobRunCreators() { + f.Where(entql.HasEdge("scheduled_job_run_creators")) } -// WhereHasPricesWith applies a predicate to check if query has an edge prices with a given conditions (other predicates). -func (f *OrgSubscriptionFilter) WhereHasPricesWith(preds ...predicate.OrgPrice) { - f.Where(entql.HasEdgeWith("prices", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasScheduledJobRunCreatorsWith applies a predicate to check if query has an edge scheduled_job_run_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasScheduledJobRunCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("scheduled_job_run_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (_q *OrganizationQuery) addPredicate(pred func(s *sql.Selector)) { - _q.predicates = append(_q.predicates, pred) +// WhereHasStandardCreators applies a predicate to check if query has an edge standard_creators. +func (f *OrganizationFilter) WhereHasStandardCreators() { + f.Where(entql.HasEdge("standard_creators")) } -// Filter returns a Filter implementation to apply filters on the OrganizationQuery builder. -func (_q *OrganizationQuery) Filter() *OrganizationFilter { - return &OrganizationFilter{config: _q.config, predicateAdder: _q} +// WhereHasStandardCreatorsWith applies a predicate to check if query has an edge standard_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasStandardCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("standard_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *OrganizationMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasSubcontrolCreators applies a predicate to check if query has an edge subcontrol_creators. +func (f *OrganizationFilter) WhereHasSubcontrolCreators() { + f.Where(entql.HasEdge("subcontrol_creators")) } -// Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder. -func (m *OrganizationMutation) Filter() *OrganizationFilter { - return &OrganizationFilter{config: m.config, predicateAdder: m} +// WhereHasSubcontrolCreatorsWith applies a predicate to check if query has an edge subcontrol_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSubcontrolCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("subcontrol_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasSubprocessorCreators applies a predicate to check if query has an edge subprocessor_creators. +func (f *OrganizationFilter) WhereHasSubprocessorCreators() { + f.Where(entql.HasEdge("subprocessor_creators")) } -// OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery. -type OrganizationFilter struct { - predicateAdder - config +// WhereHasSubprocessorCreatorsWith applies a predicate to check if query has an edge subprocessor_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSubprocessorCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("subprocessor_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// Where applies the entql predicate on the query filter. -func (f *OrganizationFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { - s.AddError(err) +// WhereHasSubscriberCreators applies a predicate to check if query has an edge subscriber_creators. +func (f *OrganizationFilter) WhereHasSubscriberCreators() { + f.Where(entql.HasEdge("subscriber_creators")) +} + +// WhereHasSubscriberCreatorsWith applies a predicate to check if query has an edge subscriber_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSubscriberCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("subscriber_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *OrganizationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(organization.FieldID)) +// WhereHasSystemDetailCreators applies a predicate to check if query has an edge system_detail_creators. +func (f *OrganizationFilter) WhereHasSystemDetailCreators() { + f.Where(entql.HasEdge("system_detail_creators")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldCreatedAt)) +// WhereHasSystemDetailCreatorsWith applies a predicate to check if query has an edge system_detail_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSystemDetailCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("system_detail_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldUpdatedAt)) +// WhereHasTagDefinitionCreators applies a predicate to check if query has an edge tag_definition_creators. +func (f *OrganizationFilter) WhereHasTagDefinitionCreators() { + f.Where(entql.HasEdge("tag_definition_creators")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldCreatedBy)) +// WhereHasTagDefinitionCreatorsWith applies a predicate to check if query has an edge tag_definition_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTagDefinitionCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("tag_definition_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldUpdatedBy)) +// WhereHasTaskCreators applies a predicate to check if query has an edge task_creators. +func (f *OrganizationFilter) WhereHasTaskCreators() { + f.Where(entql.HasEdge("task_creators")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldDeletedAt)) +// WhereHasTaskCreatorsWith applies a predicate to check if query has an edge task_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTaskCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("task_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldDeletedBy)) +// WhereHasTemplateCreators applies a predicate to check if query has an edge template_creators. +func (f *OrganizationFilter) WhereHasTemplateCreators() { + f.Where(entql.HasEdge("template_creators")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrganizationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(organization.FieldTags)) +// WhereHasTemplateCreatorsWith applies a predicate to check if query has an edge template_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTemplateCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("template_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereName applies the entql string predicate on the name field. -func (f *OrganizationFilter) WhereName(p entql.StringP) { - f.Where(p.Field(organization.FieldName)) +// WhereHasTrustCenterCreators applies a predicate to check if query has an edge trust_center_creators. +func (f *OrganizationFilter) WhereHasTrustCenterCreators() { + f.Where(entql.HasEdge("trust_center_creators")) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *OrganizationFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(organization.FieldDisplayName)) +// WhereHasTrustCenterCreatorsWith applies a predicate to check if query has an edge trust_center_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDescription applies the entql string predicate on the description field. -func (f *OrganizationFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(organization.FieldDescription)) +// WhereHasTrustCenterComplianceCreators applies a predicate to check if query has an edge trust_center_compliance_creators. +func (f *OrganizationFilter) WhereHasTrustCenterComplianceCreators() { + f.Where(entql.HasEdge("trust_center_compliance_creators")) } -// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. -func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP) { - f.Where(p.Field(organization.FieldParentOrganizationID)) +// WhereHasTrustCenterComplianceCreatorsWith applies a predicate to check if query has an edge trust_center_compliance_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterComplianceCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_compliance_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WherePersonalOrg applies the entql bool predicate on the personal_org field. -func (f *OrganizationFilter) WherePersonalOrg(p entql.BoolP) { - f.Where(p.Field(organization.FieldPersonalOrg)) +// WhereHasTrustCenterDocCreators applies a predicate to check if query has an edge trust_center_doc_creators. +func (f *OrganizationFilter) WhereHasTrustCenterDocCreators() { + f.Where(entql.HasEdge("trust_center_doc_creators")) } -// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. -func (f *OrganizationFilter) WhereAvatarRemoteURL(p entql.StringP) { - f.Where(p.Field(organization.FieldAvatarRemoteURL)) +// WhereHasTrustCenterDocCreatorsWith applies a predicate to check if query has an edge trust_center_doc_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterDocCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_doc_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereAvatarLocalFileID applies the entql string predicate on the avatar_local_file_id field. -func (f *OrganizationFilter) WhereAvatarLocalFileID(p entql.StringP) { - f.Where(p.Field(organization.FieldAvatarLocalFileID)) +// WhereHasTrustCenterEntityCreators applies a predicate to check if query has an edge trust_center_entity_creators. +func (f *OrganizationFilter) WhereHasTrustCenterEntityCreators() { + f.Where(entql.HasEdge("trust_center_entity_creators")) } -// WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field. -func (f *OrganizationFilter) WhereAvatarUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldAvatarUpdatedAt)) +// WhereHasTrustCenterEntityCreatorsWith applies a predicate to check if query has an edge trust_center_entity_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterEntityCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_entity_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. -func (f *OrganizationFilter) WhereDedicatedDb(p entql.BoolP) { - f.Where(p.Field(organization.FieldDedicatedDb)) +// WhereHasTrustCenterFaqCreators applies a predicate to check if query has an edge trust_center_faq_creators. +func (f *OrganizationFilter) WhereHasTrustCenterFaqCreators() { + f.Where(entql.HasEdge("trust_center_faq_creators")) } -// WhereStripeCustomerID applies the entql string predicate on the stripe_customer_id field. -func (f *OrganizationFilter) WhereStripeCustomerID(p entql.StringP) { - f.Where(p.Field(organization.FieldStripeCustomerID)) +// WhereHasTrustCenterFaqCreatorsWith applies a predicate to check if query has an edge trust_center_faq_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterFaqCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_faq_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasControlCreators applies a predicate to check if query has an edge control_creators. -func (f *OrganizationFilter) WhereHasControlCreators() { - f.Where(entql.HasEdge("control_creators")) +// WhereHasTrustCenterNdaRequestCreators applies a predicate to check if query has an edge trust_center_nda_request_creators. +func (f *OrganizationFilter) WhereHasTrustCenterNdaRequestCreators() { + f.Where(entql.HasEdge("trust_center_nda_request_creators")) } -// WhereHasControlCreatorsWith applies a predicate to check if query has an edge control_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasControlCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("control_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTrustCenterNdaRequestCreatorsWith applies a predicate to check if query has an edge trust_center_nda_request_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterNdaRequestCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_nda_request_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlImplementationCreators applies a predicate to check if query has an edge control_implementation_creators. -func (f *OrganizationFilter) WhereHasControlImplementationCreators() { - f.Where(entql.HasEdge("control_implementation_creators")) +// WhereHasTrustCenterSubprocessorCreators applies a predicate to check if query has an edge trust_center_subprocessor_creators. +func (f *OrganizationFilter) WhereHasTrustCenterSubprocessorCreators() { + f.Where(entql.HasEdge("trust_center_subprocessor_creators")) } -// WhereHasControlImplementationCreatorsWith applies a predicate to check if query has an edge control_implementation_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasControlImplementationCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("control_implementation_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTrustCenterSubprocessorCreatorsWith applies a predicate to check if query has an edge trust_center_subprocessor_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterSubprocessorCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_subprocessor_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasControlObjectiveCreators applies a predicate to check if query has an edge control_objective_creators. -func (f *OrganizationFilter) WhereHasControlObjectiveCreators() { - f.Where(entql.HasEdge("control_objective_creators")) +// WhereHasTrustCenterWatermarkConfigCreators applies a predicate to check if query has an edge trust_center_watermark_config_creators. +func (f *OrganizationFilter) WhereHasTrustCenterWatermarkConfigCreators() { + f.Where(entql.HasEdge("trust_center_watermark_config_creators")) } -// WhereHasControlObjectiveCreatorsWith applies a predicate to check if query has an edge control_objective_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasControlObjectiveCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("control_objective_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTrustCenterWatermarkConfigCreatorsWith applies a predicate to check if query has an edge trust_center_watermark_config_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterWatermarkConfigCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_watermark_config_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvidenceCreators applies a predicate to check if query has an edge evidence_creators. -func (f *OrganizationFilter) WhereHasEvidenceCreators() { - f.Where(entql.HasEdge("evidence_creators")) +// WhereHasUserCreators applies a predicate to check if query has an edge user_creators. +func (f *OrganizationFilter) WhereHasUserCreators() { + f.Where(entql.HasEdge("user_creators")) } -// WhereHasEvidenceCreatorsWith applies a predicate to check if query has an edge evidence_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEvidenceCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("evidence_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserCreatorsWith applies a predicate to check if query has an edge user_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasUserCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("user_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasAssetCreators applies a predicate to check if query has an edge asset_creators. -func (f *OrganizationFilter) WhereHasAssetCreators() { - f.Where(entql.HasEdge("asset_creators")) +// WhereHasUserSettingCreators applies a predicate to check if query has an edge user_setting_creators. +func (f *OrganizationFilter) WhereHasUserSettingCreators() { + f.Where(entql.HasEdge("user_setting_creators")) } -// WhereHasAssetCreatorsWith applies a predicate to check if query has an edge asset_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasAssetCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("asset_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserSettingCreatorsWith applies a predicate to check if query has an edge user_setting_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasUserSettingCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("user_setting_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFindingCreators applies a predicate to check if query has an edge finding_creators. -func (f *OrganizationFilter) WhereHasFindingCreators() { - f.Where(entql.HasEdge("finding_creators")) +// WhereHasVendorRiskScoreCreators applies a predicate to check if query has an edge vendor_risk_score_creators. +func (f *OrganizationFilter) WhereHasVendorRiskScoreCreators() { + f.Where(entql.HasEdge("vendor_risk_score_creators")) } -// WhereHasFindingCreatorsWith applies a predicate to check if query has an edge finding_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasFindingCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("finding_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasVendorRiskScoreCreatorsWith applies a predicate to check if query has an edge vendor_risk_score_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasVendorRiskScoreCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("vendor_risk_score_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -34993,210 +36475,210 @@ func (f *OrganizationFilter) WhereHasVulnerabilityCreatorsWith(preds ...predicat }))) } -// WhereHasGroupCreators applies a predicate to check if query has an edge group_creators. -func (f *OrganizationFilter) WhereHasGroupCreators() { - f.Where(entql.HasEdge("group_creators")) +// WhereHasWorkflowAssignmentCreators applies a predicate to check if query has an edge workflow_assignment_creators. +func (f *OrganizationFilter) WhereHasWorkflowAssignmentCreators() { + f.Where(entql.HasEdge("workflow_assignment_creators")) } -// WhereHasGroupCreatorsWith applies a predicate to check if query has an edge group_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasGroupCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowAssignmentCreatorsWith applies a predicate to check if query has an edge workflow_assignment_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowAssignmentCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_assignment_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInternalPolicyCreators applies a predicate to check if query has an edge internal_policy_creators. -func (f *OrganizationFilter) WhereHasInternalPolicyCreators() { - f.Where(entql.HasEdge("internal_policy_creators")) +// WhereHasWorkflowAssignmentTargetCreators applies a predicate to check if query has an edge workflow_assignment_target_creators. +func (f *OrganizationFilter) WhereHasWorkflowAssignmentTargetCreators() { + f.Where(entql.HasEdge("workflow_assignment_target_creators")) } -// WhereHasInternalPolicyCreatorsWith applies a predicate to check if query has an edge internal_policy_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasInternalPolicyCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("internal_policy_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowAssignmentTargetCreatorsWith applies a predicate to check if query has an edge workflow_assignment_target_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowAssignmentTargetCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_assignment_target_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMappedControlCreators applies a predicate to check if query has an edge mapped_control_creators. -func (f *OrganizationFilter) WhereHasMappedControlCreators() { - f.Where(entql.HasEdge("mapped_control_creators")) +// WhereHasWorkflowDefinitionCreators applies a predicate to check if query has an edge workflow_definition_creators. +func (f *OrganizationFilter) WhereHasWorkflowDefinitionCreators() { + f.Where(entql.HasEdge("workflow_definition_creators")) } -// WhereHasMappedControlCreatorsWith applies a predicate to check if query has an edge mapped_control_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasMappedControlCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("mapped_control_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowDefinitionCreatorsWith applies a predicate to check if query has an edge workflow_definition_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowDefinitionCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_definition_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNarrativeCreators applies a predicate to check if query has an edge narrative_creators. -func (f *OrganizationFilter) WhereHasNarrativeCreators() { - f.Where(entql.HasEdge("narrative_creators")) +// WhereHasWorkflowEventCreators applies a predicate to check if query has an edge workflow_event_creators. +func (f *OrganizationFilter) WhereHasWorkflowEventCreators() { + f.Where(entql.HasEdge("workflow_event_creators")) } -// WhereHasNarrativeCreatorsWith applies a predicate to check if query has an edge narrative_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasNarrativeCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("narrative_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowEventCreatorsWith applies a predicate to check if query has an edge workflow_event_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowEventCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_event_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProcedureCreators applies a predicate to check if query has an edge procedure_creators. -func (f *OrganizationFilter) WhereHasProcedureCreators() { - f.Where(entql.HasEdge("procedure_creators")) +// WhereHasWorkflowInstanceCreators applies a predicate to check if query has an edge workflow_instance_creators. +func (f *OrganizationFilter) WhereHasWorkflowInstanceCreators() { + f.Where(entql.HasEdge("workflow_instance_creators")) } -// WhereHasProcedureCreatorsWith applies a predicate to check if query has an edge procedure_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasProcedureCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("procedure_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowInstanceCreatorsWith applies a predicate to check if query has an edge workflow_instance_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowInstanceCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_instance_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasProgramCreators applies a predicate to check if query has an edge program_creators. -func (f *OrganizationFilter) WhereHasProgramCreators() { - f.Where(entql.HasEdge("program_creators")) +// WhereHasWorkflowObjectRefCreators applies a predicate to check if query has an edge workflow_object_ref_creators. +func (f *OrganizationFilter) WhereHasWorkflowObjectRefCreators() { + f.Where(entql.HasEdge("workflow_object_ref_creators")) } -// WhereHasProgramCreatorsWith applies a predicate to check if query has an edge program_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasProgramCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("program_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowObjectRefCreatorsWith applies a predicate to check if query has an edge workflow_object_ref_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowObjectRefCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_object_ref_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasRiskCreators applies a predicate to check if query has an edge risk_creators. -func (f *OrganizationFilter) WhereHasRiskCreators() { - f.Where(entql.HasEdge("risk_creators")) +// WhereHasWorkflowProposalCreators applies a predicate to check if query has an edge workflow_proposal_creators. +func (f *OrganizationFilter) WhereHasWorkflowProposalCreators() { + f.Where(entql.HasEdge("workflow_proposal_creators")) } -// WhereHasRiskCreatorsWith applies a predicate to check if query has an edge risk_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasRiskCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("risk_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowProposalCreatorsWith applies a predicate to check if query has an edge workflow_proposal_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowProposalCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflow_proposal_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIdentityHolderCreators applies a predicate to check if query has an edge identity_holder_creators. -func (f *OrganizationFilter) WhereHasIdentityHolderCreators() { - f.Where(entql.HasEdge("identity_holder_creators")) +// WhereHasCampaignsManager applies a predicate to check if query has an edge campaigns_manager. +func (f *OrganizationFilter) WhereHasCampaignsManager() { + f.Where(entql.HasEdge("campaigns_manager")) } -// WhereHasIdentityHolderCreatorsWith applies a predicate to check if query has an edge identity_holder_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasIdentityHolderCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("identity_holder_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasCampaignsManagerWith applies a predicate to check if query has an edge campaigns_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasCampaignsManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("campaigns_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasScheduledJobCreators applies a predicate to check if query has an edge scheduled_job_creators. -func (f *OrganizationFilter) WhereHasScheduledJobCreators() { - f.Where(entql.HasEdge("scheduled_job_creators")) +// WhereHasComplianceManager applies a predicate to check if query has an edge compliance_manager. +func (f *OrganizationFilter) WhereHasComplianceManager() { + f.Where(entql.HasEdge("compliance_manager")) } -// WhereHasScheduledJobCreatorsWith applies a predicate to check if query has an edge scheduled_job_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasScheduledJobCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("scheduled_job_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasComplianceManagerWith applies a predicate to check if query has an edge compliance_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasComplianceManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("compliance_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasStandardCreators applies a predicate to check if query has an edge standard_creators. -func (f *OrganizationFilter) WhereHasStandardCreators() { - f.Where(entql.HasEdge("standard_creators")) +// WhereHasGroupManager applies a predicate to check if query has an edge group_manager. +func (f *OrganizationFilter) WhereHasGroupManager() { + f.Where(entql.HasEdge("group_manager")) } -// WhereHasStandardCreatorsWith applies a predicate to check if query has an edge standard_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasStandardCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("standard_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupManagerWith applies a predicate to check if query has an edge group_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasGroupManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTemplateCreators applies a predicate to check if query has an edge template_creators. -func (f *OrganizationFilter) WhereHasTemplateCreators() { - f.Where(entql.HasEdge("template_creators")) +// WhereHasPoliciesManager applies a predicate to check if query has an edge policies_manager. +func (f *OrganizationFilter) WhereHasPoliciesManager() { + f.Where(entql.HasEdge("policies_manager")) } -// WhereHasTemplateCreatorsWith applies a predicate to check if query has an edge template_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasTemplateCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("template_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPoliciesManagerWith applies a predicate to check if query has an edge policies_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasPoliciesManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("policies_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSubprocessorCreators applies a predicate to check if query has an edge subprocessor_creators. -func (f *OrganizationFilter) WhereHasSubprocessorCreators() { - f.Where(entql.HasEdge("subprocessor_creators")) +// WhereHasRegistryManager applies a predicate to check if query has an edge registry_manager. +func (f *OrganizationFilter) WhereHasRegistryManager() { + f.Where(entql.HasEdge("registry_manager")) } -// WhereHasSubprocessorCreatorsWith applies a predicate to check if query has an edge subprocessor_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasSubprocessorCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("subprocessor_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRegistryManagerWith applies a predicate to check if query has an edge registry_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasRegistryManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("registry_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTrustCenterDocCreators applies a predicate to check if query has an edge trust_center_doc_creators. -func (f *OrganizationFilter) WhereHasTrustCenterDocCreators() { - f.Where(entql.HasEdge("trust_center_doc_creators")) +// WhereHasRiskManager applies a predicate to check if query has an edge risk_manager. +func (f *OrganizationFilter) WhereHasRiskManager() { + f.Where(entql.HasEdge("risk_manager")) } -// WhereHasTrustCenterDocCreatorsWith applies a predicate to check if query has an edge trust_center_doc_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasTrustCenterDocCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("trust_center_doc_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRiskManagerWith applies a predicate to check if query has an edge risk_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasRiskManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("risk_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasTrustCenterSubprocessorCreators applies a predicate to check if query has an edge trust_center_subprocessor_creators. -func (f *OrganizationFilter) WhereHasTrustCenterSubprocessorCreators() { - f.Where(entql.HasEdge("trust_center_subprocessor_creators")) +// WhereHasTrustCenterManager applies a predicate to check if query has an edge trust_center_manager. +func (f *OrganizationFilter) WhereHasTrustCenterManager() { + f.Where(entql.HasEdge("trust_center_manager")) } -// WhereHasTrustCenterSubprocessorCreatorsWith applies a predicate to check if query has an edge trust_center_subprocessor_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasTrustCenterSubprocessorCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("trust_center_subprocessor_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTrustCenterManagerWith applies a predicate to check if query has an edge trust_center_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTrustCenterManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("trust_center_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasActionPlanCreators applies a predicate to check if query has an edge action_plan_creators. -func (f *OrganizationFilter) WhereHasActionPlanCreators() { - f.Where(entql.HasEdge("action_plan_creators")) +// WhereHasWorkflowsManager applies a predicate to check if query has an edge workflows_manager. +func (f *OrganizationFilter) WhereHasWorkflowsManager() { + f.Where(entql.HasEdge("workflows_manager")) } -// WhereHasActionPlanCreatorsWith applies a predicate to check if query has an edge action_plan_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasActionPlanCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("action_plan_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWorkflowsManagerWith applies a predicate to check if query has an edge workflows_manager with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWorkflowsManagerWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("workflows_manager", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } diff --git a/internal/ent/generated/gql_where_input.go b/internal/ent/generated/gql_where_input.go index 9f934f045e..e1cd97ddca 100644 --- a/internal/ent/generated/gql_where_input.go +++ b/internal/ent/generated/gql_where_input.go @@ -69234,6 +69234,38 @@ type OrganizationWhereInput struct { // "tags" JSON-string-array predicates. TagsHas *string `json:"tagsHas,omitempty"` + // "action_plan_creators" edge predicates. + HasActionPlanCreators *bool `json:"hasActionPlanCreators,omitempty"` + HasActionPlanCreatorsWith []*GroupWhereInput `json:"hasActionPlanCreatorsWith,omitempty"` + + // "api_token_creators" edge predicates. + HasAPITokenCreators *bool `json:"hasAPITokenCreators,omitempty"` + HasAPITokenCreatorsWith []*GroupWhereInput `json:"hasAPITokenCreatorsWith,omitempty"` + + // "assessment_creators" edge predicates. + HasAssessmentCreators *bool `json:"hasAssessmentCreators,omitempty"` + HasAssessmentCreatorsWith []*GroupWhereInput `json:"hasAssessmentCreatorsWith,omitempty"` + + // "asset_creators" edge predicates. + HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` + HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + + // "campaign_creators" edge predicates. + HasCampaignCreators *bool `json:"hasCampaignCreators,omitempty"` + HasCampaignCreatorsWith []*GroupWhereInput `json:"hasCampaignCreatorsWith,omitempty"` + + // "campaign_target_creators" edge predicates. + HasCampaignTargetCreators *bool `json:"hasCampaignTargetCreators,omitempty"` + HasCampaignTargetCreatorsWith []*GroupWhereInput `json:"hasCampaignTargetCreatorsWith,omitempty"` + + // "check_result_creators" edge predicates. + HasCheckResultCreators *bool `json:"hasCheckResultCreators,omitempty"` + HasCheckResultCreatorsWith []*GroupWhereInput `json:"hasCheckResultCreatorsWith,omitempty"` + + // "contact_creators" edge predicates. + HasContactCreators *bool `json:"hasContactCreators,omitempty"` + HasContactCreatorsWith []*GroupWhereInput `json:"hasContactCreatorsWith,omitempty"` + // "control_creators" edge predicates. HasControlCreators *bool `json:"hasControlCreators,omitempty"` HasControlCreatorsWith []*GroupWhereInput `json:"hasControlCreatorsWith,omitempty"` @@ -69246,30 +69278,82 @@ type OrganizationWhereInput struct { HasControlObjectiveCreators *bool `json:"hasControlObjectiveCreators,omitempty"` HasControlObjectiveCreatorsWith []*GroupWhereInput `json:"hasControlObjectiveCreatorsWith,omitempty"` + // "custom_type_enum_creators" edge predicates. + HasCustomTypeEnumCreators *bool `json:"hasCustomTypeEnumCreators,omitempty"` + HasCustomTypeEnumCreatorsWith []*GroupWhereInput `json:"hasCustomTypeEnumCreatorsWith,omitempty"` + + // "discussion_creators" edge predicates. + HasDiscussionCreators *bool `json:"hasDiscussionCreators,omitempty"` + HasDiscussionCreatorsWith []*GroupWhereInput `json:"hasDiscussionCreatorsWith,omitempty"` + + // "email_branding_creators" edge predicates. + HasEmailBrandingCreators *bool `json:"hasEmailBrandingCreators,omitempty"` + HasEmailBrandingCreatorsWith []*GroupWhereInput `json:"hasEmailBrandingCreatorsWith,omitempty"` + + // "email_template_creators" edge predicates. + HasEmailTemplateCreators *bool `json:"hasEmailTemplateCreators,omitempty"` + HasEmailTemplateCreatorsWith []*GroupWhereInput `json:"hasEmailTemplateCreatorsWith,omitempty"` + + // "entity_creators" edge predicates. + HasEntityCreators *bool `json:"hasEntityCreators,omitempty"` + HasEntityCreatorsWith []*GroupWhereInput `json:"hasEntityCreatorsWith,omitempty"` + + // "entity_type_creators" edge predicates. + HasEntityTypeCreators *bool `json:"hasEntityTypeCreators,omitempty"` + HasEntityTypeCreatorsWith []*GroupWhereInput `json:"hasEntityTypeCreatorsWith,omitempty"` + // "evidence_creators" edge predicates. HasEvidenceCreators *bool `json:"hasEvidenceCreators,omitempty"` HasEvidenceCreatorsWith []*GroupWhereInput `json:"hasEvidenceCreatorsWith,omitempty"` - // "asset_creators" edge predicates. - HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` - HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + // "export_creators" edge predicates. + HasExportCreators *bool `json:"hasExportCreators,omitempty"` + HasExportCreatorsWith []*GroupWhereInput `json:"hasExportCreatorsWith,omitempty"` + + // "file_creators" edge predicates. + HasFileCreators *bool `json:"hasFileCreators,omitempty"` + HasFileCreatorsWith []*GroupWhereInput `json:"hasFileCreatorsWith,omitempty"` // "finding_creators" edge predicates. HasFindingCreators *bool `json:"hasFindingCreators,omitempty"` HasFindingCreatorsWith []*GroupWhereInput `json:"hasFindingCreatorsWith,omitempty"` - // "vulnerability_creators" edge predicates. - HasVulnerabilityCreators *bool `json:"hasVulnerabilityCreators,omitempty"` - HasVulnerabilityCreatorsWith []*GroupWhereInput `json:"hasVulnerabilityCreatorsWith,omitempty"` - // "group_creators" edge predicates. HasGroupCreators *bool `json:"hasGroupCreators,omitempty"` HasGroupCreatorsWith []*GroupWhereInput `json:"hasGroupCreatorsWith,omitempty"` + // "identity_holder_creators" edge predicates. + HasIdentityHolderCreators *bool `json:"hasIdentityHolderCreators,omitempty"` + HasIdentityHolderCreatorsWith []*GroupWhereInput `json:"hasIdentityHolderCreatorsWith,omitempty"` + + // "integration_creators" edge predicates. + HasIntegrationCreators *bool `json:"hasIntegrationCreators,omitempty"` + HasIntegrationCreatorsWith []*GroupWhereInput `json:"hasIntegrationCreatorsWith,omitempty"` + + // "integration_webhook_creators" edge predicates. + HasIntegrationWebhookCreators *bool `json:"hasIntegrationWebhookCreators,omitempty"` + HasIntegrationWebhookCreatorsWith []*GroupWhereInput `json:"hasIntegrationWebhookCreatorsWith,omitempty"` + // "internal_policy_creators" edge predicates. HasInternalPolicyCreators *bool `json:"hasInternalPolicyCreators,omitempty"` HasInternalPolicyCreatorsWith []*GroupWhereInput `json:"hasInternalPolicyCreatorsWith,omitempty"` + // "job_runner_creators" edge predicates. + HasJobRunnerCreators *bool `json:"hasJobRunnerCreators,omitempty"` + HasJobRunnerCreatorsWith []*GroupWhereInput `json:"hasJobRunnerCreatorsWith,omitempty"` + + // "job_runner_registration_token_creators" edge predicates. + HasJobRunnerRegistrationTokenCreators *bool `json:"hasJobRunnerRegistrationTokenCreators,omitempty"` + HasJobRunnerRegistrationTokenCreatorsWith []*GroupWhereInput `json:"hasJobRunnerRegistrationTokenCreatorsWith,omitempty"` + + // "job_runner_token_creators" edge predicates. + HasJobRunnerTokenCreators *bool `json:"hasJobRunnerTokenCreators,omitempty"` + HasJobRunnerTokenCreatorsWith []*GroupWhereInput `json:"hasJobRunnerTokenCreatorsWith,omitempty"` + + // "job_template_creators" edge predicates. + HasJobTemplateCreators *bool `json:"hasJobTemplateCreators,omitempty"` + HasJobTemplateCreatorsWith []*GroupWhereInput `json:"hasJobTemplateCreatorsWith,omitempty"` + // "mapped_control_creators" edge predicates. HasMappedControlCreators *bool `json:"hasMappedControlCreators,omitempty"` HasMappedControlCreatorsWith []*GroupWhereInput `json:"hasMappedControlCreatorsWith,omitempty"` @@ -69278,6 +69362,22 @@ type OrganizationWhereInput struct { HasNarrativeCreators *bool `json:"hasNarrativeCreators,omitempty"` HasNarrativeCreatorsWith []*GroupWhereInput `json:"hasNarrativeCreatorsWith,omitempty"` + // "note_creators" edge predicates. + HasNoteCreators *bool `json:"hasNoteCreators,omitempty"` + HasNoteCreatorsWith []*GroupWhereInput `json:"hasNoteCreatorsWith,omitempty"` + + // "notification_template_creators" edge predicates. + HasNotificationTemplateCreators *bool `json:"hasNotificationTemplateCreators,omitempty"` + HasNotificationTemplateCreatorsWith []*GroupWhereInput `json:"hasNotificationTemplateCreatorsWith,omitempty"` + + // "organization_creators" edge predicates. + HasOrganizationCreators *bool `json:"hasOrganizationCreators,omitempty"` + HasOrganizationCreatorsWith []*GroupWhereInput `json:"hasOrganizationCreatorsWith,omitempty"` + + // "platform_creators" edge predicates. + HasPlatformCreators *bool `json:"hasPlatformCreators,omitempty"` + HasPlatformCreatorsWith []*GroupWhereInput `json:"hasPlatformCreatorsWith,omitempty"` + // "procedure_creators" edge predicates. HasProcedureCreators *bool `json:"hasProcedureCreators,omitempty"` HasProcedureCreatorsWith []*GroupWhereInput `json:"hasProcedureCreatorsWith,omitempty"` @@ -69286,41 +69386,169 @@ type OrganizationWhereInput struct { HasProgramCreators *bool `json:"hasProgramCreators,omitempty"` HasProgramCreatorsWith []*GroupWhereInput `json:"hasProgramCreatorsWith,omitempty"` + // "remediation_creators" edge predicates. + HasRemediationCreators *bool `json:"hasRemediationCreators,omitempty"` + HasRemediationCreatorsWith []*GroupWhereInput `json:"hasRemediationCreatorsWith,omitempty"` + + // "review_creators" edge predicates. + HasReviewCreators *bool `json:"hasReviewCreators,omitempty"` + HasReviewCreatorsWith []*GroupWhereInput `json:"hasReviewCreatorsWith,omitempty"` + // "risk_creators" edge predicates. HasRiskCreators *bool `json:"hasRiskCreators,omitempty"` HasRiskCreatorsWith []*GroupWhereInput `json:"hasRiskCreatorsWith,omitempty"` - // "identity_holder_creators" edge predicates. - HasIdentityHolderCreators *bool `json:"hasIdentityHolderCreators,omitempty"` - HasIdentityHolderCreatorsWith []*GroupWhereInput `json:"hasIdentityHolderCreatorsWith,omitempty"` + // "scan_creators" edge predicates. + HasScanCreators *bool `json:"hasScanCreators,omitempty"` + HasScanCreatorsWith []*GroupWhereInput `json:"hasScanCreatorsWith,omitempty"` // "scheduled_job_creators" edge predicates. HasScheduledJobCreators *bool `json:"hasScheduledJobCreators,omitempty"` HasScheduledJobCreatorsWith []*GroupWhereInput `json:"hasScheduledJobCreatorsWith,omitempty"` + // "scheduled_job_run_creators" edge predicates. + HasScheduledJobRunCreators *bool `json:"hasScheduledJobRunCreators,omitempty"` + HasScheduledJobRunCreatorsWith []*GroupWhereInput `json:"hasScheduledJobRunCreatorsWith,omitempty"` + // "standard_creators" edge predicates. HasStandardCreators *bool `json:"hasStandardCreators,omitempty"` HasStandardCreatorsWith []*GroupWhereInput `json:"hasStandardCreatorsWith,omitempty"` - // "template_creators" edge predicates. - HasTemplateCreators *bool `json:"hasTemplateCreators,omitempty"` - HasTemplateCreatorsWith []*GroupWhereInput `json:"hasTemplateCreatorsWith,omitempty"` + // "subcontrol_creators" edge predicates. + HasSubcontrolCreators *bool `json:"hasSubcontrolCreators,omitempty"` + HasSubcontrolCreatorsWith []*GroupWhereInput `json:"hasSubcontrolCreatorsWith,omitempty"` // "subprocessor_creators" edge predicates. HasSubprocessorCreators *bool `json:"hasSubprocessorCreators,omitempty"` HasSubprocessorCreatorsWith []*GroupWhereInput `json:"hasSubprocessorCreatorsWith,omitempty"` + // "subscriber_creators" edge predicates. + HasSubscriberCreators *bool `json:"hasSubscriberCreators,omitempty"` + HasSubscriberCreatorsWith []*GroupWhereInput `json:"hasSubscriberCreatorsWith,omitempty"` + + // "system_detail_creators" edge predicates. + HasSystemDetailCreators *bool `json:"hasSystemDetailCreators,omitempty"` + HasSystemDetailCreatorsWith []*GroupWhereInput `json:"hasSystemDetailCreatorsWith,omitempty"` + + // "tag_definition_creators" edge predicates. + HasTagDefinitionCreators *bool `json:"hasTagDefinitionCreators,omitempty"` + HasTagDefinitionCreatorsWith []*GroupWhereInput `json:"hasTagDefinitionCreatorsWith,omitempty"` + + // "task_creators" edge predicates. + HasTaskCreators *bool `json:"hasTaskCreators,omitempty"` + HasTaskCreatorsWith []*GroupWhereInput `json:"hasTaskCreatorsWith,omitempty"` + + // "template_creators" edge predicates. + HasTemplateCreators *bool `json:"hasTemplateCreators,omitempty"` + HasTemplateCreatorsWith []*GroupWhereInput `json:"hasTemplateCreatorsWith,omitempty"` + + // "trust_center_creators" edge predicates. + HasTrustCenterCreators *bool `json:"hasTrustCenterCreators,omitempty"` + HasTrustCenterCreatorsWith []*GroupWhereInput `json:"hasTrustCenterCreatorsWith,omitempty"` + + // "trust_center_compliance_creators" edge predicates. + HasTrustCenterComplianceCreators *bool `json:"hasTrustCenterComplianceCreators,omitempty"` + HasTrustCenterComplianceCreatorsWith []*GroupWhereInput `json:"hasTrustCenterComplianceCreatorsWith,omitempty"` + // "trust_center_doc_creators" edge predicates. HasTrustCenterDocCreators *bool `json:"hasTrustCenterDocCreators,omitempty"` HasTrustCenterDocCreatorsWith []*GroupWhereInput `json:"hasTrustCenterDocCreatorsWith,omitempty"` + // "trust_center_entity_creators" edge predicates. + HasTrustCenterEntityCreators *bool `json:"hasTrustCenterEntityCreators,omitempty"` + HasTrustCenterEntityCreatorsWith []*GroupWhereInput `json:"hasTrustCenterEntityCreatorsWith,omitempty"` + + // "trust_center_faq_creators" edge predicates. + HasTrustCenterFaqCreators *bool `json:"hasTrustCenterFaqCreators,omitempty"` + HasTrustCenterFaqCreatorsWith []*GroupWhereInput `json:"hasTrustCenterFaqCreatorsWith,omitempty"` + + // "trust_center_nda_request_creators" edge predicates. + HasTrustCenterNdaRequestCreators *bool `json:"hasTrustCenterNdaRequestCreators,omitempty"` + HasTrustCenterNdaRequestCreatorsWith []*GroupWhereInput `json:"hasTrustCenterNdaRequestCreatorsWith,omitempty"` + // "trust_center_subprocessor_creators" edge predicates. HasTrustCenterSubprocessorCreators *bool `json:"hasTrustCenterSubprocessorCreators,omitempty"` HasTrustCenterSubprocessorCreatorsWith []*GroupWhereInput `json:"hasTrustCenterSubprocessorCreatorsWith,omitempty"` - // "action_plan_creators" edge predicates. - HasActionPlanCreators *bool `json:"hasActionPlanCreators,omitempty"` - HasActionPlanCreatorsWith []*GroupWhereInput `json:"hasActionPlanCreatorsWith,omitempty"` + // "trust_center_watermark_config_creators" edge predicates. + HasTrustCenterWatermarkConfigCreators *bool `json:"hasTrustCenterWatermarkConfigCreators,omitempty"` + HasTrustCenterWatermarkConfigCreatorsWith []*GroupWhereInput `json:"hasTrustCenterWatermarkConfigCreatorsWith,omitempty"` + + // "user_creators" edge predicates. + HasUserCreators *bool `json:"hasUserCreators,omitempty"` + HasUserCreatorsWith []*GroupWhereInput `json:"hasUserCreatorsWith,omitempty"` + + // "user_setting_creators" edge predicates. + HasUserSettingCreators *bool `json:"hasUserSettingCreators,omitempty"` + HasUserSettingCreatorsWith []*GroupWhereInput `json:"hasUserSettingCreatorsWith,omitempty"` + + // "vendor_risk_score_creators" edge predicates. + HasVendorRiskScoreCreators *bool `json:"hasVendorRiskScoreCreators,omitempty"` + HasVendorRiskScoreCreatorsWith []*GroupWhereInput `json:"hasVendorRiskScoreCreatorsWith,omitempty"` + + // "vulnerability_creators" edge predicates. + HasVulnerabilityCreators *bool `json:"hasVulnerabilityCreators,omitempty"` + HasVulnerabilityCreatorsWith []*GroupWhereInput `json:"hasVulnerabilityCreatorsWith,omitempty"` + + // "workflow_assignment_creators" edge predicates. + HasWorkflowAssignmentCreators *bool `json:"hasWorkflowAssignmentCreators,omitempty"` + HasWorkflowAssignmentCreatorsWith []*GroupWhereInput `json:"hasWorkflowAssignmentCreatorsWith,omitempty"` + + // "workflow_assignment_target_creators" edge predicates. + HasWorkflowAssignmentTargetCreators *bool `json:"hasWorkflowAssignmentTargetCreators,omitempty"` + HasWorkflowAssignmentTargetCreatorsWith []*GroupWhereInput `json:"hasWorkflowAssignmentTargetCreatorsWith,omitempty"` + + // "workflow_definition_creators" edge predicates. + HasWorkflowDefinitionCreators *bool `json:"hasWorkflowDefinitionCreators,omitempty"` + HasWorkflowDefinitionCreatorsWith []*GroupWhereInput `json:"hasWorkflowDefinitionCreatorsWith,omitempty"` + + // "workflow_event_creators" edge predicates. + HasWorkflowEventCreators *bool `json:"hasWorkflowEventCreators,omitempty"` + HasWorkflowEventCreatorsWith []*GroupWhereInput `json:"hasWorkflowEventCreatorsWith,omitempty"` + + // "workflow_instance_creators" edge predicates. + HasWorkflowInstanceCreators *bool `json:"hasWorkflowInstanceCreators,omitempty"` + HasWorkflowInstanceCreatorsWith []*GroupWhereInput `json:"hasWorkflowInstanceCreatorsWith,omitempty"` + + // "workflow_object_ref_creators" edge predicates. + HasWorkflowObjectRefCreators *bool `json:"hasWorkflowObjectRefCreators,omitempty"` + HasWorkflowObjectRefCreatorsWith []*GroupWhereInput `json:"hasWorkflowObjectRefCreatorsWith,omitempty"` + + // "workflow_proposal_creators" edge predicates. + HasWorkflowProposalCreators *bool `json:"hasWorkflowProposalCreators,omitempty"` + HasWorkflowProposalCreatorsWith []*GroupWhereInput `json:"hasWorkflowProposalCreatorsWith,omitempty"` + + // "campaigns_manager" edge predicates. + HasCampaignsManager *bool `json:"hasCampaignsManager,omitempty"` + HasCampaignsManagerWith []*GroupWhereInput `json:"hasCampaignsManagerWith,omitempty"` + + // "compliance_manager" edge predicates. + HasComplianceManager *bool `json:"hasComplianceManager,omitempty"` + HasComplianceManagerWith []*GroupWhereInput `json:"hasComplianceManagerWith,omitempty"` + + // "group_manager" edge predicates. + HasGroupManager *bool `json:"hasGroupManager,omitempty"` + HasGroupManagerWith []*GroupWhereInput `json:"hasGroupManagerWith,omitempty"` + + // "policies_manager" edge predicates. + HasPoliciesManager *bool `json:"hasPoliciesManager,omitempty"` + HasPoliciesManagerWith []*GroupWhereInput `json:"hasPoliciesManagerWith,omitempty"` + + // "registry_manager" edge predicates. + HasRegistryManager *bool `json:"hasRegistryManager,omitempty"` + HasRegistryManagerWith []*GroupWhereInput `json:"hasRegistryManagerWith,omitempty"` + + // "risk_manager" edge predicates. + HasRiskManager *bool `json:"hasRiskManager,omitempty"` + HasRiskManagerWith []*GroupWhereInput `json:"hasRiskManagerWith,omitempty"` + + // "trust_center_manager" edge predicates. + HasTrustCenterManager *bool `json:"hasTrustCenterManager,omitempty"` + HasTrustCenterManagerWith []*GroupWhereInput `json:"hasTrustCenterManagerWith,omitempty"` + + // "workflows_manager" edge predicates. + HasWorkflowsManager *bool `json:"hasWorkflowsManager,omitempty"` + HasWorkflowsManagerWith []*GroupWhereInput `json:"hasWorkflowsManagerWith,omitempty"` // "parent" edge predicates. HasParent *bool `json:"hasParent,omitempty"` @@ -70122,81 +70350,62 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { }) } - if i.HasControlCreators != nil { - p := organization.HasControlCreators() - if !*i.HasControlCreators { - p = organization.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasControlCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasControlCreatorsWith)) - with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasControlCreatorsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasControlCreatorsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasControlCreatorsWith(with...)) - } - if i.HasControlImplementationCreators != nil { - p := organization.HasControlImplementationCreators() - if !*i.HasControlImplementationCreators { + if i.HasActionPlanCreators != nil { + p := organization.HasActionPlanCreators() + if !*i.HasActionPlanCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasControlImplementationCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasControlImplementationCreatorsWith)) + if len(i.HasActionPlanCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasActionPlanCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasControlImplementationCreatorsWith { + for _, w := range i.HasActionPlanCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasControlImplementationCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasActionPlanCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasControlImplementationCreatorsWith(with...)) + predicates = append(predicates, organization.HasActionPlanCreatorsWith(with...)) } - if i.HasControlObjectiveCreators != nil { - p := organization.HasControlObjectiveCreators() - if !*i.HasControlObjectiveCreators { + if i.HasAPITokenCreators != nil { + p := organization.HasAPITokenCreators() + if !*i.HasAPITokenCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasControlObjectiveCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasControlObjectiveCreatorsWith)) + if len(i.HasAPITokenCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasAPITokenCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasControlObjectiveCreatorsWith { + for _, w := range i.HasAPITokenCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasControlObjectiveCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasAPITokenCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasControlObjectiveCreatorsWith(with...)) + predicates = append(predicates, organization.HasAPITokenCreatorsWith(with...)) } - if i.HasEvidenceCreators != nil { - p := organization.HasEvidenceCreators() - if !*i.HasEvidenceCreators { + if i.HasAssessmentCreators != nil { + p := organization.HasAssessmentCreators() + if !*i.HasAssessmentCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasEvidenceCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasEvidenceCreatorsWith)) + if len(i.HasAssessmentCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasAssessmentCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasEvidenceCreatorsWith { + for _, w := range i.HasAssessmentCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEvidenceCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasAssessmentCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasEvidenceCreatorsWith(with...)) + predicates = append(predicates, organization.HasAssessmentCreatorsWith(with...)) } if i.HasAssetCreators != nil { p := organization.HasAssetCreators() @@ -70217,290 +70426,1031 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, organization.HasAssetCreatorsWith(with...)) } - if i.HasFindingCreators != nil { - p := organization.HasFindingCreators() - if !*i.HasFindingCreators { + if i.HasCampaignCreators != nil { + p := organization.HasCampaignCreators() + if !*i.HasCampaignCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasFindingCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasFindingCreatorsWith)) + if len(i.HasCampaignCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasCampaignCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasFindingCreatorsWith { + for _, w := range i.HasCampaignCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasFindingCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasCampaignCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasFindingCreatorsWith(with...)) + predicates = append(predicates, organization.HasCampaignCreatorsWith(with...)) } - if i.HasVulnerabilityCreators != nil { - p := organization.HasVulnerabilityCreators() - if !*i.HasVulnerabilityCreators { + if i.HasCampaignTargetCreators != nil { + p := organization.HasCampaignTargetCreators() + if !*i.HasCampaignTargetCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasVulnerabilityCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasVulnerabilityCreatorsWith)) + if len(i.HasCampaignTargetCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasCampaignTargetCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasVulnerabilityCreatorsWith { + for _, w := range i.HasCampaignTargetCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasVulnerabilityCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasCampaignTargetCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasVulnerabilityCreatorsWith(with...)) + predicates = append(predicates, organization.HasCampaignTargetCreatorsWith(with...)) } - if i.HasGroupCreators != nil { - p := organization.HasGroupCreators() - if !*i.HasGroupCreators { + if i.HasCheckResultCreators != nil { + p := organization.HasCheckResultCreators() + if !*i.HasCheckResultCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasGroupCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupCreatorsWith)) + if len(i.HasCheckResultCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasCheckResultCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasGroupCreatorsWith { + for _, w := range i.HasCheckResultCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasGroupCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasCheckResultCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasGroupCreatorsWith(with...)) + predicates = append(predicates, organization.HasCheckResultCreatorsWith(with...)) } - if i.HasInternalPolicyCreators != nil { - p := organization.HasInternalPolicyCreators() - if !*i.HasInternalPolicyCreators { + if i.HasContactCreators != nil { + p := organization.HasContactCreators() + if !*i.HasContactCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasInternalPolicyCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasInternalPolicyCreatorsWith)) + if len(i.HasContactCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasContactCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasInternalPolicyCreatorsWith { + for _, w := range i.HasContactCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasInternalPolicyCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasContactCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasInternalPolicyCreatorsWith(with...)) + predicates = append(predicates, organization.HasContactCreatorsWith(with...)) } - if i.HasMappedControlCreators != nil { - p := organization.HasMappedControlCreators() - if !*i.HasMappedControlCreators { + if i.HasControlCreators != nil { + p := organization.HasControlCreators() + if !*i.HasControlCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasMappedControlCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasMappedControlCreatorsWith)) + if len(i.HasControlCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasControlCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasMappedControlCreatorsWith { + for _, w := range i.HasControlCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasMappedControlCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasMappedControlCreatorsWith(with...)) + predicates = append(predicates, organization.HasControlCreatorsWith(with...)) } - if i.HasNarrativeCreators != nil { - p := organization.HasNarrativeCreators() - if !*i.HasNarrativeCreators { + if i.HasControlImplementationCreators != nil { + p := organization.HasControlImplementationCreators() + if !*i.HasControlImplementationCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasNarrativeCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasNarrativeCreatorsWith)) + if len(i.HasControlImplementationCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasControlImplementationCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasNarrativeCreatorsWith { + for _, w := range i.HasControlImplementationCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasNarrativeCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlImplementationCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasNarrativeCreatorsWith(with...)) + predicates = append(predicates, organization.HasControlImplementationCreatorsWith(with...)) } - if i.HasProcedureCreators != nil { - p := organization.HasProcedureCreators() - if !*i.HasProcedureCreators { + if i.HasControlObjectiveCreators != nil { + p := organization.HasControlObjectiveCreators() + if !*i.HasControlObjectiveCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasProcedureCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasProcedureCreatorsWith)) + if len(i.HasControlObjectiveCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasControlObjectiveCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasProcedureCreatorsWith { + for _, w := range i.HasControlObjectiveCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasProcedureCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlObjectiveCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasProcedureCreatorsWith(with...)) + predicates = append(predicates, organization.HasControlObjectiveCreatorsWith(with...)) } - if i.HasProgramCreators != nil { - p := organization.HasProgramCreators() - if !*i.HasProgramCreators { + if i.HasCustomTypeEnumCreators != nil { + p := organization.HasCustomTypeEnumCreators() + if !*i.HasCustomTypeEnumCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasProgramCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasProgramCreatorsWith)) + if len(i.HasCustomTypeEnumCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasCustomTypeEnumCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasProgramCreatorsWith { + for _, w := range i.HasCustomTypeEnumCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasProgramCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasCustomTypeEnumCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasProgramCreatorsWith(with...)) + predicates = append(predicates, organization.HasCustomTypeEnumCreatorsWith(with...)) } - if i.HasRiskCreators != nil { - p := organization.HasRiskCreators() - if !*i.HasRiskCreators { + if i.HasDiscussionCreators != nil { + p := organization.HasDiscussionCreators() + if !*i.HasDiscussionCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasRiskCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasRiskCreatorsWith)) + if len(i.HasDiscussionCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasDiscussionCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasRiskCreatorsWith { + for _, w := range i.HasDiscussionCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasRiskCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasDiscussionCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasRiskCreatorsWith(with...)) + predicates = append(predicates, organization.HasDiscussionCreatorsWith(with...)) } - if i.HasIdentityHolderCreators != nil { - p := organization.HasIdentityHolderCreators() - if !*i.HasIdentityHolderCreators { + if i.HasEmailBrandingCreators != nil { + p := organization.HasEmailBrandingCreators() + if !*i.HasEmailBrandingCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasIdentityHolderCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasIdentityHolderCreatorsWith)) + if len(i.HasEmailBrandingCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEmailBrandingCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasIdentityHolderCreatorsWith { + for _, w := range i.HasEmailBrandingCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasIdentityHolderCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasEmailBrandingCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasIdentityHolderCreatorsWith(with...)) + predicates = append(predicates, organization.HasEmailBrandingCreatorsWith(with...)) } - if i.HasScheduledJobCreators != nil { - p := organization.HasScheduledJobCreators() - if !*i.HasScheduledJobCreators { + if i.HasEmailTemplateCreators != nil { + p := organization.HasEmailTemplateCreators() + if !*i.HasEmailTemplateCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasScheduledJobCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasScheduledJobCreatorsWith)) + if len(i.HasEmailTemplateCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEmailTemplateCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasScheduledJobCreatorsWith { + for _, w := range i.HasEmailTemplateCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasScheduledJobCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasEmailTemplateCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasScheduledJobCreatorsWith(with...)) + predicates = append(predicates, organization.HasEmailTemplateCreatorsWith(with...)) } - if i.HasStandardCreators != nil { - p := organization.HasStandardCreators() - if !*i.HasStandardCreators { + if i.HasEntityCreators != nil { + p := organization.HasEntityCreators() + if !*i.HasEntityCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasStandardCreatorsWith) > 0 { + if len(i.HasEntityCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEntityCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasEntityCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntityCreatorsWith(with...)) + } + if i.HasEntityTypeCreators != nil { + p := organization.HasEntityTypeCreators() + if !*i.HasEntityTypeCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntityTypeCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEntityTypeCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasEntityTypeCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityTypeCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntityTypeCreatorsWith(with...)) + } + if i.HasEvidenceCreators != nil { + p := organization.HasEvidenceCreators() + if !*i.HasEvidenceCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEvidenceCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEvidenceCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasEvidenceCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEvidenceCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEvidenceCreatorsWith(with...)) + } + if i.HasExportCreators != nil { + p := organization.HasExportCreators() + if !*i.HasExportCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasExportCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasExportCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasExportCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasExportCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasExportCreatorsWith(with...)) + } + if i.HasFileCreators != nil { + p := organization.HasFileCreators() + if !*i.HasFileCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFileCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasFileCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasFileCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFileCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasFileCreatorsWith(with...)) + } + if i.HasFindingCreators != nil { + p := organization.HasFindingCreators() + if !*i.HasFindingCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFindingCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasFindingCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasFindingCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFindingCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasFindingCreatorsWith(with...)) + } + if i.HasGroupCreators != nil { + p := organization.HasGroupCreators() + if !*i.HasGroupCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasGroupCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasGroupCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasGroupCreatorsWith(with...)) + } + if i.HasIdentityHolderCreators != nil { + p := organization.HasIdentityHolderCreators() + if !*i.HasIdentityHolderCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIdentityHolderCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasIdentityHolderCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasIdentityHolderCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIdentityHolderCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasIdentityHolderCreatorsWith(with...)) + } + if i.HasIntegrationCreators != nil { + p := organization.HasIntegrationCreators() + if !*i.HasIntegrationCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIntegrationCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasIntegrationCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasIntegrationCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasIntegrationCreatorsWith(with...)) + } + if i.HasIntegrationWebhookCreators != nil { + p := organization.HasIntegrationWebhookCreators() + if !*i.HasIntegrationWebhookCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIntegrationWebhookCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasIntegrationWebhookCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasIntegrationWebhookCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationWebhookCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasIntegrationWebhookCreatorsWith(with...)) + } + if i.HasInternalPolicyCreators != nil { + p := organization.HasInternalPolicyCreators() + if !*i.HasInternalPolicyCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasInternalPolicyCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasInternalPolicyCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasInternalPolicyCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasInternalPolicyCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasInternalPolicyCreatorsWith(with...)) + } + if i.HasJobRunnerCreators != nil { + p := organization.HasJobRunnerCreators() + if !*i.HasJobRunnerCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasJobRunnerCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasJobRunnerCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasJobRunnerCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasJobRunnerCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasJobRunnerCreatorsWith(with...)) + } + if i.HasJobRunnerRegistrationTokenCreators != nil { + p := organization.HasJobRunnerRegistrationTokenCreators() + if !*i.HasJobRunnerRegistrationTokenCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasJobRunnerRegistrationTokenCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasJobRunnerRegistrationTokenCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasJobRunnerRegistrationTokenCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasJobRunnerRegistrationTokenCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasJobRunnerRegistrationTokenCreatorsWith(with...)) + } + if i.HasJobRunnerTokenCreators != nil { + p := organization.HasJobRunnerTokenCreators() + if !*i.HasJobRunnerTokenCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasJobRunnerTokenCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasJobRunnerTokenCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasJobRunnerTokenCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasJobRunnerTokenCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasJobRunnerTokenCreatorsWith(with...)) + } + if i.HasJobTemplateCreators != nil { + p := organization.HasJobTemplateCreators() + if !*i.HasJobTemplateCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasJobTemplateCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasJobTemplateCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasJobTemplateCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasJobTemplateCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasJobTemplateCreatorsWith(with...)) + } + if i.HasMappedControlCreators != nil { + p := organization.HasMappedControlCreators() + if !*i.HasMappedControlCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasMappedControlCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasMappedControlCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasMappedControlCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasMappedControlCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasMappedControlCreatorsWith(with...)) + } + if i.HasNarrativeCreators != nil { + p := organization.HasNarrativeCreators() + if !*i.HasNarrativeCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNarrativeCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasNarrativeCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasNarrativeCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNarrativeCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasNarrativeCreatorsWith(with...)) + } + if i.HasNoteCreators != nil { + p := organization.HasNoteCreators() + if !*i.HasNoteCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNoteCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasNoteCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasNoteCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNoteCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasNoteCreatorsWith(with...)) + } + if i.HasNotificationTemplateCreators != nil { + p := organization.HasNotificationTemplateCreators() + if !*i.HasNotificationTemplateCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNotificationTemplateCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasNotificationTemplateCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasNotificationTemplateCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNotificationTemplateCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasNotificationTemplateCreatorsWith(with...)) + } + if i.HasOrganizationCreators != nil { + p := organization.HasOrganizationCreators() + if !*i.HasOrganizationCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOrganizationCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasOrganizationCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasOrganizationCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasOrganizationCreatorsWith(with...)) + } + if i.HasPlatformCreators != nil { + p := organization.HasPlatformCreators() + if !*i.HasPlatformCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPlatformCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasPlatformCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasPlatformCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPlatformCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasPlatformCreatorsWith(with...)) + } + if i.HasProcedureCreators != nil { + p := organization.HasProcedureCreators() + if !*i.HasProcedureCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProcedureCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasProcedureCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasProcedureCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProcedureCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasProcedureCreatorsWith(with...)) + } + if i.HasProgramCreators != nil { + p := organization.HasProgramCreators() + if !*i.HasProgramCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProgramCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasProgramCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasProgramCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProgramCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasProgramCreatorsWith(with...)) + } + if i.HasRemediationCreators != nil { + p := organization.HasRemediationCreators() + if !*i.HasRemediationCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasRemediationCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasRemediationCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasRemediationCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasRemediationCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasRemediationCreatorsWith(with...)) + } + if i.HasReviewCreators != nil { + p := organization.HasReviewCreators() + if !*i.HasReviewCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasReviewCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasReviewCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasReviewCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasReviewCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasReviewCreatorsWith(with...)) + } + if i.HasRiskCreators != nil { + p := organization.HasRiskCreators() + if !*i.HasRiskCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasRiskCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasRiskCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasRiskCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasRiskCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasRiskCreatorsWith(with...)) + } + if i.HasScanCreators != nil { + p := organization.HasScanCreators() + if !*i.HasScanCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasScanCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasScanCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasScanCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasScanCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasScanCreatorsWith(with...)) + } + if i.HasScheduledJobCreators != nil { + p := organization.HasScheduledJobCreators() + if !*i.HasScheduledJobCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasScheduledJobCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasScheduledJobCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasScheduledJobCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasScheduledJobCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasScheduledJobCreatorsWith(with...)) + } + if i.HasScheduledJobRunCreators != nil { + p := organization.HasScheduledJobRunCreators() + if !*i.HasScheduledJobRunCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasScheduledJobRunCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasScheduledJobRunCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasScheduledJobRunCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasScheduledJobRunCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasScheduledJobRunCreatorsWith(with...)) + } + if i.HasStandardCreators != nil { + p := organization.HasStandardCreators() + if !*i.HasStandardCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasStandardCreatorsWith) > 0 { with := make([]predicate.Group, 0, len(i.HasStandardCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasStandardCreatorsWith { + for _, w := range i.HasStandardCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasStandardCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasStandardCreatorsWith(with...)) + } + if i.HasSubcontrolCreators != nil { + p := organization.HasSubcontrolCreators() + if !*i.HasSubcontrolCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubcontrolCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasSubcontrolCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasSubcontrolCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubcontrolCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSubcontrolCreatorsWith(with...)) + } + if i.HasSubprocessorCreators != nil { + p := organization.HasSubprocessorCreators() + if !*i.HasSubprocessorCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubprocessorCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasSubprocessorCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasSubprocessorCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubprocessorCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSubprocessorCreatorsWith(with...)) + } + if i.HasSubscriberCreators != nil { + p := organization.HasSubscriberCreators() + if !*i.HasSubscriberCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubscriberCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasSubscriberCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasSubscriberCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubscriberCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSubscriberCreatorsWith(with...)) + } + if i.HasSystemDetailCreators != nil { + p := organization.HasSystemDetailCreators() + if !*i.HasSystemDetailCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSystemDetailCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasSystemDetailCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasSystemDetailCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSystemDetailCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSystemDetailCreatorsWith(with...)) + } + if i.HasTagDefinitionCreators != nil { + p := organization.HasTagDefinitionCreators() + if !*i.HasTagDefinitionCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTagDefinitionCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTagDefinitionCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTagDefinitionCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTagDefinitionCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTagDefinitionCreatorsWith(with...)) + } + if i.HasTaskCreators != nil { + p := organization.HasTaskCreators() + if !*i.HasTaskCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTaskCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTaskCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTaskCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTaskCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTaskCreatorsWith(with...)) + } + if i.HasTemplateCreators != nil { + p := organization.HasTemplateCreators() + if !*i.HasTemplateCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTemplateCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTemplateCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTemplateCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTemplateCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTemplateCreatorsWith(with...)) + } + if i.HasTrustCenterCreators != nil { + p := organization.HasTrustCenterCreators() + if !*i.HasTrustCenterCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTrustCenterCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTrustCenterCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTrustCenterCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTrustCenterCreatorsWith(with...)) + } + if i.HasTrustCenterComplianceCreators != nil { + p := organization.HasTrustCenterComplianceCreators() + if !*i.HasTrustCenterComplianceCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTrustCenterComplianceCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterComplianceCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTrustCenterComplianceCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTrustCenterComplianceCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTrustCenterComplianceCreatorsWith(with...)) + } + if i.HasTrustCenterDocCreators != nil { + p := organization.HasTrustCenterDocCreators() + if !*i.HasTrustCenterDocCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTrustCenterDocCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterDocCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTrustCenterDocCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasStandardCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasTrustCenterDocCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasStandardCreatorsWith(with...)) + predicates = append(predicates, organization.HasTrustCenterDocCreatorsWith(with...)) } - if i.HasTemplateCreators != nil { - p := organization.HasTemplateCreators() - if !*i.HasTemplateCreators { + if i.HasTrustCenterEntityCreators != nil { + p := organization.HasTrustCenterEntityCreators() + if !*i.HasTrustCenterEntityCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasTemplateCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasTemplateCreatorsWith)) + if len(i.HasTrustCenterEntityCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterEntityCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasTemplateCreatorsWith { + for _, w := range i.HasTrustCenterEntityCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasTemplateCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasTrustCenterEntityCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasTemplateCreatorsWith(with...)) + predicates = append(predicates, organization.HasTrustCenterEntityCreatorsWith(with...)) } - if i.HasSubprocessorCreators != nil { - p := organization.HasSubprocessorCreators() - if !*i.HasSubprocessorCreators { + if i.HasTrustCenterFaqCreators != nil { + p := organization.HasTrustCenterFaqCreators() + if !*i.HasTrustCenterFaqCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasSubprocessorCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasSubprocessorCreatorsWith)) + if len(i.HasTrustCenterFaqCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterFaqCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasSubprocessorCreatorsWith { + for _, w := range i.HasTrustCenterFaqCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasSubprocessorCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasTrustCenterFaqCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasSubprocessorCreatorsWith(with...)) + predicates = append(predicates, organization.HasTrustCenterFaqCreatorsWith(with...)) } - if i.HasTrustCenterDocCreators != nil { - p := organization.HasTrustCenterDocCreators() - if !*i.HasTrustCenterDocCreators { + if i.HasTrustCenterNdaRequestCreators != nil { + p := organization.HasTrustCenterNdaRequestCreators() + if !*i.HasTrustCenterNdaRequestCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasTrustCenterDocCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasTrustCenterDocCreatorsWith)) + if len(i.HasTrustCenterNdaRequestCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterNdaRequestCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasTrustCenterDocCreatorsWith { + for _, w := range i.HasTrustCenterNdaRequestCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasTrustCenterDocCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasTrustCenterNdaRequestCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasTrustCenterDocCreatorsWith(with...)) + predicates = append(predicates, organization.HasTrustCenterNdaRequestCreatorsWith(with...)) } if i.HasTrustCenterSubprocessorCreators != nil { p := organization.HasTrustCenterSubprocessorCreators() @@ -70521,24 +71471,385 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, organization.HasTrustCenterSubprocessorCreatorsWith(with...)) } - if i.HasActionPlanCreators != nil { - p := organization.HasActionPlanCreators() - if !*i.HasActionPlanCreators { + if i.HasTrustCenterWatermarkConfigCreators != nil { + p := organization.HasTrustCenterWatermarkConfigCreators() + if !*i.HasTrustCenterWatermarkConfigCreators { p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasActionPlanCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasActionPlanCreatorsWith)) + if len(i.HasTrustCenterWatermarkConfigCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterWatermarkConfigCreatorsWith)) with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasActionPlanCreatorsWith { + for _, w := range i.HasTrustCenterWatermarkConfigCreatorsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasActionPlanCreatorsWith'", err) + return nil, fmt.Errorf("%w: field 'HasTrustCenterWatermarkConfigCreatorsWith'", err) } with = append(with, p) } - predicates = append(predicates, organization.HasActionPlanCreatorsWith(with...)) + predicates = append(predicates, organization.HasTrustCenterWatermarkConfigCreatorsWith(with...)) + } + if i.HasUserCreators != nil { + p := organization.HasUserCreators() + if !*i.HasUserCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUserCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasUserCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasUserCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUserCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasUserCreatorsWith(with...)) + } + if i.HasUserSettingCreators != nil { + p := organization.HasUserSettingCreators() + if !*i.HasUserSettingCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUserSettingCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasUserSettingCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasUserSettingCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUserSettingCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasUserSettingCreatorsWith(with...)) + } + if i.HasVendorRiskScoreCreators != nil { + p := organization.HasVendorRiskScoreCreators() + if !*i.HasVendorRiskScoreCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasVendorRiskScoreCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasVendorRiskScoreCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasVendorRiskScoreCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasVendorRiskScoreCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasVendorRiskScoreCreatorsWith(with...)) + } + if i.HasVulnerabilityCreators != nil { + p := organization.HasVulnerabilityCreators() + if !*i.HasVulnerabilityCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasVulnerabilityCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasVulnerabilityCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasVulnerabilityCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasVulnerabilityCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasVulnerabilityCreatorsWith(with...)) + } + if i.HasWorkflowAssignmentCreators != nil { + p := organization.HasWorkflowAssignmentCreators() + if !*i.HasWorkflowAssignmentCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowAssignmentCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowAssignmentCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowAssignmentCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowAssignmentCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowAssignmentCreatorsWith(with...)) + } + if i.HasWorkflowAssignmentTargetCreators != nil { + p := organization.HasWorkflowAssignmentTargetCreators() + if !*i.HasWorkflowAssignmentTargetCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowAssignmentTargetCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowAssignmentTargetCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowAssignmentTargetCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowAssignmentTargetCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowAssignmentTargetCreatorsWith(with...)) + } + if i.HasWorkflowDefinitionCreators != nil { + p := organization.HasWorkflowDefinitionCreators() + if !*i.HasWorkflowDefinitionCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowDefinitionCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowDefinitionCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowDefinitionCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowDefinitionCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowDefinitionCreatorsWith(with...)) + } + if i.HasWorkflowEventCreators != nil { + p := organization.HasWorkflowEventCreators() + if !*i.HasWorkflowEventCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowEventCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowEventCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowEventCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowEventCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowEventCreatorsWith(with...)) + } + if i.HasWorkflowInstanceCreators != nil { + p := organization.HasWorkflowInstanceCreators() + if !*i.HasWorkflowInstanceCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowInstanceCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowInstanceCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowInstanceCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowInstanceCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowInstanceCreatorsWith(with...)) + } + if i.HasWorkflowObjectRefCreators != nil { + p := organization.HasWorkflowObjectRefCreators() + if !*i.HasWorkflowObjectRefCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowObjectRefCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowObjectRefCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowObjectRefCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowObjectRefCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowObjectRefCreatorsWith(with...)) + } + if i.HasWorkflowProposalCreators != nil { + p := organization.HasWorkflowProposalCreators() + if !*i.HasWorkflowProposalCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowProposalCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowProposalCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowProposalCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowProposalCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowProposalCreatorsWith(with...)) + } + if i.HasCampaignsManager != nil { + p := organization.HasCampaignsManager() + if !*i.HasCampaignsManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasCampaignsManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasCampaignsManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasCampaignsManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasCampaignsManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasCampaignsManagerWith(with...)) + } + if i.HasComplianceManager != nil { + p := organization.HasComplianceManager() + if !*i.HasComplianceManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasComplianceManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasComplianceManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasComplianceManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasComplianceManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasComplianceManagerWith(with...)) + } + if i.HasGroupManager != nil { + p := organization.HasGroupManager() + if !*i.HasGroupManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasGroupManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasGroupManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasGroupManagerWith(with...)) + } + if i.HasPoliciesManager != nil { + p := organization.HasPoliciesManager() + if !*i.HasPoliciesManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPoliciesManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasPoliciesManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasPoliciesManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPoliciesManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasPoliciesManagerWith(with...)) + } + if i.HasRegistryManager != nil { + p := organization.HasRegistryManager() + if !*i.HasRegistryManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasRegistryManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasRegistryManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasRegistryManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasRegistryManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasRegistryManagerWith(with...)) + } + if i.HasRiskManager != nil { + p := organization.HasRiskManager() + if !*i.HasRiskManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasRiskManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasRiskManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasRiskManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasRiskManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasRiskManagerWith(with...)) + } + if i.HasTrustCenterManager != nil { + p := organization.HasTrustCenterManager() + if !*i.HasTrustCenterManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTrustCenterManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasTrustCenterManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasTrustCenterManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTrustCenterManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTrustCenterManagerWith(with...)) + } + if i.HasWorkflowsManager != nil { + p := organization.HasWorkflowsManager() + if !*i.HasWorkflowsManager { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWorkflowsManagerWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasWorkflowsManagerWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasWorkflowsManagerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWorkflowsManagerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWorkflowsManagerWith(with...)) } if i.HasParent != nil { p := organization.HasParent() diff --git a/internal/ent/generated/group/group.go b/internal/ent/generated/group/group.go index 47c8e03869..d70494dc0a 100644 --- a/internal/ent/generated/group/group.go +++ b/internal/ent/generated/group/group.go @@ -476,28 +476,85 @@ var ForeignKeys = []string{ "identity_holder_blocked_groups", "identity_holder_editors", "identity_holder_viewers", + "organization_action_plan_creators", + "organization_api_token_creators", + "organization_assessment_creators", + "organization_asset_creators", + "organization_campaign_creators", + "organization_campaign_target_creators", + "organization_check_result_creators", + "organization_contact_creators", "organization_control_creators", "organization_control_implementation_creators", "organization_control_objective_creators", + "organization_custom_type_enum_creators", + "organization_discussion_creators", + "organization_email_branding_creators", + "organization_email_template_creators", + "organization_entity_creators", + "organization_entity_type_creators", "organization_evidence_creators", - "organization_asset_creators", + "organization_export_creators", + "organization_file_creators", "organization_finding_creators", - "organization_vulnerability_creators", "organization_group_creators", + "organization_identity_holder_creators", + "organization_integration_creators", + "organization_integration_webhook_creators", "organization_internal_policy_creators", + "organization_job_runner_creators", + "organization_job_runner_registration_token_creators", + "organization_job_runner_token_creators", + "organization_job_template_creators", "organization_mapped_control_creators", "organization_narrative_creators", + "organization_note_creators", + "organization_notification_template_creators", + "organization_organization_creators", + "organization_platform_creators", "organization_procedure_creators", "organization_program_creators", + "organization_remediation_creators", + "organization_review_creators", "organization_risk_creators", - "organization_identity_holder_creators", + "organization_scan_creators", "organization_scheduled_job_creators", + "organization_scheduled_job_run_creators", "organization_standard_creators", - "organization_template_creators", + "organization_subcontrol_creators", "organization_subprocessor_creators", + "organization_subscriber_creators", + "organization_system_detail_creators", + "organization_tag_definition_creators", + "organization_task_creators", + "organization_template_creators", + "organization_trust_center_creators", + "organization_trust_center_compliance_creators", "organization_trust_center_doc_creators", + "organization_trust_center_entity_creators", + "organization_trust_center_faq_creators", + "organization_trust_center_nda_request_creators", "organization_trust_center_subprocessor_creators", - "organization_action_plan_creators", + "organization_trust_center_watermark_config_creators", + "organization_user_creators", + "organization_user_setting_creators", + "organization_vendor_risk_score_creators", + "organization_vulnerability_creators", + "organization_workflow_assignment_creators", + "organization_workflow_assignment_target_creators", + "organization_workflow_definition_creators", + "organization_workflow_event_creators", + "organization_workflow_instance_creators", + "organization_workflow_object_ref_creators", + "organization_workflow_proposal_creators", + "organization_campaigns_manager", + "organization_compliance_manager", + "organization_group_manager", + "organization_policies_manager", + "organization_registry_manager", + "organization_risk_manager", + "organization_trust_center_manager", + "organization_workflows_manager", "remediation_blocked_groups", "remediation_editors", "remediation_viewers", diff --git a/internal/ent/generated/organization/organization.go b/internal/ent/generated/organization/organization.go index 971518eb39..a10c8cd15f 100644 --- a/internal/ent/generated/organization/organization.go +++ b/internal/ent/generated/organization/organization.go @@ -49,50 +49,164 @@ const ( FieldDedicatedDb = "dedicated_db" // FieldStripeCustomerID holds the string denoting the stripe_customer_id field in the database. FieldStripeCustomerID = "stripe_customer_id" + // EdgeActionPlanCreators holds the string denoting the action_plan_creators edge name in mutations. + EdgeActionPlanCreators = "action_plan_creators" + // EdgeAPITokenCreators holds the string denoting the api_token_creators edge name in mutations. + EdgeAPITokenCreators = "api_token_creators" + // EdgeAssessmentCreators holds the string denoting the assessment_creators edge name in mutations. + EdgeAssessmentCreators = "assessment_creators" + // EdgeAssetCreators holds the string denoting the asset_creators edge name in mutations. + EdgeAssetCreators = "asset_creators" + // EdgeCampaignCreators holds the string denoting the campaign_creators edge name in mutations. + EdgeCampaignCreators = "campaign_creators" + // EdgeCampaignTargetCreators holds the string denoting the campaign_target_creators edge name in mutations. + EdgeCampaignTargetCreators = "campaign_target_creators" + // EdgeCheckResultCreators holds the string denoting the check_result_creators edge name in mutations. + EdgeCheckResultCreators = "check_result_creators" + // EdgeContactCreators holds the string denoting the contact_creators edge name in mutations. + EdgeContactCreators = "contact_creators" // EdgeControlCreators holds the string denoting the control_creators edge name in mutations. EdgeControlCreators = "control_creators" // EdgeControlImplementationCreators holds the string denoting the control_implementation_creators edge name in mutations. EdgeControlImplementationCreators = "control_implementation_creators" // EdgeControlObjectiveCreators holds the string denoting the control_objective_creators edge name in mutations. EdgeControlObjectiveCreators = "control_objective_creators" + // EdgeCustomTypeEnumCreators holds the string denoting the custom_type_enum_creators edge name in mutations. + EdgeCustomTypeEnumCreators = "custom_type_enum_creators" + // EdgeDiscussionCreators holds the string denoting the discussion_creators edge name in mutations. + EdgeDiscussionCreators = "discussion_creators" + // EdgeEmailBrandingCreators holds the string denoting the email_branding_creators edge name in mutations. + EdgeEmailBrandingCreators = "email_branding_creators" + // EdgeEmailTemplateCreators holds the string denoting the email_template_creators edge name in mutations. + EdgeEmailTemplateCreators = "email_template_creators" + // EdgeEntityCreators holds the string denoting the entity_creators edge name in mutations. + EdgeEntityCreators = "entity_creators" + // EdgeEntityTypeCreators holds the string denoting the entity_type_creators edge name in mutations. + EdgeEntityTypeCreators = "entity_type_creators" // EdgeEvidenceCreators holds the string denoting the evidence_creators edge name in mutations. EdgeEvidenceCreators = "evidence_creators" - // EdgeAssetCreators holds the string denoting the asset_creators edge name in mutations. - EdgeAssetCreators = "asset_creators" + // EdgeExportCreators holds the string denoting the export_creators edge name in mutations. + EdgeExportCreators = "export_creators" + // EdgeFileCreators holds the string denoting the file_creators edge name in mutations. + EdgeFileCreators = "file_creators" // EdgeFindingCreators holds the string denoting the finding_creators edge name in mutations. EdgeFindingCreators = "finding_creators" - // EdgeVulnerabilityCreators holds the string denoting the vulnerability_creators edge name in mutations. - EdgeVulnerabilityCreators = "vulnerability_creators" // EdgeGroupCreators holds the string denoting the group_creators edge name in mutations. EdgeGroupCreators = "group_creators" + // EdgeIdentityHolderCreators holds the string denoting the identity_holder_creators edge name in mutations. + EdgeIdentityHolderCreators = "identity_holder_creators" + // EdgeIntegrationCreators holds the string denoting the integration_creators edge name in mutations. + EdgeIntegrationCreators = "integration_creators" + // EdgeIntegrationWebhookCreators holds the string denoting the integration_webhook_creators edge name in mutations. + EdgeIntegrationWebhookCreators = "integration_webhook_creators" // EdgeInternalPolicyCreators holds the string denoting the internal_policy_creators edge name in mutations. EdgeInternalPolicyCreators = "internal_policy_creators" + // EdgeJobRunnerCreators holds the string denoting the job_runner_creators edge name in mutations. + EdgeJobRunnerCreators = "job_runner_creators" + // EdgeJobRunnerRegistrationTokenCreators holds the string denoting the job_runner_registration_token_creators edge name in mutations. + EdgeJobRunnerRegistrationTokenCreators = "job_runner_registration_token_creators" + // EdgeJobRunnerTokenCreators holds the string denoting the job_runner_token_creators edge name in mutations. + EdgeJobRunnerTokenCreators = "job_runner_token_creators" + // EdgeJobTemplateCreators holds the string denoting the job_template_creators edge name in mutations. + EdgeJobTemplateCreators = "job_template_creators" // EdgeMappedControlCreators holds the string denoting the mapped_control_creators edge name in mutations. EdgeMappedControlCreators = "mapped_control_creators" // EdgeNarrativeCreators holds the string denoting the narrative_creators edge name in mutations. EdgeNarrativeCreators = "narrative_creators" + // EdgeNoteCreators holds the string denoting the note_creators edge name in mutations. + EdgeNoteCreators = "note_creators" + // EdgeNotificationTemplateCreators holds the string denoting the notification_template_creators edge name in mutations. + EdgeNotificationTemplateCreators = "notification_template_creators" + // EdgeOrganizationCreators holds the string denoting the organization_creators edge name in mutations. + EdgeOrganizationCreators = "organization_creators" + // EdgePlatformCreators holds the string denoting the platform_creators edge name in mutations. + EdgePlatformCreators = "platform_creators" // EdgeProcedureCreators holds the string denoting the procedure_creators edge name in mutations. EdgeProcedureCreators = "procedure_creators" // EdgeProgramCreators holds the string denoting the program_creators edge name in mutations. EdgeProgramCreators = "program_creators" + // EdgeRemediationCreators holds the string denoting the remediation_creators edge name in mutations. + EdgeRemediationCreators = "remediation_creators" + // EdgeReviewCreators holds the string denoting the review_creators edge name in mutations. + EdgeReviewCreators = "review_creators" // EdgeRiskCreators holds the string denoting the risk_creators edge name in mutations. EdgeRiskCreators = "risk_creators" - // EdgeIdentityHolderCreators holds the string denoting the identity_holder_creators edge name in mutations. - EdgeIdentityHolderCreators = "identity_holder_creators" + // EdgeScanCreators holds the string denoting the scan_creators edge name in mutations. + EdgeScanCreators = "scan_creators" // EdgeScheduledJobCreators holds the string denoting the scheduled_job_creators edge name in mutations. EdgeScheduledJobCreators = "scheduled_job_creators" + // EdgeScheduledJobRunCreators holds the string denoting the scheduled_job_run_creators edge name in mutations. + EdgeScheduledJobRunCreators = "scheduled_job_run_creators" // EdgeStandardCreators holds the string denoting the standard_creators edge name in mutations. EdgeStandardCreators = "standard_creators" - // EdgeTemplateCreators holds the string denoting the template_creators edge name in mutations. - EdgeTemplateCreators = "template_creators" + // EdgeSubcontrolCreators holds the string denoting the subcontrol_creators edge name in mutations. + EdgeSubcontrolCreators = "subcontrol_creators" // EdgeSubprocessorCreators holds the string denoting the subprocessor_creators edge name in mutations. EdgeSubprocessorCreators = "subprocessor_creators" + // EdgeSubscriberCreators holds the string denoting the subscriber_creators edge name in mutations. + EdgeSubscriberCreators = "subscriber_creators" + // EdgeSystemDetailCreators holds the string denoting the system_detail_creators edge name in mutations. + EdgeSystemDetailCreators = "system_detail_creators" + // EdgeTagDefinitionCreators holds the string denoting the tag_definition_creators edge name in mutations. + EdgeTagDefinitionCreators = "tag_definition_creators" + // EdgeTaskCreators holds the string denoting the task_creators edge name in mutations. + EdgeTaskCreators = "task_creators" + // EdgeTemplateCreators holds the string denoting the template_creators edge name in mutations. + EdgeTemplateCreators = "template_creators" + // EdgeTrustCenterCreators holds the string denoting the trust_center_creators edge name in mutations. + EdgeTrustCenterCreators = "trust_center_creators" + // EdgeTrustCenterComplianceCreators holds the string denoting the trust_center_compliance_creators edge name in mutations. + EdgeTrustCenterComplianceCreators = "trust_center_compliance_creators" // EdgeTrustCenterDocCreators holds the string denoting the trust_center_doc_creators edge name in mutations. EdgeTrustCenterDocCreators = "trust_center_doc_creators" + // EdgeTrustCenterEntityCreators holds the string denoting the trust_center_entity_creators edge name in mutations. + EdgeTrustCenterEntityCreators = "trust_center_entity_creators" + // EdgeTrustCenterFaqCreators holds the string denoting the trust_center_faq_creators edge name in mutations. + EdgeTrustCenterFaqCreators = "trust_center_faq_creators" + // EdgeTrustCenterNdaRequestCreators holds the string denoting the trust_center_nda_request_creators edge name in mutations. + EdgeTrustCenterNdaRequestCreators = "trust_center_nda_request_creators" // EdgeTrustCenterSubprocessorCreators holds the string denoting the trust_center_subprocessor_creators edge name in mutations. EdgeTrustCenterSubprocessorCreators = "trust_center_subprocessor_creators" - // EdgeActionPlanCreators holds the string denoting the action_plan_creators edge name in mutations. - EdgeActionPlanCreators = "action_plan_creators" + // EdgeTrustCenterWatermarkConfigCreators holds the string denoting the trust_center_watermark_config_creators edge name in mutations. + EdgeTrustCenterWatermarkConfigCreators = "trust_center_watermark_config_creators" + // EdgeUserCreators holds the string denoting the user_creators edge name in mutations. + EdgeUserCreators = "user_creators" + // EdgeUserSettingCreators holds the string denoting the user_setting_creators edge name in mutations. + EdgeUserSettingCreators = "user_setting_creators" + // EdgeVendorRiskScoreCreators holds the string denoting the vendor_risk_score_creators edge name in mutations. + EdgeVendorRiskScoreCreators = "vendor_risk_score_creators" + // EdgeVulnerabilityCreators holds the string denoting the vulnerability_creators edge name in mutations. + EdgeVulnerabilityCreators = "vulnerability_creators" + // EdgeWorkflowAssignmentCreators holds the string denoting the workflow_assignment_creators edge name in mutations. + EdgeWorkflowAssignmentCreators = "workflow_assignment_creators" + // EdgeWorkflowAssignmentTargetCreators holds the string denoting the workflow_assignment_target_creators edge name in mutations. + EdgeWorkflowAssignmentTargetCreators = "workflow_assignment_target_creators" + // EdgeWorkflowDefinitionCreators holds the string denoting the workflow_definition_creators edge name in mutations. + EdgeWorkflowDefinitionCreators = "workflow_definition_creators" + // EdgeWorkflowEventCreators holds the string denoting the workflow_event_creators edge name in mutations. + EdgeWorkflowEventCreators = "workflow_event_creators" + // EdgeWorkflowInstanceCreators holds the string denoting the workflow_instance_creators edge name in mutations. + EdgeWorkflowInstanceCreators = "workflow_instance_creators" + // EdgeWorkflowObjectRefCreators holds the string denoting the workflow_object_ref_creators edge name in mutations. + EdgeWorkflowObjectRefCreators = "workflow_object_ref_creators" + // EdgeWorkflowProposalCreators holds the string denoting the workflow_proposal_creators edge name in mutations. + EdgeWorkflowProposalCreators = "workflow_proposal_creators" + // EdgeCampaignsManager holds the string denoting the campaigns_manager edge name in mutations. + EdgeCampaignsManager = "campaigns_manager" + // EdgeComplianceManager holds the string denoting the compliance_manager edge name in mutations. + EdgeComplianceManager = "compliance_manager" + // EdgeGroupManager holds the string denoting the group_manager edge name in mutations. + EdgeGroupManager = "group_manager" + // EdgePoliciesManager holds the string denoting the policies_manager edge name in mutations. + EdgePoliciesManager = "policies_manager" + // EdgeRegistryManager holds the string denoting the registry_manager edge name in mutations. + EdgeRegistryManager = "registry_manager" + // EdgeRiskManager holds the string denoting the risk_manager edge name in mutations. + EdgeRiskManager = "risk_manager" + // EdgeTrustCenterManager holds the string denoting the trust_center_manager edge name in mutations. + EdgeTrustCenterManager = "trust_center_manager" + // EdgeWorkflowsManager holds the string denoting the workflows_manager edge name in mutations. + EdgeWorkflowsManager = "workflows_manager" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. @@ -273,6 +387,62 @@ const ( EdgeMembers = "members" // Table holds the table name of the organization in the database. Table = "organizations" + // ActionPlanCreatorsTable is the table that holds the action_plan_creators relation/edge. + ActionPlanCreatorsTable = "groups" + // ActionPlanCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ActionPlanCreatorsInverseTable = "groups" + // ActionPlanCreatorsColumn is the table column denoting the action_plan_creators relation/edge. + ActionPlanCreatorsColumn = "organization_action_plan_creators" + // APITokenCreatorsTable is the table that holds the api_token_creators relation/edge. + APITokenCreatorsTable = "groups" + // APITokenCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + APITokenCreatorsInverseTable = "groups" + // APITokenCreatorsColumn is the table column denoting the api_token_creators relation/edge. + APITokenCreatorsColumn = "organization_api_token_creators" + // AssessmentCreatorsTable is the table that holds the assessment_creators relation/edge. + AssessmentCreatorsTable = "groups" + // AssessmentCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + AssessmentCreatorsInverseTable = "groups" + // AssessmentCreatorsColumn is the table column denoting the assessment_creators relation/edge. + AssessmentCreatorsColumn = "organization_assessment_creators" + // AssetCreatorsTable is the table that holds the asset_creators relation/edge. + AssetCreatorsTable = "groups" + // AssetCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + AssetCreatorsInverseTable = "groups" + // AssetCreatorsColumn is the table column denoting the asset_creators relation/edge. + AssetCreatorsColumn = "organization_asset_creators" + // CampaignCreatorsTable is the table that holds the campaign_creators relation/edge. + CampaignCreatorsTable = "groups" + // CampaignCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + CampaignCreatorsInverseTable = "groups" + // CampaignCreatorsColumn is the table column denoting the campaign_creators relation/edge. + CampaignCreatorsColumn = "organization_campaign_creators" + // CampaignTargetCreatorsTable is the table that holds the campaign_target_creators relation/edge. + CampaignTargetCreatorsTable = "groups" + // CampaignTargetCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + CampaignTargetCreatorsInverseTable = "groups" + // CampaignTargetCreatorsColumn is the table column denoting the campaign_target_creators relation/edge. + CampaignTargetCreatorsColumn = "organization_campaign_target_creators" + // CheckResultCreatorsTable is the table that holds the check_result_creators relation/edge. + CheckResultCreatorsTable = "groups" + // CheckResultCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + CheckResultCreatorsInverseTable = "groups" + // CheckResultCreatorsColumn is the table column denoting the check_result_creators relation/edge. + CheckResultCreatorsColumn = "organization_check_result_creators" + // ContactCreatorsTable is the table that holds the contact_creators relation/edge. + ContactCreatorsTable = "groups" + // ContactCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ContactCreatorsInverseTable = "groups" + // ContactCreatorsColumn is the table column denoting the contact_creators relation/edge. + ContactCreatorsColumn = "organization_contact_creators" // ControlCreatorsTable is the table that holds the control_creators relation/edge. ControlCreatorsTable = "groups" // ControlCreatorsInverseTable is the table name for the Group entity. @@ -294,6 +464,48 @@ const ( ControlObjectiveCreatorsInverseTable = "groups" // ControlObjectiveCreatorsColumn is the table column denoting the control_objective_creators relation/edge. ControlObjectiveCreatorsColumn = "organization_control_objective_creators" + // CustomTypeEnumCreatorsTable is the table that holds the custom_type_enum_creators relation/edge. + CustomTypeEnumCreatorsTable = "groups" + // CustomTypeEnumCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + CustomTypeEnumCreatorsInverseTable = "groups" + // CustomTypeEnumCreatorsColumn is the table column denoting the custom_type_enum_creators relation/edge. + CustomTypeEnumCreatorsColumn = "organization_custom_type_enum_creators" + // DiscussionCreatorsTable is the table that holds the discussion_creators relation/edge. + DiscussionCreatorsTable = "groups" + // DiscussionCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + DiscussionCreatorsInverseTable = "groups" + // DiscussionCreatorsColumn is the table column denoting the discussion_creators relation/edge. + DiscussionCreatorsColumn = "organization_discussion_creators" + // EmailBrandingCreatorsTable is the table that holds the email_branding_creators relation/edge. + EmailBrandingCreatorsTable = "groups" + // EmailBrandingCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + EmailBrandingCreatorsInverseTable = "groups" + // EmailBrandingCreatorsColumn is the table column denoting the email_branding_creators relation/edge. + EmailBrandingCreatorsColumn = "organization_email_branding_creators" + // EmailTemplateCreatorsTable is the table that holds the email_template_creators relation/edge. + EmailTemplateCreatorsTable = "groups" + // EmailTemplateCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + EmailTemplateCreatorsInverseTable = "groups" + // EmailTemplateCreatorsColumn is the table column denoting the email_template_creators relation/edge. + EmailTemplateCreatorsColumn = "organization_email_template_creators" + // EntityCreatorsTable is the table that holds the entity_creators relation/edge. + EntityCreatorsTable = "groups" + // EntityCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + EntityCreatorsInverseTable = "groups" + // EntityCreatorsColumn is the table column denoting the entity_creators relation/edge. + EntityCreatorsColumn = "organization_entity_creators" + // EntityTypeCreatorsTable is the table that holds the entity_type_creators relation/edge. + EntityTypeCreatorsTable = "groups" + // EntityTypeCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + EntityTypeCreatorsInverseTable = "groups" + // EntityTypeCreatorsColumn is the table column denoting the entity_type_creators relation/edge. + EntityTypeCreatorsColumn = "organization_entity_type_creators" // EvidenceCreatorsTable is the table that holds the evidence_creators relation/edge. EvidenceCreatorsTable = "groups" // EvidenceCreatorsInverseTable is the table name for the Group entity. @@ -301,13 +513,20 @@ const ( EvidenceCreatorsInverseTable = "groups" // EvidenceCreatorsColumn is the table column denoting the evidence_creators relation/edge. EvidenceCreatorsColumn = "organization_evidence_creators" - // AssetCreatorsTable is the table that holds the asset_creators relation/edge. - AssetCreatorsTable = "groups" - // AssetCreatorsInverseTable is the table name for the Group entity. + // ExportCreatorsTable is the table that holds the export_creators relation/edge. + ExportCreatorsTable = "groups" + // ExportCreatorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. - AssetCreatorsInverseTable = "groups" - // AssetCreatorsColumn is the table column denoting the asset_creators relation/edge. - AssetCreatorsColumn = "organization_asset_creators" + ExportCreatorsInverseTable = "groups" + // ExportCreatorsColumn is the table column denoting the export_creators relation/edge. + ExportCreatorsColumn = "organization_export_creators" + // FileCreatorsTable is the table that holds the file_creators relation/edge. + FileCreatorsTable = "groups" + // FileCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + FileCreatorsInverseTable = "groups" + // FileCreatorsColumn is the table column denoting the file_creators relation/edge. + FileCreatorsColumn = "organization_file_creators" // FindingCreatorsTable is the table that holds the finding_creators relation/edge. FindingCreatorsTable = "groups" // FindingCreatorsInverseTable is the table name for the Group entity. @@ -315,13 +534,6 @@ const ( FindingCreatorsInverseTable = "groups" // FindingCreatorsColumn is the table column denoting the finding_creators relation/edge. FindingCreatorsColumn = "organization_finding_creators" - // VulnerabilityCreatorsTable is the table that holds the vulnerability_creators relation/edge. - VulnerabilityCreatorsTable = "groups" - // VulnerabilityCreatorsInverseTable is the table name for the Group entity. - // It exists in this package in order to avoid circular dependency with the "group" package. - VulnerabilityCreatorsInverseTable = "groups" - // VulnerabilityCreatorsColumn is the table column denoting the vulnerability_creators relation/edge. - VulnerabilityCreatorsColumn = "organization_vulnerability_creators" // GroupCreatorsTable is the table that holds the group_creators relation/edge. GroupCreatorsTable = "groups" // GroupCreatorsInverseTable is the table name for the Group entity. @@ -329,6 +541,27 @@ const ( GroupCreatorsInverseTable = "groups" // GroupCreatorsColumn is the table column denoting the group_creators relation/edge. GroupCreatorsColumn = "organization_group_creators" + // IdentityHolderCreatorsTable is the table that holds the identity_holder_creators relation/edge. + IdentityHolderCreatorsTable = "groups" + // IdentityHolderCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + IdentityHolderCreatorsInverseTable = "groups" + // IdentityHolderCreatorsColumn is the table column denoting the identity_holder_creators relation/edge. + IdentityHolderCreatorsColumn = "organization_identity_holder_creators" + // IntegrationCreatorsTable is the table that holds the integration_creators relation/edge. + IntegrationCreatorsTable = "groups" + // IntegrationCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + IntegrationCreatorsInverseTable = "groups" + // IntegrationCreatorsColumn is the table column denoting the integration_creators relation/edge. + IntegrationCreatorsColumn = "organization_integration_creators" + // IntegrationWebhookCreatorsTable is the table that holds the integration_webhook_creators relation/edge. + IntegrationWebhookCreatorsTable = "groups" + // IntegrationWebhookCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + IntegrationWebhookCreatorsInverseTable = "groups" + // IntegrationWebhookCreatorsColumn is the table column denoting the integration_webhook_creators relation/edge. + IntegrationWebhookCreatorsColumn = "organization_integration_webhook_creators" // InternalPolicyCreatorsTable is the table that holds the internal_policy_creators relation/edge. InternalPolicyCreatorsTable = "groups" // InternalPolicyCreatorsInverseTable is the table name for the Group entity. @@ -336,6 +569,34 @@ const ( InternalPolicyCreatorsInverseTable = "groups" // InternalPolicyCreatorsColumn is the table column denoting the internal_policy_creators relation/edge. InternalPolicyCreatorsColumn = "organization_internal_policy_creators" + // JobRunnerCreatorsTable is the table that holds the job_runner_creators relation/edge. + JobRunnerCreatorsTable = "groups" + // JobRunnerCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + JobRunnerCreatorsInverseTable = "groups" + // JobRunnerCreatorsColumn is the table column denoting the job_runner_creators relation/edge. + JobRunnerCreatorsColumn = "organization_job_runner_creators" + // JobRunnerRegistrationTokenCreatorsTable is the table that holds the job_runner_registration_token_creators relation/edge. + JobRunnerRegistrationTokenCreatorsTable = "groups" + // JobRunnerRegistrationTokenCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + JobRunnerRegistrationTokenCreatorsInverseTable = "groups" + // JobRunnerRegistrationTokenCreatorsColumn is the table column denoting the job_runner_registration_token_creators relation/edge. + JobRunnerRegistrationTokenCreatorsColumn = "organization_job_runner_registration_token_creators" + // JobRunnerTokenCreatorsTable is the table that holds the job_runner_token_creators relation/edge. + JobRunnerTokenCreatorsTable = "groups" + // JobRunnerTokenCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + JobRunnerTokenCreatorsInverseTable = "groups" + // JobRunnerTokenCreatorsColumn is the table column denoting the job_runner_token_creators relation/edge. + JobRunnerTokenCreatorsColumn = "organization_job_runner_token_creators" + // JobTemplateCreatorsTable is the table that holds the job_template_creators relation/edge. + JobTemplateCreatorsTable = "groups" + // JobTemplateCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + JobTemplateCreatorsInverseTable = "groups" + // JobTemplateCreatorsColumn is the table column denoting the job_template_creators relation/edge. + JobTemplateCreatorsColumn = "organization_job_template_creators" // MappedControlCreatorsTable is the table that holds the mapped_control_creators relation/edge. MappedControlCreatorsTable = "groups" // MappedControlCreatorsInverseTable is the table name for the Group entity. @@ -350,6 +611,34 @@ const ( NarrativeCreatorsInverseTable = "groups" // NarrativeCreatorsColumn is the table column denoting the narrative_creators relation/edge. NarrativeCreatorsColumn = "organization_narrative_creators" + // NoteCreatorsTable is the table that holds the note_creators relation/edge. + NoteCreatorsTable = "groups" + // NoteCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + NoteCreatorsInverseTable = "groups" + // NoteCreatorsColumn is the table column denoting the note_creators relation/edge. + NoteCreatorsColumn = "organization_note_creators" + // NotificationTemplateCreatorsTable is the table that holds the notification_template_creators relation/edge. + NotificationTemplateCreatorsTable = "groups" + // NotificationTemplateCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + NotificationTemplateCreatorsInverseTable = "groups" + // NotificationTemplateCreatorsColumn is the table column denoting the notification_template_creators relation/edge. + NotificationTemplateCreatorsColumn = "organization_notification_template_creators" + // OrganizationCreatorsTable is the table that holds the organization_creators relation/edge. + OrganizationCreatorsTable = "groups" + // OrganizationCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + OrganizationCreatorsInverseTable = "groups" + // OrganizationCreatorsColumn is the table column denoting the organization_creators relation/edge. + OrganizationCreatorsColumn = "organization_organization_creators" + // PlatformCreatorsTable is the table that holds the platform_creators relation/edge. + PlatformCreatorsTable = "groups" + // PlatformCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + PlatformCreatorsInverseTable = "groups" + // PlatformCreatorsColumn is the table column denoting the platform_creators relation/edge. + PlatformCreatorsColumn = "organization_platform_creators" // ProcedureCreatorsTable is the table that holds the procedure_creators relation/edge. ProcedureCreatorsTable = "groups" // ProcedureCreatorsInverseTable is the table name for the Group entity. @@ -364,6 +653,20 @@ const ( ProgramCreatorsInverseTable = "groups" // ProgramCreatorsColumn is the table column denoting the program_creators relation/edge. ProgramCreatorsColumn = "organization_program_creators" + // RemediationCreatorsTable is the table that holds the remediation_creators relation/edge. + RemediationCreatorsTable = "groups" + // RemediationCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + RemediationCreatorsInverseTable = "groups" + // RemediationCreatorsColumn is the table column denoting the remediation_creators relation/edge. + RemediationCreatorsColumn = "organization_remediation_creators" + // ReviewCreatorsTable is the table that holds the review_creators relation/edge. + ReviewCreatorsTable = "groups" + // ReviewCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ReviewCreatorsInverseTable = "groups" + // ReviewCreatorsColumn is the table column denoting the review_creators relation/edge. + ReviewCreatorsColumn = "organization_review_creators" // RiskCreatorsTable is the table that holds the risk_creators relation/edge. RiskCreatorsTable = "groups" // RiskCreatorsInverseTable is the table name for the Group entity. @@ -371,13 +674,13 @@ const ( RiskCreatorsInverseTable = "groups" // RiskCreatorsColumn is the table column denoting the risk_creators relation/edge. RiskCreatorsColumn = "organization_risk_creators" - // IdentityHolderCreatorsTable is the table that holds the identity_holder_creators relation/edge. - IdentityHolderCreatorsTable = "groups" - // IdentityHolderCreatorsInverseTable is the table name for the Group entity. + // ScanCreatorsTable is the table that holds the scan_creators relation/edge. + ScanCreatorsTable = "groups" + // ScanCreatorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. - IdentityHolderCreatorsInverseTable = "groups" - // IdentityHolderCreatorsColumn is the table column denoting the identity_holder_creators relation/edge. - IdentityHolderCreatorsColumn = "organization_identity_holder_creators" + ScanCreatorsInverseTable = "groups" + // ScanCreatorsColumn is the table column denoting the scan_creators relation/edge. + ScanCreatorsColumn = "organization_scan_creators" // ScheduledJobCreatorsTable is the table that holds the scheduled_job_creators relation/edge. ScheduledJobCreatorsTable = "groups" // ScheduledJobCreatorsInverseTable is the table name for the Group entity. @@ -385,6 +688,13 @@ const ( ScheduledJobCreatorsInverseTable = "groups" // ScheduledJobCreatorsColumn is the table column denoting the scheduled_job_creators relation/edge. ScheduledJobCreatorsColumn = "organization_scheduled_job_creators" + // ScheduledJobRunCreatorsTable is the table that holds the scheduled_job_run_creators relation/edge. + ScheduledJobRunCreatorsTable = "groups" + // ScheduledJobRunCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ScheduledJobRunCreatorsInverseTable = "groups" + // ScheduledJobRunCreatorsColumn is the table column denoting the scheduled_job_run_creators relation/edge. + ScheduledJobRunCreatorsColumn = "organization_scheduled_job_run_creators" // StandardCreatorsTable is the table that holds the standard_creators relation/edge. StandardCreatorsTable = "groups" // StandardCreatorsInverseTable is the table name for the Group entity. @@ -392,13 +702,13 @@ const ( StandardCreatorsInverseTable = "groups" // StandardCreatorsColumn is the table column denoting the standard_creators relation/edge. StandardCreatorsColumn = "organization_standard_creators" - // TemplateCreatorsTable is the table that holds the template_creators relation/edge. - TemplateCreatorsTable = "groups" - // TemplateCreatorsInverseTable is the table name for the Group entity. + // SubcontrolCreatorsTable is the table that holds the subcontrol_creators relation/edge. + SubcontrolCreatorsTable = "groups" + // SubcontrolCreatorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. - TemplateCreatorsInverseTable = "groups" - // TemplateCreatorsColumn is the table column denoting the template_creators relation/edge. - TemplateCreatorsColumn = "organization_template_creators" + SubcontrolCreatorsInverseTable = "groups" + // SubcontrolCreatorsColumn is the table column denoting the subcontrol_creators relation/edge. + SubcontrolCreatorsColumn = "organization_subcontrol_creators" // SubprocessorCreatorsTable is the table that holds the subprocessor_creators relation/edge. SubprocessorCreatorsTable = "groups" // SubprocessorCreatorsInverseTable is the table name for the Group entity. @@ -406,6 +716,55 @@ const ( SubprocessorCreatorsInverseTable = "groups" // SubprocessorCreatorsColumn is the table column denoting the subprocessor_creators relation/edge. SubprocessorCreatorsColumn = "organization_subprocessor_creators" + // SubscriberCreatorsTable is the table that holds the subscriber_creators relation/edge. + SubscriberCreatorsTable = "groups" + // SubscriberCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + SubscriberCreatorsInverseTable = "groups" + // SubscriberCreatorsColumn is the table column denoting the subscriber_creators relation/edge. + SubscriberCreatorsColumn = "organization_subscriber_creators" + // SystemDetailCreatorsTable is the table that holds the system_detail_creators relation/edge. + SystemDetailCreatorsTable = "groups" + // SystemDetailCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + SystemDetailCreatorsInverseTable = "groups" + // SystemDetailCreatorsColumn is the table column denoting the system_detail_creators relation/edge. + SystemDetailCreatorsColumn = "organization_system_detail_creators" + // TagDefinitionCreatorsTable is the table that holds the tag_definition_creators relation/edge. + TagDefinitionCreatorsTable = "groups" + // TagDefinitionCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TagDefinitionCreatorsInverseTable = "groups" + // TagDefinitionCreatorsColumn is the table column denoting the tag_definition_creators relation/edge. + TagDefinitionCreatorsColumn = "organization_tag_definition_creators" + // TaskCreatorsTable is the table that holds the task_creators relation/edge. + TaskCreatorsTable = "groups" + // TaskCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TaskCreatorsInverseTable = "groups" + // TaskCreatorsColumn is the table column denoting the task_creators relation/edge. + TaskCreatorsColumn = "organization_task_creators" + // TemplateCreatorsTable is the table that holds the template_creators relation/edge. + TemplateCreatorsTable = "groups" + // TemplateCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TemplateCreatorsInverseTable = "groups" + // TemplateCreatorsColumn is the table column denoting the template_creators relation/edge. + TemplateCreatorsColumn = "organization_template_creators" + // TrustCenterCreatorsTable is the table that holds the trust_center_creators relation/edge. + TrustCenterCreatorsTable = "groups" + // TrustCenterCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterCreatorsInverseTable = "groups" + // TrustCenterCreatorsColumn is the table column denoting the trust_center_creators relation/edge. + TrustCenterCreatorsColumn = "organization_trust_center_creators" + // TrustCenterComplianceCreatorsTable is the table that holds the trust_center_compliance_creators relation/edge. + TrustCenterComplianceCreatorsTable = "groups" + // TrustCenterComplianceCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterComplianceCreatorsInverseTable = "groups" + // TrustCenterComplianceCreatorsColumn is the table column denoting the trust_center_compliance_creators relation/edge. + TrustCenterComplianceCreatorsColumn = "organization_trust_center_compliance_creators" // TrustCenterDocCreatorsTable is the table that holds the trust_center_doc_creators relation/edge. TrustCenterDocCreatorsTable = "groups" // TrustCenterDocCreatorsInverseTable is the table name for the Group entity. @@ -413,6 +772,27 @@ const ( TrustCenterDocCreatorsInverseTable = "groups" // TrustCenterDocCreatorsColumn is the table column denoting the trust_center_doc_creators relation/edge. TrustCenterDocCreatorsColumn = "organization_trust_center_doc_creators" + // TrustCenterEntityCreatorsTable is the table that holds the trust_center_entity_creators relation/edge. + TrustCenterEntityCreatorsTable = "groups" + // TrustCenterEntityCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterEntityCreatorsInverseTable = "groups" + // TrustCenterEntityCreatorsColumn is the table column denoting the trust_center_entity_creators relation/edge. + TrustCenterEntityCreatorsColumn = "organization_trust_center_entity_creators" + // TrustCenterFaqCreatorsTable is the table that holds the trust_center_faq_creators relation/edge. + TrustCenterFaqCreatorsTable = "groups" + // TrustCenterFaqCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterFaqCreatorsInverseTable = "groups" + // TrustCenterFaqCreatorsColumn is the table column denoting the trust_center_faq_creators relation/edge. + TrustCenterFaqCreatorsColumn = "organization_trust_center_faq_creators" + // TrustCenterNdaRequestCreatorsTable is the table that holds the trust_center_nda_request_creators relation/edge. + TrustCenterNdaRequestCreatorsTable = "groups" + // TrustCenterNdaRequestCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterNdaRequestCreatorsInverseTable = "groups" + // TrustCenterNdaRequestCreatorsColumn is the table column denoting the trust_center_nda_request_creators relation/edge. + TrustCenterNdaRequestCreatorsColumn = "organization_trust_center_nda_request_creators" // TrustCenterSubprocessorCreatorsTable is the table that holds the trust_center_subprocessor_creators relation/edge. TrustCenterSubprocessorCreatorsTable = "groups" // TrustCenterSubprocessorCreatorsInverseTable is the table name for the Group entity. @@ -420,13 +800,146 @@ const ( TrustCenterSubprocessorCreatorsInverseTable = "groups" // TrustCenterSubprocessorCreatorsColumn is the table column denoting the trust_center_subprocessor_creators relation/edge. TrustCenterSubprocessorCreatorsColumn = "organization_trust_center_subprocessor_creators" - // ActionPlanCreatorsTable is the table that holds the action_plan_creators relation/edge. - ActionPlanCreatorsTable = "groups" - // ActionPlanCreatorsInverseTable is the table name for the Group entity. + // TrustCenterWatermarkConfigCreatorsTable is the table that holds the trust_center_watermark_config_creators relation/edge. + TrustCenterWatermarkConfigCreatorsTable = "groups" + // TrustCenterWatermarkConfigCreatorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. - ActionPlanCreatorsInverseTable = "groups" - // ActionPlanCreatorsColumn is the table column denoting the action_plan_creators relation/edge. - ActionPlanCreatorsColumn = "organization_action_plan_creators" + TrustCenterWatermarkConfigCreatorsInverseTable = "groups" + // TrustCenterWatermarkConfigCreatorsColumn is the table column denoting the trust_center_watermark_config_creators relation/edge. + TrustCenterWatermarkConfigCreatorsColumn = "organization_trust_center_watermark_config_creators" + // UserCreatorsTable is the table that holds the user_creators relation/edge. + UserCreatorsTable = "groups" + // UserCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + UserCreatorsInverseTable = "groups" + // UserCreatorsColumn is the table column denoting the user_creators relation/edge. + UserCreatorsColumn = "organization_user_creators" + // UserSettingCreatorsTable is the table that holds the user_setting_creators relation/edge. + UserSettingCreatorsTable = "groups" + // UserSettingCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + UserSettingCreatorsInverseTable = "groups" + // UserSettingCreatorsColumn is the table column denoting the user_setting_creators relation/edge. + UserSettingCreatorsColumn = "organization_user_setting_creators" + // VendorRiskScoreCreatorsTable is the table that holds the vendor_risk_score_creators relation/edge. + VendorRiskScoreCreatorsTable = "groups" + // VendorRiskScoreCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + VendorRiskScoreCreatorsInverseTable = "groups" + // VendorRiskScoreCreatorsColumn is the table column denoting the vendor_risk_score_creators relation/edge. + VendorRiskScoreCreatorsColumn = "organization_vendor_risk_score_creators" + // VulnerabilityCreatorsTable is the table that holds the vulnerability_creators relation/edge. + VulnerabilityCreatorsTable = "groups" + // VulnerabilityCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + VulnerabilityCreatorsInverseTable = "groups" + // VulnerabilityCreatorsColumn is the table column denoting the vulnerability_creators relation/edge. + VulnerabilityCreatorsColumn = "organization_vulnerability_creators" + // WorkflowAssignmentCreatorsTable is the table that holds the workflow_assignment_creators relation/edge. + WorkflowAssignmentCreatorsTable = "groups" + // WorkflowAssignmentCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowAssignmentCreatorsInverseTable = "groups" + // WorkflowAssignmentCreatorsColumn is the table column denoting the workflow_assignment_creators relation/edge. + WorkflowAssignmentCreatorsColumn = "organization_workflow_assignment_creators" + // WorkflowAssignmentTargetCreatorsTable is the table that holds the workflow_assignment_target_creators relation/edge. + WorkflowAssignmentTargetCreatorsTable = "groups" + // WorkflowAssignmentTargetCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowAssignmentTargetCreatorsInverseTable = "groups" + // WorkflowAssignmentTargetCreatorsColumn is the table column denoting the workflow_assignment_target_creators relation/edge. + WorkflowAssignmentTargetCreatorsColumn = "organization_workflow_assignment_target_creators" + // WorkflowDefinitionCreatorsTable is the table that holds the workflow_definition_creators relation/edge. + WorkflowDefinitionCreatorsTable = "groups" + // WorkflowDefinitionCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowDefinitionCreatorsInverseTable = "groups" + // WorkflowDefinitionCreatorsColumn is the table column denoting the workflow_definition_creators relation/edge. + WorkflowDefinitionCreatorsColumn = "organization_workflow_definition_creators" + // WorkflowEventCreatorsTable is the table that holds the workflow_event_creators relation/edge. + WorkflowEventCreatorsTable = "groups" + // WorkflowEventCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowEventCreatorsInverseTable = "groups" + // WorkflowEventCreatorsColumn is the table column denoting the workflow_event_creators relation/edge. + WorkflowEventCreatorsColumn = "organization_workflow_event_creators" + // WorkflowInstanceCreatorsTable is the table that holds the workflow_instance_creators relation/edge. + WorkflowInstanceCreatorsTable = "groups" + // WorkflowInstanceCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowInstanceCreatorsInverseTable = "groups" + // WorkflowInstanceCreatorsColumn is the table column denoting the workflow_instance_creators relation/edge. + WorkflowInstanceCreatorsColumn = "organization_workflow_instance_creators" + // WorkflowObjectRefCreatorsTable is the table that holds the workflow_object_ref_creators relation/edge. + WorkflowObjectRefCreatorsTable = "groups" + // WorkflowObjectRefCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowObjectRefCreatorsInverseTable = "groups" + // WorkflowObjectRefCreatorsColumn is the table column denoting the workflow_object_ref_creators relation/edge. + WorkflowObjectRefCreatorsColumn = "organization_workflow_object_ref_creators" + // WorkflowProposalCreatorsTable is the table that holds the workflow_proposal_creators relation/edge. + WorkflowProposalCreatorsTable = "groups" + // WorkflowProposalCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowProposalCreatorsInverseTable = "groups" + // WorkflowProposalCreatorsColumn is the table column denoting the workflow_proposal_creators relation/edge. + WorkflowProposalCreatorsColumn = "organization_workflow_proposal_creators" + // CampaignsManagerTable is the table that holds the campaigns_manager relation/edge. + CampaignsManagerTable = "groups" + // CampaignsManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + CampaignsManagerInverseTable = "groups" + // CampaignsManagerColumn is the table column denoting the campaigns_manager relation/edge. + CampaignsManagerColumn = "organization_campaigns_manager" + // ComplianceManagerTable is the table that holds the compliance_manager relation/edge. + ComplianceManagerTable = "groups" + // ComplianceManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ComplianceManagerInverseTable = "groups" + // ComplianceManagerColumn is the table column denoting the compliance_manager relation/edge. + ComplianceManagerColumn = "organization_compliance_manager" + // GroupManagerTable is the table that holds the group_manager relation/edge. + GroupManagerTable = "groups" + // GroupManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + GroupManagerInverseTable = "groups" + // GroupManagerColumn is the table column denoting the group_manager relation/edge. + GroupManagerColumn = "organization_group_manager" + // PoliciesManagerTable is the table that holds the policies_manager relation/edge. + PoliciesManagerTable = "groups" + // PoliciesManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + PoliciesManagerInverseTable = "groups" + // PoliciesManagerColumn is the table column denoting the policies_manager relation/edge. + PoliciesManagerColumn = "organization_policies_manager" + // RegistryManagerTable is the table that holds the registry_manager relation/edge. + RegistryManagerTable = "groups" + // RegistryManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + RegistryManagerInverseTable = "groups" + // RegistryManagerColumn is the table column denoting the registry_manager relation/edge. + RegistryManagerColumn = "organization_registry_manager" + // RiskManagerTable is the table that holds the risk_manager relation/edge. + RiskManagerTable = "groups" + // RiskManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + RiskManagerInverseTable = "groups" + // RiskManagerColumn is the table column denoting the risk_manager relation/edge. + RiskManagerColumn = "organization_risk_manager" + // TrustCenterManagerTable is the table that holds the trust_center_manager relation/edge. + TrustCenterManagerTable = "groups" + // TrustCenterManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + TrustCenterManagerInverseTable = "groups" + // TrustCenterManagerColumn is the table column denoting the trust_center_manager relation/edge. + TrustCenterManagerColumn = "organization_trust_center_manager" + // WorkflowsManagerTable is the table that holds the workflows_manager relation/edge. + WorkflowsManagerTable = "groups" + // WorkflowsManagerInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + WorkflowsManagerInverseTable = "groups" + // WorkflowsManagerColumn is the table column denoting the workflows_manager relation/edge. + WorkflowsManagerColumn = "organization_workflows_manager" // ParentTable is the table that holds the parent relation/edge. ParentTable = "organizations" // ParentColumn is the table column denoting the parent relation/edge. @@ -1091,7 +1604,7 @@ func ValidColumn(column string) bool { // // import _ "github.com/theopenlane/core/internal/ent/generated/runtime" var ( - Hooks [29]ent.Hook + Hooks [86]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. @@ -1208,59 +1721,45 @@ func ByStripeCustomerID(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldStripeCustomerID, opts...).ToFunc() } -// ByControlCreatorsCount orders the results by control_creators count. -func ByControlCreatorsCount(opts ...sql.OrderTermOption) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlCreatorsStep(), opts...) - } -} - -// ByControlCreators orders the results by control_creators terms. -func ByControlCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) - } -} - -// ByControlImplementationCreatorsCount orders the results by control_implementation_creators count. -func ByControlImplementationCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByActionPlanCreatorsCount orders the results by action_plan_creators count. +func ByActionPlanCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlImplementationCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newActionPlanCreatorsStep(), opts...) } } -// ByControlImplementationCreators orders the results by control_implementation_creators terms. -func ByControlImplementationCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByActionPlanCreators orders the results by action_plan_creators terms. +func ByActionPlanCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlImplementationCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newActionPlanCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByControlObjectiveCreatorsCount orders the results by control_objective_creators count. -func ByControlObjectiveCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByAPITokenCreatorsCount orders the results by api_token_creators count. +func ByAPITokenCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlObjectiveCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newAPITokenCreatorsStep(), opts...) } } -// ByControlObjectiveCreators orders the results by control_objective_creators terms. -func ByControlObjectiveCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByAPITokenCreators orders the results by api_token_creators terms. +func ByAPITokenCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlObjectiveCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newAPITokenCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEvidenceCreatorsCount orders the results by evidence_creators count. -func ByEvidenceCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByAssessmentCreatorsCount orders the results by assessment_creators count. +func ByAssessmentCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEvidenceCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newAssessmentCreatorsStep(), opts...) } } -// ByEvidenceCreators orders the results by evidence_creators terms. -func ByEvidenceCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByAssessmentCreators orders the results by assessment_creators terms. +func ByAssessmentCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEvidenceCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newAssessmentCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } @@ -1278,1375 +1777,2187 @@ func ByAssetCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } -// ByFindingCreatorsCount orders the results by finding_creators count. -func ByFindingCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByCampaignCreatorsCount orders the results by campaign_creators count. +func ByCampaignCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newFindingCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newCampaignCreatorsStep(), opts...) } } -// ByFindingCreators orders the results by finding_creators terms. -func ByFindingCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByCampaignCreators orders the results by campaign_creators terms. +func ByCampaignCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newFindingCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newCampaignCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByVulnerabilityCreatorsCount orders the results by vulnerability_creators count. -func ByVulnerabilityCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByCampaignTargetCreatorsCount orders the results by campaign_target_creators count. +func ByCampaignTargetCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newVulnerabilityCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newCampaignTargetCreatorsStep(), opts...) } } -// ByVulnerabilityCreators orders the results by vulnerability_creators terms. -func ByVulnerabilityCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByCampaignTargetCreators orders the results by campaign_target_creators terms. +func ByCampaignTargetCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newVulnerabilityCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newCampaignTargetCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByGroupCreatorsCount orders the results by group_creators count. -func ByGroupCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByCheckResultCreatorsCount orders the results by check_result_creators count. +func ByCheckResultCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newGroupCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newCheckResultCreatorsStep(), opts...) } } -// ByGroupCreators orders the results by group_creators terms. -func ByGroupCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByCheckResultCreators orders the results by check_result_creators terms. +func ByCheckResultCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newGroupCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newCheckResultCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByInternalPolicyCreatorsCount orders the results by internal_policy_creators count. -func ByInternalPolicyCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByContactCreatorsCount orders the results by contact_creators count. +func ByContactCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newInternalPolicyCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newContactCreatorsStep(), opts...) } } -// ByInternalPolicyCreators orders the results by internal_policy_creators terms. -func ByInternalPolicyCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByContactCreators orders the results by contact_creators terms. +func ByContactCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newInternalPolicyCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newContactCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByMappedControlCreatorsCount orders the results by mapped_control_creators count. -func ByMappedControlCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByControlCreatorsCount orders the results by control_creators count. +func ByControlCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newMappedControlCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newControlCreatorsStep(), opts...) } } -// ByMappedControlCreators orders the results by mapped_control_creators terms. -func ByMappedControlCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByControlCreators orders the results by control_creators terms. +func ByControlCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newMappedControlCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newControlCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNarrativeCreatorsCount orders the results by narrative_creators count. -func ByNarrativeCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByControlImplementationCreatorsCount orders the results by control_implementation_creators count. +func ByControlImplementationCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNarrativeCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newControlImplementationCreatorsStep(), opts...) } } -// ByNarrativeCreators orders the results by narrative_creators terms. -func ByNarrativeCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByControlImplementationCreators orders the results by control_implementation_creators terms. +func ByControlImplementationCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNarrativeCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newControlImplementationCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByProcedureCreatorsCount orders the results by procedure_creators count. -func ByProcedureCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByControlObjectiveCreatorsCount orders the results by control_objective_creators count. +func ByControlObjectiveCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newProcedureCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newControlObjectiveCreatorsStep(), opts...) } } -// ByProcedureCreators orders the results by procedure_creators terms. -func ByProcedureCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByControlObjectiveCreators orders the results by control_objective_creators terms. +func ByControlObjectiveCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newProcedureCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newControlObjectiveCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByProgramCreatorsCount orders the results by program_creators count. -func ByProgramCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByCustomTypeEnumCreatorsCount orders the results by custom_type_enum_creators count. +func ByCustomTypeEnumCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newProgramCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newCustomTypeEnumCreatorsStep(), opts...) } } -// ByProgramCreators orders the results by program_creators terms. -func ByProgramCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByCustomTypeEnumCreators orders the results by custom_type_enum_creators terms. +func ByCustomTypeEnumCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newProgramCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newCustomTypeEnumCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByRiskCreatorsCount orders the results by risk_creators count. -func ByRiskCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByDiscussionCreatorsCount orders the results by discussion_creators count. +func ByDiscussionCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newRiskCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newDiscussionCreatorsStep(), opts...) } } -// ByRiskCreators orders the results by risk_creators terms. -func ByRiskCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByDiscussionCreators orders the results by discussion_creators terms. +func ByDiscussionCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newRiskCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newDiscussionCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByIdentityHolderCreatorsCount orders the results by identity_holder_creators count. -func ByIdentityHolderCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEmailBrandingCreatorsCount orders the results by email_branding_creators count. +func ByEmailBrandingCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newIdentityHolderCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEmailBrandingCreatorsStep(), opts...) } } -// ByIdentityHolderCreators orders the results by identity_holder_creators terms. -func ByIdentityHolderCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEmailBrandingCreators orders the results by email_branding_creators terms. +func ByEmailBrandingCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newIdentityHolderCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEmailBrandingCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByScheduledJobCreatorsCount orders the results by scheduled_job_creators count. -func ByScheduledJobCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEmailTemplateCreatorsCount orders the results by email_template_creators count. +func ByEmailTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newScheduledJobCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEmailTemplateCreatorsStep(), opts...) } } -// ByScheduledJobCreators orders the results by scheduled_job_creators terms. -func ByScheduledJobCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEmailTemplateCreators orders the results by email_template_creators terms. +func ByEmailTemplateCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newScheduledJobCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEmailTemplateCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByStandardCreatorsCount orders the results by standard_creators count. -func ByStandardCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEntityCreatorsCount orders the results by entity_creators count. +func ByEntityCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newStandardCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEntityCreatorsStep(), opts...) } } -// ByStandardCreators orders the results by standard_creators terms. -func ByStandardCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEntityCreators orders the results by entity_creators terms. +func ByEntityCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newStandardCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEntityCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTemplateCreatorsCount orders the results by template_creators count. -func ByTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEntityTypeCreatorsCount orders the results by entity_type_creators count. +func ByEntityTypeCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTemplateCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEntityTypeCreatorsStep(), opts...) } } -// ByTemplateCreators orders the results by template_creators terms. -func ByTemplateCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEntityTypeCreators orders the results by entity_type_creators terms. +func ByEntityTypeCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTemplateCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEntityTypeCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySubprocessorCreatorsCount orders the results by subprocessor_creators count. -func BySubprocessorCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEvidenceCreatorsCount orders the results by evidence_creators count. +func ByEvidenceCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSubprocessorCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEvidenceCreatorsStep(), opts...) } } -// BySubprocessorCreators orders the results by subprocessor_creators terms. -func BySubprocessorCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEvidenceCreators orders the results by evidence_creators terms. +func ByEvidenceCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSubprocessorCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEvidenceCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTrustCenterDocCreatorsCount orders the results by trust_center_doc_creators count. -func ByTrustCenterDocCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByExportCreatorsCount orders the results by export_creators count. +func ByExportCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTrustCenterDocCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newExportCreatorsStep(), opts...) } } -// ByTrustCenterDocCreators orders the results by trust_center_doc_creators terms. -func ByTrustCenterDocCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByExportCreators orders the results by export_creators terms. +func ByExportCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTrustCenterDocCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newExportCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTrustCenterSubprocessorCreatorsCount orders the results by trust_center_subprocessor_creators count. -func ByTrustCenterSubprocessorCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByFileCreatorsCount orders the results by file_creators count. +func ByFileCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTrustCenterSubprocessorCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newFileCreatorsStep(), opts...) } } -// ByTrustCenterSubprocessorCreators orders the results by trust_center_subprocessor_creators terms. -func ByTrustCenterSubprocessorCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByFileCreators orders the results by file_creators terms. +func ByFileCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTrustCenterSubprocessorCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newFileCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByActionPlanCreatorsCount orders the results by action_plan_creators count. -func ByActionPlanCreatorsCount(opts ...sql.OrderTermOption) OrderOption { +// ByFindingCreatorsCount orders the results by finding_creators count. +func ByFindingCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newActionPlanCreatorsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newFindingCreatorsStep(), opts...) } } -// ByActionPlanCreators orders the results by action_plan_creators terms. -func ByActionPlanCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByFindingCreators orders the results by finding_creators terms. +func ByFindingCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newActionPlanCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newFindingCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByParentField orders the results by parent field. -func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption { +// ByGroupCreatorsCount orders the results by group_creators count. +func ByGroupCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newParentStep(), sql.OrderByField(field, opts...)) + sqlgraph.OrderByNeighborsCount(s, newGroupCreatorsStep(), opts...) } } -// ByChildrenCount orders the results by children count. -func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption { +// ByGroupCreators orders the results by group_creators terms. +func ByGroupCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newChildrenStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newGroupCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByChildren orders the results by children terms. -func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIdentityHolderCreatorsCount orders the results by identity_holder_creators count. +func ByIdentityHolderCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newChildrenStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newIdentityHolderCreatorsStep(), opts...) } } -// BySettingField orders the results by setting field. -func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption { +// ByIdentityHolderCreators orders the results by identity_holder_creators terms. +func ByIdentityHolderCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSettingStep(), sql.OrderByField(field, opts...)) + sqlgraph.OrderByNeighborTerms(s, newIdentityHolderCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByPersonalAccessTokensCount orders the results by personal_access_tokens count. -func ByPersonalAccessTokensCount(opts ...sql.OrderTermOption) OrderOption { +// ByIntegrationCreatorsCount orders the results by integration_creators count. +func ByIntegrationCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newPersonalAccessTokensStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newIntegrationCreatorsStep(), opts...) } } -// ByPersonalAccessTokens orders the results by personal_access_tokens terms. -func ByPersonalAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIntegrationCreators orders the results by integration_creators terms. +func ByIntegrationCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newPersonalAccessTokensStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newIntegrationCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByAPITokensCount orders the results by api_tokens count. -func ByAPITokensCount(opts ...sql.OrderTermOption) OrderOption { +// ByIntegrationWebhookCreatorsCount orders the results by integration_webhook_creators count. +func ByIntegrationWebhookCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newAPITokensStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newIntegrationWebhookCreatorsStep(), opts...) } } -// ByAPITokens orders the results by api_tokens terms. -func ByAPITokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIntegrationWebhookCreators orders the results by integration_webhook_creators terms. +func ByIntegrationWebhookCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newAPITokensStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newIntegrationWebhookCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEmailTemplatesCount orders the results by email_templates count. -func ByEmailTemplatesCount(opts ...sql.OrderTermOption) OrderOption { +// ByInternalPolicyCreatorsCount orders the results by internal_policy_creators count. +func ByInternalPolicyCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEmailTemplatesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newInternalPolicyCreatorsStep(), opts...) } } -// ByEmailTemplates orders the results by email_templates terms. -func ByEmailTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByInternalPolicyCreators orders the results by internal_policy_creators terms. +func ByInternalPolicyCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEmailTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newInternalPolicyCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByIntegrationWebhooksCount orders the results by integration_webhooks count. -func ByIntegrationWebhooksCount(opts ...sql.OrderTermOption) OrderOption { +// ByJobRunnerCreatorsCount orders the results by job_runner_creators count. +func ByJobRunnerCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newIntegrationWebhooksStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newJobRunnerCreatorsStep(), opts...) } } -// ByIntegrationWebhooks orders the results by integration_webhooks terms. -func ByIntegrationWebhooks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByJobRunnerCreators orders the results by job_runner_creators terms. +func ByJobRunnerCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newIntegrationWebhooksStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newJobRunnerCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByIntegrationRunsCount orders the results by integration_runs count. -func ByIntegrationRunsCount(opts ...sql.OrderTermOption) OrderOption { +// ByJobRunnerRegistrationTokenCreatorsCount orders the results by job_runner_registration_token_creators count. +func ByJobRunnerRegistrationTokenCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newIntegrationRunsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newJobRunnerRegistrationTokenCreatorsStep(), opts...) } } -// ByIntegrationRuns orders the results by integration_runs terms. -func ByIntegrationRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByJobRunnerRegistrationTokenCreators orders the results by job_runner_registration_token_creators terms. +func ByJobRunnerRegistrationTokenCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newIntegrationRunsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newJobRunnerRegistrationTokenCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNotificationPreferencesCount orders the results by notification_preferences count. -func ByNotificationPreferencesCount(opts ...sql.OrderTermOption) OrderOption { +// ByJobRunnerTokenCreatorsCount orders the results by job_runner_token_creators count. +func ByJobRunnerTokenCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNotificationPreferencesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newJobRunnerTokenCreatorsStep(), opts...) } } -// ByNotificationPreferences orders the results by notification_preferences terms. -func ByNotificationPreferences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByJobRunnerTokenCreators orders the results by job_runner_token_creators terms. +func ByJobRunnerTokenCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNotificationPreferencesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newJobRunnerTokenCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNotificationTemplatesCount orders the results by notification_templates count. -func ByNotificationTemplatesCount(opts ...sql.OrderTermOption) OrderOption { +// ByJobTemplateCreatorsCount orders the results by job_template_creators count. +func ByJobTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNotificationTemplatesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newJobTemplateCreatorsStep(), opts...) } } -// ByNotificationTemplates orders the results by notification_templates terms. -func ByNotificationTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByJobTemplateCreators orders the results by job_template_creators terms. +func ByJobTemplateCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNotificationTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newJobTemplateCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByUsersCount orders the results by users count. -func ByUsersCount(opts ...sql.OrderTermOption) OrderOption { +// ByMappedControlCreatorsCount orders the results by mapped_control_creators count. +func ByMappedControlCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newUsersStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newMappedControlCreatorsStep(), opts...) } } -// ByUsers orders the results by users terms. -func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByMappedControlCreators orders the results by mapped_control_creators terms. +func ByMappedControlCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newUsersStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newMappedControlCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByFilesCount orders the results by files count. -func ByFilesCount(opts ...sql.OrderTermOption) OrderOption { +// ByNarrativeCreatorsCount orders the results by narrative_creators count. +func ByNarrativeCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newFilesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newNarrativeCreatorsStep(), opts...) } } -// ByFiles orders the results by files terms. -func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByNarrativeCreators orders the results by narrative_creators terms. +func ByNarrativeCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newFilesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newNarrativeCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEventsCount orders the results by events count. -func ByEventsCount(opts ...sql.OrderTermOption) OrderOption { +// ByNoteCreatorsCount orders the results by note_creators count. +func ByNoteCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEventsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newNoteCreatorsStep(), opts...) } } -// ByEvents orders the results by events terms. -func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByNoteCreators orders the results by note_creators terms. +func ByNoteCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEventsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newNoteCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySecretsCount orders the results by secrets count. -func BySecretsCount(opts ...sql.OrderTermOption) OrderOption { +// ByNotificationTemplateCreatorsCount orders the results by notification_template_creators count. +func ByNotificationTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSecretsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newNotificationTemplateCreatorsStep(), opts...) } } -// BySecrets orders the results by secrets terms. -func BySecrets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByNotificationTemplateCreators orders the results by notification_template_creators terms. +func ByNotificationTemplateCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSecretsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newNotificationTemplateCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByAvatarFileField orders the results by avatar_file field. -func ByAvatarFileField(field string, opts ...sql.OrderTermOption) OrderOption { +// ByOrganizationCreatorsCount orders the results by organization_creators count. +func ByOrganizationCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newAvatarFileStep(), sql.OrderByField(field, opts...)) + sqlgraph.OrderByNeighborsCount(s, newOrganizationCreatorsStep(), opts...) } } -// ByGroupsCount orders the results by groups count. -func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption { +// ByOrganizationCreators orders the results by organization_creators terms. +func ByOrganizationCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newGroupsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newOrganizationCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByGroups orders the results by groups terms. -func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByPlatformCreatorsCount orders the results by platform_creators count. +func ByPlatformCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newGroupsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newPlatformCreatorsStep(), opts...) } } -// ByTemplatesCount orders the results by templates count. -func ByTemplatesCount(opts ...sql.OrderTermOption) OrderOption { +// ByPlatformCreators orders the results by platform_creators terms. +func ByPlatformCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTemplatesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newPlatformCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTemplates orders the results by templates terms. -func ByTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByProcedureCreatorsCount orders the results by procedure_creators count. +func ByProcedureCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newProcedureCreatorsStep(), opts...) } } -// ByIntegrationsCount orders the results by integrations count. -func ByIntegrationsCount(opts ...sql.OrderTermOption) OrderOption { +// ByProcedureCreators orders the results by procedure_creators terms. +func ByProcedureCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newIntegrationsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newProcedureCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByIntegrations orders the results by integrations terms. -func ByIntegrations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByProgramCreatorsCount orders the results by program_creators count. +func ByProgramCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newIntegrationsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newProgramCreatorsStep(), opts...) } } -// ByDocumentsCount orders the results by documents count. -func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption { +// ByProgramCreators orders the results by program_creators terms. +func ByProgramCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newDocumentsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newProgramCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByDocuments orders the results by documents terms. -func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByRemediationCreatorsCount orders the results by remediation_creators count. +func ByRemediationCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newDocumentsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newRemediationCreatorsStep(), opts...) } } -// ByOrgSubscriptionsCount orders the results by org_subscriptions count. -func ByOrgSubscriptionsCount(opts ...sql.OrderTermOption) OrderOption { +// ByRemediationCreators orders the results by remediation_creators terms. +func ByRemediationCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newOrgSubscriptionsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newRemediationCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByOrgSubscriptions orders the results by org_subscriptions terms. -func ByOrgSubscriptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByReviewCreatorsCount orders the results by review_creators count. +func ByReviewCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newOrgSubscriptionsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newReviewCreatorsStep(), opts...) } } -// ByOrgProductsCount orders the results by org_products count. -func ByOrgProductsCount(opts ...sql.OrderTermOption) OrderOption { +// ByReviewCreators orders the results by review_creators terms. +func ByReviewCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newOrgProductsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newReviewCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByOrgProducts orders the results by org_products terms. -func ByOrgProducts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByRiskCreatorsCount orders the results by risk_creators count. +func ByRiskCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newOrgProductsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newRiskCreatorsStep(), opts...) } } -// ByOrgPricesCount orders the results by org_prices count. -func ByOrgPricesCount(opts ...sql.OrderTermOption) OrderOption { +// ByRiskCreators orders the results by risk_creators terms. +func ByRiskCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newOrgPricesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newRiskCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByOrgPrices orders the results by org_prices terms. -func ByOrgPrices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByScanCreatorsCount orders the results by scan_creators count. +func ByScanCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newOrgPricesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newScanCreatorsStep(), opts...) } } -// ByOrgModulesCount orders the results by org_modules count. -func ByOrgModulesCount(opts ...sql.OrderTermOption) OrderOption { +// ByScanCreators orders the results by scan_creators terms. +func ByScanCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newOrgModulesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newScanCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByOrgModules orders the results by org_modules terms. -func ByOrgModules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByScheduledJobCreatorsCount orders the results by scheduled_job_creators count. +func ByScheduledJobCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newOrgModulesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newScheduledJobCreatorsStep(), opts...) } } -// ByInvitesCount orders the results by invites count. -func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption { +// ByScheduledJobCreators orders the results by scheduled_job_creators terms. +func ByScheduledJobCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newInvitesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newScheduledJobCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByInvites orders the results by invites terms. -func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByScheduledJobRunCreatorsCount orders the results by scheduled_job_run_creators count. +func ByScheduledJobRunCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newInvitesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newScheduledJobRunCreatorsStep(), opts...) } } -// BySubscribersCount orders the results by subscribers count. -func BySubscribersCount(opts ...sql.OrderTermOption) OrderOption { +// ByScheduledJobRunCreators orders the results by scheduled_job_run_creators terms. +func ByScheduledJobRunCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSubscribersStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newScheduledJobRunCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySubscribers orders the results by subscribers terms. -func BySubscribers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByStandardCreatorsCount orders the results by standard_creators count. +func ByStandardCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSubscribersStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newStandardCreatorsStep(), opts...) } } -// ByEntitiesCount orders the results by entities count. -func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption { +// ByStandardCreators orders the results by standard_creators terms. +func ByStandardCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEntitiesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newStandardCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEntities orders the results by entities terms. -func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySubcontrolCreatorsCount orders the results by subcontrol_creators count. +func BySubcontrolCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEntitiesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newSubcontrolCreatorsStep(), opts...) } } -// ByPlatformsCount orders the results by platforms count. -func ByPlatformsCount(opts ...sql.OrderTermOption) OrderOption { +// BySubcontrolCreators orders the results by subcontrol_creators terms. +func BySubcontrolCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newPlatformsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newSubcontrolCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByPlatforms orders the results by platforms terms. -func ByPlatforms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySubprocessorCreatorsCount orders the results by subprocessor_creators count. +func BySubprocessorCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newPlatformsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newSubprocessorCreatorsStep(), opts...) } } -// ByIdentityHoldersCount orders the results by identity_holders count. -func ByIdentityHoldersCount(opts ...sql.OrderTermOption) OrderOption { +// BySubprocessorCreators orders the results by subprocessor_creators terms. +func BySubprocessorCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newIdentityHoldersStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newSubprocessorCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByIdentityHolders orders the results by identity_holders terms. -func ByIdentityHolders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySubscriberCreatorsCount orders the results by subscriber_creators count. +func BySubscriberCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newIdentityHoldersStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newSubscriberCreatorsStep(), opts...) } } -// ByCampaignsCount orders the results by campaigns count. -func ByCampaignsCount(opts ...sql.OrderTermOption) OrderOption { +// BySubscriberCreators orders the results by subscriber_creators terms. +func BySubscriberCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newCampaignsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newSubscriberCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByCampaigns orders the results by campaigns terms. -func ByCampaigns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySystemDetailCreatorsCount orders the results by system_detail_creators count. +func BySystemDetailCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newCampaignsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newSystemDetailCreatorsStep(), opts...) } } -// ByCampaignTargetsCount orders the results by campaign_targets count. -func ByCampaignTargetsCount(opts ...sql.OrderTermOption) OrderOption { +// BySystemDetailCreators orders the results by system_detail_creators terms. +func BySystemDetailCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newCampaignTargetsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newSystemDetailCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByCampaignTargets orders the results by campaign_targets terms. -func ByCampaignTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTagDefinitionCreatorsCount orders the results by tag_definition_creators count. +func ByTagDefinitionCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newCampaignTargetsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTagDefinitionCreatorsStep(), opts...) } } -// ByEntityTypesCount orders the results by entity_types count. -func ByEntityTypesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTagDefinitionCreators orders the results by tag_definition_creators terms. +func ByTagDefinitionCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEntityTypesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTagDefinitionCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEntityTypes orders the results by entity_types terms. -func ByEntityTypes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTaskCreatorsCount orders the results by task_creators count. +func ByTaskCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEntityTypesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTaskCreatorsStep(), opts...) } } -// ByContactsCount orders the results by contacts count. -func ByContactsCount(opts ...sql.OrderTermOption) OrderOption { +// ByTaskCreators orders the results by task_creators terms. +func ByTaskCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newContactsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTaskCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByContacts orders the results by contacts terms. -func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTemplateCreatorsCount orders the results by template_creators count. +func ByTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newContactsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTemplateCreatorsStep(), opts...) } } -// ByNotesCount orders the results by notes count. -func ByNotesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTemplateCreators orders the results by template_creators terms. +func ByTemplateCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNotesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTemplateCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNotes orders the results by notes terms. -func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterCreatorsCount orders the results by trust_center_creators count. +func ByTrustCenterCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNotesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterCreatorsStep(), opts...) } } -// ByTasksCount orders the results by tasks count. -func ByTasksCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterCreators orders the results by trust_center_creators terms. +func ByTrustCenterCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTasksStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTasks orders the results by tasks terms. -func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterComplianceCreatorsCount orders the results by trust_center_compliance_creators count. +func ByTrustCenterComplianceCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTasksStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterComplianceCreatorsStep(), opts...) } } -// ByProgramsCount orders the results by programs count. -func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterComplianceCreators orders the results by trust_center_compliance_creators terms. +func ByTrustCenterComplianceCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newProgramsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterComplianceCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByPrograms orders the results by programs terms. -func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterDocCreatorsCount orders the results by trust_center_doc_creators count. +func ByTrustCenterDocCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newProgramsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterDocCreatorsStep(), opts...) } } -// BySystemDetailsCount orders the results by system_details count. -func BySystemDetailsCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterDocCreators orders the results by trust_center_doc_creators terms. +func ByTrustCenterDocCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSystemDetailsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterDocCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySystemDetails orders the results by system_details terms. -func BySystemDetails(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterEntityCreatorsCount orders the results by trust_center_entity_creators count. +func ByTrustCenterEntityCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSystemDetailsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterEntityCreatorsStep(), opts...) } } -// ByProceduresCount orders the results by procedures count. -func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterEntityCreators orders the results by trust_center_entity_creators terms. +func ByTrustCenterEntityCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterEntityCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByProcedures orders the results by procedures terms. -func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterFaqCreatorsCount orders the results by trust_center_faq_creators count. +func ByTrustCenterFaqCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterFaqCreatorsStep(), opts...) } } -// ByInternalPoliciesCount orders the results by internal_policies count. -func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterFaqCreators orders the results by trust_center_faq_creators terms. +func ByTrustCenterFaqCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newInternalPoliciesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterFaqCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByInternalPolicies orders the results by internal_policies terms. -func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterNdaRequestCreatorsCount orders the results by trust_center_nda_request_creators count. +func ByTrustCenterNdaRequestCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newInternalPoliciesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterNdaRequestCreatorsStep(), opts...) } } -// ByRisksCount orders the results by risks count. -func ByRisksCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterNdaRequestCreators orders the results by trust_center_nda_request_creators terms. +func ByTrustCenterNdaRequestCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newRisksStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterNdaRequestCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByRisks orders the results by risks terms. -func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterSubprocessorCreatorsCount orders the results by trust_center_subprocessor_creators count. +func ByTrustCenterSubprocessorCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newRisksStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterSubprocessorCreatorsStep(), opts...) } } -// ByControlObjectivesCount orders the results by control_objectives count. -func ByControlObjectivesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterSubprocessorCreators orders the results by trust_center_subprocessor_creators terms. +func ByTrustCenterSubprocessorCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlObjectivesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterSubprocessorCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByControlObjectives orders the results by control_objectives terms. -func ByControlObjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterWatermarkConfigCreatorsCount orders the results by trust_center_watermark_config_creators count. +func ByTrustCenterWatermarkConfigCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlObjectivesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterWatermarkConfigCreatorsStep(), opts...) } } -// ByNarrativesCount orders the results by narratives count. -func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterWatermarkConfigCreators orders the results by trust_center_watermark_config_creators terms. +func ByTrustCenterWatermarkConfigCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterWatermarkConfigCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNarratives orders the results by narratives terms. -func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByUserCreatorsCount orders the results by user_creators count. +func ByUserCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newUserCreatorsStep(), opts...) } } -// ByControlsCount orders the results by controls count. -func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { +// ByUserCreators orders the results by user_creators terms. +func ByUserCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newUserCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByControls orders the results by controls terms. -func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByUserSettingCreatorsCount orders the results by user_setting_creators count. +func ByUserSettingCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newUserSettingCreatorsStep(), opts...) } } -// BySubcontrolsCount orders the results by subcontrols count. -func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { +// ByUserSettingCreators orders the results by user_setting_creators terms. +func ByUserSettingCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newUserSettingCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySubcontrols orders the results by subcontrols terms. -func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByVendorRiskScoreCreatorsCount orders the results by vendor_risk_score_creators count. +func ByVendorRiskScoreCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newVendorRiskScoreCreatorsStep(), opts...) } } -// ByControlImplementationsCount orders the results by control_implementations count. -func ByControlImplementationsCount(opts ...sql.OrderTermOption) OrderOption { +// ByVendorRiskScoreCreators orders the results by vendor_risk_score_creators terms. +func ByVendorRiskScoreCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newControlImplementationsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newVendorRiskScoreCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByControlImplementations orders the results by control_implementations terms. -func ByControlImplementations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByVulnerabilityCreatorsCount orders the results by vulnerability_creators count. +func ByVulnerabilityCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newControlImplementationsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newVulnerabilityCreatorsStep(), opts...) } } -// ByMappedControlsCount orders the results by mapped_controls count. -func ByMappedControlsCount(opts ...sql.OrderTermOption) OrderOption { +// ByVulnerabilityCreators orders the results by vulnerability_creators terms. +func ByVulnerabilityCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newMappedControlsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newVulnerabilityCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByMappedControls orders the results by mapped_controls terms. -func ByMappedControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowAssignmentCreatorsCount orders the results by workflow_assignment_creators count. +func ByWorkflowAssignmentCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newMappedControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentCreatorsStep(), opts...) } } -// ByEvidenceCount orders the results by evidence count. -func ByEvidenceCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowAssignmentCreators orders the results by workflow_assignment_creators terms. +func ByWorkflowAssignmentCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEvidenceStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByEvidence orders the results by evidence terms. -func ByEvidence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowAssignmentTargetCreatorsCount orders the results by workflow_assignment_target_creators count. +func ByWorkflowAssignmentTargetCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEvidenceStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentTargetCreatorsStep(), opts...) } } -// ByStandardsCount orders the results by standards count. -func ByStandardsCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowAssignmentTargetCreators orders the results by workflow_assignment_target_creators terms. +func ByWorkflowAssignmentTargetCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newStandardsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentTargetCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByStandards orders the results by standards terms. -func ByStandards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowDefinitionCreatorsCount orders the results by workflow_definition_creators count. +func ByWorkflowDefinitionCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newStandardsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowDefinitionCreatorsStep(), opts...) } } -// ByActionPlansCount orders the results by action_plans count. -func ByActionPlansCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowDefinitionCreators orders the results by workflow_definition_creators terms. +func ByWorkflowDefinitionCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newActionPlansStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowDefinitionCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByActionPlans orders the results by action_plans terms. -func ByActionPlans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowEventCreatorsCount orders the results by workflow_event_creators count. +func ByWorkflowEventCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newActionPlansStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowEventCreatorsStep(), opts...) } } -// ByCustomDomainsCount orders the results by custom_domains count. -func ByCustomDomainsCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowEventCreators orders the results by workflow_event_creators terms. +func ByWorkflowEventCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newCustomDomainsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowEventCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByCustomDomains orders the results by custom_domains terms. -func ByCustomDomains(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowInstanceCreatorsCount orders the results by workflow_instance_creators count. +func ByWorkflowInstanceCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newCustomDomainsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowInstanceCreatorsStep(), opts...) } } -// ByJobRunnersCount orders the results by job_runners count. -func ByJobRunnersCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowInstanceCreators orders the results by workflow_instance_creators terms. +func ByWorkflowInstanceCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newJobRunnersStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowInstanceCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByJobRunners orders the results by job_runners terms. -func ByJobRunners(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowObjectRefCreatorsCount orders the results by workflow_object_ref_creators count. +func ByWorkflowObjectRefCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newJobRunnersStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowObjectRefCreatorsStep(), opts...) } } -// ByJobRunnerTokensCount orders the results by job_runner_tokens count. -func ByJobRunnerTokensCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowObjectRefCreators orders the results by workflow_object_ref_creators terms. +func ByWorkflowObjectRefCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newJobRunnerTokensStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowObjectRefCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByJobRunnerTokens orders the results by job_runner_tokens terms. -func ByJobRunnerTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowProposalCreatorsCount orders the results by workflow_proposal_creators count. +func ByWorkflowProposalCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newJobRunnerTokensStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowProposalCreatorsStep(), opts...) } } -// ByJobRunnerRegistrationTokensCount orders the results by job_runner_registration_tokens count. -func ByJobRunnerRegistrationTokensCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowProposalCreators orders the results by workflow_proposal_creators terms. +func ByWorkflowProposalCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newJobRunnerRegistrationTokensStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowProposalCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByJobRunnerRegistrationTokens orders the results by job_runner_registration_tokens terms. -func ByJobRunnerRegistrationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByCampaignsManagerCount orders the results by campaigns_manager count. +func ByCampaignsManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newJobRunnerRegistrationTokensStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newCampaignsManagerStep(), opts...) } } -// ByDNSVerificationsCount orders the results by dns_verifications count. -func ByDNSVerificationsCount(opts ...sql.OrderTermOption) OrderOption { +// ByCampaignsManager orders the results by campaigns_manager terms. +func ByCampaignsManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newDNSVerificationsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newCampaignsManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByDNSVerifications orders the results by dns_verifications terms. -func ByDNSVerifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByComplianceManagerCount orders the results by compliance_manager count. +func ByComplianceManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newDNSVerificationsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newComplianceManagerStep(), opts...) } } -// ByJobTemplatesCount orders the results by job_templates count. -func ByJobTemplatesCount(opts ...sql.OrderTermOption) OrderOption { +// ByComplianceManager orders the results by compliance_manager terms. +func ByComplianceManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newJobTemplatesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newComplianceManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByJobTemplates orders the results by job_templates terms. -func ByJobTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByGroupManagerCount orders the results by group_manager count. +func ByGroupManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newJobTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newGroupManagerStep(), opts...) } } -// ByScheduledJobsCount orders the results by scheduled_jobs count. -func ByScheduledJobsCount(opts ...sql.OrderTermOption) OrderOption { +// ByGroupManager orders the results by group_manager terms. +func ByGroupManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newScheduledJobsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newGroupManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByScheduledJobs orders the results by scheduled_jobs terms. -func ByScheduledJobs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByPoliciesManagerCount orders the results by policies_manager count. +func ByPoliciesManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newScheduledJobsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newPoliciesManagerStep(), opts...) } } -// ByJobResultsCount orders the results by job_results count. -func ByJobResultsCount(opts ...sql.OrderTermOption) OrderOption { +// ByPoliciesManager orders the results by policies_manager terms. +func ByPoliciesManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newJobResultsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newPoliciesManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByJobResults orders the results by job_results terms. -func ByJobResults(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByRegistryManagerCount orders the results by registry_manager count. +func ByRegistryManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newJobResultsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newRegistryManagerStep(), opts...) } } -// ByScheduledJobRunsCount orders the results by scheduled_job_runs count. -func ByScheduledJobRunsCount(opts ...sql.OrderTermOption) OrderOption { +// ByRegistryManager orders the results by registry_manager terms. +func ByRegistryManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newScheduledJobRunsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newRegistryManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByScheduledJobRuns orders the results by scheduled_job_runs terms. -func ByScheduledJobRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByRiskManagerCount orders the results by risk_manager count. +func ByRiskManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newScheduledJobRunsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newRiskManagerStep(), opts...) } } -// ByTrustCentersCount orders the results by trust_centers count. -func ByTrustCentersCount(opts ...sql.OrderTermOption) OrderOption { +// ByRiskManager orders the results by risk_manager terms. +func ByRiskManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTrustCentersStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newRiskManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTrustCenters orders the results by trust_centers terms. -func ByTrustCenters(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTrustCenterManagerCount orders the results by trust_center_manager count. +func ByTrustCenterManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTrustCentersStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTrustCenterManagerStep(), opts...) } } -// ByAssetsCount orders the results by assets count. -func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption { +// ByTrustCenterManager orders the results by trust_center_manager terms. +func ByTrustCenterManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newAssetsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTrustCenterManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByAssets orders the results by assets terms. -func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByWorkflowsManagerCount orders the results by workflows_manager count. +func ByWorkflowsManagerCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newAssetsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newWorkflowsManagerStep(), opts...) } } -// ByScansCount orders the results by scans count. -func ByScansCount(opts ...sql.OrderTermOption) OrderOption { +// ByWorkflowsManager orders the results by workflows_manager terms. +func ByWorkflowsManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newScansStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newWorkflowsManagerStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByScans orders the results by scans terms. -func ByScans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByParentField orders the results by parent field. +func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newScansStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newParentStep(), sql.OrderByField(field, opts...)) } } -// BySLADefinitionsCount orders the results by sla_definitions count. -func BySLADefinitionsCount(opts ...sql.OrderTermOption) OrderOption { +// ByChildrenCount orders the results by children count. +func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSLADefinitionsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newChildrenStep(), opts...) } } -// BySLADefinitions orders the results by sla_definitions terms. -func BySLADefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByChildren orders the results by children terms. +func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSLADefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newChildrenStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// BySubprocessorsCount orders the results by subprocessors count. -func BySubprocessorsCount(opts ...sql.OrderTermOption) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newSubprocessorsStep(), opts...) - } -} - -// BySubprocessors orders the results by subprocessors terms. -func BySubprocessors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySettingField orders the results by setting field. +func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newSubprocessorsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newSettingStep(), sql.OrderByField(field, opts...)) } } -// ByExportsCount orders the results by exports count. -func ByExportsCount(opts ...sql.OrderTermOption) OrderOption { +// ByPersonalAccessTokensCount orders the results by personal_access_tokens count. +func ByPersonalAccessTokensCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newExportsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newPersonalAccessTokensStep(), opts...) } } -// ByExports orders the results by exports terms. -func ByExports(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByPersonalAccessTokens orders the results by personal_access_tokens terms. +func ByPersonalAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newExportsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newPersonalAccessTokensStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTrustCenterWatermarkConfigsCount orders the results by trust_center_watermark_configs count. -func ByTrustCenterWatermarkConfigsCount(opts ...sql.OrderTermOption) OrderOption { +// ByAPITokensCount orders the results by api_tokens count. +func ByAPITokensCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTrustCenterWatermarkConfigsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newAPITokensStep(), opts...) } } -// ByTrustCenterWatermarkConfigs orders the results by trust_center_watermark_configs terms. -func ByTrustCenterWatermarkConfigs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByAPITokens orders the results by api_tokens terms. +func ByAPITokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTrustCenterWatermarkConfigsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newAPITokensStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByImpersonationEventsCount orders the results by impersonation_events count. -func ByImpersonationEventsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEmailTemplatesCount orders the results by email_templates count. +func ByEmailTemplatesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newImpersonationEventsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEmailTemplatesStep(), opts...) } } -// ByImpersonationEvents orders the results by impersonation_events terms. -func ByImpersonationEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEmailTemplates orders the results by email_templates terms. +func ByEmailTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newImpersonationEventsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEmailTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByAssessmentsCount orders the results by assessments count. -func ByAssessmentsCount(opts ...sql.OrderTermOption) OrderOption { +// ByIntegrationWebhooksCount orders the results by integration_webhooks count. +func ByIntegrationWebhooksCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newAssessmentsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newIntegrationWebhooksStep(), opts...) } } -// ByAssessments orders the results by assessments terms. -func ByAssessments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIntegrationWebhooks orders the results by integration_webhooks terms. +func ByIntegrationWebhooks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newAssessmentsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newIntegrationWebhooksStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByAssessmentResponsesCount orders the results by assessment_responses count. -func ByAssessmentResponsesCount(opts ...sql.OrderTermOption) OrderOption { +// ByIntegrationRunsCount orders the results by integration_runs count. +func ByIntegrationRunsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newAssessmentResponsesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newIntegrationRunsStep(), opts...) } } -// ByAssessmentResponses orders the results by assessment_responses terms. -func ByAssessmentResponses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIntegrationRuns orders the results by integration_runs terms. +func ByIntegrationRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newAssessmentResponsesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newIntegrationRunsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByCustomTypeEnumsCount orders the results by custom_type_enums count. -func ByCustomTypeEnumsCount(opts ...sql.OrderTermOption) OrderOption { +// ByNotificationPreferencesCount orders the results by notification_preferences count. +func ByNotificationPreferencesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newCustomTypeEnumsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newNotificationPreferencesStep(), opts...) } } -// ByCustomTypeEnums orders the results by custom_type_enums terms. -func ByCustomTypeEnums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByNotificationPreferences orders the results by notification_preferences terms. +func ByNotificationPreferences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newCustomTypeEnumsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newNotificationPreferencesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByTagDefinitionsCount orders the results by tag_definitions count. -func ByTagDefinitionsCount(opts ...sql.OrderTermOption) OrderOption { +// ByNotificationTemplatesCount orders the results by notification_templates count. +func ByNotificationTemplatesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newTagDefinitionsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newNotificationTemplatesStep(), opts...) } } -// ByTagDefinitions orders the results by tag_definitions terms. -func ByTagDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByNotificationTemplates orders the results by notification_templates terms. +func ByNotificationTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newTagDefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newNotificationTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByRemediationsCount orders the results by remediations count. -func ByRemediationsCount(opts ...sql.OrderTermOption) OrderOption { +// ByUsersCount orders the results by users count. +func ByUsersCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newRemediationsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newUsersStep(), opts...) } } -// ByRemediations orders the results by remediations terms. -func ByRemediations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByUsers orders the results by users terms. +func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newRemediationsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newUsersStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByFindingsCount orders the results by findings count. -func ByFindingsCount(opts ...sql.OrderTermOption) OrderOption { +// ByFilesCount orders the results by files count. +func ByFilesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newFindingsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newFilesStep(), opts...) } } -// ByFindings orders the results by findings terms. -func ByFindings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByFiles orders the results by files terms. +func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newFindingsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newFilesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByReviewsCount orders the results by reviews count. -func ByReviewsCount(opts ...sql.OrderTermOption) OrderOption { +// ByEventsCount orders the results by events count. +func ByEventsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newReviewsStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newEventsStep(), opts...) } } -// ByReviews orders the results by reviews terms. -func ByReviews(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByEvents orders the results by events terms. +func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newReviewsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newEventsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByVulnerabilitiesCount orders the results by vulnerabilities count. -func ByVulnerabilitiesCount(opts ...sql.OrderTermOption) OrderOption { +// BySecretsCount orders the results by secrets count. +func BySecretsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newVulnerabilitiesStep(), opts...) + sqlgraph.OrderByNeighborsCount(s, newSecretsStep(), opts...) } } -// ByVulnerabilities orders the results by vulnerabilities terms. -func ByVulnerabilities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// BySecrets orders the results by secrets terms. +func BySecrets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newVulnerabilitiesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborTerms(s, newSecretsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByNotificationsCount orders the results by notifications count. -func ByNotificationsCount(opts ...sql.OrderTermOption) OrderOption { +// ByAvatarFileField orders the results by avatar_file field. +func ByAvatarFileField(field string, opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newNotificationsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newAvatarFileStep(), sql.OrderByField(field, opts...)) } } -// ByNotifications orders the results by notifications terms. -func ByNotifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByGroupsCount orders the results by groups count. +func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newNotificationsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newGroupsStep(), opts...) } } -// ByWorkflowDefinitionsCount orders the results by workflow_definitions count. -func ByWorkflowDefinitionsCount(opts ...sql.OrderTermOption) OrderOption { +// ByGroups orders the results by groups terms. +func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowDefinitionsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newGroupsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowDefinitions orders the results by workflow_definitions terms. -func ByWorkflowDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByTemplatesCount orders the results by templates count. +func ByTemplatesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowDefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newTemplatesStep(), opts...) } } -// ByWorkflowInstancesCount orders the results by workflow_instances count. -func ByWorkflowInstancesCount(opts ...sql.OrderTermOption) OrderOption { +// ByTemplates orders the results by templates terms. +func ByTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowInstancesStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowInstances orders the results by workflow_instances terms. -func ByWorkflowInstances(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByIntegrationsCount orders the results by integrations count. +func ByIntegrationsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowInstancesStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newIntegrationsStep(), opts...) } } -// ByWorkflowEventsCount orders the results by workflow_events count. -func ByWorkflowEventsCount(opts ...sql.OrderTermOption) OrderOption { +// ByIntegrations orders the results by integrations terms. +func ByIntegrations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowEventsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newIntegrationsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowEvents orders the results by workflow_events terms. -func ByWorkflowEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByDocumentsCount orders the results by documents count. +func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowEventsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newDocumentsStep(), opts...) } } -// ByWorkflowAssignmentsCount orders the results by workflow_assignments count. -func ByWorkflowAssignmentsCount(opts ...sql.OrderTermOption) OrderOption { +// ByDocuments orders the results by documents terms. +func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newDocumentsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowAssignments orders the results by workflow_assignments terms. -func ByWorkflowAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByOrgSubscriptionsCount orders the results by org_subscriptions count. +func ByOrgSubscriptionsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newOrgSubscriptionsStep(), opts...) } } -// ByWorkflowAssignmentTargetsCount orders the results by workflow_assignment_targets count. -func ByWorkflowAssignmentTargetsCount(opts ...sql.OrderTermOption) OrderOption { +// ByOrgSubscriptions orders the results by org_subscriptions terms. +func ByOrgSubscriptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentTargetsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newOrgSubscriptionsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowAssignmentTargets orders the results by workflow_assignment_targets terms. -func ByWorkflowAssignmentTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByOrgProductsCount orders the results by org_products count. +func ByOrgProductsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentTargetsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newOrgProductsStep(), opts...) } } -// ByWorkflowObjectRefsCount orders the results by workflow_object_refs count. -func ByWorkflowObjectRefsCount(opts ...sql.OrderTermOption) OrderOption { +// ByOrgProducts orders the results by org_products terms. +func ByOrgProducts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowObjectRefsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newOrgProductsStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowObjectRefs orders the results by workflow_object_refs terms. -func ByWorkflowObjectRefs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByOrgPricesCount orders the results by org_prices count. +func ByOrgPricesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowObjectRefsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newOrgPricesStep(), opts...) } } -// ByWorkflowProposalsCount orders the results by workflow_proposals count. -func ByWorkflowProposalsCount(opts ...sql.OrderTermOption) OrderOption { +// ByOrgPrices orders the results by org_prices terms. +func ByOrgPrices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newWorkflowProposalsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newOrgPricesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByWorkflowProposals orders the results by workflow_proposals terms. -func ByWorkflowProposals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByOrgModulesCount orders the results by org_modules count. +func ByOrgModulesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newWorkflowProposalsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newOrgModulesStep(), opts...) } } -// ByDirectoryAccountsCount orders the results by directory_accounts count. -func ByDirectoryAccountsCount(opts ...sql.OrderTermOption) OrderOption { +// ByOrgModules orders the results by org_modules terms. +func ByOrgModules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newDirectoryAccountsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newOrgModulesStep(), append([]sql.OrderTerm{term}, terms...)...) } } -// ByDirectoryAccounts orders the results by directory_accounts terms. -func ByDirectoryAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { +// ByInvitesCount orders the results by invites count. +func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newDirectoryAccountsStep(), append([]sql.OrderTerm{term}, terms...)...) + sqlgraph.OrderByNeighborsCount(s, newInvitesStep(), opts...) } } -// ByDirectoryGroupsCount orders the results by directory_groups count. -func ByDirectoryGroupsCount(opts ...sql.OrderTermOption) OrderOption { +// ByInvites orders the results by invites terms. +func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newDirectoryGroupsStep(), opts...) + sqlgraph.OrderByNeighborTerms(s, newInvitesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubscribersCount orders the results by subscribers count. +func BySubscribersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubscribersStep(), opts...) + } +} + +// BySubscribers orders the results by subscribers terms. +func BySubscribers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubscribersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByEntitiesCount orders the results by entities count. +func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newEntitiesStep(), opts...) + } +} + +// ByEntities orders the results by entities terms. +func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newEntitiesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByPlatformsCount orders the results by platforms count. +func ByPlatformsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newPlatformsStep(), opts...) + } +} + +// ByPlatforms orders the results by platforms terms. +func ByPlatforms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newPlatformsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByIdentityHoldersCount orders the results by identity_holders count. +func ByIdentityHoldersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newIdentityHoldersStep(), opts...) + } +} + +// ByIdentityHolders orders the results by identity_holders terms. +func ByIdentityHolders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newIdentityHoldersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByCampaignsCount orders the results by campaigns count. +func ByCampaignsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newCampaignsStep(), opts...) + } +} + +// ByCampaigns orders the results by campaigns terms. +func ByCampaigns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newCampaignsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByCampaignTargetsCount orders the results by campaign_targets count. +func ByCampaignTargetsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newCampaignTargetsStep(), opts...) + } +} + +// ByCampaignTargets orders the results by campaign_targets terms. +func ByCampaignTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newCampaignTargetsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByEntityTypesCount orders the results by entity_types count. +func ByEntityTypesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newEntityTypesStep(), opts...) + } +} + +// ByEntityTypes orders the results by entity_types terms. +func ByEntityTypes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newEntityTypesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByContactsCount orders the results by contacts count. +func ByContactsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newContactsStep(), opts...) + } +} + +// ByContacts orders the results by contacts terms. +func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newContactsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNotesCount orders the results by notes count. +func ByNotesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNotesStep(), opts...) + } +} + +// ByNotes orders the results by notes terms. +func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNotesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByTasksCount orders the results by tasks count. +func ByTasksCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newTasksStep(), opts...) + } +} + +// ByTasks orders the results by tasks terms. +func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newTasksStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProgramsCount orders the results by programs count. +func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProgramsStep(), opts...) + } +} + +// ByPrograms orders the results by programs terms. +func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProgramsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySystemDetailsCount orders the results by system_details count. +func BySystemDetailsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSystemDetailsStep(), opts...) + } +} + +// BySystemDetails orders the results by system_details terms. +func BySystemDetails(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSystemDetailsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProceduresCount orders the results by procedures count. +func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + } +} + +// ByProcedures orders the results by procedures terms. +func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByInternalPoliciesCount orders the results by internal_policies count. +func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newInternalPoliciesStep(), opts...) + } +} + +// ByInternalPolicies orders the results by internal_policies terms. +func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newInternalPoliciesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRisksCount orders the results by risks count. +func ByRisksCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRisksStep(), opts...) + } +} + +// ByRisks orders the results by risks terms. +func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRisksStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlObjectivesCount orders the results by control_objectives count. +func ByControlObjectivesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlObjectivesStep(), opts...) + } +} + +// ByControlObjectives orders the results by control_objectives terms. +func ByControlObjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlObjectivesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNarrativesCount orders the results by narratives count. +func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + } +} + +// ByNarratives orders the results by narratives terms. +func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlsCount orders the results by controls count. +func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlsStep(), opts...) + } +} + +// ByControls orders the results by controls terms. +func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubcontrolsCount orders the results by subcontrols count. +func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + } +} + +// BySubcontrols orders the results by subcontrols terms. +func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlImplementationsCount orders the results by control_implementations count. +func ByControlImplementationsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlImplementationsStep(), opts...) + } +} + +// ByControlImplementations orders the results by control_implementations terms. +func ByControlImplementations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlImplementationsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByMappedControlsCount orders the results by mapped_controls count. +func ByMappedControlsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newMappedControlsStep(), opts...) + } +} + +// ByMappedControls orders the results by mapped_controls terms. +func ByMappedControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newMappedControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByEvidenceCount orders the results by evidence count. +func ByEvidenceCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newEvidenceStep(), opts...) + } +} + +// ByEvidence orders the results by evidence terms. +func ByEvidence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newEvidenceStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByStandardsCount orders the results by standards count. +func ByStandardsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newStandardsStep(), opts...) + } +} + +// ByStandards orders the results by standards terms. +func ByStandards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newStandardsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByActionPlansCount orders the results by action_plans count. +func ByActionPlansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newActionPlansStep(), opts...) + } +} + +// ByActionPlans orders the results by action_plans terms. +func ByActionPlans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newActionPlansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByCustomDomainsCount orders the results by custom_domains count. +func ByCustomDomainsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newCustomDomainsStep(), opts...) + } +} + +// ByCustomDomains orders the results by custom_domains terms. +func ByCustomDomains(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newCustomDomainsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByJobRunnersCount orders the results by job_runners count. +func ByJobRunnersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newJobRunnersStep(), opts...) + } +} + +// ByJobRunners orders the results by job_runners terms. +func ByJobRunners(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newJobRunnersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByJobRunnerTokensCount orders the results by job_runner_tokens count. +func ByJobRunnerTokensCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newJobRunnerTokensStep(), opts...) + } +} + +// ByJobRunnerTokens orders the results by job_runner_tokens terms. +func ByJobRunnerTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newJobRunnerTokensStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByJobRunnerRegistrationTokensCount orders the results by job_runner_registration_tokens count. +func ByJobRunnerRegistrationTokensCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newJobRunnerRegistrationTokensStep(), opts...) + } +} + +// ByJobRunnerRegistrationTokens orders the results by job_runner_registration_tokens terms. +func ByJobRunnerRegistrationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newJobRunnerRegistrationTokensStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByDNSVerificationsCount orders the results by dns_verifications count. +func ByDNSVerificationsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newDNSVerificationsStep(), opts...) + } +} + +// ByDNSVerifications orders the results by dns_verifications terms. +func ByDNSVerifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newDNSVerificationsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByJobTemplatesCount orders the results by job_templates count. +func ByJobTemplatesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newJobTemplatesStep(), opts...) + } +} + +// ByJobTemplates orders the results by job_templates terms. +func ByJobTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newJobTemplatesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByScheduledJobsCount orders the results by scheduled_jobs count. +func ByScheduledJobsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newScheduledJobsStep(), opts...) + } +} + +// ByScheduledJobs orders the results by scheduled_jobs terms. +func ByScheduledJobs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newScheduledJobsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByJobResultsCount orders the results by job_results count. +func ByJobResultsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newJobResultsStep(), opts...) + } +} + +// ByJobResults orders the results by job_results terms. +func ByJobResults(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newJobResultsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByScheduledJobRunsCount orders the results by scheduled_job_runs count. +func ByScheduledJobRunsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newScheduledJobRunsStep(), opts...) + } +} + +// ByScheduledJobRuns orders the results by scheduled_job_runs terms. +func ByScheduledJobRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newScheduledJobRunsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByTrustCentersCount orders the results by trust_centers count. +func ByTrustCentersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newTrustCentersStep(), opts...) + } +} + +// ByTrustCenters orders the results by trust_centers terms. +func ByTrustCenters(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newTrustCentersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAssetsCount orders the results by assets count. +func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAssetsStep(), opts...) + } +} + +// ByAssets orders the results by assets terms. +func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAssetsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByScansCount orders the results by scans count. +func ByScansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newScansStep(), opts...) + } +} + +// ByScans orders the results by scans terms. +func ByScans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newScansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySLADefinitionsCount orders the results by sla_definitions count. +func BySLADefinitionsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSLADefinitionsStep(), opts...) + } +} + +// BySLADefinitions orders the results by sla_definitions terms. +func BySLADefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSLADefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubprocessorsCount orders the results by subprocessors count. +func BySubprocessorsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubprocessorsStep(), opts...) + } +} + +// BySubprocessors orders the results by subprocessors terms. +func BySubprocessors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubprocessorsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByExportsCount orders the results by exports count. +func ByExportsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newExportsStep(), opts...) + } +} + +// ByExports orders the results by exports terms. +func ByExports(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newExportsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByTrustCenterWatermarkConfigsCount orders the results by trust_center_watermark_configs count. +func ByTrustCenterWatermarkConfigsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newTrustCenterWatermarkConfigsStep(), opts...) + } +} + +// ByTrustCenterWatermarkConfigs orders the results by trust_center_watermark_configs terms. +func ByTrustCenterWatermarkConfigs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newTrustCenterWatermarkConfigsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByImpersonationEventsCount orders the results by impersonation_events count. +func ByImpersonationEventsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newImpersonationEventsStep(), opts...) + } +} + +// ByImpersonationEvents orders the results by impersonation_events terms. +func ByImpersonationEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newImpersonationEventsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAssessmentsCount orders the results by assessments count. +func ByAssessmentsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAssessmentsStep(), opts...) + } +} + +// ByAssessments orders the results by assessments terms. +func ByAssessments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAssessmentsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAssessmentResponsesCount orders the results by assessment_responses count. +func ByAssessmentResponsesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAssessmentResponsesStep(), opts...) + } +} + +// ByAssessmentResponses orders the results by assessment_responses terms. +func ByAssessmentResponses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAssessmentResponsesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByCustomTypeEnumsCount orders the results by custom_type_enums count. +func ByCustomTypeEnumsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newCustomTypeEnumsStep(), opts...) + } +} + +// ByCustomTypeEnums orders the results by custom_type_enums terms. +func ByCustomTypeEnums(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newCustomTypeEnumsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByTagDefinitionsCount orders the results by tag_definitions count. +func ByTagDefinitionsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newTagDefinitionsStep(), opts...) + } +} + +// ByTagDefinitions orders the results by tag_definitions terms. +func ByTagDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newTagDefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRemediationsCount orders the results by remediations count. +func ByRemediationsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRemediationsStep(), opts...) + } +} + +// ByRemediations orders the results by remediations terms. +func ByRemediations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRemediationsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByFindingsCount orders the results by findings count. +func ByFindingsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newFindingsStep(), opts...) + } +} + +// ByFindings orders the results by findings terms. +func ByFindings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newFindingsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByReviewsCount orders the results by reviews count. +func ByReviewsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newReviewsStep(), opts...) + } +} + +// ByReviews orders the results by reviews terms. +func ByReviews(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newReviewsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByVulnerabilitiesCount orders the results by vulnerabilities count. +func ByVulnerabilitiesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newVulnerabilitiesStep(), opts...) + } +} + +// ByVulnerabilities orders the results by vulnerabilities terms. +func ByVulnerabilities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newVulnerabilitiesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNotificationsCount orders the results by notifications count. +func ByNotificationsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNotificationsStep(), opts...) + } +} + +// ByNotifications orders the results by notifications terms. +func ByNotifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNotificationsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowDefinitionsCount orders the results by workflow_definitions count. +func ByWorkflowDefinitionsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowDefinitionsStep(), opts...) + } +} + +// ByWorkflowDefinitions orders the results by workflow_definitions terms. +func ByWorkflowDefinitions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowDefinitionsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowInstancesCount orders the results by workflow_instances count. +func ByWorkflowInstancesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowInstancesStep(), opts...) + } +} + +// ByWorkflowInstances orders the results by workflow_instances terms. +func ByWorkflowInstances(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowInstancesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowEventsCount orders the results by workflow_events count. +func ByWorkflowEventsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowEventsStep(), opts...) + } +} + +// ByWorkflowEvents orders the results by workflow_events terms. +func ByWorkflowEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowEventsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowAssignmentsCount orders the results by workflow_assignments count. +func ByWorkflowAssignmentsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentsStep(), opts...) + } +} + +// ByWorkflowAssignments orders the results by workflow_assignments terms. +func ByWorkflowAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowAssignmentTargetsCount orders the results by workflow_assignment_targets count. +func ByWorkflowAssignmentTargetsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowAssignmentTargetsStep(), opts...) + } +} + +// ByWorkflowAssignmentTargets orders the results by workflow_assignment_targets terms. +func ByWorkflowAssignmentTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowAssignmentTargetsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowObjectRefsCount orders the results by workflow_object_refs count. +func ByWorkflowObjectRefsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowObjectRefsStep(), opts...) + } +} + +// ByWorkflowObjectRefs orders the results by workflow_object_refs terms. +func ByWorkflowObjectRefs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowObjectRefsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByWorkflowProposalsCount orders the results by workflow_proposals count. +func ByWorkflowProposalsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newWorkflowProposalsStep(), opts...) + } +} + +// ByWorkflowProposals orders the results by workflow_proposals terms. +func ByWorkflowProposals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newWorkflowProposalsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByDirectoryAccountsCount orders the results by directory_accounts count. +func ByDirectoryAccountsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newDirectoryAccountsStep(), opts...) + } +} + +// ByDirectoryAccounts orders the results by directory_accounts terms. +func ByDirectoryAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newDirectoryAccountsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByDirectoryGroupsCount orders the results by directory_groups count. +func ByDirectoryGroupsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newDirectoryGroupsStep(), opts...) } } @@ -2719,26 +4030,82 @@ func ByVendorRiskScoresCount(opts ...sql.OrderTermOption) OrderOption { sqlgraph.OrderByNeighborsCount(s, newVendorRiskScoresStep(), opts...) } } - -// ByVendorRiskScores orders the results by vendor_risk_scores terms. -func ByVendorRiskScores(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newVendorRiskScoresStep(), append([]sql.OrderTerm{term}, terms...)...) - } + +// ByVendorRiskScores orders the results by vendor_risk_scores terms. +func ByVendorRiskScores(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newVendorRiskScoresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByMembersCount orders the results by members count. +func ByMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newMembersStep(), opts...) + } +} + +// ByMembers orders the results by members terms. +func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newActionPlanCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ActionPlanCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ActionPlanCreatorsTable, ActionPlanCreatorsColumn), + ) +} +func newAPITokenCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(APITokenCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, APITokenCreatorsTable, APITokenCreatorsColumn), + ) +} +func newAssessmentCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AssessmentCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AssessmentCreatorsTable, AssessmentCreatorsColumn), + ) +} +func newAssetCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AssetCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AssetCreatorsTable, AssetCreatorsColumn), + ) +} +func newCampaignCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CampaignCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignCreatorsTable, CampaignCreatorsColumn), + ) +} +func newCampaignTargetCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CampaignTargetCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignTargetCreatorsTable, CampaignTargetCreatorsColumn), + ) } - -// ByMembersCount orders the results by members count. -func ByMembersCount(opts ...sql.OrderTermOption) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newMembersStep(), opts...) - } +func newCheckResultCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CheckResultCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CheckResultCreatorsTable, CheckResultCreatorsColumn), + ) } - -// ByMembers orders the results by members terms. -func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newMembersStep(), append([]sql.OrderTerm{term}, terms...)...) - } +func newContactCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ContactCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ContactCreatorsTable, ContactCreatorsColumn), + ) } func newControlCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( @@ -2761,6 +4128,48 @@ func newControlObjectiveCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, ControlObjectiveCreatorsTable, ControlObjectiveCreatorsColumn), ) } +func newCustomTypeEnumCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CustomTypeEnumCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CustomTypeEnumCreatorsTable, CustomTypeEnumCreatorsColumn), + ) +} +func newDiscussionCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(DiscussionCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, DiscussionCreatorsTable, DiscussionCreatorsColumn), + ) +} +func newEmailBrandingCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(EmailBrandingCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EmailBrandingCreatorsTable, EmailBrandingCreatorsColumn), + ) +} +func newEmailTemplateCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(EmailTemplateCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EmailTemplateCreatorsTable, EmailTemplateCreatorsColumn), + ) +} +func newEntityCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(EntityCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EntityCreatorsTable, EntityCreatorsColumn), + ) +} +func newEntityTypeCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(EntityTypeCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EntityTypeCreatorsTable, EntityTypeCreatorsColumn), + ) +} func newEvidenceCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2768,25 +4177,25 @@ func newEvidenceCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, EvidenceCreatorsTable, EvidenceCreatorsColumn), ) } -func newAssetCreatorsStep() *sqlgraph.Step { +func newExportCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(AssetCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, AssetCreatorsTable, AssetCreatorsColumn), + sqlgraph.To(ExportCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ExportCreatorsTable, ExportCreatorsColumn), ) } -func newFindingCreatorsStep() *sqlgraph.Step { +func newFileCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(FindingCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, FindingCreatorsTable, FindingCreatorsColumn), + sqlgraph.To(FileCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, FileCreatorsTable, FileCreatorsColumn), ) } -func newVulnerabilityCreatorsStep() *sqlgraph.Step { +func newFindingCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(VulnerabilityCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, VulnerabilityCreatorsTable, VulnerabilityCreatorsColumn), + sqlgraph.To(FindingCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, FindingCreatorsTable, FindingCreatorsColumn), ) } func newGroupCreatorsStep() *sqlgraph.Step { @@ -2796,6 +4205,27 @@ func newGroupCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, GroupCreatorsTable, GroupCreatorsColumn), ) } +func newIdentityHolderCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(IdentityHolderCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IdentityHolderCreatorsTable, IdentityHolderCreatorsColumn), + ) +} +func newIntegrationCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(IntegrationCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IntegrationCreatorsTable, IntegrationCreatorsColumn), + ) +} +func newIntegrationWebhookCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(IntegrationWebhookCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IntegrationWebhookCreatorsTable, IntegrationWebhookCreatorsColumn), + ) +} func newInternalPolicyCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2803,6 +4233,34 @@ func newInternalPolicyCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, InternalPolicyCreatorsTable, InternalPolicyCreatorsColumn), ) } +func newJobRunnerCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(JobRunnerCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerCreatorsTable, JobRunnerCreatorsColumn), + ) +} +func newJobRunnerRegistrationTokenCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(JobRunnerRegistrationTokenCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerRegistrationTokenCreatorsTable, JobRunnerRegistrationTokenCreatorsColumn), + ) +} +func newJobRunnerTokenCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(JobRunnerTokenCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerTokenCreatorsTable, JobRunnerTokenCreatorsColumn), + ) +} +func newJobTemplateCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(JobTemplateCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobTemplateCreatorsTable, JobTemplateCreatorsColumn), + ) +} func newMappedControlCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2817,6 +4275,34 @@ func newNarrativeCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, NarrativeCreatorsTable, NarrativeCreatorsColumn), ) } +func newNoteCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NoteCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, NoteCreatorsTable, NoteCreatorsColumn), + ) +} +func newNotificationTemplateCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NotificationTemplateCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, NotificationTemplateCreatorsTable, NotificationTemplateCreatorsColumn), + ) +} +func newOrganizationCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(OrganizationCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, OrganizationCreatorsTable, OrganizationCreatorsColumn), + ) +} +func newPlatformCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(PlatformCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, PlatformCreatorsTable, PlatformCreatorsColumn), + ) +} func newProcedureCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2831,6 +4317,20 @@ func newProgramCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, ProgramCreatorsTable, ProgramCreatorsColumn), ) } +func newRemediationCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RemediationCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RemediationCreatorsTable, RemediationCreatorsColumn), + ) +} +func newReviewCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ReviewCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ReviewCreatorsTable, ReviewCreatorsColumn), + ) +} func newRiskCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2838,11 +4338,11 @@ func newRiskCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, RiskCreatorsTable, RiskCreatorsColumn), ) } -func newIdentityHolderCreatorsStep() *sqlgraph.Step { +func newScanCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(IdentityHolderCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, IdentityHolderCreatorsTable, IdentityHolderCreatorsColumn), + sqlgraph.To(ScanCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ScanCreatorsTable, ScanCreatorsColumn), ) } func newScheduledJobCreatorsStep() *sqlgraph.Step { @@ -2852,6 +4352,13 @@ func newScheduledJobCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, ScheduledJobCreatorsTable, ScheduledJobCreatorsColumn), ) } +func newScheduledJobRunCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ScheduledJobRunCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ScheduledJobRunCreatorsTable, ScheduledJobRunCreatorsColumn), + ) +} func newStandardCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2859,11 +4366,11 @@ func newStandardCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, StandardCreatorsTable, StandardCreatorsColumn), ) } -func newTemplateCreatorsStep() *sqlgraph.Step { +func newSubcontrolCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(TemplateCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, TemplateCreatorsTable, TemplateCreatorsColumn), + sqlgraph.To(SubcontrolCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolCreatorsTable, SubcontrolCreatorsColumn), ) } func newSubprocessorCreatorsStep() *sqlgraph.Step { @@ -2873,6 +4380,55 @@ func newSubprocessorCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, SubprocessorCreatorsTable, SubprocessorCreatorsColumn), ) } +func newSubscriberCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubscriberCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubscriberCreatorsTable, SubscriberCreatorsColumn), + ) +} +func newSystemDetailCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SystemDetailCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SystemDetailCreatorsTable, SystemDetailCreatorsColumn), + ) +} +func newTagDefinitionCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TagDefinitionCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TagDefinitionCreatorsTable, TagDefinitionCreatorsColumn), + ) +} +func newTaskCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TaskCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TaskCreatorsTable, TaskCreatorsColumn), + ) +} +func newTemplateCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TemplateCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TemplateCreatorsTable, TemplateCreatorsColumn), + ) +} +func newTrustCenterCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterCreatorsTable, TrustCenterCreatorsColumn), + ) +} +func newTrustCenterComplianceCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterComplianceCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterComplianceCreatorsTable, TrustCenterComplianceCreatorsColumn), + ) +} func newTrustCenterDocCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2880,6 +4436,27 @@ func newTrustCenterDocCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterDocCreatorsTable, TrustCenterDocCreatorsColumn), ) } +func newTrustCenterEntityCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterEntityCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterEntityCreatorsTable, TrustCenterEntityCreatorsColumn), + ) +} +func newTrustCenterFaqCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterFaqCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterFaqCreatorsTable, TrustCenterFaqCreatorsColumn), + ) +} +func newTrustCenterNdaRequestCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterNdaRequestCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterNdaRequestCreatorsTable, TrustCenterNdaRequestCreatorsColumn), + ) +} func newTrustCenterSubprocessorCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2887,11 +4464,144 @@ func newTrustCenterSubprocessorCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterSubprocessorCreatorsTable, TrustCenterSubprocessorCreatorsColumn), ) } -func newActionPlanCreatorsStep() *sqlgraph.Step { +func newTrustCenterWatermarkConfigCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.To(ActionPlanCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ActionPlanCreatorsTable, ActionPlanCreatorsColumn), + sqlgraph.To(TrustCenterWatermarkConfigCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterWatermarkConfigCreatorsTable, TrustCenterWatermarkConfigCreatorsColumn), + ) +} +func newUserCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(UserCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, UserCreatorsTable, UserCreatorsColumn), + ) +} +func newUserSettingCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(UserSettingCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, UserSettingCreatorsTable, UserSettingCreatorsColumn), + ) +} +func newVendorRiskScoreCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(VendorRiskScoreCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, VendorRiskScoreCreatorsTable, VendorRiskScoreCreatorsColumn), + ) +} +func newVulnerabilityCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(VulnerabilityCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, VulnerabilityCreatorsTable, VulnerabilityCreatorsColumn), + ) +} +func newWorkflowAssignmentCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowAssignmentCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowAssignmentCreatorsTable, WorkflowAssignmentCreatorsColumn), + ) +} +func newWorkflowAssignmentTargetCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowAssignmentTargetCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowAssignmentTargetCreatorsTable, WorkflowAssignmentTargetCreatorsColumn), + ) +} +func newWorkflowDefinitionCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowDefinitionCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowDefinitionCreatorsTable, WorkflowDefinitionCreatorsColumn), + ) +} +func newWorkflowEventCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowEventCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowEventCreatorsTable, WorkflowEventCreatorsColumn), + ) +} +func newWorkflowInstanceCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowInstanceCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowInstanceCreatorsTable, WorkflowInstanceCreatorsColumn), + ) +} +func newWorkflowObjectRefCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowObjectRefCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowObjectRefCreatorsTable, WorkflowObjectRefCreatorsColumn), + ) +} +func newWorkflowProposalCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowProposalCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowProposalCreatorsTable, WorkflowProposalCreatorsColumn), + ) +} +func newCampaignsManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CampaignsManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignsManagerTable, CampaignsManagerColumn), + ) +} +func newComplianceManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ComplianceManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ComplianceManagerTable, ComplianceManagerColumn), + ) +} +func newGroupManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(GroupManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, GroupManagerTable, GroupManagerColumn), + ) +} +func newPoliciesManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(PoliciesManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, PoliciesManagerTable, PoliciesManagerColumn), + ) +} +func newRegistryManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RegistryManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RegistryManagerTable, RegistryManagerColumn), + ) +} +func newRiskManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RiskManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RiskManagerTable, RiskManagerColumn), + ) +} +func newTrustCenterManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(TrustCenterManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterManagerTable, TrustCenterManagerColumn), + ) +} +func newWorkflowsManagerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(WorkflowsManagerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowsManagerTable, WorkflowsManagerColumn), ) } func newParentStep() *sqlgraph.Step { diff --git a/internal/ent/generated/organization/where.go b/internal/ent/generated/organization/where.go index 45ad2012d7..5d976763b9 100644 --- a/internal/ent/generated/organization/where.go +++ b/internal/ent/generated/organization/where.go @@ -1117,12 +1117,1520 @@ func StripeCustomerIDContainsFold(v string) predicate.Organization { return predicate.Organization(sql.FieldContainsFold(FieldStripeCustomerID, v)) } +// HasActionPlanCreators applies the HasEdge predicate on the "action_plan_creators" edge. +func HasActionPlanCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ActionPlanCreatorsTable, ActionPlanCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasActionPlanCreatorsWith applies the HasEdge predicate on the "action_plan_creators" edge with a given conditions (other predicates). +func HasActionPlanCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newActionPlanCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAPITokenCreators applies the HasEdge predicate on the "api_token_creators" edge. +func HasAPITokenCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, APITokenCreatorsTable, APITokenCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAPITokenCreatorsWith applies the HasEdge predicate on the "api_token_creators" edge with a given conditions (other predicates). +func HasAPITokenCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAPITokenCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAssessmentCreators applies the HasEdge predicate on the "assessment_creators" edge. +func HasAssessmentCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AssessmentCreatorsTable, AssessmentCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAssessmentCreatorsWith applies the HasEdge predicate on the "assessment_creators" edge with a given conditions (other predicates). +func HasAssessmentCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAssessmentCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAssetCreators applies the HasEdge predicate on the "asset_creators" edge. +func HasAssetCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AssetCreatorsTable, AssetCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAssetCreatorsWith applies the HasEdge predicate on the "asset_creators" edge with a given conditions (other predicates). +func HasAssetCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAssetCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasCampaignCreators applies the HasEdge predicate on the "campaign_creators" edge. +func HasCampaignCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignCreatorsTable, CampaignCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasCampaignCreatorsWith applies the HasEdge predicate on the "campaign_creators" edge with a given conditions (other predicates). +func HasCampaignCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newCampaignCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasCampaignTargetCreators applies the HasEdge predicate on the "campaign_target_creators" edge. +func HasCampaignTargetCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignTargetCreatorsTable, CampaignTargetCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasCampaignTargetCreatorsWith applies the HasEdge predicate on the "campaign_target_creators" edge with a given conditions (other predicates). +func HasCampaignTargetCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newCampaignTargetCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasCheckResultCreators applies the HasEdge predicate on the "check_result_creators" edge. +func HasCheckResultCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CheckResultCreatorsTable, CheckResultCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasCheckResultCreatorsWith applies the HasEdge predicate on the "check_result_creators" edge with a given conditions (other predicates). +func HasCheckResultCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newCheckResultCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasContactCreators applies the HasEdge predicate on the "contact_creators" edge. +func HasContactCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ContactCreatorsTable, ContactCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasContactCreatorsWith applies the HasEdge predicate on the "contact_creators" edge with a given conditions (other predicates). +func HasContactCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newContactCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasControlCreators applies the HasEdge predicate on the "control_creators" edge. func HasControlCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ControlCreatorsTable, ControlCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, ControlCreatorsTable, ControlCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlCreatorsWith applies the HasEdge predicate on the "control_creators" edge with a given conditions (other predicates). +func HasControlCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newControlCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControlImplementationCreators applies the HasEdge predicate on the "control_implementation_creators" edge. +func HasControlImplementationCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlImplementationCreatorsTable, ControlImplementationCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlImplementationCreatorsWith applies the HasEdge predicate on the "control_implementation_creators" edge with a given conditions (other predicates). +func HasControlImplementationCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newControlImplementationCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControlObjectiveCreators applies the HasEdge predicate on the "control_objective_creators" edge. +func HasControlObjectiveCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlObjectiveCreatorsTable, ControlObjectiveCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlObjectiveCreatorsWith applies the HasEdge predicate on the "control_objective_creators" edge with a given conditions (other predicates). +func HasControlObjectiveCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newControlObjectiveCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasCustomTypeEnumCreators applies the HasEdge predicate on the "custom_type_enum_creators" edge. +func HasCustomTypeEnumCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, CustomTypeEnumCreatorsTable, CustomTypeEnumCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasCustomTypeEnumCreatorsWith applies the HasEdge predicate on the "custom_type_enum_creators" edge with a given conditions (other predicates). +func HasCustomTypeEnumCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newCustomTypeEnumCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasDiscussionCreators applies the HasEdge predicate on the "discussion_creators" edge. +func HasDiscussionCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, DiscussionCreatorsTable, DiscussionCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasDiscussionCreatorsWith applies the HasEdge predicate on the "discussion_creators" edge with a given conditions (other predicates). +func HasDiscussionCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newDiscussionCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEmailBrandingCreators applies the HasEdge predicate on the "email_branding_creators" edge. +func HasEmailBrandingCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EmailBrandingCreatorsTable, EmailBrandingCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEmailBrandingCreatorsWith applies the HasEdge predicate on the "email_branding_creators" edge with a given conditions (other predicates). +func HasEmailBrandingCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newEmailBrandingCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEmailTemplateCreators applies the HasEdge predicate on the "email_template_creators" edge. +func HasEmailTemplateCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EmailTemplateCreatorsTable, EmailTemplateCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEmailTemplateCreatorsWith applies the HasEdge predicate on the "email_template_creators" edge with a given conditions (other predicates). +func HasEmailTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newEmailTemplateCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEntityCreators applies the HasEdge predicate on the "entity_creators" edge. +func HasEntityCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EntityCreatorsTable, EntityCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEntityCreatorsWith applies the HasEdge predicate on the "entity_creators" edge with a given conditions (other predicates). +func HasEntityCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newEntityCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEntityTypeCreators applies the HasEdge predicate on the "entity_type_creators" edge. +func HasEntityTypeCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EntityTypeCreatorsTable, EntityTypeCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEntityTypeCreatorsWith applies the HasEdge predicate on the "entity_type_creators" edge with a given conditions (other predicates). +func HasEntityTypeCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newEntityTypeCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEvidenceCreators applies the HasEdge predicate on the "evidence_creators" edge. +func HasEvidenceCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, EvidenceCreatorsTable, EvidenceCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEvidenceCreatorsWith applies the HasEdge predicate on the "evidence_creators" edge with a given conditions (other predicates). +func HasEvidenceCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newEvidenceCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasExportCreators applies the HasEdge predicate on the "export_creators" edge. +func HasExportCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ExportCreatorsTable, ExportCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasExportCreatorsWith applies the HasEdge predicate on the "export_creators" edge with a given conditions (other predicates). +func HasExportCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newExportCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasFileCreators applies the HasEdge predicate on the "file_creators" edge. +func HasFileCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, FileCreatorsTable, FileCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasFileCreatorsWith applies the HasEdge predicate on the "file_creators" edge with a given conditions (other predicates). +func HasFileCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newFileCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasFindingCreators applies the HasEdge predicate on the "finding_creators" edge. +func HasFindingCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, FindingCreatorsTable, FindingCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasFindingCreatorsWith applies the HasEdge predicate on the "finding_creators" edge with a given conditions (other predicates). +func HasFindingCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newFindingCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasGroupCreators applies the HasEdge predicate on the "group_creators" edge. +func HasGroupCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, GroupCreatorsTable, GroupCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasGroupCreatorsWith applies the HasEdge predicate on the "group_creators" edge with a given conditions (other predicates). +func HasGroupCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newGroupCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasIdentityHolderCreators applies the HasEdge predicate on the "identity_holder_creators" edge. +func HasIdentityHolderCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IdentityHolderCreatorsTable, IdentityHolderCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasIdentityHolderCreatorsWith applies the HasEdge predicate on the "identity_holder_creators" edge with a given conditions (other predicates). +func HasIdentityHolderCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newIdentityHolderCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasIntegrationCreators applies the HasEdge predicate on the "integration_creators" edge. +func HasIntegrationCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IntegrationCreatorsTable, IntegrationCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasIntegrationCreatorsWith applies the HasEdge predicate on the "integration_creators" edge with a given conditions (other predicates). +func HasIntegrationCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newIntegrationCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasIntegrationWebhookCreators applies the HasEdge predicate on the "integration_webhook_creators" edge. +func HasIntegrationWebhookCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, IntegrationWebhookCreatorsTable, IntegrationWebhookCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasIntegrationWebhookCreatorsWith applies the HasEdge predicate on the "integration_webhook_creators" edge with a given conditions (other predicates). +func HasIntegrationWebhookCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newIntegrationWebhookCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasInternalPolicyCreators applies the HasEdge predicate on the "internal_policy_creators" edge. +func HasInternalPolicyCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, InternalPolicyCreatorsTable, InternalPolicyCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasInternalPolicyCreatorsWith applies the HasEdge predicate on the "internal_policy_creators" edge with a given conditions (other predicates). +func HasInternalPolicyCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newInternalPolicyCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasJobRunnerCreators applies the HasEdge predicate on the "job_runner_creators" edge. +func HasJobRunnerCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerCreatorsTable, JobRunnerCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasJobRunnerCreatorsWith applies the HasEdge predicate on the "job_runner_creators" edge with a given conditions (other predicates). +func HasJobRunnerCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newJobRunnerCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasJobRunnerRegistrationTokenCreators applies the HasEdge predicate on the "job_runner_registration_token_creators" edge. +func HasJobRunnerRegistrationTokenCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerRegistrationTokenCreatorsTable, JobRunnerRegistrationTokenCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasJobRunnerRegistrationTokenCreatorsWith applies the HasEdge predicate on the "job_runner_registration_token_creators" edge with a given conditions (other predicates). +func HasJobRunnerRegistrationTokenCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newJobRunnerRegistrationTokenCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasJobRunnerTokenCreators applies the HasEdge predicate on the "job_runner_token_creators" edge. +func HasJobRunnerTokenCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobRunnerTokenCreatorsTable, JobRunnerTokenCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasJobRunnerTokenCreatorsWith applies the HasEdge predicate on the "job_runner_token_creators" edge with a given conditions (other predicates). +func HasJobRunnerTokenCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newJobRunnerTokenCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasJobTemplateCreators applies the HasEdge predicate on the "job_template_creators" edge. +func HasJobTemplateCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, JobTemplateCreatorsTable, JobTemplateCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasJobTemplateCreatorsWith applies the HasEdge predicate on the "job_template_creators" edge with a given conditions (other predicates). +func HasJobTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newJobTemplateCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasMappedControlCreators applies the HasEdge predicate on the "mapped_control_creators" edge. +func HasMappedControlCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, MappedControlCreatorsTable, MappedControlCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasMappedControlCreatorsWith applies the HasEdge predicate on the "mapped_control_creators" edge with a given conditions (other predicates). +func HasMappedControlCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newMappedControlCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNarrativeCreators applies the HasEdge predicate on the "narrative_creators" edge. +func HasNarrativeCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, NarrativeCreatorsTable, NarrativeCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNarrativeCreatorsWith applies the HasEdge predicate on the "narrative_creators" edge with a given conditions (other predicates). +func HasNarrativeCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newNarrativeCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNoteCreators applies the HasEdge predicate on the "note_creators" edge. +func HasNoteCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, NoteCreatorsTable, NoteCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNoteCreatorsWith applies the HasEdge predicate on the "note_creators" edge with a given conditions (other predicates). +func HasNoteCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newNoteCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNotificationTemplateCreators applies the HasEdge predicate on the "notification_template_creators" edge. +func HasNotificationTemplateCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, NotificationTemplateCreatorsTable, NotificationTemplateCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNotificationTemplateCreatorsWith applies the HasEdge predicate on the "notification_template_creators" edge with a given conditions (other predicates). +func HasNotificationTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newNotificationTemplateCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasOrganizationCreators applies the HasEdge predicate on the "organization_creators" edge. +func HasOrganizationCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, OrganizationCreatorsTable, OrganizationCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasOrganizationCreatorsWith applies the HasEdge predicate on the "organization_creators" edge with a given conditions (other predicates). +func HasOrganizationCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newOrganizationCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasPlatformCreators applies the HasEdge predicate on the "platform_creators" edge. +func HasPlatformCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, PlatformCreatorsTable, PlatformCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasPlatformCreatorsWith applies the HasEdge predicate on the "platform_creators" edge with a given conditions (other predicates). +func HasPlatformCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newPlatformCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedureCreators applies the HasEdge predicate on the "procedure_creators" edge. +func HasProcedureCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProcedureCreatorsTable, ProcedureCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProcedureCreatorsWith applies the HasEdge predicate on the "procedure_creators" edge with a given conditions (other predicates). +func HasProcedureCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newProcedureCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProgramCreators applies the HasEdge predicate on the "program_creators" edge. +func HasProgramCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProgramCreatorsTable, ProgramCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProgramCreatorsWith applies the HasEdge predicate on the "program_creators" edge with a given conditions (other predicates). +func HasProgramCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newProgramCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRemediationCreators applies the HasEdge predicate on the "remediation_creators" edge. +func HasRemediationCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RemediationCreatorsTable, RemediationCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRemediationCreatorsWith applies the HasEdge predicate on the "remediation_creators" edge with a given conditions (other predicates). +func HasRemediationCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newRemediationCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasReviewCreators applies the HasEdge predicate on the "review_creators" edge. +func HasReviewCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ReviewCreatorsTable, ReviewCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasReviewCreatorsWith applies the HasEdge predicate on the "review_creators" edge with a given conditions (other predicates). +func HasReviewCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newReviewCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRiskCreators applies the HasEdge predicate on the "risk_creators" edge. +func HasRiskCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RiskCreatorsTable, RiskCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRiskCreatorsWith applies the HasEdge predicate on the "risk_creators" edge with a given conditions (other predicates). +func HasRiskCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newRiskCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasScanCreators applies the HasEdge predicate on the "scan_creators" edge. +func HasScanCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ScanCreatorsTable, ScanCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasScanCreatorsWith applies the HasEdge predicate on the "scan_creators" edge with a given conditions (other predicates). +func HasScanCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newScanCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasScheduledJobCreators applies the HasEdge predicate on the "scheduled_job_creators" edge. +func HasScheduledJobCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ScheduledJobCreatorsTable, ScheduledJobCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasScheduledJobCreatorsWith applies the HasEdge predicate on the "scheduled_job_creators" edge with a given conditions (other predicates). +func HasScheduledJobCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newScheduledJobCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasScheduledJobRunCreators applies the HasEdge predicate on the "scheduled_job_run_creators" edge. +func HasScheduledJobRunCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ScheduledJobRunCreatorsTable, ScheduledJobRunCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasScheduledJobRunCreatorsWith applies the HasEdge predicate on the "scheduled_job_run_creators" edge with a given conditions (other predicates). +func HasScheduledJobRunCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newScheduledJobRunCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasStandardCreators applies the HasEdge predicate on the "standard_creators" edge. +func HasStandardCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, StandardCreatorsTable, StandardCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasStandardCreatorsWith applies the HasEdge predicate on the "standard_creators" edge with a given conditions (other predicates). +func HasStandardCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newStandardCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasSubcontrolCreators applies the HasEdge predicate on the "subcontrol_creators" edge. +func HasSubcontrolCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolCreatorsTable, SubcontrolCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubcontrolCreatorsWith applies the HasEdge predicate on the "subcontrol_creators" edge with a given conditions (other predicates). +func HasSubcontrolCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newSubcontrolCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasSubprocessorCreators applies the HasEdge predicate on the "subprocessor_creators" edge. +func HasSubprocessorCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubprocessorCreatorsTable, SubprocessorCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubprocessorCreatorsWith applies the HasEdge predicate on the "subprocessor_creators" edge with a given conditions (other predicates). +func HasSubprocessorCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newSubprocessorCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasSubscriberCreators applies the HasEdge predicate on the "subscriber_creators" edge. +func HasSubscriberCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubscriberCreatorsTable, SubscriberCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubscriberCreatorsWith applies the HasEdge predicate on the "subscriber_creators" edge with a given conditions (other predicates). +func HasSubscriberCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newSubscriberCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasSystemDetailCreators applies the HasEdge predicate on the "system_detail_creators" edge. +func HasSystemDetailCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SystemDetailCreatorsTable, SystemDetailCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSystemDetailCreatorsWith applies the HasEdge predicate on the "system_detail_creators" edge with a given conditions (other predicates). +func HasSystemDetailCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newSystemDetailCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTagDefinitionCreators applies the HasEdge predicate on the "tag_definition_creators" edge. +func HasTagDefinitionCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TagDefinitionCreatorsTable, TagDefinitionCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasTagDefinitionCreatorsWith applies the HasEdge predicate on the "tag_definition_creators" edge with a given conditions (other predicates). +func HasTagDefinitionCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newTagDefinitionCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTaskCreators applies the HasEdge predicate on the "task_creators" edge. +func HasTaskCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TaskCreatorsTable, TaskCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasTaskCreatorsWith applies the HasEdge predicate on the "task_creators" edge with a given conditions (other predicates). +func HasTaskCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newTaskCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTemplateCreators applies the HasEdge predicate on the "template_creators" edge. +func HasTemplateCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TemplateCreatorsTable, TemplateCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasTemplateCreatorsWith applies the HasEdge predicate on the "template_creators" edge with a given conditions (other predicates). +func HasTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newTemplateCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTrustCenterCreators applies the HasEdge predicate on the "trust_center_creators" edge. +func HasTrustCenterCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterCreatorsTable, TrustCenterCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1131,10 +2639,10 @@ func HasControlCreators() predicate.Organization { }) } -// HasControlCreatorsWith applies the HasEdge predicate on the "control_creators" edge with a given conditions (other predicates). -func HasControlCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterCreatorsWith applies the HasEdge predicate on the "trust_center_creators" edge with a given conditions (other predicates). +func HasTrustCenterCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newControlCreatorsStep() + step := newTrustCenterCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1146,12 +2654,12 @@ func HasControlCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasControlImplementationCreators applies the HasEdge predicate on the "control_implementation_creators" edge. -func HasControlImplementationCreators() predicate.Organization { +// HasTrustCenterComplianceCreators applies the HasEdge predicate on the "trust_center_compliance_creators" edge. +func HasTrustCenterComplianceCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ControlImplementationCreatorsTable, ControlImplementationCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterComplianceCreatorsTable, TrustCenterComplianceCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1160,10 +2668,10 @@ func HasControlImplementationCreators() predicate.Organization { }) } -// HasControlImplementationCreatorsWith applies the HasEdge predicate on the "control_implementation_creators" edge with a given conditions (other predicates). -func HasControlImplementationCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterComplianceCreatorsWith applies the HasEdge predicate on the "trust_center_compliance_creators" edge with a given conditions (other predicates). +func HasTrustCenterComplianceCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newControlImplementationCreatorsStep() + step := newTrustCenterComplianceCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1175,12 +2683,12 @@ func HasControlImplementationCreatorsWith(preds ...predicate.Group) predicate.Or }) } -// HasControlObjectiveCreators applies the HasEdge predicate on the "control_objective_creators" edge. -func HasControlObjectiveCreators() predicate.Organization { +// HasTrustCenterDocCreators applies the HasEdge predicate on the "trust_center_doc_creators" edge. +func HasTrustCenterDocCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ControlObjectiveCreatorsTable, ControlObjectiveCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterDocCreatorsTable, TrustCenterDocCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1189,10 +2697,10 @@ func HasControlObjectiveCreators() predicate.Organization { }) } -// HasControlObjectiveCreatorsWith applies the HasEdge predicate on the "control_objective_creators" edge with a given conditions (other predicates). -func HasControlObjectiveCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterDocCreatorsWith applies the HasEdge predicate on the "trust_center_doc_creators" edge with a given conditions (other predicates). +func HasTrustCenterDocCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newControlObjectiveCreatorsStep() + step := newTrustCenterDocCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1204,12 +2712,12 @@ func HasControlObjectiveCreatorsWith(preds ...predicate.Group) predicate.Organiz }) } -// HasEvidenceCreators applies the HasEdge predicate on the "evidence_creators" edge. -func HasEvidenceCreators() predicate.Organization { +// HasTrustCenterEntityCreators applies the HasEdge predicate on the "trust_center_entity_creators" edge. +func HasTrustCenterEntityCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, EvidenceCreatorsTable, EvidenceCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterEntityCreatorsTable, TrustCenterEntityCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1218,10 +2726,10 @@ func HasEvidenceCreators() predicate.Organization { }) } -// HasEvidenceCreatorsWith applies the HasEdge predicate on the "evidence_creators" edge with a given conditions (other predicates). -func HasEvidenceCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterEntityCreatorsWith applies the HasEdge predicate on the "trust_center_entity_creators" edge with a given conditions (other predicates). +func HasTrustCenterEntityCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newEvidenceCreatorsStep() + step := newTrustCenterEntityCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1233,12 +2741,12 @@ func HasEvidenceCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasAssetCreators applies the HasEdge predicate on the "asset_creators" edge. -func HasAssetCreators() predicate.Organization { +// HasTrustCenterFaqCreators applies the HasEdge predicate on the "trust_center_faq_creators" edge. +func HasTrustCenterFaqCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, AssetCreatorsTable, AssetCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterFaqCreatorsTable, TrustCenterFaqCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1247,10 +2755,10 @@ func HasAssetCreators() predicate.Organization { }) } -// HasAssetCreatorsWith applies the HasEdge predicate on the "asset_creators" edge with a given conditions (other predicates). -func HasAssetCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterFaqCreatorsWith applies the HasEdge predicate on the "trust_center_faq_creators" edge with a given conditions (other predicates). +func HasTrustCenterFaqCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newAssetCreatorsStep() + step := newTrustCenterFaqCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1262,12 +2770,12 @@ func HasAssetCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasFindingCreators applies the HasEdge predicate on the "finding_creators" edge. -func HasFindingCreators() predicate.Organization { +// HasTrustCenterNdaRequestCreators applies the HasEdge predicate on the "trust_center_nda_request_creators" edge. +func HasTrustCenterNdaRequestCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, FindingCreatorsTable, FindingCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterNdaRequestCreatorsTable, TrustCenterNdaRequestCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1276,10 +2784,155 @@ func HasFindingCreators() predicate.Organization { }) } -// HasFindingCreatorsWith applies the HasEdge predicate on the "finding_creators" edge with a given conditions (other predicates). -func HasFindingCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterNdaRequestCreatorsWith applies the HasEdge predicate on the "trust_center_nda_request_creators" edge with a given conditions (other predicates). +func HasTrustCenterNdaRequestCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newFindingCreatorsStep() + step := newTrustCenterNdaRequestCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTrustCenterSubprocessorCreators applies the HasEdge predicate on the "trust_center_subprocessor_creators" edge. +func HasTrustCenterSubprocessorCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterSubprocessorCreatorsTable, TrustCenterSubprocessorCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasTrustCenterSubprocessorCreatorsWith applies the HasEdge predicate on the "trust_center_subprocessor_creators" edge with a given conditions (other predicates). +func HasTrustCenterSubprocessorCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newTrustCenterSubprocessorCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasTrustCenterWatermarkConfigCreators applies the HasEdge predicate on the "trust_center_watermark_config_creators" edge. +func HasTrustCenterWatermarkConfigCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterWatermarkConfigCreatorsTable, TrustCenterWatermarkConfigCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasTrustCenterWatermarkConfigCreatorsWith applies the HasEdge predicate on the "trust_center_watermark_config_creators" edge with a given conditions (other predicates). +func HasTrustCenterWatermarkConfigCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newTrustCenterWatermarkConfigCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasUserCreators applies the HasEdge predicate on the "user_creators" edge. +func HasUserCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, UserCreatorsTable, UserCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasUserCreatorsWith applies the HasEdge predicate on the "user_creators" edge with a given conditions (other predicates). +func HasUserCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newUserCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasUserSettingCreators applies the HasEdge predicate on the "user_setting_creators" edge. +func HasUserSettingCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, UserSettingCreatorsTable, UserSettingCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasUserSettingCreatorsWith applies the HasEdge predicate on the "user_setting_creators" edge with a given conditions (other predicates). +func HasUserSettingCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newUserSettingCreatorsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasVendorRiskScoreCreators applies the HasEdge predicate on the "vendor_risk_score_creators" edge. +func HasVendorRiskScoreCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, VendorRiskScoreCreatorsTable, VendorRiskScoreCreatorsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasVendorRiskScoreCreatorsWith applies the HasEdge predicate on the "vendor_risk_score_creators" edge with a given conditions (other predicates). +func HasVendorRiskScoreCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newVendorRiskScoreCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1320,12 +2973,12 @@ func HasVulnerabilityCreatorsWith(preds ...predicate.Group) predicate.Organizati }) } -// HasGroupCreators applies the HasEdge predicate on the "group_creators" edge. -func HasGroupCreators() predicate.Organization { +// HasWorkflowAssignmentCreators applies the HasEdge predicate on the "workflow_assignment_creators" edge. +func HasWorkflowAssignmentCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, GroupCreatorsTable, GroupCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowAssignmentCreatorsTable, WorkflowAssignmentCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1334,10 +2987,10 @@ func HasGroupCreators() predicate.Organization { }) } -// HasGroupCreatorsWith applies the HasEdge predicate on the "group_creators" edge with a given conditions (other predicates). -func HasGroupCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowAssignmentCreatorsWith applies the HasEdge predicate on the "workflow_assignment_creators" edge with a given conditions (other predicates). +func HasWorkflowAssignmentCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newGroupCreatorsStep() + step := newWorkflowAssignmentCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1349,12 +3002,12 @@ func HasGroupCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasInternalPolicyCreators applies the HasEdge predicate on the "internal_policy_creators" edge. -func HasInternalPolicyCreators() predicate.Organization { +// HasWorkflowAssignmentTargetCreators applies the HasEdge predicate on the "workflow_assignment_target_creators" edge. +func HasWorkflowAssignmentTargetCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, InternalPolicyCreatorsTable, InternalPolicyCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowAssignmentTargetCreatorsTable, WorkflowAssignmentTargetCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1363,10 +3016,10 @@ func HasInternalPolicyCreators() predicate.Organization { }) } -// HasInternalPolicyCreatorsWith applies the HasEdge predicate on the "internal_policy_creators" edge with a given conditions (other predicates). -func HasInternalPolicyCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowAssignmentTargetCreatorsWith applies the HasEdge predicate on the "workflow_assignment_target_creators" edge with a given conditions (other predicates). +func HasWorkflowAssignmentTargetCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newInternalPolicyCreatorsStep() + step := newWorkflowAssignmentTargetCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1378,12 +3031,12 @@ func HasInternalPolicyCreatorsWith(preds ...predicate.Group) predicate.Organizat }) } -// HasMappedControlCreators applies the HasEdge predicate on the "mapped_control_creators" edge. -func HasMappedControlCreators() predicate.Organization { +// HasWorkflowDefinitionCreators applies the HasEdge predicate on the "workflow_definition_creators" edge. +func HasWorkflowDefinitionCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, MappedControlCreatorsTable, MappedControlCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowDefinitionCreatorsTable, WorkflowDefinitionCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1392,10 +3045,10 @@ func HasMappedControlCreators() predicate.Organization { }) } -// HasMappedControlCreatorsWith applies the HasEdge predicate on the "mapped_control_creators" edge with a given conditions (other predicates). -func HasMappedControlCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowDefinitionCreatorsWith applies the HasEdge predicate on the "workflow_definition_creators" edge with a given conditions (other predicates). +func HasWorkflowDefinitionCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newMappedControlCreatorsStep() + step := newWorkflowDefinitionCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1407,12 +3060,12 @@ func HasMappedControlCreatorsWith(preds ...predicate.Group) predicate.Organizati }) } -// HasNarrativeCreators applies the HasEdge predicate on the "narrative_creators" edge. -func HasNarrativeCreators() predicate.Organization { +// HasWorkflowEventCreators applies the HasEdge predicate on the "workflow_event_creators" edge. +func HasWorkflowEventCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, NarrativeCreatorsTable, NarrativeCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowEventCreatorsTable, WorkflowEventCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1421,10 +3074,10 @@ func HasNarrativeCreators() predicate.Organization { }) } -// HasNarrativeCreatorsWith applies the HasEdge predicate on the "narrative_creators" edge with a given conditions (other predicates). -func HasNarrativeCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowEventCreatorsWith applies the HasEdge predicate on the "workflow_event_creators" edge with a given conditions (other predicates). +func HasWorkflowEventCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newNarrativeCreatorsStep() + step := newWorkflowEventCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1436,12 +3089,12 @@ func HasNarrativeCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasProcedureCreators applies the HasEdge predicate on the "procedure_creators" edge. -func HasProcedureCreators() predicate.Organization { +// HasWorkflowInstanceCreators applies the HasEdge predicate on the "workflow_instance_creators" edge. +func HasWorkflowInstanceCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ProcedureCreatorsTable, ProcedureCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowInstanceCreatorsTable, WorkflowInstanceCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1450,10 +3103,10 @@ func HasProcedureCreators() predicate.Organization { }) } -// HasProcedureCreatorsWith applies the HasEdge predicate on the "procedure_creators" edge with a given conditions (other predicates). -func HasProcedureCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowInstanceCreatorsWith applies the HasEdge predicate on the "workflow_instance_creators" edge with a given conditions (other predicates). +func HasWorkflowInstanceCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newProcedureCreatorsStep() + step := newWorkflowInstanceCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1465,12 +3118,12 @@ func HasProcedureCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasProgramCreators applies the HasEdge predicate on the "program_creators" edge. -func HasProgramCreators() predicate.Organization { +// HasWorkflowObjectRefCreators applies the HasEdge predicate on the "workflow_object_ref_creators" edge. +func HasWorkflowObjectRefCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ProgramCreatorsTable, ProgramCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowObjectRefCreatorsTable, WorkflowObjectRefCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1479,10 +3132,10 @@ func HasProgramCreators() predicate.Organization { }) } -// HasProgramCreatorsWith applies the HasEdge predicate on the "program_creators" edge with a given conditions (other predicates). -func HasProgramCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowObjectRefCreatorsWith applies the HasEdge predicate on the "workflow_object_ref_creators" edge with a given conditions (other predicates). +func HasWorkflowObjectRefCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newProgramCreatorsStep() + step := newWorkflowObjectRefCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1494,12 +3147,12 @@ func HasProgramCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasRiskCreators applies the HasEdge predicate on the "risk_creators" edge. -func HasRiskCreators() predicate.Organization { +// HasWorkflowProposalCreators applies the HasEdge predicate on the "workflow_proposal_creators" edge. +func HasWorkflowProposalCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, RiskCreatorsTable, RiskCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowProposalCreatorsTable, WorkflowProposalCreatorsColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1508,10 +3161,10 @@ func HasRiskCreators() predicate.Organization { }) } -// HasRiskCreatorsWith applies the HasEdge predicate on the "risk_creators" edge with a given conditions (other predicates). -func HasRiskCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowProposalCreatorsWith applies the HasEdge predicate on the "workflow_proposal_creators" edge with a given conditions (other predicates). +func HasWorkflowProposalCreatorsWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newRiskCreatorsStep() + step := newWorkflowProposalCreatorsStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1523,12 +3176,12 @@ func HasRiskCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasIdentityHolderCreators applies the HasEdge predicate on the "identity_holder_creators" edge. -func HasIdentityHolderCreators() predicate.Organization { +// HasCampaignsManager applies the HasEdge predicate on the "campaigns_manager" edge. +func HasCampaignsManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, IdentityHolderCreatorsTable, IdentityHolderCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, CampaignsManagerTable, CampaignsManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1537,10 +3190,10 @@ func HasIdentityHolderCreators() predicate.Organization { }) } -// HasIdentityHolderCreatorsWith applies the HasEdge predicate on the "identity_holder_creators" edge with a given conditions (other predicates). -func HasIdentityHolderCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasCampaignsManagerWith applies the HasEdge predicate on the "campaigns_manager" edge with a given conditions (other predicates). +func HasCampaignsManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newIdentityHolderCreatorsStep() + step := newCampaignsManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1552,12 +3205,12 @@ func HasIdentityHolderCreatorsWith(preds ...predicate.Group) predicate.Organizat }) } -// HasScheduledJobCreators applies the HasEdge predicate on the "scheduled_job_creators" edge. -func HasScheduledJobCreators() predicate.Organization { +// HasComplianceManager applies the HasEdge predicate on the "compliance_manager" edge. +func HasComplianceManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ScheduledJobCreatorsTable, ScheduledJobCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, ComplianceManagerTable, ComplianceManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1566,10 +3219,10 @@ func HasScheduledJobCreators() predicate.Organization { }) } -// HasScheduledJobCreatorsWith applies the HasEdge predicate on the "scheduled_job_creators" edge with a given conditions (other predicates). -func HasScheduledJobCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasComplianceManagerWith applies the HasEdge predicate on the "compliance_manager" edge with a given conditions (other predicates). +func HasComplianceManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newScheduledJobCreatorsStep() + step := newComplianceManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1581,12 +3234,12 @@ func HasScheduledJobCreatorsWith(preds ...predicate.Group) predicate.Organizatio }) } -// HasStandardCreators applies the HasEdge predicate on the "standard_creators" edge. -func HasStandardCreators() predicate.Organization { +// HasGroupManager applies the HasEdge predicate on the "group_manager" edge. +func HasGroupManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, StandardCreatorsTable, StandardCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, GroupManagerTable, GroupManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1595,10 +3248,10 @@ func HasStandardCreators() predicate.Organization { }) } -// HasStandardCreatorsWith applies the HasEdge predicate on the "standard_creators" edge with a given conditions (other predicates). -func HasStandardCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasGroupManagerWith applies the HasEdge predicate on the "group_manager" edge with a given conditions (other predicates). +func HasGroupManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newStandardCreatorsStep() + step := newGroupManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1610,12 +3263,12 @@ func HasStandardCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasTemplateCreators applies the HasEdge predicate on the "template_creators" edge. -func HasTemplateCreators() predicate.Organization { +// HasPoliciesManager applies the HasEdge predicate on the "policies_manager" edge. +func HasPoliciesManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, TemplateCreatorsTable, TemplateCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, PoliciesManagerTable, PoliciesManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1624,10 +3277,10 @@ func HasTemplateCreators() predicate.Organization { }) } -// HasTemplateCreatorsWith applies the HasEdge predicate on the "template_creators" edge with a given conditions (other predicates). -func HasTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasPoliciesManagerWith applies the HasEdge predicate on the "policies_manager" edge with a given conditions (other predicates). +func HasPoliciesManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newTemplateCreatorsStep() + step := newPoliciesManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1639,12 +3292,12 @@ func HasTemplateCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } -// HasSubprocessorCreators applies the HasEdge predicate on the "subprocessor_creators" edge. -func HasSubprocessorCreators() predicate.Organization { +// HasRegistryManager applies the HasEdge predicate on the "registry_manager" edge. +func HasRegistryManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, SubprocessorCreatorsTable, SubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, RegistryManagerTable, RegistryManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1653,10 +3306,10 @@ func HasSubprocessorCreators() predicate.Organization { }) } -// HasSubprocessorCreatorsWith applies the HasEdge predicate on the "subprocessor_creators" edge with a given conditions (other predicates). -func HasSubprocessorCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasRegistryManagerWith applies the HasEdge predicate on the "registry_manager" edge with a given conditions (other predicates). +func HasRegistryManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newSubprocessorCreatorsStep() + step := newRegistryManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1668,12 +3321,12 @@ func HasSubprocessorCreatorsWith(preds ...predicate.Group) predicate.Organizatio }) } -// HasTrustCenterDocCreators applies the HasEdge predicate on the "trust_center_doc_creators" edge. -func HasTrustCenterDocCreators() predicate.Organization { +// HasRiskManager applies the HasEdge predicate on the "risk_manager" edge. +func HasRiskManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterDocCreatorsTable, TrustCenterDocCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, RiskManagerTable, RiskManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1682,10 +3335,10 @@ func HasTrustCenterDocCreators() predicate.Organization { }) } -// HasTrustCenterDocCreatorsWith applies the HasEdge predicate on the "trust_center_doc_creators" edge with a given conditions (other predicates). -func HasTrustCenterDocCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasRiskManagerWith applies the HasEdge predicate on the "risk_manager" edge with a given conditions (other predicates). +func HasRiskManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newTrustCenterDocCreatorsStep() + step := newRiskManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1697,12 +3350,12 @@ func HasTrustCenterDocCreatorsWith(preds ...predicate.Group) predicate.Organizat }) } -// HasTrustCenterSubprocessorCreators applies the HasEdge predicate on the "trust_center_subprocessor_creators" edge. -func HasTrustCenterSubprocessorCreators() predicate.Organization { +// HasTrustCenterManager applies the HasEdge predicate on the "trust_center_manager" edge. +func HasTrustCenterManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterSubprocessorCreatorsTable, TrustCenterSubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, TrustCenterManagerTable, TrustCenterManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1711,10 +3364,10 @@ func HasTrustCenterSubprocessorCreators() predicate.Organization { }) } -// HasTrustCenterSubprocessorCreatorsWith applies the HasEdge predicate on the "trust_center_subprocessor_creators" edge with a given conditions (other predicates). -func HasTrustCenterSubprocessorCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasTrustCenterManagerWith applies the HasEdge predicate on the "trust_center_manager" edge with a given conditions (other predicates). +func HasTrustCenterManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newTrustCenterSubprocessorCreatorsStep() + step := newTrustCenterManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group @@ -1726,12 +3379,12 @@ func HasTrustCenterSubprocessorCreatorsWith(preds ...predicate.Group) predicate. }) } -// HasActionPlanCreators applies the HasEdge predicate on the "action_plan_creators" edge. -func HasActionPlanCreators() predicate.Organization { +// HasWorkflowsManager applies the HasEdge predicate on the "workflows_manager" edge. +func HasWorkflowsManager() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, ActionPlanCreatorsTable, ActionPlanCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, WorkflowsManagerTable, WorkflowsManagerColumn), ) schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group @@ -1740,10 +3393,10 @@ func HasActionPlanCreators() predicate.Organization { }) } -// HasActionPlanCreatorsWith applies the HasEdge predicate on the "action_plan_creators" edge with a given conditions (other predicates). -func HasActionPlanCreatorsWith(preds ...predicate.Group) predicate.Organization { +// HasWorkflowsManagerWith applies the HasEdge predicate on the "workflows_manager" edge with a given conditions (other predicates). +func HasWorkflowsManagerWith(preds ...predicate.Group) predicate.Organization { return predicate.Organization(func(s *sql.Selector) { - step := newActionPlanCreatorsStep() + step := newWorkflowsManagerStep() schemaConfig := internal.SchemaConfigFromContext(s.Context()) step.To.Schema = schemaConfig.Group step.Edge.Schema = schemaConfig.Group diff --git a/internal/ent/generated/organization_create.go b/internal/ent/generated/organization_create.go index 40ac03c236..878bc1d279 100644 --- a/internal/ent/generated/organization_create.go +++ b/internal/ent/generated/organization_create.go @@ -342,64 +342,49 @@ func (_c *OrganizationCreate) SetNillableID(v *string) *OrganizationCreate { return _c } -// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddControlCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlCreatorIDs(ids...) - return _c -} - -// AddControlCreators adds the "control_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddControlCreators(v ...*Group) *OrganizationCreate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _c.AddControlCreatorIDs(ids...) -} - -// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddControlImplementationCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlImplementationCreatorIDs(ids...) +// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddActionPlanCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddActionPlanCreatorIDs(ids...) return _c } -// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddControlImplementationCreators(v ...*Group) *OrganizationCreate { +// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddActionPlanCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddControlImplementationCreatorIDs(ids...) + return _c.AddActionPlanCreatorIDs(ids...) } -// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlObjectiveCreatorIDs(ids...) +// AddAPITokenCreatorIDs adds the "api_token_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddAPITokenCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAPITokenCreatorIDs(ids...) return _c } -// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddControlObjectiveCreators(v ...*Group) *OrganizationCreate { +// AddAPITokenCreators adds the "api_token_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddAPITokenCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddControlObjectiveCreatorIDs(ids...) + return _c.AddAPITokenCreatorIDs(ids...) } -// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddEvidenceCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEvidenceCreatorIDs(ids...) +// AddAssessmentCreatorIDs adds the "assessment_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddAssessmentCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAssessmentCreatorIDs(ids...) return _c } -// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddEvidenceCreators(v ...*Group) *OrganizationCreate { +// AddAssessmentCreators adds the "assessment_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddAssessmentCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEvidenceCreatorIDs(ids...) + return _c.AddAssessmentCreatorIDs(ids...) } // AddAssetCreatorIDs adds the "asset_creators" edge to the Group entity by IDs. @@ -417,1820 +402,3659 @@ func (_c *OrganizationCreate) AddAssetCreators(v ...*Group) *OrganizationCreate return _c.AddAssetCreatorIDs(ids...) } -// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddFindingCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddFindingCreatorIDs(ids...) +// AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddCampaignCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCampaignCreatorIDs(ids...) return _c } -// AddFindingCreators adds the "finding_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddFindingCreators(v ...*Group) *OrganizationCreate { +// AddCampaignCreators adds the "campaign_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddCampaignCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddFindingCreatorIDs(ids...) + return _c.AddCampaignCreatorIDs(ids...) } -// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddVulnerabilityCreatorIDs(ids...) +// AddCampaignTargetCreatorIDs adds the "campaign_target_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddCampaignTargetCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCampaignTargetCreatorIDs(ids...) return _c } -// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddVulnerabilityCreators(v ...*Group) *OrganizationCreate { +// AddCampaignTargetCreators adds the "campaign_target_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddCampaignTargetCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddVulnerabilityCreatorIDs(ids...) + return _c.AddCampaignTargetCreatorIDs(ids...) } -// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddGroupCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddGroupCreatorIDs(ids...) +// AddCheckResultCreatorIDs adds the "check_result_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddCheckResultCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCheckResultCreatorIDs(ids...) return _c } -// AddGroupCreators adds the "group_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddGroupCreators(v ...*Group) *OrganizationCreate { +// AddCheckResultCreators adds the "check_result_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddCheckResultCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddGroupCreatorIDs(ids...) + return _c.AddCheckResultCreatorIDs(ids...) } -// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddInternalPolicyCreatorIDs(ids...) +// AddContactCreatorIDs adds the "contact_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddContactCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddContactCreatorIDs(ids...) return _c } -// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddInternalPolicyCreators(v ...*Group) *OrganizationCreate { +// AddContactCreators adds the "contact_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddContactCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddInternalPolicyCreatorIDs(ids...) + return _c.AddContactCreatorIDs(ids...) } -// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddMappedControlCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddMappedControlCreatorIDs(ids...) +// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddControlCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlCreatorIDs(ids...) return _c } -// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddMappedControlCreators(v ...*Group) *OrganizationCreate { +// AddControlCreators adds the "control_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddControlCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddMappedControlCreatorIDs(ids...) + return _c.AddControlCreatorIDs(ids...) } -// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddNarrativeCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNarrativeCreatorIDs(ids...) +// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddControlImplementationCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlImplementationCreatorIDs(ids...) return _c } -// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddNarrativeCreators(v ...*Group) *OrganizationCreate { +// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddControlImplementationCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNarrativeCreatorIDs(ids...) + return _c.AddControlImplementationCreatorIDs(ids...) } -// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddProcedureCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddProcedureCreatorIDs(ids...) +// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlObjectiveCreatorIDs(ids...) return _c } -// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddProcedureCreators(v ...*Group) *OrganizationCreate { +// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddControlObjectiveCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddProcedureCreatorIDs(ids...) + return _c.AddControlObjectiveCreatorIDs(ids...) } -// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddProgramCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddProgramCreatorIDs(ids...) +// AddCustomTypeEnumCreatorIDs adds the "custom_type_enum_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddCustomTypeEnumCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCustomTypeEnumCreatorIDs(ids...) return _c } -// AddProgramCreators adds the "program_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddProgramCreators(v ...*Group) *OrganizationCreate { +// AddCustomTypeEnumCreators adds the "custom_type_enum_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddCustomTypeEnumCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddProgramCreatorIDs(ids...) + return _c.AddCustomTypeEnumCreatorIDs(ids...) } -// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddRiskCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddRiskCreatorIDs(ids...) +// AddDiscussionCreatorIDs adds the "discussion_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddDiscussionCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDiscussionCreatorIDs(ids...) return _c } -// AddRiskCreators adds the "risk_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddRiskCreators(v ...*Group) *OrganizationCreate { +// AddDiscussionCreators adds the "discussion_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddDiscussionCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddRiskCreatorIDs(ids...) + return _c.AddDiscussionCreatorIDs(ids...) } -// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddIdentityHolderCreatorIDs(ids...) +// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEmailBrandingCreatorIDs(ids...) return _c } -// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddIdentityHolderCreators(v ...*Group) *OrganizationCreate { +// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddEmailBrandingCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddIdentityHolderCreatorIDs(ids...) + return _c.AddEmailBrandingCreatorIDs(ids...) } -// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddScheduledJobCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddScheduledJobCreatorIDs(ids...) +// AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEmailTemplateCreatorIDs(ids...) return _c } -// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddScheduledJobCreators(v ...*Group) *OrganizationCreate { +// AddEmailTemplateCreators adds the "email_template_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddEmailTemplateCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddScheduledJobCreatorIDs(ids...) + return _c.AddEmailTemplateCreatorIDs(ids...) } -// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddStandardCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddStandardCreatorIDs(ids...) +// AddEntityCreatorIDs adds the "entity_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddEntityCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEntityCreatorIDs(ids...) return _c } -// AddStandardCreators adds the "standard_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddStandardCreators(v ...*Group) *OrganizationCreate { +// AddEntityCreators adds the "entity_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddEntityCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddStandardCreatorIDs(ids...) + return _c.AddEntityCreatorIDs(ids...) } -// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddTemplateCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTemplateCreatorIDs(ids...) +// AddEntityTypeCreatorIDs adds the "entity_type_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddEntityTypeCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEntityTypeCreatorIDs(ids...) return _c } -// AddTemplateCreators adds the "template_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddTemplateCreators(v ...*Group) *OrganizationCreate { +// AddEntityTypeCreators adds the "entity_type_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddEntityTypeCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTemplateCreatorIDs(ids...) + return _c.AddEntityTypeCreatorIDs(ids...) } -// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddSubprocessorCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSubprocessorCreatorIDs(ids...) +// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddEvidenceCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEvidenceCreatorIDs(ids...) return _c } -// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddSubprocessorCreators(v ...*Group) *OrganizationCreate { +// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddEvidenceCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSubprocessorCreatorIDs(ids...) + return _c.AddEvidenceCreatorIDs(ids...) } -// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTrustCenterDocCreatorIDs(ids...) +// AddExportCreatorIDs adds the "export_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddExportCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddExportCreatorIDs(ids...) return _c } -// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddTrustCenterDocCreators(v ...*Group) *OrganizationCreate { +// AddExportCreators adds the "export_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddExportCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTrustCenterDocCreatorIDs(ids...) + return _c.AddExportCreatorIDs(ids...) } -// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) +// AddFileCreatorIDs adds the "file_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddFileCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddFileCreatorIDs(ids...) return _c } -// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationCreate { +// AddFileCreators adds the "file_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddFileCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTrustCenterSubprocessorCreatorIDs(ids...) + return _c.AddFileCreatorIDs(ids...) } -// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddActionPlanCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddActionPlanCreatorIDs(ids...) +// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddFindingCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddFindingCreatorIDs(ids...) return _c } -// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddActionPlanCreators(v ...*Group) *OrganizationCreate { +// AddFindingCreators adds the "finding_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddFindingCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddActionPlanCreatorIDs(ids...) + return _c.AddFindingCreatorIDs(ids...) } -// SetParentID sets the "parent" edge to the Organization entity by ID. -func (_c *OrganizationCreate) SetParentID(id string) *OrganizationCreate { - _c.mutation.SetParentID(id) +// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddGroupCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddGroupCreatorIDs(ids...) return _c } -// SetNillableParentID sets the "parent" edge to the Organization entity by ID if the given value is not nil. -func (_c *OrganizationCreate) SetNillableParentID(id *string) *OrganizationCreate { - if id != nil { - _c = _c.SetParentID(*id) +// AddGroupCreators adds the "group_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddGroupCreators(v ...*Group) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _c -} - -// SetParent sets the "parent" edge to the Organization entity. -func (_c *OrganizationCreate) SetParent(v *Organization) *OrganizationCreate { - return _c.SetParentID(v.ID) + return _c.AddGroupCreatorIDs(ids...) } -// AddChildIDs adds the "children" edge to the Organization entity by IDs. -func (_c *OrganizationCreate) AddChildIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddChildIDs(ids...) +// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIdentityHolderCreatorIDs(ids...) return _c } -// AddChildren adds the "children" edges to the Organization entity. -func (_c *OrganizationCreate) AddChildren(v ...*Organization) *OrganizationCreate { +// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddIdentityHolderCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddChildIDs(ids...) + return _c.AddIdentityHolderCreatorIDs(ids...) } -// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. -func (_c *OrganizationCreate) SetSettingID(id string) *OrganizationCreate { - _c.mutation.SetSettingID(id) +// AddIntegrationCreatorIDs adds the "integration_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddIntegrationCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIntegrationCreatorIDs(ids...) return _c } -// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. -func (_c *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate { - if id != nil { - _c = _c.SetSettingID(*id) +// AddIntegrationCreators adds the "integration_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddIntegrationCreators(v ...*Group) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _c + return _c.AddIntegrationCreatorIDs(ids...) } -// SetSetting sets the "setting" edge to the OrganizationSetting entity. -func (_c *OrganizationCreate) SetSetting(v *OrganizationSetting) *OrganizationCreate { - return _c.SetSettingID(v.ID) -} - -// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. -func (_c *OrganizationCreate) AddPersonalAccessTokenIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddPersonalAccessTokenIDs(ids...) +// AddIntegrationWebhookCreatorIDs adds the "integration_webhook_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddIntegrationWebhookCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIntegrationWebhookCreatorIDs(ids...) return _c } -// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. -func (_c *OrganizationCreate) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationCreate { +// AddIntegrationWebhookCreators adds the "integration_webhook_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddIntegrationWebhookCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddPersonalAccessTokenIDs(ids...) + return _c.AddIntegrationWebhookCreatorIDs(ids...) } -// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. -func (_c *OrganizationCreate) AddAPITokenIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddAPITokenIDs(ids...) +// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddInternalPolicyCreatorIDs(ids...) return _c } -// AddAPITokens adds the "api_tokens" edges to the APIToken entity. -func (_c *OrganizationCreate) AddAPITokens(v ...*APIToken) *OrganizationCreate { +// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddInternalPolicyCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddAPITokenIDs(ids...) + return _c.AddInternalPolicyCreatorIDs(ids...) } -// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. -func (_c *OrganizationCreate) AddEmailTemplateIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEmailTemplateIDs(ids...) +// AddJobRunnerCreatorIDs adds the "job_runner_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerCreatorIDs(ids...) return _c } -// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. -func (_c *OrganizationCreate) AddEmailTemplates(v ...*EmailTemplate) *OrganizationCreate { +// AddJobRunnerCreators adds the "job_runner_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddJobRunnerCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEmailTemplateIDs(ids...) + return _c.AddJobRunnerCreatorIDs(ids...) } -// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. -func (_c *OrganizationCreate) AddIntegrationWebhookIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddIntegrationWebhookIDs(ids...) +// AddJobRunnerRegistrationTokenCreatorIDs adds the "job_runner_registration_token_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerRegistrationTokenCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerRegistrationTokenCreatorIDs(ids...) return _c } -// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. -func (_c *OrganizationCreate) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationCreate { +// AddJobRunnerRegistrationTokenCreators adds the "job_runner_registration_token_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddJobRunnerRegistrationTokenCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddIntegrationWebhookIDs(ids...) + return _c.AddJobRunnerRegistrationTokenCreatorIDs(ids...) } -// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. -func (_c *OrganizationCreate) AddIntegrationRunIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddIntegrationRunIDs(ids...) +// AddJobRunnerTokenCreatorIDs adds the "job_runner_token_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerTokenCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerTokenCreatorIDs(ids...) return _c } -// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. -func (_c *OrganizationCreate) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationCreate { +// AddJobRunnerTokenCreators adds the "job_runner_token_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddJobRunnerTokenCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddIntegrationRunIDs(ids...) + return _c.AddJobRunnerTokenCreatorIDs(ids...) } -// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. -func (_c *OrganizationCreate) AddNotificationPreferenceIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNotificationPreferenceIDs(ids...) +// AddJobTemplateCreatorIDs adds the "job_template_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddJobTemplateCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobTemplateCreatorIDs(ids...) return _c } -// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. -func (_c *OrganizationCreate) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationCreate { +// AddJobTemplateCreators adds the "job_template_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddJobTemplateCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNotificationPreferenceIDs(ids...) + return _c.AddJobTemplateCreatorIDs(ids...) } -// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. -func (_c *OrganizationCreate) AddNotificationTemplateIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNotificationTemplateIDs(ids...) +// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddMappedControlCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddMappedControlCreatorIDs(ids...) return _c } -// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. -func (_c *OrganizationCreate) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationCreate { +// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddMappedControlCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNotificationTemplateIDs(ids...) + return _c.AddMappedControlCreatorIDs(ids...) } -// AddUserIDs adds the "users" edge to the User entity by IDs. -func (_c *OrganizationCreate) AddUserIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddUserIDs(ids...) +// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddNarrativeCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNarrativeCreatorIDs(ids...) return _c } -// AddUsers adds the "users" edges to the User entity. -func (_c *OrganizationCreate) AddUsers(v ...*User) *OrganizationCreate { +// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddNarrativeCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddUserIDs(ids...) + return _c.AddNarrativeCreatorIDs(ids...) } -// AddFileIDs adds the "files" edge to the File entity by IDs. -func (_c *OrganizationCreate) AddFileIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddFileIDs(ids...) +// AddNoteCreatorIDs adds the "note_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddNoteCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNoteCreatorIDs(ids...) return _c } -// AddFiles adds the "files" edges to the File entity. -func (_c *OrganizationCreate) AddFiles(v ...*File) *OrganizationCreate { +// AddNoteCreators adds the "note_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddNoteCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddFileIDs(ids...) + return _c.AddNoteCreatorIDs(ids...) } -// AddEventIDs adds the "events" edge to the Event entity by IDs. -func (_c *OrganizationCreate) AddEventIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEventIDs(ids...) +// AddNotificationTemplateCreatorIDs adds the "notification_template_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddNotificationTemplateCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNotificationTemplateCreatorIDs(ids...) return _c } -// AddEvents adds the "events" edges to the Event entity. -func (_c *OrganizationCreate) AddEvents(v ...*Event) *OrganizationCreate { +// AddNotificationTemplateCreators adds the "notification_template_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddNotificationTemplateCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEventIDs(ids...) + return _c.AddNotificationTemplateCreatorIDs(ids...) } -// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. -func (_c *OrganizationCreate) AddSecretIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSecretIDs(ids...) +// AddOrganizationCreatorIDs adds the "organization_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddOrganizationCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddOrganizationCreatorIDs(ids...) return _c } -// AddSecrets adds the "secrets" edges to the Hush entity. -func (_c *OrganizationCreate) AddSecrets(v ...*Hush) *OrganizationCreate { +// AddOrganizationCreators adds the "organization_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddOrganizationCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSecretIDs(ids...) + return _c.AddOrganizationCreatorIDs(ids...) } -// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. -func (_c *OrganizationCreate) SetAvatarFileID(id string) *OrganizationCreate { - _c.mutation.SetAvatarFileID(id) +// AddPlatformCreatorIDs adds the "platform_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddPlatformCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddPlatformCreatorIDs(ids...) return _c } -// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. -func (_c *OrganizationCreate) SetNillableAvatarFileID(id *string) *OrganizationCreate { - if id != nil { - _c = _c.SetAvatarFileID(*id) +// AddPlatformCreators adds the "platform_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddPlatformCreators(v ...*Group) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _c -} - -// SetAvatarFile sets the "avatar_file" edge to the File entity. -func (_c *OrganizationCreate) SetAvatarFile(v *File) *OrganizationCreate { - return _c.SetAvatarFileID(v.ID) + return _c.AddPlatformCreatorIDs(ids...) } -// AddGroupIDs adds the "groups" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddGroupIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddGroupIDs(ids...) +// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddProcedureCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddProcedureCreatorIDs(ids...) return _c } -// AddGroups adds the "groups" edges to the Group entity. -func (_c *OrganizationCreate) AddGroups(v ...*Group) *OrganizationCreate { +// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddProcedureCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddGroupIDs(ids...) + return _c.AddProcedureCreatorIDs(ids...) } -// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. -func (_c *OrganizationCreate) AddTemplateIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTemplateIDs(ids...) +// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddProgramCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddProgramCreatorIDs(ids...) return _c } -// AddTemplates adds the "templates" edges to the Template entity. -func (_c *OrganizationCreate) AddTemplates(v ...*Template) *OrganizationCreate { +// AddProgramCreators adds the "program_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddProgramCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTemplateIDs(ids...) + return _c.AddProgramCreatorIDs(ids...) } -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. -func (_c *OrganizationCreate) AddIntegrationIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddIntegrationIDs(ids...) +// AddRemediationCreatorIDs adds the "remediation_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddRemediationCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRemediationCreatorIDs(ids...) return _c } -// AddIntegrations adds the "integrations" edges to the Integration entity. -func (_c *OrganizationCreate) AddIntegrations(v ...*Integration) *OrganizationCreate { +// AddRemediationCreators adds the "remediation_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddRemediationCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddIntegrationIDs(ids...) + return _c.AddRemediationCreatorIDs(ids...) } -// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. -func (_c *OrganizationCreate) AddDocumentIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDocumentIDs(ids...) +// AddReviewCreatorIDs adds the "review_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddReviewCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddReviewCreatorIDs(ids...) return _c } -// AddDocuments adds the "documents" edges to the DocumentData entity. -func (_c *OrganizationCreate) AddDocuments(v ...*DocumentData) *OrganizationCreate { +// AddReviewCreators adds the "review_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddReviewCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDocumentIDs(ids...) + return _c.AddReviewCreatorIDs(ids...) } -// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. -func (_c *OrganizationCreate) AddOrgSubscriptionIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddOrgSubscriptionIDs(ids...) +// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddRiskCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRiskCreatorIDs(ids...) return _c } -// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. -func (_c *OrganizationCreate) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationCreate { +// AddRiskCreators adds the "risk_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddRiskCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddOrgSubscriptionIDs(ids...) + return _c.AddRiskCreatorIDs(ids...) } -// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. -func (_c *OrganizationCreate) AddOrgProductIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddOrgProductIDs(ids...) +// AddScanCreatorIDs adds the "scan_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddScanCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScanCreatorIDs(ids...) return _c } -// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. -func (_c *OrganizationCreate) AddOrgProducts(v ...*OrgProduct) *OrganizationCreate { +// AddScanCreators adds the "scan_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddScanCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddOrgProductIDs(ids...) + return _c.AddScanCreatorIDs(ids...) } -// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. -func (_c *OrganizationCreate) AddOrgPriceIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddOrgPriceIDs(ids...) +// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddScheduledJobCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScheduledJobCreatorIDs(ids...) return _c } -// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. -func (_c *OrganizationCreate) AddOrgPrices(v ...*OrgPrice) *OrganizationCreate { +// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddScheduledJobCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddOrgPriceIDs(ids...) + return _c.AddScheduledJobCreatorIDs(ids...) } -// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. -func (_c *OrganizationCreate) AddOrgModuleIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddOrgModuleIDs(ids...) +// AddScheduledJobRunCreatorIDs adds the "scheduled_job_run_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddScheduledJobRunCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScheduledJobRunCreatorIDs(ids...) return _c } -// AddOrgModules adds the "org_modules" edges to the OrgModule entity. -func (_c *OrganizationCreate) AddOrgModules(v ...*OrgModule) *OrganizationCreate { +// AddScheduledJobRunCreators adds the "scheduled_job_run_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddScheduledJobRunCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddOrgModuleIDs(ids...) + return _c.AddScheduledJobRunCreatorIDs(ids...) } -// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. -func (_c *OrganizationCreate) AddInviteIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddInviteIDs(ids...) +// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddStandardCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddStandardCreatorIDs(ids...) return _c } -// AddInvites adds the "invites" edges to the Invite entity. -func (_c *OrganizationCreate) AddInvites(v ...*Invite) *OrganizationCreate { +// AddStandardCreators adds the "standard_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddStandardCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddInviteIDs(ids...) + return _c.AddStandardCreatorIDs(ids...) } -// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. -func (_c *OrganizationCreate) AddSubscriberIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSubscriberIDs(ids...) +// AddSubcontrolCreatorIDs adds the "subcontrol_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddSubcontrolCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubcontrolCreatorIDs(ids...) return _c } -// AddSubscribers adds the "subscribers" edges to the Subscriber entity. -func (_c *OrganizationCreate) AddSubscribers(v ...*Subscriber) *OrganizationCreate { +// AddSubcontrolCreators adds the "subcontrol_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddSubcontrolCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSubscriberIDs(ids...) + return _c.AddSubcontrolCreatorIDs(ids...) } -// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. -func (_c *OrganizationCreate) AddEntityIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEntityIDs(ids...) +// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddSubprocessorCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubprocessorCreatorIDs(ids...) return _c } -// AddEntities adds the "entities" edges to the Entity entity. -func (_c *OrganizationCreate) AddEntities(v ...*Entity) *OrganizationCreate { +// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddSubprocessorCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEntityIDs(ids...) + return _c.AddSubprocessorCreatorIDs(ids...) } -// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. -func (_c *OrganizationCreate) AddPlatformIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddPlatformIDs(ids...) +// AddSubscriberCreatorIDs adds the "subscriber_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddSubscriberCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubscriberCreatorIDs(ids...) return _c } -// AddPlatforms adds the "platforms" edges to the Platform entity. -func (_c *OrganizationCreate) AddPlatforms(v ...*Platform) *OrganizationCreate { +// AddSubscriberCreators adds the "subscriber_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddSubscriberCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddPlatformIDs(ids...) + return _c.AddSubscriberCreatorIDs(ids...) } -// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. -func (_c *OrganizationCreate) AddIdentityHolderIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddIdentityHolderIDs(ids...) +// AddSystemDetailCreatorIDs adds the "system_detail_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddSystemDetailCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSystemDetailCreatorIDs(ids...) return _c } -// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. -func (_c *OrganizationCreate) AddIdentityHolders(v ...*IdentityHolder) *OrganizationCreate { +// AddSystemDetailCreators adds the "system_detail_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddSystemDetailCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddIdentityHolderIDs(ids...) + return _c.AddSystemDetailCreatorIDs(ids...) } -// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. -func (_c *OrganizationCreate) AddCampaignIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddCampaignIDs(ids...) +// AddTagDefinitionCreatorIDs adds the "tag_definition_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTagDefinitionCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTagDefinitionCreatorIDs(ids...) return _c } -// AddCampaigns adds the "campaigns" edges to the Campaign entity. -func (_c *OrganizationCreate) AddCampaigns(v ...*Campaign) *OrganizationCreate { +// AddTagDefinitionCreators adds the "tag_definition_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTagDefinitionCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddCampaignIDs(ids...) + return _c.AddTagDefinitionCreatorIDs(ids...) } -// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. -func (_c *OrganizationCreate) AddCampaignTargetIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddCampaignTargetIDs(ids...) +// AddTaskCreatorIDs adds the "task_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTaskCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTaskCreatorIDs(ids...) return _c } -// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. -func (_c *OrganizationCreate) AddCampaignTargets(v ...*CampaignTarget) *OrganizationCreate { +// AddTaskCreators adds the "task_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTaskCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddCampaignTargetIDs(ids...) + return _c.AddTaskCreatorIDs(ids...) } -// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. -func (_c *OrganizationCreate) AddEntityTypeIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEntityTypeIDs(ids...) +// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTemplateCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTemplateCreatorIDs(ids...) return _c } -// AddEntityTypes adds the "entity_types" edges to the EntityType entity. -func (_c *OrganizationCreate) AddEntityTypes(v ...*EntityType) *OrganizationCreate { +// AddTemplateCreators adds the "template_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTemplateCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEntityTypeIDs(ids...) + return _c.AddTemplateCreatorIDs(ids...) } -// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. -func (_c *OrganizationCreate) AddContactIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddContactIDs(ids...) +// AddTrustCenterCreatorIDs adds the "trust_center_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterCreatorIDs(ids...) return _c } -// AddContacts adds the "contacts" edges to the Contact entity. -func (_c *OrganizationCreate) AddContacts(v ...*Contact) *OrganizationCreate { +// AddTrustCenterCreators adds the "trust_center_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddContactIDs(ids...) + return _c.AddTrustCenterCreatorIDs(ids...) } -// AddNoteIDs adds the "notes" edge to the Note entity by IDs. -func (_c *OrganizationCreate) AddNoteIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNoteIDs(ids...) +// AddTrustCenterComplianceCreatorIDs adds the "trust_center_compliance_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterComplianceCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterComplianceCreatorIDs(ids...) return _c } -// AddNotes adds the "notes" edges to the Note entity. -func (_c *OrganizationCreate) AddNotes(v ...*Note) *OrganizationCreate { +// AddTrustCenterComplianceCreators adds the "trust_center_compliance_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterComplianceCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNoteIDs(ids...) + return _c.AddTrustCenterComplianceCreatorIDs(ids...) } -// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. -func (_c *OrganizationCreate) AddTaskIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTaskIDs(ids...) +// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterDocCreatorIDs(ids...) return _c } -// AddTasks adds the "tasks" edges to the Task entity. -func (_c *OrganizationCreate) AddTasks(v ...*Task) *OrganizationCreate { +// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterDocCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTaskIDs(ids...) + return _c.AddTrustCenterDocCreatorIDs(ids...) } -// AddProgramIDs adds the "programs" edge to the Program entity by IDs. -func (_c *OrganizationCreate) AddProgramIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddProgramIDs(ids...) +// AddTrustCenterEntityCreatorIDs adds the "trust_center_entity_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterEntityCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterEntityCreatorIDs(ids...) return _c } -// AddPrograms adds the "programs" edges to the Program entity. -func (_c *OrganizationCreate) AddPrograms(v ...*Program) *OrganizationCreate { +// AddTrustCenterEntityCreators adds the "trust_center_entity_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterEntityCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddProgramIDs(ids...) + return _c.AddTrustCenterEntityCreatorIDs(ids...) } -// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. -func (_c *OrganizationCreate) AddSystemDetailIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSystemDetailIDs(ids...) +// AddTrustCenterFaqCreatorIDs adds the "trust_center_faq_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterFaqCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterFaqCreatorIDs(ids...) return _c } -// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. -func (_c *OrganizationCreate) AddSystemDetails(v ...*SystemDetail) *OrganizationCreate { +// AddTrustCenterFaqCreators adds the "trust_center_faq_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterFaqCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSystemDetailIDs(ids...) + return _c.AddTrustCenterFaqCreatorIDs(ids...) } -// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. -func (_c *OrganizationCreate) AddProcedureIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddProcedureIDs(ids...) +// AddTrustCenterNdaRequestCreatorIDs adds the "trust_center_nda_request_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterNdaRequestCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterNdaRequestCreatorIDs(ids...) return _c } -// AddProcedures adds the "procedures" edges to the Procedure entity. -func (_c *OrganizationCreate) AddProcedures(v ...*Procedure) *OrganizationCreate { +// AddTrustCenterNdaRequestCreators adds the "trust_center_nda_request_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterNdaRequestCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddProcedureIDs(ids...) + return _c.AddTrustCenterNdaRequestCreatorIDs(ids...) } -// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. -func (_c *OrganizationCreate) AddInternalPolicyIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddInternalPolicyIDs(ids...) +// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) return _c } -// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. -func (_c *OrganizationCreate) AddInternalPolicies(v ...*InternalPolicy) *OrganizationCreate { +// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddInternalPolicyIDs(ids...) + return _c.AddTrustCenterSubprocessorCreatorIDs(ids...) } -// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. -func (_c *OrganizationCreate) AddRiskIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddRiskIDs(ids...) +// AddTrustCenterWatermarkConfigCreatorIDs adds the "trust_center_watermark_config_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterWatermarkConfigCreatorIDs(ids...) return _c } -// AddRisks adds the "risks" edges to the Risk entity. -func (_c *OrganizationCreate) AddRisks(v ...*Risk) *OrganizationCreate { +// AddTrustCenterWatermarkConfigCreators adds the "trust_center_watermark_config_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddRiskIDs(ids...) + return _c.AddTrustCenterWatermarkConfigCreatorIDs(ids...) } -// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. -func (_c *OrganizationCreate) AddControlObjectiveIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlObjectiveIDs(ids...) +// AddUserCreatorIDs adds the "user_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddUserCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddUserCreatorIDs(ids...) return _c } -// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. -func (_c *OrganizationCreate) AddControlObjectives(v ...*ControlObjective) *OrganizationCreate { +// AddUserCreators adds the "user_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddUserCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddControlObjectiveIDs(ids...) + return _c.AddUserCreatorIDs(ids...) } -// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. -func (_c *OrganizationCreate) AddNarrativeIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNarrativeIDs(ids...) +// AddUserSettingCreatorIDs adds the "user_setting_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddUserSettingCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddUserSettingCreatorIDs(ids...) return _c } -// AddNarratives adds the "narratives" edges to the Narrative entity. -func (_c *OrganizationCreate) AddNarratives(v ...*Narrative) *OrganizationCreate { +// AddUserSettingCreators adds the "user_setting_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddUserSettingCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNarrativeIDs(ids...) + return _c.AddUserSettingCreatorIDs(ids...) } -// AddControlIDs adds the "controls" edge to the Control entity by IDs. -func (_c *OrganizationCreate) AddControlIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlIDs(ids...) +// AddVendorRiskScoreCreatorIDs adds the "vendor_risk_score_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddVendorRiskScoreCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddVendorRiskScoreCreatorIDs(ids...) return _c } -// AddControls adds the "controls" edges to the Control entity. -func (_c *OrganizationCreate) AddControls(v ...*Control) *OrganizationCreate { +// AddVendorRiskScoreCreators adds the "vendor_risk_score_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddVendorRiskScoreCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddControlIDs(ids...) + return _c.AddVendorRiskScoreCreatorIDs(ids...) } -// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. -func (_c *OrganizationCreate) AddSubcontrolIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSubcontrolIDs(ids...) +// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddVulnerabilityCreatorIDs(ids...) return _c } -// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. -func (_c *OrganizationCreate) AddSubcontrols(v ...*Subcontrol) *OrganizationCreate { +// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddVulnerabilityCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSubcontrolIDs(ids...) + return _c.AddVulnerabilityCreatorIDs(ids...) } -// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. -func (_c *OrganizationCreate) AddControlImplementationIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddControlImplementationIDs(ids...) +// AddWorkflowAssignmentCreatorIDs adds the "workflow_assignment_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowAssignmentCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowAssignmentCreatorIDs(ids...) return _c } -// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. -func (_c *OrganizationCreate) AddControlImplementations(v ...*ControlImplementation) *OrganizationCreate { +// AddWorkflowAssignmentCreators adds the "workflow_assignment_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowAssignmentCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddControlImplementationIDs(ids...) + return _c.AddWorkflowAssignmentCreatorIDs(ids...) } -// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. -func (_c *OrganizationCreate) AddMappedControlIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddMappedControlIDs(ids...) +// AddWorkflowAssignmentTargetCreatorIDs adds the "workflow_assignment_target_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowAssignmentTargetCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowAssignmentTargetCreatorIDs(ids...) return _c } -// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. -func (_c *OrganizationCreate) AddMappedControls(v ...*MappedControl) *OrganizationCreate { +// AddWorkflowAssignmentTargetCreators adds the "workflow_assignment_target_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowAssignmentTargetCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddMappedControlIDs(ids...) + return _c.AddWorkflowAssignmentTargetCreatorIDs(ids...) } -// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. -func (_c *OrganizationCreate) AddEvidenceIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEvidenceIDs(ids...) +// AddWorkflowDefinitionCreatorIDs adds the "workflow_definition_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowDefinitionCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowDefinitionCreatorIDs(ids...) return _c } -// AddEvidence adds the "evidence" edges to the Evidence entity. -func (_c *OrganizationCreate) AddEvidence(v ...*Evidence) *OrganizationCreate { +// AddWorkflowDefinitionCreators adds the "workflow_definition_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowDefinitionCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddEvidenceIDs(ids...) + return _c.AddWorkflowDefinitionCreatorIDs(ids...) } -// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. -func (_c *OrganizationCreate) AddStandardIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddStandardIDs(ids...) +// AddWorkflowEventCreatorIDs adds the "workflow_event_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowEventCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowEventCreatorIDs(ids...) return _c } -// AddStandards adds the "standards" edges to the Standard entity. -func (_c *OrganizationCreate) AddStandards(v ...*Standard) *OrganizationCreate { +// AddWorkflowEventCreators adds the "workflow_event_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowEventCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddStandardIDs(ids...) + return _c.AddWorkflowEventCreatorIDs(ids...) } -// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. -func (_c *OrganizationCreate) AddActionPlanIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddActionPlanIDs(ids...) +// AddWorkflowInstanceCreatorIDs adds the "workflow_instance_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowInstanceCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowInstanceCreatorIDs(ids...) return _c } -// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. -func (_c *OrganizationCreate) AddActionPlans(v ...*ActionPlan) *OrganizationCreate { +// AddWorkflowInstanceCreators adds the "workflow_instance_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowInstanceCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddActionPlanIDs(ids...) + return _c.AddWorkflowInstanceCreatorIDs(ids...) } -// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. -func (_c *OrganizationCreate) AddCustomDomainIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddCustomDomainIDs(ids...) +// AddWorkflowObjectRefCreatorIDs adds the "workflow_object_ref_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowObjectRefCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowObjectRefCreatorIDs(ids...) return _c } -// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. -func (_c *OrganizationCreate) AddCustomDomains(v ...*CustomDomain) *OrganizationCreate { +// AddWorkflowObjectRefCreators adds the "workflow_object_ref_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowObjectRefCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddCustomDomainIDs(ids...) + return _c.AddWorkflowObjectRefCreatorIDs(ids...) } -// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. -func (_c *OrganizationCreate) AddJobRunnerIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddJobRunnerIDs(ids...) +// AddWorkflowProposalCreatorIDs adds the "workflow_proposal_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowProposalCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowProposalCreatorIDs(ids...) return _c } -// AddJobRunners adds the "job_runners" edges to the JobRunner entity. -func (_c *OrganizationCreate) AddJobRunners(v ...*JobRunner) *OrganizationCreate { +// AddWorkflowProposalCreators adds the "workflow_proposal_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowProposalCreators(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddJobRunnerIDs(ids...) + return _c.AddWorkflowProposalCreatorIDs(ids...) } -// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. -func (_c *OrganizationCreate) AddJobRunnerTokenIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddJobRunnerTokenIDs(ids...) +// AddCampaignsManagerIDs adds the "campaigns_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddCampaignsManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCampaignsManagerIDs(ids...) return _c } -// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. -func (_c *OrganizationCreate) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationCreate { +// AddCampaignsManager adds the "campaigns_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddCampaignsManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddJobRunnerTokenIDs(ids...) + return _c.AddCampaignsManagerIDs(ids...) } -// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. -func (_c *OrganizationCreate) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddJobRunnerRegistrationTokenIDs(ids...) +// AddComplianceManagerIDs adds the "compliance_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddComplianceManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddComplianceManagerIDs(ids...) return _c } -// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. -func (_c *OrganizationCreate) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationCreate { +// AddComplianceManager adds the "compliance_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddComplianceManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddJobRunnerRegistrationTokenIDs(ids...) + return _c.AddComplianceManagerIDs(ids...) } -// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. -func (_c *OrganizationCreate) AddDNSVerificationIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDNSVerificationIDs(ids...) +// AddGroupManagerIDs adds the "group_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddGroupManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddGroupManagerIDs(ids...) return _c } -// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. -func (_c *OrganizationCreate) AddDNSVerifications(v ...*DNSVerification) *OrganizationCreate { +// AddGroupManager adds the "group_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddGroupManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDNSVerificationIDs(ids...) + return _c.AddGroupManagerIDs(ids...) } -// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. -func (_c *OrganizationCreate) AddJobTemplateIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddJobTemplateIDs(ids...) +// AddPoliciesManagerIDs adds the "policies_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddPoliciesManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddPoliciesManagerIDs(ids...) return _c } -// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. -func (_c *OrganizationCreate) AddJobTemplates(v ...*JobTemplate) *OrganizationCreate { +// AddPoliciesManager adds the "policies_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddPoliciesManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddJobTemplateIDs(ids...) + return _c.AddPoliciesManagerIDs(ids...) } -// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. -func (_c *OrganizationCreate) AddScheduledJobIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddScheduledJobIDs(ids...) +// AddRegistryManagerIDs adds the "registry_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddRegistryManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRegistryManagerIDs(ids...) return _c } -// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. -func (_c *OrganizationCreate) AddScheduledJobs(v ...*ScheduledJob) *OrganizationCreate { +// AddRegistryManager adds the "registry_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddRegistryManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddScheduledJobIDs(ids...) + return _c.AddRegistryManagerIDs(ids...) } -// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. -func (_c *OrganizationCreate) AddJobResultIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddJobResultIDs(ids...) +// AddRiskManagerIDs adds the "risk_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddRiskManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRiskManagerIDs(ids...) return _c } -// AddJobResults adds the "job_results" edges to the JobResult entity. -func (_c *OrganizationCreate) AddJobResults(v ...*JobResult) *OrganizationCreate { +// AddRiskManager adds the "risk_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddRiskManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddJobResultIDs(ids...) + return _c.AddRiskManagerIDs(ids...) } -// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. -func (_c *OrganizationCreate) AddScheduledJobRunIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddScheduledJobRunIDs(ids...) +// AddTrustCenterManagerIDs adds the "trust_center_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterManagerIDs(ids...) return _c } -// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. -func (_c *OrganizationCreate) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationCreate { +// AddTrustCenterManager adds the "trust_center_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddTrustCenterManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddScheduledJobRunIDs(ids...) + return _c.AddTrustCenterManagerIDs(ids...) } -// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. -func (_c *OrganizationCreate) AddTrustCenterIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTrustCenterIDs(ids...) +// AddWorkflowsManagerIDs adds the "workflows_manager" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddWorkflowsManagerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowsManagerIDs(ids...) return _c } -// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. -func (_c *OrganizationCreate) AddTrustCenters(v ...*TrustCenter) *OrganizationCreate { +// AddWorkflowsManager adds the "workflows_manager" edges to the Group entity. +func (_c *OrganizationCreate) AddWorkflowsManager(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTrustCenterIDs(ids...) + return _c.AddWorkflowsManagerIDs(ids...) } -// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. -func (_c *OrganizationCreate) AddAssetIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddAssetIDs(ids...) +// SetParentID sets the "parent" edge to the Organization entity by ID. +func (_c *OrganizationCreate) SetParentID(id string) *OrganizationCreate { + _c.mutation.SetParentID(id) return _c } -// AddAssets adds the "assets" edges to the Asset entity. -func (_c *OrganizationCreate) AddAssets(v ...*Asset) *OrganizationCreate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// SetNillableParentID sets the "parent" edge to the Organization entity by ID if the given value is not nil. +func (_c *OrganizationCreate) SetNillableParentID(id *string) *OrganizationCreate { + if id != nil { + _c = _c.SetParentID(*id) } - return _c.AddAssetIDs(ids...) + return _c } -// AddScanIDs adds the "scans" edge to the Scan entity by IDs. -func (_c *OrganizationCreate) AddScanIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddScanIDs(ids...) +// SetParent sets the "parent" edge to the Organization entity. +func (_c *OrganizationCreate) SetParent(v *Organization) *OrganizationCreate { + return _c.SetParentID(v.ID) +} + +// AddChildIDs adds the "children" edge to the Organization entity by IDs. +func (_c *OrganizationCreate) AddChildIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddChildIDs(ids...) return _c } -// AddScans adds the "scans" edges to the Scan entity. -func (_c *OrganizationCreate) AddScans(v ...*Scan) *OrganizationCreate { +// AddChildren adds the "children" edges to the Organization entity. +func (_c *OrganizationCreate) AddChildren(v ...*Organization) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddScanIDs(ids...) + return _c.AddChildIDs(ids...) } -// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. -func (_c *OrganizationCreate) AddSLADefinitionIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSLADefinitionIDs(ids...) +// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. +func (_c *OrganizationCreate) SetSettingID(id string) *OrganizationCreate { + _c.mutation.SetSettingID(id) return _c } -// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. -func (_c *OrganizationCreate) AddSLADefinitions(v ...*SLADefinition) *OrganizationCreate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. +func (_c *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate { + if id != nil { + _c = _c.SetSettingID(*id) } - return _c.AddSLADefinitionIDs(ids...) + return _c } -// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. -func (_c *OrganizationCreate) AddSubprocessorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddSubprocessorIDs(ids...) +// SetSetting sets the "setting" edge to the OrganizationSetting entity. +func (_c *OrganizationCreate) SetSetting(v *OrganizationSetting) *OrganizationCreate { + return _c.SetSettingID(v.ID) +} + +// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. +func (_c *OrganizationCreate) AddPersonalAccessTokenIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddPersonalAccessTokenIDs(ids...) return _c } -// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. -func (_c *OrganizationCreate) AddSubprocessors(v ...*Subprocessor) *OrganizationCreate { +// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. +func (_c *OrganizationCreate) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddSubprocessorIDs(ids...) + return _c.AddPersonalAccessTokenIDs(ids...) } -// AddExportIDs adds the "exports" edge to the Export entity by IDs. -func (_c *OrganizationCreate) AddExportIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddExportIDs(ids...) +// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. +func (_c *OrganizationCreate) AddAPITokenIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAPITokenIDs(ids...) return _c } -// AddExports adds the "exports" edges to the Export entity. -func (_c *OrganizationCreate) AddExports(v ...*Export) *OrganizationCreate { +// AddAPITokens adds the "api_tokens" edges to the APIToken entity. +func (_c *OrganizationCreate) AddAPITokens(v ...*APIToken) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddExportIDs(ids...) + return _c.AddAPITokenIDs(ids...) } -// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. -func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTrustCenterWatermarkConfigIDs(ids...) +// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. +func (_c *OrganizationCreate) AddEmailTemplateIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEmailTemplateIDs(ids...) return _c } -// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. -func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationCreate { +// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. +func (_c *OrganizationCreate) AddEmailTemplates(v ...*EmailTemplate) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTrustCenterWatermarkConfigIDs(ids...) + return _c.AddEmailTemplateIDs(ids...) } -// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. -func (_c *OrganizationCreate) AddImpersonationEventIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddImpersonationEventIDs(ids...) +// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. +func (_c *OrganizationCreate) AddIntegrationWebhookIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIntegrationWebhookIDs(ids...) return _c } -// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. -func (_c *OrganizationCreate) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationCreate { +// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. +func (_c *OrganizationCreate) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddImpersonationEventIDs(ids...) + return _c.AddIntegrationWebhookIDs(ids...) } -// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. -func (_c *OrganizationCreate) AddAssessmentIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddAssessmentIDs(ids...) +// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. +func (_c *OrganizationCreate) AddIntegrationRunIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIntegrationRunIDs(ids...) return _c } -// AddAssessments adds the "assessments" edges to the Assessment entity. -func (_c *OrganizationCreate) AddAssessments(v ...*Assessment) *OrganizationCreate { +// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. +func (_c *OrganizationCreate) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddAssessmentIDs(ids...) + return _c.AddIntegrationRunIDs(ids...) } -// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. -func (_c *OrganizationCreate) AddAssessmentResponseIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddAssessmentResponseIDs(ids...) +// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. +func (_c *OrganizationCreate) AddNotificationPreferenceIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNotificationPreferenceIDs(ids...) return _c } -// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. -func (_c *OrganizationCreate) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationCreate { +// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. +func (_c *OrganizationCreate) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddAssessmentResponseIDs(ids...) + return _c.AddNotificationPreferenceIDs(ids...) } -// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. -func (_c *OrganizationCreate) AddCustomTypeEnumIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddCustomTypeEnumIDs(ids...) +// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. +func (_c *OrganizationCreate) AddNotificationTemplateIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNotificationTemplateIDs(ids...) return _c } -// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. -func (_c *OrganizationCreate) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationCreate { +// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. +func (_c *OrganizationCreate) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddCustomTypeEnumIDs(ids...) + return _c.AddNotificationTemplateIDs(ids...) } -// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. -func (_c *OrganizationCreate) AddTagDefinitionIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddTagDefinitionIDs(ids...) +// AddUserIDs adds the "users" edge to the User entity by IDs. +func (_c *OrganizationCreate) AddUserIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddUserIDs(ids...) return _c } -// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. -func (_c *OrganizationCreate) AddTagDefinitions(v ...*TagDefinition) *OrganizationCreate { +// AddUsers adds the "users" edges to the User entity. +func (_c *OrganizationCreate) AddUsers(v ...*User) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddTagDefinitionIDs(ids...) + return _c.AddUserIDs(ids...) } -// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. -func (_c *OrganizationCreate) AddRemediationIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddRemediationIDs(ids...) +// AddFileIDs adds the "files" edge to the File entity by IDs. +func (_c *OrganizationCreate) AddFileIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddFileIDs(ids...) return _c } -// AddRemediations adds the "remediations" edges to the Remediation entity. -func (_c *OrganizationCreate) AddRemediations(v ...*Remediation) *OrganizationCreate { +// AddFiles adds the "files" edges to the File entity. +func (_c *OrganizationCreate) AddFiles(v ...*File) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddRemediationIDs(ids...) + return _c.AddFileIDs(ids...) } -// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. -func (_c *OrganizationCreate) AddFindingIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddFindingIDs(ids...) +// AddEventIDs adds the "events" edge to the Event entity by IDs. +func (_c *OrganizationCreate) AddEventIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEventIDs(ids...) return _c } -// AddFindings adds the "findings" edges to the Finding entity. -func (_c *OrganizationCreate) AddFindings(v ...*Finding) *OrganizationCreate { +// AddEvents adds the "events" edges to the Event entity. +func (_c *OrganizationCreate) AddEvents(v ...*Event) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddFindingIDs(ids...) + return _c.AddEventIDs(ids...) } -// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. -func (_c *OrganizationCreate) AddReviewIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddReviewIDs(ids...) +// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. +func (_c *OrganizationCreate) AddSecretIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSecretIDs(ids...) return _c } -// AddReviews adds the "reviews" edges to the Review entity. -func (_c *OrganizationCreate) AddReviews(v ...*Review) *OrganizationCreate { +// AddSecrets adds the "secrets" edges to the Hush entity. +func (_c *OrganizationCreate) AddSecrets(v ...*Hush) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddReviewIDs(ids...) + return _c.AddSecretIDs(ids...) } -// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. -func (_c *OrganizationCreate) AddVulnerabilityIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddVulnerabilityIDs(ids...) +// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. +func (_c *OrganizationCreate) SetAvatarFileID(id string) *OrganizationCreate { + _c.mutation.SetAvatarFileID(id) return _c } -// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. -func (_c *OrganizationCreate) AddVulnerabilities(v ...*Vulnerability) *OrganizationCreate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. +func (_c *OrganizationCreate) SetNillableAvatarFileID(id *string) *OrganizationCreate { + if id != nil { + _c = _c.SetAvatarFileID(*id) } - return _c.AddVulnerabilityIDs(ids...) + return _c } -// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. -func (_c *OrganizationCreate) AddNotificationIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddNotificationIDs(ids...) +// SetAvatarFile sets the "avatar_file" edge to the File entity. +func (_c *OrganizationCreate) SetAvatarFile(v *File) *OrganizationCreate { + return _c.SetAvatarFileID(v.ID) +} + +// AddGroupIDs adds the "groups" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddGroupIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddGroupIDs(ids...) return _c } -// AddNotifications adds the "notifications" edges to the Notification entity. -func (_c *OrganizationCreate) AddNotifications(v ...*Notification) *OrganizationCreate { +// AddGroups adds the "groups" edges to the Group entity. +func (_c *OrganizationCreate) AddGroups(v ...*Group) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddNotificationIDs(ids...) + return _c.AddGroupIDs(ids...) } -// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. -func (_c *OrganizationCreate) AddWorkflowDefinitionIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowDefinitionIDs(ids...) +// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. +func (_c *OrganizationCreate) AddTemplateIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTemplateIDs(ids...) return _c } -// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. -func (_c *OrganizationCreate) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationCreate { +// AddTemplates adds the "templates" edges to the Template entity. +func (_c *OrganizationCreate) AddTemplates(v ...*Template) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowDefinitionIDs(ids...) + return _c.AddTemplateIDs(ids...) } -// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. -func (_c *OrganizationCreate) AddWorkflowInstanceIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowInstanceIDs(ids...) +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. +func (_c *OrganizationCreate) AddIntegrationIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIntegrationIDs(ids...) return _c } -// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. -func (_c *OrganizationCreate) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationCreate { +// AddIntegrations adds the "integrations" edges to the Integration entity. +func (_c *OrganizationCreate) AddIntegrations(v ...*Integration) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowInstanceIDs(ids...) + return _c.AddIntegrationIDs(ids...) } -// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. -func (_c *OrganizationCreate) AddWorkflowEventIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowEventIDs(ids...) +// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. +func (_c *OrganizationCreate) AddDocumentIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDocumentIDs(ids...) return _c } -// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. -func (_c *OrganizationCreate) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationCreate { +// AddDocuments adds the "documents" edges to the DocumentData entity. +func (_c *OrganizationCreate) AddDocuments(v ...*DocumentData) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowEventIDs(ids...) + return _c.AddDocumentIDs(ids...) } -// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. -func (_c *OrganizationCreate) AddWorkflowAssignmentIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowAssignmentIDs(ids...) +// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. +func (_c *OrganizationCreate) AddOrgSubscriptionIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddOrgSubscriptionIDs(ids...) return _c } -// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. -func (_c *OrganizationCreate) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationCreate { +// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. +func (_c *OrganizationCreate) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowAssignmentIDs(ids...) + return _c.AddOrgSubscriptionIDs(ids...) } -// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. -func (_c *OrganizationCreate) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowAssignmentTargetIDs(ids...) +// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. +func (_c *OrganizationCreate) AddOrgProductIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddOrgProductIDs(ids...) return _c } -// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. -func (_c *OrganizationCreate) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationCreate { +// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. +func (_c *OrganizationCreate) AddOrgProducts(v ...*OrgProduct) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowAssignmentTargetIDs(ids...) + return _c.AddOrgProductIDs(ids...) } -// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. -func (_c *OrganizationCreate) AddWorkflowObjectRefIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowObjectRefIDs(ids...) +// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. +func (_c *OrganizationCreate) AddOrgPriceIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddOrgPriceIDs(ids...) return _c } -// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. -func (_c *OrganizationCreate) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationCreate { +// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. +func (_c *OrganizationCreate) AddOrgPrices(v ...*OrgPrice) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowObjectRefIDs(ids...) + return _c.AddOrgPriceIDs(ids...) } -// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. -func (_c *OrganizationCreate) AddWorkflowProposalIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddWorkflowProposalIDs(ids...) +// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. +func (_c *OrganizationCreate) AddOrgModuleIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddOrgModuleIDs(ids...) return _c } -// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. -func (_c *OrganizationCreate) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationCreate { +// AddOrgModules adds the "org_modules" edges to the OrgModule entity. +func (_c *OrganizationCreate) AddOrgModules(v ...*OrgModule) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddWorkflowProposalIDs(ids...) + return _c.AddOrgModuleIDs(ids...) } -// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. -func (_c *OrganizationCreate) AddDirectoryAccountIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDirectoryAccountIDs(ids...) +// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. +func (_c *OrganizationCreate) AddInviteIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddInviteIDs(ids...) return _c } -// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. -func (_c *OrganizationCreate) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationCreate { +// AddInvites adds the "invites" edges to the Invite entity. +func (_c *OrganizationCreate) AddInvites(v ...*Invite) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDirectoryAccountIDs(ids...) + return _c.AddInviteIDs(ids...) } -// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. -func (_c *OrganizationCreate) AddDirectoryGroupIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDirectoryGroupIDs(ids...) +// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. +func (_c *OrganizationCreate) AddSubscriberIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubscriberIDs(ids...) return _c } -// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. -func (_c *OrganizationCreate) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationCreate { +// AddSubscribers adds the "subscribers" edges to the Subscriber entity. +func (_c *OrganizationCreate) AddSubscribers(v ...*Subscriber) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDirectoryGroupIDs(ids...) + return _c.AddSubscriberIDs(ids...) } -// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. -func (_c *OrganizationCreate) AddDirectoryMembershipIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDirectoryMembershipIDs(ids...) +// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. +func (_c *OrganizationCreate) AddEntityIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEntityIDs(ids...) return _c } -// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. -func (_c *OrganizationCreate) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationCreate { +// AddEntities adds the "entities" edges to the Entity entity. +func (_c *OrganizationCreate) AddEntities(v ...*Entity) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDirectoryMembershipIDs(ids...) + return _c.AddEntityIDs(ids...) } -// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. -func (_c *OrganizationCreate) AddDirectorySyncRunIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDirectorySyncRunIDs(ids...) +// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. +func (_c *OrganizationCreate) AddPlatformIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddPlatformIDs(ids...) return _c } -// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. -func (_c *OrganizationCreate) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationCreate { +// AddPlatforms adds the "platforms" edges to the Platform entity. +func (_c *OrganizationCreate) AddPlatforms(v ...*Platform) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDirectorySyncRunIDs(ids...) + return _c.AddPlatformIDs(ids...) } -// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. -func (_c *OrganizationCreate) AddDiscussionIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddDiscussionIDs(ids...) +// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. +func (_c *OrganizationCreate) AddIdentityHolderIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddIdentityHolderIDs(ids...) return _c } -// AddDiscussions adds the "discussions" edges to the Discussion entity. -func (_c *OrganizationCreate) AddDiscussions(v ...*Discussion) *OrganizationCreate { +// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. +func (_c *OrganizationCreate) AddIdentityHolders(v ...*IdentityHolder) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddDiscussionIDs(ids...) + return _c.AddIdentityHolderIDs(ids...) } -// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. -func (_c *OrganizationCreate) AddVendorScoringConfigIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddVendorScoringConfigIDs(ids...) +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_c *OrganizationCreate) AddCampaignIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCampaignIDs(ids...) return _c } -// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. -func (_c *OrganizationCreate) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationCreate { +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_c *OrganizationCreate) AddCampaigns(v ...*Campaign) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddVendorScoringConfigIDs(ids...) + return _c.AddCampaignIDs(ids...) } -// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. -func (_c *OrganizationCreate) AddVendorRiskScoreIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddVendorRiskScoreIDs(ids...) +// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. +func (_c *OrganizationCreate) AddCampaignTargetIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCampaignTargetIDs(ids...) return _c } -// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. -func (_c *OrganizationCreate) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationCreate { +// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. +func (_c *OrganizationCreate) AddCampaignTargets(v ...*CampaignTarget) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddVendorRiskScoreIDs(ids...) + return _c.AddCampaignTargetIDs(ids...) } -// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. -func (_c *OrganizationCreate) AddMemberIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddMemberIDs(ids...) +// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. +func (_c *OrganizationCreate) AddEntityTypeIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEntityTypeIDs(ids...) return _c } -// AddMembers adds the "members" edges to the OrgMembership entity. -func (_c *OrganizationCreate) AddMembers(v ...*OrgMembership) *OrganizationCreate { +// AddEntityTypes adds the "entity_types" edges to the EntityType entity. +func (_c *OrganizationCreate) AddEntityTypes(v ...*EntityType) *OrganizationCreate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _c.AddMemberIDs(ids...) + return _c.AddEntityTypeIDs(ids...) } -// Mutation returns the OrganizationMutation object of the builder. -func (_c *OrganizationCreate) Mutation() *OrganizationMutation { - return _c.mutation +// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. +func (_c *OrganizationCreate) AddContactIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddContactIDs(ids...) + return _c } -// Save creates the Organization in the database. -func (_c *OrganizationCreate) Save(ctx context.Context) (*Organization, error) { - if err := _c.defaults(); err != nil { - return nil, err +// AddContacts adds the "contacts" edges to the Contact entity. +func (_c *OrganizationCreate) AddContacts(v ...*Contact) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) + return _c.AddContactIDs(ids...) } -// SaveX calls Save and panics if Save returns an error. -func (_c *OrganizationCreate) SaveX(ctx context.Context) *Organization { - v, err := _c.Save(ctx) - if err != nil { - panic(err) +// AddNoteIDs adds the "notes" edge to the Note entity by IDs. +func (_c *OrganizationCreate) AddNoteIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNoteIDs(ids...) + return _c +} + +// AddNotes adds the "notes" edges to the Note entity. +func (_c *OrganizationCreate) AddNotes(v ...*Note) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return v + return _c.AddNoteIDs(ids...) } -// Exec executes the query. -func (_c *OrganizationCreate) Exec(ctx context.Context) error { - _, err := _c.Save(ctx) - return err +// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. +func (_c *OrganizationCreate) AddTaskIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTaskIDs(ids...) + return _c } -// ExecX is like Exec, but panics if an error occurs. -func (_c *OrganizationCreate) ExecX(ctx context.Context) { - if err := _c.Exec(ctx); err != nil { - panic(err) +// AddTasks adds the "tasks" edges to the Task entity. +func (_c *OrganizationCreate) AddTasks(v ...*Task) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } + return _c.AddTaskIDs(ids...) } -// defaults sets the default values of the builder before save. -func (_c *OrganizationCreate) defaults() error { - if _, ok := _c.mutation.CreatedAt(); !ok { - if organization.DefaultCreatedAt == nil { - return fmt.Errorf("generated: uninitialized organization.DefaultCreatedAt (forgotten import generated/runtime?)") - } - v := organization.DefaultCreatedAt() - _c.mutation.SetCreatedAt(v) +// AddProgramIDs adds the "programs" edge to the Program entity by IDs. +func (_c *OrganizationCreate) AddProgramIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddProgramIDs(ids...) + return _c +} + +// AddPrograms adds the "programs" edges to the Program entity. +func (_c *OrganizationCreate) AddPrograms(v ...*Program) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _, ok := _c.mutation.UpdatedAt(); !ok { - if organization.DefaultUpdatedAt == nil { - return fmt.Errorf("generated: uninitialized organization.DefaultUpdatedAt (forgotten import generated/runtime?)") - } - v := organization.DefaultUpdatedAt() - _c.mutation.SetUpdatedAt(v) + return _c.AddProgramIDs(ids...) +} + +// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. +func (_c *OrganizationCreate) AddSystemDetailIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSystemDetailIDs(ids...) + return _c +} + +// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. +func (_c *OrganizationCreate) AddSystemDetails(v ...*SystemDetail) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _, ok := _c.mutation.Tags(); !ok { - v := organization.DefaultTags - _c.mutation.SetTags(v) + return _c.AddSystemDetailIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (_c *OrganizationCreate) AddProcedureIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddProcedureIDs(ids...) + return _c +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (_c *OrganizationCreate) AddProcedures(v ...*Procedure) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _, ok := _c.mutation.DisplayName(); !ok { - v := organization.DefaultDisplayName - _c.mutation.SetDisplayName(v) + return _c.AddProcedureIDs(ids...) +} + +// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. +func (_c *OrganizationCreate) AddInternalPolicyIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddInternalPolicyIDs(ids...) + return _c +} + +// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. +func (_c *OrganizationCreate) AddInternalPolicies(v ...*InternalPolicy) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _, ok := _c.mutation.PersonalOrg(); !ok { - v := organization.DefaultPersonalOrg - _c.mutation.SetPersonalOrg(v) + return _c.AddInternalPolicyIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (_c *OrganizationCreate) AddRiskIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRiskIDs(ids...) + return _c +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (_c *OrganizationCreate) AddRisks(v ...*Risk) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _, ok := _c.mutation.AvatarUpdatedAt(); !ok { - if organization.DefaultAvatarUpdatedAt == nil { - return fmt.Errorf("generated: uninitialized organization.DefaultAvatarUpdatedAt (forgotten import generated/runtime?)") + return _c.AddRiskIDs(ids...) +} + +// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. +func (_c *OrganizationCreate) AddControlObjectiveIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlObjectiveIDs(ids...) + return _c +} + +// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. +func (_c *OrganizationCreate) AddControlObjectives(v ...*ControlObjective) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddControlObjectiveIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (_c *OrganizationCreate) AddNarrativeIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNarrativeIDs(ids...) + return _c +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (_c *OrganizationCreate) AddNarratives(v ...*Narrative) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddNarrativeIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (_c *OrganizationCreate) AddControlIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlIDs(ids...) + return _c +} + +// AddControls adds the "controls" edges to the Control entity. +func (_c *OrganizationCreate) AddControls(v ...*Control) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddControlIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (_c *OrganizationCreate) AddSubcontrolIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubcontrolIDs(ids...) + return _c +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (_c *OrganizationCreate) AddSubcontrols(v ...*Subcontrol) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddSubcontrolIDs(ids...) +} + +// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. +func (_c *OrganizationCreate) AddControlImplementationIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddControlImplementationIDs(ids...) + return _c +} + +// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. +func (_c *OrganizationCreate) AddControlImplementations(v ...*ControlImplementation) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddControlImplementationIDs(ids...) +} + +// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. +func (_c *OrganizationCreate) AddMappedControlIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddMappedControlIDs(ids...) + return _c +} + +// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. +func (_c *OrganizationCreate) AddMappedControls(v ...*MappedControl) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddMappedControlIDs(ids...) +} + +// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. +func (_c *OrganizationCreate) AddEvidenceIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddEvidenceIDs(ids...) + return _c +} + +// AddEvidence adds the "evidence" edges to the Evidence entity. +func (_c *OrganizationCreate) AddEvidence(v ...*Evidence) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddEvidenceIDs(ids...) +} + +// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. +func (_c *OrganizationCreate) AddStandardIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddStandardIDs(ids...) + return _c +} + +// AddStandards adds the "standards" edges to the Standard entity. +func (_c *OrganizationCreate) AddStandards(v ...*Standard) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddStandardIDs(ids...) +} + +// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. +func (_c *OrganizationCreate) AddActionPlanIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddActionPlanIDs(ids...) + return _c +} + +// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. +func (_c *OrganizationCreate) AddActionPlans(v ...*ActionPlan) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddActionPlanIDs(ids...) +} + +// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. +func (_c *OrganizationCreate) AddCustomDomainIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCustomDomainIDs(ids...) + return _c +} + +// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. +func (_c *OrganizationCreate) AddCustomDomains(v ...*CustomDomain) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddCustomDomainIDs(ids...) +} + +// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerIDs(ids...) + return _c +} + +// AddJobRunners adds the "job_runners" edges to the JobRunner entity. +func (_c *OrganizationCreate) AddJobRunners(v ...*JobRunner) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddJobRunnerIDs(ids...) +} + +// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerTokenIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerTokenIDs(ids...) + return _c +} + +// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. +func (_c *OrganizationCreate) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddJobRunnerTokenIDs(ids...) +} + +// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. +func (_c *OrganizationCreate) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobRunnerRegistrationTokenIDs(ids...) + return _c +} + +// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. +func (_c *OrganizationCreate) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddJobRunnerRegistrationTokenIDs(ids...) +} + +// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. +func (_c *OrganizationCreate) AddDNSVerificationIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDNSVerificationIDs(ids...) + return _c +} + +// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. +func (_c *OrganizationCreate) AddDNSVerifications(v ...*DNSVerification) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDNSVerificationIDs(ids...) +} + +// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. +func (_c *OrganizationCreate) AddJobTemplateIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobTemplateIDs(ids...) + return _c +} + +// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. +func (_c *OrganizationCreate) AddJobTemplates(v ...*JobTemplate) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddJobTemplateIDs(ids...) +} + +// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. +func (_c *OrganizationCreate) AddScheduledJobIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScheduledJobIDs(ids...) + return _c +} + +// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. +func (_c *OrganizationCreate) AddScheduledJobs(v ...*ScheduledJob) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddScheduledJobIDs(ids...) +} + +// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. +func (_c *OrganizationCreate) AddJobResultIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddJobResultIDs(ids...) + return _c +} + +// AddJobResults adds the "job_results" edges to the JobResult entity. +func (_c *OrganizationCreate) AddJobResults(v ...*JobResult) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddJobResultIDs(ids...) +} + +// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. +func (_c *OrganizationCreate) AddScheduledJobRunIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScheduledJobRunIDs(ids...) + return _c +} + +// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. +func (_c *OrganizationCreate) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddScheduledJobRunIDs(ids...) +} + +// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterIDs(ids...) + return _c +} + +// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. +func (_c *OrganizationCreate) AddTrustCenters(v ...*TrustCenter) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddTrustCenterIDs(ids...) +} + +// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. +func (_c *OrganizationCreate) AddAssetIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAssetIDs(ids...) + return _c +} + +// AddAssets adds the "assets" edges to the Asset entity. +func (_c *OrganizationCreate) AddAssets(v ...*Asset) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAssetIDs(ids...) +} + +// AddScanIDs adds the "scans" edge to the Scan entity by IDs. +func (_c *OrganizationCreate) AddScanIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddScanIDs(ids...) + return _c +} + +// AddScans adds the "scans" edges to the Scan entity. +func (_c *OrganizationCreate) AddScans(v ...*Scan) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddScanIDs(ids...) +} + +// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. +func (_c *OrganizationCreate) AddSLADefinitionIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSLADefinitionIDs(ids...) + return _c +} + +// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. +func (_c *OrganizationCreate) AddSLADefinitions(v ...*SLADefinition) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddSLADefinitionIDs(ids...) +} + +// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. +func (_c *OrganizationCreate) AddSubprocessorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddSubprocessorIDs(ids...) + return _c +} + +// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. +func (_c *OrganizationCreate) AddSubprocessors(v ...*Subprocessor) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddSubprocessorIDs(ids...) +} + +// AddExportIDs adds the "exports" edge to the Export entity by IDs. +func (_c *OrganizationCreate) AddExportIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddExportIDs(ids...) + return _c +} + +// AddExports adds the "exports" edges to the Export entity. +func (_c *OrganizationCreate) AddExports(v ...*Export) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddExportIDs(ids...) +} + +// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. +func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTrustCenterWatermarkConfigIDs(ids...) + return _c +} + +// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. +func (_c *OrganizationCreate) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddTrustCenterWatermarkConfigIDs(ids...) +} + +// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. +func (_c *OrganizationCreate) AddImpersonationEventIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddImpersonationEventIDs(ids...) + return _c +} + +// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. +func (_c *OrganizationCreate) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddImpersonationEventIDs(ids...) +} + +// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. +func (_c *OrganizationCreate) AddAssessmentIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAssessmentIDs(ids...) + return _c +} + +// AddAssessments adds the "assessments" edges to the Assessment entity. +func (_c *OrganizationCreate) AddAssessments(v ...*Assessment) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAssessmentIDs(ids...) +} + +// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. +func (_c *OrganizationCreate) AddAssessmentResponseIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAssessmentResponseIDs(ids...) + return _c +} + +// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. +func (_c *OrganizationCreate) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAssessmentResponseIDs(ids...) +} + +// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. +func (_c *OrganizationCreate) AddCustomTypeEnumIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddCustomTypeEnumIDs(ids...) + return _c +} + +// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. +func (_c *OrganizationCreate) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddCustomTypeEnumIDs(ids...) +} + +// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. +func (_c *OrganizationCreate) AddTagDefinitionIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddTagDefinitionIDs(ids...) + return _c +} + +// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. +func (_c *OrganizationCreate) AddTagDefinitions(v ...*TagDefinition) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddTagDefinitionIDs(ids...) +} + +// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. +func (_c *OrganizationCreate) AddRemediationIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddRemediationIDs(ids...) + return _c +} + +// AddRemediations adds the "remediations" edges to the Remediation entity. +func (_c *OrganizationCreate) AddRemediations(v ...*Remediation) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddRemediationIDs(ids...) +} + +// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. +func (_c *OrganizationCreate) AddFindingIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddFindingIDs(ids...) + return _c +} + +// AddFindings adds the "findings" edges to the Finding entity. +func (_c *OrganizationCreate) AddFindings(v ...*Finding) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddFindingIDs(ids...) +} + +// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. +func (_c *OrganizationCreate) AddReviewIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddReviewIDs(ids...) + return _c +} + +// AddReviews adds the "reviews" edges to the Review entity. +func (_c *OrganizationCreate) AddReviews(v ...*Review) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddReviewIDs(ids...) +} + +// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. +func (_c *OrganizationCreate) AddVulnerabilityIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddVulnerabilityIDs(ids...) + return _c +} + +// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. +func (_c *OrganizationCreate) AddVulnerabilities(v ...*Vulnerability) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddVulnerabilityIDs(ids...) +} + +// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. +func (_c *OrganizationCreate) AddNotificationIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddNotificationIDs(ids...) + return _c +} + +// AddNotifications adds the "notifications" edges to the Notification entity. +func (_c *OrganizationCreate) AddNotifications(v ...*Notification) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddNotificationIDs(ids...) +} + +// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. +func (_c *OrganizationCreate) AddWorkflowDefinitionIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowDefinitionIDs(ids...) + return _c +} + +// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. +func (_c *OrganizationCreate) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowDefinitionIDs(ids...) +} + +// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. +func (_c *OrganizationCreate) AddWorkflowInstanceIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowInstanceIDs(ids...) + return _c +} + +// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. +func (_c *OrganizationCreate) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowInstanceIDs(ids...) +} + +// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. +func (_c *OrganizationCreate) AddWorkflowEventIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowEventIDs(ids...) + return _c +} + +// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. +func (_c *OrganizationCreate) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowEventIDs(ids...) +} + +// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. +func (_c *OrganizationCreate) AddWorkflowAssignmentIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowAssignmentIDs(ids...) + return _c +} + +// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. +func (_c *OrganizationCreate) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowAssignmentIDs(ids...) +} + +// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. +func (_c *OrganizationCreate) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowAssignmentTargetIDs(ids...) + return _c +} + +// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. +func (_c *OrganizationCreate) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowAssignmentTargetIDs(ids...) +} + +// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. +func (_c *OrganizationCreate) AddWorkflowObjectRefIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowObjectRefIDs(ids...) + return _c +} + +// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. +func (_c *OrganizationCreate) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowObjectRefIDs(ids...) +} + +// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. +func (_c *OrganizationCreate) AddWorkflowProposalIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddWorkflowProposalIDs(ids...) + return _c +} + +// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. +func (_c *OrganizationCreate) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddWorkflowProposalIDs(ids...) +} + +// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. +func (_c *OrganizationCreate) AddDirectoryAccountIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDirectoryAccountIDs(ids...) + return _c +} + +// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. +func (_c *OrganizationCreate) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDirectoryAccountIDs(ids...) +} + +// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. +func (_c *OrganizationCreate) AddDirectoryGroupIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDirectoryGroupIDs(ids...) + return _c +} + +// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. +func (_c *OrganizationCreate) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDirectoryGroupIDs(ids...) +} + +// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. +func (_c *OrganizationCreate) AddDirectoryMembershipIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDirectoryMembershipIDs(ids...) + return _c +} + +// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. +func (_c *OrganizationCreate) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDirectoryMembershipIDs(ids...) +} + +// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. +func (_c *OrganizationCreate) AddDirectorySyncRunIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDirectorySyncRunIDs(ids...) + return _c +} + +// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. +func (_c *OrganizationCreate) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDirectorySyncRunIDs(ids...) +} + +// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. +func (_c *OrganizationCreate) AddDiscussionIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddDiscussionIDs(ids...) + return _c +} + +// AddDiscussions adds the "discussions" edges to the Discussion entity. +func (_c *OrganizationCreate) AddDiscussions(v ...*Discussion) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddDiscussionIDs(ids...) +} + +// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. +func (_c *OrganizationCreate) AddVendorScoringConfigIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddVendorScoringConfigIDs(ids...) + return _c +} + +// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. +func (_c *OrganizationCreate) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddVendorScoringConfigIDs(ids...) +} + +// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. +func (_c *OrganizationCreate) AddVendorRiskScoreIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddVendorRiskScoreIDs(ids...) + return _c +} + +// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. +func (_c *OrganizationCreate) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddVendorRiskScoreIDs(ids...) +} + +// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. +func (_c *OrganizationCreate) AddMemberIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddMemberIDs(ids...) + return _c +} + +// AddMembers adds the "members" edges to the OrgMembership entity. +func (_c *OrganizationCreate) AddMembers(v ...*OrgMembership) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddMemberIDs(ids...) +} + +// Mutation returns the OrganizationMutation object of the builder. +func (_c *OrganizationCreate) Mutation() *OrganizationMutation { + return _c.mutation +} + +// Save creates the Organization in the database. +func (_c *OrganizationCreate) Save(ctx context.Context) (*Organization, error) { + if err := _c.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (_c *OrganizationCreate) SaveX(ctx context.Context) *Organization { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *OrganizationCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *OrganizationCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (_c *OrganizationCreate) defaults() error { + if _, ok := _c.mutation.CreatedAt(); !ok { + if organization.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized organization.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := organization.DefaultCreatedAt() + _c.mutation.SetCreatedAt(v) + } + if _, ok := _c.mutation.UpdatedAt(); !ok { + if organization.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized organization.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := organization.DefaultUpdatedAt() + _c.mutation.SetUpdatedAt(v) + } + if _, ok := _c.mutation.Tags(); !ok { + v := organization.DefaultTags + _c.mutation.SetTags(v) + } + if _, ok := _c.mutation.DisplayName(); !ok { + v := organization.DefaultDisplayName + _c.mutation.SetDisplayName(v) + } + if _, ok := _c.mutation.PersonalOrg(); !ok { + v := organization.DefaultPersonalOrg + _c.mutation.SetPersonalOrg(v) + } + if _, ok := _c.mutation.AvatarUpdatedAt(); !ok { + if organization.DefaultAvatarUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized organization.DefaultAvatarUpdatedAt (forgotten import generated/runtime?)") + } + v := organization.DefaultAvatarUpdatedAt() + _c.mutation.SetAvatarUpdatedAt(v) + } + if _, ok := _c.mutation.DedicatedDb(); !ok { + v := organization.DefaultDedicatedDb + _c.mutation.SetDedicatedDb(v) + } + if _, ok := _c.mutation.ID(); !ok { + if organization.DefaultID == nil { + return fmt.Errorf("generated: uninitialized organization.DefaultID (forgotten import generated/runtime?)") + } + v := organization.DefaultID() + _c.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_c *OrganizationCreate) check() error { + if _, ok := _c.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Organization.name"`)} + } + if v, ok := _c.mutation.Name(); ok { + if err := organization.NameValidator(v); err != nil { + return &ValidationError{Name: "name", err: fmt.Errorf(`generated: validator failed for field "Organization.name": %w`, err)} + } + } + if _, ok := _c.mutation.DisplayName(); !ok { + return &ValidationError{Name: "display_name", err: errors.New(`generated: missing required field "Organization.display_name"`)} + } + if v, ok := _c.mutation.DisplayName(); ok { + if err := organization.DisplayNameValidator(v); err != nil { + return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} + } + } + if v, ok := _c.mutation.AvatarRemoteURL(); ok { + if err := organization.AvatarRemoteURLValidator(v); err != nil { + return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} + } + } + if _, ok := _c.mutation.DedicatedDb(); !ok { + return &ValidationError{Name: "dedicated_db", err: errors.New(`generated: missing required field "Organization.dedicated_db"`)} + } + return nil +} + +func (_c *OrganizationCreate) sqlSave(ctx context.Context) (*Organization, error) { + if err := _c.check(); err != nil { + return nil, err + } + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + if _spec.ID.Value != nil { + if id, ok := _spec.ID.Value.(string); ok { + _node.ID = id + } else { + return nil, fmt.Errorf("unexpected Organization.ID type: %T", _spec.ID.Value) + } + } + _c.mutation.id = &_node.ID + _c.mutation.done = true + return _node, nil +} + +func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) { + var ( + _node = &Organization{config: _c.config} + _spec = sqlgraph.NewCreateSpec(organization.Table, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) + ) + _spec.Schema = _c.schemaConfig.Organization + if id, ok := _c.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := _c.mutation.CreatedAt(); ok { + _spec.SetField(organization.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := _c.mutation.UpdatedAt(); ok { + _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := _c.mutation.CreatedBy(); ok { + _spec.SetField(organization.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := _c.mutation.UpdatedBy(); ok { + _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := _c.mutation.DeletedAt(); ok { + _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := _c.mutation.DeletedBy(); ok { + _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := _c.mutation.Tags(); ok { + _spec.SetField(organization.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := _c.mutation.Name(); ok { + _spec.SetField(organization.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := _c.mutation.DisplayName(); ok { + _spec.SetField(organization.FieldDisplayName, field.TypeString, value) + _node.DisplayName = value + } + if value, ok := _c.mutation.Description(); ok { + _spec.SetField(organization.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := _c.mutation.PersonalOrg(); ok { + _spec.SetField(organization.FieldPersonalOrg, field.TypeBool, value) + _node.PersonalOrg = value + } + if value, ok := _c.mutation.AvatarRemoteURL(); ok { + _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) + _node.AvatarRemoteURL = &value + } + if value, ok := _c.mutation.AvatarUpdatedAt(); ok { + _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) + _node.AvatarUpdatedAt = &value + } + if value, ok := _c.mutation.DedicatedDb(); ok { + _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) + _node.DedicatedDb = value + } + if value, ok := _c.mutation.StripeCustomerID(); ok { + _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) + _node.StripeCustomerID = &value + } + if nodes := _c.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.APITokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AssessmentCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.CampaignCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.CampaignTargetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.CheckResultCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ContactCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.CustomTypeEnumCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.DiscussionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EmailTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EntityTypeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ExportCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.FileCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.IntegrationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.IntegrationWebhookCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.JobRunnerCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.JobRunnerRegistrationTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.JobRunnerTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.JobTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.NoteCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.NotificationTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.OrganizationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.PlatformCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.RemediationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ReviewCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ScanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ScheduledJobRunCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.SubcontrolCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.SubscriberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.SystemDetailCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.TagDefinitionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.TaskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } - v := organization.DefaultAvatarUpdatedAt() - _c.mutation.SetAvatarUpdatedAt(v) - } - if _, ok := _c.mutation.DedicatedDb(); !ok { - v := organization.DefaultDedicatedDb - _c.mutation.SetDedicatedDb(v) + _spec.Edges = append(_spec.Edges, edge) } - if _, ok := _c.mutation.ID(); !ok { - if organization.DefaultID == nil { - return fmt.Errorf("generated: uninitialized organization.DefaultID (forgotten import generated/runtime?)") + if nodes := _c.mutation.TrustCenterCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, } - v := organization.DefaultID() - _c.mutation.SetID(v) - } - return nil -} - -// check runs all checks and user-defined validators on the builder. -func (_c *OrganizationCreate) check() error { - if _, ok := _c.mutation.Name(); !ok { - return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Organization.name"`)} - } - if v, ok := _c.mutation.Name(); ok { - if err := organization.NameValidator(v); err != nil { - return &ValidationError{Name: "name", err: fmt.Errorf(`generated: validator failed for field "Organization.name": %w`, err)} + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges = append(_spec.Edges, edge) } - if _, ok := _c.mutation.DisplayName(); !ok { - return &ValidationError{Name: "display_name", err: errors.New(`generated: missing required field "Organization.display_name"`)} - } - if v, ok := _c.mutation.DisplayName(); ok { - if err := organization.DisplayNameValidator(v); err != nil { - return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} + if nodes := _c.mutation.TrustCenterComplianceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, } - } - if v, ok := _c.mutation.AvatarRemoteURL(); ok { - if err := organization.AvatarRemoteURLValidator(v); err != nil { - return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges = append(_spec.Edges, edge) } - if _, ok := _c.mutation.DedicatedDb(); !ok { - return &ValidationError{Name: "dedicated_db", err: errors.New(`generated: missing required field "Organization.dedicated_db"`)} - } - return nil -} - -func (_c *OrganizationCreate) sqlSave(ctx context.Context) (*Organization, error) { - if err := _c.check(); err != nil { - return nil, err - } - _node, _spec := _c.createSpec() - if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { - if sqlgraph.IsConstraintError(err) { - err = &ConstraintError{msg: err.Error(), wrap: err} + if nodes := _c.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, } - return nil, err - } - if _spec.ID.Value != nil { - if id, ok := _spec.ID.Value.(string); ok { - _node.ID = id - } else { - return nil, fmt.Errorf("unexpected Organization.ID type: %T", _spec.ID.Value) + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges = append(_spec.Edges, edge) } - _c.mutation.id = &_node.ID - _c.mutation.done = true - return _node, nil -} - -func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) { - var ( - _node = &Organization{config: _c.config} - _spec = sqlgraph.NewCreateSpec(organization.Table, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) - ) - _spec.Schema = _c.schemaConfig.Organization - if id, ok := _c.mutation.ID(); ok { - _node.ID = id - _spec.ID.Value = id - } - if value, ok := _c.mutation.CreatedAt(); ok { - _spec.SetField(organization.FieldCreatedAt, field.TypeTime, value) - _node.CreatedAt = value - } - if value, ok := _c.mutation.UpdatedAt(); ok { - _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) - _node.UpdatedAt = value - } - if value, ok := _c.mutation.CreatedBy(); ok { - _spec.SetField(organization.FieldCreatedBy, field.TypeString, value) - _node.CreatedBy = value - } - if value, ok := _c.mutation.UpdatedBy(); ok { - _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) - _node.UpdatedBy = value - } - if value, ok := _c.mutation.DeletedAt(); ok { - _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) - _node.DeletedAt = value - } - if value, ok := _c.mutation.DeletedBy(); ok { - _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) - _node.DeletedBy = value - } - if value, ok := _c.mutation.Tags(); ok { - _spec.SetField(organization.FieldTags, field.TypeJSON, value) - _node.Tags = value - } - if value, ok := _c.mutation.Name(); ok { - _spec.SetField(organization.FieldName, field.TypeString, value) - _node.Name = value - } - if value, ok := _c.mutation.DisplayName(); ok { - _spec.SetField(organization.FieldDisplayName, field.TypeString, value) - _node.DisplayName = value - } - if value, ok := _c.mutation.Description(); ok { - _spec.SetField(organization.FieldDescription, field.TypeString, value) - _node.Description = value - } - if value, ok := _c.mutation.PersonalOrg(); ok { - _spec.SetField(organization.FieldPersonalOrg, field.TypeBool, value) - _node.PersonalOrg = value - } - if value, ok := _c.mutation.AvatarRemoteURL(); ok { - _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) - _node.AvatarRemoteURL = &value - } - if value, ok := _c.mutation.AvatarUpdatedAt(); ok { - _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) - _node.AvatarUpdatedAt = &value - } - if value, ok := _c.mutation.DedicatedDb(); ok { - _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) - _node.DedicatedDb = value + if nodes := _c.mutation.TrustCenterEntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) } - if value, ok := _c.mutation.StripeCustomerID(); ok { - _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) - _node.StripeCustomerID = &value + if nodes := _c.mutation.TrustCenterFaqCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _c.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ControlCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.TrustCenterNdaRequestCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2242,12 +4066,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2259,12 +4083,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.TrustCenterWatermarkConfigCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2276,12 +4100,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.UserCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2293,12 +4117,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.UserSettingCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2310,12 +4134,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.VendorRiskScoreCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2344,12 +4168,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowAssignmentCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2361,12 +4185,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowAssignmentTargetCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2378,12 +4202,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowDefinitionCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2395,12 +4219,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowEventCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2412,12 +4236,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowInstanceCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2429,12 +4253,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowObjectRefCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2446,12 +4270,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowProposalCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2463,12 +4287,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.CampaignsManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2480,12 +4304,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.ComplianceManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2497,12 +4321,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.GroupManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2514,12 +4338,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.PoliciesManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2531,12 +4355,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.RegistryManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2548,12 +4372,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.RiskManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2565,12 +4389,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.TrustCenterManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -2582,12 +4406,12 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.WorkflowsManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), diff --git a/internal/ent/generated/organization_update.go b/internal/ent/generated/organization_update.go index acdfa105ec..5749e40431 100644 --- a/internal/ent/generated/organization_update.go +++ b/internal/ent/generated/organization_update.go @@ -336,64 +336,49 @@ func (_u *OrganizationUpdate) ClearStripeCustomerID() *OrganizationUpdate { return _u } -// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddControlCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlCreatorIDs(ids...) - return _u -} - -// AddControlCreators adds the "control_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddControlCreators(v ...*Group) *OrganizationUpdate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddControlCreatorIDs(ids...) -} - -// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddControlImplementationCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlImplementationCreatorIDs(ids...) +// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddActionPlanCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddActionPlanCreatorIDs(ids...) return _u } -// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddControlImplementationCreators(v ...*Group) *OrganizationUpdate { +// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddActionPlanCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlImplementationCreatorIDs(ids...) + return _u.AddActionPlanCreatorIDs(ids...) } -// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlObjectiveCreatorIDs(ids...) +// AddAPITokenCreatorIDs adds the "api_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddAPITokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAPITokenCreatorIDs(ids...) return _u } -// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddControlObjectiveCreators(v ...*Group) *OrganizationUpdate { +// AddAPITokenCreators adds the "api_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddAPITokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlObjectiveCreatorIDs(ids...) + return _u.AddAPITokenCreatorIDs(ids...) } -// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddEvidenceCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEvidenceCreatorIDs(ids...) +// AddAssessmentCreatorIDs adds the "assessment_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddAssessmentCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAssessmentCreatorIDs(ids...) return _u } -// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddEvidenceCreators(v ...*Group) *OrganizationUpdate { +// AddAssessmentCreators adds the "assessment_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddAssessmentCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEvidenceCreatorIDs(ids...) + return _u.AddAssessmentCreatorIDs(ids...) } // AddAssetCreatorIDs adds the "asset_creators" edge to the Group entity by IDs. @@ -411,13660 +396,23251 @@ func (_u *OrganizationUpdate) AddAssetCreators(v ...*Group) *OrganizationUpdate return _u.AddAssetCreatorIDs(ids...) } -// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddFindingCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddFindingCreatorIDs(ids...) +// AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddCampaignCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCampaignCreatorIDs(ids...) return _u } -// AddFindingCreators adds the "finding_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddFindingCreators(v ...*Group) *OrganizationUpdate { +// AddCampaignCreators adds the "campaign_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddCampaignCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFindingCreatorIDs(ids...) + return _u.AddCampaignCreatorIDs(ids...) } -// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddVulnerabilityCreatorIDs(ids...) +// AddCampaignTargetCreatorIDs adds the "campaign_target_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddCampaignTargetCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCampaignTargetCreatorIDs(ids...) return _u } -// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddVulnerabilityCreators(v ...*Group) *OrganizationUpdate { +// AddCampaignTargetCreators adds the "campaign_target_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddCampaignTargetCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVulnerabilityCreatorIDs(ids...) + return _u.AddCampaignTargetCreatorIDs(ids...) } -// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddGroupCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddGroupCreatorIDs(ids...) +// AddCheckResultCreatorIDs adds the "check_result_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddCheckResultCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCheckResultCreatorIDs(ids...) return _u } -// AddGroupCreators adds the "group_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddGroupCreators(v ...*Group) *OrganizationUpdate { +// AddCheckResultCreators adds the "check_result_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddCheckResultCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddGroupCreatorIDs(ids...) + return _u.AddCheckResultCreatorIDs(ids...) } -// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddInternalPolicyCreatorIDs(ids...) +// AddContactCreatorIDs adds the "contact_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddContactCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddContactCreatorIDs(ids...) return _u } -// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddInternalPolicyCreators(v ...*Group) *OrganizationUpdate { +// AddContactCreators adds the "contact_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddContactCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInternalPolicyCreatorIDs(ids...) + return _u.AddContactCreatorIDs(ids...) } -// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddMappedControlCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddMappedControlCreatorIDs(ids...) +// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddControlCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlCreatorIDs(ids...) return _u } -// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddMappedControlCreators(v ...*Group) *OrganizationUpdate { +// AddControlCreators adds the "control_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddControlCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddMappedControlCreatorIDs(ids...) + return _u.AddControlCreatorIDs(ids...) } -// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddNarrativeCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNarrativeCreatorIDs(ids...) +// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddControlImplementationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlImplementationCreatorIDs(ids...) return _u } -// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddNarrativeCreators(v ...*Group) *OrganizationUpdate { +// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddControlImplementationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNarrativeCreatorIDs(ids...) + return _u.AddControlImplementationCreatorIDs(ids...) } -// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddProcedureCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddProcedureCreatorIDs(ids...) +// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlObjectiveCreatorIDs(ids...) return _u } -// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddProcedureCreators(v ...*Group) *OrganizationUpdate { +// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddControlObjectiveCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProcedureCreatorIDs(ids...) + return _u.AddControlObjectiveCreatorIDs(ids...) } -// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddProgramCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddProgramCreatorIDs(ids...) +// AddCustomTypeEnumCreatorIDs adds the "custom_type_enum_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddCustomTypeEnumCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCustomTypeEnumCreatorIDs(ids...) return _u } -// AddProgramCreators adds the "program_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddProgramCreators(v ...*Group) *OrganizationUpdate { +// AddCustomTypeEnumCreators adds the "custom_type_enum_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddCustomTypeEnumCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProgramCreatorIDs(ids...) + return _u.AddCustomTypeEnumCreatorIDs(ids...) } -// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddRiskCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddRiskCreatorIDs(ids...) +// AddDiscussionCreatorIDs adds the "discussion_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddDiscussionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDiscussionCreatorIDs(ids...) return _u } -// AddRiskCreators adds the "risk_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddRiskCreators(v ...*Group) *OrganizationUpdate { +// AddDiscussionCreators adds the "discussion_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddDiscussionCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRiskCreatorIDs(ids...) + return _u.AddDiscussionCreatorIDs(ids...) } -// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddIdentityHolderCreatorIDs(ids...) +// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEmailBrandingCreatorIDs(ids...) return _u } -// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddIdentityHolderCreators(v ...*Group) *OrganizationUpdate { +// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddEmailBrandingCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIdentityHolderCreatorIDs(ids...) + return _u.AddEmailBrandingCreatorIDs(ids...) } -// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddScheduledJobCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddScheduledJobCreatorIDs(ids...) +// AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEmailTemplateCreatorIDs(ids...) return _u } -// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddScheduledJobCreators(v ...*Group) *OrganizationUpdate { +// AddEmailTemplateCreators adds the "email_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddEmailTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobCreatorIDs(ids...) + return _u.AddEmailTemplateCreatorIDs(ids...) } -// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddStandardCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddStandardCreatorIDs(ids...) +// AddEntityCreatorIDs adds the "entity_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddEntityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEntityCreatorIDs(ids...) return _u } -// AddStandardCreators adds the "standard_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddStandardCreators(v ...*Group) *OrganizationUpdate { +// AddEntityCreators adds the "entity_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddEntityCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddStandardCreatorIDs(ids...) + return _u.AddEntityCreatorIDs(ids...) } -// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddTemplateCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTemplateCreatorIDs(ids...) +// AddEntityTypeCreatorIDs adds the "entity_type_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddEntityTypeCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEntityTypeCreatorIDs(ids...) return _u } -// AddTemplateCreators adds the "template_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddTemplateCreators(v ...*Group) *OrganizationUpdate { +// AddEntityTypeCreators adds the "entity_type_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddEntityTypeCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTemplateCreatorIDs(ids...) + return _u.AddEntityTypeCreatorIDs(ids...) } -// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSubprocessorCreatorIDs(ids...) +// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddEvidenceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEvidenceCreatorIDs(ids...) return _u } -// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddSubprocessorCreators(v ...*Group) *OrganizationUpdate { +// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddEvidenceCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubprocessorCreatorIDs(ids...) + return _u.AddEvidenceCreatorIDs(ids...) } -// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTrustCenterDocCreatorIDs(ids...) +// AddExportCreatorIDs adds the "export_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddExportCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddExportCreatorIDs(ids...) return _u } -// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddTrustCenterDocCreators(v ...*Group) *OrganizationUpdate { +// AddExportCreators adds the "export_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddExportCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterDocCreatorIDs(ids...) + return _u.AddExportCreatorIDs(ids...) } -// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) +// AddFileCreatorIDs adds the "file_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddFileCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddFileCreatorIDs(ids...) return _u } -// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdate { +// AddFileCreators adds the "file_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddFileCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterSubprocessorCreatorIDs(ids...) + return _u.AddFileCreatorIDs(ids...) } -// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddActionPlanCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddActionPlanCreatorIDs(ids...) +// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddFindingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddFindingCreatorIDs(ids...) return _u } -// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddActionPlanCreators(v ...*Group) *OrganizationUpdate { +// AddFindingCreators adds the "finding_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddFindingCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddActionPlanCreatorIDs(ids...) + return _u.AddFindingCreatorIDs(ids...) } -// AddChildIDs adds the "children" edge to the Organization entity by IDs. -func (_u *OrganizationUpdate) AddChildIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddChildIDs(ids...) +// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddGroupCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddGroupCreatorIDs(ids...) return _u } -// AddChildren adds the "children" edges to the Organization entity. -func (_u *OrganizationUpdate) AddChildren(v ...*Organization) *OrganizationUpdate { +// AddGroupCreators adds the "group_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddGroupCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddChildIDs(ids...) + return _u.AddGroupCreatorIDs(ids...) } -// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. -func (_u *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate { - _u.mutation.SetSettingID(id) +// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIdentityHolderCreatorIDs(ids...) return _u } -// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. -func (_u *OrganizationUpdate) SetNillableSettingID(id *string) *OrganizationUpdate { - if id != nil { - _u = _u.SetSettingID(*id) +// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddIdentityHolderCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u -} - -// SetSetting sets the "setting" edge to the OrganizationSetting entity. -func (_u *OrganizationUpdate) SetSetting(v *OrganizationSetting) *OrganizationUpdate { - return _u.SetSettingID(v.ID) + return _u.AddIdentityHolderCreatorIDs(ids...) } -// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. -func (_u *OrganizationUpdate) AddPersonalAccessTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddPersonalAccessTokenIDs(ids...) +// AddIntegrationCreatorIDs adds the "integration_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddIntegrationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIntegrationCreatorIDs(ids...) return _u } -// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. -func (_u *OrganizationUpdate) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdate { +// AddIntegrationCreators adds the "integration_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddIntegrationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddPersonalAccessTokenIDs(ids...) + return _u.AddIntegrationCreatorIDs(ids...) } -// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. -func (_u *OrganizationUpdate) AddAPITokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddAPITokenIDs(ids...) +// AddIntegrationWebhookCreatorIDs adds the "integration_webhook_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddIntegrationWebhookCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIntegrationWebhookCreatorIDs(ids...) return _u } -// AddAPITokens adds the "api_tokens" edges to the APIToken entity. -func (_u *OrganizationUpdate) AddAPITokens(v ...*APIToken) *OrganizationUpdate { +// AddIntegrationWebhookCreators adds the "integration_webhook_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddIntegrationWebhookCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAPITokenIDs(ids...) + return _u.AddIntegrationWebhookCreatorIDs(ids...) } -// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. -func (_u *OrganizationUpdate) AddEmailTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEmailTemplateIDs(ids...) +// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddInternalPolicyCreatorIDs(ids...) return _u } -// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. -func (_u *OrganizationUpdate) AddEmailTemplates(v ...*EmailTemplate) *OrganizationUpdate { +// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddInternalPolicyCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEmailTemplateIDs(ids...) + return _u.AddInternalPolicyCreatorIDs(ids...) } -// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. -func (_u *OrganizationUpdate) AddIntegrationWebhookIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddIntegrationWebhookIDs(ids...) +// AddJobRunnerCreatorIDs adds the "job_runner_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerCreatorIDs(ids...) return _u } -// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. -func (_u *OrganizationUpdate) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdate { +// AddJobRunnerCreators adds the "job_runner_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddJobRunnerCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationWebhookIDs(ids...) + return _u.AddJobRunnerCreatorIDs(ids...) } -// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. -func (_u *OrganizationUpdate) AddIntegrationRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddIntegrationRunIDs(ids...) +// AddJobRunnerRegistrationTokenCreatorIDs adds the "job_runner_registration_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerRegistrationTokenCreatorIDs(ids...) return _u } -// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. -func (_u *OrganizationUpdate) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdate { +// AddJobRunnerRegistrationTokenCreators adds the "job_runner_registration_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationRunIDs(ids...) + return _u.AddJobRunnerRegistrationTokenCreatorIDs(ids...) } -// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. -func (_u *OrganizationUpdate) AddNotificationPreferenceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNotificationPreferenceIDs(ids...) +// AddJobRunnerTokenCreatorIDs adds the "job_runner_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerTokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerTokenCreatorIDs(ids...) return _u } -// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. -func (_u *OrganizationUpdate) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdate { +// AddJobRunnerTokenCreators adds the "job_runner_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddJobRunnerTokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationPreferenceIDs(ids...) + return _u.AddJobRunnerTokenCreatorIDs(ids...) } -// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. -func (_u *OrganizationUpdate) AddNotificationTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNotificationTemplateIDs(ids...) +// AddJobTemplateCreatorIDs adds the "job_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddJobTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobTemplateCreatorIDs(ids...) return _u } -// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. -func (_u *OrganizationUpdate) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdate { +// AddJobTemplateCreators adds the "job_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddJobTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationTemplateIDs(ids...) + return _u.AddJobTemplateCreatorIDs(ids...) } -// AddUserIDs adds the "users" edge to the User entity by IDs. -func (_u *OrganizationUpdate) AddUserIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddUserIDs(ids...) +// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddMappedControlCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddMappedControlCreatorIDs(ids...) return _u } -// AddUsers adds the "users" edges to the User entity. -func (_u *OrganizationUpdate) AddUsers(v ...*User) *OrganizationUpdate { +// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddMappedControlCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddUserIDs(ids...) + return _u.AddMappedControlCreatorIDs(ids...) } -// AddFileIDs adds the "files" edge to the File entity by IDs. -func (_u *OrganizationUpdate) AddFileIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddFileIDs(ids...) +// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddNarrativeCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNarrativeCreatorIDs(ids...) return _u } -// AddFiles adds the "files" edges to the File entity. -func (_u *OrganizationUpdate) AddFiles(v ...*File) *OrganizationUpdate { +// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddNarrativeCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFileIDs(ids...) + return _u.AddNarrativeCreatorIDs(ids...) } -// AddEventIDs adds the "events" edge to the Event entity by IDs. -func (_u *OrganizationUpdate) AddEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEventIDs(ids...) +// AddNoteCreatorIDs adds the "note_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddNoteCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNoteCreatorIDs(ids...) return _u } -// AddEvents adds the "events" edges to the Event entity. -func (_u *OrganizationUpdate) AddEvents(v ...*Event) *OrganizationUpdate { +// AddNoteCreators adds the "note_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddNoteCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEventIDs(ids...) + return _u.AddNoteCreatorIDs(ids...) } -// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. -func (_u *OrganizationUpdate) AddSecretIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSecretIDs(ids...) +// AddNotificationTemplateCreatorIDs adds the "notification_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddNotificationTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNotificationTemplateCreatorIDs(ids...) return _u } -// AddSecrets adds the "secrets" edges to the Hush entity. -func (_u *OrganizationUpdate) AddSecrets(v ...*Hush) *OrganizationUpdate { +// AddNotificationTemplateCreators adds the "notification_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddNotificationTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSecretIDs(ids...) + return _u.AddNotificationTemplateCreatorIDs(ids...) } -// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. -func (_u *OrganizationUpdate) SetAvatarFileID(id string) *OrganizationUpdate { - _u.mutation.SetAvatarFileID(id) +// AddOrganizationCreatorIDs adds the "organization_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddOrganizationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddOrganizationCreatorIDs(ids...) return _u } -// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. -func (_u *OrganizationUpdate) SetNillableAvatarFileID(id *string) *OrganizationUpdate { - if id != nil { - _u = _u.SetAvatarFileID(*id) +// AddOrganizationCreators adds the "organization_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddOrganizationCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u -} - -// SetAvatarFile sets the "avatar_file" edge to the File entity. -func (_u *OrganizationUpdate) SetAvatarFile(v *File) *OrganizationUpdate { - return _u.SetAvatarFileID(v.ID) + return _u.AddOrganizationCreatorIDs(ids...) } -// AddGroupIDs adds the "groups" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddGroupIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddGroupIDs(ids...) +// AddPlatformCreatorIDs adds the "platform_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddPlatformCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddPlatformCreatorIDs(ids...) return _u } -// AddGroups adds the "groups" edges to the Group entity. -func (_u *OrganizationUpdate) AddGroups(v ...*Group) *OrganizationUpdate { +// AddPlatformCreators adds the "platform_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddPlatformCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddGroupIDs(ids...) + return _u.AddPlatformCreatorIDs(ids...) } -// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. -func (_u *OrganizationUpdate) AddTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTemplateIDs(ids...) +// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddProcedureCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddProcedureCreatorIDs(ids...) return _u } -// AddTemplates adds the "templates" edges to the Template entity. -func (_u *OrganizationUpdate) AddTemplates(v ...*Template) *OrganizationUpdate { +// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddProcedureCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTemplateIDs(ids...) + return _u.AddProcedureCreatorIDs(ids...) } -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. -func (_u *OrganizationUpdate) AddIntegrationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddIntegrationIDs(ids...) +// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddProgramCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddProgramCreatorIDs(ids...) return _u } -// AddIntegrations adds the "integrations" edges to the Integration entity. -func (_u *OrganizationUpdate) AddIntegrations(v ...*Integration) *OrganizationUpdate { +// AddProgramCreators adds the "program_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddProgramCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationIDs(ids...) + return _u.AddProgramCreatorIDs(ids...) } -// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. -func (_u *OrganizationUpdate) AddDocumentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDocumentIDs(ids...) +// AddRemediationCreatorIDs adds the "remediation_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddRemediationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRemediationCreatorIDs(ids...) return _u } -// AddDocuments adds the "documents" edges to the DocumentData entity. -func (_u *OrganizationUpdate) AddDocuments(v ...*DocumentData) *OrganizationUpdate { +// AddRemediationCreators adds the "remediation_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddRemediationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDocumentIDs(ids...) + return _u.AddRemediationCreatorIDs(ids...) } -// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. -func (_u *OrganizationUpdate) AddOrgSubscriptionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddOrgSubscriptionIDs(ids...) +// AddReviewCreatorIDs adds the "review_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddReviewCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddReviewCreatorIDs(ids...) return _u } -// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. -func (_u *OrganizationUpdate) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdate { +// AddReviewCreators adds the "review_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddReviewCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgSubscriptionIDs(ids...) + return _u.AddReviewCreatorIDs(ids...) } -// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. -func (_u *OrganizationUpdate) AddOrgProductIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddOrgProductIDs(ids...) +// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddRiskCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRiskCreatorIDs(ids...) return _u } -// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. -func (_u *OrganizationUpdate) AddOrgProducts(v ...*OrgProduct) *OrganizationUpdate { +// AddRiskCreators adds the "risk_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddRiskCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgProductIDs(ids...) + return _u.AddRiskCreatorIDs(ids...) } -// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. -func (_u *OrganizationUpdate) AddOrgPriceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddOrgPriceIDs(ids...) +// AddScanCreatorIDs adds the "scan_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddScanCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScanCreatorIDs(ids...) return _u } -// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. -func (_u *OrganizationUpdate) AddOrgPrices(v ...*OrgPrice) *OrganizationUpdate { +// AddScanCreators adds the "scan_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddScanCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgPriceIDs(ids...) + return _u.AddScanCreatorIDs(ids...) } -// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. -func (_u *OrganizationUpdate) AddOrgModuleIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddOrgModuleIDs(ids...) +// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddScheduledJobCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScheduledJobCreatorIDs(ids...) return _u } -// AddOrgModules adds the "org_modules" edges to the OrgModule entity. -func (_u *OrganizationUpdate) AddOrgModules(v ...*OrgModule) *OrganizationUpdate { +// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddScheduledJobCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgModuleIDs(ids...) + return _u.AddScheduledJobCreatorIDs(ids...) } -// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. -func (_u *OrganizationUpdate) AddInviteIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddInviteIDs(ids...) +// AddScheduledJobRunCreatorIDs adds the "scheduled_job_run_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddScheduledJobRunCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScheduledJobRunCreatorIDs(ids...) return _u } -// AddInvites adds the "invites" edges to the Invite entity. -func (_u *OrganizationUpdate) AddInvites(v ...*Invite) *OrganizationUpdate { +// AddScheduledJobRunCreators adds the "scheduled_job_run_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddScheduledJobRunCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInviteIDs(ids...) + return _u.AddScheduledJobRunCreatorIDs(ids...) } -// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. -func (_u *OrganizationUpdate) AddSubscriberIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSubscriberIDs(ids...) +// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddStandardCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddStandardCreatorIDs(ids...) return _u } -// AddSubscribers adds the "subscribers" edges to the Subscriber entity. -func (_u *OrganizationUpdate) AddSubscribers(v ...*Subscriber) *OrganizationUpdate { +// AddStandardCreators adds the "standard_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddStandardCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubscriberIDs(ids...) + return _u.AddStandardCreatorIDs(ids...) } -// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. -func (_u *OrganizationUpdate) AddEntityIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEntityIDs(ids...) +// AddSubcontrolCreatorIDs adds the "subcontrol_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddSubcontrolCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubcontrolCreatorIDs(ids...) return _u } -// AddEntities adds the "entities" edges to the Entity entity. -func (_u *OrganizationUpdate) AddEntities(v ...*Entity) *OrganizationUpdate { +// AddSubcontrolCreators adds the "subcontrol_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddSubcontrolCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEntityIDs(ids...) + return _u.AddSubcontrolCreatorIDs(ids...) } -// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. -func (_u *OrganizationUpdate) AddPlatformIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddPlatformIDs(ids...) +// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubprocessorCreatorIDs(ids...) return _u } -// AddPlatforms adds the "platforms" edges to the Platform entity. -func (_u *OrganizationUpdate) AddPlatforms(v ...*Platform) *OrganizationUpdate { +// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddSubprocessorCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddPlatformIDs(ids...) + return _u.AddSubprocessorCreatorIDs(ids...) } -// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. -func (_u *OrganizationUpdate) AddIdentityHolderIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddIdentityHolderIDs(ids...) +// AddSubscriberCreatorIDs adds the "subscriber_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddSubscriberCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubscriberCreatorIDs(ids...) return _u } -// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. -func (_u *OrganizationUpdate) AddIdentityHolders(v ...*IdentityHolder) *OrganizationUpdate { +// AddSubscriberCreators adds the "subscriber_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddSubscriberCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIdentityHolderIDs(ids...) + return _u.AddSubscriberCreatorIDs(ids...) } -// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. -func (_u *OrganizationUpdate) AddCampaignIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddCampaignIDs(ids...) +// AddSystemDetailCreatorIDs adds the "system_detail_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddSystemDetailCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSystemDetailCreatorIDs(ids...) return _u } -// AddCampaigns adds the "campaigns" edges to the Campaign entity. -func (_u *OrganizationUpdate) AddCampaigns(v ...*Campaign) *OrganizationUpdate { +// AddSystemDetailCreators adds the "system_detail_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddSystemDetailCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCampaignIDs(ids...) + return _u.AddSystemDetailCreatorIDs(ids...) } -// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. -func (_u *OrganizationUpdate) AddCampaignTargetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddCampaignTargetIDs(ids...) +// AddTagDefinitionCreatorIDs adds the "tag_definition_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTagDefinitionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTagDefinitionCreatorIDs(ids...) return _u } -// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. -func (_u *OrganizationUpdate) AddCampaignTargets(v ...*CampaignTarget) *OrganizationUpdate { +// AddTagDefinitionCreators adds the "tag_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTagDefinitionCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCampaignTargetIDs(ids...) + return _u.AddTagDefinitionCreatorIDs(ids...) } -// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. -func (_u *OrganizationUpdate) AddEntityTypeIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEntityTypeIDs(ids...) +// AddTaskCreatorIDs adds the "task_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTaskCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTaskCreatorIDs(ids...) return _u } -// AddEntityTypes adds the "entity_types" edges to the EntityType entity. -func (_u *OrganizationUpdate) AddEntityTypes(v ...*EntityType) *OrganizationUpdate { +// AddTaskCreators adds the "task_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTaskCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEntityTypeIDs(ids...) + return _u.AddTaskCreatorIDs(ids...) } -// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. -func (_u *OrganizationUpdate) AddContactIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddContactIDs(ids...) +// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTemplateCreatorIDs(ids...) return _u } -// AddContacts adds the "contacts" edges to the Contact entity. -func (_u *OrganizationUpdate) AddContacts(v ...*Contact) *OrganizationUpdate { +// AddTemplateCreators adds the "template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddContactIDs(ids...) + return _u.AddTemplateCreatorIDs(ids...) } -// AddNoteIDs adds the "notes" edge to the Note entity by IDs. -func (_u *OrganizationUpdate) AddNoteIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNoteIDs(ids...) +// AddTrustCenterCreatorIDs adds the "trust_center_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterCreatorIDs(ids...) return _u } -// AddNotes adds the "notes" edges to the Note entity. -func (_u *OrganizationUpdate) AddNotes(v ...*Note) *OrganizationUpdate { +// AddTrustCenterCreators adds the "trust_center_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNoteIDs(ids...) + return _u.AddTrustCenterCreatorIDs(ids...) } -// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. -func (_u *OrganizationUpdate) AddTaskIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTaskIDs(ids...) +// AddTrustCenterComplianceCreatorIDs adds the "trust_center_compliance_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterComplianceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterComplianceCreatorIDs(ids...) return _u } -// AddTasks adds the "tasks" edges to the Task entity. -func (_u *OrganizationUpdate) AddTasks(v ...*Task) *OrganizationUpdate { +// AddTrustCenterComplianceCreators adds the "trust_center_compliance_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterComplianceCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTaskIDs(ids...) + return _u.AddTrustCenterComplianceCreatorIDs(ids...) } -// AddProgramIDs adds the "programs" edge to the Program entity by IDs. -func (_u *OrganizationUpdate) AddProgramIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddProgramIDs(ids...) +// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterDocCreatorIDs(ids...) return _u } -// AddPrograms adds the "programs" edges to the Program entity. -func (_u *OrganizationUpdate) AddPrograms(v ...*Program) *OrganizationUpdate { +// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterDocCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProgramIDs(ids...) + return _u.AddTrustCenterDocCreatorIDs(ids...) } -// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. -func (_u *OrganizationUpdate) AddSystemDetailIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSystemDetailIDs(ids...) +// AddTrustCenterEntityCreatorIDs adds the "trust_center_entity_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterEntityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterEntityCreatorIDs(ids...) return _u } -// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. -func (_u *OrganizationUpdate) AddSystemDetails(v ...*SystemDetail) *OrganizationUpdate { +// AddTrustCenterEntityCreators adds the "trust_center_entity_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterEntityCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSystemDetailIDs(ids...) + return _u.AddTrustCenterEntityCreatorIDs(ids...) } -// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. -func (_u *OrganizationUpdate) AddProcedureIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddProcedureIDs(ids...) +// AddTrustCenterFaqCreatorIDs adds the "trust_center_faq_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterFaqCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterFaqCreatorIDs(ids...) return _u } -// AddProcedures adds the "procedures" edges to the Procedure entity. -func (_u *OrganizationUpdate) AddProcedures(v ...*Procedure) *OrganizationUpdate { +// AddTrustCenterFaqCreators adds the "trust_center_faq_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterFaqCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProcedureIDs(ids...) + return _u.AddTrustCenterFaqCreatorIDs(ids...) } -// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. -func (_u *OrganizationUpdate) AddInternalPolicyIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddInternalPolicyIDs(ids...) +// AddTrustCenterNdaRequestCreatorIDs adds the "trust_center_nda_request_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterNdaRequestCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterNdaRequestCreatorIDs(ids...) return _u } -// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. -func (_u *OrganizationUpdate) AddInternalPolicies(v ...*InternalPolicy) *OrganizationUpdate { +// AddTrustCenterNdaRequestCreators adds the "trust_center_nda_request_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterNdaRequestCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInternalPolicyIDs(ids...) + return _u.AddTrustCenterNdaRequestCreatorIDs(ids...) } -// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. -func (_u *OrganizationUpdate) AddRiskIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddRiskIDs(ids...) +// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) return _u } -// AddRisks adds the "risks" edges to the Risk entity. -func (_u *OrganizationUpdate) AddRisks(v ...*Risk) *OrganizationUpdate { +// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRiskIDs(ids...) + return _u.AddTrustCenterSubprocessorCreatorIDs(ids...) } -// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. -func (_u *OrganizationUpdate) AddControlObjectiveIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlObjectiveIDs(ids...) +// AddTrustCenterWatermarkConfigCreatorIDs adds the "trust_center_watermark_config_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterWatermarkConfigCreatorIDs(ids...) return _u } -// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. -func (_u *OrganizationUpdate) AddControlObjectives(v ...*ControlObjective) *OrganizationUpdate { +// AddTrustCenterWatermarkConfigCreators adds the "trust_center_watermark_config_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlObjectiveIDs(ids...) + return _u.AddTrustCenterWatermarkConfigCreatorIDs(ids...) } -// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. -func (_u *OrganizationUpdate) AddNarrativeIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNarrativeIDs(ids...) +// AddUserCreatorIDs adds the "user_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddUserCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddUserCreatorIDs(ids...) return _u } -// AddNarratives adds the "narratives" edges to the Narrative entity. -func (_u *OrganizationUpdate) AddNarratives(v ...*Narrative) *OrganizationUpdate { +// AddUserCreators adds the "user_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddUserCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNarrativeIDs(ids...) + return _u.AddUserCreatorIDs(ids...) } -// AddControlIDs adds the "controls" edge to the Control entity by IDs. -func (_u *OrganizationUpdate) AddControlIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlIDs(ids...) +// AddUserSettingCreatorIDs adds the "user_setting_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddUserSettingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddUserSettingCreatorIDs(ids...) return _u } -// AddControls adds the "controls" edges to the Control entity. -func (_u *OrganizationUpdate) AddControls(v ...*Control) *OrganizationUpdate { +// AddUserSettingCreators adds the "user_setting_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddUserSettingCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlIDs(ids...) + return _u.AddUserSettingCreatorIDs(ids...) } -// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. -func (_u *OrganizationUpdate) AddSubcontrolIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSubcontrolIDs(ids...) +// AddVendorRiskScoreCreatorIDs adds the "vendor_risk_score_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddVendorRiskScoreCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddVendorRiskScoreCreatorIDs(ids...) return _u } -// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. -func (_u *OrganizationUpdate) AddSubcontrols(v ...*Subcontrol) *OrganizationUpdate { +// AddVendorRiskScoreCreators adds the "vendor_risk_score_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddVendorRiskScoreCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubcontrolIDs(ids...) + return _u.AddVendorRiskScoreCreatorIDs(ids...) } -// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. -func (_u *OrganizationUpdate) AddControlImplementationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddControlImplementationIDs(ids...) +// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddVulnerabilityCreatorIDs(ids...) return _u } -// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. -func (_u *OrganizationUpdate) AddControlImplementations(v ...*ControlImplementation) *OrganizationUpdate { +// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddVulnerabilityCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlImplementationIDs(ids...) + return _u.AddVulnerabilityCreatorIDs(ids...) } -// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. -func (_u *OrganizationUpdate) AddMappedControlIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddMappedControlIDs(ids...) +// AddWorkflowAssignmentCreatorIDs adds the "workflow_assignment_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowAssignmentCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowAssignmentCreatorIDs(ids...) return _u } -// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. -func (_u *OrganizationUpdate) AddMappedControls(v ...*MappedControl) *OrganizationUpdate { +// AddWorkflowAssignmentCreators adds the "workflow_assignment_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowAssignmentCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddMappedControlIDs(ids...) + return _u.AddWorkflowAssignmentCreatorIDs(ids...) } -// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. -func (_u *OrganizationUpdate) AddEvidenceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEvidenceIDs(ids...) +// AddWorkflowAssignmentTargetCreatorIDs adds the "workflow_assignment_target_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowAssignmentTargetCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowAssignmentTargetCreatorIDs(ids...) return _u } -// AddEvidence adds the "evidence" edges to the Evidence entity. -func (_u *OrganizationUpdate) AddEvidence(v ...*Evidence) *OrganizationUpdate { +// AddWorkflowAssignmentTargetCreators adds the "workflow_assignment_target_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowAssignmentTargetCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEvidenceIDs(ids...) + return _u.AddWorkflowAssignmentTargetCreatorIDs(ids...) } -// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. -func (_u *OrganizationUpdate) AddStandardIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddStandardIDs(ids...) +// AddWorkflowDefinitionCreatorIDs adds the "workflow_definition_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowDefinitionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowDefinitionCreatorIDs(ids...) return _u } -// AddStandards adds the "standards" edges to the Standard entity. -func (_u *OrganizationUpdate) AddStandards(v ...*Standard) *OrganizationUpdate { +// AddWorkflowDefinitionCreators adds the "workflow_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowDefinitionCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddStandardIDs(ids...) + return _u.AddWorkflowDefinitionCreatorIDs(ids...) } -// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. -func (_u *OrganizationUpdate) AddActionPlanIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddActionPlanIDs(ids...) +// AddWorkflowEventCreatorIDs adds the "workflow_event_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowEventCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowEventCreatorIDs(ids...) return _u } -// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. -func (_u *OrganizationUpdate) AddActionPlans(v ...*ActionPlan) *OrganizationUpdate { +// AddWorkflowEventCreators adds the "workflow_event_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowEventCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddActionPlanIDs(ids...) + return _u.AddWorkflowEventCreatorIDs(ids...) } -// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. -func (_u *OrganizationUpdate) AddCustomDomainIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddCustomDomainIDs(ids...) +// AddWorkflowInstanceCreatorIDs adds the "workflow_instance_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowInstanceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowInstanceCreatorIDs(ids...) return _u } -// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. -func (_u *OrganizationUpdate) AddCustomDomains(v ...*CustomDomain) *OrganizationUpdate { +// AddWorkflowInstanceCreators adds the "workflow_instance_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowInstanceCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCustomDomainIDs(ids...) + return _u.AddWorkflowInstanceCreatorIDs(ids...) } -// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. -func (_u *OrganizationUpdate) AddJobRunnerIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddJobRunnerIDs(ids...) +// AddWorkflowObjectRefCreatorIDs adds the "workflow_object_ref_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowObjectRefCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowObjectRefCreatorIDs(ids...) return _u } -// AddJobRunners adds the "job_runners" edges to the JobRunner entity. -func (_u *OrganizationUpdate) AddJobRunners(v ...*JobRunner) *OrganizationUpdate { +// AddWorkflowObjectRefCreators adds the "workflow_object_ref_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowObjectRefCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerIDs(ids...) + return _u.AddWorkflowObjectRefCreatorIDs(ids...) } -// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. -func (_u *OrganizationUpdate) AddJobRunnerTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddJobRunnerTokenIDs(ids...) +// AddWorkflowProposalCreatorIDs adds the "workflow_proposal_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowProposalCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowProposalCreatorIDs(ids...) return _u } -// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. -func (_u *OrganizationUpdate) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdate { +// AddWorkflowProposalCreators adds the "workflow_proposal_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowProposalCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerTokenIDs(ids...) + return _u.AddWorkflowProposalCreatorIDs(ids...) } -// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. -func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddJobRunnerRegistrationTokenIDs(ids...) +// AddCampaignsManagerIDs adds the "campaigns_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddCampaignsManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCampaignsManagerIDs(ids...) return _u } -// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. -func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdate { +// AddCampaignsManager adds the "campaigns_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddCampaignsManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerRegistrationTokenIDs(ids...) + return _u.AddCampaignsManagerIDs(ids...) } -// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. -func (_u *OrganizationUpdate) AddDNSVerificationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDNSVerificationIDs(ids...) +// AddComplianceManagerIDs adds the "compliance_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddComplianceManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddComplianceManagerIDs(ids...) return _u } -// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. -func (_u *OrganizationUpdate) AddDNSVerifications(v ...*DNSVerification) *OrganizationUpdate { +// AddComplianceManager adds the "compliance_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddComplianceManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDNSVerificationIDs(ids...) + return _u.AddComplianceManagerIDs(ids...) } -// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. -func (_u *OrganizationUpdate) AddJobTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddJobTemplateIDs(ids...) +// AddGroupManagerIDs adds the "group_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddGroupManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddGroupManagerIDs(ids...) return _u } -// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. -func (_u *OrganizationUpdate) AddJobTemplates(v ...*JobTemplate) *OrganizationUpdate { +// AddGroupManager adds the "group_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddGroupManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobTemplateIDs(ids...) + return _u.AddGroupManagerIDs(ids...) } -// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. -func (_u *OrganizationUpdate) AddScheduledJobIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddScheduledJobIDs(ids...) +// AddPoliciesManagerIDs adds the "policies_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddPoliciesManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddPoliciesManagerIDs(ids...) return _u } -// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. -func (_u *OrganizationUpdate) AddScheduledJobs(v ...*ScheduledJob) *OrganizationUpdate { +// AddPoliciesManager adds the "policies_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddPoliciesManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobIDs(ids...) + return _u.AddPoliciesManagerIDs(ids...) } -// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. -func (_u *OrganizationUpdate) AddJobResultIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddJobResultIDs(ids...) +// AddRegistryManagerIDs adds the "registry_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddRegistryManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRegistryManagerIDs(ids...) return _u } -// AddJobResults adds the "job_results" edges to the JobResult entity. -func (_u *OrganizationUpdate) AddJobResults(v ...*JobResult) *OrganizationUpdate { +// AddRegistryManager adds the "registry_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddRegistryManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobResultIDs(ids...) + return _u.AddRegistryManagerIDs(ids...) } -// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. -func (_u *OrganizationUpdate) AddScheduledJobRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddScheduledJobRunIDs(ids...) +// AddRiskManagerIDs adds the "risk_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddRiskManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRiskManagerIDs(ids...) return _u } -// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. -func (_u *OrganizationUpdate) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdate { +// AddRiskManager adds the "risk_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddRiskManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobRunIDs(ids...) + return _u.AddRiskManagerIDs(ids...) } -// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. -func (_u *OrganizationUpdate) AddTrustCenterIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTrustCenterIDs(ids...) +// AddTrustCenterManagerIDs adds the "trust_center_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterManagerIDs(ids...) return _u } -// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. -func (_u *OrganizationUpdate) AddTrustCenters(v ...*TrustCenter) *OrganizationUpdate { +// AddTrustCenterManager adds the "trust_center_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddTrustCenterManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterIDs(ids...) + return _u.AddTrustCenterManagerIDs(ids...) } -// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. -func (_u *OrganizationUpdate) AddAssetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddAssetIDs(ids...) +// AddWorkflowsManagerIDs adds the "workflows_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowsManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowsManagerIDs(ids...) return _u } -// AddAssets adds the "assets" edges to the Asset entity. -func (_u *OrganizationUpdate) AddAssets(v ...*Asset) *OrganizationUpdate { +// AddWorkflowsManager adds the "workflows_manager" edges to the Group entity. +func (_u *OrganizationUpdate) AddWorkflowsManager(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssetIDs(ids...) + return _u.AddWorkflowsManagerIDs(ids...) } -// AddScanIDs adds the "scans" edge to the Scan entity by IDs. -func (_u *OrganizationUpdate) AddScanIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddScanIDs(ids...) +// AddChildIDs adds the "children" edge to the Organization entity by IDs. +func (_u *OrganizationUpdate) AddChildIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddChildIDs(ids...) return _u } -// AddScans adds the "scans" edges to the Scan entity. -func (_u *OrganizationUpdate) AddScans(v ...*Scan) *OrganizationUpdate { +// AddChildren adds the "children" edges to the Organization entity. +func (_u *OrganizationUpdate) AddChildren(v ...*Organization) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScanIDs(ids...) + return _u.AddChildIDs(ids...) } -// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. -func (_u *OrganizationUpdate) AddSLADefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSLADefinitionIDs(ids...) +// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. +func (_u *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate { + _u.mutation.SetSettingID(id) return _u } -// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. -func (_u *OrganizationUpdate) AddSLADefinitions(v ...*SLADefinition) *OrganizationUpdate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. +func (_u *OrganizationUpdate) SetNillableSettingID(id *string) *OrganizationUpdate { + if id != nil { + _u = _u.SetSettingID(*id) } - return _u.AddSLADefinitionIDs(ids...) -} - -// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. -func (_u *OrganizationUpdate) AddSubprocessorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddSubprocessorIDs(ids...) return _u } -// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. -func (_u *OrganizationUpdate) AddSubprocessors(v ...*Subprocessor) *OrganizationUpdate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddSubprocessorIDs(ids...) +// SetSetting sets the "setting" edge to the OrganizationSetting entity. +func (_u *OrganizationUpdate) SetSetting(v *OrganizationSetting) *OrganizationUpdate { + return _u.SetSettingID(v.ID) } -// AddExportIDs adds the "exports" edge to the Export entity by IDs. -func (_u *OrganizationUpdate) AddExportIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddExportIDs(ids...) +// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. +func (_u *OrganizationUpdate) AddPersonalAccessTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddPersonalAccessTokenIDs(ids...) return _u } -// AddExports adds the "exports" edges to the Export entity. -func (_u *OrganizationUpdate) AddExports(v ...*Export) *OrganizationUpdate { +// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. +func (_u *OrganizationUpdate) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddExportIDs(ids...) + return _u.AddPersonalAccessTokenIDs(ids...) } -// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. -func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTrustCenterWatermarkConfigIDs(ids...) +// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. +func (_u *OrganizationUpdate) AddAPITokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAPITokenIDs(ids...) return _u } -// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. -func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdate { +// AddAPITokens adds the "api_tokens" edges to the APIToken entity. +func (_u *OrganizationUpdate) AddAPITokens(v ...*APIToken) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterWatermarkConfigIDs(ids...) + return _u.AddAPITokenIDs(ids...) } -// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. -func (_u *OrganizationUpdate) AddImpersonationEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddImpersonationEventIDs(ids...) +// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. +func (_u *OrganizationUpdate) AddEmailTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEmailTemplateIDs(ids...) return _u } -// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. -func (_u *OrganizationUpdate) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdate { +// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. +func (_u *OrganizationUpdate) AddEmailTemplates(v ...*EmailTemplate) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddImpersonationEventIDs(ids...) + return _u.AddEmailTemplateIDs(ids...) } -// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. -func (_u *OrganizationUpdate) AddAssessmentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddAssessmentIDs(ids...) +// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. +func (_u *OrganizationUpdate) AddIntegrationWebhookIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIntegrationWebhookIDs(ids...) return _u } -// AddAssessments adds the "assessments" edges to the Assessment entity. -func (_u *OrganizationUpdate) AddAssessments(v ...*Assessment) *OrganizationUpdate { +// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. +func (_u *OrganizationUpdate) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssessmentIDs(ids...) + return _u.AddIntegrationWebhookIDs(ids...) } -// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. -func (_u *OrganizationUpdate) AddAssessmentResponseIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddAssessmentResponseIDs(ids...) +// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. +func (_u *OrganizationUpdate) AddIntegrationRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIntegrationRunIDs(ids...) return _u } -// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. -func (_u *OrganizationUpdate) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdate { +// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. +func (_u *OrganizationUpdate) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssessmentResponseIDs(ids...) + return _u.AddIntegrationRunIDs(ids...) } -// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. -func (_u *OrganizationUpdate) AddCustomTypeEnumIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddCustomTypeEnumIDs(ids...) +// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. +func (_u *OrganizationUpdate) AddNotificationPreferenceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNotificationPreferenceIDs(ids...) return _u } -// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. -func (_u *OrganizationUpdate) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdate { +// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. +func (_u *OrganizationUpdate) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCustomTypeEnumIDs(ids...) + return _u.AddNotificationPreferenceIDs(ids...) } -// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. -func (_u *OrganizationUpdate) AddTagDefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddTagDefinitionIDs(ids...) +// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. +func (_u *OrganizationUpdate) AddNotificationTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNotificationTemplateIDs(ids...) return _u } -// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. -func (_u *OrganizationUpdate) AddTagDefinitions(v ...*TagDefinition) *OrganizationUpdate { +// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. +func (_u *OrganizationUpdate) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTagDefinitionIDs(ids...) + return _u.AddNotificationTemplateIDs(ids...) } -// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. -func (_u *OrganizationUpdate) AddRemediationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddRemediationIDs(ids...) +// AddUserIDs adds the "users" edge to the User entity by IDs. +func (_u *OrganizationUpdate) AddUserIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddUserIDs(ids...) return _u } -// AddRemediations adds the "remediations" edges to the Remediation entity. -func (_u *OrganizationUpdate) AddRemediations(v ...*Remediation) *OrganizationUpdate { +// AddUsers adds the "users" edges to the User entity. +func (_u *OrganizationUpdate) AddUsers(v ...*User) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRemediationIDs(ids...) + return _u.AddUserIDs(ids...) } -// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. -func (_u *OrganizationUpdate) AddFindingIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddFindingIDs(ids...) +// AddFileIDs adds the "files" edge to the File entity by IDs. +func (_u *OrganizationUpdate) AddFileIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddFileIDs(ids...) return _u } -// AddFindings adds the "findings" edges to the Finding entity. -func (_u *OrganizationUpdate) AddFindings(v ...*Finding) *OrganizationUpdate { +// AddFiles adds the "files" edges to the File entity. +func (_u *OrganizationUpdate) AddFiles(v ...*File) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFindingIDs(ids...) + return _u.AddFileIDs(ids...) } -// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. -func (_u *OrganizationUpdate) AddReviewIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddReviewIDs(ids...) +// AddEventIDs adds the "events" edge to the Event entity by IDs. +func (_u *OrganizationUpdate) AddEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEventIDs(ids...) return _u } -// AddReviews adds the "reviews" edges to the Review entity. -func (_u *OrganizationUpdate) AddReviews(v ...*Review) *OrganizationUpdate { +// AddEvents adds the "events" edges to the Event entity. +func (_u *OrganizationUpdate) AddEvents(v ...*Event) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddReviewIDs(ids...) + return _u.AddEventIDs(ids...) } -// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. -func (_u *OrganizationUpdate) AddVulnerabilityIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddVulnerabilityIDs(ids...) +// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. +func (_u *OrganizationUpdate) AddSecretIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSecretIDs(ids...) return _u } -// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. -func (_u *OrganizationUpdate) AddVulnerabilities(v ...*Vulnerability) *OrganizationUpdate { +// AddSecrets adds the "secrets" edges to the Hush entity. +func (_u *OrganizationUpdate) AddSecrets(v ...*Hush) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVulnerabilityIDs(ids...) + return _u.AddSecretIDs(ids...) } -// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. -func (_u *OrganizationUpdate) AddNotificationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddNotificationIDs(ids...) +// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. +func (_u *OrganizationUpdate) SetAvatarFileID(id string) *OrganizationUpdate { + _u.mutation.SetAvatarFileID(id) return _u } -// AddNotifications adds the "notifications" edges to the Notification entity. -func (_u *OrganizationUpdate) AddNotifications(v ...*Notification) *OrganizationUpdate { +// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. +func (_u *OrganizationUpdate) SetNillableAvatarFileID(id *string) *OrganizationUpdate { + if id != nil { + _u = _u.SetAvatarFileID(*id) + } + return _u +} + +// SetAvatarFile sets the "avatar_file" edge to the File entity. +func (_u *OrganizationUpdate) SetAvatarFile(v *File) *OrganizationUpdate { + return _u.SetAvatarFileID(v.ID) +} + +// AddGroupIDs adds the "groups" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddGroupIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddGroupIDs(ids...) + return _u +} + +// AddGroups adds the "groups" edges to the Group entity. +func (_u *OrganizationUpdate) AddGroups(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationIDs(ids...) + return _u.AddGroupIDs(ids...) } -// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowDefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowDefinitionIDs(ids...) +// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. +func (_u *OrganizationUpdate) AddTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTemplateIDs(ids...) return _u } -// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. -func (_u *OrganizationUpdate) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdate { +// AddTemplates adds the "templates" edges to the Template entity. +func (_u *OrganizationUpdate) AddTemplates(v ...*Template) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowDefinitionIDs(ids...) + return _u.AddTemplateIDs(ids...) } -// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowInstanceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowInstanceIDs(ids...) +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. +func (_u *OrganizationUpdate) AddIntegrationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIntegrationIDs(ids...) return _u } -// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. -func (_u *OrganizationUpdate) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdate { +// AddIntegrations adds the "integrations" edges to the Integration entity. +func (_u *OrganizationUpdate) AddIntegrations(v ...*Integration) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowInstanceIDs(ids...) + return _u.AddIntegrationIDs(ids...) } -// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowEventIDs(ids...) +// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. +func (_u *OrganizationUpdate) AddDocumentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDocumentIDs(ids...) return _u } -// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. -func (_u *OrganizationUpdate) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdate { +// AddDocuments adds the "documents" edges to the DocumentData entity. +func (_u *OrganizationUpdate) AddDocuments(v ...*DocumentData) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowEventIDs(ids...) + return _u.AddDocumentIDs(ids...) } -// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowAssignmentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowAssignmentIDs(ids...) +// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. +func (_u *OrganizationUpdate) AddOrgSubscriptionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddOrgSubscriptionIDs(ids...) return _u } -// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. -func (_u *OrganizationUpdate) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdate { +// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. +func (_u *OrganizationUpdate) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowAssignmentIDs(ids...) + return _u.AddOrgSubscriptionIDs(ids...) } -// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowAssignmentTargetIDs(ids...) +// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. +func (_u *OrganizationUpdate) AddOrgProductIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddOrgProductIDs(ids...) return _u } -// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. -func (_u *OrganizationUpdate) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdate { +// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. +func (_u *OrganizationUpdate) AddOrgProducts(v ...*OrgProduct) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowAssignmentTargetIDs(ids...) + return _u.AddOrgProductIDs(ids...) } -// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowObjectRefIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowObjectRefIDs(ids...) +// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. +func (_u *OrganizationUpdate) AddOrgPriceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddOrgPriceIDs(ids...) return _u } -// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. -func (_u *OrganizationUpdate) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdate { +// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. +func (_u *OrganizationUpdate) AddOrgPrices(v ...*OrgPrice) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowObjectRefIDs(ids...) + return _u.AddOrgPriceIDs(ids...) } -// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. -func (_u *OrganizationUpdate) AddWorkflowProposalIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddWorkflowProposalIDs(ids...) +// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. +func (_u *OrganizationUpdate) AddOrgModuleIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddOrgModuleIDs(ids...) return _u } -// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. -func (_u *OrganizationUpdate) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdate { +// AddOrgModules adds the "org_modules" edges to the OrgModule entity. +func (_u *OrganizationUpdate) AddOrgModules(v ...*OrgModule) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowProposalIDs(ids...) + return _u.AddOrgModuleIDs(ids...) } -// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. -func (_u *OrganizationUpdate) AddDirectoryAccountIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDirectoryAccountIDs(ids...) +// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. +func (_u *OrganizationUpdate) AddInviteIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddInviteIDs(ids...) return _u } -// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. -func (_u *OrganizationUpdate) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdate { +// AddInvites adds the "invites" edges to the Invite entity. +func (_u *OrganizationUpdate) AddInvites(v ...*Invite) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDirectoryAccountIDs(ids...) + return _u.AddInviteIDs(ids...) } -// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. -func (_u *OrganizationUpdate) AddDirectoryGroupIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDirectoryGroupIDs(ids...) +// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. +func (_u *OrganizationUpdate) AddSubscriberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubscriberIDs(ids...) return _u } -// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. -func (_u *OrganizationUpdate) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdate { +// AddSubscribers adds the "subscribers" edges to the Subscriber entity. +func (_u *OrganizationUpdate) AddSubscribers(v ...*Subscriber) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDirectoryGroupIDs(ids...) + return _u.AddSubscriberIDs(ids...) } -// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. -func (_u *OrganizationUpdate) AddDirectoryMembershipIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDirectoryMembershipIDs(ids...) +// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. +func (_u *OrganizationUpdate) AddEntityIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEntityIDs(ids...) return _u } -// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. -func (_u *OrganizationUpdate) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdate { +// AddEntities adds the "entities" edges to the Entity entity. +func (_u *OrganizationUpdate) AddEntities(v ...*Entity) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDirectoryMembershipIDs(ids...) + return _u.AddEntityIDs(ids...) } -// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. -func (_u *OrganizationUpdate) AddDirectorySyncRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDirectorySyncRunIDs(ids...) +// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. +func (_u *OrganizationUpdate) AddPlatformIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddPlatformIDs(ids...) return _u } -// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. -func (_u *OrganizationUpdate) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdate { +// AddPlatforms adds the "platforms" edges to the Platform entity. +func (_u *OrganizationUpdate) AddPlatforms(v ...*Platform) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDirectorySyncRunIDs(ids...) + return _u.AddPlatformIDs(ids...) } -// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. -func (_u *OrganizationUpdate) AddDiscussionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddDiscussionIDs(ids...) +// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. +func (_u *OrganizationUpdate) AddIdentityHolderIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddIdentityHolderIDs(ids...) return _u } -// AddDiscussions adds the "discussions" edges to the Discussion entity. -func (_u *OrganizationUpdate) AddDiscussions(v ...*Discussion) *OrganizationUpdate { +// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. +func (_u *OrganizationUpdate) AddIdentityHolders(v ...*IdentityHolder) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDiscussionIDs(ids...) + return _u.AddIdentityHolderIDs(ids...) } -// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. -func (_u *OrganizationUpdate) AddVendorScoringConfigIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddVendorScoringConfigIDs(ids...) +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_u *OrganizationUpdate) AddCampaignIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCampaignIDs(ids...) return _u } -// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. -func (_u *OrganizationUpdate) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdate { +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_u *OrganizationUpdate) AddCampaigns(v ...*Campaign) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVendorScoringConfigIDs(ids...) + return _u.AddCampaignIDs(ids...) } -// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. -func (_u *OrganizationUpdate) AddVendorRiskScoreIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddVendorRiskScoreIDs(ids...) +// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. +func (_u *OrganizationUpdate) AddCampaignTargetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCampaignTargetIDs(ids...) return _u } -// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. -func (_u *OrganizationUpdate) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdate { +// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. +func (_u *OrganizationUpdate) AddCampaignTargets(v ...*CampaignTarget) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVendorRiskScoreIDs(ids...) + return _u.AddCampaignTargetIDs(ids...) } -// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. -func (_u *OrganizationUpdate) AddMemberIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddMemberIDs(ids...) +// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. +func (_u *OrganizationUpdate) AddEntityTypeIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEntityTypeIDs(ids...) return _u } -// AddMembers adds the "members" edges to the OrgMembership entity. -func (_u *OrganizationUpdate) AddMembers(v ...*OrgMembership) *OrganizationUpdate { +// AddEntityTypes adds the "entity_types" edges to the EntityType entity. +func (_u *OrganizationUpdate) AddEntityTypes(v ...*EntityType) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddMemberIDs(ids...) + return _u.AddEntityTypeIDs(ids...) } -// Mutation returns the OrganizationMutation object of the builder. -func (_u *OrganizationUpdate) Mutation() *OrganizationMutation { - return _u.mutation +// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. +func (_u *OrganizationUpdate) AddContactIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddContactIDs(ids...) + return _u } -// ClearControlCreators clears all "control_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearControlCreators() *OrganizationUpdate { - _u.mutation.ClearControlCreators() - return _u +// AddContacts adds the "contacts" edges to the Contact entity. +func (_u *OrganizationUpdate) AddContacts(v ...*Contact) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddContactIDs(ids...) } -// RemoveControlCreatorIDs removes the "control_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveControlCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlCreatorIDs(ids...) +// AddNoteIDs adds the "notes" edge to the Note entity by IDs. +func (_u *OrganizationUpdate) AddNoteIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNoteIDs(ids...) return _u } -// RemoveControlCreators removes "control_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveControlCreators(v ...*Group) *OrganizationUpdate { +// AddNotes adds the "notes" edges to the Note entity. +func (_u *OrganizationUpdate) AddNotes(v ...*Note) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlCreatorIDs(ids...) -} - -// ClearControlImplementationCreators clears all "control_implementation_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearControlImplementationCreators() *OrganizationUpdate { - _u.mutation.ClearControlImplementationCreators() - return _u + return _u.AddNoteIDs(ids...) } -// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveControlImplementationCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlImplementationCreatorIDs(ids...) +// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. +func (_u *OrganizationUpdate) AddTaskIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTaskIDs(ids...) return _u } -// RemoveControlImplementationCreators removes "control_implementation_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveControlImplementationCreators(v ...*Group) *OrganizationUpdate { +// AddTasks adds the "tasks" edges to the Task entity. +func (_u *OrganizationUpdate) AddTasks(v ...*Task) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlImplementationCreatorIDs(ids...) -} - -// ClearControlObjectiveCreators clears all "control_objective_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearControlObjectiveCreators() *OrganizationUpdate { - _u.mutation.ClearControlObjectiveCreators() - return _u + return _u.AddTaskIDs(ids...) } -// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlObjectiveCreatorIDs(ids...) +// AddProgramIDs adds the "programs" edge to the Program entity by IDs. +func (_u *OrganizationUpdate) AddProgramIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddProgramIDs(ids...) return _u } -// RemoveControlObjectiveCreators removes "control_objective_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveControlObjectiveCreators(v ...*Group) *OrganizationUpdate { +// AddPrograms adds the "programs" edges to the Program entity. +func (_u *OrganizationUpdate) AddPrograms(v ...*Program) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlObjectiveCreatorIDs(ids...) -} - -// ClearEvidenceCreators clears all "evidence_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearEvidenceCreators() *OrganizationUpdate { - _u.mutation.ClearEvidenceCreators() - return _u + return _u.AddProgramIDs(ids...) } -// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveEvidenceCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEvidenceCreatorIDs(ids...) +// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. +func (_u *OrganizationUpdate) AddSystemDetailIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSystemDetailIDs(ids...) return _u } -// RemoveEvidenceCreators removes "evidence_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveEvidenceCreators(v ...*Group) *OrganizationUpdate { +// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. +func (_u *OrganizationUpdate) AddSystemDetails(v ...*SystemDetail) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEvidenceCreatorIDs(ids...) -} - -// ClearAssetCreators clears all "asset_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearAssetCreators() *OrganizationUpdate { - _u.mutation.ClearAssetCreators() - return _u + return _u.AddSystemDetailIDs(ids...) } -// RemoveAssetCreatorIDs removes the "asset_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveAssetCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveAssetCreatorIDs(ids...) +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (_u *OrganizationUpdate) AddProcedureIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddProcedureIDs(ids...) return _u } -// RemoveAssetCreators removes "asset_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveAssetCreators(v ...*Group) *OrganizationUpdate { +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (_u *OrganizationUpdate) AddProcedures(v ...*Procedure) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveAssetCreatorIDs(ids...) -} - -// ClearFindingCreators clears all "finding_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearFindingCreators() *OrganizationUpdate { - _u.mutation.ClearFindingCreators() - return _u + return _u.AddProcedureIDs(ids...) } -// RemoveFindingCreatorIDs removes the "finding_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveFindingCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveFindingCreatorIDs(ids...) +// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. +func (_u *OrganizationUpdate) AddInternalPolicyIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddInternalPolicyIDs(ids...) return _u } -// RemoveFindingCreators removes "finding_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveFindingCreators(v ...*Group) *OrganizationUpdate { +// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. +func (_u *OrganizationUpdate) AddInternalPolicies(v ...*InternalPolicy) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveFindingCreatorIDs(ids...) -} - -// ClearVulnerabilityCreators clears all "vulnerability_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearVulnerabilityCreators() *OrganizationUpdate { - _u.mutation.ClearVulnerabilityCreators() - return _u + return _u.AddInternalPolicyIDs(ids...) } -// RemoveVulnerabilityCreatorIDs removes the "vulnerability_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveVulnerabilityCreatorIDs(ids...) +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (_u *OrganizationUpdate) AddRiskIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRiskIDs(ids...) return _u } -// RemoveVulnerabilityCreators removes "vulnerability_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveVulnerabilityCreators(v ...*Group) *OrganizationUpdate { +// AddRisks adds the "risks" edges to the Risk entity. +func (_u *OrganizationUpdate) AddRisks(v ...*Risk) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveVulnerabilityCreatorIDs(ids...) -} - -// ClearGroupCreators clears all "group_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearGroupCreators() *OrganizationUpdate { - _u.mutation.ClearGroupCreators() - return _u + return _u.AddRiskIDs(ids...) } -// RemoveGroupCreatorIDs removes the "group_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveGroupCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveGroupCreatorIDs(ids...) +// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. +func (_u *OrganizationUpdate) AddControlObjectiveIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlObjectiveIDs(ids...) return _u } -// RemoveGroupCreators removes "group_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveGroupCreators(v ...*Group) *OrganizationUpdate { +// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. +func (_u *OrganizationUpdate) AddControlObjectives(v ...*ControlObjective) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveGroupCreatorIDs(ids...) -} - -// ClearInternalPolicyCreators clears all "internal_policy_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearInternalPolicyCreators() *OrganizationUpdate { - _u.mutation.ClearInternalPolicyCreators() - return _u + return _u.AddControlObjectiveIDs(ids...) } -// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveInternalPolicyCreatorIDs(ids...) +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (_u *OrganizationUpdate) AddNarrativeIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNarrativeIDs(ids...) return _u } -// RemoveInternalPolicyCreators removes "internal_policy_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveInternalPolicyCreators(v ...*Group) *OrganizationUpdate { +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (_u *OrganizationUpdate) AddNarratives(v ...*Narrative) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveInternalPolicyCreatorIDs(ids...) -} - -// ClearMappedControlCreators clears all "mapped_control_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearMappedControlCreators() *OrganizationUpdate { - _u.mutation.ClearMappedControlCreators() - return _u + return _u.AddNarrativeIDs(ids...) } -// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveMappedControlCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveMappedControlCreatorIDs(ids...) +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (_u *OrganizationUpdate) AddControlIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlIDs(ids...) return _u } -// RemoveMappedControlCreators removes "mapped_control_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveMappedControlCreators(v ...*Group) *OrganizationUpdate { +// AddControls adds the "controls" edges to the Control entity. +func (_u *OrganizationUpdate) AddControls(v ...*Control) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveMappedControlCreatorIDs(ids...) -} - -// ClearNarrativeCreators clears all "narrative_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearNarrativeCreators() *OrganizationUpdate { - _u.mutation.ClearNarrativeCreators() - return _u + return _u.AddControlIDs(ids...) } -// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveNarrativeCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNarrativeCreatorIDs(ids...) +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (_u *OrganizationUpdate) AddSubcontrolIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubcontrolIDs(ids...) return _u } -// RemoveNarrativeCreators removes "narrative_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveNarrativeCreators(v ...*Group) *OrganizationUpdate { +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (_u *OrganizationUpdate) AddSubcontrols(v ...*Subcontrol) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNarrativeCreatorIDs(ids...) -} - -// ClearProcedureCreators clears all "procedure_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearProcedureCreators() *OrganizationUpdate { - _u.mutation.ClearProcedureCreators() - return _u + return _u.AddSubcontrolIDs(ids...) } -// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveProcedureCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveProcedureCreatorIDs(ids...) +// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. +func (_u *OrganizationUpdate) AddControlImplementationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddControlImplementationIDs(ids...) return _u } -// RemoveProcedureCreators removes "procedure_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveProcedureCreators(v ...*Group) *OrganizationUpdate { +// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. +func (_u *OrganizationUpdate) AddControlImplementations(v ...*ControlImplementation) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveProcedureCreatorIDs(ids...) -} - -// ClearProgramCreators clears all "program_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearProgramCreators() *OrganizationUpdate { - _u.mutation.ClearProgramCreators() - return _u + return _u.AddControlImplementationIDs(ids...) } -// RemoveProgramCreatorIDs removes the "program_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveProgramCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveProgramCreatorIDs(ids...) +// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. +func (_u *OrganizationUpdate) AddMappedControlIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddMappedControlIDs(ids...) return _u } -// RemoveProgramCreators removes "program_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveProgramCreators(v ...*Group) *OrganizationUpdate { +// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. +func (_u *OrganizationUpdate) AddMappedControls(v ...*MappedControl) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveProgramCreatorIDs(ids...) -} - -// ClearRiskCreators clears all "risk_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearRiskCreators() *OrganizationUpdate { - _u.mutation.ClearRiskCreators() - return _u + return _u.AddMappedControlIDs(ids...) } -// RemoveRiskCreatorIDs removes the "risk_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveRiskCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveRiskCreatorIDs(ids...) +// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. +func (_u *OrganizationUpdate) AddEvidenceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddEvidenceIDs(ids...) return _u } -// RemoveRiskCreators removes "risk_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveRiskCreators(v ...*Group) *OrganizationUpdate { +// AddEvidence adds the "evidence" edges to the Evidence entity. +func (_u *OrganizationUpdate) AddEvidence(v ...*Evidence) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveRiskCreatorIDs(ids...) + return _u.AddEvidenceIDs(ids...) } -// ClearIdentityHolderCreators clears all "identity_holder_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearIdentityHolderCreators() *OrganizationUpdate { - _u.mutation.ClearIdentityHolderCreators() - return _u -} - -// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveIdentityHolderCreatorIDs(ids...) +// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. +func (_u *OrganizationUpdate) AddStandardIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddStandardIDs(ids...) return _u } -// RemoveIdentityHolderCreators removes "identity_holder_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveIdentityHolderCreators(v ...*Group) *OrganizationUpdate { +// AddStandards adds the "standards" edges to the Standard entity. +func (_u *OrganizationUpdate) AddStandards(v ...*Standard) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveIdentityHolderCreatorIDs(ids...) -} - -// ClearScheduledJobCreators clears all "scheduled_job_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearScheduledJobCreators() *OrganizationUpdate { - _u.mutation.ClearScheduledJobCreators() - return _u + return _u.AddStandardIDs(ids...) } -// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveScheduledJobCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveScheduledJobCreatorIDs(ids...) +// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. +func (_u *OrganizationUpdate) AddActionPlanIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddActionPlanIDs(ids...) return _u } -// RemoveScheduledJobCreators removes "scheduled_job_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveScheduledJobCreators(v ...*Group) *OrganizationUpdate { +// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. +func (_u *OrganizationUpdate) AddActionPlans(v ...*ActionPlan) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveScheduledJobCreatorIDs(ids...) -} - -// ClearStandardCreators clears all "standard_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearStandardCreators() *OrganizationUpdate { - _u.mutation.ClearStandardCreators() - return _u + return _u.AddActionPlanIDs(ids...) } -// RemoveStandardCreatorIDs removes the "standard_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveStandardCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveStandardCreatorIDs(ids...) +// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. +func (_u *OrganizationUpdate) AddCustomDomainIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCustomDomainIDs(ids...) return _u } -// RemoveStandardCreators removes "standard_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveStandardCreators(v ...*Group) *OrganizationUpdate { +// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. +func (_u *OrganizationUpdate) AddCustomDomains(v ...*CustomDomain) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveStandardCreatorIDs(ids...) -} - -// ClearTemplateCreators clears all "template_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearTemplateCreators() *OrganizationUpdate { - _u.mutation.ClearTemplateCreators() - return _u + return _u.AddCustomDomainIDs(ids...) } -// RemoveTemplateCreatorIDs removes the "template_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveTemplateCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTemplateCreatorIDs(ids...) +// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerIDs(ids...) return _u } -// RemoveTemplateCreators removes "template_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveTemplateCreators(v ...*Group) *OrganizationUpdate { +// AddJobRunners adds the "job_runners" edges to the JobRunner entity. +func (_u *OrganizationUpdate) AddJobRunners(v ...*JobRunner) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTemplateCreatorIDs(ids...) -} - -// ClearSubprocessorCreators clears all "subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearSubprocessorCreators() *OrganizationUpdate { - _u.mutation.ClearSubprocessorCreators() - return _u + return _u.AddJobRunnerIDs(ids...) } -// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSubprocessorCreatorIDs(ids...) +// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerTokenIDs(ids...) return _u } -// RemoveSubprocessorCreators removes "subprocessor_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveSubprocessorCreators(v ...*Group) *OrganizationUpdate { +// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. +func (_u *OrganizationUpdate) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSubprocessorCreatorIDs(ids...) -} - -// ClearTrustCenterDocCreators clears all "trust_center_doc_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearTrustCenterDocCreators() *OrganizationUpdate { - _u.mutation.ClearTrustCenterDocCreators() - return _u + return _u.AddJobRunnerTokenIDs(ids...) } -// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTrustCenterDocCreatorIDs(ids...) +// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. +func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobRunnerRegistrationTokenIDs(ids...) return _u } -// RemoveTrustCenterDocCreators removes "trust_center_doc_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveTrustCenterDocCreators(v ...*Group) *OrganizationUpdate { +// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. +func (_u *OrganizationUpdate) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTrustCenterDocCreatorIDs(ids...) -} - -// ClearTrustCenterSubprocessorCreators clears all "trust_center_subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearTrustCenterSubprocessorCreators() *OrganizationUpdate { - _u.mutation.ClearTrustCenterSubprocessorCreators() - return _u + return _u.AddJobRunnerRegistrationTokenIDs(ids...) } -// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTrustCenterSubprocessorCreatorIDs(ids...) +// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. +func (_u *OrganizationUpdate) AddDNSVerificationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDNSVerificationIDs(ids...) return _u } -// RemoveTrustCenterSubprocessorCreators removes "trust_center_subprocessor_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdate { +// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. +func (_u *OrganizationUpdate) AddDNSVerifications(v ...*DNSVerification) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTrustCenterSubprocessorCreatorIDs(ids...) -} - -// ClearActionPlanCreators clears all "action_plan_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearActionPlanCreators() *OrganizationUpdate { - _u.mutation.ClearActionPlanCreators() - return _u + return _u.AddDNSVerificationIDs(ids...) } -// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveActionPlanCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveActionPlanCreatorIDs(ids...) +// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. +func (_u *OrganizationUpdate) AddJobTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobTemplateIDs(ids...) return _u } -// RemoveActionPlanCreators removes "action_plan_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveActionPlanCreators(v ...*Group) *OrganizationUpdate { +// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. +func (_u *OrganizationUpdate) AddJobTemplates(v ...*JobTemplate) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveActionPlanCreatorIDs(ids...) -} - -// ClearChildren clears all "children" edges to the Organization entity. -func (_u *OrganizationUpdate) ClearChildren() *OrganizationUpdate { - _u.mutation.ClearChildren() - return _u + return _u.AddJobTemplateIDs(ids...) } -// RemoveChildIDs removes the "children" edge to Organization entities by IDs. -func (_u *OrganizationUpdate) RemoveChildIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveChildIDs(ids...) +// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. +func (_u *OrganizationUpdate) AddScheduledJobIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScheduledJobIDs(ids...) return _u } -// RemoveChildren removes "children" edges to Organization entities. -func (_u *OrganizationUpdate) RemoveChildren(v ...*Organization) *OrganizationUpdate { +// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. +func (_u *OrganizationUpdate) AddScheduledJobs(v ...*ScheduledJob) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveChildIDs(ids...) + return _u.AddScheduledJobIDs(ids...) } -// ClearSetting clears the "setting" edge to the OrganizationSetting entity. -func (_u *OrganizationUpdate) ClearSetting() *OrganizationUpdate { - _u.mutation.ClearSetting() +// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. +func (_u *OrganizationUpdate) AddJobResultIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddJobResultIDs(ids...) return _u } -// ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity. -func (_u *OrganizationUpdate) ClearPersonalAccessTokens() *OrganizationUpdate { - _u.mutation.ClearPersonalAccessTokens() - return _u +// AddJobResults adds the "job_results" edges to the JobResult entity. +func (_u *OrganizationUpdate) AddJobResults(v ...*JobResult) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddJobResultIDs(ids...) } -// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs. -func (_u *OrganizationUpdate) RemovePersonalAccessTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemovePersonalAccessTokenIDs(ids...) +// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. +func (_u *OrganizationUpdate) AddScheduledJobRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScheduledJobRunIDs(ids...) return _u } -// RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities. -func (_u *OrganizationUpdate) RemovePersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdate { +// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. +func (_u *OrganizationUpdate) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemovePersonalAccessTokenIDs(ids...) -} - -// ClearAPITokens clears all "api_tokens" edges to the APIToken entity. -func (_u *OrganizationUpdate) ClearAPITokens() *OrganizationUpdate { - _u.mutation.ClearAPITokens() - return _u + return _u.AddScheduledJobRunIDs(ids...) } -// RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs. -func (_u *OrganizationUpdate) RemoveAPITokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveAPITokenIDs(ids...) +// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterIDs(ids...) return _u } -// RemoveAPITokens removes "api_tokens" edges to APIToken entities. -func (_u *OrganizationUpdate) RemoveAPITokens(v ...*APIToken) *OrganizationUpdate { +// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. +func (_u *OrganizationUpdate) AddTrustCenters(v ...*TrustCenter) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveAPITokenIDs(ids...) -} - -// ClearEmailTemplates clears all "email_templates" edges to the EmailTemplate entity. -func (_u *OrganizationUpdate) ClearEmailTemplates() *OrganizationUpdate { - _u.mutation.ClearEmailTemplates() - return _u + return _u.AddTrustCenterIDs(ids...) } -// RemoveEmailTemplateIDs removes the "email_templates" edge to EmailTemplate entities by IDs. -func (_u *OrganizationUpdate) RemoveEmailTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEmailTemplateIDs(ids...) +// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. +func (_u *OrganizationUpdate) AddAssetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAssetIDs(ids...) return _u } -// RemoveEmailTemplates removes "email_templates" edges to EmailTemplate entities. -func (_u *OrganizationUpdate) RemoveEmailTemplates(v ...*EmailTemplate) *OrganizationUpdate { +// AddAssets adds the "assets" edges to the Asset entity. +func (_u *OrganizationUpdate) AddAssets(v ...*Asset) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEmailTemplateIDs(ids...) -} - -// ClearIntegrationWebhooks clears all "integration_webhooks" edges to the IntegrationWebhook entity. -func (_u *OrganizationUpdate) ClearIntegrationWebhooks() *OrganizationUpdate { - _u.mutation.ClearIntegrationWebhooks() - return _u + return _u.AddAssetIDs(ids...) } -// RemoveIntegrationWebhookIDs removes the "integration_webhooks" edge to IntegrationWebhook entities by IDs. -func (_u *OrganizationUpdate) RemoveIntegrationWebhookIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveIntegrationWebhookIDs(ids...) +// AddScanIDs adds the "scans" edge to the Scan entity by IDs. +func (_u *OrganizationUpdate) AddScanIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddScanIDs(ids...) return _u } -// RemoveIntegrationWebhooks removes "integration_webhooks" edges to IntegrationWebhook entities. -func (_u *OrganizationUpdate) RemoveIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdate { +// AddScans adds the "scans" edges to the Scan entity. +func (_u *OrganizationUpdate) AddScans(v ...*Scan) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveIntegrationWebhookIDs(ids...) -} - -// ClearIntegrationRuns clears all "integration_runs" edges to the IntegrationRun entity. -func (_u *OrganizationUpdate) ClearIntegrationRuns() *OrganizationUpdate { - _u.mutation.ClearIntegrationRuns() - return _u + return _u.AddScanIDs(ids...) } -// RemoveIntegrationRunIDs removes the "integration_runs" edge to IntegrationRun entities by IDs. -func (_u *OrganizationUpdate) RemoveIntegrationRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveIntegrationRunIDs(ids...) +// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. +func (_u *OrganizationUpdate) AddSLADefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSLADefinitionIDs(ids...) return _u } -// RemoveIntegrationRuns removes "integration_runs" edges to IntegrationRun entities. -func (_u *OrganizationUpdate) RemoveIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdate { +// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. +func (_u *OrganizationUpdate) AddSLADefinitions(v ...*SLADefinition) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveIntegrationRunIDs(ids...) -} - -// ClearNotificationPreferences clears all "notification_preferences" edges to the NotificationPreference entity. -func (_u *OrganizationUpdate) ClearNotificationPreferences() *OrganizationUpdate { - _u.mutation.ClearNotificationPreferences() - return _u + return _u.AddSLADefinitionIDs(ids...) } -// RemoveNotificationPreferenceIDs removes the "notification_preferences" edge to NotificationPreference entities by IDs. -func (_u *OrganizationUpdate) RemoveNotificationPreferenceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNotificationPreferenceIDs(ids...) +// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. +func (_u *OrganizationUpdate) AddSubprocessorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddSubprocessorIDs(ids...) return _u } -// RemoveNotificationPreferences removes "notification_preferences" edges to NotificationPreference entities. -func (_u *OrganizationUpdate) RemoveNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdate { +// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. +func (_u *OrganizationUpdate) AddSubprocessors(v ...*Subprocessor) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNotificationPreferenceIDs(ids...) -} - -// ClearNotificationTemplates clears all "notification_templates" edges to the NotificationTemplate entity. -func (_u *OrganizationUpdate) ClearNotificationTemplates() *OrganizationUpdate { - _u.mutation.ClearNotificationTemplates() - return _u + return _u.AddSubprocessorIDs(ids...) } -// RemoveNotificationTemplateIDs removes the "notification_templates" edge to NotificationTemplate entities by IDs. -func (_u *OrganizationUpdate) RemoveNotificationTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNotificationTemplateIDs(ids...) +// AddExportIDs adds the "exports" edge to the Export entity by IDs. +func (_u *OrganizationUpdate) AddExportIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddExportIDs(ids...) return _u } -// RemoveNotificationTemplates removes "notification_templates" edges to NotificationTemplate entities. -func (_u *OrganizationUpdate) RemoveNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdate { +// AddExports adds the "exports" edges to the Export entity. +func (_u *OrganizationUpdate) AddExports(v ...*Export) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNotificationTemplateIDs(ids...) -} - -// ClearUsers clears all "users" edges to the User entity. -func (_u *OrganizationUpdate) ClearUsers() *OrganizationUpdate { - _u.mutation.ClearUsers() - return _u + return _u.AddExportIDs(ids...) } -// RemoveUserIDs removes the "users" edge to User entities by IDs. -func (_u *OrganizationUpdate) RemoveUserIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveUserIDs(ids...) +// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. +func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTrustCenterWatermarkConfigIDs(ids...) return _u } -// RemoveUsers removes "users" edges to User entities. -func (_u *OrganizationUpdate) RemoveUsers(v ...*User) *OrganizationUpdate { +// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. +func (_u *OrganizationUpdate) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveUserIDs(ids...) -} - -// ClearFiles clears all "files" edges to the File entity. -func (_u *OrganizationUpdate) ClearFiles() *OrganizationUpdate { - _u.mutation.ClearFiles() - return _u + return _u.AddTrustCenterWatermarkConfigIDs(ids...) } -// RemoveFileIDs removes the "files" edge to File entities by IDs. -func (_u *OrganizationUpdate) RemoveFileIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveFileIDs(ids...) +// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. +func (_u *OrganizationUpdate) AddImpersonationEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddImpersonationEventIDs(ids...) return _u } -// RemoveFiles removes "files" edges to File entities. -func (_u *OrganizationUpdate) RemoveFiles(v ...*File) *OrganizationUpdate { +// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. +func (_u *OrganizationUpdate) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveFileIDs(ids...) -} - -// ClearEvents clears all "events" edges to the Event entity. -func (_u *OrganizationUpdate) ClearEvents() *OrganizationUpdate { - _u.mutation.ClearEvents() - return _u + return _u.AddImpersonationEventIDs(ids...) } -// RemoveEventIDs removes the "events" edge to Event entities by IDs. -func (_u *OrganizationUpdate) RemoveEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEventIDs(ids...) +// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. +func (_u *OrganizationUpdate) AddAssessmentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAssessmentIDs(ids...) return _u } -// RemoveEvents removes "events" edges to Event entities. -func (_u *OrganizationUpdate) RemoveEvents(v ...*Event) *OrganizationUpdate { +// AddAssessments adds the "assessments" edges to the Assessment entity. +func (_u *OrganizationUpdate) AddAssessments(v ...*Assessment) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEventIDs(ids...) -} - -// ClearSecrets clears all "secrets" edges to the Hush entity. -func (_u *OrganizationUpdate) ClearSecrets() *OrganizationUpdate { - _u.mutation.ClearSecrets() - return _u + return _u.AddAssessmentIDs(ids...) } -// RemoveSecretIDs removes the "secrets" edge to Hush entities by IDs. -func (_u *OrganizationUpdate) RemoveSecretIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSecretIDs(ids...) +// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. +func (_u *OrganizationUpdate) AddAssessmentResponseIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAssessmentResponseIDs(ids...) return _u } -// RemoveSecrets removes "secrets" edges to Hush entities. -func (_u *OrganizationUpdate) RemoveSecrets(v ...*Hush) *OrganizationUpdate { +// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. +func (_u *OrganizationUpdate) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSecretIDs(ids...) + return _u.AddAssessmentResponseIDs(ids...) } -// ClearAvatarFile clears the "avatar_file" edge to the File entity. -func (_u *OrganizationUpdate) ClearAvatarFile() *OrganizationUpdate { - _u.mutation.ClearAvatarFile() +// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. +func (_u *OrganizationUpdate) AddCustomTypeEnumIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddCustomTypeEnumIDs(ids...) return _u } -// ClearGroups clears all "groups" edges to the Group entity. -func (_u *OrganizationUpdate) ClearGroups() *OrganizationUpdate { - _u.mutation.ClearGroups() - return _u +// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. +func (_u *OrganizationUpdate) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddCustomTypeEnumIDs(ids...) } -// RemoveGroupIDs removes the "groups" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveGroupIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveGroupIDs(ids...) +// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. +func (_u *OrganizationUpdate) AddTagDefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddTagDefinitionIDs(ids...) return _u } -// RemoveGroups removes "groups" edges to Group entities. -func (_u *OrganizationUpdate) RemoveGroups(v ...*Group) *OrganizationUpdate { +// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. +func (_u *OrganizationUpdate) AddTagDefinitions(v ...*TagDefinition) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveGroupIDs(ids...) -} - -// ClearTemplates clears all "templates" edges to the Template entity. -func (_u *OrganizationUpdate) ClearTemplates() *OrganizationUpdate { - _u.mutation.ClearTemplates() - return _u + return _u.AddTagDefinitionIDs(ids...) } -// RemoveTemplateIDs removes the "templates" edge to Template entities by IDs. -func (_u *OrganizationUpdate) RemoveTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTemplateIDs(ids...) +// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. +func (_u *OrganizationUpdate) AddRemediationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddRemediationIDs(ids...) return _u } -// RemoveTemplates removes "templates" edges to Template entities. -func (_u *OrganizationUpdate) RemoveTemplates(v ...*Template) *OrganizationUpdate { +// AddRemediations adds the "remediations" edges to the Remediation entity. +func (_u *OrganizationUpdate) AddRemediations(v ...*Remediation) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTemplateIDs(ids...) -} - -// ClearIntegrations clears all "integrations" edges to the Integration entity. -func (_u *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate { - _u.mutation.ClearIntegrations() - return _u + return _u.AddRemediationIDs(ids...) } -// RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs. -func (_u *OrganizationUpdate) RemoveIntegrationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveIntegrationIDs(ids...) +// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. +func (_u *OrganizationUpdate) AddFindingIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddFindingIDs(ids...) return _u } -// RemoveIntegrations removes "integrations" edges to Integration entities. -func (_u *OrganizationUpdate) RemoveIntegrations(v ...*Integration) *OrganizationUpdate { +// AddFindings adds the "findings" edges to the Finding entity. +func (_u *OrganizationUpdate) AddFindings(v ...*Finding) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveIntegrationIDs(ids...) -} - -// ClearDocuments clears all "documents" edges to the DocumentData entity. -func (_u *OrganizationUpdate) ClearDocuments() *OrganizationUpdate { - _u.mutation.ClearDocuments() - return _u + return _u.AddFindingIDs(ids...) } -// RemoveDocumentIDs removes the "documents" edge to DocumentData entities by IDs. -func (_u *OrganizationUpdate) RemoveDocumentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDocumentIDs(ids...) +// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. +func (_u *OrganizationUpdate) AddReviewIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddReviewIDs(ids...) return _u } -// RemoveDocuments removes "documents" edges to DocumentData entities. -func (_u *OrganizationUpdate) RemoveDocuments(v ...*DocumentData) *OrganizationUpdate { +// AddReviews adds the "reviews" edges to the Review entity. +func (_u *OrganizationUpdate) AddReviews(v ...*Review) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDocumentIDs(ids...) -} - -// ClearOrgSubscriptions clears all "org_subscriptions" edges to the OrgSubscription entity. -func (_u *OrganizationUpdate) ClearOrgSubscriptions() *OrganizationUpdate { - _u.mutation.ClearOrgSubscriptions() - return _u + return _u.AddReviewIDs(ids...) } -// RemoveOrgSubscriptionIDs removes the "org_subscriptions" edge to OrgSubscription entities by IDs. -func (_u *OrganizationUpdate) RemoveOrgSubscriptionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveOrgSubscriptionIDs(ids...) +// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. +func (_u *OrganizationUpdate) AddVulnerabilityIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddVulnerabilityIDs(ids...) return _u } -// RemoveOrgSubscriptions removes "org_subscriptions" edges to OrgSubscription entities. -func (_u *OrganizationUpdate) RemoveOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdate { +// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. +func (_u *OrganizationUpdate) AddVulnerabilities(v ...*Vulnerability) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveOrgSubscriptionIDs(ids...) -} - -// ClearOrgProducts clears all "org_products" edges to the OrgProduct entity. -func (_u *OrganizationUpdate) ClearOrgProducts() *OrganizationUpdate { - _u.mutation.ClearOrgProducts() - return _u + return _u.AddVulnerabilityIDs(ids...) } -// RemoveOrgProductIDs removes the "org_products" edge to OrgProduct entities by IDs. -func (_u *OrganizationUpdate) RemoveOrgProductIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveOrgProductIDs(ids...) +// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. +func (_u *OrganizationUpdate) AddNotificationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddNotificationIDs(ids...) return _u } -// RemoveOrgProducts removes "org_products" edges to OrgProduct entities. -func (_u *OrganizationUpdate) RemoveOrgProducts(v ...*OrgProduct) *OrganizationUpdate { +// AddNotifications adds the "notifications" edges to the Notification entity. +func (_u *OrganizationUpdate) AddNotifications(v ...*Notification) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveOrgProductIDs(ids...) -} - -// ClearOrgPrices clears all "org_prices" edges to the OrgPrice entity. -func (_u *OrganizationUpdate) ClearOrgPrices() *OrganizationUpdate { - _u.mutation.ClearOrgPrices() - return _u + return _u.AddNotificationIDs(ids...) } -// RemoveOrgPriceIDs removes the "org_prices" edge to OrgPrice entities by IDs. -func (_u *OrganizationUpdate) RemoveOrgPriceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveOrgPriceIDs(ids...) +// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowDefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowDefinitionIDs(ids...) return _u } -// RemoveOrgPrices removes "org_prices" edges to OrgPrice entities. -func (_u *OrganizationUpdate) RemoveOrgPrices(v ...*OrgPrice) *OrganizationUpdate { +// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. +func (_u *OrganizationUpdate) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveOrgPriceIDs(ids...) + return _u.AddWorkflowDefinitionIDs(ids...) } -// ClearOrgModules clears all "org_modules" edges to the OrgModule entity. -func (_u *OrganizationUpdate) ClearOrgModules() *OrganizationUpdate { - _u.mutation.ClearOrgModules() - return _u -} +// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowInstanceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowInstanceIDs(ids...) + return _u +} -// RemoveOrgModuleIDs removes the "org_modules" edge to OrgModule entities by IDs. -func (_u *OrganizationUpdate) RemoveOrgModuleIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveOrgModuleIDs(ids...) +// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. +func (_u *OrganizationUpdate) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddWorkflowInstanceIDs(ids...) +} + +// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowEventIDs(ids...) return _u } -// RemoveOrgModules removes "org_modules" edges to OrgModule entities. -func (_u *OrganizationUpdate) RemoveOrgModules(v ...*OrgModule) *OrganizationUpdate { +// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. +func (_u *OrganizationUpdate) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveOrgModuleIDs(ids...) + return _u.AddWorkflowEventIDs(ids...) } -// ClearInvites clears all "invites" edges to the Invite entity. -func (_u *OrganizationUpdate) ClearInvites() *OrganizationUpdate { - _u.mutation.ClearInvites() +// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowAssignmentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowAssignmentIDs(ids...) return _u } -// RemoveInviteIDs removes the "invites" edge to Invite entities by IDs. -func (_u *OrganizationUpdate) RemoveInviteIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveInviteIDs(ids...) +// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. +func (_u *OrganizationUpdate) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddWorkflowAssignmentIDs(ids...) +} + +// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowAssignmentTargetIDs(ids...) return _u } -// RemoveInvites removes "invites" edges to Invite entities. -func (_u *OrganizationUpdate) RemoveInvites(v ...*Invite) *OrganizationUpdate { +// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. +func (_u *OrganizationUpdate) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveInviteIDs(ids...) + return _u.AddWorkflowAssignmentTargetIDs(ids...) } -// ClearSubscribers clears all "subscribers" edges to the Subscriber entity. -func (_u *OrganizationUpdate) ClearSubscribers() *OrganizationUpdate { - _u.mutation.ClearSubscribers() +// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowObjectRefIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowObjectRefIDs(ids...) return _u } -// RemoveSubscriberIDs removes the "subscribers" edge to Subscriber entities by IDs. -func (_u *OrganizationUpdate) RemoveSubscriberIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSubscriberIDs(ids...) +// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. +func (_u *OrganizationUpdate) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddWorkflowObjectRefIDs(ids...) +} + +// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. +func (_u *OrganizationUpdate) AddWorkflowProposalIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddWorkflowProposalIDs(ids...) return _u } -// RemoveSubscribers removes "subscribers" edges to Subscriber entities. -func (_u *OrganizationUpdate) RemoveSubscribers(v ...*Subscriber) *OrganizationUpdate { +// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. +func (_u *OrganizationUpdate) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSubscriberIDs(ids...) + return _u.AddWorkflowProposalIDs(ids...) } -// ClearEntities clears all "entities" edges to the Entity entity. -func (_u *OrganizationUpdate) ClearEntities() *OrganizationUpdate { - _u.mutation.ClearEntities() +// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. +func (_u *OrganizationUpdate) AddDirectoryAccountIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDirectoryAccountIDs(ids...) return _u } -// RemoveEntityIDs removes the "entities" edge to Entity entities by IDs. -func (_u *OrganizationUpdate) RemoveEntityIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEntityIDs(ids...) +// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. +func (_u *OrganizationUpdate) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddDirectoryAccountIDs(ids...) +} + +// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. +func (_u *OrganizationUpdate) AddDirectoryGroupIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDirectoryGroupIDs(ids...) return _u } -// RemoveEntities removes "entities" edges to Entity entities. -func (_u *OrganizationUpdate) RemoveEntities(v ...*Entity) *OrganizationUpdate { +// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. +func (_u *OrganizationUpdate) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEntityIDs(ids...) + return _u.AddDirectoryGroupIDs(ids...) } -// ClearPlatforms clears all "platforms" edges to the Platform entity. -func (_u *OrganizationUpdate) ClearPlatforms() *OrganizationUpdate { - _u.mutation.ClearPlatforms() +// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. +func (_u *OrganizationUpdate) AddDirectoryMembershipIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDirectoryMembershipIDs(ids...) return _u } -// RemovePlatformIDs removes the "platforms" edge to Platform entities by IDs. -func (_u *OrganizationUpdate) RemovePlatformIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemovePlatformIDs(ids...) +// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. +func (_u *OrganizationUpdate) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddDirectoryMembershipIDs(ids...) +} + +// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. +func (_u *OrganizationUpdate) AddDirectorySyncRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDirectorySyncRunIDs(ids...) return _u } -// RemovePlatforms removes "platforms" edges to Platform entities. -func (_u *OrganizationUpdate) RemovePlatforms(v ...*Platform) *OrganizationUpdate { +// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. +func (_u *OrganizationUpdate) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemovePlatformIDs(ids...) + return _u.AddDirectorySyncRunIDs(ids...) } -// ClearIdentityHolders clears all "identity_holders" edges to the IdentityHolder entity. -func (_u *OrganizationUpdate) ClearIdentityHolders() *OrganizationUpdate { - _u.mutation.ClearIdentityHolders() +// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. +func (_u *OrganizationUpdate) AddDiscussionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddDiscussionIDs(ids...) return _u } -// RemoveIdentityHolderIDs removes the "identity_holders" edge to IdentityHolder entities by IDs. -func (_u *OrganizationUpdate) RemoveIdentityHolderIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveIdentityHolderIDs(ids...) +// AddDiscussions adds the "discussions" edges to the Discussion entity. +func (_u *OrganizationUpdate) AddDiscussions(v ...*Discussion) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddDiscussionIDs(ids...) +} + +// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. +func (_u *OrganizationUpdate) AddVendorScoringConfigIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddVendorScoringConfigIDs(ids...) return _u } -// RemoveIdentityHolders removes "identity_holders" edges to IdentityHolder entities. -func (_u *OrganizationUpdate) RemoveIdentityHolders(v ...*IdentityHolder) *OrganizationUpdate { +// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. +func (_u *OrganizationUpdate) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveIdentityHolderIDs(ids...) + return _u.AddVendorScoringConfigIDs(ids...) } -// ClearCampaigns clears all "campaigns" edges to the Campaign entity. -func (_u *OrganizationUpdate) ClearCampaigns() *OrganizationUpdate { - _u.mutation.ClearCampaigns() +// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. +func (_u *OrganizationUpdate) AddVendorRiskScoreIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddVendorRiskScoreIDs(ids...) return _u } -// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. -func (_u *OrganizationUpdate) RemoveCampaignIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveCampaignIDs(ids...) +// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. +func (_u *OrganizationUpdate) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddVendorRiskScoreIDs(ids...) +} + +// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. +func (_u *OrganizationUpdate) AddMemberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddMemberIDs(ids...) return _u } -// RemoveCampaigns removes "campaigns" edges to Campaign entities. -func (_u *OrganizationUpdate) RemoveCampaigns(v ...*Campaign) *OrganizationUpdate { +// AddMembers adds the "members" edges to the OrgMembership entity. +func (_u *OrganizationUpdate) AddMembers(v ...*OrgMembership) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveCampaignIDs(ids...) + return _u.AddMemberIDs(ids...) } -// ClearCampaignTargets clears all "campaign_targets" edges to the CampaignTarget entity. -func (_u *OrganizationUpdate) ClearCampaignTargets() *OrganizationUpdate { - _u.mutation.ClearCampaignTargets() +// Mutation returns the OrganizationMutation object of the builder. +func (_u *OrganizationUpdate) Mutation() *OrganizationMutation { + return _u.mutation +} + +// ClearActionPlanCreators clears all "action_plan_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearActionPlanCreators() *OrganizationUpdate { + _u.mutation.ClearActionPlanCreators() return _u } -// RemoveCampaignTargetIDs removes the "campaign_targets" edge to CampaignTarget entities by IDs. -func (_u *OrganizationUpdate) RemoveCampaignTargetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveCampaignTargetIDs(ids...) +// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveActionPlanCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveActionPlanCreatorIDs(ids...) return _u } -// RemoveCampaignTargets removes "campaign_targets" edges to CampaignTarget entities. -func (_u *OrganizationUpdate) RemoveCampaignTargets(v ...*CampaignTarget) *OrganizationUpdate { +// RemoveActionPlanCreators removes "action_plan_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveActionPlanCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveCampaignTargetIDs(ids...) + return _u.RemoveActionPlanCreatorIDs(ids...) } -// ClearEntityTypes clears all "entity_types" edges to the EntityType entity. -func (_u *OrganizationUpdate) ClearEntityTypes() *OrganizationUpdate { - _u.mutation.ClearEntityTypes() +// ClearAPITokenCreators clears all "api_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearAPITokenCreators() *OrganizationUpdate { + _u.mutation.ClearAPITokenCreators() return _u } -// RemoveEntityTypeIDs removes the "entity_types" edge to EntityType entities by IDs. -func (_u *OrganizationUpdate) RemoveEntityTypeIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEntityTypeIDs(ids...) +// RemoveAPITokenCreatorIDs removes the "api_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveAPITokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAPITokenCreatorIDs(ids...) return _u } -// RemoveEntityTypes removes "entity_types" edges to EntityType entities. -func (_u *OrganizationUpdate) RemoveEntityTypes(v ...*EntityType) *OrganizationUpdate { +// RemoveAPITokenCreators removes "api_token_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveAPITokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEntityTypeIDs(ids...) + return _u.RemoveAPITokenCreatorIDs(ids...) } -// ClearContacts clears all "contacts" edges to the Contact entity. -func (_u *OrganizationUpdate) ClearContacts() *OrganizationUpdate { - _u.mutation.ClearContacts() +// ClearAssessmentCreators clears all "assessment_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearAssessmentCreators() *OrganizationUpdate { + _u.mutation.ClearAssessmentCreators() return _u } -// RemoveContactIDs removes the "contacts" edge to Contact entities by IDs. -func (_u *OrganizationUpdate) RemoveContactIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveContactIDs(ids...) +// RemoveAssessmentCreatorIDs removes the "assessment_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveAssessmentCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAssessmentCreatorIDs(ids...) return _u } -// RemoveContacts removes "contacts" edges to Contact entities. -func (_u *OrganizationUpdate) RemoveContacts(v ...*Contact) *OrganizationUpdate { +// RemoveAssessmentCreators removes "assessment_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveAssessmentCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveContactIDs(ids...) + return _u.RemoveAssessmentCreatorIDs(ids...) } -// ClearNotes clears all "notes" edges to the Note entity. -func (_u *OrganizationUpdate) ClearNotes() *OrganizationUpdate { - _u.mutation.ClearNotes() +// ClearAssetCreators clears all "asset_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearAssetCreators() *OrganizationUpdate { + _u.mutation.ClearAssetCreators() return _u } -// RemoveNoteIDs removes the "notes" edge to Note entities by IDs. -func (_u *OrganizationUpdate) RemoveNoteIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNoteIDs(ids...) +// RemoveAssetCreatorIDs removes the "asset_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveAssetCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAssetCreatorIDs(ids...) return _u } -// RemoveNotes removes "notes" edges to Note entities. -func (_u *OrganizationUpdate) RemoveNotes(v ...*Note) *OrganizationUpdate { +// RemoveAssetCreators removes "asset_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveAssetCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNoteIDs(ids...) + return _u.RemoveAssetCreatorIDs(ids...) } -// ClearTasks clears all "tasks" edges to the Task entity. -func (_u *OrganizationUpdate) ClearTasks() *OrganizationUpdate { - _u.mutation.ClearTasks() +// ClearCampaignCreators clears all "campaign_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearCampaignCreators() *OrganizationUpdate { + _u.mutation.ClearCampaignCreators() return _u } -// RemoveTaskIDs removes the "tasks" edge to Task entities by IDs. -func (_u *OrganizationUpdate) RemoveTaskIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTaskIDs(ids...) +// RemoveCampaignCreatorIDs removes the "campaign_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveCampaignCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCampaignCreatorIDs(ids...) return _u } -// RemoveTasks removes "tasks" edges to Task entities. -func (_u *OrganizationUpdate) RemoveTasks(v ...*Task) *OrganizationUpdate { +// RemoveCampaignCreators removes "campaign_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveCampaignCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTaskIDs(ids...) + return _u.RemoveCampaignCreatorIDs(ids...) } -// ClearPrograms clears all "programs" edges to the Program entity. -func (_u *OrganizationUpdate) ClearPrograms() *OrganizationUpdate { - _u.mutation.ClearPrograms() +// ClearCampaignTargetCreators clears all "campaign_target_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearCampaignTargetCreators() *OrganizationUpdate { + _u.mutation.ClearCampaignTargetCreators() return _u } -// RemoveProgramIDs removes the "programs" edge to Program entities by IDs. -func (_u *OrganizationUpdate) RemoveProgramIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveProgramIDs(ids...) +// RemoveCampaignTargetCreatorIDs removes the "campaign_target_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveCampaignTargetCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCampaignTargetCreatorIDs(ids...) return _u } -// RemovePrograms removes "programs" edges to Program entities. -func (_u *OrganizationUpdate) RemovePrograms(v ...*Program) *OrganizationUpdate { +// RemoveCampaignTargetCreators removes "campaign_target_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveCampaignTargetCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveProgramIDs(ids...) + return _u.RemoveCampaignTargetCreatorIDs(ids...) } -// ClearSystemDetails clears all "system_details" edges to the SystemDetail entity. -func (_u *OrganizationUpdate) ClearSystemDetails() *OrganizationUpdate { - _u.mutation.ClearSystemDetails() +// ClearCheckResultCreators clears all "check_result_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearCheckResultCreators() *OrganizationUpdate { + _u.mutation.ClearCheckResultCreators() return _u } -// RemoveSystemDetailIDs removes the "system_details" edge to SystemDetail entities by IDs. -func (_u *OrganizationUpdate) RemoveSystemDetailIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSystemDetailIDs(ids...) +// RemoveCheckResultCreatorIDs removes the "check_result_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveCheckResultCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCheckResultCreatorIDs(ids...) return _u } -// RemoveSystemDetails removes "system_details" edges to SystemDetail entities. -func (_u *OrganizationUpdate) RemoveSystemDetails(v ...*SystemDetail) *OrganizationUpdate { +// RemoveCheckResultCreators removes "check_result_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveCheckResultCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSystemDetailIDs(ids...) + return _u.RemoveCheckResultCreatorIDs(ids...) } -// ClearProcedures clears all "procedures" edges to the Procedure entity. -func (_u *OrganizationUpdate) ClearProcedures() *OrganizationUpdate { - _u.mutation.ClearProcedures() +// ClearContactCreators clears all "contact_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearContactCreators() *OrganizationUpdate { + _u.mutation.ClearContactCreators() return _u } -// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. -func (_u *OrganizationUpdate) RemoveProcedureIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveProcedureIDs(ids...) +// RemoveContactCreatorIDs removes the "contact_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveContactCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveContactCreatorIDs(ids...) return _u } -// RemoveProcedures removes "procedures" edges to Procedure entities. -func (_u *OrganizationUpdate) RemoveProcedures(v ...*Procedure) *OrganizationUpdate { +// RemoveContactCreators removes "contact_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveContactCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveProcedureIDs(ids...) + return _u.RemoveContactCreatorIDs(ids...) } -// ClearInternalPolicies clears all "internal_policies" edges to the InternalPolicy entity. -func (_u *OrganizationUpdate) ClearInternalPolicies() *OrganizationUpdate { - _u.mutation.ClearInternalPolicies() +// ClearControlCreators clears all "control_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearControlCreators() *OrganizationUpdate { + _u.mutation.ClearControlCreators() return _u } -// RemoveInternalPolicyIDs removes the "internal_policies" edge to InternalPolicy entities by IDs. -func (_u *OrganizationUpdate) RemoveInternalPolicyIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveInternalPolicyIDs(ids...) +// RemoveControlCreatorIDs removes the "control_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveControlCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlCreatorIDs(ids...) return _u } -// RemoveInternalPolicies removes "internal_policies" edges to InternalPolicy entities. -func (_u *OrganizationUpdate) RemoveInternalPolicies(v ...*InternalPolicy) *OrganizationUpdate { +// RemoveControlCreators removes "control_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveControlCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveInternalPolicyIDs(ids...) + return _u.RemoveControlCreatorIDs(ids...) } -// ClearRisks clears all "risks" edges to the Risk entity. -func (_u *OrganizationUpdate) ClearRisks() *OrganizationUpdate { - _u.mutation.ClearRisks() +// ClearControlImplementationCreators clears all "control_implementation_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearControlImplementationCreators() *OrganizationUpdate { + _u.mutation.ClearControlImplementationCreators() return _u } -// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. -func (_u *OrganizationUpdate) RemoveRiskIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveRiskIDs(ids...) +// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveControlImplementationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlImplementationCreatorIDs(ids...) return _u } -// RemoveRisks removes "risks" edges to Risk entities. -func (_u *OrganizationUpdate) RemoveRisks(v ...*Risk) *OrganizationUpdate { +// RemoveControlImplementationCreators removes "control_implementation_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveControlImplementationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveRiskIDs(ids...) + return _u.RemoveControlImplementationCreatorIDs(ids...) } -// ClearControlObjectives clears all "control_objectives" edges to the ControlObjective entity. -func (_u *OrganizationUpdate) ClearControlObjectives() *OrganizationUpdate { - _u.mutation.ClearControlObjectives() +// ClearControlObjectiveCreators clears all "control_objective_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearControlObjectiveCreators() *OrganizationUpdate { + _u.mutation.ClearControlObjectiveCreators() return _u } -// RemoveControlObjectiveIDs removes the "control_objectives" edge to ControlObjective entities by IDs. -func (_u *OrganizationUpdate) RemoveControlObjectiveIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlObjectiveIDs(ids...) +// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlObjectiveCreatorIDs(ids...) return _u } -// RemoveControlObjectives removes "control_objectives" edges to ControlObjective entities. -func (_u *OrganizationUpdate) RemoveControlObjectives(v ...*ControlObjective) *OrganizationUpdate { +// RemoveControlObjectiveCreators removes "control_objective_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveControlObjectiveCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlObjectiveIDs(ids...) + return _u.RemoveControlObjectiveCreatorIDs(ids...) } -// ClearNarratives clears all "narratives" edges to the Narrative entity. -func (_u *OrganizationUpdate) ClearNarratives() *OrganizationUpdate { - _u.mutation.ClearNarratives() +// ClearCustomTypeEnumCreators clears all "custom_type_enum_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearCustomTypeEnumCreators() *OrganizationUpdate { + _u.mutation.ClearCustomTypeEnumCreators() return _u } -// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. -func (_u *OrganizationUpdate) RemoveNarrativeIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNarrativeIDs(ids...) +// RemoveCustomTypeEnumCreatorIDs removes the "custom_type_enum_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveCustomTypeEnumCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCustomTypeEnumCreatorIDs(ids...) return _u } -// RemoveNarratives removes "narratives" edges to Narrative entities. -func (_u *OrganizationUpdate) RemoveNarratives(v ...*Narrative) *OrganizationUpdate { +// RemoveCustomTypeEnumCreators removes "custom_type_enum_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveCustomTypeEnumCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNarrativeIDs(ids...) + return _u.RemoveCustomTypeEnumCreatorIDs(ids...) } -// ClearControls clears all "controls" edges to the Control entity. -func (_u *OrganizationUpdate) ClearControls() *OrganizationUpdate { - _u.mutation.ClearControls() +// ClearDiscussionCreators clears all "discussion_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearDiscussionCreators() *OrganizationUpdate { + _u.mutation.ClearDiscussionCreators() return _u } -// RemoveControlIDs removes the "controls" edge to Control entities by IDs. -func (_u *OrganizationUpdate) RemoveControlIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlIDs(ids...) +// RemoveDiscussionCreatorIDs removes the "discussion_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveDiscussionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDiscussionCreatorIDs(ids...) return _u } -// RemoveControls removes "controls" edges to Control entities. -func (_u *OrganizationUpdate) RemoveControls(v ...*Control) *OrganizationUpdate { +// RemoveDiscussionCreators removes "discussion_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveDiscussionCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlIDs(ids...) + return _u.RemoveDiscussionCreatorIDs(ids...) } -// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. -func (_u *OrganizationUpdate) ClearSubcontrols() *OrganizationUpdate { - _u.mutation.ClearSubcontrols() +// ClearEmailBrandingCreators clears all "email_branding_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearEmailBrandingCreators() *OrganizationUpdate { + _u.mutation.ClearEmailBrandingCreators() return _u } -// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. -func (_u *OrganizationUpdate) RemoveSubcontrolIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSubcontrolIDs(ids...) +// RemoveEmailBrandingCreatorIDs removes the "email_branding_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEmailBrandingCreatorIDs(ids...) return _u } -// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. -func (_u *OrganizationUpdate) RemoveSubcontrols(v ...*Subcontrol) *OrganizationUpdate { +// RemoveEmailBrandingCreators removes "email_branding_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveEmailBrandingCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSubcontrolIDs(ids...) + return _u.RemoveEmailBrandingCreatorIDs(ids...) } -// ClearControlImplementations clears all "control_implementations" edges to the ControlImplementation entity. -func (_u *OrganizationUpdate) ClearControlImplementations() *OrganizationUpdate { - _u.mutation.ClearControlImplementations() +// ClearEmailTemplateCreators clears all "email_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearEmailTemplateCreators() *OrganizationUpdate { + _u.mutation.ClearEmailTemplateCreators() return _u } -// RemoveControlImplementationIDs removes the "control_implementations" edge to ControlImplementation entities by IDs. -func (_u *OrganizationUpdate) RemoveControlImplementationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveControlImplementationIDs(ids...) +// RemoveEmailTemplateCreatorIDs removes the "email_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEmailTemplateCreatorIDs(ids...) return _u } -// RemoveControlImplementations removes "control_implementations" edges to ControlImplementation entities. -func (_u *OrganizationUpdate) RemoveControlImplementations(v ...*ControlImplementation) *OrganizationUpdate { +// RemoveEmailTemplateCreators removes "email_template_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveEmailTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveControlImplementationIDs(ids...) + return _u.RemoveEmailTemplateCreatorIDs(ids...) } -// ClearMappedControls clears all "mapped_controls" edges to the MappedControl entity. -func (_u *OrganizationUpdate) ClearMappedControls() *OrganizationUpdate { - _u.mutation.ClearMappedControls() +// ClearEntityCreators clears all "entity_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearEntityCreators() *OrganizationUpdate { + _u.mutation.ClearEntityCreators() return _u } -// RemoveMappedControlIDs removes the "mapped_controls" edge to MappedControl entities by IDs. -func (_u *OrganizationUpdate) RemoveMappedControlIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveMappedControlIDs(ids...) +// RemoveEntityCreatorIDs removes the "entity_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveEntityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEntityCreatorIDs(ids...) return _u } -// RemoveMappedControls removes "mapped_controls" edges to MappedControl entities. -func (_u *OrganizationUpdate) RemoveMappedControls(v ...*MappedControl) *OrganizationUpdate { +// RemoveEntityCreators removes "entity_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveEntityCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveMappedControlIDs(ids...) + return _u.RemoveEntityCreatorIDs(ids...) } -// ClearEvidence clears all "evidence" edges to the Evidence entity. -func (_u *OrganizationUpdate) ClearEvidence() *OrganizationUpdate { - _u.mutation.ClearEvidence() +// ClearEntityTypeCreators clears all "entity_type_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearEntityTypeCreators() *OrganizationUpdate { + _u.mutation.ClearEntityTypeCreators() return _u } -// RemoveEvidenceIDs removes the "evidence" edge to Evidence entities by IDs. -func (_u *OrganizationUpdate) RemoveEvidenceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEvidenceIDs(ids...) +// RemoveEntityTypeCreatorIDs removes the "entity_type_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveEntityTypeCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEntityTypeCreatorIDs(ids...) return _u } -// RemoveEvidence removes "evidence" edges to Evidence entities. -func (_u *OrganizationUpdate) RemoveEvidence(v ...*Evidence) *OrganizationUpdate { +// RemoveEntityTypeCreators removes "entity_type_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveEntityTypeCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveEvidenceIDs(ids...) + return _u.RemoveEntityTypeCreatorIDs(ids...) } -// ClearStandards clears all "standards" edges to the Standard entity. -func (_u *OrganizationUpdate) ClearStandards() *OrganizationUpdate { - _u.mutation.ClearStandards() +// ClearEvidenceCreators clears all "evidence_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearEvidenceCreators() *OrganizationUpdate { + _u.mutation.ClearEvidenceCreators() return _u } -// RemoveStandardIDs removes the "standards" edge to Standard entities by IDs. -func (_u *OrganizationUpdate) RemoveStandardIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveStandardIDs(ids...) +// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveEvidenceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEvidenceCreatorIDs(ids...) return _u } -// RemoveStandards removes "standards" edges to Standard entities. -func (_u *OrganizationUpdate) RemoveStandards(v ...*Standard) *OrganizationUpdate { +// RemoveEvidenceCreators removes "evidence_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveEvidenceCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveStandardIDs(ids...) + return _u.RemoveEvidenceCreatorIDs(ids...) } -// ClearActionPlans clears all "action_plans" edges to the ActionPlan entity. -func (_u *OrganizationUpdate) ClearActionPlans() *OrganizationUpdate { - _u.mutation.ClearActionPlans() +// ClearExportCreators clears all "export_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearExportCreators() *OrganizationUpdate { + _u.mutation.ClearExportCreators() return _u } -// RemoveActionPlanIDs removes the "action_plans" edge to ActionPlan entities by IDs. -func (_u *OrganizationUpdate) RemoveActionPlanIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveActionPlanIDs(ids...) +// RemoveExportCreatorIDs removes the "export_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveExportCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveExportCreatorIDs(ids...) return _u } -// RemoveActionPlans removes "action_plans" edges to ActionPlan entities. -func (_u *OrganizationUpdate) RemoveActionPlans(v ...*ActionPlan) *OrganizationUpdate { +// RemoveExportCreators removes "export_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveExportCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveActionPlanIDs(ids...) + return _u.RemoveExportCreatorIDs(ids...) } -// ClearCustomDomains clears all "custom_domains" edges to the CustomDomain entity. -func (_u *OrganizationUpdate) ClearCustomDomains() *OrganizationUpdate { - _u.mutation.ClearCustomDomains() +// ClearFileCreators clears all "file_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearFileCreators() *OrganizationUpdate { + _u.mutation.ClearFileCreators() return _u } -// RemoveCustomDomainIDs removes the "custom_domains" edge to CustomDomain entities by IDs. -func (_u *OrganizationUpdate) RemoveCustomDomainIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveCustomDomainIDs(ids...) +// RemoveFileCreatorIDs removes the "file_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveFileCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveFileCreatorIDs(ids...) return _u } -// RemoveCustomDomains removes "custom_domains" edges to CustomDomain entities. -func (_u *OrganizationUpdate) RemoveCustomDomains(v ...*CustomDomain) *OrganizationUpdate { +// RemoveFileCreators removes "file_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveFileCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveCustomDomainIDs(ids...) + return _u.RemoveFileCreatorIDs(ids...) } -// ClearJobRunners clears all "job_runners" edges to the JobRunner entity. -func (_u *OrganizationUpdate) ClearJobRunners() *OrganizationUpdate { - _u.mutation.ClearJobRunners() +// ClearFindingCreators clears all "finding_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearFindingCreators() *OrganizationUpdate { + _u.mutation.ClearFindingCreators() return _u } -// RemoveJobRunnerIDs removes the "job_runners" edge to JobRunner entities by IDs. -func (_u *OrganizationUpdate) RemoveJobRunnerIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveJobRunnerIDs(ids...) +// RemoveFindingCreatorIDs removes the "finding_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveFindingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveFindingCreatorIDs(ids...) return _u } -// RemoveJobRunners removes "job_runners" edges to JobRunner entities. -func (_u *OrganizationUpdate) RemoveJobRunners(v ...*JobRunner) *OrganizationUpdate { +// RemoveFindingCreators removes "finding_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveFindingCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveJobRunnerIDs(ids...) + return _u.RemoveFindingCreatorIDs(ids...) } -// ClearJobRunnerTokens clears all "job_runner_tokens" edges to the JobRunnerToken entity. -func (_u *OrganizationUpdate) ClearJobRunnerTokens() *OrganizationUpdate { - _u.mutation.ClearJobRunnerTokens() +// ClearGroupCreators clears all "group_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearGroupCreators() *OrganizationUpdate { + _u.mutation.ClearGroupCreators() return _u } -// RemoveJobRunnerTokenIDs removes the "job_runner_tokens" edge to JobRunnerToken entities by IDs. -func (_u *OrganizationUpdate) RemoveJobRunnerTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveJobRunnerTokenIDs(ids...) +// RemoveGroupCreatorIDs removes the "group_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveGroupCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveGroupCreatorIDs(ids...) return _u } -// RemoveJobRunnerTokens removes "job_runner_tokens" edges to JobRunnerToken entities. -func (_u *OrganizationUpdate) RemoveJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdate { +// RemoveGroupCreators removes "group_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveGroupCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveJobRunnerTokenIDs(ids...) + return _u.RemoveGroupCreatorIDs(ids...) } -// ClearJobRunnerRegistrationTokens clears all "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. -func (_u *OrganizationUpdate) ClearJobRunnerRegistrationTokens() *OrganizationUpdate { - _u.mutation.ClearJobRunnerRegistrationTokens() +// ClearIdentityHolderCreators clears all "identity_holder_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearIdentityHolderCreators() *OrganizationUpdate { + _u.mutation.ClearIdentityHolderCreators() return _u } -// RemoveJobRunnerRegistrationTokenIDs removes the "job_runner_registration_tokens" edge to JobRunnerRegistrationToken entities by IDs. -func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveJobRunnerRegistrationTokenIDs(ids...) +// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIdentityHolderCreatorIDs(ids...) return _u } -// RemoveJobRunnerRegistrationTokens removes "job_runner_registration_tokens" edges to JobRunnerRegistrationToken entities. -func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdate { +// RemoveIdentityHolderCreators removes "identity_holder_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveIdentityHolderCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveJobRunnerRegistrationTokenIDs(ids...) + return _u.RemoveIdentityHolderCreatorIDs(ids...) } -// ClearDNSVerifications clears all "dns_verifications" edges to the DNSVerification entity. -func (_u *OrganizationUpdate) ClearDNSVerifications() *OrganizationUpdate { - _u.mutation.ClearDNSVerifications() +// ClearIntegrationCreators clears all "integration_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearIntegrationCreators() *OrganizationUpdate { + _u.mutation.ClearIntegrationCreators() return _u } -// RemoveDNSVerificationIDs removes the "dns_verifications" edge to DNSVerification entities by IDs. -func (_u *OrganizationUpdate) RemoveDNSVerificationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDNSVerificationIDs(ids...) +// RemoveIntegrationCreatorIDs removes the "integration_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveIntegrationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIntegrationCreatorIDs(ids...) return _u } -// RemoveDNSVerifications removes "dns_verifications" edges to DNSVerification entities. -func (_u *OrganizationUpdate) RemoveDNSVerifications(v ...*DNSVerification) *OrganizationUpdate { +// RemoveIntegrationCreators removes "integration_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveIntegrationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDNSVerificationIDs(ids...) + return _u.RemoveIntegrationCreatorIDs(ids...) } -// ClearJobTemplates clears all "job_templates" edges to the JobTemplate entity. -func (_u *OrganizationUpdate) ClearJobTemplates() *OrganizationUpdate { - _u.mutation.ClearJobTemplates() +// ClearIntegrationWebhookCreators clears all "integration_webhook_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearIntegrationWebhookCreators() *OrganizationUpdate { + _u.mutation.ClearIntegrationWebhookCreators() return _u } -// RemoveJobTemplateIDs removes the "job_templates" edge to JobTemplate entities by IDs. -func (_u *OrganizationUpdate) RemoveJobTemplateIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveJobTemplateIDs(ids...) +// RemoveIntegrationWebhookCreatorIDs removes the "integration_webhook_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveIntegrationWebhookCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIntegrationWebhookCreatorIDs(ids...) return _u } -// RemoveJobTemplates removes "job_templates" edges to JobTemplate entities. -func (_u *OrganizationUpdate) RemoveJobTemplates(v ...*JobTemplate) *OrganizationUpdate { +// RemoveIntegrationWebhookCreators removes "integration_webhook_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveIntegrationWebhookCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveJobTemplateIDs(ids...) + return _u.RemoveIntegrationWebhookCreatorIDs(ids...) } -// ClearScheduledJobs clears all "scheduled_jobs" edges to the ScheduledJob entity. -func (_u *OrganizationUpdate) ClearScheduledJobs() *OrganizationUpdate { - _u.mutation.ClearScheduledJobs() +// ClearInternalPolicyCreators clears all "internal_policy_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearInternalPolicyCreators() *OrganizationUpdate { + _u.mutation.ClearInternalPolicyCreators() return _u } -// RemoveScheduledJobIDs removes the "scheduled_jobs" edge to ScheduledJob entities by IDs. -func (_u *OrganizationUpdate) RemoveScheduledJobIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveScheduledJobIDs(ids...) +// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveInternalPolicyCreatorIDs(ids...) return _u } -// RemoveScheduledJobs removes "scheduled_jobs" edges to ScheduledJob entities. -func (_u *OrganizationUpdate) RemoveScheduledJobs(v ...*ScheduledJob) *OrganizationUpdate { +// RemoveInternalPolicyCreators removes "internal_policy_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveInternalPolicyCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveScheduledJobIDs(ids...) + return _u.RemoveInternalPolicyCreatorIDs(ids...) } -// ClearJobResults clears all "job_results" edges to the JobResult entity. -func (_u *OrganizationUpdate) ClearJobResults() *OrganizationUpdate { - _u.mutation.ClearJobResults() +// ClearJobRunnerCreators clears all "job_runner_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearJobRunnerCreators() *OrganizationUpdate { + _u.mutation.ClearJobRunnerCreators() return _u } -// RemoveJobResultIDs removes the "job_results" edge to JobResult entities by IDs. -func (_u *OrganizationUpdate) RemoveJobResultIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveJobResultIDs(ids...) +// RemoveJobRunnerCreatorIDs removes the "job_runner_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerCreatorIDs(ids...) return _u } -// RemoveJobResults removes "job_results" edges to JobResult entities. -func (_u *OrganizationUpdate) RemoveJobResults(v ...*JobResult) *OrganizationUpdate { +// RemoveJobRunnerCreators removes "job_runner_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveJobRunnerCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveJobResultIDs(ids...) + return _u.RemoveJobRunnerCreatorIDs(ids...) } -// ClearScheduledJobRuns clears all "scheduled_job_runs" edges to the ScheduledJobRun entity. -func (_u *OrganizationUpdate) ClearScheduledJobRuns() *OrganizationUpdate { - _u.mutation.ClearScheduledJobRuns() +// ClearJobRunnerRegistrationTokenCreators clears all "job_runner_registration_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearJobRunnerRegistrationTokenCreators() *OrganizationUpdate { + _u.mutation.ClearJobRunnerRegistrationTokenCreators() return _u } -// RemoveScheduledJobRunIDs removes the "scheduled_job_runs" edge to ScheduledJobRun entities by IDs. -func (_u *OrganizationUpdate) RemoveScheduledJobRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveScheduledJobRunIDs(ids...) +// RemoveJobRunnerRegistrationTokenCreatorIDs removes the "job_runner_registration_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerRegistrationTokenCreatorIDs(ids...) return _u } -// RemoveScheduledJobRuns removes "scheduled_job_runs" edges to ScheduledJobRun entities. -func (_u *OrganizationUpdate) RemoveScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdate { +// RemoveJobRunnerRegistrationTokenCreators removes "job_runner_registration_token_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveScheduledJobRunIDs(ids...) + return _u.RemoveJobRunnerRegistrationTokenCreatorIDs(ids...) } -// ClearTrustCenters clears all "trust_centers" edges to the TrustCenter entity. -func (_u *OrganizationUpdate) ClearTrustCenters() *OrganizationUpdate { - _u.mutation.ClearTrustCenters() +// ClearJobRunnerTokenCreators clears all "job_runner_token_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearJobRunnerTokenCreators() *OrganizationUpdate { + _u.mutation.ClearJobRunnerTokenCreators() return _u } -// RemoveTrustCenterIDs removes the "trust_centers" edge to TrustCenter entities by IDs. -func (_u *OrganizationUpdate) RemoveTrustCenterIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTrustCenterIDs(ids...) +// RemoveJobRunnerTokenCreatorIDs removes the "job_runner_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerTokenCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerTokenCreatorIDs(ids...) return _u } -// RemoveTrustCenters removes "trust_centers" edges to TrustCenter entities. -func (_u *OrganizationUpdate) RemoveTrustCenters(v ...*TrustCenter) *OrganizationUpdate { +// RemoveJobRunnerTokenCreators removes "job_runner_token_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveJobRunnerTokenCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTrustCenterIDs(ids...) + return _u.RemoveJobRunnerTokenCreatorIDs(ids...) } -// ClearAssets clears all "assets" edges to the Asset entity. -func (_u *OrganizationUpdate) ClearAssets() *OrganizationUpdate { - _u.mutation.ClearAssets() +// ClearJobTemplateCreators clears all "job_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearJobTemplateCreators() *OrganizationUpdate { + _u.mutation.ClearJobTemplateCreators() return _u } -// RemoveAssetIDs removes the "assets" edge to Asset entities by IDs. -func (_u *OrganizationUpdate) RemoveAssetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveAssetIDs(ids...) +// RemoveJobTemplateCreatorIDs removes the "job_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveJobTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobTemplateCreatorIDs(ids...) return _u } -// RemoveAssets removes "assets" edges to Asset entities. -func (_u *OrganizationUpdate) RemoveAssets(v ...*Asset) *OrganizationUpdate { +// RemoveJobTemplateCreators removes "job_template_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveJobTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveAssetIDs(ids...) + return _u.RemoveJobTemplateCreatorIDs(ids...) } -// ClearScans clears all "scans" edges to the Scan entity. -func (_u *OrganizationUpdate) ClearScans() *OrganizationUpdate { - _u.mutation.ClearScans() +// ClearMappedControlCreators clears all "mapped_control_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearMappedControlCreators() *OrganizationUpdate { + _u.mutation.ClearMappedControlCreators() return _u } -// RemoveScanIDs removes the "scans" edge to Scan entities by IDs. -func (_u *OrganizationUpdate) RemoveScanIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveScanIDs(ids...) +// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveMappedControlCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveMappedControlCreatorIDs(ids...) return _u } -// RemoveScans removes "scans" edges to Scan entities. -func (_u *OrganizationUpdate) RemoveScans(v ...*Scan) *OrganizationUpdate { +// RemoveMappedControlCreators removes "mapped_control_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveMappedControlCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveScanIDs(ids...) + return _u.RemoveMappedControlCreatorIDs(ids...) } -// ClearSLADefinitions clears all "sla_definitions" edges to the SLADefinition entity. -func (_u *OrganizationUpdate) ClearSLADefinitions() *OrganizationUpdate { - _u.mutation.ClearSLADefinitions() +// ClearNarrativeCreators clears all "narrative_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearNarrativeCreators() *OrganizationUpdate { + _u.mutation.ClearNarrativeCreators() return _u } -// RemoveSLADefinitionIDs removes the "sla_definitions" edge to SLADefinition entities by IDs. -func (_u *OrganizationUpdate) RemoveSLADefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSLADefinitionIDs(ids...) +// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveNarrativeCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNarrativeCreatorIDs(ids...) return _u } -// RemoveSLADefinitions removes "sla_definitions" edges to SLADefinition entities. -func (_u *OrganizationUpdate) RemoveSLADefinitions(v ...*SLADefinition) *OrganizationUpdate { +// RemoveNarrativeCreators removes "narrative_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveNarrativeCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSLADefinitionIDs(ids...) + return _u.RemoveNarrativeCreatorIDs(ids...) } -// ClearSubprocessors clears all "subprocessors" edges to the Subprocessor entity. -func (_u *OrganizationUpdate) ClearSubprocessors() *OrganizationUpdate { - _u.mutation.ClearSubprocessors() +// ClearNoteCreators clears all "note_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearNoteCreators() *OrganizationUpdate { + _u.mutation.ClearNoteCreators() return _u } -// RemoveSubprocessorIDs removes the "subprocessors" edge to Subprocessor entities by IDs. -func (_u *OrganizationUpdate) RemoveSubprocessorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveSubprocessorIDs(ids...) +// RemoveNoteCreatorIDs removes the "note_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveNoteCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNoteCreatorIDs(ids...) return _u } -// RemoveSubprocessors removes "subprocessors" edges to Subprocessor entities. -func (_u *OrganizationUpdate) RemoveSubprocessors(v ...*Subprocessor) *OrganizationUpdate { +// RemoveNoteCreators removes "note_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveNoteCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveSubprocessorIDs(ids...) + return _u.RemoveNoteCreatorIDs(ids...) } -// ClearExports clears all "exports" edges to the Export entity. -func (_u *OrganizationUpdate) ClearExports() *OrganizationUpdate { - _u.mutation.ClearExports() +// ClearNotificationTemplateCreators clears all "notification_template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearNotificationTemplateCreators() *OrganizationUpdate { + _u.mutation.ClearNotificationTemplateCreators() return _u } -// RemoveExportIDs removes the "exports" edge to Export entities by IDs. -func (_u *OrganizationUpdate) RemoveExportIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveExportIDs(ids...) +// RemoveNotificationTemplateCreatorIDs removes the "notification_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveNotificationTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNotificationTemplateCreatorIDs(ids...) return _u } -// RemoveExports removes "exports" edges to Export entities. -func (_u *OrganizationUpdate) RemoveExports(v ...*Export) *OrganizationUpdate { +// RemoveNotificationTemplateCreators removes "notification_template_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveNotificationTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveExportIDs(ids...) + return _u.RemoveNotificationTemplateCreatorIDs(ids...) } -// ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. -func (_u *OrganizationUpdate) ClearTrustCenterWatermarkConfigs() *OrganizationUpdate { - _u.mutation.ClearTrustCenterWatermarkConfigs() +// ClearOrganizationCreators clears all "organization_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearOrganizationCreators() *OrganizationUpdate { + _u.mutation.ClearOrganizationCreators() return _u } -// RemoveTrustCenterWatermarkConfigIDs removes the "trust_center_watermark_configs" edge to TrustCenterWatermarkConfig entities by IDs. -func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTrustCenterWatermarkConfigIDs(ids...) +// RemoveOrganizationCreatorIDs removes the "organization_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveOrganizationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveOrganizationCreatorIDs(ids...) return _u } -// RemoveTrustCenterWatermarkConfigs removes "trust_center_watermark_configs" edges to TrustCenterWatermarkConfig entities. -func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdate { +// RemoveOrganizationCreators removes "organization_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveOrganizationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTrustCenterWatermarkConfigIDs(ids...) + return _u.RemoveOrganizationCreatorIDs(ids...) } -// ClearImpersonationEvents clears all "impersonation_events" edges to the ImpersonationEvent entity. -func (_u *OrganizationUpdate) ClearImpersonationEvents() *OrganizationUpdate { - _u.mutation.ClearImpersonationEvents() +// ClearPlatformCreators clears all "platform_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearPlatformCreators() *OrganizationUpdate { + _u.mutation.ClearPlatformCreators() return _u } -// RemoveImpersonationEventIDs removes the "impersonation_events" edge to ImpersonationEvent entities by IDs. -func (_u *OrganizationUpdate) RemoveImpersonationEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveImpersonationEventIDs(ids...) +// RemovePlatformCreatorIDs removes the "platform_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemovePlatformCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemovePlatformCreatorIDs(ids...) return _u } -// RemoveImpersonationEvents removes "impersonation_events" edges to ImpersonationEvent entities. -func (_u *OrganizationUpdate) RemoveImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdate { +// RemovePlatformCreators removes "platform_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemovePlatformCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveImpersonationEventIDs(ids...) + return _u.RemovePlatformCreatorIDs(ids...) } -// ClearAssessments clears all "assessments" edges to the Assessment entity. -func (_u *OrganizationUpdate) ClearAssessments() *OrganizationUpdate { - _u.mutation.ClearAssessments() +// ClearProcedureCreators clears all "procedure_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearProcedureCreators() *OrganizationUpdate { + _u.mutation.ClearProcedureCreators() return _u } -// RemoveAssessmentIDs removes the "assessments" edge to Assessment entities by IDs. -func (_u *OrganizationUpdate) RemoveAssessmentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveAssessmentIDs(ids...) +// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveProcedureCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveProcedureCreatorIDs(ids...) return _u } -// RemoveAssessments removes "assessments" edges to Assessment entities. -func (_u *OrganizationUpdate) RemoveAssessments(v ...*Assessment) *OrganizationUpdate { +// RemoveProcedureCreators removes "procedure_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveProcedureCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveAssessmentIDs(ids...) + return _u.RemoveProcedureCreatorIDs(ids...) } -// ClearAssessmentResponses clears all "assessment_responses" edges to the AssessmentResponse entity. -func (_u *OrganizationUpdate) ClearAssessmentResponses() *OrganizationUpdate { - _u.mutation.ClearAssessmentResponses() +// ClearProgramCreators clears all "program_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearProgramCreators() *OrganizationUpdate { + _u.mutation.ClearProgramCreators() return _u } -// RemoveAssessmentResponseIDs removes the "assessment_responses" edge to AssessmentResponse entities by IDs. -func (_u *OrganizationUpdate) RemoveAssessmentResponseIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveAssessmentResponseIDs(ids...) +// RemoveProgramCreatorIDs removes the "program_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveProgramCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveProgramCreatorIDs(ids...) return _u } -// RemoveAssessmentResponses removes "assessment_responses" edges to AssessmentResponse entities. -func (_u *OrganizationUpdate) RemoveAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdate { +// RemoveProgramCreators removes "program_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveProgramCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveAssessmentResponseIDs(ids...) + return _u.RemoveProgramCreatorIDs(ids...) } -// ClearCustomTypeEnums clears all "custom_type_enums" edges to the CustomTypeEnum entity. -func (_u *OrganizationUpdate) ClearCustomTypeEnums() *OrganizationUpdate { - _u.mutation.ClearCustomTypeEnums() +// ClearRemediationCreators clears all "remediation_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearRemediationCreators() *OrganizationUpdate { + _u.mutation.ClearRemediationCreators() return _u } -// RemoveCustomTypeEnumIDs removes the "custom_type_enums" edge to CustomTypeEnum entities by IDs. -func (_u *OrganizationUpdate) RemoveCustomTypeEnumIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveCustomTypeEnumIDs(ids...) +// RemoveRemediationCreatorIDs removes the "remediation_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveRemediationCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRemediationCreatorIDs(ids...) return _u } -// RemoveCustomTypeEnums removes "custom_type_enums" edges to CustomTypeEnum entities. -func (_u *OrganizationUpdate) RemoveCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdate { +// RemoveRemediationCreators removes "remediation_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveRemediationCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveCustomTypeEnumIDs(ids...) + return _u.RemoveRemediationCreatorIDs(ids...) } -// ClearTagDefinitions clears all "tag_definitions" edges to the TagDefinition entity. -func (_u *OrganizationUpdate) ClearTagDefinitions() *OrganizationUpdate { - _u.mutation.ClearTagDefinitions() +// ClearReviewCreators clears all "review_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearReviewCreators() *OrganizationUpdate { + _u.mutation.ClearReviewCreators() return _u } -// RemoveTagDefinitionIDs removes the "tag_definitions" edge to TagDefinition entities by IDs. -func (_u *OrganizationUpdate) RemoveTagDefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveTagDefinitionIDs(ids...) +// RemoveReviewCreatorIDs removes the "review_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveReviewCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveReviewCreatorIDs(ids...) return _u } -// RemoveTagDefinitions removes "tag_definitions" edges to TagDefinition entities. -func (_u *OrganizationUpdate) RemoveTagDefinitions(v ...*TagDefinition) *OrganizationUpdate { +// RemoveReviewCreators removes "review_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveReviewCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveTagDefinitionIDs(ids...) + return _u.RemoveReviewCreatorIDs(ids...) } -// ClearRemediations clears all "remediations" edges to the Remediation entity. -func (_u *OrganizationUpdate) ClearRemediations() *OrganizationUpdate { - _u.mutation.ClearRemediations() +// ClearRiskCreators clears all "risk_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearRiskCreators() *OrganizationUpdate { + _u.mutation.ClearRiskCreators() return _u } -// RemoveRemediationIDs removes the "remediations" edge to Remediation entities by IDs. -func (_u *OrganizationUpdate) RemoveRemediationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveRemediationIDs(ids...) +// RemoveRiskCreatorIDs removes the "risk_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveRiskCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRiskCreatorIDs(ids...) return _u } -// RemoveRemediations removes "remediations" edges to Remediation entities. -func (_u *OrganizationUpdate) RemoveRemediations(v ...*Remediation) *OrganizationUpdate { +// RemoveRiskCreators removes "risk_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveRiskCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveRemediationIDs(ids...) + return _u.RemoveRiskCreatorIDs(ids...) } -// ClearFindings clears all "findings" edges to the Finding entity. -func (_u *OrganizationUpdate) ClearFindings() *OrganizationUpdate { - _u.mutation.ClearFindings() +// ClearScanCreators clears all "scan_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearScanCreators() *OrganizationUpdate { + _u.mutation.ClearScanCreators() return _u } -// RemoveFindingIDs removes the "findings" edge to Finding entities by IDs. -func (_u *OrganizationUpdate) RemoveFindingIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveFindingIDs(ids...) +// RemoveScanCreatorIDs removes the "scan_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveScanCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScanCreatorIDs(ids...) return _u } -// RemoveFindings removes "findings" edges to Finding entities. -func (_u *OrganizationUpdate) RemoveFindings(v ...*Finding) *OrganizationUpdate { +// RemoveScanCreators removes "scan_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveScanCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveFindingIDs(ids...) + return _u.RemoveScanCreatorIDs(ids...) } -// ClearReviews clears all "reviews" edges to the Review entity. -func (_u *OrganizationUpdate) ClearReviews() *OrganizationUpdate { - _u.mutation.ClearReviews() +// ClearScheduledJobCreators clears all "scheduled_job_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearScheduledJobCreators() *OrganizationUpdate { + _u.mutation.ClearScheduledJobCreators() return _u } -// RemoveReviewIDs removes the "reviews" edge to Review entities by IDs. -func (_u *OrganizationUpdate) RemoveReviewIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveReviewIDs(ids...) +// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveScheduledJobCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScheduledJobCreatorIDs(ids...) return _u } -// RemoveReviews removes "reviews" edges to Review entities. -func (_u *OrganizationUpdate) RemoveReviews(v ...*Review) *OrganizationUpdate { +// RemoveScheduledJobCreators removes "scheduled_job_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveScheduledJobCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveReviewIDs(ids...) + return _u.RemoveScheduledJobCreatorIDs(ids...) } -// ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity. -func (_u *OrganizationUpdate) ClearVulnerabilities() *OrganizationUpdate { - _u.mutation.ClearVulnerabilities() +// ClearScheduledJobRunCreators clears all "scheduled_job_run_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearScheduledJobRunCreators() *OrganizationUpdate { + _u.mutation.ClearScheduledJobRunCreators() return _u } -// RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs. -func (_u *OrganizationUpdate) RemoveVulnerabilityIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveVulnerabilityIDs(ids...) +// RemoveScheduledJobRunCreatorIDs removes the "scheduled_job_run_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveScheduledJobRunCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScheduledJobRunCreatorIDs(ids...) return _u } -// RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities. -func (_u *OrganizationUpdate) RemoveVulnerabilities(v ...*Vulnerability) *OrganizationUpdate { +// RemoveScheduledJobRunCreators removes "scheduled_job_run_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveScheduledJobRunCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveVulnerabilityIDs(ids...) + return _u.RemoveScheduledJobRunCreatorIDs(ids...) } -// ClearNotifications clears all "notifications" edges to the Notification entity. -func (_u *OrganizationUpdate) ClearNotifications() *OrganizationUpdate { - _u.mutation.ClearNotifications() +// ClearStandardCreators clears all "standard_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearStandardCreators() *OrganizationUpdate { + _u.mutation.ClearStandardCreators() return _u } -// RemoveNotificationIDs removes the "notifications" edge to Notification entities by IDs. -func (_u *OrganizationUpdate) RemoveNotificationIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveNotificationIDs(ids...) +// RemoveStandardCreatorIDs removes the "standard_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveStandardCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveStandardCreatorIDs(ids...) return _u } -// RemoveNotifications removes "notifications" edges to Notification entities. -func (_u *OrganizationUpdate) RemoveNotifications(v ...*Notification) *OrganizationUpdate { +// RemoveStandardCreators removes "standard_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveStandardCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveNotificationIDs(ids...) + return _u.RemoveStandardCreatorIDs(ids...) } -// ClearWorkflowDefinitions clears all "workflow_definitions" edges to the WorkflowDefinition entity. -func (_u *OrganizationUpdate) ClearWorkflowDefinitions() *OrganizationUpdate { - _u.mutation.ClearWorkflowDefinitions() +// ClearSubcontrolCreators clears all "subcontrol_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearSubcontrolCreators() *OrganizationUpdate { + _u.mutation.ClearSubcontrolCreators() return _u } -// RemoveWorkflowDefinitionIDs removes the "workflow_definitions" edge to WorkflowDefinition entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowDefinitionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowDefinitionIDs(ids...) +// RemoveSubcontrolCreatorIDs removes the "subcontrol_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveSubcontrolCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubcontrolCreatorIDs(ids...) return _u } -// RemoveWorkflowDefinitions removes "workflow_definitions" edges to WorkflowDefinition entities. -func (_u *OrganizationUpdate) RemoveWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdate { +// RemoveSubcontrolCreators removes "subcontrol_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveSubcontrolCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowDefinitionIDs(ids...) + return _u.RemoveSubcontrolCreatorIDs(ids...) } -// ClearWorkflowInstances clears all "workflow_instances" edges to the WorkflowInstance entity. -func (_u *OrganizationUpdate) ClearWorkflowInstances() *OrganizationUpdate { - _u.mutation.ClearWorkflowInstances() +// ClearSubprocessorCreators clears all "subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearSubprocessorCreators() *OrganizationUpdate { + _u.mutation.ClearSubprocessorCreators() return _u } -// RemoveWorkflowInstanceIDs removes the "workflow_instances" edge to WorkflowInstance entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowInstanceIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowInstanceIDs(ids...) +// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubprocessorCreatorIDs(ids...) return _u } -// RemoveWorkflowInstances removes "workflow_instances" edges to WorkflowInstance entities. -func (_u *OrganizationUpdate) RemoveWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdate { +// RemoveSubprocessorCreators removes "subprocessor_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveSubprocessorCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowInstanceIDs(ids...) + return _u.RemoveSubprocessorCreatorIDs(ids...) } -// ClearWorkflowEvents clears all "workflow_events" edges to the WorkflowEvent entity. -func (_u *OrganizationUpdate) ClearWorkflowEvents() *OrganizationUpdate { - _u.mutation.ClearWorkflowEvents() +// ClearSubscriberCreators clears all "subscriber_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearSubscriberCreators() *OrganizationUpdate { + _u.mutation.ClearSubscriberCreators() return _u } -// RemoveWorkflowEventIDs removes the "workflow_events" edge to WorkflowEvent entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowEventIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowEventIDs(ids...) +// RemoveSubscriberCreatorIDs removes the "subscriber_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveSubscriberCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubscriberCreatorIDs(ids...) return _u } -// RemoveWorkflowEvents removes "workflow_events" edges to WorkflowEvent entities. -func (_u *OrganizationUpdate) RemoveWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdate { +// RemoveSubscriberCreators removes "subscriber_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveSubscriberCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowEventIDs(ids...) + return _u.RemoveSubscriberCreatorIDs(ids...) } -// ClearWorkflowAssignments clears all "workflow_assignments" edges to the WorkflowAssignment entity. -func (_u *OrganizationUpdate) ClearWorkflowAssignments() *OrganizationUpdate { - _u.mutation.ClearWorkflowAssignments() +// ClearSystemDetailCreators clears all "system_detail_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearSystemDetailCreators() *OrganizationUpdate { + _u.mutation.ClearSystemDetailCreators() return _u } -// RemoveWorkflowAssignmentIDs removes the "workflow_assignments" edge to WorkflowAssignment entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowAssignmentIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowAssignmentIDs(ids...) +// RemoveSystemDetailCreatorIDs removes the "system_detail_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveSystemDetailCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSystemDetailCreatorIDs(ids...) return _u } -// RemoveWorkflowAssignments removes "workflow_assignments" edges to WorkflowAssignment entities. -func (_u *OrganizationUpdate) RemoveWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdate { +// RemoveSystemDetailCreators removes "system_detail_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveSystemDetailCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowAssignmentIDs(ids...) + return _u.RemoveSystemDetailCreatorIDs(ids...) } -// ClearWorkflowAssignmentTargets clears all "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. -func (_u *OrganizationUpdate) ClearWorkflowAssignmentTargets() *OrganizationUpdate { - _u.mutation.ClearWorkflowAssignmentTargets() +// ClearTagDefinitionCreators clears all "tag_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTagDefinitionCreators() *OrganizationUpdate { + _u.mutation.ClearTagDefinitionCreators() return _u } -// RemoveWorkflowAssignmentTargetIDs removes the "workflow_assignment_targets" edge to WorkflowAssignmentTarget entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowAssignmentTargetIDs(ids...) +// RemoveTagDefinitionCreatorIDs removes the "tag_definition_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTagDefinitionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTagDefinitionCreatorIDs(ids...) return _u } -// RemoveWorkflowAssignmentTargets removes "workflow_assignment_targets" edges to WorkflowAssignmentTarget entities. -func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdate { +// RemoveTagDefinitionCreators removes "tag_definition_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTagDefinitionCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowAssignmentTargetIDs(ids...) + return _u.RemoveTagDefinitionCreatorIDs(ids...) } -// ClearWorkflowObjectRefs clears all "workflow_object_refs" edges to the WorkflowObjectRef entity. -func (_u *OrganizationUpdate) ClearWorkflowObjectRefs() *OrganizationUpdate { - _u.mutation.ClearWorkflowObjectRefs() +// ClearTaskCreators clears all "task_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTaskCreators() *OrganizationUpdate { + _u.mutation.ClearTaskCreators() return _u } -// RemoveWorkflowObjectRefIDs removes the "workflow_object_refs" edge to WorkflowObjectRef entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowObjectRefIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowObjectRefIDs(ids...) +// RemoveTaskCreatorIDs removes the "task_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTaskCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTaskCreatorIDs(ids...) return _u } -// RemoveWorkflowObjectRefs removes "workflow_object_refs" edges to WorkflowObjectRef entities. -func (_u *OrganizationUpdate) RemoveWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdate { +// RemoveTaskCreators removes "task_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTaskCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowObjectRefIDs(ids...) + return _u.RemoveTaskCreatorIDs(ids...) } -// ClearWorkflowProposals clears all "workflow_proposals" edges to the WorkflowProposal entity. -func (_u *OrganizationUpdate) ClearWorkflowProposals() *OrganizationUpdate { - _u.mutation.ClearWorkflowProposals() +// ClearTemplateCreators clears all "template_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTemplateCreators() *OrganizationUpdate { + _u.mutation.ClearTemplateCreators() return _u } -// RemoveWorkflowProposalIDs removes the "workflow_proposals" edge to WorkflowProposal entities by IDs. -func (_u *OrganizationUpdate) RemoveWorkflowProposalIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveWorkflowProposalIDs(ids...) +// RemoveTemplateCreatorIDs removes the "template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTemplateCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTemplateCreatorIDs(ids...) return _u } -// RemoveWorkflowProposals removes "workflow_proposals" edges to WorkflowProposal entities. -func (_u *OrganizationUpdate) RemoveWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdate { +// RemoveTemplateCreators removes "template_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTemplateCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveWorkflowProposalIDs(ids...) + return _u.RemoveTemplateCreatorIDs(ids...) } -// ClearDirectoryAccounts clears all "directory_accounts" edges to the DirectoryAccount entity. -func (_u *OrganizationUpdate) ClearDirectoryAccounts() *OrganizationUpdate { - _u.mutation.ClearDirectoryAccounts() +// ClearTrustCenterCreators clears all "trust_center_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterCreators() return _u } -// RemoveDirectoryAccountIDs removes the "directory_accounts" edge to DirectoryAccount entities by IDs. -func (_u *OrganizationUpdate) RemoveDirectoryAccountIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDirectoryAccountIDs(ids...) +// RemoveTrustCenterCreatorIDs removes the "trust_center_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterCreatorIDs(ids...) return _u } -// RemoveDirectoryAccounts removes "directory_accounts" edges to DirectoryAccount entities. -func (_u *OrganizationUpdate) RemoveDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdate { +// RemoveTrustCenterCreators removes "trust_center_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDirectoryAccountIDs(ids...) + return _u.RemoveTrustCenterCreatorIDs(ids...) } -// ClearDirectoryGroups clears all "directory_groups" edges to the DirectoryGroup entity. -func (_u *OrganizationUpdate) ClearDirectoryGroups() *OrganizationUpdate { - _u.mutation.ClearDirectoryGroups() +// ClearTrustCenterComplianceCreators clears all "trust_center_compliance_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterComplianceCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterComplianceCreators() return _u } -// RemoveDirectoryGroupIDs removes the "directory_groups" edge to DirectoryGroup entities by IDs. -func (_u *OrganizationUpdate) RemoveDirectoryGroupIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDirectoryGroupIDs(ids...) +// RemoveTrustCenterComplianceCreatorIDs removes the "trust_center_compliance_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterComplianceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterComplianceCreatorIDs(ids...) return _u } -// RemoveDirectoryGroups removes "directory_groups" edges to DirectoryGroup entities. -func (_u *OrganizationUpdate) RemoveDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdate { +// RemoveTrustCenterComplianceCreators removes "trust_center_compliance_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterComplianceCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDirectoryGroupIDs(ids...) + return _u.RemoveTrustCenterComplianceCreatorIDs(ids...) } -// ClearDirectoryMemberships clears all "directory_memberships" edges to the DirectoryMembership entity. -func (_u *OrganizationUpdate) ClearDirectoryMemberships() *OrganizationUpdate { - _u.mutation.ClearDirectoryMemberships() +// ClearTrustCenterDocCreators clears all "trust_center_doc_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterDocCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterDocCreators() return _u } -// RemoveDirectoryMembershipIDs removes the "directory_memberships" edge to DirectoryMembership entities by IDs. -func (_u *OrganizationUpdate) RemoveDirectoryMembershipIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDirectoryMembershipIDs(ids...) +// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterDocCreatorIDs(ids...) return _u } -// RemoveDirectoryMemberships removes "directory_memberships" edges to DirectoryMembership entities. -func (_u *OrganizationUpdate) RemoveDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdate { +// RemoveTrustCenterDocCreators removes "trust_center_doc_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterDocCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDirectoryMembershipIDs(ids...) + return _u.RemoveTrustCenterDocCreatorIDs(ids...) } -// ClearDirectorySyncRuns clears all "directory_sync_runs" edges to the DirectorySyncRun entity. -func (_u *OrganizationUpdate) ClearDirectorySyncRuns() *OrganizationUpdate { - _u.mutation.ClearDirectorySyncRuns() +// ClearTrustCenterEntityCreators clears all "trust_center_entity_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterEntityCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterEntityCreators() return _u } -// RemoveDirectorySyncRunIDs removes the "directory_sync_runs" edge to DirectorySyncRun entities by IDs. -func (_u *OrganizationUpdate) RemoveDirectorySyncRunIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDirectorySyncRunIDs(ids...) +// RemoveTrustCenterEntityCreatorIDs removes the "trust_center_entity_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterEntityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterEntityCreatorIDs(ids...) return _u } -// RemoveDirectorySyncRuns removes "directory_sync_runs" edges to DirectorySyncRun entities. -func (_u *OrganizationUpdate) RemoveDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdate { +// RemoveTrustCenterEntityCreators removes "trust_center_entity_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterEntityCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDirectorySyncRunIDs(ids...) + return _u.RemoveTrustCenterEntityCreatorIDs(ids...) } -// ClearDiscussions clears all "discussions" edges to the Discussion entity. -func (_u *OrganizationUpdate) ClearDiscussions() *OrganizationUpdate { - _u.mutation.ClearDiscussions() +// ClearTrustCenterFaqCreators clears all "trust_center_faq_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterFaqCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterFaqCreators() return _u } -// RemoveDiscussionIDs removes the "discussions" edge to Discussion entities by IDs. -func (_u *OrganizationUpdate) RemoveDiscussionIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveDiscussionIDs(ids...) +// RemoveTrustCenterFaqCreatorIDs removes the "trust_center_faq_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterFaqCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterFaqCreatorIDs(ids...) return _u } -// RemoveDiscussions removes "discussions" edges to Discussion entities. -func (_u *OrganizationUpdate) RemoveDiscussions(v ...*Discussion) *OrganizationUpdate { +// RemoveTrustCenterFaqCreators removes "trust_center_faq_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterFaqCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveDiscussionIDs(ids...) + return _u.RemoveTrustCenterFaqCreatorIDs(ids...) } -// ClearVendorScoringConfigs clears all "vendor_scoring_configs" edges to the VendorScoringConfig entity. -func (_u *OrganizationUpdate) ClearVendorScoringConfigs() *OrganizationUpdate { - _u.mutation.ClearVendorScoringConfigs() +// ClearTrustCenterNdaRequestCreators clears all "trust_center_nda_request_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterNdaRequestCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterNdaRequestCreators() return _u } -// RemoveVendorScoringConfigIDs removes the "vendor_scoring_configs" edge to VendorScoringConfig entities by IDs. -func (_u *OrganizationUpdate) RemoveVendorScoringConfigIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveVendorScoringConfigIDs(ids...) +// RemoveTrustCenterNdaRequestCreatorIDs removes the "trust_center_nda_request_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterNdaRequestCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterNdaRequestCreatorIDs(ids...) return _u } -// RemoveVendorScoringConfigs removes "vendor_scoring_configs" edges to VendorScoringConfig entities. -func (_u *OrganizationUpdate) RemoveVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdate { +// RemoveTrustCenterNdaRequestCreators removes "trust_center_nda_request_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterNdaRequestCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveVendorScoringConfigIDs(ids...) + return _u.RemoveTrustCenterNdaRequestCreatorIDs(ids...) } -// ClearVendorRiskScores clears all "vendor_risk_scores" edges to the VendorRiskScore entity. -func (_u *OrganizationUpdate) ClearVendorRiskScores() *OrganizationUpdate { - _u.mutation.ClearVendorRiskScores() +// ClearTrustCenterSubprocessorCreators clears all "trust_center_subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterSubprocessorCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterSubprocessorCreators() return _u } -// RemoveVendorRiskScoreIDs removes the "vendor_risk_scores" edge to VendorRiskScore entities by IDs. -func (_u *OrganizationUpdate) RemoveVendorRiskScoreIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveVendorRiskScoreIDs(ids...) +// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterSubprocessorCreatorIDs(ids...) return _u } -// RemoveVendorRiskScores removes "vendor_risk_scores" edges to VendorRiskScore entities. -func (_u *OrganizationUpdate) RemoveVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdate { +// RemoveTrustCenterSubprocessorCreators removes "trust_center_subprocessor_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveVendorRiskScoreIDs(ids...) + return _u.RemoveTrustCenterSubprocessorCreatorIDs(ids...) } -// ClearMembers clears all "members" edges to the OrgMembership entity. -func (_u *OrganizationUpdate) ClearMembers() *OrganizationUpdate { - _u.mutation.ClearMembers() +// ClearTrustCenterWatermarkConfigCreators clears all "trust_center_watermark_config_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterWatermarkConfigCreators() *OrganizationUpdate { + _u.mutation.ClearTrustCenterWatermarkConfigCreators() return _u } -// RemoveMemberIDs removes the "members" edge to OrgMembership entities by IDs. -func (_u *OrganizationUpdate) RemoveMemberIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveMemberIDs(ids...) +// RemoveTrustCenterWatermarkConfigCreatorIDs removes the "trust_center_watermark_config_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterWatermarkConfigCreatorIDs(ids...) return _u } -// RemoveMembers removes "members" edges to OrgMembership entities. -func (_u *OrganizationUpdate) RemoveMembers(v ...*OrgMembership) *OrganizationUpdate { +// RemoveTrustCenterWatermarkConfigCreators removes "trust_center_watermark_config_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigCreators(v ...*Group) *OrganizationUpdate { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.RemoveMemberIDs(ids...) + return _u.RemoveTrustCenterWatermarkConfigCreatorIDs(ids...) } -// Save executes the query and returns the number of nodes affected by the update operation. -func (_u *OrganizationUpdate) Save(ctx context.Context) (int, error) { - if err := _u.defaults(); err != nil { - return 0, err - } - return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +// ClearUserCreators clears all "user_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearUserCreators() *OrganizationUpdate { + _u.mutation.ClearUserCreators() + return _u } -// SaveX is like Save, but panics if an error occurs. -func (_u *OrganizationUpdate) SaveX(ctx context.Context) int { - affected, err := _u.Save(ctx) - if err != nil { - panic(err) +// RemoveUserCreatorIDs removes the "user_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveUserCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveUserCreatorIDs(ids...) + return _u +} + +// RemoveUserCreators removes "user_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveUserCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return affected + return _u.RemoveUserCreatorIDs(ids...) } -// Exec executes the query. -func (_u *OrganizationUpdate) Exec(ctx context.Context) error { - _, err := _u.Save(ctx) - return err +// ClearUserSettingCreators clears all "user_setting_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearUserSettingCreators() *OrganizationUpdate { + _u.mutation.ClearUserSettingCreators() + return _u } -// ExecX is like Exec, but panics if an error occurs. -func (_u *OrganizationUpdate) ExecX(ctx context.Context) { - if err := _u.Exec(ctx); err != nil { - panic(err) - } +// RemoveUserSettingCreatorIDs removes the "user_setting_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveUserSettingCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveUserSettingCreatorIDs(ids...) + return _u } -// defaults sets the default values of the builder before save. -func (_u *OrganizationUpdate) defaults() error { - if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { - if organization.UpdateDefaultUpdatedAt == nil { - return fmt.Errorf("generated: uninitialized organization.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") - } - v := organization.UpdateDefaultUpdatedAt() - _u.mutation.SetUpdatedAt(v) +// RemoveUserSettingCreators removes "user_setting_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveUserSettingCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return nil + return _u.RemoveUserSettingCreatorIDs(ids...) } -// check runs all checks and user-defined validators on the builder. -func (_u *OrganizationUpdate) check() error { - if v, ok := _u.mutation.DisplayName(); ok { - if err := organization.DisplayNameValidator(v); err != nil { - return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} - } - } - if v, ok := _u.mutation.AvatarRemoteURL(); ok { - if err := organization.AvatarRemoteURLValidator(v); err != nil { - return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} - } +// ClearVendorRiskScoreCreators clears all "vendor_risk_score_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearVendorRiskScoreCreators() *OrganizationUpdate { + _u.mutation.ClearVendorRiskScoreCreators() + return _u +} + +// RemoveVendorRiskScoreCreatorIDs removes the "vendor_risk_score_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveVendorRiskScoreCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveVendorRiskScoreCreatorIDs(ids...) + return _u +} + +// RemoveVendorRiskScoreCreators removes "vendor_risk_score_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveVendorRiskScoreCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return nil + return _u.RemoveVendorRiskScoreCreatorIDs(ids...) } -// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. -func (_u *OrganizationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdate { - _u.modifiers = append(_u.modifiers, modifiers...) +// ClearVulnerabilityCreators clears all "vulnerability_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearVulnerabilityCreators() *OrganizationUpdate { + _u.mutation.ClearVulnerabilityCreators() return _u } -func (_u *OrganizationUpdate) sqlSave(ctx context.Context) (_node int, err error) { - if err := _u.check(); err != nil { - return _node, err +// RemoveVulnerabilityCreatorIDs removes the "vulnerability_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveVulnerabilityCreatorIDs(ids...) + return _u +} + +// RemoveVulnerabilityCreators removes "vulnerability_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveVulnerabilityCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - _spec := sqlgraph.NewUpdateSpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) - if ps := _u.mutation.predicates; len(ps) > 0 { - _spec.Predicate = func(selector *sql.Selector) { - for i := range ps { - ps[i](selector) - } - } + return _u.RemoveVulnerabilityCreatorIDs(ids...) +} + +// ClearWorkflowAssignmentCreators clears all "workflow_assignment_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowAssignmentCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowAssignmentCreators() + return _u +} + +// RemoveWorkflowAssignmentCreatorIDs removes the "workflow_assignment_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowAssignmentCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowAssignmentCreators removes "workflow_assignment_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CreatedAtCleared() { - _spec.ClearField(organization.FieldCreatedAt, field.TypeTime) + return _u.RemoveWorkflowAssignmentCreatorIDs(ids...) +} + +// ClearWorkflowAssignmentTargetCreators clears all "workflow_assignment_target_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowAssignmentTargetCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowAssignmentTargetCreators() + return _u +} + +// RemoveWorkflowAssignmentTargetCreatorIDs removes the "workflow_assignment_target_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargetCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowAssignmentTargetCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowAssignmentTargetCreators removes "workflow_assignment_target_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargetCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.UpdatedAt(); ok { - _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) + return _u.RemoveWorkflowAssignmentTargetCreatorIDs(ids...) +} + +// ClearWorkflowDefinitionCreators clears all "workflow_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowDefinitionCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowDefinitionCreators() + return _u +} + +// RemoveWorkflowDefinitionCreatorIDs removes the "workflow_definition_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowDefinitionCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowDefinitionCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowDefinitionCreators removes "workflow_definition_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowDefinitionCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.UpdatedAtCleared() { - _spec.ClearField(organization.FieldUpdatedAt, field.TypeTime) + return _u.RemoveWorkflowDefinitionCreatorIDs(ids...) +} + +// ClearWorkflowEventCreators clears all "workflow_event_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowEventCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowEventCreators() + return _u +} + +// RemoveWorkflowEventCreatorIDs removes the "workflow_event_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowEventCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowEventCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowEventCreators removes "workflow_event_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowEventCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CreatedByCleared() { - _spec.ClearField(organization.FieldCreatedBy, field.TypeString) + return _u.RemoveWorkflowEventCreatorIDs(ids...) +} + +// ClearWorkflowInstanceCreators clears all "workflow_instance_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowInstanceCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowInstanceCreators() + return _u +} + +// RemoveWorkflowInstanceCreatorIDs removes the "workflow_instance_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowInstanceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowInstanceCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowInstanceCreators removes "workflow_instance_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowInstanceCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.UpdatedBy(); ok { - _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) + return _u.RemoveWorkflowInstanceCreatorIDs(ids...) +} + +// ClearWorkflowObjectRefCreators clears all "workflow_object_ref_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowObjectRefCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowObjectRefCreators() + return _u +} + +// RemoveWorkflowObjectRefCreatorIDs removes the "workflow_object_ref_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowObjectRefCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowObjectRefCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowObjectRefCreators removes "workflow_object_ref_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowObjectRefCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.UpdatedByCleared() { - _spec.ClearField(organization.FieldUpdatedBy, field.TypeString) + return _u.RemoveWorkflowObjectRefCreatorIDs(ids...) +} + +// ClearWorkflowProposalCreators clears all "workflow_proposal_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowProposalCreators() *OrganizationUpdate { + _u.mutation.ClearWorkflowProposalCreators() + return _u +} + +// RemoveWorkflowProposalCreatorIDs removes the "workflow_proposal_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowProposalCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowProposalCreatorIDs(ids...) + return _u +} + +// RemoveWorkflowProposalCreators removes "workflow_proposal_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowProposalCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.DeletedAt(); ok { - _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) + return _u.RemoveWorkflowProposalCreatorIDs(ids...) +} + +// ClearCampaignsManager clears all "campaigns_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearCampaignsManager() *OrganizationUpdate { + _u.mutation.ClearCampaignsManager() + return _u +} + +// RemoveCampaignsManagerIDs removes the "campaigns_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveCampaignsManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCampaignsManagerIDs(ids...) + return _u +} + +// RemoveCampaignsManager removes "campaigns_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveCampaignsManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DeletedAtCleared() { - _spec.ClearField(organization.FieldDeletedAt, field.TypeTime) + return _u.RemoveCampaignsManagerIDs(ids...) +} + +// ClearComplianceManager clears all "compliance_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearComplianceManager() *OrganizationUpdate { + _u.mutation.ClearComplianceManager() + return _u +} + +// RemoveComplianceManagerIDs removes the "compliance_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveComplianceManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveComplianceManagerIDs(ids...) + return _u +} + +// RemoveComplianceManager removes "compliance_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveComplianceManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.DeletedBy(); ok { - _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) + return _u.RemoveComplianceManagerIDs(ids...) +} + +// ClearGroupManager clears all "group_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearGroupManager() *OrganizationUpdate { + _u.mutation.ClearGroupManager() + return _u +} + +// RemoveGroupManagerIDs removes the "group_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveGroupManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveGroupManagerIDs(ids...) + return _u +} + +// RemoveGroupManager removes "group_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveGroupManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DeletedByCleared() { - _spec.ClearField(organization.FieldDeletedBy, field.TypeString) + return _u.RemoveGroupManagerIDs(ids...) +} + +// ClearPoliciesManager clears all "policies_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearPoliciesManager() *OrganizationUpdate { + _u.mutation.ClearPoliciesManager() + return _u +} + +// RemovePoliciesManagerIDs removes the "policies_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemovePoliciesManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemovePoliciesManagerIDs(ids...) + return _u +} + +// RemovePoliciesManager removes "policies_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemovePoliciesManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.Tags(); ok { - _spec.SetField(organization.FieldTags, field.TypeJSON, value) + return _u.RemovePoliciesManagerIDs(ids...) +} + +// ClearRegistryManager clears all "registry_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearRegistryManager() *OrganizationUpdate { + _u.mutation.ClearRegistryManager() + return _u +} + +// RemoveRegistryManagerIDs removes the "registry_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveRegistryManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRegistryManagerIDs(ids...) + return _u +} + +// RemoveRegistryManager removes "registry_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveRegistryManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.AppendedTags(); ok { - _spec.AddModifier(func(u *sql.UpdateBuilder) { - sqljson.Append(u, organization.FieldTags, value) - }) + return _u.RemoveRegistryManagerIDs(ids...) +} + +// ClearRiskManager clears all "risk_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearRiskManager() *OrganizationUpdate { + _u.mutation.ClearRiskManager() + return _u +} + +// RemoveRiskManagerIDs removes the "risk_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveRiskManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRiskManagerIDs(ids...) + return _u +} + +// RemoveRiskManager removes "risk_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveRiskManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.TagsCleared() { - _spec.ClearField(organization.FieldTags, field.TypeJSON) + return _u.RemoveRiskManagerIDs(ids...) +} + +// ClearTrustCenterManager clears all "trust_center_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearTrustCenterManager() *OrganizationUpdate { + _u.mutation.ClearTrustCenterManager() + return _u +} + +// RemoveTrustCenterManagerIDs removes the "trust_center_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterManagerIDs(ids...) + return _u +} + +// RemoveTrustCenterManager removes "trust_center_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveTrustCenterManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.DisplayName(); ok { - _spec.SetField(organization.FieldDisplayName, field.TypeString, value) + return _u.RemoveTrustCenterManagerIDs(ids...) +} + +// ClearWorkflowsManager clears all "workflows_manager" edges to the Group entity. +func (_u *OrganizationUpdate) ClearWorkflowsManager() *OrganizationUpdate { + _u.mutation.ClearWorkflowsManager() + return _u +} + +// RemoveWorkflowsManagerIDs removes the "workflows_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowsManagerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowsManagerIDs(ids...) + return _u +} + +// RemoveWorkflowsManager removes "workflows_manager" edges to Group entities. +func (_u *OrganizationUpdate) RemoveWorkflowsManager(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.Description(); ok { - _spec.SetField(organization.FieldDescription, field.TypeString, value) + return _u.RemoveWorkflowsManagerIDs(ids...) +} + +// ClearChildren clears all "children" edges to the Organization entity. +func (_u *OrganizationUpdate) ClearChildren() *OrganizationUpdate { + _u.mutation.ClearChildren() + return _u +} + +// RemoveChildIDs removes the "children" edge to Organization entities by IDs. +func (_u *OrganizationUpdate) RemoveChildIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveChildIDs(ids...) + return _u +} + +// RemoveChildren removes "children" edges to Organization entities. +func (_u *OrganizationUpdate) RemoveChildren(v ...*Organization) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DescriptionCleared() { - _spec.ClearField(organization.FieldDescription, field.TypeString) + return _u.RemoveChildIDs(ids...) +} + +// ClearSetting clears the "setting" edge to the OrganizationSetting entity. +func (_u *OrganizationUpdate) ClearSetting() *OrganizationUpdate { + _u.mutation.ClearSetting() + return _u +} + +// ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity. +func (_u *OrganizationUpdate) ClearPersonalAccessTokens() *OrganizationUpdate { + _u.mutation.ClearPersonalAccessTokens() + return _u +} + +// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs. +func (_u *OrganizationUpdate) RemovePersonalAccessTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemovePersonalAccessTokenIDs(ids...) + return _u +} + +// RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities. +func (_u *OrganizationUpdate) RemovePersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.PersonalOrgCleared() { - _spec.ClearField(organization.FieldPersonalOrg, field.TypeBool) + return _u.RemovePersonalAccessTokenIDs(ids...) +} + +// ClearAPITokens clears all "api_tokens" edges to the APIToken entity. +func (_u *OrganizationUpdate) ClearAPITokens() *OrganizationUpdate { + _u.mutation.ClearAPITokens() + return _u +} + +// RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs. +func (_u *OrganizationUpdate) RemoveAPITokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAPITokenIDs(ids...) + return _u +} + +// RemoveAPITokens removes "api_tokens" edges to APIToken entities. +func (_u *OrganizationUpdate) RemoveAPITokens(v ...*APIToken) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.AvatarRemoteURL(); ok { - _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) - } - if _u.mutation.AvatarRemoteURLCleared() { - _spec.ClearField(organization.FieldAvatarRemoteURL, field.TypeString) - } - if value, ok := _u.mutation.AvatarUpdatedAt(); ok { - _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) + return _u.RemoveAPITokenIDs(ids...) +} + +// ClearEmailTemplates clears all "email_templates" edges to the EmailTemplate entity. +func (_u *OrganizationUpdate) ClearEmailTemplates() *OrganizationUpdate { + _u.mutation.ClearEmailTemplates() + return _u +} + +// RemoveEmailTemplateIDs removes the "email_templates" edge to EmailTemplate entities by IDs. +func (_u *OrganizationUpdate) RemoveEmailTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEmailTemplateIDs(ids...) + return _u +} + +// RemoveEmailTemplates removes "email_templates" edges to EmailTemplate entities. +func (_u *OrganizationUpdate) RemoveEmailTemplates(v ...*EmailTemplate) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.AvatarUpdatedAtCleared() { - _spec.ClearField(organization.FieldAvatarUpdatedAt, field.TypeTime) + return _u.RemoveEmailTemplateIDs(ids...) +} + +// ClearIntegrationWebhooks clears all "integration_webhooks" edges to the IntegrationWebhook entity. +func (_u *OrganizationUpdate) ClearIntegrationWebhooks() *OrganizationUpdate { + _u.mutation.ClearIntegrationWebhooks() + return _u +} + +// RemoveIntegrationWebhookIDs removes the "integration_webhooks" edge to IntegrationWebhook entities by IDs. +func (_u *OrganizationUpdate) RemoveIntegrationWebhookIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIntegrationWebhookIDs(ids...) + return _u +} + +// RemoveIntegrationWebhooks removes "integration_webhooks" edges to IntegrationWebhook entities. +func (_u *OrganizationUpdate) RemoveIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.DedicatedDb(); ok { - _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) + return _u.RemoveIntegrationWebhookIDs(ids...) +} + +// ClearIntegrationRuns clears all "integration_runs" edges to the IntegrationRun entity. +func (_u *OrganizationUpdate) ClearIntegrationRuns() *OrganizationUpdate { + _u.mutation.ClearIntegrationRuns() + return _u +} + +// RemoveIntegrationRunIDs removes the "integration_runs" edge to IntegrationRun entities by IDs. +func (_u *OrganizationUpdate) RemoveIntegrationRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIntegrationRunIDs(ids...) + return _u +} + +// RemoveIntegrationRuns removes "integration_runs" edges to IntegrationRun entities. +func (_u *OrganizationUpdate) RemoveIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if value, ok := _u.mutation.StripeCustomerID(); ok { - _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) + return _u.RemoveIntegrationRunIDs(ids...) +} + +// ClearNotificationPreferences clears all "notification_preferences" edges to the NotificationPreference entity. +func (_u *OrganizationUpdate) ClearNotificationPreferences() *OrganizationUpdate { + _u.mutation.ClearNotificationPreferences() + return _u +} + +// RemoveNotificationPreferenceIDs removes the "notification_preferences" edge to NotificationPreference entities by IDs. +func (_u *OrganizationUpdate) RemoveNotificationPreferenceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNotificationPreferenceIDs(ids...) + return _u +} + +// RemoveNotificationPreferences removes "notification_preferences" edges to NotificationPreference entities. +func (_u *OrganizationUpdate) RemoveNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.StripeCustomerIDCleared() { - _spec.ClearField(organization.FieldStripeCustomerID, field.TypeString) + return _u.RemoveNotificationPreferenceIDs(ids...) +} + +// ClearNotificationTemplates clears all "notification_templates" edges to the NotificationTemplate entity. +func (_u *OrganizationUpdate) ClearNotificationTemplates() *OrganizationUpdate { + _u.mutation.ClearNotificationTemplates() + return _u +} + +// RemoveNotificationTemplateIDs removes the "notification_templates" edge to NotificationTemplate entities by IDs. +func (_u *OrganizationUpdate) RemoveNotificationTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNotificationTemplateIDs(ids...) + return _u +} + +// RemoveNotificationTemplates removes "notification_templates" edges to NotificationTemplate entities. +func (_u *OrganizationUpdate) RemoveNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ControlCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveNotificationTemplateIDs(ids...) +} + +// ClearUsers clears all "users" edges to the User entity. +func (_u *OrganizationUpdate) ClearUsers() *OrganizationUpdate { + _u.mutation.ClearUsers() + return _u +} + +// RemoveUserIDs removes the "users" edge to User entities by IDs. +func (_u *OrganizationUpdate) RemoveUserIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveUserIDs(ids...) + return _u +} + +// RemoveUsers removes "users" edges to User entities. +func (_u *OrganizationUpdate) RemoveUsers(v ...*User) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveUserIDs(ids...) +} + +// ClearFiles clears all "files" edges to the File entity. +func (_u *OrganizationUpdate) ClearFiles() *OrganizationUpdate { + _u.mutation.ClearFiles() + return _u +} + +// RemoveFileIDs removes the "files" edge to File entities by IDs. +func (_u *OrganizationUpdate) RemoveFileIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveFileIDs(ids...) + return _u +} + +// RemoveFiles removes "files" edges to File entities. +func (_u *OrganizationUpdate) RemoveFiles(v ...*File) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ControlCreatorsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveFileIDs(ids...) +} + +// ClearEvents clears all "events" edges to the Event entity. +func (_u *OrganizationUpdate) ClearEvents() *OrganizationUpdate { + _u.mutation.ClearEvents() + return _u +} + +// RemoveEventIDs removes the "events" edge to Event entities by IDs. +func (_u *OrganizationUpdate) RemoveEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEventIDs(ids...) + return _u +} + +// RemoveEvents removes "events" edges to Event entities. +func (_u *OrganizationUpdate) RemoveEvents(v ...*Event) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ControlImplementationCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveEventIDs(ids...) +} + +// ClearSecrets clears all "secrets" edges to the Hush entity. +func (_u *OrganizationUpdate) ClearSecrets() *OrganizationUpdate { + _u.mutation.ClearSecrets() + return _u +} + +// RemoveSecretIDs removes the "secrets" edge to Hush entities by IDs. +func (_u *OrganizationUpdate) RemoveSecretIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSecretIDs(ids...) + return _u +} + +// RemoveSecrets removes "secrets" edges to Hush entities. +func (_u *OrganizationUpdate) RemoveSecrets(v ...*Hush) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedControlImplementationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + return _u.RemoveSecretIDs(ids...) +} + +// ClearAvatarFile clears the "avatar_file" edge to the File entity. +func (_u *OrganizationUpdate) ClearAvatarFile() *OrganizationUpdate { + _u.mutation.ClearAvatarFile() + return _u +} + +// ClearGroups clears all "groups" edges to the Group entity. +func (_u *OrganizationUpdate) ClearGroups() *OrganizationUpdate { + _u.mutation.ClearGroups() + return _u +} + +// RemoveGroupIDs removes the "groups" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveGroupIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveGroupIDs(ids...) + return _u +} + +// RemoveGroups removes "groups" edges to Group entities. +func (_u *OrganizationUpdate) RemoveGroups(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveGroupIDs(ids...) +} + +// ClearTemplates clears all "templates" edges to the Template entity. +func (_u *OrganizationUpdate) ClearTemplates() *OrganizationUpdate { + _u.mutation.ClearTemplates() + return _u +} + +// RemoveTemplateIDs removes the "templates" edge to Template entities by IDs. +func (_u *OrganizationUpdate) RemoveTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTemplateIDs(ids...) + return _u +} + +// RemoveTemplates removes "templates" edges to Template entities. +func (_u *OrganizationUpdate) RemoveTemplates(v ...*Template) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveTemplateIDs(ids...) +} + +// ClearIntegrations clears all "integrations" edges to the Integration entity. +func (_u *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate { + _u.mutation.ClearIntegrations() + return _u +} + +// RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs. +func (_u *OrganizationUpdate) RemoveIntegrationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIntegrationIDs(ids...) + return _u +} + +// RemoveIntegrations removes "integrations" edges to Integration entities. +func (_u *OrganizationUpdate) RemoveIntegrations(v ...*Integration) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveIntegrationIDs(ids...) +} + +// ClearDocuments clears all "documents" edges to the DocumentData entity. +func (_u *OrganizationUpdate) ClearDocuments() *OrganizationUpdate { + _u.mutation.ClearDocuments() + return _u +} + +// RemoveDocumentIDs removes the "documents" edge to DocumentData entities by IDs. +func (_u *OrganizationUpdate) RemoveDocumentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDocumentIDs(ids...) + return _u +} + +// RemoveDocuments removes "documents" edges to DocumentData entities. +func (_u *OrganizationUpdate) RemoveDocuments(v ...*DocumentData) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDocumentIDs(ids...) +} + +// ClearOrgSubscriptions clears all "org_subscriptions" edges to the OrgSubscription entity. +func (_u *OrganizationUpdate) ClearOrgSubscriptions() *OrganizationUpdate { + _u.mutation.ClearOrgSubscriptions() + return _u +} + +// RemoveOrgSubscriptionIDs removes the "org_subscriptions" edge to OrgSubscription entities by IDs. +func (_u *OrganizationUpdate) RemoveOrgSubscriptionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveOrgSubscriptionIDs(ids...) + return _u +} + +// RemoveOrgSubscriptions removes "org_subscriptions" edges to OrgSubscription entities. +func (_u *OrganizationUpdate) RemoveOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveOrgSubscriptionIDs(ids...) +} + +// ClearOrgProducts clears all "org_products" edges to the OrgProduct entity. +func (_u *OrganizationUpdate) ClearOrgProducts() *OrganizationUpdate { + _u.mutation.ClearOrgProducts() + return _u +} + +// RemoveOrgProductIDs removes the "org_products" edge to OrgProduct entities by IDs. +func (_u *OrganizationUpdate) RemoveOrgProductIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveOrgProductIDs(ids...) + return _u +} + +// RemoveOrgProducts removes "org_products" edges to OrgProduct entities. +func (_u *OrganizationUpdate) RemoveOrgProducts(v ...*OrgProduct) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveOrgProductIDs(ids...) +} + +// ClearOrgPrices clears all "org_prices" edges to the OrgPrice entity. +func (_u *OrganizationUpdate) ClearOrgPrices() *OrganizationUpdate { + _u.mutation.ClearOrgPrices() + return _u +} + +// RemoveOrgPriceIDs removes the "org_prices" edge to OrgPrice entities by IDs. +func (_u *OrganizationUpdate) RemoveOrgPriceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveOrgPriceIDs(ids...) + return _u +} + +// RemoveOrgPrices removes "org_prices" edges to OrgPrice entities. +func (_u *OrganizationUpdate) RemoveOrgPrices(v ...*OrgPrice) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveOrgPriceIDs(ids...) +} + +// ClearOrgModules clears all "org_modules" edges to the OrgModule entity. +func (_u *OrganizationUpdate) ClearOrgModules() *OrganizationUpdate { + _u.mutation.ClearOrgModules() + return _u +} + +// RemoveOrgModuleIDs removes the "org_modules" edge to OrgModule entities by IDs. +func (_u *OrganizationUpdate) RemoveOrgModuleIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveOrgModuleIDs(ids...) + return _u +} + +// RemoveOrgModules removes "org_modules" edges to OrgModule entities. +func (_u *OrganizationUpdate) RemoveOrgModules(v ...*OrgModule) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveOrgModuleIDs(ids...) +} + +// ClearInvites clears all "invites" edges to the Invite entity. +func (_u *OrganizationUpdate) ClearInvites() *OrganizationUpdate { + _u.mutation.ClearInvites() + return _u +} + +// RemoveInviteIDs removes the "invites" edge to Invite entities by IDs. +func (_u *OrganizationUpdate) RemoveInviteIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveInviteIDs(ids...) + return _u +} + +// RemoveInvites removes "invites" edges to Invite entities. +func (_u *OrganizationUpdate) RemoveInvites(v ...*Invite) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveInviteIDs(ids...) +} + +// ClearSubscribers clears all "subscribers" edges to the Subscriber entity. +func (_u *OrganizationUpdate) ClearSubscribers() *OrganizationUpdate { + _u.mutation.ClearSubscribers() + return _u +} + +// RemoveSubscriberIDs removes the "subscribers" edge to Subscriber entities by IDs. +func (_u *OrganizationUpdate) RemoveSubscriberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubscriberIDs(ids...) + return _u +} + +// RemoveSubscribers removes "subscribers" edges to Subscriber entities. +func (_u *OrganizationUpdate) RemoveSubscribers(v ...*Subscriber) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveSubscriberIDs(ids...) +} + +// ClearEntities clears all "entities" edges to the Entity entity. +func (_u *OrganizationUpdate) ClearEntities() *OrganizationUpdate { + _u.mutation.ClearEntities() + return _u +} + +// RemoveEntityIDs removes the "entities" edge to Entity entities by IDs. +func (_u *OrganizationUpdate) RemoveEntityIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEntityIDs(ids...) + return _u +} + +// RemoveEntities removes "entities" edges to Entity entities. +func (_u *OrganizationUpdate) RemoveEntities(v ...*Entity) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEntityIDs(ids...) +} + +// ClearPlatforms clears all "platforms" edges to the Platform entity. +func (_u *OrganizationUpdate) ClearPlatforms() *OrganizationUpdate { + _u.mutation.ClearPlatforms() + return _u +} + +// RemovePlatformIDs removes the "platforms" edge to Platform entities by IDs. +func (_u *OrganizationUpdate) RemovePlatformIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemovePlatformIDs(ids...) + return _u +} + +// RemovePlatforms removes "platforms" edges to Platform entities. +func (_u *OrganizationUpdate) RemovePlatforms(v ...*Platform) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemovePlatformIDs(ids...) +} + +// ClearIdentityHolders clears all "identity_holders" edges to the IdentityHolder entity. +func (_u *OrganizationUpdate) ClearIdentityHolders() *OrganizationUpdate { + _u.mutation.ClearIdentityHolders() + return _u +} + +// RemoveIdentityHolderIDs removes the "identity_holders" edge to IdentityHolder entities by IDs. +func (_u *OrganizationUpdate) RemoveIdentityHolderIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveIdentityHolderIDs(ids...) + return _u +} + +// RemoveIdentityHolders removes "identity_holders" edges to IdentityHolder entities. +func (_u *OrganizationUpdate) RemoveIdentityHolders(v ...*IdentityHolder) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveIdentityHolderIDs(ids...) +} + +// ClearCampaigns clears all "campaigns" edges to the Campaign entity. +func (_u *OrganizationUpdate) ClearCampaigns() *OrganizationUpdate { + _u.mutation.ClearCampaigns() + return _u +} + +// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. +func (_u *OrganizationUpdate) RemoveCampaignIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCampaignIDs(ids...) + return _u +} + +// RemoveCampaigns removes "campaigns" edges to Campaign entities. +func (_u *OrganizationUpdate) RemoveCampaigns(v ...*Campaign) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCampaignIDs(ids...) +} + +// ClearCampaignTargets clears all "campaign_targets" edges to the CampaignTarget entity. +func (_u *OrganizationUpdate) ClearCampaignTargets() *OrganizationUpdate { + _u.mutation.ClearCampaignTargets() + return _u +} + +// RemoveCampaignTargetIDs removes the "campaign_targets" edge to CampaignTarget entities by IDs. +func (_u *OrganizationUpdate) RemoveCampaignTargetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCampaignTargetIDs(ids...) + return _u +} + +// RemoveCampaignTargets removes "campaign_targets" edges to CampaignTarget entities. +func (_u *OrganizationUpdate) RemoveCampaignTargets(v ...*CampaignTarget) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCampaignTargetIDs(ids...) +} + +// ClearEntityTypes clears all "entity_types" edges to the EntityType entity. +func (_u *OrganizationUpdate) ClearEntityTypes() *OrganizationUpdate { + _u.mutation.ClearEntityTypes() + return _u +} + +// RemoveEntityTypeIDs removes the "entity_types" edge to EntityType entities by IDs. +func (_u *OrganizationUpdate) RemoveEntityTypeIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEntityTypeIDs(ids...) + return _u +} + +// RemoveEntityTypes removes "entity_types" edges to EntityType entities. +func (_u *OrganizationUpdate) RemoveEntityTypes(v ...*EntityType) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEntityTypeIDs(ids...) +} + +// ClearContacts clears all "contacts" edges to the Contact entity. +func (_u *OrganizationUpdate) ClearContacts() *OrganizationUpdate { + _u.mutation.ClearContacts() + return _u +} + +// RemoveContactIDs removes the "contacts" edge to Contact entities by IDs. +func (_u *OrganizationUpdate) RemoveContactIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveContactIDs(ids...) + return _u +} + +// RemoveContacts removes "contacts" edges to Contact entities. +func (_u *OrganizationUpdate) RemoveContacts(v ...*Contact) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveContactIDs(ids...) +} + +// ClearNotes clears all "notes" edges to the Note entity. +func (_u *OrganizationUpdate) ClearNotes() *OrganizationUpdate { + _u.mutation.ClearNotes() + return _u +} + +// RemoveNoteIDs removes the "notes" edge to Note entities by IDs. +func (_u *OrganizationUpdate) RemoveNoteIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNoteIDs(ids...) + return _u +} + +// RemoveNotes removes "notes" edges to Note entities. +func (_u *OrganizationUpdate) RemoveNotes(v ...*Note) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveNoteIDs(ids...) +} + +// ClearTasks clears all "tasks" edges to the Task entity. +func (_u *OrganizationUpdate) ClearTasks() *OrganizationUpdate { + _u.mutation.ClearTasks() + return _u +} + +// RemoveTaskIDs removes the "tasks" edge to Task entities by IDs. +func (_u *OrganizationUpdate) RemoveTaskIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTaskIDs(ids...) + return _u +} + +// RemoveTasks removes "tasks" edges to Task entities. +func (_u *OrganizationUpdate) RemoveTasks(v ...*Task) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveTaskIDs(ids...) +} + +// ClearPrograms clears all "programs" edges to the Program entity. +func (_u *OrganizationUpdate) ClearPrograms() *OrganizationUpdate { + _u.mutation.ClearPrograms() + return _u +} + +// RemoveProgramIDs removes the "programs" edge to Program entities by IDs. +func (_u *OrganizationUpdate) RemoveProgramIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveProgramIDs(ids...) + return _u +} + +// RemovePrograms removes "programs" edges to Program entities. +func (_u *OrganizationUpdate) RemovePrograms(v ...*Program) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveProgramIDs(ids...) +} + +// ClearSystemDetails clears all "system_details" edges to the SystemDetail entity. +func (_u *OrganizationUpdate) ClearSystemDetails() *OrganizationUpdate { + _u.mutation.ClearSystemDetails() + return _u +} + +// RemoveSystemDetailIDs removes the "system_details" edge to SystemDetail entities by IDs. +func (_u *OrganizationUpdate) RemoveSystemDetailIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSystemDetailIDs(ids...) + return _u +} + +// RemoveSystemDetails removes "system_details" edges to SystemDetail entities. +func (_u *OrganizationUpdate) RemoveSystemDetails(v ...*SystemDetail) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveSystemDetailIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (_u *OrganizationUpdate) ClearProcedures() *OrganizationUpdate { + _u.mutation.ClearProcedures() + return _u +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (_u *OrganizationUpdate) RemoveProcedureIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveProcedureIDs(ids...) + return _u +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (_u *OrganizationUpdate) RemoveProcedures(v ...*Procedure) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveProcedureIDs(ids...) +} + +// ClearInternalPolicies clears all "internal_policies" edges to the InternalPolicy entity. +func (_u *OrganizationUpdate) ClearInternalPolicies() *OrganizationUpdate { + _u.mutation.ClearInternalPolicies() + return _u +} + +// RemoveInternalPolicyIDs removes the "internal_policies" edge to InternalPolicy entities by IDs. +func (_u *OrganizationUpdate) RemoveInternalPolicyIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveInternalPolicyIDs(ids...) + return _u +} + +// RemoveInternalPolicies removes "internal_policies" edges to InternalPolicy entities. +func (_u *OrganizationUpdate) RemoveInternalPolicies(v ...*InternalPolicy) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveInternalPolicyIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (_u *OrganizationUpdate) ClearRisks() *OrganizationUpdate { + _u.mutation.ClearRisks() + return _u +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (_u *OrganizationUpdate) RemoveRiskIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRiskIDs(ids...) + return _u +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (_u *OrganizationUpdate) RemoveRisks(v ...*Risk) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveRiskIDs(ids...) +} + +// ClearControlObjectives clears all "control_objectives" edges to the ControlObjective entity. +func (_u *OrganizationUpdate) ClearControlObjectives() *OrganizationUpdate { + _u.mutation.ClearControlObjectives() + return _u +} + +// RemoveControlObjectiveIDs removes the "control_objectives" edge to ControlObjective entities by IDs. +func (_u *OrganizationUpdate) RemoveControlObjectiveIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlObjectiveIDs(ids...) + return _u +} + +// RemoveControlObjectives removes "control_objectives" edges to ControlObjective entities. +func (_u *OrganizationUpdate) RemoveControlObjectives(v ...*ControlObjective) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveControlObjectiveIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (_u *OrganizationUpdate) ClearNarratives() *OrganizationUpdate { + _u.mutation.ClearNarratives() + return _u +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (_u *OrganizationUpdate) RemoveNarrativeIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNarrativeIDs(ids...) + return _u +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (_u *OrganizationUpdate) RemoveNarratives(v ...*Narrative) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveNarrativeIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (_u *OrganizationUpdate) ClearControls() *OrganizationUpdate { + _u.mutation.ClearControls() + return _u +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (_u *OrganizationUpdate) RemoveControlIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlIDs(ids...) + return _u +} + +// RemoveControls removes "controls" edges to Control entities. +func (_u *OrganizationUpdate) RemoveControls(v ...*Control) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveControlIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (_u *OrganizationUpdate) ClearSubcontrols() *OrganizationUpdate { + _u.mutation.ClearSubcontrols() + return _u +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (_u *OrganizationUpdate) RemoveSubcontrolIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubcontrolIDs(ids...) + return _u +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (_u *OrganizationUpdate) RemoveSubcontrols(v ...*Subcontrol) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveSubcontrolIDs(ids...) +} + +// ClearControlImplementations clears all "control_implementations" edges to the ControlImplementation entity. +func (_u *OrganizationUpdate) ClearControlImplementations() *OrganizationUpdate { + _u.mutation.ClearControlImplementations() + return _u +} + +// RemoveControlImplementationIDs removes the "control_implementations" edge to ControlImplementation entities by IDs. +func (_u *OrganizationUpdate) RemoveControlImplementationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveControlImplementationIDs(ids...) + return _u +} + +// RemoveControlImplementations removes "control_implementations" edges to ControlImplementation entities. +func (_u *OrganizationUpdate) RemoveControlImplementations(v ...*ControlImplementation) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveControlImplementationIDs(ids...) +} + +// ClearMappedControls clears all "mapped_controls" edges to the MappedControl entity. +func (_u *OrganizationUpdate) ClearMappedControls() *OrganizationUpdate { + _u.mutation.ClearMappedControls() + return _u +} + +// RemoveMappedControlIDs removes the "mapped_controls" edge to MappedControl entities by IDs. +func (_u *OrganizationUpdate) RemoveMappedControlIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveMappedControlIDs(ids...) + return _u +} + +// RemoveMappedControls removes "mapped_controls" edges to MappedControl entities. +func (_u *OrganizationUpdate) RemoveMappedControls(v ...*MappedControl) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveMappedControlIDs(ids...) +} + +// ClearEvidence clears all "evidence" edges to the Evidence entity. +func (_u *OrganizationUpdate) ClearEvidence() *OrganizationUpdate { + _u.mutation.ClearEvidence() + return _u +} + +// RemoveEvidenceIDs removes the "evidence" edge to Evidence entities by IDs. +func (_u *OrganizationUpdate) RemoveEvidenceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveEvidenceIDs(ids...) + return _u +} + +// RemoveEvidence removes "evidence" edges to Evidence entities. +func (_u *OrganizationUpdate) RemoveEvidence(v ...*Evidence) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEvidenceIDs(ids...) +} + +// ClearStandards clears all "standards" edges to the Standard entity. +func (_u *OrganizationUpdate) ClearStandards() *OrganizationUpdate { + _u.mutation.ClearStandards() + return _u +} + +// RemoveStandardIDs removes the "standards" edge to Standard entities by IDs. +func (_u *OrganizationUpdate) RemoveStandardIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveStandardIDs(ids...) + return _u +} + +// RemoveStandards removes "standards" edges to Standard entities. +func (_u *OrganizationUpdate) RemoveStandards(v ...*Standard) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveStandardIDs(ids...) +} + +// ClearActionPlans clears all "action_plans" edges to the ActionPlan entity. +func (_u *OrganizationUpdate) ClearActionPlans() *OrganizationUpdate { + _u.mutation.ClearActionPlans() + return _u +} + +// RemoveActionPlanIDs removes the "action_plans" edge to ActionPlan entities by IDs. +func (_u *OrganizationUpdate) RemoveActionPlanIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveActionPlanIDs(ids...) + return _u +} + +// RemoveActionPlans removes "action_plans" edges to ActionPlan entities. +func (_u *OrganizationUpdate) RemoveActionPlans(v ...*ActionPlan) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveActionPlanIDs(ids...) +} + +// ClearCustomDomains clears all "custom_domains" edges to the CustomDomain entity. +func (_u *OrganizationUpdate) ClearCustomDomains() *OrganizationUpdate { + _u.mutation.ClearCustomDomains() + return _u +} + +// RemoveCustomDomainIDs removes the "custom_domains" edge to CustomDomain entities by IDs. +func (_u *OrganizationUpdate) RemoveCustomDomainIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCustomDomainIDs(ids...) + return _u +} + +// RemoveCustomDomains removes "custom_domains" edges to CustomDomain entities. +func (_u *OrganizationUpdate) RemoveCustomDomains(v ...*CustomDomain) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCustomDomainIDs(ids...) +} + +// ClearJobRunners clears all "job_runners" edges to the JobRunner entity. +func (_u *OrganizationUpdate) ClearJobRunners() *OrganizationUpdate { + _u.mutation.ClearJobRunners() + return _u +} + +// RemoveJobRunnerIDs removes the "job_runners" edge to JobRunner entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerIDs(ids...) + return _u +} + +// RemoveJobRunners removes "job_runners" edges to JobRunner entities. +func (_u *OrganizationUpdate) RemoveJobRunners(v ...*JobRunner) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveJobRunnerIDs(ids...) +} + +// ClearJobRunnerTokens clears all "job_runner_tokens" edges to the JobRunnerToken entity. +func (_u *OrganizationUpdate) ClearJobRunnerTokens() *OrganizationUpdate { + _u.mutation.ClearJobRunnerTokens() + return _u +} + +// RemoveJobRunnerTokenIDs removes the "job_runner_tokens" edge to JobRunnerToken entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerTokenIDs(ids...) + return _u +} + +// RemoveJobRunnerTokens removes "job_runner_tokens" edges to JobRunnerToken entities. +func (_u *OrganizationUpdate) RemoveJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveJobRunnerTokenIDs(ids...) +} + +// ClearJobRunnerRegistrationTokens clears all "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. +func (_u *OrganizationUpdate) ClearJobRunnerRegistrationTokens() *OrganizationUpdate { + _u.mutation.ClearJobRunnerRegistrationTokens() + return _u +} + +// RemoveJobRunnerRegistrationTokenIDs removes the "job_runner_registration_tokens" edge to JobRunnerRegistrationToken entities by IDs. +func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobRunnerRegistrationTokenIDs(ids...) + return _u +} + +// RemoveJobRunnerRegistrationTokens removes "job_runner_registration_tokens" edges to JobRunnerRegistrationToken entities. +func (_u *OrganizationUpdate) RemoveJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveJobRunnerRegistrationTokenIDs(ids...) +} + +// ClearDNSVerifications clears all "dns_verifications" edges to the DNSVerification entity. +func (_u *OrganizationUpdate) ClearDNSVerifications() *OrganizationUpdate { + _u.mutation.ClearDNSVerifications() + return _u +} + +// RemoveDNSVerificationIDs removes the "dns_verifications" edge to DNSVerification entities by IDs. +func (_u *OrganizationUpdate) RemoveDNSVerificationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDNSVerificationIDs(ids...) + return _u +} + +// RemoveDNSVerifications removes "dns_verifications" edges to DNSVerification entities. +func (_u *OrganizationUpdate) RemoveDNSVerifications(v ...*DNSVerification) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDNSVerificationIDs(ids...) +} + +// ClearJobTemplates clears all "job_templates" edges to the JobTemplate entity. +func (_u *OrganizationUpdate) ClearJobTemplates() *OrganizationUpdate { + _u.mutation.ClearJobTemplates() + return _u +} + +// RemoveJobTemplateIDs removes the "job_templates" edge to JobTemplate entities by IDs. +func (_u *OrganizationUpdate) RemoveJobTemplateIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobTemplateIDs(ids...) + return _u +} + +// RemoveJobTemplates removes "job_templates" edges to JobTemplate entities. +func (_u *OrganizationUpdate) RemoveJobTemplates(v ...*JobTemplate) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveJobTemplateIDs(ids...) +} + +// ClearScheduledJobs clears all "scheduled_jobs" edges to the ScheduledJob entity. +func (_u *OrganizationUpdate) ClearScheduledJobs() *OrganizationUpdate { + _u.mutation.ClearScheduledJobs() + return _u +} + +// RemoveScheduledJobIDs removes the "scheduled_jobs" edge to ScheduledJob entities by IDs. +func (_u *OrganizationUpdate) RemoveScheduledJobIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScheduledJobIDs(ids...) + return _u +} + +// RemoveScheduledJobs removes "scheduled_jobs" edges to ScheduledJob entities. +func (_u *OrganizationUpdate) RemoveScheduledJobs(v ...*ScheduledJob) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveScheduledJobIDs(ids...) +} + +// ClearJobResults clears all "job_results" edges to the JobResult entity. +func (_u *OrganizationUpdate) ClearJobResults() *OrganizationUpdate { + _u.mutation.ClearJobResults() + return _u +} + +// RemoveJobResultIDs removes the "job_results" edge to JobResult entities by IDs. +func (_u *OrganizationUpdate) RemoveJobResultIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveJobResultIDs(ids...) + return _u +} + +// RemoveJobResults removes "job_results" edges to JobResult entities. +func (_u *OrganizationUpdate) RemoveJobResults(v ...*JobResult) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveJobResultIDs(ids...) +} + +// ClearScheduledJobRuns clears all "scheduled_job_runs" edges to the ScheduledJobRun entity. +func (_u *OrganizationUpdate) ClearScheduledJobRuns() *OrganizationUpdate { + _u.mutation.ClearScheduledJobRuns() + return _u +} + +// RemoveScheduledJobRunIDs removes the "scheduled_job_runs" edge to ScheduledJobRun entities by IDs. +func (_u *OrganizationUpdate) RemoveScheduledJobRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScheduledJobRunIDs(ids...) + return _u +} + +// RemoveScheduledJobRuns removes "scheduled_job_runs" edges to ScheduledJobRun entities. +func (_u *OrganizationUpdate) RemoveScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveScheduledJobRunIDs(ids...) +} + +// ClearTrustCenters clears all "trust_centers" edges to the TrustCenter entity. +func (_u *OrganizationUpdate) ClearTrustCenters() *OrganizationUpdate { + _u.mutation.ClearTrustCenters() + return _u +} + +// RemoveTrustCenterIDs removes the "trust_centers" edge to TrustCenter entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterIDs(ids...) + return _u +} + +// RemoveTrustCenters removes "trust_centers" edges to TrustCenter entities. +func (_u *OrganizationUpdate) RemoveTrustCenters(v ...*TrustCenter) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveTrustCenterIDs(ids...) +} + +// ClearAssets clears all "assets" edges to the Asset entity. +func (_u *OrganizationUpdate) ClearAssets() *OrganizationUpdate { + _u.mutation.ClearAssets() + return _u +} + +// RemoveAssetIDs removes the "assets" edge to Asset entities by IDs. +func (_u *OrganizationUpdate) RemoveAssetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAssetIDs(ids...) + return _u +} + +// RemoveAssets removes "assets" edges to Asset entities. +func (_u *OrganizationUpdate) RemoveAssets(v ...*Asset) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAssetIDs(ids...) +} + +// ClearScans clears all "scans" edges to the Scan entity. +func (_u *OrganizationUpdate) ClearScans() *OrganizationUpdate { + _u.mutation.ClearScans() + return _u +} + +// RemoveScanIDs removes the "scans" edge to Scan entities by IDs. +func (_u *OrganizationUpdate) RemoveScanIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveScanIDs(ids...) + return _u +} + +// RemoveScans removes "scans" edges to Scan entities. +func (_u *OrganizationUpdate) RemoveScans(v ...*Scan) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveScanIDs(ids...) +} + +// ClearSLADefinitions clears all "sla_definitions" edges to the SLADefinition entity. +func (_u *OrganizationUpdate) ClearSLADefinitions() *OrganizationUpdate { + _u.mutation.ClearSLADefinitions() + return _u +} + +// RemoveSLADefinitionIDs removes the "sla_definitions" edge to SLADefinition entities by IDs. +func (_u *OrganizationUpdate) RemoveSLADefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSLADefinitionIDs(ids...) + return _u +} + +// RemoveSLADefinitions removes "sla_definitions" edges to SLADefinition entities. +func (_u *OrganizationUpdate) RemoveSLADefinitions(v ...*SLADefinition) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveSLADefinitionIDs(ids...) +} + +// ClearSubprocessors clears all "subprocessors" edges to the Subprocessor entity. +func (_u *OrganizationUpdate) ClearSubprocessors() *OrganizationUpdate { + _u.mutation.ClearSubprocessors() + return _u +} + +// RemoveSubprocessorIDs removes the "subprocessors" edge to Subprocessor entities by IDs. +func (_u *OrganizationUpdate) RemoveSubprocessorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveSubprocessorIDs(ids...) + return _u +} + +// RemoveSubprocessors removes "subprocessors" edges to Subprocessor entities. +func (_u *OrganizationUpdate) RemoveSubprocessors(v ...*Subprocessor) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveSubprocessorIDs(ids...) +} + +// ClearExports clears all "exports" edges to the Export entity. +func (_u *OrganizationUpdate) ClearExports() *OrganizationUpdate { + _u.mutation.ClearExports() + return _u +} + +// RemoveExportIDs removes the "exports" edge to Export entities by IDs. +func (_u *OrganizationUpdate) RemoveExportIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveExportIDs(ids...) + return _u +} + +// RemoveExports removes "exports" edges to Export entities. +func (_u *OrganizationUpdate) RemoveExports(v ...*Export) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveExportIDs(ids...) +} + +// ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. +func (_u *OrganizationUpdate) ClearTrustCenterWatermarkConfigs() *OrganizationUpdate { + _u.mutation.ClearTrustCenterWatermarkConfigs() + return _u +} + +// RemoveTrustCenterWatermarkConfigIDs removes the "trust_center_watermark_configs" edge to TrustCenterWatermarkConfig entities by IDs. +func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTrustCenterWatermarkConfigIDs(ids...) + return _u +} + +// RemoveTrustCenterWatermarkConfigs removes "trust_center_watermark_configs" edges to TrustCenterWatermarkConfig entities. +func (_u *OrganizationUpdate) RemoveTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveTrustCenterWatermarkConfigIDs(ids...) +} + +// ClearImpersonationEvents clears all "impersonation_events" edges to the ImpersonationEvent entity. +func (_u *OrganizationUpdate) ClearImpersonationEvents() *OrganizationUpdate { + _u.mutation.ClearImpersonationEvents() + return _u +} + +// RemoveImpersonationEventIDs removes the "impersonation_events" edge to ImpersonationEvent entities by IDs. +func (_u *OrganizationUpdate) RemoveImpersonationEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveImpersonationEventIDs(ids...) + return _u +} + +// RemoveImpersonationEvents removes "impersonation_events" edges to ImpersonationEvent entities. +func (_u *OrganizationUpdate) RemoveImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveImpersonationEventIDs(ids...) +} + +// ClearAssessments clears all "assessments" edges to the Assessment entity. +func (_u *OrganizationUpdate) ClearAssessments() *OrganizationUpdate { + _u.mutation.ClearAssessments() + return _u +} + +// RemoveAssessmentIDs removes the "assessments" edge to Assessment entities by IDs. +func (_u *OrganizationUpdate) RemoveAssessmentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAssessmentIDs(ids...) + return _u +} + +// RemoveAssessments removes "assessments" edges to Assessment entities. +func (_u *OrganizationUpdate) RemoveAssessments(v ...*Assessment) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAssessmentIDs(ids...) +} + +// ClearAssessmentResponses clears all "assessment_responses" edges to the AssessmentResponse entity. +func (_u *OrganizationUpdate) ClearAssessmentResponses() *OrganizationUpdate { + _u.mutation.ClearAssessmentResponses() + return _u +} + +// RemoveAssessmentResponseIDs removes the "assessment_responses" edge to AssessmentResponse entities by IDs. +func (_u *OrganizationUpdate) RemoveAssessmentResponseIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAssessmentResponseIDs(ids...) + return _u +} + +// RemoveAssessmentResponses removes "assessment_responses" edges to AssessmentResponse entities. +func (_u *OrganizationUpdate) RemoveAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAssessmentResponseIDs(ids...) +} + +// ClearCustomTypeEnums clears all "custom_type_enums" edges to the CustomTypeEnum entity. +func (_u *OrganizationUpdate) ClearCustomTypeEnums() *OrganizationUpdate { + _u.mutation.ClearCustomTypeEnums() + return _u +} + +// RemoveCustomTypeEnumIDs removes the "custom_type_enums" edge to CustomTypeEnum entities by IDs. +func (_u *OrganizationUpdate) RemoveCustomTypeEnumIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveCustomTypeEnumIDs(ids...) + return _u +} + +// RemoveCustomTypeEnums removes "custom_type_enums" edges to CustomTypeEnum entities. +func (_u *OrganizationUpdate) RemoveCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCustomTypeEnumIDs(ids...) +} + +// ClearTagDefinitions clears all "tag_definitions" edges to the TagDefinition entity. +func (_u *OrganizationUpdate) ClearTagDefinitions() *OrganizationUpdate { + _u.mutation.ClearTagDefinitions() + return _u +} + +// RemoveTagDefinitionIDs removes the "tag_definitions" edge to TagDefinition entities by IDs. +func (_u *OrganizationUpdate) RemoveTagDefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveTagDefinitionIDs(ids...) + return _u +} + +// RemoveTagDefinitions removes "tag_definitions" edges to TagDefinition entities. +func (_u *OrganizationUpdate) RemoveTagDefinitions(v ...*TagDefinition) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveTagDefinitionIDs(ids...) +} + +// ClearRemediations clears all "remediations" edges to the Remediation entity. +func (_u *OrganizationUpdate) ClearRemediations() *OrganizationUpdate { + _u.mutation.ClearRemediations() + return _u +} + +// RemoveRemediationIDs removes the "remediations" edge to Remediation entities by IDs. +func (_u *OrganizationUpdate) RemoveRemediationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveRemediationIDs(ids...) + return _u +} + +// RemoveRemediations removes "remediations" edges to Remediation entities. +func (_u *OrganizationUpdate) RemoveRemediations(v ...*Remediation) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveRemediationIDs(ids...) +} + +// ClearFindings clears all "findings" edges to the Finding entity. +func (_u *OrganizationUpdate) ClearFindings() *OrganizationUpdate { + _u.mutation.ClearFindings() + return _u +} + +// RemoveFindingIDs removes the "findings" edge to Finding entities by IDs. +func (_u *OrganizationUpdate) RemoveFindingIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveFindingIDs(ids...) + return _u +} + +// RemoveFindings removes "findings" edges to Finding entities. +func (_u *OrganizationUpdate) RemoveFindings(v ...*Finding) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveFindingIDs(ids...) +} + +// ClearReviews clears all "reviews" edges to the Review entity. +func (_u *OrganizationUpdate) ClearReviews() *OrganizationUpdate { + _u.mutation.ClearReviews() + return _u +} + +// RemoveReviewIDs removes the "reviews" edge to Review entities by IDs. +func (_u *OrganizationUpdate) RemoveReviewIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveReviewIDs(ids...) + return _u +} + +// RemoveReviews removes "reviews" edges to Review entities. +func (_u *OrganizationUpdate) RemoveReviews(v ...*Review) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveReviewIDs(ids...) +} + +// ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity. +func (_u *OrganizationUpdate) ClearVulnerabilities() *OrganizationUpdate { + _u.mutation.ClearVulnerabilities() + return _u +} + +// RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs. +func (_u *OrganizationUpdate) RemoveVulnerabilityIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveVulnerabilityIDs(ids...) + return _u +} + +// RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities. +func (_u *OrganizationUpdate) RemoveVulnerabilities(v ...*Vulnerability) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveVulnerabilityIDs(ids...) +} + +// ClearNotifications clears all "notifications" edges to the Notification entity. +func (_u *OrganizationUpdate) ClearNotifications() *OrganizationUpdate { + _u.mutation.ClearNotifications() + return _u +} + +// RemoveNotificationIDs removes the "notifications" edge to Notification entities by IDs. +func (_u *OrganizationUpdate) RemoveNotificationIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveNotificationIDs(ids...) + return _u +} + +// RemoveNotifications removes "notifications" edges to Notification entities. +func (_u *OrganizationUpdate) RemoveNotifications(v ...*Notification) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveNotificationIDs(ids...) +} + +// ClearWorkflowDefinitions clears all "workflow_definitions" edges to the WorkflowDefinition entity. +func (_u *OrganizationUpdate) ClearWorkflowDefinitions() *OrganizationUpdate { + _u.mutation.ClearWorkflowDefinitions() + return _u +} + +// RemoveWorkflowDefinitionIDs removes the "workflow_definitions" edge to WorkflowDefinition entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowDefinitionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowDefinitionIDs(ids...) + return _u +} + +// RemoveWorkflowDefinitions removes "workflow_definitions" edges to WorkflowDefinition entities. +func (_u *OrganizationUpdate) RemoveWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowDefinitionIDs(ids...) +} + +// ClearWorkflowInstances clears all "workflow_instances" edges to the WorkflowInstance entity. +func (_u *OrganizationUpdate) ClearWorkflowInstances() *OrganizationUpdate { + _u.mutation.ClearWorkflowInstances() + return _u +} + +// RemoveWorkflowInstanceIDs removes the "workflow_instances" edge to WorkflowInstance entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowInstanceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowInstanceIDs(ids...) + return _u +} + +// RemoveWorkflowInstances removes "workflow_instances" edges to WorkflowInstance entities. +func (_u *OrganizationUpdate) RemoveWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowInstanceIDs(ids...) +} + +// ClearWorkflowEvents clears all "workflow_events" edges to the WorkflowEvent entity. +func (_u *OrganizationUpdate) ClearWorkflowEvents() *OrganizationUpdate { + _u.mutation.ClearWorkflowEvents() + return _u +} + +// RemoveWorkflowEventIDs removes the "workflow_events" edge to WorkflowEvent entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowEventIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowEventIDs(ids...) + return _u +} + +// RemoveWorkflowEvents removes "workflow_events" edges to WorkflowEvent entities. +func (_u *OrganizationUpdate) RemoveWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowEventIDs(ids...) +} + +// ClearWorkflowAssignments clears all "workflow_assignments" edges to the WorkflowAssignment entity. +func (_u *OrganizationUpdate) ClearWorkflowAssignments() *OrganizationUpdate { + _u.mutation.ClearWorkflowAssignments() + return _u +} + +// RemoveWorkflowAssignmentIDs removes the "workflow_assignments" edge to WorkflowAssignment entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowAssignmentIDs(ids...) + return _u +} + +// RemoveWorkflowAssignments removes "workflow_assignments" edges to WorkflowAssignment entities. +func (_u *OrganizationUpdate) RemoveWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowAssignmentIDs(ids...) +} + +// ClearWorkflowAssignmentTargets clears all "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. +func (_u *OrganizationUpdate) ClearWorkflowAssignmentTargets() *OrganizationUpdate { + _u.mutation.ClearWorkflowAssignmentTargets() + return _u +} + +// RemoveWorkflowAssignmentTargetIDs removes the "workflow_assignment_targets" edge to WorkflowAssignmentTarget entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowAssignmentTargetIDs(ids...) + return _u +} + +// RemoveWorkflowAssignmentTargets removes "workflow_assignment_targets" edges to WorkflowAssignmentTarget entities. +func (_u *OrganizationUpdate) RemoveWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowAssignmentTargetIDs(ids...) +} + +// ClearWorkflowObjectRefs clears all "workflow_object_refs" edges to the WorkflowObjectRef entity. +func (_u *OrganizationUpdate) ClearWorkflowObjectRefs() *OrganizationUpdate { + _u.mutation.ClearWorkflowObjectRefs() + return _u +} + +// RemoveWorkflowObjectRefIDs removes the "workflow_object_refs" edge to WorkflowObjectRef entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowObjectRefIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowObjectRefIDs(ids...) + return _u +} + +// RemoveWorkflowObjectRefs removes "workflow_object_refs" edges to WorkflowObjectRef entities. +func (_u *OrganizationUpdate) RemoveWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowObjectRefIDs(ids...) +} + +// ClearWorkflowProposals clears all "workflow_proposals" edges to the WorkflowProposal entity. +func (_u *OrganizationUpdate) ClearWorkflowProposals() *OrganizationUpdate { + _u.mutation.ClearWorkflowProposals() + return _u +} + +// RemoveWorkflowProposalIDs removes the "workflow_proposals" edge to WorkflowProposal entities by IDs. +func (_u *OrganizationUpdate) RemoveWorkflowProposalIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveWorkflowProposalIDs(ids...) + return _u +} + +// RemoveWorkflowProposals removes "workflow_proposals" edges to WorkflowProposal entities. +func (_u *OrganizationUpdate) RemoveWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowProposalIDs(ids...) +} + +// ClearDirectoryAccounts clears all "directory_accounts" edges to the DirectoryAccount entity. +func (_u *OrganizationUpdate) ClearDirectoryAccounts() *OrganizationUpdate { + _u.mutation.ClearDirectoryAccounts() + return _u +} + +// RemoveDirectoryAccountIDs removes the "directory_accounts" edge to DirectoryAccount entities by IDs. +func (_u *OrganizationUpdate) RemoveDirectoryAccountIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDirectoryAccountIDs(ids...) + return _u +} + +// RemoveDirectoryAccounts removes "directory_accounts" edges to DirectoryAccount entities. +func (_u *OrganizationUpdate) RemoveDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDirectoryAccountIDs(ids...) +} + +// ClearDirectoryGroups clears all "directory_groups" edges to the DirectoryGroup entity. +func (_u *OrganizationUpdate) ClearDirectoryGroups() *OrganizationUpdate { + _u.mutation.ClearDirectoryGroups() + return _u +} + +// RemoveDirectoryGroupIDs removes the "directory_groups" edge to DirectoryGroup entities by IDs. +func (_u *OrganizationUpdate) RemoveDirectoryGroupIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDirectoryGroupIDs(ids...) + return _u +} + +// RemoveDirectoryGroups removes "directory_groups" edges to DirectoryGroup entities. +func (_u *OrganizationUpdate) RemoveDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDirectoryGroupIDs(ids...) +} + +// ClearDirectoryMemberships clears all "directory_memberships" edges to the DirectoryMembership entity. +func (_u *OrganizationUpdate) ClearDirectoryMemberships() *OrganizationUpdate { + _u.mutation.ClearDirectoryMemberships() + return _u +} + +// RemoveDirectoryMembershipIDs removes the "directory_memberships" edge to DirectoryMembership entities by IDs. +func (_u *OrganizationUpdate) RemoveDirectoryMembershipIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDirectoryMembershipIDs(ids...) + return _u +} + +// RemoveDirectoryMemberships removes "directory_memberships" edges to DirectoryMembership entities. +func (_u *OrganizationUpdate) RemoveDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDirectoryMembershipIDs(ids...) +} + +// ClearDirectorySyncRuns clears all "directory_sync_runs" edges to the DirectorySyncRun entity. +func (_u *OrganizationUpdate) ClearDirectorySyncRuns() *OrganizationUpdate { + _u.mutation.ClearDirectorySyncRuns() + return _u +} + +// RemoveDirectorySyncRunIDs removes the "directory_sync_runs" edge to DirectorySyncRun entities by IDs. +func (_u *OrganizationUpdate) RemoveDirectorySyncRunIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDirectorySyncRunIDs(ids...) + return _u +} + +// RemoveDirectorySyncRuns removes "directory_sync_runs" edges to DirectorySyncRun entities. +func (_u *OrganizationUpdate) RemoveDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDirectorySyncRunIDs(ids...) +} + +// ClearDiscussions clears all "discussions" edges to the Discussion entity. +func (_u *OrganizationUpdate) ClearDiscussions() *OrganizationUpdate { + _u.mutation.ClearDiscussions() + return _u +} + +// RemoveDiscussionIDs removes the "discussions" edge to Discussion entities by IDs. +func (_u *OrganizationUpdate) RemoveDiscussionIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveDiscussionIDs(ids...) + return _u +} + +// RemoveDiscussions removes "discussions" edges to Discussion entities. +func (_u *OrganizationUpdate) RemoveDiscussions(v ...*Discussion) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveDiscussionIDs(ids...) +} + +// ClearVendorScoringConfigs clears all "vendor_scoring_configs" edges to the VendorScoringConfig entity. +func (_u *OrganizationUpdate) ClearVendorScoringConfigs() *OrganizationUpdate { + _u.mutation.ClearVendorScoringConfigs() + return _u +} + +// RemoveVendorScoringConfigIDs removes the "vendor_scoring_configs" edge to VendorScoringConfig entities by IDs. +func (_u *OrganizationUpdate) RemoveVendorScoringConfigIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveVendorScoringConfigIDs(ids...) + return _u +} + +// RemoveVendorScoringConfigs removes "vendor_scoring_configs" edges to VendorScoringConfig entities. +func (_u *OrganizationUpdate) RemoveVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveVendorScoringConfigIDs(ids...) +} + +// ClearVendorRiskScores clears all "vendor_risk_scores" edges to the VendorRiskScore entity. +func (_u *OrganizationUpdate) ClearVendorRiskScores() *OrganizationUpdate { + _u.mutation.ClearVendorRiskScores() + return _u +} + +// RemoveVendorRiskScoreIDs removes the "vendor_risk_scores" edge to VendorRiskScore entities by IDs. +func (_u *OrganizationUpdate) RemoveVendorRiskScoreIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveVendorRiskScoreIDs(ids...) + return _u +} + +// RemoveVendorRiskScores removes "vendor_risk_scores" edges to VendorRiskScore entities. +func (_u *OrganizationUpdate) RemoveVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveVendorRiskScoreIDs(ids...) +} + +// ClearMembers clears all "members" edges to the OrgMembership entity. +func (_u *OrganizationUpdate) ClearMembers() *OrganizationUpdate { + _u.mutation.ClearMembers() + return _u +} + +// RemoveMemberIDs removes the "members" edge to OrgMembership entities by IDs. +func (_u *OrganizationUpdate) RemoveMemberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveMemberIDs(ids...) + return _u +} + +// RemoveMembers removes "members" edges to OrgMembership entities. +func (_u *OrganizationUpdate) RemoveMembers(v ...*OrgMembership) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveMemberIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (_u *OrganizationUpdate) Save(ctx context.Context) (int, error) { + if err := _u.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *OrganizationUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (_u *OrganizationUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *OrganizationUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (_u *OrganizationUpdate) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if organization.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized organization.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := organization.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_u *OrganizationUpdate) check() error { + if v, ok := _u.mutation.DisplayName(); ok { + if err := organization.DisplayNameValidator(v); err != nil { + return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} + } + } + if v, ok := _u.mutation.AvatarRemoteURL(); ok { + if err := organization.AvatarRemoteURLValidator(v); err != nil { + return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *OrganizationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdate { + _u.modifiers = append(_u.modifiers, modifiers...) + return _u +} + +func (_u *OrganizationUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) + if ps := _u.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(organization.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(organization.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(organization.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(organization.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(organization.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(organization.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(organization.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, organization.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(organization.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.DisplayName(); ok { + _spec.SetField(organization.FieldDisplayName, field.TypeString, value) + } + if value, ok := _u.mutation.Description(); ok { + _spec.SetField(organization.FieldDescription, field.TypeString, value) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(organization.FieldDescription, field.TypeString) + } + if _u.mutation.PersonalOrgCleared() { + _spec.ClearField(organization.FieldPersonalOrg, field.TypeBool) + } + if value, ok := _u.mutation.AvatarRemoteURL(); ok { + _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) + } + if _u.mutation.AvatarRemoteURLCleared() { + _spec.ClearField(organization.FieldAvatarRemoteURL, field.TypeString) + } + if value, ok := _u.mutation.AvatarUpdatedAt(); ok { + _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) + } + if _u.mutation.AvatarUpdatedAtCleared() { + _spec.ClearField(organization.FieldAvatarUpdatedAt, field.TypeTime) + } + if value, ok := _u.mutation.DedicatedDb(); ok { + _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) + } + if value, ok := _u.mutation.StripeCustomerID(); ok { + _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) + } + if _u.mutation.StripeCustomerIDCleared() { + _spec.ClearField(organization.FieldStripeCustomerID, field.TypeString) + } + if _u.mutation.ActionPlanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedActionPlanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ActionPlanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.APITokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAPITokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.APITokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.APITokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AssessmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAssessmentCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssessmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AssessmentCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AssetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAssetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CampaignCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CampaignCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CampaignCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CampaignTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignTargetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CampaignTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CampaignTargetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CheckResultCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCheckResultCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CheckResultCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CheckResultCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ContactCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedContactCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ContactCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ContactCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlImplementationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlImplementationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlObjectiveCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlObjectiveCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectiveCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CustomTypeEnumCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCustomTypeEnumCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CustomTypeEnumCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CustomTypeEnumCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.DiscussionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedDiscussionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.DiscussionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.DiscussionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EmailBrandingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEmailBrandingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailBrandingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EmailTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEmailTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EmailTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEntityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EntityTypeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEntityTypeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EntityTypeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EntityTypeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EvidenceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEvidenceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ExportCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedExportCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ExportCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ExportCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.FileCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedFileCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FileCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.FileCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.FindingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedFindingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FindingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.GroupCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedGroupCreatorsIDs(); len(nodes) > 0 && !_u.mutation.GroupCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IdentityHolderCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIdentityHolderCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IdentityHolderCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IntegrationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIntegrationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IntegrationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IntegrationWebhookCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIntegrationWebhookCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationWebhookCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IntegrationWebhookCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.InternalPolicyCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedInternalPolicyCreatorsIDs(); len(nodes) > 0 && !_u.mutation.InternalPolicyCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobRunnerCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobRunnerCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobRunnerCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobRunnerRegistrationTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobRunnerRegistrationTokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerRegistrationTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobRunnerRegistrationTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobRunnerTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobRunnerTokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobRunnerTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.MappedControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedMappedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NarrativeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNarrativeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NarrativeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NoteCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNoteCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NoteCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NoteCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NotificationTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNotificationTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NotificationTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NotificationTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrganizationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedOrganizationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.OrganizationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.OrganizationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.PlatformCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedPlatformCreatorsIDs(); len(nodes) > 0 && !_u.mutation.PlatformCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.PlatformCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ProcedureCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedProcedureCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProcedureCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ProgramCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedProgramCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProgramCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.RemediationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedRemediationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RemediationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemediationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ReviewCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedReviewCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ReviewCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ReviewCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.RiskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedRiskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RiskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ScanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedScanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ScanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ScheduledJobCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedScheduledJobCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ScheduledJobRunCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedScheduledJobRunCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobRunCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ScheduledJobRunCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.StandardCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedStandardCreatorsIDs(); len(nodes) > 0 && !_u.mutation.StandardCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubcontrolCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSubcontrolCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubcontrolCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubcontrolCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubscriberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSubscriberCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubscriberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubscriberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SystemDetailCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSystemDetailCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SystemDetailCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SystemDetailCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TagDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTagDefinitionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TagDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TagDefinitionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TaskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTaskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TaskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TaskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterComplianceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterComplianceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterComplianceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterComplianceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterDocCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterDocCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterDocCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterEntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterEntityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterEntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterEntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterFaqCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterFaqCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterFaqCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterFaqCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterNdaRequestCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterNdaRequestCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterNdaRequestCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterNdaRequestCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterSubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterSubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterWatermarkConfigCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterWatermarkConfigCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterWatermarkConfigCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterWatermarkConfigCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.UserCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedUserCreatorsIDs(); len(nodes) > 0 && !_u.mutation.UserCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.UserCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.UserSettingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedUserSettingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.UserSettingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.UserSettingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.VendorRiskScoreCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedVendorRiskScoreCreatorsIDs(); len(nodes) > 0 && !_u.mutation.VendorRiskScoreCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.VendorRiskScoreCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.VulnerabilityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VulnerabilityCreatorsTable, + Columns: []string{organization.VulnerabilityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedVulnerabilityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.VulnerabilityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VulnerabilityCreatorsTable, + Columns: []string{organization.VulnerabilityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.VulnerabilityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VulnerabilityCreatorsTable, + Columns: []string{organization.VulnerabilityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowAssignmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowAssignmentCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowAssignmentCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowAssignmentTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowAssignmentTargetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowAssignmentTargetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowDefinitionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowDefinitionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowEventCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowEventCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowEventCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowEventCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowInstanceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowInstanceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowInstanceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowInstanceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowObjectRefCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowObjectRefCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowObjectRefCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowObjectRefCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowProposalCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowProposalCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowProposalCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowProposalCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CampaignsManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignsManagerIDs(); len(nodes) > 0 && !_u.mutation.CampaignsManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CampaignsManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ComplianceManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedComplianceManagerIDs(); len(nodes) > 0 && !_u.mutation.ComplianceManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ComplianceManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.GroupManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedGroupManagerIDs(); len(nodes) > 0 && !_u.mutation.GroupManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.GroupManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.PoliciesManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedPoliciesManagerIDs(); len(nodes) > 0 && !_u.mutation.PoliciesManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.PoliciesManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.RegistryManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedRegistryManagerIDs(); len(nodes) > 0 && !_u.mutation.RegistryManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RegistryManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.RiskManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedRiskManagerIDs(); len(nodes) > 0 && !_u.mutation.RiskManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RiskManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCenterManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCenterManagerIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TrustCenterManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowsManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedWorkflowsManagerIDs(); len(nodes) > 0 && !_u.mutation.WorkflowsManagerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.WorkflowsManagerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ChildrenCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ChildrenTable, + Columns: []string{organization.ChildrenColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Organization + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedChildrenIDs(); len(nodes) > 0 && !_u.mutation.ChildrenCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ChildrenTable, + Columns: []string{organization.ChildrenColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Organization + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ChildrenIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ChildrenTable, + Columns: []string{organization.ChildrenColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Organization + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SettingCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2O, + Inverse: false, + Table: organization.SettingTable, + Columns: []string{organization.SettingColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organizationsetting.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationSetting + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SettingIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2O, + Inverse: false, + Table: organization.SettingTable, + Columns: []string{organization.SettingColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organizationsetting.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationSetting + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.PersonalAccessTokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.PersonalAccessTokensTable, + Columns: organization.PersonalAccessTokensPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedPersonalAccessTokensIDs(); len(nodes) > 0 && !_u.mutation.PersonalAccessTokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.PersonalAccessTokensTable, + Columns: organization.PersonalAccessTokensPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.PersonalAccessTokensIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.PersonalAccessTokensTable, + Columns: organization.PersonalAccessTokensPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.APITokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokensTable, + Columns: []string{organization.APITokensColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.APIToken + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAPITokensIDs(); len(nodes) > 0 && !_u.mutation.APITokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokensTable, + Columns: []string{organization.APITokensColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.APIToken + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.APITokensIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokensTable, + Columns: []string{organization.APITokensColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.APIToken + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EmailTemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplatesTable, + Columns: []string{organization.EmailTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EmailTemplate + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEmailTemplatesIDs(); len(nodes) > 0 && !_u.mutation.EmailTemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplatesTable, + Columns: []string{organization.EmailTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EmailTemplate + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EmailTemplatesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplatesTable, + Columns: []string{organization.EmailTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EmailTemplate + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IntegrationWebhooksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhooksTable, + Columns: []string{organization.IntegrationWebhooksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationWebhook + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIntegrationWebhooksIDs(); len(nodes) > 0 && !_u.mutation.IntegrationWebhooksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhooksTable, + Columns: []string{organization.IntegrationWebhooksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationWebhook + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IntegrationWebhooksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhooksTable, + Columns: []string{organization.IntegrationWebhooksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationWebhook + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IntegrationRunsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationRunsTable, + Columns: []string{organization.IntegrationRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationRun + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIntegrationRunsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationRunsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationRunsTable, + Columns: []string{organization.IntegrationRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationRun + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IntegrationRunsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationRunsTable, + Columns: []string{organization.IntegrationRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IntegrationRun + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NotificationPreferencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationPreferencesTable, + Columns: []string{organization.NotificationPreferencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationPreference + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNotificationPreferencesIDs(); len(nodes) > 0 && !_u.mutation.NotificationPreferencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationPreferencesTable, + Columns: []string{organization.NotificationPreferencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationPreference + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NotificationPreferencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationPreferencesTable, + Columns: []string{organization.NotificationPreferencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationPreference + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NotificationTemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplatesTable, + Columns: []string{organization.NotificationTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationTemplate + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNotificationTemplatesIDs(); len(nodes) > 0 && !_u.mutation.NotificationTemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplatesTable, + Columns: []string{organization.NotificationTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationTemplate + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NotificationTemplatesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplatesTable, + Columns: []string{organization.NotificationTemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.NotificationTemplate + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.UsersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: organization.UsersTable, + Columns: organization.UsersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgMembership + createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} + _ = createE.defaults() + _, specE := createE.createSpec() + edge.Target.Fields = specE.Fields + if specE.ID.Value != nil { + edge.Target.Fields = append(edge.Target.Fields, specE.ID) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedUsersIDs(); len(nodes) > 0 && !_u.mutation.UsersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: organization.UsersTable, + Columns: organization.UsersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgMembership + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} + _ = createE.defaults() + _, specE := createE.createSpec() + edge.Target.Fields = specE.Fields + if specE.ID.Value != nil { + edge.Target.Fields = append(edge.Target.Fields, specE.ID) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.UsersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: organization.UsersTable, + Columns: organization.UsersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgMembership + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} + _ = createE.defaults() + _, specE := createE.createSpec() + edge.Target.Fields = specE.Fields + if specE.ID.Value != nil { + edge.Target.Fields = append(edge.Target.Fields, specE.ID) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.FilesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.FilesTable, + Columns: organization.FilesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationFiles + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedFilesIDs(); len(nodes) > 0 && !_u.mutation.FilesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.FilesTable, + Columns: organization.FilesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationFiles + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.FilesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.FilesTable, + Columns: organization.FilesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationFiles + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EventsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.EventsTable, + Columns: organization.EventsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationEvents + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEventsIDs(); len(nodes) > 0 && !_u.mutation.EventsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.EventsTable, + Columns: organization.EventsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationEvents + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EventsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: organization.EventsTable, + Columns: organization.EventsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrganizationEvents + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SecretsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SecretsTable, + Columns: []string{organization.SecretsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Hush + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSecretsIDs(); len(nodes) > 0 && !_u.mutation.SecretsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SecretsTable, + Columns: []string{organization.SecretsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Hush + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SecretsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SecretsTable, + Columns: []string{organization.SecretsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Hush + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AvatarFileCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: organization.AvatarFileTable, + Columns: []string{organization.AvatarFileColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Organization + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AvatarFileIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: organization.AvatarFileTable, + Columns: []string{organization.AvatarFileColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Organization + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.GroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupsTable, + Columns: []string{organization.GroupsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedGroupsIDs(); len(nodes) > 0 && !_u.mutation.GroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupsTable, + Columns: []string{organization.GroupsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.GroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupsTable, + Columns: []string{organization.GroupsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplatesTable, + Columns: []string{organization.TemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Template + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTemplatesIDs(); len(nodes) > 0 && !_u.mutation.TemplatesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplatesTable, + Columns: []string{organization.TemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Template + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TemplatesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplatesTable, + Columns: []string{organization.TemplatesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Template + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IntegrationsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationsTable, + Columns: []string{organization.IntegrationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Integration + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIntegrationsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationsTable, + Columns: []string{organization.IntegrationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Integration + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IntegrationsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationsTable, + Columns: []string{organization.IntegrationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Integration + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.DocumentsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DocumentsTable, + Columns: []string{organization.DocumentsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.DocumentData + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedDocumentsIDs(); len(nodes) > 0 && !_u.mutation.DocumentsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DocumentsTable, + Columns: []string{organization.DocumentsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.DocumentData + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.DocumentsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DocumentsTable, + Columns: []string{organization.DocumentsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.DocumentData + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrgSubscriptionsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgSubscriptionsTable, + Columns: []string{organization.OrgSubscriptionsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgSubscription + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedOrgSubscriptionsIDs(); len(nodes) > 0 && !_u.mutation.OrgSubscriptionsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgSubscriptionsTable, + Columns: []string{organization.OrgSubscriptionsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgSubscription + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.OrgSubscriptionsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgSubscriptionsTable, + Columns: []string{organization.OrgSubscriptionsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgSubscription + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrgProductsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgProductsTable, + Columns: []string{organization.OrgProductsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgProduct + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedOrgProductsIDs(); len(nodes) > 0 && !_u.mutation.OrgProductsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgProductsTable, + Columns: []string{organization.OrgProductsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgProduct + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.OrgProductsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgProductsTable, + Columns: []string{organization.OrgProductsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgProduct + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrgPricesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgPricesTable, + Columns: []string{organization.OrgPricesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgPrice + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedOrgPricesIDs(); len(nodes) > 0 && !_u.mutation.OrgPricesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgPricesTable, + Columns: []string{organization.OrgPricesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgPrice + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.OrgPricesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgPricesTable, + Columns: []string{organization.OrgPricesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgPrice + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrgModulesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgModulesTable, + Columns: []string{organization.OrgModulesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgModule + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedOrgModulesIDs(); len(nodes) > 0 && !_u.mutation.OrgModulesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgModulesTable, + Columns: []string{organization.OrgModulesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgModule + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.OrgModulesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrgModulesTable, + Columns: []string{organization.OrgModulesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.OrgModule + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.InvitesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InvitesTable, + Columns: []string{organization.InvitesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Invite + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedInvitesIDs(); len(nodes) > 0 && !_u.mutation.InvitesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InvitesTable, + Columns: []string{organization.InvitesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Invite + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.InvitesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InvitesTable, + Columns: []string{organization.InvitesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Invite + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubscribersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscribersTable, + Columns: []string{organization.SubscribersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subscriber + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSubscribersIDs(); len(nodes) > 0 && !_u.mutation.SubscribersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscribersTable, + Columns: []string{organization.SubscribersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subscriber + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubscribersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscribersTable, + Columns: []string{organization.SubscribersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subscriber + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EntitiesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntitiesTable, + Columns: []string{organization.EntitiesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Entity + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEntitiesIDs(); len(nodes) > 0 && !_u.mutation.EntitiesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntitiesTable, + Columns: []string{organization.EntitiesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Entity + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EntitiesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntitiesTable, + Columns: []string{organization.EntitiesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Entity + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.PlatformsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformsTable, + Columns: []string{organization.PlatformsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Platform + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedPlatformsIDs(); len(nodes) > 0 && !_u.mutation.PlatformsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformsTable, + Columns: []string{organization.PlatformsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Platform + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.PlatformsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformsTable, + Columns: []string{organization.PlatformsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Platform + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IdentityHoldersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHoldersTable, + Columns: []string{organization.IdentityHoldersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IdentityHolder + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedIdentityHoldersIDs(); len(nodes) > 0 && !_u.mutation.IdentityHoldersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHoldersTable, + Columns: []string{organization.IdentityHoldersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IdentityHolder + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IdentityHoldersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHoldersTable, + Columns: []string{organization.IdentityHoldersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.IdentityHolder + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CampaignsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsTable, + Columns: []string{organization.CampaignsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Campaign + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignsIDs(); len(nodes) > 0 && !_u.mutation.CampaignsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsTable, + Columns: []string{organization.CampaignsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Campaign + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CampaignsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignsTable, + Columns: []string{organization.CampaignsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Campaign + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CampaignTargetsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetsTable, + Columns: []string{organization.CampaignTargetsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CampaignTarget + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignTargetsIDs(); len(nodes) > 0 && !_u.mutation.CampaignTargetsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetsTable, + Columns: []string{organization.CampaignTargetsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CampaignTarget + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CampaignTargetsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetsTable, + Columns: []string{organization.CampaignTargetsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CampaignTarget + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EntityTypesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypesTable, + Columns: []string{organization.EntityTypesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EntityType + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEntityTypesIDs(); len(nodes) > 0 && !_u.mutation.EntityTypesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypesTable, + Columns: []string{organization.EntityTypesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EntityType + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EntityTypesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypesTable, + Columns: []string{organization.EntityTypesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.EntityType + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ContactsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactsTable, + Columns: []string{organization.ContactsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Contact + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedContactsIDs(); len(nodes) > 0 && !_u.mutation.ContactsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactsTable, + Columns: []string{organization.ContactsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Contact + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ContactsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactsTable, + Columns: []string{organization.ContactsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Contact + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NotesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotesTable, + Columns: []string{organization.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Note + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNotesIDs(); len(nodes) > 0 && !_u.mutation.NotesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotesTable, + Columns: []string{organization.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Note + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NotesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotesTable, + Columns: []string{organization.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Note + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TasksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TasksTable, + Columns: []string{organization.TasksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Task + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTasksIDs(); len(nodes) > 0 && !_u.mutation.TasksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TasksTable, + Columns: []string{organization.TasksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Task + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TasksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TasksTable, + Columns: []string{organization.TasksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Task + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ProgramsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramsTable, + Columns: []string{organization.ProgramsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Program + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedProgramsIDs(); len(nodes) > 0 && !_u.mutation.ProgramsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramsTable, + Columns: []string{organization.ProgramsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Program + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ProgramsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramsTable, + Columns: []string{organization.ProgramsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Program + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SystemDetailsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailsTable, + Columns: []string{organization.SystemDetailsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.SystemDetail + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSystemDetailsIDs(); len(nodes) > 0 && !_u.mutation.SystemDetailsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailsTable, + Columns: []string{organization.SystemDetailsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.SystemDetail + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SystemDetailsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailsTable, + Columns: []string{organization.SystemDetailsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.SystemDetail + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProceduresTable, + Columns: []string{organization.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Procedure + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !_u.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProceduresTable, + Columns: []string{organization.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProceduresTable, + Columns: []string{organization.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.InternalPoliciesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPoliciesTable, + Columns: []string{organization.InternalPoliciesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.InternalPolicy + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedInternalPoliciesIDs(); len(nodes) > 0 && !_u.mutation.InternalPoliciesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPoliciesTable, + Columns: []string{organization.InternalPoliciesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.InternalPolicy + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.InternalPoliciesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPoliciesTable, + Columns: []string{organization.InternalPoliciesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.InternalPolicy + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RisksTable, + Columns: []string{organization.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Risk + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedRisksIDs(); len(nodes) > 0 && !_u.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RisksTable, + Columns: []string{organization.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RisksTable, + Columns: []string{organization.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlObjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectivesTable, + Columns: []string{organization.ControlObjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlObjective + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlObjectivesIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectivesTable, + Columns: []string{organization.ControlObjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlObjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectivesTable, + Columns: []string{organization.ControlObjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativesTable, + Columns: []string{organization.NarrativesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Narrative + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !_u.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativesTable, + Columns: []string{organization.NarrativesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Narrative + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativesTable, + Columns: []string{organization.NarrativesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Narrative + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlsTable, + Columns: []string{organization.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Control + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlsIDs(); len(nodes) > 0 && !_u.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlsTable, + Columns: []string{organization.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlsTable, + Columns: []string{organization.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolsTable, + Columns: []string{organization.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !_u.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolsTable, + Columns: []string{organization.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolsTable, + Columns: []string{organization.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlImplementationsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationsTable, + Columns: []string{organization.ControlImplementationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlImplementation + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedControlImplementationsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationsTable, + Columns: []string{organization.ControlImplementationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlImplementation + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ControlImplementationsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationsTable, + Columns: []string{organization.ControlImplementationsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ControlImplementation + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.MappedControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlsTable, + Columns: []string{organization.MappedControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.MappedControl + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedMappedControlsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlsTable, + Columns: []string{organization.MappedControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.MappedControl + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.MappedControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlsTable, + Columns: []string{organization.MappedControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.MappedControl + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EvidenceCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceTable, + Columns: []string{organization.EvidenceColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Evidence + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEvidenceIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceTable, + Columns: []string{organization.EvidenceColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Evidence + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EvidenceIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceTable, + Columns: []string{organization.EvidenceColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Evidence + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.StandardsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardsTable, + Columns: []string{organization.StandardsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Standard + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedStandardsIDs(); len(nodes) > 0 && !_u.mutation.StandardsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardsTable, + Columns: []string{organization.StandardsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Standard + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.StandardsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardsTable, + Columns: []string{organization.StandardsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Standard + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ActionPlansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlansTable, + Columns: []string{organization.ActionPlansColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ActionPlan + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedActionPlansIDs(); len(nodes) > 0 && !_u.mutation.ActionPlansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlansTable, + Columns: []string{organization.ActionPlansColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ActionPlan + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ActionPlansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlansTable, + Columns: []string{organization.ActionPlansColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ActionPlan + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.CustomDomainsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomDomainsTable, + Columns: []string{organization.CustomDomainsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CustomDomain + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCustomDomainsIDs(); len(nodes) > 0 && !_u.mutation.CustomDomainsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomDomainsTable, + Columns: []string{organization.CustomDomainsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CustomDomain + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CustomDomainsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomDomainsTable, + Columns: []string{organization.CustomDomainsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.CustomDomain + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobRunnersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnersTable, + Columns: []string{organization.JobRunnersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobRunner + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobRunnersIDs(); len(nodes) > 0 && !_u.mutation.JobRunnersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnersTable, + Columns: []string{organization.JobRunnersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobRunner + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobRunnersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnersTable, + Columns: []string{organization.JobRunnersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobRunner + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.JobRunnerTokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokensTable, + Columns: []string{organization.JobRunnerTokensColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobRunnerToken + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedJobRunnerTokensIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerTokensCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.JobRunnerTokensTable, + Columns: []string{organization.JobRunnerTokensColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobRunnerToken for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.JobRunnerTokensIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.JobRunnerTokensTable, + Columns: []string{organization.JobRunnerTokensColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobRunnerToken for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ControlObjectiveCreatorsCleared() { + if _u.mutation.JobRunnerRegistrationTokensCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.JobRunnerRegistrationTokensTable, + Columns: []string{organization.JobRunnerRegistrationTokensColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedControlObjectiveCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectiveCreatorsCleared() { + if nodes := _u.mutation.RemovedJobRunnerRegistrationTokensIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerRegistrationTokensCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.JobRunnerRegistrationTokensTable, + Columns: []string{organization.JobRunnerRegistrationTokensColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.JobRunnerRegistrationTokensIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.JobRunnerRegistrationTokensTable, + Columns: []string{organization.JobRunnerRegistrationTokensColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EvidenceCreatorsCleared() { + if _u.mutation.DNSVerificationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.DNSVerificationsTable, + Columns: []string{organization.DNSVerificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.DNSVerification _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedEvidenceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCreatorsCleared() { + if nodes := _u.mutation.RemovedDNSVerificationsIDs(); len(nodes) > 0 && !_u.mutation.DNSVerificationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.DNSVerificationsTable, + Columns: []string{organization.DNSVerificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.DNSVerification for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DNSVerificationsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.DNSVerificationsTable, + Columns: []string{organization.DNSVerificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.DNSVerification for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.AssetCreatorsCleared() { + if _u.mutation.JobTemplatesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.JobTemplatesTable, + Columns: []string{organization.JobTemplatesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobTemplate _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedAssetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssetCreatorsCleared() { + if nodes := _u.mutation.RemovedJobTemplatesIDs(); len(nodes) > 0 && !_u.mutation.JobTemplatesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.JobTemplatesTable, + Columns: []string{organization.JobTemplatesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobTemplate for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.JobTemplatesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.JobTemplatesTable, + Columns: []string{organization.JobTemplatesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobTemplate for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.FindingCreatorsCleared() { + if _u.mutation.ScheduledJobsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.ScheduledJobsTable, + Columns: []string{organization.ScheduledJobsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ScheduledJob _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedFindingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FindingCreatorsCleared() { + if nodes := _u.mutation.RemovedScheduledJobsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.ScheduledJobsTable, + Columns: []string{organization.ScheduledJobsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ScheduledJob for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ScheduledJobsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.ScheduledJobsTable, + Columns: []string{organization.ScheduledJobsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ScheduledJob for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.VulnerabilityCreatorsCleared() { + if _u.mutation.JobResultsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VulnerabilityCreatorsTable, - Columns: []string{organization.VulnerabilityCreatorsColumn}, + Table: organization.JobResultsTable, + Columns: []string{organization.JobResultsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.JobResult _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedVulnerabilityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.VulnerabilityCreatorsCleared() { + if nodes := _u.mutation.RemovedJobResultsIDs(); len(nodes) > 0 && !_u.mutation.JobResultsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobResultsTable, + Columns: []string{organization.JobResultsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobResult + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.JobResultsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobResultsTable, + Columns: []string{organization.JobResultsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.JobResult + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ScheduledJobRunsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunsTable, + Columns: []string{organization.ScheduledJobRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ScheduledJobRun + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedScheduledJobRunsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobRunsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunsTable, + Columns: []string{organization.ScheduledJobRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ScheduledJobRun + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ScheduledJobRunsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunsTable, + Columns: []string{organization.ScheduledJobRunsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.ScheduledJobRun + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.TrustCentersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCentersTable, + Columns: []string{organization.TrustCentersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.TrustCenter + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTrustCentersIDs(); len(nodes) > 0 && !_u.mutation.TrustCentersCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VulnerabilityCreatorsTable, - Columns: []string{organization.VulnerabilityCreatorsColumn}, + Table: organization.TrustCentersTable, + Columns: []string{organization.TrustCentersColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TrustCenter for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.VulnerabilityCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCentersIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.VulnerabilityCreatorsTable, - Columns: []string{organization.VulnerabilityCreatorsColumn}, + Table: organization.TrustCentersTable, + Columns: []string{organization.TrustCentersColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TrustCenter for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.GroupCreatorsCleared() { + if _u.mutation.AssetsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.AssetsTable, + Columns: []string{organization.AssetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Asset _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedGroupCreatorsIDs(); len(nodes) > 0 && !_u.mutation.GroupCreatorsCleared() { + if nodes := _u.mutation.RemovedAssetsIDs(); len(nodes) > 0 && !_u.mutation.AssetsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.AssetsTable, + Columns: []string{organization.AssetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Asset for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.AssetsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.AssetsTable, + Columns: []string{organization.AssetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Asset for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.InternalPolicyCreatorsCleared() { + if _u.mutation.ScansCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.ScansTable, + Columns: []string{organization.ScansColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Scan _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedInternalPolicyCreatorsIDs(); len(nodes) > 0 && !_u.mutation.InternalPolicyCreatorsCleared() { + if nodes := _u.mutation.RemovedScansIDs(); len(nodes) > 0 && !_u.mutation.ScansCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.ScansTable, + Columns: []string{organization.ScansColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Scan for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ScansIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.ScansTable, + Columns: []string{organization.ScansColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Scan for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.MappedControlCreatorsCleared() { + if _u.mutation.SLADefinitionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.SLADefinitionsTable, + Columns: []string{organization.SLADefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.SLADefinition _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedMappedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlCreatorsCleared() { + if nodes := _u.mutation.RemovedSLADefinitionsIDs(); len(nodes) > 0 && !_u.mutation.SLADefinitionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.SLADefinitionsTable, + Columns: []string{organization.SLADefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.SLADefinition for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.SLADefinitionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.SLADefinitionsTable, + Columns: []string{organization.SLADefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.SLADefinition for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.NarrativeCreatorsCleared() { + if _u.mutation.SubprocessorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.SubprocessorsTable, + Columns: []string{organization.SubprocessorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Subprocessor _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedNarrativeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NarrativeCreatorsCleared() { + if nodes := _u.mutation.RemovedSubprocessorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.SubprocessorsTable, + Columns: []string{organization.SubprocessorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Subprocessor for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.SubprocessorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.SubprocessorsTable, + Columns: []string{organization.SubprocessorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Subprocessor for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ProcedureCreatorsCleared() { + if _u.mutation.ExportsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.ExportsTable, + Columns: []string{organization.ExportsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Export _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedProcedureCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProcedureCreatorsCleared() { + if nodes := _u.mutation.RemovedExportsIDs(); len(nodes) > 0 && !_u.mutation.ExportsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.ExportsTable, + Columns: []string{organization.ExportsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Export for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ExportsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.ExportsTable, + Columns: []string{organization.ExportsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Export for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ProgramCreatorsCleared() { + if _u.mutation.TrustCenterWatermarkConfigsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigsTable, + Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedProgramCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProgramCreatorsCleared() { + if nodes := _u.mutation.RemovedTrustCenterWatermarkConfigsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterWatermarkConfigsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigsTable, + Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCenterWatermarkConfigsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigsTable, + Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.RiskCreatorsCleared() { + if _u.mutation.ImpersonationEventsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.ImpersonationEventsTable, + Columns: []string{organization.ImpersonationEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ImpersonationEvent _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedRiskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RiskCreatorsCleared() { + if nodes := _u.mutation.RemovedImpersonationEventsIDs(); len(nodes) > 0 && !_u.mutation.ImpersonationEventsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.ImpersonationEventsTable, + Columns: []string{organization.ImpersonationEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ImpersonationEvent for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ImpersonationEventsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.ImpersonationEventsTable, + Columns: []string{organization.ImpersonationEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.ImpersonationEvent for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.IdentityHolderCreatorsCleared() { + if _u.mutation.AssessmentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.AssessmentsTable, + Columns: []string{organization.AssessmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Assessment _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedIdentityHolderCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IdentityHolderCreatorsCleared() { + if nodes := _u.mutation.RemovedAssessmentsIDs(); len(nodes) > 0 && !_u.mutation.AssessmentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.AssessmentsTable, + Columns: []string{organization.AssessmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Assessment for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.AssessmentsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.AssessmentsTable, + Columns: []string{organization.AssessmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Assessment for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ScheduledJobCreatorsCleared() { + if _u.mutation.AssessmentResponsesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.AssessmentResponsesTable, + Columns: []string{organization.AssessmentResponsesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.AssessmentResponse _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedScheduledJobCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobCreatorsCleared() { + if nodes := _u.mutation.RemovedAssessmentResponsesIDs(); len(nodes) > 0 && !_u.mutation.AssessmentResponsesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.AssessmentResponsesTable, + Columns: []string{organization.AssessmentResponsesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.AssessmentResponse for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.AssessmentResponsesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.AssessmentResponsesTable, + Columns: []string{organization.AssessmentResponsesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.AssessmentResponse for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.StandardCreatorsCleared() { + if _u.mutation.CustomTypeEnumsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.CustomTypeEnumsTable, + Columns: []string{organization.CustomTypeEnumsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.CustomTypeEnum _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedStandardCreatorsIDs(); len(nodes) > 0 && !_u.mutation.StandardCreatorsCleared() { + if nodes := _u.mutation.RemovedCustomTypeEnumsIDs(); len(nodes) > 0 && !_u.mutation.CustomTypeEnumsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.CustomTypeEnumsTable, + Columns: []string{organization.CustomTypeEnumsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.CustomTypeEnum for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomTypeEnumsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.CustomTypeEnumsTable, + Columns: []string{organization.CustomTypeEnumsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.CustomTypeEnum for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TemplateCreatorsCleared() { + if _u.mutation.TagDefinitionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.TagDefinitionsTable, + Columns: []string{organization.TagDefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TagDefinition _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TemplateCreatorsCleared() { + if nodes := _u.mutation.RemovedTagDefinitionsIDs(); len(nodes) > 0 && !_u.mutation.TagDefinitionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.TagDefinitionsTable, + Columns: []string{organization.TagDefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TagDefinition for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TagDefinitionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.TagDefinitionsTable, + Columns: []string{organization.TagDefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.TagDefinition for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.SubprocessorCreatorsCleared() { + if _u.mutation.RemediationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RemediationsTable, + Columns: []string{organization.RemediationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Remediation _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorCreatorsCleared() { + if nodes := _u.mutation.RemovedRemediationsIDs(); len(nodes) > 0 && !_u.mutation.RemediationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RemediationsTable, + Columns: []string{organization.RemediationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Remediation for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.RemediationsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RemediationsTable, + Columns: []string{organization.RemediationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Remediation for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TrustCenterDocCreatorsCleared() { + if _u.mutation.FindingsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.FindingsTable, + Columns: []string{organization.FindingsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Finding _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTrustCenterDocCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterDocCreatorsCleared() { + if nodes := _u.mutation.RemovedFindingsIDs(); len(nodes) > 0 && !_u.mutation.FindingsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.FindingsTable, + Columns: []string{organization.FindingsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Finding for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.FindingsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.FindingsTable, + Columns: []string{organization.FindingsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Finding for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TrustCenterSubprocessorCreatorsCleared() { + if _u.mutation.ReviewsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.ReviewsTable, + Columns: []string{organization.ReviewsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Review _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterSubprocessorCreatorsCleared() { + if nodes := _u.mutation.RemovedReviewsIDs(); len(nodes) > 0 && !_u.mutation.ReviewsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.ReviewsTable, + Columns: []string{organization.ReviewsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Review for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ReviewsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.ReviewsTable, + Columns: []string{organization.ReviewsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Review for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ActionPlanCreatorsCleared() { + if _u.mutation.VulnerabilitiesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.VulnerabilitiesTable, + Columns: []string{organization.VulnerabilitiesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Vulnerability _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedActionPlanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ActionPlanCreatorsCleared() { + if nodes := _u.mutation.RemovedVulnerabilitiesIDs(); len(nodes) > 0 && !_u.mutation.VulnerabilitiesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.VulnerabilitiesTable, + Columns: []string{organization.VulnerabilitiesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Vulnerability for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.VulnerabilitiesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.VulnerabilitiesTable, + Columns: []string{organization.VulnerabilitiesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.Vulnerability for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ChildrenCleared() { + if _u.mutation.NotificationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ChildrenTable, - Columns: []string{organization.ChildrenColumn}, + Table: organization.NotificationsTable, + Columns: []string{organization.NotificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Organization + edge.Schema = _u.schemaConfig.Notification _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedChildrenIDs(); len(nodes) > 0 && !_u.mutation.ChildrenCleared() { + if nodes := _u.mutation.RemovedNotificationsIDs(); len(nodes) > 0 && !_u.mutation.NotificationsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ChildrenTable, - Columns: []string{organization.ChildrenColumn}, + Table: organization.NotificationsTable, + Columns: []string{organization.NotificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Organization + edge.Schema = _u.schemaConfig.Notification for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ChildrenIDs(); len(nodes) > 0 { + if nodes := _u.mutation.NotificationsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ChildrenTable, - Columns: []string{organization.ChildrenColumn}, + Table: organization.NotificationsTable, + Columns: []string{organization.NotificationsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Organization + edge.Schema = _u.schemaConfig.Notification for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.WorkflowDefinitionsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.WorkflowDefinitionsTable, + Columns: []string{organization.WorkflowDefinitionsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.WorkflowDefinition + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.SettingCleared() { + if nodes := _u.mutation.RemovedWorkflowDefinitionsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowDefinitionsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SettingTable, - Columns: []string{organization.SettingColumn}, + Table: organization.WorkflowDefinitionsTable, + Columns: []string{organization.WorkflowDefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organizationsetting.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationSetting + edge.Schema = _u.schemaConfig.WorkflowDefinition + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.SettingIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowDefinitionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SettingTable, - Columns: []string{organization.SettingColumn}, + Table: organization.WorkflowDefinitionsTable, + Columns: []string{organization.WorkflowDefinitionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organizationsetting.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationSetting + edge.Schema = _u.schemaConfig.WorkflowDefinition for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.PersonalAccessTokensCleared() { + if _u.mutation.WorkflowInstancesCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.PersonalAccessTokensTable, - Columns: organization.PersonalAccessTokensPrimaryKey, + Table: organization.WorkflowInstancesTable, + Columns: []string{organization.WorkflowInstancesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + edge.Schema = _u.schemaConfig.WorkflowInstance _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedPersonalAccessTokensIDs(); len(nodes) > 0 && !_u.mutation.PersonalAccessTokensCleared() { + if nodes := _u.mutation.RemovedWorkflowInstancesIDs(); len(nodes) > 0 && !_u.mutation.WorkflowInstancesCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.PersonalAccessTokensTable, - Columns: organization.PersonalAccessTokensPrimaryKey, + Table: organization.WorkflowInstancesTable, + Columns: []string{organization.WorkflowInstancesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + edge.Schema = _u.schemaConfig.WorkflowInstance for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.PersonalAccessTokensIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowInstancesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.PersonalAccessTokensTable, - Columns: organization.PersonalAccessTokensPrimaryKey, + Table: organization.WorkflowInstancesTable, + Columns: []string{organization.WorkflowInstancesColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(personalaccesstoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationPersonalAccessTokens + edge.Schema = _u.schemaConfig.WorkflowInstance for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.APITokensCleared() { + if _u.mutation.WorkflowEventsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.APITokensTable, - Columns: []string{organization.APITokensColumn}, + Table: organization.WorkflowEventsTable, + Columns: []string{organization.WorkflowEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.APIToken + edge.Schema = _u.schemaConfig.WorkflowEvent _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedAPITokensIDs(); len(nodes) > 0 && !_u.mutation.APITokensCleared() { + if nodes := _u.mutation.RemovedWorkflowEventsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowEventsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.APITokensTable, - Columns: []string{organization.APITokensColumn}, + Table: organization.WorkflowEventsTable, + Columns: []string{organization.WorkflowEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.APIToken + edge.Schema = _u.schemaConfig.WorkflowEvent for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.APITokensIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowEventsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.APITokensTable, - Columns: []string{organization.APITokensColumn}, + Table: organization.WorkflowEventsTable, + Columns: []string{organization.WorkflowEventsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(apitoken.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.APIToken + edge.Schema = _u.schemaConfig.WorkflowEvent for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EmailTemplatesCleared() { + if _u.mutation.WorkflowAssignmentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EmailTemplatesTable, - Columns: []string{organization.EmailTemplatesColumn}, + Table: organization.WorkflowAssignmentsTable, + Columns: []string{organization.WorkflowAssignmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.EmailTemplate + edge.Schema = _u.schemaConfig.WorkflowAssignment _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedEmailTemplatesIDs(); len(nodes) > 0 && !_u.mutation.EmailTemplatesCleared() { + if nodes := _u.mutation.RemovedWorkflowAssignmentsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EmailTemplatesTable, - Columns: []string{organization.EmailTemplatesColumn}, + Table: organization.WorkflowAssignmentsTable, + Columns: []string{organization.WorkflowAssignmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.EmailTemplate + edge.Schema = _u.schemaConfig.WorkflowAssignment for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.EmailTemplatesIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowAssignmentsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EmailTemplatesTable, - Columns: []string{organization.EmailTemplatesColumn}, + Table: organization.WorkflowAssignmentsTable, + Columns: []string{organization.WorkflowAssignmentsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(emailtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.EmailTemplate + edge.Schema = _u.schemaConfig.WorkflowAssignment for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.IntegrationWebhooksCleared() { + if _u.mutation.WorkflowAssignmentTargetsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationWebhooksTable, - Columns: []string{organization.IntegrationWebhooksColumn}, + Table: organization.WorkflowAssignmentTargetsTable, + Columns: []string{organization.WorkflowAssignmentTargetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationWebhook + edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedIntegrationWebhooksIDs(); len(nodes) > 0 && !_u.mutation.IntegrationWebhooksCleared() { + if nodes := _u.mutation.RemovedWorkflowAssignmentTargetsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentTargetsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationWebhooksTable, - Columns: []string{organization.IntegrationWebhooksColumn}, + Table: organization.WorkflowAssignmentTargetsTable, + Columns: []string{organization.WorkflowAssignmentTargetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationWebhook + edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.IntegrationWebhooksIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowAssignmentTargetsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationWebhooksTable, - Columns: []string{organization.IntegrationWebhooksColumn}, + Table: organization.WorkflowAssignmentTargetsTable, + Columns: []string{organization.WorkflowAssignmentTargetsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationwebhook.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationWebhook + edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.IntegrationRunsCleared() { + if _u.mutation.WorkflowObjectRefsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationRunsTable, - Columns: []string{organization.IntegrationRunsColumn}, + Table: organization.WorkflowObjectRefsTable, + Columns: []string{organization.WorkflowObjectRefsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationRun + edge.Schema = _u.schemaConfig.WorkflowObjectRef _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedIntegrationRunsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationRunsCleared() { + if nodes := _u.mutation.RemovedWorkflowObjectRefsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowObjectRefsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationRunsTable, - Columns: []string{organization.IntegrationRunsColumn}, + Table: organization.WorkflowObjectRefsTable, + Columns: []string{organization.WorkflowObjectRefsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationRun + edge.Schema = _u.schemaConfig.WorkflowObjectRef for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.IntegrationRunsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowObjectRefsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IntegrationRunsTable, - Columns: []string{organization.IntegrationRunsColumn}, + Table: organization.WorkflowObjectRefsTable, + Columns: []string{organization.WorkflowObjectRefsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integrationrun.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.IntegrationRun + edge.Schema = _u.schemaConfig.WorkflowObjectRef for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.NotificationPreferencesCleared() { + if _u.mutation.WorkflowProposalsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationPreferencesTable, - Columns: []string{organization.NotificationPreferencesColumn}, + Table: organization.WorkflowProposalsTable, + Columns: []string{organization.WorkflowProposalsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationPreference + edge.Schema = _u.schemaConfig.WorkflowProposal _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedNotificationPreferencesIDs(); len(nodes) > 0 && !_u.mutation.NotificationPreferencesCleared() { + if nodes := _u.mutation.RemovedWorkflowProposalsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowProposalsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationPreferencesTable, - Columns: []string{organization.NotificationPreferencesColumn}, + Table: organization.WorkflowProposalsTable, + Columns: []string{organization.WorkflowProposalsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationPreference + edge.Schema = _u.schemaConfig.WorkflowProposal for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.NotificationPreferencesIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowProposalsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationPreferencesTable, - Columns: []string{organization.NotificationPreferencesColumn}, + Table: organization.WorkflowProposalsTable, + Columns: []string{organization.WorkflowProposalsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationpreference.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationPreference + edge.Schema = _u.schemaConfig.WorkflowProposal for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.NotificationTemplatesCleared() { + if _u.mutation.DirectoryAccountsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationTemplatesTable, - Columns: []string{organization.NotificationTemplatesColumn}, + Table: organization.DirectoryAccountsTable, + Columns: []string{organization.DirectoryAccountsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationTemplate + edge.Schema = _u.schemaConfig.DirectoryAccount _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedNotificationTemplatesIDs(); len(nodes) > 0 && !_u.mutation.NotificationTemplatesCleared() { + if nodes := _u.mutation.RemovedDirectoryAccountsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryAccountsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationTemplatesTable, - Columns: []string{organization.NotificationTemplatesColumn}, + Table: organization.DirectoryAccountsTable, + Columns: []string{organization.DirectoryAccountsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationTemplate + edge.Schema = _u.schemaConfig.DirectoryAccount for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.NotificationTemplatesIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DirectoryAccountsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NotificationTemplatesTable, - Columns: []string{organization.NotificationTemplatesColumn}, + Table: organization.DirectoryAccountsTable, + Columns: []string{organization.DirectoryAccountsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notificationtemplate.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.NotificationTemplate + edge.Schema = _u.schemaConfig.DirectoryAccount for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.UsersCleared() { + if _u.mutation.DirectoryGroupsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: organization.UsersTable, - Columns: organization.UsersPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DirectoryGroupsTable, + Columns: []string{organization.DirectoryGroupsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrgMembership - createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} - _ = createE.defaults() - _, specE := createE.createSpec() - edge.Target.Fields = specE.Fields - if specE.ID.Value != nil { - edge.Target.Fields = append(edge.Target.Fields, specE.ID) - } + edge.Schema = _u.schemaConfig.DirectoryGroup _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedUsersIDs(); len(nodes) > 0 && !_u.mutation.UsersCleared() { + if nodes := _u.mutation.RemovedDirectoryGroupsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryGroupsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: organization.UsersTable, - Columns: organization.UsersPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DirectoryGroupsTable, + Columns: []string{organization.DirectoryGroupsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrgMembership + edge.Schema = _u.schemaConfig.DirectoryGroup for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } - createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} - _ = createE.defaults() - _, specE := createE.createSpec() - edge.Target.Fields = specE.Fields - if specE.ID.Value != nil { - edge.Target.Fields = append(edge.Target.Fields, specE.ID) - } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.UsersIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DirectoryGroupsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, - Inverse: true, - Table: organization.UsersTable, - Columns: organization.UsersPrimaryKey, + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DirectoryGroupsTable, + Columns: []string{organization.DirectoryGroupsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrgMembership + edge.Schema = _u.schemaConfig.DirectoryGroup for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } - createE := &OrgMembershipCreate{config: _u.config, mutation: newOrgMembershipMutation(_u.config, OpCreate)} - _ = createE.defaults() - _, specE := createE.createSpec() - edge.Target.Fields = specE.Fields - if specE.ID.Value != nil { - edge.Target.Fields = append(edge.Target.Fields, specE.ID) - } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.FilesCleared() { + if _u.mutation.DirectoryMembershipsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FilesTable, - Columns: organization.FilesPrimaryKey, + Table: organization.DirectoryMembershipsTable, + Columns: []string{organization.DirectoryMembershipsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationFiles + edge.Schema = _u.schemaConfig.DirectoryMembership _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedFilesIDs(); len(nodes) > 0 && !_u.mutation.FilesCleared() { + if nodes := _u.mutation.RemovedDirectoryMembershipsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryMembershipsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FilesTable, - Columns: organization.FilesPrimaryKey, + Table: organization.DirectoryMembershipsTable, + Columns: []string{organization.DirectoryMembershipsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationFiles + edge.Schema = _u.schemaConfig.DirectoryMembership for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.FilesIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DirectoryMembershipsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FilesTable, - Columns: organization.FilesPrimaryKey, + Table: organization.DirectoryMembershipsTable, + Columns: []string{organization.DirectoryMembershipsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationFiles + edge.Schema = _u.schemaConfig.DirectoryMembership for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EventsCleared() { + if _u.mutation.DirectorySyncRunsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EventsTable, - Columns: organization.EventsPrimaryKey, + Table: organization.DirectorySyncRunsTable, + Columns: []string{organization.DirectorySyncRunsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationEvents + edge.Schema = _u.schemaConfig.DirectorySyncRun _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedEventsIDs(); len(nodes) > 0 && !_u.mutation.EventsCleared() { + if nodes := _u.mutation.RemovedDirectorySyncRunsIDs(); len(nodes) > 0 && !_u.mutation.DirectorySyncRunsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EventsTable, - Columns: organization.EventsPrimaryKey, + Table: organization.DirectorySyncRunsTable, + Columns: []string{organization.DirectorySyncRunsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationEvents + edge.Schema = _u.schemaConfig.DirectorySyncRun for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.EventsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DirectorySyncRunsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2M, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EventsTable, - Columns: organization.EventsPrimaryKey, + Table: organization.DirectorySyncRunsTable, + Columns: []string{organization.DirectorySyncRunsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(event.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.OrganizationEvents + edge.Schema = _u.schemaConfig.DirectorySyncRun for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.SecretsCleared() { + if _u.mutation.DiscussionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SecretsTable, - Columns: []string{organization.SecretsColumn}, + Table: organization.DiscussionsTable, + Columns: []string{organization.DiscussionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Hush + edge.Schema = _u.schemaConfig.Discussion _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedSecretsIDs(); len(nodes) > 0 && !_u.mutation.SecretsCleared() { + if nodes := _u.mutation.RemovedDiscussionsIDs(); len(nodes) > 0 && !_u.mutation.DiscussionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SecretsTable, - Columns: []string{organization.SecretsColumn}, + Table: organization.DiscussionsTable, + Columns: []string{organization.DiscussionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Hush + edge.Schema = _u.schemaConfig.Discussion for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.SecretsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.DiscussionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SecretsTable, - Columns: []string{organization.SecretsColumn}, + Table: organization.DiscussionsTable, + Columns: []string{organization.DiscussionsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(hush.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Hush + edge.Schema = _u.schemaConfig.Discussion for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.AvatarFileCleared() { + if _u.mutation.VendorScoringConfigsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AvatarFileTable, - Columns: []string{organization.AvatarFileColumn}, + Table: organization.VendorScoringConfigsTable, + Columns: []string{organization.VendorScoringConfigsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Organization + edge.Schema = _u.schemaConfig.VendorScoringConfig _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.AvatarFileIDs(); len(nodes) > 0 { + if nodes := _u.mutation.RemovedVendorScoringConfigsIDs(); len(nodes) > 0 && !_u.mutation.VendorScoringConfigsCleared() { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AvatarFileTable, - Columns: []string{organization.AvatarFileColumn}, + Table: organization.VendorScoringConfigsTable, + Columns: []string{organization.VendorScoringConfigsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(file.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Organization + edge.Schema = _u.schemaConfig.VendorScoringConfig + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.VendorScoringConfigsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.VendorScoringConfigsTable, + Columns: []string{organization.VendorScoringConfigsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.VendorScoringConfig for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.GroupsCleared() { + if _u.mutation.VendorRiskScoresCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupsTable, - Columns: []string{organization.GroupsColumn}, + Table: organization.VendorRiskScoresTable, + Columns: []string{organization.VendorRiskScoresColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.VendorRiskScore _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedGroupsIDs(); len(nodes) > 0 && !_u.mutation.GroupsCleared() { + if nodes := _u.mutation.RemovedVendorRiskScoresIDs(); len(nodes) > 0 && !_u.mutation.VendorRiskScoresCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupsTable, - Columns: []string{organization.GroupsColumn}, + Table: organization.VendorRiskScoresTable, + Columns: []string{organization.VendorRiskScoresColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.VendorRiskScore for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.GroupsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.VendorRiskScoresIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupsTable, - Columns: []string{organization.GroupsColumn}, + Table: organization.VendorRiskScoresTable, + Columns: []string{organization.VendorRiskScoresColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Group + edge.Schema = _u.schemaConfig.VendorRiskScore for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TemplatesCleared() { + if _u.mutation.MembersCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TemplatesTable, - Columns: []string{organization.TemplatesColumn}, + Inverse: true, + Table: organization.MembersTable, + Columns: []string{organization.MembersColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Template + edge.Schema = _u.schemaConfig.OrgMembership _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTemplatesIDs(); len(nodes) > 0 && !_u.mutation.TemplatesCleared() { + if nodes := _u.mutation.RemovedMembersIDs(); len(nodes) > 0 && !_u.mutation.MembersCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TemplatesTable, - Columns: []string{organization.TemplatesColumn}, + Inverse: true, + Table: organization.MembersTable, + Columns: []string{organization.MembersColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Template + edge.Schema = _u.schemaConfig.OrgMembership for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TemplatesIDs(); len(nodes) > 0 { + if nodes := _u.mutation.MembersIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TemplatesTable, - Columns: []string{organization.TemplatesColumn}, + Rel: sqlgraph.O2M, + Inverse: true, + Table: organization.MembersTable, + Columns: []string{organization.MembersColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(template.FieldID, field.TypeString), + IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), }, } - edge.Schema = _u.schemaConfig.Template + edge.Schema = _u.schemaConfig.OrgMembership for _, k := range nodes { edge.Target.Nodes = append(edge.Target.Nodes, k) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.IntegrationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IntegrationsTable, - Columns: []string{organization.IntegrationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Integration - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + _spec.Node.Schema = _u.schemaConfig.Organization + ctx = internal.NewSchemaConfigContext(ctx, _u.schemaConfig) + _spec.AddModifiers(_u.modifiers...) + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{organization.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + _u.mutation.done = true + return _node, nil +} + +// OrganizationUpdateOne is the builder for updating a single Organization entity. +type OrganizationUpdateOne struct { + config + fields []string + hooks []Hook + mutation *OrganizationMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (_u *OrganizationUpdateOne) SetUpdatedAt(v time.Time) *OrganizationUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (_u *OrganizationUpdateOne) ClearUpdatedAt() *OrganizationUpdateOne { + _u.mutation.ClearUpdatedAt() + return _u +} + +// SetUpdatedBy sets the "updated_by" field. +func (_u *OrganizationUpdateOne) SetUpdatedBy(v string) *OrganizationUpdateOne { + _u.mutation.SetUpdatedBy(v) + return _u +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableUpdatedBy(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetUpdatedBy(*v) + } + return _u +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (_u *OrganizationUpdateOne) ClearUpdatedBy() *OrganizationUpdateOne { + _u.mutation.ClearUpdatedBy() + return _u +} + +// SetDeletedAt sets the "deleted_at" field. +func (_u *OrganizationUpdateOne) SetDeletedAt(v time.Time) *OrganizationUpdateOne { + _u.mutation.SetDeletedAt(v) + return _u +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableDeletedAt(v *time.Time) *OrganizationUpdateOne { + if v != nil { + _u.SetDeletedAt(*v) + } + return _u +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (_u *OrganizationUpdateOne) ClearDeletedAt() *OrganizationUpdateOne { + _u.mutation.ClearDeletedAt() + return _u +} + +// SetDeletedBy sets the "deleted_by" field. +func (_u *OrganizationUpdateOne) SetDeletedBy(v string) *OrganizationUpdateOne { + _u.mutation.SetDeletedBy(v) + return _u +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableDeletedBy(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetDeletedBy(*v) + } + return _u +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (_u *OrganizationUpdateOne) ClearDeletedBy() *OrganizationUpdateOne { + _u.mutation.ClearDeletedBy() + return _u +} + +// SetTags sets the "tags" field. +func (_u *OrganizationUpdateOne) SetTags(v []string) *OrganizationUpdateOne { + _u.mutation.SetTags(v) + return _u +} + +// AppendTags appends value to the "tags" field. +func (_u *OrganizationUpdateOne) AppendTags(v []string) *OrganizationUpdateOne { + _u.mutation.AppendTags(v) + return _u +} + +// ClearTags clears the value of the "tags" field. +func (_u *OrganizationUpdateOne) ClearTags() *OrganizationUpdateOne { + _u.mutation.ClearTags() + return _u +} + +// SetDisplayName sets the "display_name" field. +func (_u *OrganizationUpdateOne) SetDisplayName(v string) *OrganizationUpdateOne { + _u.mutation.SetDisplayName(v) + return _u +} + +// SetNillableDisplayName sets the "display_name" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableDisplayName(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetDisplayName(*v) + } + return _u +} + +// SetDescription sets the "description" field. +func (_u *OrganizationUpdateOne) SetDescription(v string) *OrganizationUpdateOne { + _u.mutation.SetDescription(v) + return _u +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableDescription(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetDescription(*v) + } + return _u +} + +// ClearDescription clears the value of the "description" field. +func (_u *OrganizationUpdateOne) ClearDescription() *OrganizationUpdateOne { + _u.mutation.ClearDescription() + return _u +} + +// SetAvatarRemoteURL sets the "avatar_remote_url" field. +func (_u *OrganizationUpdateOne) SetAvatarRemoteURL(v string) *OrganizationUpdateOne { + _u.mutation.SetAvatarRemoteURL(v) + return _u +} + +// SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableAvatarRemoteURL(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetAvatarRemoteURL(*v) + } + return _u +} + +// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. +func (_u *OrganizationUpdateOne) ClearAvatarRemoteURL() *OrganizationUpdateOne { + _u.mutation.ClearAvatarRemoteURL() + return _u +} + +// SetAvatarLocalFileID sets the "avatar_local_file_id" field. +func (_u *OrganizationUpdateOne) SetAvatarLocalFileID(v string) *OrganizationUpdateOne { + _u.mutation.SetAvatarLocalFileID(v) + return _u +} + +// SetNillableAvatarLocalFileID sets the "avatar_local_file_id" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableAvatarLocalFileID(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetAvatarLocalFileID(*v) + } + return _u +} + +// ClearAvatarLocalFileID clears the value of the "avatar_local_file_id" field. +func (_u *OrganizationUpdateOne) ClearAvatarLocalFileID() *OrganizationUpdateOne { + _u.mutation.ClearAvatarLocalFileID() + return _u +} + +// SetAvatarUpdatedAt sets the "avatar_updated_at" field. +func (_u *OrganizationUpdateOne) SetAvatarUpdatedAt(v time.Time) *OrganizationUpdateOne { + _u.mutation.SetAvatarUpdatedAt(v) + return _u +} + +// SetNillableAvatarUpdatedAt sets the "avatar_updated_at" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableAvatarUpdatedAt(v *time.Time) *OrganizationUpdateOne { + if v != nil { + _u.SetAvatarUpdatedAt(*v) + } + return _u +} + +// ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field. +func (_u *OrganizationUpdateOne) ClearAvatarUpdatedAt() *OrganizationUpdateOne { + _u.mutation.ClearAvatarUpdatedAt() + return _u +} + +// SetDedicatedDb sets the "dedicated_db" field. +func (_u *OrganizationUpdateOne) SetDedicatedDb(v bool) *OrganizationUpdateOne { + _u.mutation.SetDedicatedDb(v) + return _u +} + +// SetNillableDedicatedDb sets the "dedicated_db" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableDedicatedDb(v *bool) *OrganizationUpdateOne { + if v != nil { + _u.SetDedicatedDb(*v) + } + return _u +} + +// SetStripeCustomerID sets the "stripe_customer_id" field. +func (_u *OrganizationUpdateOne) SetStripeCustomerID(v string) *OrganizationUpdateOne { + _u.mutation.SetStripeCustomerID(v) + return _u +} + +// SetNillableStripeCustomerID sets the "stripe_customer_id" field if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableStripeCustomerID(v *string) *OrganizationUpdateOne { + if v != nil { + _u.SetStripeCustomerID(*v) + } + return _u +} + +// ClearStripeCustomerID clears the value of the "stripe_customer_id" field. +func (_u *OrganizationUpdateOne) ClearStripeCustomerID() *OrganizationUpdateOne { + _u.mutation.ClearStripeCustomerID() + return _u +} + +// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddActionPlanCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddActionPlanCreatorIDs(ids...) + return _u +} + +// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddActionPlanCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddActionPlanCreatorIDs(ids...) +} + +// AddAPITokenCreatorIDs adds the "api_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddAPITokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAPITokenCreatorIDs(ids...) + return _u +} + +// AddAPITokenCreators adds the "api_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddAPITokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedIntegrationsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IntegrationsTable, - Columns: []string{organization.IntegrationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Integration - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddAPITokenCreatorIDs(ids...) +} + +// AddAssessmentCreatorIDs adds the "assessment_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddAssessmentCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAssessmentCreatorIDs(ids...) + return _u +} + +// AddAssessmentCreators adds the "assessment_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddAssessmentCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.IntegrationsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IntegrationsTable, - Columns: []string{organization.IntegrationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(integration.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Integration - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddAssessmentCreatorIDs(ids...) +} + +// AddAssetCreatorIDs adds the "asset_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddAssetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAssetCreatorIDs(ids...) + return _u +} + +// AddAssetCreators adds the "asset_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddAssetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DocumentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DocumentsTable, - Columns: []string{organization.DocumentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DocumentData - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddAssetCreatorIDs(ids...) +} + +// AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddCampaignCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCampaignCreatorIDs(ids...) + return _u +} + +// AddCampaignCreators adds the "campaign_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddCampaignCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDocumentsIDs(); len(nodes) > 0 && !_u.mutation.DocumentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DocumentsTable, - Columns: []string{organization.DocumentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DocumentData - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCampaignCreatorIDs(ids...) +} + +// AddCampaignTargetCreatorIDs adds the "campaign_target_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddCampaignTargetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCampaignTargetCreatorIDs(ids...) + return _u +} + +// AddCampaignTargetCreators adds the "campaign_target_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddCampaignTargetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DocumentsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DocumentsTable, - Columns: []string{organization.DocumentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(documentdata.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DocumentData - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddCampaignTargetCreatorIDs(ids...) +} + +// AddCheckResultCreatorIDs adds the "check_result_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddCheckResultCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCheckResultCreatorIDs(ids...) + return _u +} + +// AddCheckResultCreators adds the "check_result_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddCheckResultCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.OrgSubscriptionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgSubscriptionsTable, - Columns: []string{organization.OrgSubscriptionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgSubscription - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCheckResultCreatorIDs(ids...) +} + +// AddContactCreatorIDs adds the "contact_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddContactCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddContactCreatorIDs(ids...) + return _u +} + +// AddContactCreators adds the "contact_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddContactCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedOrgSubscriptionsIDs(); len(nodes) > 0 && !_u.mutation.OrgSubscriptionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgSubscriptionsTable, - Columns: []string{organization.OrgSubscriptionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgSubscription - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddContactCreatorIDs(ids...) +} + +// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddControlCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlCreatorIDs(ids...) + return _u +} + +// AddControlCreators adds the "control_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddControlCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.OrgSubscriptionsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgSubscriptionsTable, - Columns: []string{organization.OrgSubscriptionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgsubscription.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgSubscription - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddControlCreatorIDs(ids...) +} + +// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddControlImplementationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlImplementationCreatorIDs(ids...) + return _u +} + +// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddControlImplementationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.OrgProductsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgProductsTable, - Columns: []string{organization.OrgProductsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgProduct - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddControlImplementationCreatorIDs(ids...) +} + +// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlObjectiveCreatorIDs(ids...) + return _u +} + +// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddControlObjectiveCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedOrgProductsIDs(); len(nodes) > 0 && !_u.mutation.OrgProductsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgProductsTable, - Columns: []string{organization.OrgProductsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgProduct - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddControlObjectiveCreatorIDs(ids...) +} + +// AddCustomTypeEnumCreatorIDs adds the "custom_type_enum_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddCustomTypeEnumCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCustomTypeEnumCreatorIDs(ids...) + return _u +} + +// AddCustomTypeEnumCreators adds the "custom_type_enum_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddCustomTypeEnumCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.OrgProductsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgProductsTable, - Columns: []string{organization.OrgProductsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgproduct.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgProduct - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddCustomTypeEnumCreatorIDs(ids...) +} + +// AddDiscussionCreatorIDs adds the "discussion_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddDiscussionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDiscussionCreatorIDs(ids...) + return _u +} + +// AddDiscussionCreators adds the "discussion_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddDiscussionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.OrgPricesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgPricesTable, - Columns: []string{organization.OrgPricesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgPrice - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddDiscussionCreatorIDs(ids...) +} + +// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEmailBrandingCreatorIDs(ids...) + return _u +} + +// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddEmailBrandingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedOrgPricesIDs(); len(nodes) > 0 && !_u.mutation.OrgPricesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgPricesTable, - Columns: []string{organization.OrgPricesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgPrice - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEmailBrandingCreatorIDs(ids...) +} + +// AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEmailTemplateCreatorIDs(ids...) + return _u +} + +// AddEmailTemplateCreators adds the "email_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddEmailTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.OrgPricesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgPricesTable, - Columns: []string{organization.OrgPricesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgprice.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgPrice - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddEmailTemplateCreatorIDs(ids...) +} + +// AddEntityCreatorIDs adds the "entity_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddEntityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEntityCreatorIDs(ids...) + return _u +} + +// AddEntityCreators adds the "entity_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddEntityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.OrgModulesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgModulesTable, - Columns: []string{organization.OrgModulesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgModule - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEntityCreatorIDs(ids...) +} + +// AddEntityTypeCreatorIDs adds the "entity_type_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddEntityTypeCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEntityTypeCreatorIDs(ids...) + return _u +} + +// AddEntityTypeCreators adds the "entity_type_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddEntityTypeCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedOrgModulesIDs(); len(nodes) > 0 && !_u.mutation.OrgModulesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgModulesTable, - Columns: []string{organization.OrgModulesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgModule - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEntityTypeCreatorIDs(ids...) +} + +// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddEvidenceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEvidenceCreatorIDs(ids...) + return _u +} + +// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddEvidenceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.OrgModulesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.OrgModulesTable, - Columns: []string{organization.OrgModulesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmodule.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgModule - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddEvidenceCreatorIDs(ids...) +} + +// AddExportCreatorIDs adds the "export_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddExportCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddExportCreatorIDs(ids...) + return _u +} + +// AddExportCreators adds the "export_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddExportCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.InvitesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InvitesTable, - Columns: []string{organization.InvitesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Invite - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddExportCreatorIDs(ids...) +} + +// AddFileCreatorIDs adds the "file_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddFileCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddFileCreatorIDs(ids...) + return _u +} + +// AddFileCreators adds the "file_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddFileCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedInvitesIDs(); len(nodes) > 0 && !_u.mutation.InvitesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InvitesTable, - Columns: []string{organization.InvitesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Invite - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddFileCreatorIDs(ids...) +} + +// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddFindingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddFindingCreatorIDs(ids...) + return _u +} + +// AddFindingCreators adds the "finding_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddFindingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddFindingCreatorIDs(ids...) +} + +// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddGroupCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddGroupCreatorIDs(ids...) + return _u +} + +// AddGroupCreators adds the "group_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddGroupCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.InvitesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InvitesTable, - Columns: []string{organization.InvitesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(invite.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Invite - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddGroupCreatorIDs(ids...) +} + +// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIdentityHolderCreatorIDs(ids...) + return _u +} + +// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddIdentityHolderCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.SubscribersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubscribersTable, - Columns: []string{organization.SubscribersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subscriber - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddIdentityHolderCreatorIDs(ids...) +} + +// AddIntegrationCreatorIDs adds the "integration_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddIntegrationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIntegrationCreatorIDs(ids...) + return _u +} + +// AddIntegrationCreators adds the "integration_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddIntegrationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedSubscribersIDs(); len(nodes) > 0 && !_u.mutation.SubscribersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubscribersTable, - Columns: []string{organization.SubscribersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subscriber - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddIntegrationCreatorIDs(ids...) +} + +// AddIntegrationWebhookCreatorIDs adds the "integration_webhook_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddIntegrationWebhookCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIntegrationWebhookCreatorIDs(ids...) + return _u +} + +// AddIntegrationWebhookCreators adds the "integration_webhook_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddIntegrationWebhookCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.SubscribersIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubscribersTable, - Columns: []string{organization.SubscribersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subscriber - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddIntegrationWebhookCreatorIDs(ids...) +} + +// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddInternalPolicyCreatorIDs(ids...) + return _u +} + +// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddInternalPolicyCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.EntitiesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntitiesTable, - Columns: []string{organization.EntitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Entity - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddInternalPolicyCreatorIDs(ids...) +} + +// AddJobRunnerCreatorIDs adds the "job_runner_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerCreatorIDs(ids...) + return _u +} + +// AddJobRunnerCreators adds the "job_runner_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddJobRunnerCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedEntitiesIDs(); len(nodes) > 0 && !_u.mutation.EntitiesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntitiesTable, - Columns: []string{organization.EntitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Entity - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddJobRunnerCreatorIDs(ids...) +} + +// AddJobRunnerRegistrationTokenCreatorIDs adds the "job_runner_registration_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerRegistrationTokenCreatorIDs(ids...) + return _u +} + +// AddJobRunnerRegistrationTokenCreators adds the "job_runner_registration_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.EntitiesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntitiesTable, - Columns: []string{organization.EntitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entity.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Entity - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddJobRunnerRegistrationTokenCreatorIDs(ids...) +} + +// AddJobRunnerTokenCreatorIDs adds the "job_runner_token_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerTokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerTokenCreatorIDs(ids...) + return _u +} + +// AddJobRunnerTokenCreators adds the "job_runner_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddJobRunnerTokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.PlatformsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.PlatformsTable, - Columns: []string{organization.PlatformsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Platform - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddJobRunnerTokenCreatorIDs(ids...) +} + +// AddJobTemplateCreatorIDs adds the "job_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddJobTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobTemplateCreatorIDs(ids...) + return _u +} + +// AddJobTemplateCreators adds the "job_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddJobTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedPlatformsIDs(); len(nodes) > 0 && !_u.mutation.PlatformsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.PlatformsTable, - Columns: []string{organization.PlatformsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Platform - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddJobTemplateCreatorIDs(ids...) +} + +// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddMappedControlCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddMappedControlCreatorIDs(ids...) + return _u +} + +// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddMappedControlCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.PlatformsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.PlatformsTable, - Columns: []string{organization.PlatformsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(platform.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Platform - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddMappedControlCreatorIDs(ids...) +} + +// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddNarrativeCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNarrativeCreatorIDs(ids...) + return _u +} + +// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddNarrativeCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.IdentityHoldersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IdentityHoldersTable, - Columns: []string{organization.IdentityHoldersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.IdentityHolder - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddNarrativeCreatorIDs(ids...) +} + +// AddNoteCreatorIDs adds the "note_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddNoteCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNoteCreatorIDs(ids...) + return _u +} + +// AddNoteCreators adds the "note_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddNoteCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedIdentityHoldersIDs(); len(nodes) > 0 && !_u.mutation.IdentityHoldersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IdentityHoldersTable, - Columns: []string{organization.IdentityHoldersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.IdentityHolder - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddNoteCreatorIDs(ids...) +} + +// AddNotificationTemplateCreatorIDs adds the "notification_template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddNotificationTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNotificationTemplateCreatorIDs(ids...) + return _u +} + +// AddNotificationTemplateCreators adds the "notification_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddNotificationTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.IdentityHoldersIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.IdentityHoldersTable, - Columns: []string{organization.IdentityHoldersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.IdentityHolder - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddNotificationTemplateCreatorIDs(ids...) +} + +// AddOrganizationCreatorIDs adds the "organization_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddOrganizationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddOrganizationCreatorIDs(ids...) + return _u +} + +// AddOrganizationCreators adds the "organization_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddOrganizationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CampaignsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignsTable, - Columns: []string{organization.CampaignsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Campaign - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddOrganizationCreatorIDs(ids...) +} + +// AddPlatformCreatorIDs adds the "platform_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddPlatformCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddPlatformCreatorIDs(ids...) + return _u +} + +// AddPlatformCreators adds the "platform_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddPlatformCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedCampaignsIDs(); len(nodes) > 0 && !_u.mutation.CampaignsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignsTable, - Columns: []string{organization.CampaignsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Campaign - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddPlatformCreatorIDs(ids...) +} + +// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddProcedureCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddProcedureCreatorIDs(ids...) + return _u +} + +// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddProcedureCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.CampaignsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignsTable, - Columns: []string{organization.CampaignsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Campaign - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddProcedureCreatorIDs(ids...) +} + +// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddProgramCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddProgramCreatorIDs(ids...) + return _u +} + +// AddProgramCreators adds the "program_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddProgramCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CampaignTargetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignTargetsTable, - Columns: []string{organization.CampaignTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CampaignTarget - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddProgramCreatorIDs(ids...) +} + +// AddRemediationCreatorIDs adds the "remediation_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddRemediationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRemediationCreatorIDs(ids...) + return _u +} + +// AddRemediationCreators adds the "remediation_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddRemediationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedCampaignTargetsIDs(); len(nodes) > 0 && !_u.mutation.CampaignTargetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignTargetsTable, - Columns: []string{organization.CampaignTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CampaignTarget - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRemediationCreatorIDs(ids...) +} + +// AddReviewCreatorIDs adds the "review_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddReviewCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddReviewCreatorIDs(ids...) + return _u +} + +// AddReviewCreators adds the "review_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddReviewCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.CampaignTargetsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CampaignTargetsTable, - Columns: []string{organization.CampaignTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(campaigntarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CampaignTarget - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddReviewCreatorIDs(ids...) +} + +// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddRiskCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRiskCreatorIDs(ids...) + return _u +} + +// AddRiskCreators adds the "risk_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddRiskCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.EntityTypesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntityTypesTable, - Columns: []string{organization.EntityTypesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.EntityType - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRiskCreatorIDs(ids...) +} + +// AddScanCreatorIDs adds the "scan_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddScanCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScanCreatorIDs(ids...) + return _u +} + +// AddScanCreators adds the "scan_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddScanCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddScanCreatorIDs(ids...) +} + +// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddScheduledJobCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScheduledJobCreatorIDs(ids...) + return _u +} + +// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddScheduledJobCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedEntityTypesIDs(); len(nodes) > 0 && !_u.mutation.EntityTypesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntityTypesTable, - Columns: []string{organization.EntityTypesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.EntityType - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddScheduledJobCreatorIDs(ids...) +} + +// AddScheduledJobRunCreatorIDs adds the "scheduled_job_run_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddScheduledJobRunCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScheduledJobRunCreatorIDs(ids...) + return _u +} + +// AddScheduledJobRunCreators adds the "scheduled_job_run_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddScheduledJobRunCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.EntityTypesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EntityTypesTable, - Columns: []string{organization.EntityTypesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(entitytype.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.EntityType - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddScheduledJobRunCreatorIDs(ids...) +} + +// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddStandardCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddStandardCreatorIDs(ids...) + return _u +} + +// AddStandardCreators adds the "standard_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddStandardCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ContactsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ContactsTable, - Columns: []string{organization.ContactsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Contact - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddStandardCreatorIDs(ids...) +} + +// AddSubcontrolCreatorIDs adds the "subcontrol_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddSubcontrolCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubcontrolCreatorIDs(ids...) + return _u +} + +// AddSubcontrolCreators adds the "subcontrol_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddSubcontrolCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedContactsIDs(); len(nodes) > 0 && !_u.mutation.ContactsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ContactsTable, - Columns: []string{organization.ContactsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Contact - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSubcontrolCreatorIDs(ids...) +} + +// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubprocessorCreatorIDs(ids...) + return _u +} + +// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ContactsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ContactsTable, - Columns: []string{organization.ContactsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Contact - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddSubprocessorCreatorIDs(ids...) +} + +// AddSubscriberCreatorIDs adds the "subscriber_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddSubscriberCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubscriberCreatorIDs(ids...) + return _u +} + +// AddSubscriberCreators adds the "subscriber_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddSubscriberCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.NotesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotesTable, - Columns: []string{organization.NotesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Note - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSubscriberCreatorIDs(ids...) +} + +// AddSystemDetailCreatorIDs adds the "system_detail_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddSystemDetailCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSystemDetailCreatorIDs(ids...) + return _u +} + +// AddSystemDetailCreators adds the "system_detail_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddSystemDetailCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedNotesIDs(); len(nodes) > 0 && !_u.mutation.NotesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotesTable, - Columns: []string{organization.NotesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Note - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSystemDetailCreatorIDs(ids...) +} + +// AddTagDefinitionCreatorIDs adds the "tag_definition_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTagDefinitionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTagDefinitionCreatorIDs(ids...) + return _u +} + +// AddTagDefinitionCreators adds the "tag_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTagDefinitionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.NotesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotesTable, - Columns: []string{organization.NotesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Note - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTagDefinitionCreatorIDs(ids...) +} + +// AddTaskCreatorIDs adds the "task_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTaskCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTaskCreatorIDs(ids...) + return _u +} + +// AddTaskCreators adds the "task_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTaskCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.TasksCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TasksTable, - Columns: []string{organization.TasksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Task - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTaskCreatorIDs(ids...) +} + +// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTemplateCreatorIDs(ids...) + return _u +} + +// AddTemplateCreators adds the "template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedTasksIDs(); len(nodes) > 0 && !_u.mutation.TasksCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TasksTable, - Columns: []string{organization.TasksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Task - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTemplateCreatorIDs(ids...) +} + +// AddTrustCenterCreatorIDs adds the "trust_center_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterCreatorIDs(ids...) + return _u +} + +// AddTrustCenterCreators adds the "trust_center_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.TasksIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TasksTable, - Columns: []string{organization.TasksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(task.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Task - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTrustCenterCreatorIDs(ids...) +} + +// AddTrustCenterComplianceCreatorIDs adds the "trust_center_compliance_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterComplianceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterComplianceCreatorIDs(ids...) + return _u +} + +// AddTrustCenterComplianceCreators adds the "trust_center_compliance_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterComplianceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ProgramsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProgramsTable, - Columns: []string{organization.ProgramsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Program - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterComplianceCreatorIDs(ids...) +} + +// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterDocCreatorIDs(ids...) + return _u +} + +// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterDocCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedProgramsIDs(); len(nodes) > 0 && !_u.mutation.ProgramsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProgramsTable, - Columns: []string{organization.ProgramsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Program - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterDocCreatorIDs(ids...) +} + +// AddTrustCenterEntityCreatorIDs adds the "trust_center_entity_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterEntityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterEntityCreatorIDs(ids...) + return _u +} + +// AddTrustCenterEntityCreators adds the "trust_center_entity_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterEntityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ProgramsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProgramsTable, - Columns: []string{organization.ProgramsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(program.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Program - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTrustCenterEntityCreatorIDs(ids...) +} + +// AddTrustCenterFaqCreatorIDs adds the "trust_center_faq_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterFaqCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterFaqCreatorIDs(ids...) + return _u +} + +// AddTrustCenterFaqCreators adds the "trust_center_faq_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterFaqCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.SystemDetailsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SystemDetailsTable, - Columns: []string{organization.SystemDetailsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SystemDetail - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterFaqCreatorIDs(ids...) +} + +// AddTrustCenterNdaRequestCreatorIDs adds the "trust_center_nda_request_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterNdaRequestCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterNdaRequestCreatorIDs(ids...) + return _u +} + +// AddTrustCenterNdaRequestCreators adds the "trust_center_nda_request_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterNdaRequestCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedSystemDetailsIDs(); len(nodes) > 0 && !_u.mutation.SystemDetailsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SystemDetailsTable, - Columns: []string{organization.SystemDetailsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SystemDetail - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterNdaRequestCreatorIDs(ids...) +} + +// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) + return _u +} + +// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.SystemDetailsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SystemDetailsTable, - Columns: []string{organization.SystemDetailsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(systemdetail.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SystemDetail - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTrustCenterSubprocessorCreatorIDs(ids...) +} + +// AddTrustCenterWatermarkConfigCreatorIDs adds the "trust_center_watermark_config_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterWatermarkConfigCreatorIDs(ids...) + return _u +} + +// AddTrustCenterWatermarkConfigCreators adds the "trust_center_watermark_config_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ProceduresCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProceduresTable, - Columns: []string{organization.ProceduresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Procedure - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterWatermarkConfigCreatorIDs(ids...) +} + +// AddUserCreatorIDs adds the "user_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddUserCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddUserCreatorIDs(ids...) + return _u +} + +// AddUserCreators adds the "user_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddUserCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !_u.mutation.ProceduresCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProceduresTable, - Columns: []string{organization.ProceduresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Procedure - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddUserCreatorIDs(ids...) +} + +// AddUserSettingCreatorIDs adds the "user_setting_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddUserSettingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddUserSettingCreatorIDs(ids...) + return _u +} + +// AddUserSettingCreators adds the "user_setting_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddUserSettingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ProceduresIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ProceduresTable, - Columns: []string{organization.ProceduresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Procedure - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddUserSettingCreatorIDs(ids...) +} + +// AddVendorRiskScoreCreatorIDs adds the "vendor_risk_score_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddVendorRiskScoreCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddVendorRiskScoreCreatorIDs(ids...) + return _u +} + +// AddVendorRiskScoreCreators adds the "vendor_risk_score_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddVendorRiskScoreCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddVendorRiskScoreCreatorIDs(ids...) +} + +// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddVulnerabilityCreatorIDs(ids...) + return _u +} + +// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddVulnerabilityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.InternalPoliciesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InternalPoliciesTable, - Columns: []string{organization.InternalPoliciesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.InternalPolicy - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddVulnerabilityCreatorIDs(ids...) +} + +// AddWorkflowAssignmentCreatorIDs adds the "workflow_assignment_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowAssignmentCreatorIDs(ids...) + return _u +} + +// AddWorkflowAssignmentCreators adds the "workflow_assignment_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedInternalPoliciesIDs(); len(nodes) > 0 && !_u.mutation.InternalPoliciesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InternalPoliciesTable, - Columns: []string{organization.InternalPoliciesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.InternalPolicy - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowAssignmentCreatorIDs(ids...) +} + +// AddWorkflowAssignmentTargetCreatorIDs adds the "workflow_assignment_target_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowAssignmentTargetCreatorIDs(ids...) + return _u +} + +// AddWorkflowAssignmentTargetCreators adds the "workflow_assignment_target_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.InternalPoliciesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.InternalPoliciesTable, - Columns: []string{organization.InternalPoliciesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.InternalPolicy - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddWorkflowAssignmentTargetCreatorIDs(ids...) +} + +// AddWorkflowDefinitionCreatorIDs adds the "workflow_definition_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowDefinitionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowDefinitionCreatorIDs(ids...) + return _u +} + +// AddWorkflowDefinitionCreators adds the "workflow_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowDefinitionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.RisksCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RisksTable, - Columns: []string{organization.RisksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Risk - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowDefinitionCreatorIDs(ids...) +} + +// AddWorkflowEventCreatorIDs adds the "workflow_event_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowEventCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowEventCreatorIDs(ids...) + return _u +} + +// AddWorkflowEventCreators adds the "workflow_event_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowEventCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedRisksIDs(); len(nodes) > 0 && !_u.mutation.RisksCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RisksTable, - Columns: []string{organization.RisksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Risk - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowEventCreatorIDs(ids...) +} + +// AddWorkflowInstanceCreatorIDs adds the "workflow_instance_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowInstanceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowInstanceCreatorIDs(ids...) + return _u +} + +// AddWorkflowInstanceCreators adds the "workflow_instance_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowInstanceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RisksIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RisksTable, - Columns: []string{organization.RisksColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Risk - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddWorkflowInstanceCreatorIDs(ids...) +} + +// AddWorkflowObjectRefCreatorIDs adds the "workflow_object_ref_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowObjectRefCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowObjectRefCreatorIDs(ids...) + return _u +} + +// AddWorkflowObjectRefCreators adds the "workflow_object_ref_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowObjectRefCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ControlObjectivesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlObjectivesTable, - Columns: []string{organization.ControlObjectivesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlObjective - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowObjectRefCreatorIDs(ids...) +} + +// AddWorkflowProposalCreatorIDs adds the "workflow_proposal_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowProposalCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowProposalCreatorIDs(ids...) + return _u +} + +// AddWorkflowProposalCreators adds the "workflow_proposal_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowProposalCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedControlObjectivesIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectivesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlObjectivesTable, - Columns: []string{organization.ControlObjectivesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlObjective - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowProposalCreatorIDs(ids...) +} + +// AddCampaignsManagerIDs adds the "campaigns_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddCampaignsManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCampaignsManagerIDs(ids...) + return _u +} + +// AddCampaignsManager adds the "campaigns_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddCampaignsManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ControlObjectivesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlObjectivesTable, - Columns: []string{organization.ControlObjectivesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlObjective - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddCampaignsManagerIDs(ids...) +} + +// AddComplianceManagerIDs adds the "compliance_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddComplianceManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddComplianceManagerIDs(ids...) + return _u +} + +// AddComplianceManager adds the "compliance_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddComplianceManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.NarrativesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NarrativesTable, - Columns: []string{organization.NarrativesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Narrative - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddComplianceManagerIDs(ids...) +} + +// AddGroupManagerIDs adds the "group_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddGroupManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddGroupManagerIDs(ids...) + return _u +} + +// AddGroupManager adds the "group_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddGroupManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !_u.mutation.NarrativesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NarrativesTable, - Columns: []string{organization.NarrativesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Narrative - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddGroupManagerIDs(ids...) +} + +// AddPoliciesManagerIDs adds the "policies_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddPoliciesManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddPoliciesManagerIDs(ids...) + return _u +} + +// AddPoliciesManager adds the "policies_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddPoliciesManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.NarrativesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NarrativesTable, - Columns: []string{organization.NarrativesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Narrative - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddPoliciesManagerIDs(ids...) +} + +// AddRegistryManagerIDs adds the "registry_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddRegistryManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRegistryManagerIDs(ids...) + return _u +} + +// AddRegistryManager adds the "registry_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddRegistryManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ControlsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlsTable, - Columns: []string{organization.ControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Control - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRegistryManagerIDs(ids...) +} + +// AddRiskManagerIDs adds the "risk_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddRiskManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRiskManagerIDs(ids...) + return _u +} + +// AddRiskManager adds the "risk_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddRiskManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedControlsIDs(); len(nodes) > 0 && !_u.mutation.ControlsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlsTable, - Columns: []string{organization.ControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Control - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRiskManagerIDs(ids...) +} + +// AddTrustCenterManagerIDs adds the "trust_center_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterManagerIDs(ids...) + return _u +} + +// AddTrustCenterManager adds the "trust_center_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddTrustCenterManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ControlsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlsTable, - Columns: []string{organization.ControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Control - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTrustCenterManagerIDs(ids...) +} + +// AddWorkflowsManagerIDs adds the "workflows_manager" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowsManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowsManagerIDs(ids...) + return _u +} + +// AddWorkflowsManager adds the "workflows_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddWorkflowsManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.SubcontrolsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubcontrolsTable, - Columns: []string{organization.SubcontrolsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subcontrol - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowsManagerIDs(ids...) +} + +// AddChildIDs adds the "children" edge to the Organization entity by IDs. +func (_u *OrganizationUpdateOne) AddChildIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddChildIDs(ids...) + return _u +} + +// AddChildren adds the "children" edges to the Organization entity. +func (_u *OrganizationUpdateOne) AddChildren(v ...*Organization) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !_u.mutation.SubcontrolsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubcontrolsTable, - Columns: []string{organization.SubcontrolsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subcontrol - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddChildIDs(ids...) +} + +// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. +func (_u *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne { + _u.mutation.SetSettingID(id) + return _u +} + +// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableSettingID(id *string) *OrganizationUpdateOne { + if id != nil { + _u = _u.SetSettingID(*id) } - if nodes := _u.mutation.SubcontrolsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubcontrolsTable, - Columns: []string{organization.SubcontrolsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subcontrol - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u +} + +// SetSetting sets the "setting" edge to the OrganizationSetting entity. +func (_u *OrganizationUpdateOne) SetSetting(v *OrganizationSetting) *OrganizationUpdateOne { + return _u.SetSettingID(v.ID) +} + +// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. +func (_u *OrganizationUpdateOne) AddPersonalAccessTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddPersonalAccessTokenIDs(ids...) + return _u +} + +// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. +func (_u *OrganizationUpdateOne) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ControlImplementationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlImplementationsTable, - Columns: []string{organization.ControlImplementationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlImplementation - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddPersonalAccessTokenIDs(ids...) +} + +// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. +func (_u *OrganizationUpdateOne) AddAPITokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAPITokenIDs(ids...) + return _u +} + +// AddAPITokens adds the "api_tokens" edges to the APIToken entity. +func (_u *OrganizationUpdateOne) AddAPITokens(v ...*APIToken) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedControlImplementationsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlImplementationsTable, - Columns: []string{organization.ControlImplementationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlImplementation - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddAPITokenIDs(ids...) +} + +// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. +func (_u *OrganizationUpdateOne) AddEmailTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEmailTemplateIDs(ids...) + return _u +} + +// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. +func (_u *OrganizationUpdateOne) AddEmailTemplates(v ...*EmailTemplate) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ControlImplementationsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ControlImplementationsTable, - Columns: []string{organization.ControlImplementationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(controlimplementation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ControlImplementation - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddEmailTemplateIDs(ids...) +} + +// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. +func (_u *OrganizationUpdateOne) AddIntegrationWebhookIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIntegrationWebhookIDs(ids...) + return _u +} + +// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. +func (_u *OrganizationUpdateOne) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.MappedControlsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.MappedControlsTable, - Columns: []string{organization.MappedControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.MappedControl - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddIntegrationWebhookIDs(ids...) +} + +// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. +func (_u *OrganizationUpdateOne) AddIntegrationRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIntegrationRunIDs(ids...) + return _u +} + +// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. +func (_u *OrganizationUpdateOne) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedMappedControlsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.MappedControlsTable, - Columns: []string{organization.MappedControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.MappedControl - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddIntegrationRunIDs(ids...) +} + +// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. +func (_u *OrganizationUpdateOne) AddNotificationPreferenceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNotificationPreferenceIDs(ids...) + return _u +} + +// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. +func (_u *OrganizationUpdateOne) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.MappedControlsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.MappedControlsTable, - Columns: []string{organization.MappedControlsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(mappedcontrol.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.MappedControl - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddNotificationPreferenceIDs(ids...) +} + +// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. +func (_u *OrganizationUpdateOne) AddNotificationTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNotificationTemplateIDs(ids...) + return _u +} + +// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. +func (_u *OrganizationUpdateOne) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.EvidenceCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EvidenceTable, - Columns: []string{organization.EvidenceColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Evidence - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddNotificationTemplateIDs(ids...) +} + +// AddUserIDs adds the "users" edge to the User entity by IDs. +func (_u *OrganizationUpdateOne) AddUserIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddUserIDs(ids...) + return _u +} + +// AddUsers adds the "users" edges to the User entity. +func (_u *OrganizationUpdateOne) AddUsers(v ...*User) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedEvidenceIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EvidenceTable, - Columns: []string{organization.EvidenceColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Evidence - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddUserIDs(ids...) +} + +// AddFileIDs adds the "files" edge to the File entity by IDs. +func (_u *OrganizationUpdateOne) AddFileIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddFileIDs(ids...) + return _u +} + +// AddFiles adds the "files" edges to the File entity. +func (_u *OrganizationUpdateOne) AddFiles(v ...*File) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.EvidenceIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EvidenceTable, - Columns: []string{organization.EvidenceColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(evidence.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Evidence - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddFileIDs(ids...) +} + +// AddEventIDs adds the "events" edge to the Event entity by IDs. +func (_u *OrganizationUpdateOne) AddEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEventIDs(ids...) + return _u +} + +// AddEvents adds the "events" edges to the Event entity. +func (_u *OrganizationUpdateOne) AddEvents(v ...*Event) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.StandardsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.StandardsTable, - Columns: []string{organization.StandardsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Standard - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEventIDs(ids...) +} + +// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. +func (_u *OrganizationUpdateOne) AddSecretIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSecretIDs(ids...) + return _u +} + +// AddSecrets adds the "secrets" edges to the Hush entity. +func (_u *OrganizationUpdateOne) AddSecrets(v ...*Hush) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedStandardsIDs(); len(nodes) > 0 && !_u.mutation.StandardsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.StandardsTable, - Columns: []string{organization.StandardsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Standard - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSecretIDs(ids...) +} + +// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. +func (_u *OrganizationUpdateOne) SetAvatarFileID(id string) *OrganizationUpdateOne { + _u.mutation.SetAvatarFileID(id) + return _u +} + +// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. +func (_u *OrganizationUpdateOne) SetNillableAvatarFileID(id *string) *OrganizationUpdateOne { + if id != nil { + _u = _u.SetAvatarFileID(*id) + } + return _u +} + +// SetAvatarFile sets the "avatar_file" edge to the File entity. +func (_u *OrganizationUpdateOne) SetAvatarFile(v *File) *OrganizationUpdateOne { + return _u.SetAvatarFileID(v.ID) +} + +// AddGroupIDs adds the "groups" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddGroupIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddGroupIDs(ids...) + return _u +} + +// AddGroups adds the "groups" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddGroups(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.StandardsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.StandardsTable, - Columns: []string{organization.StandardsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Standard - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddGroupIDs(ids...) +} + +// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. +func (_u *OrganizationUpdateOne) AddTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTemplateIDs(ids...) + return _u +} + +// AddTemplates adds the "templates" edges to the Template entity. +func (_u *OrganizationUpdateOne) AddTemplates(v ...*Template) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ActionPlansCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ActionPlansTable, - Columns: []string{organization.ActionPlansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ActionPlan - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTemplateIDs(ids...) +} + +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. +func (_u *OrganizationUpdateOne) AddIntegrationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIntegrationIDs(ids...) + return _u +} + +// AddIntegrations adds the "integrations" edges to the Integration entity. +func (_u *OrganizationUpdateOne) AddIntegrations(v ...*Integration) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedActionPlansIDs(); len(nodes) > 0 && !_u.mutation.ActionPlansCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ActionPlansTable, - Columns: []string{organization.ActionPlansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ActionPlan - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddIntegrationIDs(ids...) +} + +// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. +func (_u *OrganizationUpdateOne) AddDocumentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDocumentIDs(ids...) + return _u +} + +// AddDocuments adds the "documents" edges to the DocumentData entity. +func (_u *OrganizationUpdateOne) AddDocuments(v ...*DocumentData) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ActionPlansIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ActionPlansTable, - Columns: []string{organization.ActionPlansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ActionPlan - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddDocumentIDs(ids...) +} + +// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. +func (_u *OrganizationUpdateOne) AddOrgSubscriptionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddOrgSubscriptionIDs(ids...) + return _u +} + +// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. +func (_u *OrganizationUpdateOne) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CustomDomainsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomDomainsTable, - Columns: []string{organization.CustomDomainsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomDomain - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddOrgSubscriptionIDs(ids...) +} + +// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. +func (_u *OrganizationUpdateOne) AddOrgProductIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddOrgProductIDs(ids...) + return _u +} + +// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. +func (_u *OrganizationUpdateOne) AddOrgProducts(v ...*OrgProduct) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedCustomDomainsIDs(); len(nodes) > 0 && !_u.mutation.CustomDomainsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomDomainsTable, - Columns: []string{organization.CustomDomainsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomDomain - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddOrgProductIDs(ids...) +} + +// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. +func (_u *OrganizationUpdateOne) AddOrgPriceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddOrgPriceIDs(ids...) + return _u +} + +// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. +func (_u *OrganizationUpdateOne) AddOrgPrices(v ...*OrgPrice) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.CustomDomainsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomDomainsTable, - Columns: []string{organization.CustomDomainsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customdomain.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomDomain - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddOrgPriceIDs(ids...) +} + +// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. +func (_u *OrganizationUpdateOne) AddOrgModuleIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddOrgModuleIDs(ids...) + return _u +} + +// AddOrgModules adds the "org_modules" edges to the OrgModule entity. +func (_u *OrganizationUpdateOne) AddOrgModules(v ...*OrgModule) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.JobRunnersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnersTable, - Columns: []string{organization.JobRunnersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunner - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddOrgModuleIDs(ids...) +} + +// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. +func (_u *OrganizationUpdateOne) AddInviteIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddInviteIDs(ids...) + return _u +} + +// AddInvites adds the "invites" edges to the Invite entity. +func (_u *OrganizationUpdateOne) AddInvites(v ...*Invite) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedJobRunnersIDs(); len(nodes) > 0 && !_u.mutation.JobRunnersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnersTable, - Columns: []string{organization.JobRunnersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunner - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddInviteIDs(ids...) +} + +// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. +func (_u *OrganizationUpdateOne) AddSubscriberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubscriberIDs(ids...) + return _u +} + +// AddSubscribers adds the "subscribers" edges to the Subscriber entity. +func (_u *OrganizationUpdateOne) AddSubscribers(v ...*Subscriber) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.JobRunnersIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnersTable, - Columns: []string{organization.JobRunnersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunner.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunner - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddSubscriberIDs(ids...) +} + +// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. +func (_u *OrganizationUpdateOne) AddEntityIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEntityIDs(ids...) + return _u +} + +// AddEntities adds the "entities" edges to the Entity entity. +func (_u *OrganizationUpdateOne) AddEntities(v ...*Entity) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.JobRunnerTokensCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerTokensTable, - Columns: []string{organization.JobRunnerTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerToken - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEntityIDs(ids...) +} + +// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. +func (_u *OrganizationUpdateOne) AddPlatformIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddPlatformIDs(ids...) + return _u +} + +// AddPlatforms adds the "platforms" edges to the Platform entity. +func (_u *OrganizationUpdateOne) AddPlatforms(v ...*Platform) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedJobRunnerTokensIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerTokensCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerTokensTable, - Columns: []string{organization.JobRunnerTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerToken - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddPlatformIDs(ids...) +} + +// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. +func (_u *OrganizationUpdateOne) AddIdentityHolderIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddIdentityHolderIDs(ids...) + return _u +} + +// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. +func (_u *OrganizationUpdateOne) AddIdentityHolders(v ...*IdentityHolder) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.JobRunnerTokensIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerTokensTable, - Columns: []string{organization.JobRunnerTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnertoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerToken - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddIdentityHolderIDs(ids...) +} + +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_u *OrganizationUpdateOne) AddCampaignIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCampaignIDs(ids...) + return _u +} + +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_u *OrganizationUpdateOne) AddCampaigns(v ...*Campaign) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.JobRunnerRegistrationTokensCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerRegistrationTokensTable, - Columns: []string{organization.JobRunnerRegistrationTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCampaignIDs(ids...) +} + +// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. +func (_u *OrganizationUpdateOne) AddCampaignTargetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCampaignTargetIDs(ids...) + return _u +} + +// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. +func (_u *OrganizationUpdateOne) AddCampaignTargets(v ...*CampaignTarget) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedJobRunnerRegistrationTokensIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerRegistrationTokensCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerRegistrationTokensTable, - Columns: []string{organization.JobRunnerRegistrationTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCampaignTargetIDs(ids...) +} + +// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. +func (_u *OrganizationUpdateOne) AddEntityTypeIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEntityTypeIDs(ids...) + return _u +} + +// AddEntityTypes adds the "entity_types" edges to the EntityType entity. +func (_u *OrganizationUpdateOne) AddEntityTypes(v ...*EntityType) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.JobRunnerRegistrationTokensIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobRunnerRegistrationTokensTable, - Columns: []string{organization.JobRunnerRegistrationTokensColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobrunnerregistrationtoken.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobRunnerRegistrationToken - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddEntityTypeIDs(ids...) +} + +// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. +func (_u *OrganizationUpdateOne) AddContactIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddContactIDs(ids...) + return _u +} + +// AddContacts adds the "contacts" edges to the Contact entity. +func (_u *OrganizationUpdateOne) AddContacts(v ...*Contact) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DNSVerificationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DNSVerificationsTable, - Columns: []string{organization.DNSVerificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DNSVerification - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddContactIDs(ids...) +} + +// AddNoteIDs adds the "notes" edge to the Note entity by IDs. +func (_u *OrganizationUpdateOne) AddNoteIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNoteIDs(ids...) + return _u +} + +// AddNotes adds the "notes" edges to the Note entity. +func (_u *OrganizationUpdateOne) AddNotes(v ...*Note) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddNoteIDs(ids...) +} + +// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. +func (_u *OrganizationUpdateOne) AddTaskIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTaskIDs(ids...) + return _u +} + +// AddTasks adds the "tasks" edges to the Task entity. +func (_u *OrganizationUpdateOne) AddTasks(v ...*Task) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDNSVerificationsIDs(); len(nodes) > 0 && !_u.mutation.DNSVerificationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DNSVerificationsTable, - Columns: []string{organization.DNSVerificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DNSVerification - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTaskIDs(ids...) +} + +// AddProgramIDs adds the "programs" edge to the Program entity by IDs. +func (_u *OrganizationUpdateOne) AddProgramIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddProgramIDs(ids...) + return _u +} + +// AddPrograms adds the "programs" edges to the Program entity. +func (_u *OrganizationUpdateOne) AddPrograms(v ...*Program) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DNSVerificationsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DNSVerificationsTable, - Columns: []string{organization.DNSVerificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(dnsverification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DNSVerification - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddProgramIDs(ids...) +} + +// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. +func (_u *OrganizationUpdateOne) AddSystemDetailIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSystemDetailIDs(ids...) + return _u +} + +// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. +func (_u *OrganizationUpdateOne) AddSystemDetails(v ...*SystemDetail) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.JobTemplatesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobTemplatesTable, - Columns: []string{organization.JobTemplatesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobTemplate - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSystemDetailIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (_u *OrganizationUpdateOne) AddProcedureIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddProcedureIDs(ids...) + return _u +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (_u *OrganizationUpdateOne) AddProcedures(v ...*Procedure) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedJobTemplatesIDs(); len(nodes) > 0 && !_u.mutation.JobTemplatesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobTemplatesTable, - Columns: []string{organization.JobTemplatesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobTemplate - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddProcedureIDs(ids...) +} + +// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. +func (_u *OrganizationUpdateOne) AddInternalPolicyIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddInternalPolicyIDs(ids...) + return _u +} + +// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. +func (_u *OrganizationUpdateOne) AddInternalPolicies(v ...*InternalPolicy) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.JobTemplatesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobTemplatesTable, - Columns: []string{organization.JobTemplatesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobtemplate.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobTemplate - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddInternalPolicyIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (_u *OrganizationUpdateOne) AddRiskIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRiskIDs(ids...) + return _u +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (_u *OrganizationUpdateOne) AddRisks(v ...*Risk) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ScheduledJobsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobsTable, - Columns: []string{organization.ScheduledJobsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJob - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRiskIDs(ids...) +} + +// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. +func (_u *OrganizationUpdateOne) AddControlObjectiveIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlObjectiveIDs(ids...) + return _u +} + +// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. +func (_u *OrganizationUpdateOne) AddControlObjectives(v ...*ControlObjective) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedScheduledJobsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobsTable, - Columns: []string{organization.ScheduledJobsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJob - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddControlObjectiveIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (_u *OrganizationUpdateOne) AddNarrativeIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNarrativeIDs(ids...) + return _u +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (_u *OrganizationUpdateOne) AddNarratives(v ...*Narrative) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ScheduledJobsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobsTable, - Columns: []string{organization.ScheduledJobsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjob.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJob - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddNarrativeIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (_u *OrganizationUpdateOne) AddControlIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlIDs(ids...) + return _u +} + +// AddControls adds the "controls" edges to the Control entity. +func (_u *OrganizationUpdateOne) AddControls(v ...*Control) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.JobResultsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobResultsTable, - Columns: []string{organization.JobResultsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobResult - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddControlIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (_u *OrganizationUpdateOne) AddSubcontrolIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubcontrolIDs(ids...) + return _u +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (_u *OrganizationUpdateOne) AddSubcontrols(v ...*Subcontrol) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedJobResultsIDs(); len(nodes) > 0 && !_u.mutation.JobResultsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobResultsTable, - Columns: []string{organization.JobResultsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobResult - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSubcontrolIDs(ids...) +} + +// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. +func (_u *OrganizationUpdateOne) AddControlImplementationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddControlImplementationIDs(ids...) + return _u +} + +// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. +func (_u *OrganizationUpdateOne) AddControlImplementations(v ...*ControlImplementation) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.JobResultsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.JobResultsTable, - Columns: []string{organization.JobResultsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(jobresult.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.JobResult - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddControlImplementationIDs(ids...) +} + +// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. +func (_u *OrganizationUpdateOne) AddMappedControlIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddMappedControlIDs(ids...) + return _u +} + +// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. +func (_u *OrganizationUpdateOne) AddMappedControls(v ...*MappedControl) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ScheduledJobRunsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobRunsTable, - Columns: []string{organization.ScheduledJobRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJobRun - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddMappedControlIDs(ids...) +} + +// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. +func (_u *OrganizationUpdateOne) AddEvidenceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddEvidenceIDs(ids...) + return _u +} + +// AddEvidence adds the "evidence" edges to the Evidence entity. +func (_u *OrganizationUpdateOne) AddEvidence(v ...*Evidence) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedScheduledJobRunsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobRunsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobRunsTable, - Columns: []string{organization.ScheduledJobRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJobRun - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddEvidenceIDs(ids...) +} + +// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. +func (_u *OrganizationUpdateOne) AddStandardIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddStandardIDs(ids...) + return _u +} + +// AddStandards adds the "standards" edges to the Standard entity. +func (_u *OrganizationUpdateOne) AddStandards(v ...*Standard) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ScheduledJobRunsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScheduledJobRunsTable, - Columns: []string{organization.ScheduledJobRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scheduledjobrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ScheduledJobRun - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddStandardIDs(ids...) +} + +// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. +func (_u *OrganizationUpdateOne) AddActionPlanIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddActionPlanIDs(ids...) + return _u +} + +// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. +func (_u *OrganizationUpdateOne) AddActionPlans(v ...*ActionPlan) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.TrustCentersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCentersTable, - Columns: []string{organization.TrustCentersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenter - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddActionPlanIDs(ids...) +} + +// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. +func (_u *OrganizationUpdateOne) AddCustomDomainIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCustomDomainIDs(ids...) + return _u +} + +// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. +func (_u *OrganizationUpdateOne) AddCustomDomains(v ...*CustomDomain) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedTrustCentersIDs(); len(nodes) > 0 && !_u.mutation.TrustCentersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCentersTable, - Columns: []string{organization.TrustCentersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenter - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCustomDomainIDs(ids...) +} + +// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerIDs(ids...) + return _u +} + +// AddJobRunners adds the "job_runners" edges to the JobRunner entity. +func (_u *OrganizationUpdateOne) AddJobRunners(v ...*JobRunner) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.TrustCentersIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCentersTable, - Columns: []string{organization.TrustCentersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenter.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenter - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddJobRunnerIDs(ids...) +} + +// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerTokenIDs(ids...) + return _u +} + +// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. +func (_u *OrganizationUpdateOne) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddJobRunnerTokenIDs(ids...) +} + +// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. +func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobRunnerRegistrationTokenIDs(ids...) + return _u +} + +// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. +func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.AssetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssetsTable, - Columns: []string{organization.AssetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Asset - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddJobRunnerRegistrationTokenIDs(ids...) +} + +// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. +func (_u *OrganizationUpdateOne) AddDNSVerificationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDNSVerificationIDs(ids...) + return _u +} + +// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. +func (_u *OrganizationUpdateOne) AddDNSVerifications(v ...*DNSVerification) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedAssetsIDs(); len(nodes) > 0 && !_u.mutation.AssetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssetsTable, - Columns: []string{organization.AssetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Asset - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddDNSVerificationIDs(ids...) +} + +// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. +func (_u *OrganizationUpdateOne) AddJobTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobTemplateIDs(ids...) + return _u +} + +// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. +func (_u *OrganizationUpdateOne) AddJobTemplates(v ...*JobTemplate) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.AssetsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssetsTable, - Columns: []string{organization.AssetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(asset.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Asset - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddJobTemplateIDs(ids...) +} + +// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. +func (_u *OrganizationUpdateOne) AddScheduledJobIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScheduledJobIDs(ids...) + return _u +} + +// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. +func (_u *OrganizationUpdateOne) AddScheduledJobs(v ...*ScheduledJob) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ScansCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScansTable, - Columns: []string{organization.ScansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Scan - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddScheduledJobIDs(ids...) +} + +// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. +func (_u *OrganizationUpdateOne) AddJobResultIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddJobResultIDs(ids...) + return _u +} + +// AddJobResults adds the "job_results" edges to the JobResult entity. +func (_u *OrganizationUpdateOne) AddJobResults(v ...*JobResult) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedScansIDs(); len(nodes) > 0 && !_u.mutation.ScansCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScansTable, - Columns: []string{organization.ScansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Scan - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddJobResultIDs(ids...) +} + +// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. +func (_u *OrganizationUpdateOne) AddScheduledJobRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScheduledJobRunIDs(ids...) + return _u +} + +// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. +func (_u *OrganizationUpdateOne) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ScansIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ScansTable, - Columns: []string{organization.ScansColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(scan.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Scan - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddScheduledJobRunIDs(ids...) +} + +// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterIDs(ids...) + return _u +} + +// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. +func (_u *OrganizationUpdateOne) AddTrustCenters(v ...*TrustCenter) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.SLADefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SLADefinitionsTable, - Columns: []string{organization.SLADefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SLADefinition - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterIDs(ids...) +} + +// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. +func (_u *OrganizationUpdateOne) AddAssetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAssetIDs(ids...) + return _u +} + +// AddAssets adds the "assets" edges to the Asset entity. +func (_u *OrganizationUpdateOne) AddAssets(v ...*Asset) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedSLADefinitionsIDs(); len(nodes) > 0 && !_u.mutation.SLADefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SLADefinitionsTable, - Columns: []string{organization.SLADefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SLADefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddAssetIDs(ids...) +} + +// AddScanIDs adds the "scans" edge to the Scan entity by IDs. +func (_u *OrganizationUpdateOne) AddScanIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddScanIDs(ids...) + return _u +} + +// AddScans adds the "scans" edges to the Scan entity. +func (_u *OrganizationUpdateOne) AddScans(v ...*Scan) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.SLADefinitionsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SLADefinitionsTable, - Columns: []string{organization.SLADefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(sladefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.SLADefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddScanIDs(ids...) +} + +// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. +func (_u *OrganizationUpdateOne) AddSLADefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSLADefinitionIDs(ids...) + return _u +} + +// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. +func (_u *OrganizationUpdateOne) AddSLADefinitions(v ...*SLADefinition) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.SubprocessorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubprocessorsTable, - Columns: []string{organization.SubprocessorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subprocessor - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSLADefinitionIDs(ids...) +} + +// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. +func (_u *OrganizationUpdateOne) AddSubprocessorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddSubprocessorIDs(ids...) + return _u +} + +// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. +func (_u *OrganizationUpdateOne) AddSubprocessors(v ...*Subprocessor) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedSubprocessorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubprocessorsTable, - Columns: []string{organization.SubprocessorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subprocessor - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddSubprocessorIDs(ids...) +} + +// AddExportIDs adds the "exports" edge to the Export entity by IDs. +func (_u *OrganizationUpdateOne) AddExportIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddExportIDs(ids...) + return _u +} + +// AddExports adds the "exports" edges to the Export entity. +func (_u *OrganizationUpdateOne) AddExports(v ...*Export) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.SubprocessorsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.SubprocessorsTable, - Columns: []string{organization.SubprocessorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(subprocessor.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Subprocessor - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddExportIDs(ids...) +} + +// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. +func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTrustCenterWatermarkConfigIDs(ids...) + return _u +} + +// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. +func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ExportsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ExportsTable, - Columns: []string{organization.ExportsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Export - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddTrustCenterWatermarkConfigIDs(ids...) +} + +// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. +func (_u *OrganizationUpdateOne) AddImpersonationEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddImpersonationEventIDs(ids...) + return _u +} + +// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. +func (_u *OrganizationUpdateOne) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedExportsIDs(); len(nodes) > 0 && !_u.mutation.ExportsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ExportsTable, - Columns: []string{organization.ExportsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Export - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddImpersonationEventIDs(ids...) +} + +// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. +func (_u *OrganizationUpdateOne) AddAssessmentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAssessmentIDs(ids...) + return _u +} + +// AddAssessments adds the "assessments" edges to the Assessment entity. +func (_u *OrganizationUpdateOne) AddAssessments(v ...*Assessment) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ExportsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ExportsTable, - Columns: []string{organization.ExportsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(export.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Export - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddAssessmentIDs(ids...) +} + +// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. +func (_u *OrganizationUpdateOne) AddAssessmentResponseIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAssessmentResponseIDs(ids...) + return _u +} + +// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. +func (_u *OrganizationUpdateOne) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.TrustCenterWatermarkConfigsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCenterWatermarkConfigsTable, - Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddAssessmentResponseIDs(ids...) +} + +// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. +func (_u *OrganizationUpdateOne) AddCustomTypeEnumIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddCustomTypeEnumIDs(ids...) + return _u +} + +// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. +func (_u *OrganizationUpdateOne) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedTrustCenterWatermarkConfigsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterWatermarkConfigsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCenterWatermarkConfigsTable, - Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddCustomTypeEnumIDs(ids...) +} + +// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. +func (_u *OrganizationUpdateOne) AddTagDefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddTagDefinitionIDs(ids...) + return _u +} + +// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. +func (_u *OrganizationUpdateOne) AddTagDefinitions(v ...*TagDefinition) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.TrustCenterWatermarkConfigsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TrustCenterWatermarkConfigsTable, - Columns: []string{organization.TrustCenterWatermarkConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(trustcenterwatermarkconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TrustCenterWatermarkConfig - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddTagDefinitionIDs(ids...) +} + +// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. +func (_u *OrganizationUpdateOne) AddRemediationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddRemediationIDs(ids...) + return _u +} + +// AddRemediations adds the "remediations" edges to the Remediation entity. +func (_u *OrganizationUpdateOne) AddRemediations(v ...*Remediation) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ImpersonationEventsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ImpersonationEventsTable, - Columns: []string{organization.ImpersonationEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ImpersonationEvent - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddRemediationIDs(ids...) +} + +// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. +func (_u *OrganizationUpdateOne) AddFindingIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddFindingIDs(ids...) + return _u +} + +// AddFindings adds the "findings" edges to the Finding entity. +func (_u *OrganizationUpdateOne) AddFindings(v ...*Finding) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedImpersonationEventsIDs(); len(nodes) > 0 && !_u.mutation.ImpersonationEventsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ImpersonationEventsTable, - Columns: []string{organization.ImpersonationEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ImpersonationEvent - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddFindingIDs(ids...) +} + +// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. +func (_u *OrganizationUpdateOne) AddReviewIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddReviewIDs(ids...) + return _u +} + +// AddReviews adds the "reviews" edges to the Review entity. +func (_u *OrganizationUpdateOne) AddReviews(v ...*Review) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ImpersonationEventsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ImpersonationEventsTable, - Columns: []string{organization.ImpersonationEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(impersonationevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.ImpersonationEvent - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddReviewIDs(ids...) +} + +// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. +func (_u *OrganizationUpdateOne) AddVulnerabilityIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddVulnerabilityIDs(ids...) + return _u +} + +// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. +func (_u *OrganizationUpdateOne) AddVulnerabilities(v ...*Vulnerability) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.AssessmentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentsTable, - Columns: []string{organization.AssessmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddVulnerabilityIDs(ids...) +} + +// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. +func (_u *OrganizationUpdateOne) AddNotificationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddNotificationIDs(ids...) + return _u +} + +// AddNotifications adds the "notifications" edges to the Notification entity. +func (_u *OrganizationUpdateOne) AddNotifications(v ...*Notification) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedAssessmentsIDs(); len(nodes) > 0 && !_u.mutation.AssessmentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentsTable, - Columns: []string{organization.AssessmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddNotificationIDs(ids...) +} + +// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowDefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowDefinitionIDs(ids...) + return _u +} + +// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. +func (_u *OrganizationUpdateOne) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.AssessmentsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentsTable, - Columns: []string{organization.AssessmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddWorkflowDefinitionIDs(ids...) +} + +// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowInstanceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowInstanceIDs(ids...) + return _u +} + +// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. +func (_u *OrganizationUpdateOne) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.AssessmentResponsesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentResponsesTable, - Columns: []string{organization.AssessmentResponsesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.AssessmentResponse - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowInstanceIDs(ids...) +} + +// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowEventIDs(ids...) + return _u +} + +// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. +func (_u *OrganizationUpdateOne) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedAssessmentResponsesIDs(); len(nodes) > 0 && !_u.mutation.AssessmentResponsesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentResponsesTable, - Columns: []string{organization.AssessmentResponsesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.AssessmentResponse - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowEventIDs(ids...) +} + +// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowAssignmentIDs(ids...) + return _u +} + +// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. +func (_u *OrganizationUpdateOne) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddWorkflowAssignmentIDs(ids...) +} + +// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowAssignmentTargetIDs(ids...) + return _u +} + +// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. +func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.AssessmentResponsesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.AssessmentResponsesTable, - Columns: []string{organization.AssessmentResponsesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(assessmentresponse.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.AssessmentResponse - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddWorkflowAssignmentTargetIDs(ids...) +} + +// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowObjectRefIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowObjectRefIDs(ids...) + return _u +} + +// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. +func (_u *OrganizationUpdateOne) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.CustomTypeEnumsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomTypeEnumsTable, - Columns: []string{organization.CustomTypeEnumsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomTypeEnum - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowObjectRefIDs(ids...) +} + +// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. +func (_u *OrganizationUpdateOne) AddWorkflowProposalIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddWorkflowProposalIDs(ids...) + return _u +} + +// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. +func (_u *OrganizationUpdateOne) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedCustomTypeEnumsIDs(); len(nodes) > 0 && !_u.mutation.CustomTypeEnumsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomTypeEnumsTable, - Columns: []string{organization.CustomTypeEnumsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomTypeEnum - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddWorkflowProposalIDs(ids...) +} + +// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. +func (_u *OrganizationUpdateOne) AddDirectoryAccountIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDirectoryAccountIDs(ids...) + return _u +} + +// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. +func (_u *OrganizationUpdateOne) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.CustomTypeEnumsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.CustomTypeEnumsTable, - Columns: []string{organization.CustomTypeEnumsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(customtypeenum.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.CustomTypeEnum - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddDirectoryAccountIDs(ids...) +} + +// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. +func (_u *OrganizationUpdateOne) AddDirectoryGroupIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDirectoryGroupIDs(ids...) + return _u +} + +// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. +func (_u *OrganizationUpdateOne) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.TagDefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TagDefinitionsTable, - Columns: []string{organization.TagDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TagDefinition - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddDirectoryGroupIDs(ids...) +} + +// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. +func (_u *OrganizationUpdateOne) AddDirectoryMembershipIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDirectoryMembershipIDs(ids...) + return _u +} + +// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. +func (_u *OrganizationUpdateOne) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedTagDefinitionsIDs(); len(nodes) > 0 && !_u.mutation.TagDefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TagDefinitionsTable, - Columns: []string{organization.TagDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TagDefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddDirectoryMembershipIDs(ids...) +} + +// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. +func (_u *OrganizationUpdateOne) AddDirectorySyncRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDirectorySyncRunIDs(ids...) + return _u +} + +// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. +func (_u *OrganizationUpdateOne) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.TagDefinitionsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.TagDefinitionsTable, - Columns: []string{organization.TagDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(tagdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.TagDefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddDirectorySyncRunIDs(ids...) +} + +// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. +func (_u *OrganizationUpdateOne) AddDiscussionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddDiscussionIDs(ids...) + return _u +} + +// AddDiscussions adds the "discussions" edges to the Discussion entity. +func (_u *OrganizationUpdateOne) AddDiscussions(v ...*Discussion) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.RemediationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RemediationsTable, - Columns: []string{organization.RemediationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Remediation - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddDiscussionIDs(ids...) +} + +// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. +func (_u *OrganizationUpdateOne) AddVendorScoringConfigIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddVendorScoringConfigIDs(ids...) + return _u +} + +// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. +func (_u *OrganizationUpdateOne) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedRemediationsIDs(); len(nodes) > 0 && !_u.mutation.RemediationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RemediationsTable, - Columns: []string{organization.RemediationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Remediation - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddVendorScoringConfigIDs(ids...) +} + +// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. +func (_u *OrganizationUpdateOne) AddVendorRiskScoreIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddVendorRiskScoreIDs(ids...) + return _u +} + +// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. +func (_u *OrganizationUpdateOne) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemediationsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.RemediationsTable, - Columns: []string{organization.RemediationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(remediation.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Remediation - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.AddVendorRiskScoreIDs(ids...) +} + +// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. +func (_u *OrganizationUpdateOne) AddMemberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddMemberIDs(ids...) + return _u +} + +// AddMembers adds the "members" edges to the OrgMembership entity. +func (_u *OrganizationUpdateOne) AddMembers(v ...*OrgMembership) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.FindingsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.FindingsTable, - Columns: []string{organization.FindingsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Finding - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.AddMemberIDs(ids...) +} + +// Mutation returns the OrganizationMutation object of the builder. +func (_u *OrganizationUpdateOne) Mutation() *OrganizationMutation { + return _u.mutation +} + +// ClearActionPlanCreators clears all "action_plan_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearActionPlanCreators() *OrganizationUpdateOne { + _u.mutation.ClearActionPlanCreators() + return _u +} + +// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveActionPlanCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveActionPlanCreatorIDs(ids...) + return _u +} + +// RemoveActionPlanCreators removes "action_plan_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveActionPlanCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedFindingsIDs(); len(nodes) > 0 && !_u.mutation.FindingsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.FindingsTable, - Columns: []string{organization.FindingsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Finding - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveActionPlanCreatorIDs(ids...) +} + +// ClearAPITokenCreators clears all "api_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearAPITokenCreators() *OrganizationUpdateOne { + _u.mutation.ClearAPITokenCreators() + return _u +} + +// RemoveAPITokenCreatorIDs removes the "api_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAPITokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAPITokenCreatorIDs(ids...) + return _u +} + +// RemoveAPITokenCreators removes "api_token_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveAPITokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.FindingsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.FindingsTable, - Columns: []string{organization.FindingsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(finding.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Finding - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveAPITokenCreatorIDs(ids...) +} + +// ClearAssessmentCreators clears all "assessment_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearAssessmentCreators() *OrganizationUpdateOne { + _u.mutation.ClearAssessmentCreators() + return _u +} + +// RemoveAssessmentCreatorIDs removes the "assessment_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAssessmentCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAssessmentCreatorIDs(ids...) + return _u +} + +// RemoveAssessmentCreators removes "assessment_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveAssessmentCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.ReviewsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ReviewsTable, - Columns: []string{organization.ReviewsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Review - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveAssessmentCreatorIDs(ids...) +} + +// ClearAssetCreators clears all "asset_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearAssetCreators() *OrganizationUpdateOne { + _u.mutation.ClearAssetCreators() + return _u +} + +// RemoveAssetCreatorIDs removes the "asset_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAssetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAssetCreatorIDs(ids...) + return _u +} + +// RemoveAssetCreators removes "asset_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveAssetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedReviewsIDs(); len(nodes) > 0 && !_u.mutation.ReviewsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ReviewsTable, - Columns: []string{organization.ReviewsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Review - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveAssetCreatorIDs(ids...) +} + +// ClearCampaignCreators clears all "campaign_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearCampaignCreators() *OrganizationUpdateOne { + _u.mutation.ClearCampaignCreators() + return _u +} + +// RemoveCampaignCreatorIDs removes the "campaign_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCampaignCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCampaignCreatorIDs(ids...) + return _u +} + +// RemoveCampaignCreators removes "campaign_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveCampaignCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.ReviewsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.ReviewsTable, - Columns: []string{organization.ReviewsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(review.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Review - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveCampaignCreatorIDs(ids...) +} + +// ClearCampaignTargetCreators clears all "campaign_target_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearCampaignTargetCreators() *OrganizationUpdateOne { + _u.mutation.ClearCampaignTargetCreators() + return _u +} + +// RemoveCampaignTargetCreatorIDs removes the "campaign_target_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCampaignTargetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCampaignTargetCreatorIDs(ids...) + return _u +} + +// RemoveCampaignTargetCreators removes "campaign_target_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveCampaignTargetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.VulnerabilitiesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VulnerabilitiesTable, - Columns: []string{organization.VulnerabilitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Vulnerability - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveCampaignTargetCreatorIDs(ids...) +} + +// ClearCheckResultCreators clears all "check_result_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearCheckResultCreators() *OrganizationUpdateOne { + _u.mutation.ClearCheckResultCreators() + return _u +} + +// RemoveCheckResultCreatorIDs removes the "check_result_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCheckResultCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCheckResultCreatorIDs(ids...) + return _u +} + +// RemoveCheckResultCreators removes "check_result_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveCheckResultCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedVulnerabilitiesIDs(); len(nodes) > 0 && !_u.mutation.VulnerabilitiesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VulnerabilitiesTable, - Columns: []string{organization.VulnerabilitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Vulnerability - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveCheckResultCreatorIDs(ids...) +} + +// ClearContactCreators clears all "contact_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearContactCreators() *OrganizationUpdateOne { + _u.mutation.ClearContactCreators() + return _u +} + +// RemoveContactCreatorIDs removes the "contact_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveContactCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveContactCreatorIDs(ids...) + return _u +} + +// RemoveContactCreators removes "contact_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveContactCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.VulnerabilitiesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VulnerabilitiesTable, - Columns: []string{organization.VulnerabilitiesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vulnerability.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Vulnerability - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveContactCreatorIDs(ids...) +} + +// ClearControlCreators clears all "control_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearControlCreators() *OrganizationUpdateOne { + _u.mutation.ClearControlCreators() + return _u +} + +// RemoveControlCreatorIDs removes the "control_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlCreatorIDs(ids...) + return _u +} + +// RemoveControlCreators removes "control_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveControlCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.NotificationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotificationsTable, - Columns: []string{organization.NotificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Notification - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveControlCreatorIDs(ids...) +} + +// ClearControlImplementationCreators clears all "control_implementation_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearControlImplementationCreators() *OrganizationUpdateOne { + _u.mutation.ClearControlImplementationCreators() + return _u +} + +// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlImplementationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlImplementationCreatorIDs(ids...) + return _u +} + +// RemoveControlImplementationCreators removes "control_implementation_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveControlImplementationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedNotificationsIDs(); len(nodes) > 0 && !_u.mutation.NotificationsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotificationsTable, - Columns: []string{organization.NotificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Notification - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveControlImplementationCreatorIDs(ids...) +} + +// ClearControlObjectiveCreators clears all "control_objective_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearControlObjectiveCreators() *OrganizationUpdateOne { + _u.mutation.ClearControlObjectiveCreators() + return _u +} + +// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlObjectiveCreatorIDs(ids...) + return _u +} + +// RemoveControlObjectiveCreators removes "control_objective_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveControlObjectiveCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.NotificationsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.NotificationsTable, - Columns: []string{organization.NotificationsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(notification.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Notification - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveControlObjectiveCreatorIDs(ids...) +} + +// ClearCustomTypeEnumCreators clears all "custom_type_enum_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearCustomTypeEnumCreators() *OrganizationUpdateOne { + _u.mutation.ClearCustomTypeEnumCreators() + return _u +} + +// RemoveCustomTypeEnumCreatorIDs removes the "custom_type_enum_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCustomTypeEnumCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCustomTypeEnumCreatorIDs(ids...) + return _u +} + +// RemoveCustomTypeEnumCreators removes "custom_type_enum_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveCustomTypeEnumCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowDefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowDefinitionsTable, - Columns: []string{organization.WorkflowDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowDefinition - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveCustomTypeEnumCreatorIDs(ids...) +} + +// ClearDiscussionCreators clears all "discussion_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearDiscussionCreators() *OrganizationUpdateOne { + _u.mutation.ClearDiscussionCreators() + return _u +} + +// RemoveDiscussionCreatorIDs removes the "discussion_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDiscussionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDiscussionCreatorIDs(ids...) + return _u +} + +// RemoveDiscussionCreators removes "discussion_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveDiscussionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowDefinitionsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowDefinitionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowDefinitionsTable, - Columns: []string{organization.WorkflowDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowDefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveDiscussionCreatorIDs(ids...) +} + +// ClearEmailBrandingCreators clears all "email_branding_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearEmailBrandingCreators() *OrganizationUpdateOne { + _u.mutation.ClearEmailBrandingCreators() + return _u +} + +// RemoveEmailBrandingCreatorIDs removes the "email_branding_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEmailBrandingCreatorIDs(ids...) + return _u +} + +// RemoveEmailBrandingCreators removes "email_branding_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveEmailBrandingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowDefinitionsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowDefinitionsTable, - Columns: []string{organization.WorkflowDefinitionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowdefinition.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowDefinition - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveEmailBrandingCreatorIDs(ids...) +} + +// ClearEmailTemplateCreators clears all "email_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearEmailTemplateCreators() *OrganizationUpdateOne { + _u.mutation.ClearEmailTemplateCreators() + return _u +} + +// RemoveEmailTemplateCreatorIDs removes the "email_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEmailTemplateCreatorIDs(ids...) + return _u +} + +// RemoveEmailTemplateCreators removes "email_template_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveEmailTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowInstancesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowInstancesTable, - Columns: []string{organization.WorkflowInstancesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowInstance - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveEmailTemplateCreatorIDs(ids...) +} + +// ClearEntityCreators clears all "entity_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearEntityCreators() *OrganizationUpdateOne { + _u.mutation.ClearEntityCreators() + return _u +} + +// RemoveEntityCreatorIDs removes the "entity_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEntityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEntityCreatorIDs(ids...) + return _u +} + +// RemoveEntityCreators removes "entity_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveEntityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEntityCreatorIDs(ids...) +} + +// ClearEntityTypeCreators clears all "entity_type_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearEntityTypeCreators() *OrganizationUpdateOne { + _u.mutation.ClearEntityTypeCreators() + return _u +} + +// RemoveEntityTypeCreatorIDs removes the "entity_type_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEntityTypeCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEntityTypeCreatorIDs(ids...) + return _u +} + +// RemoveEntityTypeCreators removes "entity_type_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveEntityTypeCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowInstancesIDs(); len(nodes) > 0 && !_u.mutation.WorkflowInstancesCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowInstancesTable, - Columns: []string{organization.WorkflowInstancesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowInstance - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveEntityTypeCreatorIDs(ids...) +} + +// ClearEvidenceCreators clears all "evidence_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearEvidenceCreators() *OrganizationUpdateOne { + _u.mutation.ClearEvidenceCreators() + return _u +} + +// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEvidenceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEvidenceCreatorIDs(ids...) + return _u +} + +// RemoveEvidenceCreators removes "evidence_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveEvidenceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowInstancesIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowInstancesTable, - Columns: []string{organization.WorkflowInstancesColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowinstance.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowInstance - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveEvidenceCreatorIDs(ids...) +} + +// ClearExportCreators clears all "export_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearExportCreators() *OrganizationUpdateOne { + _u.mutation.ClearExportCreators() + return _u +} + +// RemoveExportCreatorIDs removes the "export_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveExportCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveExportCreatorIDs(ids...) + return _u +} + +// RemoveExportCreators removes "export_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveExportCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowEventsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowEventsTable, - Columns: []string{organization.WorkflowEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowEvent - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveExportCreatorIDs(ids...) +} + +// ClearFileCreators clears all "file_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearFileCreators() *OrganizationUpdateOne { + _u.mutation.ClearFileCreators() + return _u +} + +// RemoveFileCreatorIDs removes the "file_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveFileCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveFileCreatorIDs(ids...) + return _u +} + +// RemoveFileCreators removes "file_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveFileCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowEventsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowEventsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowEventsTable, - Columns: []string{organization.WorkflowEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowEvent - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveFileCreatorIDs(ids...) +} + +// ClearFindingCreators clears all "finding_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearFindingCreators() *OrganizationUpdateOne { + _u.mutation.ClearFindingCreators() + return _u +} + +// RemoveFindingCreatorIDs removes the "finding_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveFindingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveFindingCreatorIDs(ids...) + return _u +} + +// RemoveFindingCreators removes "finding_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveFindingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowEventsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowEventsTable, - Columns: []string{organization.WorkflowEventsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowevent.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowEvent - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveFindingCreatorIDs(ids...) +} + +// ClearGroupCreators clears all "group_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearGroupCreators() *OrganizationUpdateOne { + _u.mutation.ClearGroupCreators() + return _u +} + +// RemoveGroupCreatorIDs removes the "group_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveGroupCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveGroupCreatorIDs(ids...) + return _u +} + +// RemoveGroupCreators removes "group_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveGroupCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowAssignmentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentsTable, - Columns: []string{organization.WorkflowAssignmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignment - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveGroupCreatorIDs(ids...) +} + +// ClearIdentityHolderCreators clears all "identity_holder_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearIdentityHolderCreators() *OrganizationUpdateOne { + _u.mutation.ClearIdentityHolderCreators() + return _u +} + +// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIdentityHolderCreatorIDs(ids...) + return _u +} + +// RemoveIdentityHolderCreators removes "identity_holder_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveIdentityHolderCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowAssignmentsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentsTable, - Columns: []string{organization.WorkflowAssignmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveIdentityHolderCreatorIDs(ids...) +} + +// ClearIntegrationCreators clears all "integration_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearIntegrationCreators() *OrganizationUpdateOne { + _u.mutation.ClearIntegrationCreators() + return _u +} + +// RemoveIntegrationCreatorIDs removes the "integration_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIntegrationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIntegrationCreatorIDs(ids...) + return _u +} + +// RemoveIntegrationCreators removes "integration_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveIntegrationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowAssignmentsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentsTable, - Columns: []string{organization.WorkflowAssignmentsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignment.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveIntegrationCreatorIDs(ids...) +} + +// ClearIntegrationWebhookCreators clears all "integration_webhook_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearIntegrationWebhookCreators() *OrganizationUpdateOne { + _u.mutation.ClearIntegrationWebhookCreators() + return _u +} + +// RemoveIntegrationWebhookCreatorIDs removes the "integration_webhook_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIntegrationWebhookCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIntegrationWebhookCreatorIDs(ids...) + return _u +} + +// RemoveIntegrationWebhookCreators removes "integration_webhook_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveIntegrationWebhookCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveIntegrationWebhookCreatorIDs(ids...) +} + +// ClearInternalPolicyCreators clears all "internal_policy_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearInternalPolicyCreators() *OrganizationUpdateOne { + _u.mutation.ClearInternalPolicyCreators() + return _u +} + +// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveInternalPolicyCreatorIDs(ids...) + return _u +} + +// RemoveInternalPolicyCreators removes "internal_policy_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveInternalPolicyCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowAssignmentTargetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentTargetsTable, - Columns: []string{organization.WorkflowAssignmentTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveInternalPolicyCreatorIDs(ids...) +} + +// ClearJobRunnerCreators clears all "job_runner_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearJobRunnerCreators() *OrganizationUpdateOne { + _u.mutation.ClearJobRunnerCreators() + return _u +} + +// RemoveJobRunnerCreatorIDs removes the "job_runner_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerCreatorIDs(ids...) + return _u +} + +// RemoveJobRunnerCreators removes "job_runner_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveJobRunnerCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowAssignmentTargetsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentTargetsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentTargetsTable, - Columns: []string{organization.WorkflowAssignmentTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveJobRunnerCreatorIDs(ids...) +} + +// ClearJobRunnerRegistrationTokenCreators clears all "job_runner_registration_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearJobRunnerRegistrationTokenCreators() *OrganizationUpdateOne { + _u.mutation.ClearJobRunnerRegistrationTokenCreators() + return _u +} + +// RemoveJobRunnerRegistrationTokenCreatorIDs removes the "job_runner_registration_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerRegistrationTokenCreatorIDs(ids...) + return _u +} + +// RemoveJobRunnerRegistrationTokenCreators removes "job_runner_registration_token_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowAssignmentTargetsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowAssignmentTargetsTable, - Columns: []string{organization.WorkflowAssignmentTargetsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowassignmenttarget.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowAssignmentTarget - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveJobRunnerRegistrationTokenCreatorIDs(ids...) +} + +// ClearJobRunnerTokenCreators clears all "job_runner_token_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearJobRunnerTokenCreators() *OrganizationUpdateOne { + _u.mutation.ClearJobRunnerTokenCreators() + return _u +} + +// RemoveJobRunnerTokenCreatorIDs removes the "job_runner_token_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerTokenCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerTokenCreatorIDs(ids...) + return _u +} + +// RemoveJobRunnerTokenCreators removes "job_runner_token_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveJobRunnerTokenCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowObjectRefsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowObjectRefsTable, - Columns: []string{organization.WorkflowObjectRefsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowObjectRef - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveJobRunnerTokenCreatorIDs(ids...) +} + +// ClearJobTemplateCreators clears all "job_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearJobTemplateCreators() *OrganizationUpdateOne { + _u.mutation.ClearJobTemplateCreators() + return _u +} + +// RemoveJobTemplateCreatorIDs removes the "job_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobTemplateCreatorIDs(ids...) + return _u +} + +// RemoveJobTemplateCreators removes "job_template_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveJobTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowObjectRefsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowObjectRefsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowObjectRefsTable, - Columns: []string{organization.WorkflowObjectRefsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowObjectRef - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveJobTemplateCreatorIDs(ids...) +} + +// ClearMappedControlCreators clears all "mapped_control_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearMappedControlCreators() *OrganizationUpdateOne { + _u.mutation.ClearMappedControlCreators() + return _u +} + +// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveMappedControlCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveMappedControlCreatorIDs(ids...) + return _u +} + +// RemoveMappedControlCreators removes "mapped_control_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveMappedControlCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowObjectRefsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowObjectRefsTable, - Columns: []string{organization.WorkflowObjectRefsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowobjectref.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowObjectRef - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveMappedControlCreatorIDs(ids...) +} + +// ClearNarrativeCreators clears all "narrative_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearNarrativeCreators() *OrganizationUpdateOne { + _u.mutation.ClearNarrativeCreators() + return _u +} + +// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNarrativeCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNarrativeCreatorIDs(ids...) + return _u +} + +// RemoveNarrativeCreators removes "narrative_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveNarrativeCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.WorkflowProposalsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowProposalsTable, - Columns: []string{organization.WorkflowProposalsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowProposal - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveNarrativeCreatorIDs(ids...) +} + +// ClearNoteCreators clears all "note_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearNoteCreators() *OrganizationUpdateOne { + _u.mutation.ClearNoteCreators() + return _u +} + +// RemoveNoteCreatorIDs removes the "note_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNoteCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNoteCreatorIDs(ids...) + return _u +} + +// RemoveNoteCreators removes "note_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveNoteCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedWorkflowProposalsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowProposalsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowProposalsTable, - Columns: []string{organization.WorkflowProposalsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowProposal - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveNoteCreatorIDs(ids...) +} + +// ClearNotificationTemplateCreators clears all "notification_template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearNotificationTemplateCreators() *OrganizationUpdateOne { + _u.mutation.ClearNotificationTemplateCreators() + return _u +} + +// RemoveNotificationTemplateCreatorIDs removes the "notification_template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNotificationTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNotificationTemplateCreatorIDs(ids...) + return _u +} + +// RemoveNotificationTemplateCreators removes "notification_template_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveNotificationTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.WorkflowProposalsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.WorkflowProposalsTable, - Columns: []string{organization.WorkflowProposalsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(workflowproposal.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.WorkflowProposal - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveNotificationTemplateCreatorIDs(ids...) +} + +// ClearOrganizationCreators clears all "organization_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearOrganizationCreators() *OrganizationUpdateOne { + _u.mutation.ClearOrganizationCreators() + return _u +} + +// RemoveOrganizationCreatorIDs removes the "organization_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveOrganizationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveOrganizationCreatorIDs(ids...) + return _u +} + +// RemoveOrganizationCreators removes "organization_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveOrganizationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DirectoryAccountsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryAccountsTable, - Columns: []string{organization.DirectoryAccountsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryAccount - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveOrganizationCreatorIDs(ids...) +} + +// ClearPlatformCreators clears all "platform_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearPlatformCreators() *OrganizationUpdateOne { + _u.mutation.ClearPlatformCreators() + return _u +} + +// RemovePlatformCreatorIDs removes the "platform_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemovePlatformCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemovePlatformCreatorIDs(ids...) + return _u +} + +// RemovePlatformCreators removes "platform_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemovePlatformCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDirectoryAccountsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryAccountsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryAccountsTable, - Columns: []string{organization.DirectoryAccountsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryAccount - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemovePlatformCreatorIDs(ids...) +} + +// ClearProcedureCreators clears all "procedure_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearProcedureCreators() *OrganizationUpdateOne { + _u.mutation.ClearProcedureCreators() + return _u +} + +// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveProcedureCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveProcedureCreatorIDs(ids...) + return _u +} + +// RemoveProcedureCreators removes "procedure_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveProcedureCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DirectoryAccountsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryAccountsTable, - Columns: []string{organization.DirectoryAccountsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directoryaccount.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryAccount - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveProcedureCreatorIDs(ids...) +} + +// ClearProgramCreators clears all "program_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearProgramCreators() *OrganizationUpdateOne { + _u.mutation.ClearProgramCreators() + return _u +} + +// RemoveProgramCreatorIDs removes the "program_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveProgramCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveProgramCreatorIDs(ids...) + return _u +} + +// RemoveProgramCreators removes "program_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveProgramCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DirectoryGroupsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryGroupsTable, - Columns: []string{organization.DirectoryGroupsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryGroup - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveProgramCreatorIDs(ids...) +} + +// ClearRemediationCreators clears all "remediation_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearRemediationCreators() *OrganizationUpdateOne { + _u.mutation.ClearRemediationCreators() + return _u +} + +// RemoveRemediationCreatorIDs removes the "remediation_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRemediationCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRemediationCreatorIDs(ids...) + return _u +} + +// RemoveRemediationCreators removes "remediation_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveRemediationCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDirectoryGroupsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryGroupsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryGroupsTable, - Columns: []string{organization.DirectoryGroupsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryGroup - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveRemediationCreatorIDs(ids...) +} + +// ClearReviewCreators clears all "review_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearReviewCreators() *OrganizationUpdateOne { + _u.mutation.ClearReviewCreators() + return _u +} + +// RemoveReviewCreatorIDs removes the "review_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveReviewCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveReviewCreatorIDs(ids...) + return _u +} + +// RemoveReviewCreators removes "review_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveReviewCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DirectoryGroupsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryGroupsTable, - Columns: []string{organization.DirectoryGroupsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorygroup.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryGroup - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveReviewCreatorIDs(ids...) +} + +// ClearRiskCreators clears all "risk_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearRiskCreators() *OrganizationUpdateOne { + _u.mutation.ClearRiskCreators() + return _u +} + +// RemoveRiskCreatorIDs removes the "risk_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRiskCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRiskCreatorIDs(ids...) + return _u +} + +// RemoveRiskCreators removes "risk_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveRiskCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DirectoryMembershipsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryMembershipsTable, - Columns: []string{organization.DirectoryMembershipsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryMembership - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveRiskCreatorIDs(ids...) +} + +// ClearScanCreators clears all "scan_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearScanCreators() *OrganizationUpdateOne { + _u.mutation.ClearScanCreators() + return _u +} + +// RemoveScanCreatorIDs removes the "scan_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScanCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScanCreatorIDs(ids...) + return _u +} + +// RemoveScanCreators removes "scan_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveScanCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDirectoryMembershipsIDs(); len(nodes) > 0 && !_u.mutation.DirectoryMembershipsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryMembershipsTable, - Columns: []string{organization.DirectoryMembershipsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryMembership - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveScanCreatorIDs(ids...) +} + +// ClearScheduledJobCreators clears all "scheduled_job_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearScheduledJobCreators() *OrganizationUpdateOne { + _u.mutation.ClearScheduledJobCreators() + return _u +} + +// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScheduledJobCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScheduledJobCreatorIDs(ids...) + return _u +} + +// RemoveScheduledJobCreators removes "scheduled_job_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveScheduledJobCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveScheduledJobCreatorIDs(ids...) +} + +// ClearScheduledJobRunCreators clears all "scheduled_job_run_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearScheduledJobRunCreators() *OrganizationUpdateOne { + _u.mutation.ClearScheduledJobRunCreators() + return _u +} + +// RemoveScheduledJobRunCreatorIDs removes the "scheduled_job_run_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScheduledJobRunCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScheduledJobRunCreatorIDs(ids...) + return _u +} + +// RemoveScheduledJobRunCreators removes "scheduled_job_run_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveScheduledJobRunCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DirectoryMembershipsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectoryMembershipsTable, - Columns: []string{organization.DirectoryMembershipsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorymembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectoryMembership - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveScheduledJobRunCreatorIDs(ids...) +} + +// ClearStandardCreators clears all "standard_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearStandardCreators() *OrganizationUpdateOne { + _u.mutation.ClearStandardCreators() + return _u +} + +// RemoveStandardCreatorIDs removes the "standard_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveStandardCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveStandardCreatorIDs(ids...) + return _u +} + +// RemoveStandardCreators removes "standard_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveStandardCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DirectorySyncRunsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectorySyncRunsTable, - Columns: []string{organization.DirectorySyncRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectorySyncRun - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveStandardCreatorIDs(ids...) +} + +// ClearSubcontrolCreators clears all "subcontrol_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearSubcontrolCreators() *OrganizationUpdateOne { + _u.mutation.ClearSubcontrolCreators() + return _u +} + +// RemoveSubcontrolCreatorIDs removes the "subcontrol_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubcontrolCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubcontrolCreatorIDs(ids...) + return _u +} + +// RemoveSubcontrolCreators removes "subcontrol_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveSubcontrolCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDirectorySyncRunsIDs(); len(nodes) > 0 && !_u.mutation.DirectorySyncRunsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectorySyncRunsTable, - Columns: []string{organization.DirectorySyncRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectorySyncRun - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveSubcontrolCreatorIDs(ids...) +} + +// ClearSubprocessorCreators clears all "subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearSubprocessorCreators() *OrganizationUpdateOne { + _u.mutation.ClearSubprocessorCreators() + return _u +} + +// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubprocessorCreatorIDs(ids...) + return _u +} + +// RemoveSubprocessorCreators removes "subprocessor_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DirectorySyncRunsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DirectorySyncRunsTable, - Columns: []string{organization.DirectorySyncRunsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(directorysyncrun.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.DirectorySyncRun - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveSubprocessorCreatorIDs(ids...) +} + +// ClearSubscriberCreators clears all "subscriber_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearSubscriberCreators() *OrganizationUpdateOne { + _u.mutation.ClearSubscriberCreators() + return _u +} + +// RemoveSubscriberCreatorIDs removes the "subscriber_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubscriberCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubscriberCreatorIDs(ids...) + return _u +} + +// RemoveSubscriberCreators removes "subscriber_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveSubscriberCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.DiscussionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DiscussionsTable, - Columns: []string{organization.DiscussionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Discussion - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveSubscriberCreatorIDs(ids...) +} + +// ClearSystemDetailCreators clears all "system_detail_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearSystemDetailCreators() *OrganizationUpdateOne { + _u.mutation.ClearSystemDetailCreators() + return _u +} + +// RemoveSystemDetailCreatorIDs removes the "system_detail_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSystemDetailCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSystemDetailCreatorIDs(ids...) + return _u +} + +// RemoveSystemDetailCreators removes "system_detail_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveSystemDetailCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedDiscussionsIDs(); len(nodes) > 0 && !_u.mutation.DiscussionsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DiscussionsTable, - Columns: []string{organization.DiscussionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Discussion - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveSystemDetailCreatorIDs(ids...) +} + +// ClearTagDefinitionCreators clears all "tag_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTagDefinitionCreators() *OrganizationUpdateOne { + _u.mutation.ClearTagDefinitionCreators() + return _u +} + +// RemoveTagDefinitionCreatorIDs removes the "tag_definition_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTagDefinitionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTagDefinitionCreatorIDs(ids...) + return _u +} + +// RemoveTagDefinitionCreators removes "tag_definition_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTagDefinitionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.DiscussionsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.DiscussionsTable, - Columns: []string{organization.DiscussionsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(discussion.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Discussion - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveTagDefinitionCreatorIDs(ids...) +} + +// ClearTaskCreators clears all "task_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTaskCreators() *OrganizationUpdateOne { + _u.mutation.ClearTaskCreators() + return _u +} + +// RemoveTaskCreatorIDs removes the "task_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTaskCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTaskCreatorIDs(ids...) + return _u +} + +// RemoveTaskCreators removes "task_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTaskCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.VendorScoringConfigsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorScoringConfigsTable, - Columns: []string{organization.VendorScoringConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorScoringConfig - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTaskCreatorIDs(ids...) +} + +// ClearTemplateCreators clears all "template_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTemplateCreators() *OrganizationUpdateOne { + _u.mutation.ClearTemplateCreators() + return _u +} + +// RemoveTemplateCreatorIDs removes the "template_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTemplateCreatorIDs(ids...) + return _u +} + +// RemoveTemplateCreators removes "template_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTemplateCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedVendorScoringConfigsIDs(); len(nodes) > 0 && !_u.mutation.VendorScoringConfigsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorScoringConfigsTable, - Columns: []string{organization.VendorScoringConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorScoringConfig - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTemplateCreatorIDs(ids...) +} + +// ClearTrustCenterCreators clears all "trust_center_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterCreators() + return _u +} + +// RemoveTrustCenterCreatorIDs removes the "trust_center_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterCreators removes "trust_center_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.VendorScoringConfigsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorScoringConfigsTable, - Columns: []string{organization.VendorScoringConfigsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorscoringconfig.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorScoringConfig - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveTrustCenterCreatorIDs(ids...) +} + +// ClearTrustCenterComplianceCreators clears all "trust_center_compliance_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterComplianceCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterComplianceCreators() + return _u +} + +// RemoveTrustCenterComplianceCreatorIDs removes the "trust_center_compliance_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterComplianceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterComplianceCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterComplianceCreators removes "trust_center_compliance_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterComplianceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.VendorRiskScoresCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorRiskScoresTable, - Columns: []string{organization.VendorRiskScoresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorRiskScore - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTrustCenterComplianceCreatorIDs(ids...) +} + +// ClearTrustCenterDocCreators clears all "trust_center_doc_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterDocCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterDocCreators() + return _u +} + +// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterDocCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterDocCreators removes "trust_center_doc_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterDocCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedVendorRiskScoresIDs(); len(nodes) > 0 && !_u.mutation.VendorRiskScoresCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorRiskScoresTable, - Columns: []string{organization.VendorRiskScoresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorRiskScore - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTrustCenterDocCreatorIDs(ids...) +} + +// ClearTrustCenterEntityCreators clears all "trust_center_entity_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterEntityCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterEntityCreators() + return _u +} + +// RemoveTrustCenterEntityCreatorIDs removes the "trust_center_entity_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterEntityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterEntityCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterEntityCreators removes "trust_center_entity_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterEntityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.VendorRiskScoresIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.VendorRiskScoresTable, - Columns: []string{organization.VendorRiskScoresColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(vendorriskscore.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.VendorRiskScore - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveTrustCenterEntityCreatorIDs(ids...) +} + +// ClearTrustCenterFaqCreators clears all "trust_center_faq_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterFaqCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterFaqCreators() + return _u +} + +// RemoveTrustCenterFaqCreatorIDs removes the "trust_center_faq_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterFaqCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterFaqCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterFaqCreators removes "trust_center_faq_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterFaqCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if _u.mutation.MembersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: organization.MembersTable, - Columns: []string{organization.MembersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgMembership - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTrustCenterFaqCreatorIDs(ids...) +} + +// ClearTrustCenterNdaRequestCreators clears all "trust_center_nda_request_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterNdaRequestCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterNdaRequestCreators() + return _u +} + +// RemoveTrustCenterNdaRequestCreatorIDs removes the "trust_center_nda_request_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterNdaRequestCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterNdaRequestCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterNdaRequestCreators removes "trust_center_nda_request_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterNdaRequestCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.RemovedMembersIDs(); len(nodes) > 0 && !_u.mutation.MembersCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: organization.MembersTable, - Columns: []string{organization.MembersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgMembership - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + return _u.RemoveTrustCenterNdaRequestCreatorIDs(ids...) +} + +// ClearTrustCenterSubprocessorCreators clears all "trust_center_subprocessor_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterSubprocessorCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterSubprocessorCreators() + return _u +} + +// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterSubprocessorCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterSubprocessorCreators removes "trust_center_subprocessor_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - if nodes := _u.mutation.MembersIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: true, - Table: organization.MembersTable, - Columns: []string{organization.MembersColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(orgmembership.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.OrgMembership - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) + return _u.RemoveTrustCenterSubprocessorCreatorIDs(ids...) +} + +// ClearTrustCenterWatermarkConfigCreators clears all "trust_center_watermark_config_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterWatermarkConfigCreators() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterWatermarkConfigCreators() + return _u +} + +// RemoveTrustCenterWatermarkConfigCreatorIDs removes the "trust_center_watermark_config_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterWatermarkConfigCreatorIDs(ids...) + return _u +} + +// RemoveTrustCenterWatermarkConfigCreators removes "trust_center_watermark_config_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - _spec.Node.Schema = _u.schemaConfig.Organization - ctx = internal.NewSchemaConfigContext(ctx, _u.schemaConfig) - _spec.AddModifiers(_u.modifiers...) - if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { - if _, ok := err.(*sqlgraph.NotFoundError); ok { - err = &NotFoundError{organization.Label} - } else if sqlgraph.IsConstraintError(err) { - err = &ConstraintError{msg: err.Error(), wrap: err} - } - return 0, err + return _u.RemoveTrustCenterWatermarkConfigCreatorIDs(ids...) +} + +// ClearUserCreators clears all "user_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearUserCreators() *OrganizationUpdateOne { + _u.mutation.ClearUserCreators() + return _u +} + +// RemoveUserCreatorIDs removes the "user_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveUserCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveUserCreatorIDs(ids...) + return _u +} + +// RemoveUserCreators removes "user_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveUserCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - _u.mutation.done = true - return _node, nil + return _u.RemoveUserCreatorIDs(ids...) } -// OrganizationUpdateOne is the builder for updating a single Organization entity. -type OrganizationUpdateOne struct { - config - fields []string - hooks []Hook - mutation *OrganizationMutation - modifiers []func(*sql.UpdateBuilder) +// ClearUserSettingCreators clears all "user_setting_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearUserSettingCreators() *OrganizationUpdateOne { + _u.mutation.ClearUserSettingCreators() + return _u } -// SetUpdatedAt sets the "updated_at" field. -func (_u *OrganizationUpdateOne) SetUpdatedAt(v time.Time) *OrganizationUpdateOne { - _u.mutation.SetUpdatedAt(v) +// RemoveUserSettingCreatorIDs removes the "user_setting_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveUserSettingCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveUserSettingCreatorIDs(ids...) return _u } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (_u *OrganizationUpdateOne) ClearUpdatedAt() *OrganizationUpdateOne { - _u.mutation.ClearUpdatedAt() +// RemoveUserSettingCreators removes "user_setting_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveUserSettingCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveUserSettingCreatorIDs(ids...) +} + +// ClearVendorRiskScoreCreators clears all "vendor_risk_score_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearVendorRiskScoreCreators() *OrganizationUpdateOne { + _u.mutation.ClearVendorRiskScoreCreators() return _u } -// SetUpdatedBy sets the "updated_by" field. -func (_u *OrganizationUpdateOne) SetUpdatedBy(v string) *OrganizationUpdateOne { - _u.mutation.SetUpdatedBy(v) +// RemoveVendorRiskScoreCreatorIDs removes the "vendor_risk_score_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveVendorRiskScoreCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveVendorRiskScoreCreatorIDs(ids...) return _u } -// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableUpdatedBy(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetUpdatedBy(*v) +// RemoveVendorRiskScoreCreators removes "vendor_risk_score_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveVendorRiskScoreCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveVendorRiskScoreCreatorIDs(ids...) } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (_u *OrganizationUpdateOne) ClearUpdatedBy() *OrganizationUpdateOne { - _u.mutation.ClearUpdatedBy() +// ClearVulnerabilityCreators clears all "vulnerability_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearVulnerabilityCreators() *OrganizationUpdateOne { + _u.mutation.ClearVulnerabilityCreators() return _u } -// SetDeletedAt sets the "deleted_at" field. -func (_u *OrganizationUpdateOne) SetDeletedAt(v time.Time) *OrganizationUpdateOne { - _u.mutation.SetDeletedAt(v) +// RemoveVulnerabilityCreatorIDs removes the "vulnerability_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveVulnerabilityCreatorIDs(ids...) return _u } -// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableDeletedAt(v *time.Time) *OrganizationUpdateOne { - if v != nil { - _u.SetDeletedAt(*v) +// RemoveVulnerabilityCreators removes "vulnerability_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveVulnerabilityCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveVulnerabilityCreatorIDs(ids...) } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (_u *OrganizationUpdateOne) ClearDeletedAt() *OrganizationUpdateOne { - _u.mutation.ClearDeletedAt() +// ClearWorkflowAssignmentCreators clears all "workflow_assignment_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowAssignmentCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowAssignmentCreators() return _u } -// SetDeletedBy sets the "deleted_by" field. -func (_u *OrganizationUpdateOne) SetDeletedBy(v string) *OrganizationUpdateOne { - _u.mutation.SetDeletedBy(v) +// RemoveWorkflowAssignmentCreatorIDs removes the "workflow_assignment_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowAssignmentCreatorIDs(ids...) return _u } -// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableDeletedBy(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetDeletedBy(*v) +// RemoveWorkflowAssignmentCreators removes "workflow_assignment_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } + return _u.RemoveWorkflowAssignmentCreatorIDs(ids...) +} + +// ClearWorkflowAssignmentTargetCreators clears all "workflow_assignment_target_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowAssignmentTargetCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowAssignmentTargetCreators() return _u } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (_u *OrganizationUpdateOne) ClearDeletedBy() *OrganizationUpdateOne { - _u.mutation.ClearDeletedBy() +// RemoveWorkflowAssignmentTargetCreatorIDs removes the "workflow_assignment_target_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargetCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowAssignmentTargetCreatorIDs(ids...) return _u } -// SetTags sets the "tags" field. -func (_u *OrganizationUpdateOne) SetTags(v []string) *OrganizationUpdateOne { - _u.mutation.SetTags(v) +// RemoveWorkflowAssignmentTargetCreators removes "workflow_assignment_target_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargetCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowAssignmentTargetCreatorIDs(ids...) +} + +// ClearWorkflowDefinitionCreators clears all "workflow_definition_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowDefinitionCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowDefinitionCreators() return _u } -// AppendTags appends value to the "tags" field. -func (_u *OrganizationUpdateOne) AppendTags(v []string) *OrganizationUpdateOne { - _u.mutation.AppendTags(v) +// RemoveWorkflowDefinitionCreatorIDs removes the "workflow_definition_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitionCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowDefinitionCreatorIDs(ids...) return _u } -// ClearTags clears the value of the "tags" field. -func (_u *OrganizationUpdateOne) ClearTags() *OrganizationUpdateOne { - _u.mutation.ClearTags() +// RemoveWorkflowDefinitionCreators removes "workflow_definition_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitionCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveWorkflowDefinitionCreatorIDs(ids...) +} + +// ClearWorkflowEventCreators clears all "workflow_event_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowEventCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowEventCreators() return _u } -// SetDisplayName sets the "display_name" field. -func (_u *OrganizationUpdateOne) SetDisplayName(v string) *OrganizationUpdateOne { - _u.mutation.SetDisplayName(v) +// RemoveWorkflowEventCreatorIDs removes the "workflow_event_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowEventCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowEventCreatorIDs(ids...) return _u } -// SetNillableDisplayName sets the "display_name" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableDisplayName(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetDisplayName(*v) +// RemoveWorkflowEventCreators removes "workflow_event_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowEventCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } + return _u.RemoveWorkflowEventCreatorIDs(ids...) +} + +// ClearWorkflowInstanceCreators clears all "workflow_instance_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowInstanceCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowInstanceCreators() return _u } -// SetDescription sets the "description" field. -func (_u *OrganizationUpdateOne) SetDescription(v string) *OrganizationUpdateOne { - _u.mutation.SetDescription(v) +// RemoveWorkflowInstanceCreatorIDs removes the "workflow_instance_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowInstanceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowInstanceCreatorIDs(ids...) return _u } -// SetNillableDescription sets the "description" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableDescription(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetDescription(*v) +// RemoveWorkflowInstanceCreators removes "workflow_instance_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowInstanceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveWorkflowInstanceCreatorIDs(ids...) } -// ClearDescription clears the value of the "description" field. -func (_u *OrganizationUpdateOne) ClearDescription() *OrganizationUpdateOne { - _u.mutation.ClearDescription() +// ClearWorkflowObjectRefCreators clears all "workflow_object_ref_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowObjectRefCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowObjectRefCreators() return _u } -// SetAvatarRemoteURL sets the "avatar_remote_url" field. -func (_u *OrganizationUpdateOne) SetAvatarRemoteURL(v string) *OrganizationUpdateOne { - _u.mutation.SetAvatarRemoteURL(v) +// RemoveWorkflowObjectRefCreatorIDs removes the "workflow_object_ref_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowObjectRefCreatorIDs(ids...) return _u } -// SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableAvatarRemoteURL(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetAvatarRemoteURL(*v) +// RemoveWorkflowObjectRefCreators removes "workflow_object_ref_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveWorkflowObjectRefCreatorIDs(ids...) } -// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. -func (_u *OrganizationUpdateOne) ClearAvatarRemoteURL() *OrganizationUpdateOne { - _u.mutation.ClearAvatarRemoteURL() +// ClearWorkflowProposalCreators clears all "workflow_proposal_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowProposalCreators() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowProposalCreators() return _u } -// SetAvatarLocalFileID sets the "avatar_local_file_id" field. -func (_u *OrganizationUpdateOne) SetAvatarLocalFileID(v string) *OrganizationUpdateOne { - _u.mutation.SetAvatarLocalFileID(v) +// RemoveWorkflowProposalCreatorIDs removes the "workflow_proposal_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowProposalCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowProposalCreatorIDs(ids...) return _u } -// SetNillableAvatarLocalFileID sets the "avatar_local_file_id" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableAvatarLocalFileID(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetAvatarLocalFileID(*v) +// RemoveWorkflowProposalCreators removes "workflow_proposal_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowProposalCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveWorkflowProposalCreatorIDs(ids...) } -// ClearAvatarLocalFileID clears the value of the "avatar_local_file_id" field. -func (_u *OrganizationUpdateOne) ClearAvatarLocalFileID() *OrganizationUpdateOne { - _u.mutation.ClearAvatarLocalFileID() +// ClearCampaignsManager clears all "campaigns_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearCampaignsManager() *OrganizationUpdateOne { + _u.mutation.ClearCampaignsManager() return _u } -// SetAvatarUpdatedAt sets the "avatar_updated_at" field. -func (_u *OrganizationUpdateOne) SetAvatarUpdatedAt(v time.Time) *OrganizationUpdateOne { - _u.mutation.SetAvatarUpdatedAt(v) +// RemoveCampaignsManagerIDs removes the "campaigns_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCampaignsManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCampaignsManagerIDs(ids...) return _u } -// SetNillableAvatarUpdatedAt sets the "avatar_updated_at" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableAvatarUpdatedAt(v *time.Time) *OrganizationUpdateOne { - if v != nil { - _u.SetAvatarUpdatedAt(*v) +// RemoveCampaignsManager removes "campaigns_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveCampaignsManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveCampaignsManagerIDs(ids...) } -// ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field. -func (_u *OrganizationUpdateOne) ClearAvatarUpdatedAt() *OrganizationUpdateOne { - _u.mutation.ClearAvatarUpdatedAt() +// ClearComplianceManager clears all "compliance_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearComplianceManager() *OrganizationUpdateOne { + _u.mutation.ClearComplianceManager() return _u } -// SetDedicatedDb sets the "dedicated_db" field. -func (_u *OrganizationUpdateOne) SetDedicatedDb(v bool) *OrganizationUpdateOne { - _u.mutation.SetDedicatedDb(v) +// RemoveComplianceManagerIDs removes the "compliance_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveComplianceManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveComplianceManagerIDs(ids...) return _u } -// SetNillableDedicatedDb sets the "dedicated_db" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableDedicatedDb(v *bool) *OrganizationUpdateOne { - if v != nil { - _u.SetDedicatedDb(*v) +// RemoveComplianceManager removes "compliance_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveComplianceManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } + return _u.RemoveComplianceManagerIDs(ids...) +} + +// ClearGroupManager clears all "group_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearGroupManager() *OrganizationUpdateOne { + _u.mutation.ClearGroupManager() return _u } -// SetStripeCustomerID sets the "stripe_customer_id" field. -func (_u *OrganizationUpdateOne) SetStripeCustomerID(v string) *OrganizationUpdateOne { - _u.mutation.SetStripeCustomerID(v) +// RemoveGroupManagerIDs removes the "group_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveGroupManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveGroupManagerIDs(ids...) return _u } -// SetNillableStripeCustomerID sets the "stripe_customer_id" field if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableStripeCustomerID(v *string) *OrganizationUpdateOne { - if v != nil { - _u.SetStripeCustomerID(*v) +// RemoveGroupManager removes "group_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveGroupManager(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID } - return _u + return _u.RemoveGroupManagerIDs(ids...) } -// ClearStripeCustomerID clears the value of the "stripe_customer_id" field. -func (_u *OrganizationUpdateOne) ClearStripeCustomerID() *OrganizationUpdateOne { - _u.mutation.ClearStripeCustomerID() +// ClearPoliciesManager clears all "policies_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearPoliciesManager() *OrganizationUpdateOne { + _u.mutation.ClearPoliciesManager() return _u } -// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddControlCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlCreatorIDs(ids...) +// RemovePoliciesManagerIDs removes the "policies_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemovePoliciesManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemovePoliciesManagerIDs(ids...) return _u } -// AddControlCreators adds the "control_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddControlCreators(v ...*Group) *OrganizationUpdateOne { +// RemovePoliciesManager removes "policies_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemovePoliciesManager(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlCreatorIDs(ids...) + return _u.RemovePoliciesManagerIDs(ids...) } -// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddControlImplementationCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlImplementationCreatorIDs(ids...) +// ClearRegistryManager clears all "registry_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearRegistryManager() *OrganizationUpdateOne { + _u.mutation.ClearRegistryManager() return _u } -// AddControlImplementationCreators adds the "control_implementation_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddControlImplementationCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveRegistryManagerIDs removes the "registry_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRegistryManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRegistryManagerIDs(ids...) + return _u +} + +// RemoveRegistryManager removes "registry_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveRegistryManager(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlImplementationCreatorIDs(ids...) + return _u.RemoveRegistryManagerIDs(ids...) } -// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlObjectiveCreatorIDs(ids...) +// ClearRiskManager clears all "risk_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearRiskManager() *OrganizationUpdateOne { + _u.mutation.ClearRiskManager() return _u } -// AddControlObjectiveCreators adds the "control_objective_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddControlObjectiveCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveRiskManagerIDs removes the "risk_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRiskManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRiskManagerIDs(ids...) + return _u +} + +// RemoveRiskManager removes "risk_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveRiskManager(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlObjectiveCreatorIDs(ids...) + return _u.RemoveRiskManagerIDs(ids...) } -// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddEvidenceCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEvidenceCreatorIDs(ids...) +// ClearTrustCenterManager clears all "trust_center_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterManager() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterManager() return _u } -// AddEvidenceCreators adds the "evidence_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddEvidenceCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveTrustCenterManagerIDs removes the "trust_center_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterManagerIDs(ids...) + return _u +} + +// RemoveTrustCenterManager removes "trust_center_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterManager(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEvidenceCreatorIDs(ids...) + return _u.RemoveTrustCenterManagerIDs(ids...) } -// AddAssetCreatorIDs adds the "asset_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddAssetCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddAssetCreatorIDs(ids...) +// ClearWorkflowsManager clears all "workflows_manager" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearWorkflowsManager() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowsManager() return _u } -// AddAssetCreators adds the "asset_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddAssetCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveWorkflowsManagerIDs removes the "workflows_manager" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowsManagerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowsManagerIDs(ids...) + return _u +} + +// RemoveWorkflowsManager removes "workflows_manager" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowsManager(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssetCreatorIDs(ids...) + return _u.RemoveWorkflowsManagerIDs(ids...) } -// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddFindingCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddFindingCreatorIDs(ids...) +// ClearChildren clears all "children" edges to the Organization entity. +func (_u *OrganizationUpdateOne) ClearChildren() *OrganizationUpdateOne { + _u.mutation.ClearChildren() return _u } -// AddFindingCreators adds the "finding_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddFindingCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveChildIDs removes the "children" edge to Organization entities by IDs. +func (_u *OrganizationUpdateOne) RemoveChildIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveChildIDs(ids...) + return _u +} + +// RemoveChildren removes "children" edges to Organization entities. +func (_u *OrganizationUpdateOne) RemoveChildren(v ...*Organization) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFindingCreatorIDs(ids...) + return _u.RemoveChildIDs(ids...) } -// AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddVulnerabilityCreatorIDs(ids...) +// ClearSetting clears the "setting" edge to the OrganizationSetting entity. +func (_u *OrganizationUpdateOne) ClearSetting() *OrganizationUpdateOne { + _u.mutation.ClearSetting() return _u } -// AddVulnerabilityCreators adds the "vulnerability_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddVulnerabilityCreators(v ...*Group) *OrganizationUpdateOne { +// ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity. +func (_u *OrganizationUpdateOne) ClearPersonalAccessTokens() *OrganizationUpdateOne { + _u.mutation.ClearPersonalAccessTokens() + return _u +} + +// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs. +func (_u *OrganizationUpdateOne) RemovePersonalAccessTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemovePersonalAccessTokenIDs(ids...) + return _u +} + +// RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities. +func (_u *OrganizationUpdateOne) RemovePersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVulnerabilityCreatorIDs(ids...) + return _u.RemovePersonalAccessTokenIDs(ids...) +} + +// ClearAPITokens clears all "api_tokens" edges to the APIToken entity. +func (_u *OrganizationUpdateOne) ClearAPITokens() *OrganizationUpdateOne { + _u.mutation.ClearAPITokens() + return _u } -// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddGroupCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddGroupCreatorIDs(ids...) +// RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAPITokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAPITokenIDs(ids...) return _u } -// AddGroupCreators adds the "group_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddGroupCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveAPITokens removes "api_tokens" edges to APIToken entities. +func (_u *OrganizationUpdateOne) RemoveAPITokens(v ...*APIToken) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddGroupCreatorIDs(ids...) + return _u.RemoveAPITokenIDs(ids...) } -// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddInternalPolicyCreatorIDs(ids...) +// ClearEmailTemplates clears all "email_templates" edges to the EmailTemplate entity. +func (_u *OrganizationUpdateOne) ClearEmailTemplates() *OrganizationUpdateOne { + _u.mutation.ClearEmailTemplates() return _u } -// AddInternalPolicyCreators adds the "internal_policy_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddInternalPolicyCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveEmailTemplateIDs removes the "email_templates" edge to EmailTemplate entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEmailTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEmailTemplateIDs(ids...) + return _u +} + +// RemoveEmailTemplates removes "email_templates" edges to EmailTemplate entities. +func (_u *OrganizationUpdateOne) RemoveEmailTemplates(v ...*EmailTemplate) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInternalPolicyCreatorIDs(ids...) + return _u.RemoveEmailTemplateIDs(ids...) } -// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddMappedControlCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddMappedControlCreatorIDs(ids...) +// ClearIntegrationWebhooks clears all "integration_webhooks" edges to the IntegrationWebhook entity. +func (_u *OrganizationUpdateOne) ClearIntegrationWebhooks() *OrganizationUpdateOne { + _u.mutation.ClearIntegrationWebhooks() return _u } -// AddMappedControlCreators adds the "mapped_control_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddMappedControlCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveIntegrationWebhookIDs removes the "integration_webhooks" edge to IntegrationWebhook entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIntegrationWebhookIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIntegrationWebhookIDs(ids...) + return _u +} + +// RemoveIntegrationWebhooks removes "integration_webhooks" edges to IntegrationWebhook entities. +func (_u *OrganizationUpdateOne) RemoveIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddMappedControlCreatorIDs(ids...) + return _u.RemoveIntegrationWebhookIDs(ids...) } -// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddNarrativeCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNarrativeCreatorIDs(ids...) +// ClearIntegrationRuns clears all "integration_runs" edges to the IntegrationRun entity. +func (_u *OrganizationUpdateOne) ClearIntegrationRuns() *OrganizationUpdateOne { + _u.mutation.ClearIntegrationRuns() return _u } -// AddNarrativeCreators adds the "narrative_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddNarrativeCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveIntegrationRunIDs removes the "integration_runs" edge to IntegrationRun entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIntegrationRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIntegrationRunIDs(ids...) + return _u +} + +// RemoveIntegrationRuns removes "integration_runs" edges to IntegrationRun entities. +func (_u *OrganizationUpdateOne) RemoveIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNarrativeCreatorIDs(ids...) + return _u.RemoveIntegrationRunIDs(ids...) } -// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddProcedureCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddProcedureCreatorIDs(ids...) +// ClearNotificationPreferences clears all "notification_preferences" edges to the NotificationPreference entity. +func (_u *OrganizationUpdateOne) ClearNotificationPreferences() *OrganizationUpdateOne { + _u.mutation.ClearNotificationPreferences() return _u } -// AddProcedureCreators adds the "procedure_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddProcedureCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveNotificationPreferenceIDs removes the "notification_preferences" edge to NotificationPreference entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNotificationPreferenceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNotificationPreferenceIDs(ids...) + return _u +} + +// RemoveNotificationPreferences removes "notification_preferences" edges to NotificationPreference entities. +func (_u *OrganizationUpdateOne) RemoveNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProcedureCreatorIDs(ids...) + return _u.RemoveNotificationPreferenceIDs(ids...) } -// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddProgramCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddProgramCreatorIDs(ids...) +// ClearNotificationTemplates clears all "notification_templates" edges to the NotificationTemplate entity. +func (_u *OrganizationUpdateOne) ClearNotificationTemplates() *OrganizationUpdateOne { + _u.mutation.ClearNotificationTemplates() return _u } -// AddProgramCreators adds the "program_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddProgramCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveNotificationTemplateIDs removes the "notification_templates" edge to NotificationTemplate entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNotificationTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNotificationTemplateIDs(ids...) + return _u +} + +// RemoveNotificationTemplates removes "notification_templates" edges to NotificationTemplate entities. +func (_u *OrganizationUpdateOne) RemoveNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProgramCreatorIDs(ids...) + return _u.RemoveNotificationTemplateIDs(ids...) } -// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddRiskCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddRiskCreatorIDs(ids...) +// ClearUsers clears all "users" edges to the User entity. +func (_u *OrganizationUpdateOne) ClearUsers() *OrganizationUpdateOne { + _u.mutation.ClearUsers() return _u } -// AddRiskCreators adds the "risk_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddRiskCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveUserIDs removes the "users" edge to User entities by IDs. +func (_u *OrganizationUpdateOne) RemoveUserIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveUserIDs(ids...) + return _u +} + +// RemoveUsers removes "users" edges to User entities. +func (_u *OrganizationUpdateOne) RemoveUsers(v ...*User) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRiskCreatorIDs(ids...) + return _u.RemoveUserIDs(ids...) } -// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddIdentityHolderCreatorIDs(ids...) +// ClearFiles clears all "files" edges to the File entity. +func (_u *OrganizationUpdateOne) ClearFiles() *OrganizationUpdateOne { + _u.mutation.ClearFiles() return _u } -// AddIdentityHolderCreators adds the "identity_holder_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddIdentityHolderCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveFileIDs removes the "files" edge to File entities by IDs. +func (_u *OrganizationUpdateOne) RemoveFileIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveFileIDs(ids...) + return _u +} + +// RemoveFiles removes "files" edges to File entities. +func (_u *OrganizationUpdateOne) RemoveFiles(v ...*File) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIdentityHolderCreatorIDs(ids...) + return _u.RemoveFileIDs(ids...) } -// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddScheduledJobCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddScheduledJobCreatorIDs(ids...) +// ClearEvents clears all "events" edges to the Event entity. +func (_u *OrganizationUpdateOne) ClearEvents() *OrganizationUpdateOne { + _u.mutation.ClearEvents() return _u } -// AddScheduledJobCreators adds the "scheduled_job_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddScheduledJobCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveEventIDs removes the "events" edge to Event entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEventIDs(ids...) + return _u +} + +// RemoveEvents removes "events" edges to Event entities. +func (_u *OrganizationUpdateOne) RemoveEvents(v ...*Event) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobCreatorIDs(ids...) + return _u.RemoveEventIDs(ids...) } -// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddStandardCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddStandardCreatorIDs(ids...) +// ClearSecrets clears all "secrets" edges to the Hush entity. +func (_u *OrganizationUpdateOne) ClearSecrets() *OrganizationUpdateOne { + _u.mutation.ClearSecrets() return _u } -// AddStandardCreators adds the "standard_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddStandardCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveSecretIDs removes the "secrets" edge to Hush entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSecretIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSecretIDs(ids...) + return _u +} + +// RemoveSecrets removes "secrets" edges to Hush entities. +func (_u *OrganizationUpdateOne) RemoveSecrets(v ...*Hush) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddStandardCreatorIDs(ids...) + return _u.RemoveSecretIDs(ids...) } -// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTemplateCreatorIDs(ids...) +// ClearAvatarFile clears the "avatar_file" edge to the File entity. +func (_u *OrganizationUpdateOne) ClearAvatarFile() *OrganizationUpdateOne { + _u.mutation.ClearAvatarFile() return _u } -// AddTemplateCreators adds the "template_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddTemplateCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddTemplateCreatorIDs(ids...) +// ClearGroups clears all "groups" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearGroups() *OrganizationUpdateOne { + _u.mutation.ClearGroups() + return _u } -// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSubprocessorCreatorIDs(ids...) +// RemoveGroupIDs removes the "groups" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveGroupIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveGroupIDs(ids...) return _u } -// AddSubprocessorCreators adds the "subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveGroups removes "groups" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveGroups(v ...*Group) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubprocessorCreatorIDs(ids...) + return _u.RemoveGroupIDs(ids...) } -// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTrustCenterDocCreatorIDs(ids...) +// ClearTemplates clears all "templates" edges to the Template entity. +func (_u *OrganizationUpdateOne) ClearTemplates() *OrganizationUpdateOne { + _u.mutation.ClearTemplates() return _u } -// AddTrustCenterDocCreators adds the "trust_center_doc_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddTrustCenterDocCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveTemplateIDs removes the "templates" edge to Template entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTemplateIDs(ids...) + return _u +} + +// RemoveTemplates removes "templates" edges to Template entities. +func (_u *OrganizationUpdateOne) RemoveTemplates(v ...*Template) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterDocCreatorIDs(ids...) + return _u.RemoveTemplateIDs(ids...) } -// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTrustCenterSubprocessorCreatorIDs(ids...) +// ClearIntegrations clears all "integrations" edges to the Integration entity. +func (_u *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne { + _u.mutation.ClearIntegrations() return _u } -// AddTrustCenterSubprocessorCreators adds the "trust_center_subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIntegrationIDs(ids...) + return _u +} + +// RemoveIntegrations removes "integrations" edges to Integration entities. +func (_u *OrganizationUpdateOne) RemoveIntegrations(v ...*Integration) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterSubprocessorCreatorIDs(ids...) + return _u.RemoveIntegrationIDs(ids...) } -// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddActionPlanCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddActionPlanCreatorIDs(ids...) +// ClearDocuments clears all "documents" edges to the DocumentData entity. +func (_u *OrganizationUpdateOne) ClearDocuments() *OrganizationUpdateOne { + _u.mutation.ClearDocuments() return _u } -// AddActionPlanCreators adds the "action_plan_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddActionPlanCreators(v ...*Group) *OrganizationUpdateOne { +// RemoveDocumentIDs removes the "documents" edge to DocumentData entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDocumentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDocumentIDs(ids...) + return _u +} + +// RemoveDocuments removes "documents" edges to DocumentData entities. +func (_u *OrganizationUpdateOne) RemoveDocuments(v ...*DocumentData) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddActionPlanCreatorIDs(ids...) + return _u.RemoveDocumentIDs(ids...) } -// AddChildIDs adds the "children" edge to the Organization entity by IDs. -func (_u *OrganizationUpdateOne) AddChildIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddChildIDs(ids...) +// ClearOrgSubscriptions clears all "org_subscriptions" edges to the OrgSubscription entity. +func (_u *OrganizationUpdateOne) ClearOrgSubscriptions() *OrganizationUpdateOne { + _u.mutation.ClearOrgSubscriptions() return _u } -// AddChildren adds the "children" edges to the Organization entity. -func (_u *OrganizationUpdateOne) AddChildren(v ...*Organization) *OrganizationUpdateOne { +// RemoveOrgSubscriptionIDs removes the "org_subscriptions" edge to OrgSubscription entities by IDs. +func (_u *OrganizationUpdateOne) RemoveOrgSubscriptionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveOrgSubscriptionIDs(ids...) + return _u +} + +// RemoveOrgSubscriptions removes "org_subscriptions" edges to OrgSubscription entities. +func (_u *OrganizationUpdateOne) RemoveOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddChildIDs(ids...) -} - -// SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID. -func (_u *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne { - _u.mutation.SetSettingID(id) - return _u + return _u.RemoveOrgSubscriptionIDs(ids...) } -// SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableSettingID(id *string) *OrganizationUpdateOne { - if id != nil { - _u = _u.SetSettingID(*id) - } +// ClearOrgProducts clears all "org_products" edges to the OrgProduct entity. +func (_u *OrganizationUpdateOne) ClearOrgProducts() *OrganizationUpdateOne { + _u.mutation.ClearOrgProducts() return _u } -// SetSetting sets the "setting" edge to the OrganizationSetting entity. -func (_u *OrganizationUpdateOne) SetSetting(v *OrganizationSetting) *OrganizationUpdateOne { - return _u.SetSettingID(v.ID) -} - -// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. -func (_u *OrganizationUpdateOne) AddPersonalAccessTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddPersonalAccessTokenIDs(ids...) +// RemoveOrgProductIDs removes the "org_products" edge to OrgProduct entities by IDs. +func (_u *OrganizationUpdateOne) RemoveOrgProductIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveOrgProductIDs(ids...) return _u } -// AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity. -func (_u *OrganizationUpdateOne) AddPersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdateOne { +// RemoveOrgProducts removes "org_products" edges to OrgProduct entities. +func (_u *OrganizationUpdateOne) RemoveOrgProducts(v ...*OrgProduct) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddPersonalAccessTokenIDs(ids...) + return _u.RemoveOrgProductIDs(ids...) } -// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by IDs. -func (_u *OrganizationUpdateOne) AddAPITokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddAPITokenIDs(ids...) +// ClearOrgPrices clears all "org_prices" edges to the OrgPrice entity. +func (_u *OrganizationUpdateOne) ClearOrgPrices() *OrganizationUpdateOne { + _u.mutation.ClearOrgPrices() return _u } -// AddAPITokens adds the "api_tokens" edges to the APIToken entity. -func (_u *OrganizationUpdateOne) AddAPITokens(v ...*APIToken) *OrganizationUpdateOne { +// RemoveOrgPriceIDs removes the "org_prices" edge to OrgPrice entities by IDs. +func (_u *OrganizationUpdateOne) RemoveOrgPriceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveOrgPriceIDs(ids...) + return _u +} + +// RemoveOrgPrices removes "org_prices" edges to OrgPrice entities. +func (_u *OrganizationUpdateOne) RemoveOrgPrices(v ...*OrgPrice) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAPITokenIDs(ids...) + return _u.RemoveOrgPriceIDs(ids...) } -// AddEmailTemplateIDs adds the "email_templates" edge to the EmailTemplate entity by IDs. -func (_u *OrganizationUpdateOne) AddEmailTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEmailTemplateIDs(ids...) +// ClearOrgModules clears all "org_modules" edges to the OrgModule entity. +func (_u *OrganizationUpdateOne) ClearOrgModules() *OrganizationUpdateOne { + _u.mutation.ClearOrgModules() return _u } -// AddEmailTemplates adds the "email_templates" edges to the EmailTemplate entity. -func (_u *OrganizationUpdateOne) AddEmailTemplates(v ...*EmailTemplate) *OrganizationUpdateOne { +// RemoveOrgModuleIDs removes the "org_modules" edge to OrgModule entities by IDs. +func (_u *OrganizationUpdateOne) RemoveOrgModuleIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveOrgModuleIDs(ids...) + return _u +} + +// RemoveOrgModules removes "org_modules" edges to OrgModule entities. +func (_u *OrganizationUpdateOne) RemoveOrgModules(v ...*OrgModule) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEmailTemplateIDs(ids...) + return _u.RemoveOrgModuleIDs(ids...) } -// AddIntegrationWebhookIDs adds the "integration_webhooks" edge to the IntegrationWebhook entity by IDs. -func (_u *OrganizationUpdateOne) AddIntegrationWebhookIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddIntegrationWebhookIDs(ids...) +// ClearInvites clears all "invites" edges to the Invite entity. +func (_u *OrganizationUpdateOne) ClearInvites() *OrganizationUpdateOne { + _u.mutation.ClearInvites() return _u } -// AddIntegrationWebhooks adds the "integration_webhooks" edges to the IntegrationWebhook entity. -func (_u *OrganizationUpdateOne) AddIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdateOne { +// RemoveInviteIDs removes the "invites" edge to Invite entities by IDs. +func (_u *OrganizationUpdateOne) RemoveInviteIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveInviteIDs(ids...) + return _u +} + +// RemoveInvites removes "invites" edges to Invite entities. +func (_u *OrganizationUpdateOne) RemoveInvites(v ...*Invite) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationWebhookIDs(ids...) + return _u.RemoveInviteIDs(ids...) } -// AddIntegrationRunIDs adds the "integration_runs" edge to the IntegrationRun entity by IDs. -func (_u *OrganizationUpdateOne) AddIntegrationRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddIntegrationRunIDs(ids...) +// ClearSubscribers clears all "subscribers" edges to the Subscriber entity. +func (_u *OrganizationUpdateOne) ClearSubscribers() *OrganizationUpdateOne { + _u.mutation.ClearSubscribers() return _u } -// AddIntegrationRuns adds the "integration_runs" edges to the IntegrationRun entity. -func (_u *OrganizationUpdateOne) AddIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdateOne { +// RemoveSubscriberIDs removes the "subscribers" edge to Subscriber entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubscriberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubscriberIDs(ids...) + return _u +} + +// RemoveSubscribers removes "subscribers" edges to Subscriber entities. +func (_u *OrganizationUpdateOne) RemoveSubscribers(v ...*Subscriber) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationRunIDs(ids...) + return _u.RemoveSubscriberIDs(ids...) } -// AddNotificationPreferenceIDs adds the "notification_preferences" edge to the NotificationPreference entity by IDs. -func (_u *OrganizationUpdateOne) AddNotificationPreferenceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNotificationPreferenceIDs(ids...) +// ClearEntities clears all "entities" edges to the Entity entity. +func (_u *OrganizationUpdateOne) ClearEntities() *OrganizationUpdateOne { + _u.mutation.ClearEntities() return _u } -// AddNotificationPreferences adds the "notification_preferences" edges to the NotificationPreference entity. -func (_u *OrganizationUpdateOne) AddNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdateOne { +// RemoveEntityIDs removes the "entities" edge to Entity entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEntityIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEntityIDs(ids...) + return _u +} + +// RemoveEntities removes "entities" edges to Entity entities. +func (_u *OrganizationUpdateOne) RemoveEntities(v ...*Entity) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationPreferenceIDs(ids...) + return _u.RemoveEntityIDs(ids...) } -// AddNotificationTemplateIDs adds the "notification_templates" edge to the NotificationTemplate entity by IDs. -func (_u *OrganizationUpdateOne) AddNotificationTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNotificationTemplateIDs(ids...) +// ClearPlatforms clears all "platforms" edges to the Platform entity. +func (_u *OrganizationUpdateOne) ClearPlatforms() *OrganizationUpdateOne { + _u.mutation.ClearPlatforms() return _u } -// AddNotificationTemplates adds the "notification_templates" edges to the NotificationTemplate entity. -func (_u *OrganizationUpdateOne) AddNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdateOne { +// RemovePlatformIDs removes the "platforms" edge to Platform entities by IDs. +func (_u *OrganizationUpdateOne) RemovePlatformIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemovePlatformIDs(ids...) + return _u +} + +// RemovePlatforms removes "platforms" edges to Platform entities. +func (_u *OrganizationUpdateOne) RemovePlatforms(v ...*Platform) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationTemplateIDs(ids...) + return _u.RemovePlatformIDs(ids...) } -// AddUserIDs adds the "users" edge to the User entity by IDs. -func (_u *OrganizationUpdateOne) AddUserIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddUserIDs(ids...) +// ClearIdentityHolders clears all "identity_holders" edges to the IdentityHolder entity. +func (_u *OrganizationUpdateOne) ClearIdentityHolders() *OrganizationUpdateOne { + _u.mutation.ClearIdentityHolders() return _u } -// AddUsers adds the "users" edges to the User entity. -func (_u *OrganizationUpdateOne) AddUsers(v ...*User) *OrganizationUpdateOne { +// RemoveIdentityHolderIDs removes the "identity_holders" edge to IdentityHolder entities by IDs. +func (_u *OrganizationUpdateOne) RemoveIdentityHolderIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveIdentityHolderIDs(ids...) + return _u +} + +// RemoveIdentityHolders removes "identity_holders" edges to IdentityHolder entities. +func (_u *OrganizationUpdateOne) RemoveIdentityHolders(v ...*IdentityHolder) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddUserIDs(ids...) + return _u.RemoveIdentityHolderIDs(ids...) } -// AddFileIDs adds the "files" edge to the File entity by IDs. -func (_u *OrganizationUpdateOne) AddFileIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddFileIDs(ids...) +// ClearCampaigns clears all "campaigns" edges to the Campaign entity. +func (_u *OrganizationUpdateOne) ClearCampaigns() *OrganizationUpdateOne { + _u.mutation.ClearCampaigns() return _u } -// AddFiles adds the "files" edges to the File entity. -func (_u *OrganizationUpdateOne) AddFiles(v ...*File) *OrganizationUpdateOne { +// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCampaignIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCampaignIDs(ids...) + return _u +} + +// RemoveCampaigns removes "campaigns" edges to Campaign entities. +func (_u *OrganizationUpdateOne) RemoveCampaigns(v ...*Campaign) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFileIDs(ids...) + return _u.RemoveCampaignIDs(ids...) } -// AddEventIDs adds the "events" edge to the Event entity by IDs. -func (_u *OrganizationUpdateOne) AddEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEventIDs(ids...) +// ClearCampaignTargets clears all "campaign_targets" edges to the CampaignTarget entity. +func (_u *OrganizationUpdateOne) ClearCampaignTargets() *OrganizationUpdateOne { + _u.mutation.ClearCampaignTargets() return _u } -// AddEvents adds the "events" edges to the Event entity. -func (_u *OrganizationUpdateOne) AddEvents(v ...*Event) *OrganizationUpdateOne { +// RemoveCampaignTargetIDs removes the "campaign_targets" edge to CampaignTarget entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCampaignTargetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCampaignTargetIDs(ids...) + return _u +} + +// RemoveCampaignTargets removes "campaign_targets" edges to CampaignTarget entities. +func (_u *OrganizationUpdateOne) RemoveCampaignTargets(v ...*CampaignTarget) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEventIDs(ids...) + return _u.RemoveCampaignTargetIDs(ids...) } -// AddSecretIDs adds the "secrets" edge to the Hush entity by IDs. -func (_u *OrganizationUpdateOne) AddSecretIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSecretIDs(ids...) +// ClearEntityTypes clears all "entity_types" edges to the EntityType entity. +func (_u *OrganizationUpdateOne) ClearEntityTypes() *OrganizationUpdateOne { + _u.mutation.ClearEntityTypes() return _u } -// AddSecrets adds the "secrets" edges to the Hush entity. -func (_u *OrganizationUpdateOne) AddSecrets(v ...*Hush) *OrganizationUpdateOne { +// RemoveEntityTypeIDs removes the "entity_types" edge to EntityType entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEntityTypeIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEntityTypeIDs(ids...) + return _u +} + +// RemoveEntityTypes removes "entity_types" edges to EntityType entities. +func (_u *OrganizationUpdateOne) RemoveEntityTypes(v ...*EntityType) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSecretIDs(ids...) -} - -// SetAvatarFileID sets the "avatar_file" edge to the File entity by ID. -func (_u *OrganizationUpdateOne) SetAvatarFileID(id string) *OrganizationUpdateOne { - _u.mutation.SetAvatarFileID(id) - return _u + return _u.RemoveEntityTypeIDs(ids...) } -// SetNillableAvatarFileID sets the "avatar_file" edge to the File entity by ID if the given value is not nil. -func (_u *OrganizationUpdateOne) SetNillableAvatarFileID(id *string) *OrganizationUpdateOne { - if id != nil { - _u = _u.SetAvatarFileID(*id) - } +// ClearContacts clears all "contacts" edges to the Contact entity. +func (_u *OrganizationUpdateOne) ClearContacts() *OrganizationUpdateOne { + _u.mutation.ClearContacts() return _u } -// SetAvatarFile sets the "avatar_file" edge to the File entity. -func (_u *OrganizationUpdateOne) SetAvatarFile(v *File) *OrganizationUpdateOne { - return _u.SetAvatarFileID(v.ID) -} - -// AddGroupIDs adds the "groups" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddGroupIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddGroupIDs(ids...) +// RemoveContactIDs removes the "contacts" edge to Contact entities by IDs. +func (_u *OrganizationUpdateOne) RemoveContactIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveContactIDs(ids...) return _u } -// AddGroups adds the "groups" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddGroups(v ...*Group) *OrganizationUpdateOne { +// RemoveContacts removes "contacts" edges to Contact entities. +func (_u *OrganizationUpdateOne) RemoveContacts(v ...*Contact) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddGroupIDs(ids...) + return _u.RemoveContactIDs(ids...) } -// AddTemplateIDs adds the "templates" edge to the Template entity by IDs. -func (_u *OrganizationUpdateOne) AddTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTemplateIDs(ids...) +// ClearNotes clears all "notes" edges to the Note entity. +func (_u *OrganizationUpdateOne) ClearNotes() *OrganizationUpdateOne { + _u.mutation.ClearNotes() return _u } -// AddTemplates adds the "templates" edges to the Template entity. -func (_u *OrganizationUpdateOne) AddTemplates(v ...*Template) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddTemplateIDs(ids...) -} - -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs. -func (_u *OrganizationUpdateOne) AddIntegrationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddIntegrationIDs(ids...) +// RemoveNoteIDs removes the "notes" edge to Note entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNoteIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNoteIDs(ids...) return _u } -// AddIntegrations adds the "integrations" edges to the Integration entity. -func (_u *OrganizationUpdateOne) AddIntegrations(v ...*Integration) *OrganizationUpdateOne { +// RemoveNotes removes "notes" edges to Note entities. +func (_u *OrganizationUpdateOne) RemoveNotes(v ...*Note) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIntegrationIDs(ids...) + return _u.RemoveNoteIDs(ids...) } -// AddDocumentIDs adds the "documents" edge to the DocumentData entity by IDs. -func (_u *OrganizationUpdateOne) AddDocumentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDocumentIDs(ids...) +// ClearTasks clears all "tasks" edges to the Task entity. +func (_u *OrganizationUpdateOne) ClearTasks() *OrganizationUpdateOne { + _u.mutation.ClearTasks() return _u } -// AddDocuments adds the "documents" edges to the DocumentData entity. -func (_u *OrganizationUpdateOne) AddDocuments(v ...*DocumentData) *OrganizationUpdateOne { +// RemoveTaskIDs removes the "tasks" edge to Task entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTaskIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTaskIDs(ids...) + return _u +} + +// RemoveTasks removes "tasks" edges to Task entities. +func (_u *OrganizationUpdateOne) RemoveTasks(v ...*Task) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDocumentIDs(ids...) + return _u.RemoveTaskIDs(ids...) } -// AddOrgSubscriptionIDs adds the "org_subscriptions" edge to the OrgSubscription entity by IDs. -func (_u *OrganizationUpdateOne) AddOrgSubscriptionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddOrgSubscriptionIDs(ids...) +// ClearPrograms clears all "programs" edges to the Program entity. +func (_u *OrganizationUpdateOne) ClearPrograms() *OrganizationUpdateOne { + _u.mutation.ClearPrograms() return _u } -// AddOrgSubscriptions adds the "org_subscriptions" edges to the OrgSubscription entity. -func (_u *OrganizationUpdateOne) AddOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdateOne { +// RemoveProgramIDs removes the "programs" edge to Program entities by IDs. +func (_u *OrganizationUpdateOne) RemoveProgramIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveProgramIDs(ids...) + return _u +} + +// RemovePrograms removes "programs" edges to Program entities. +func (_u *OrganizationUpdateOne) RemovePrograms(v ...*Program) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgSubscriptionIDs(ids...) + return _u.RemoveProgramIDs(ids...) } -// AddOrgProductIDs adds the "org_products" edge to the OrgProduct entity by IDs. -func (_u *OrganizationUpdateOne) AddOrgProductIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddOrgProductIDs(ids...) +// ClearSystemDetails clears all "system_details" edges to the SystemDetail entity. +func (_u *OrganizationUpdateOne) ClearSystemDetails() *OrganizationUpdateOne { + _u.mutation.ClearSystemDetails() return _u } -// AddOrgProducts adds the "org_products" edges to the OrgProduct entity. -func (_u *OrganizationUpdateOne) AddOrgProducts(v ...*OrgProduct) *OrganizationUpdateOne { +// RemoveSystemDetailIDs removes the "system_details" edge to SystemDetail entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSystemDetailIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSystemDetailIDs(ids...) + return _u +} + +// RemoveSystemDetails removes "system_details" edges to SystemDetail entities. +func (_u *OrganizationUpdateOne) RemoveSystemDetails(v ...*SystemDetail) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgProductIDs(ids...) + return _u.RemoveSystemDetailIDs(ids...) } -// AddOrgPriceIDs adds the "org_prices" edge to the OrgPrice entity by IDs. -func (_u *OrganizationUpdateOne) AddOrgPriceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddOrgPriceIDs(ids...) +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (_u *OrganizationUpdateOne) ClearProcedures() *OrganizationUpdateOne { + _u.mutation.ClearProcedures() return _u } -// AddOrgPrices adds the "org_prices" edges to the OrgPrice entity. -func (_u *OrganizationUpdateOne) AddOrgPrices(v ...*OrgPrice) *OrganizationUpdateOne { +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (_u *OrganizationUpdateOne) RemoveProcedureIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveProcedureIDs(ids...) + return _u +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (_u *OrganizationUpdateOne) RemoveProcedures(v ...*Procedure) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgPriceIDs(ids...) + return _u.RemoveProcedureIDs(ids...) } -// AddOrgModuleIDs adds the "org_modules" edge to the OrgModule entity by IDs. -func (_u *OrganizationUpdateOne) AddOrgModuleIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddOrgModuleIDs(ids...) +// ClearInternalPolicies clears all "internal_policies" edges to the InternalPolicy entity. +func (_u *OrganizationUpdateOne) ClearInternalPolicies() *OrganizationUpdateOne { + _u.mutation.ClearInternalPolicies() return _u } -// AddOrgModules adds the "org_modules" edges to the OrgModule entity. -func (_u *OrganizationUpdateOne) AddOrgModules(v ...*OrgModule) *OrganizationUpdateOne { +// RemoveInternalPolicyIDs removes the "internal_policies" edge to InternalPolicy entities by IDs. +func (_u *OrganizationUpdateOne) RemoveInternalPolicyIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveInternalPolicyIDs(ids...) + return _u +} + +// RemoveInternalPolicies removes "internal_policies" edges to InternalPolicy entities. +func (_u *OrganizationUpdateOne) RemoveInternalPolicies(v ...*InternalPolicy) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddOrgModuleIDs(ids...) + return _u.RemoveInternalPolicyIDs(ids...) } -// AddInviteIDs adds the "invites" edge to the Invite entity by IDs. -func (_u *OrganizationUpdateOne) AddInviteIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddInviteIDs(ids...) +// ClearRisks clears all "risks" edges to the Risk entity. +func (_u *OrganizationUpdateOne) ClearRisks() *OrganizationUpdateOne { + _u.mutation.ClearRisks() return _u } -// AddInvites adds the "invites" edges to the Invite entity. -func (_u *OrganizationUpdateOne) AddInvites(v ...*Invite) *OrganizationUpdateOne { +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRiskIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRiskIDs(ids...) + return _u +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (_u *OrganizationUpdateOne) RemoveRisks(v ...*Risk) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInviteIDs(ids...) + return _u.RemoveRiskIDs(ids...) } -// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by IDs. -func (_u *OrganizationUpdateOne) AddSubscriberIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSubscriberIDs(ids...) +// ClearControlObjectives clears all "control_objectives" edges to the ControlObjective entity. +func (_u *OrganizationUpdateOne) ClearControlObjectives() *OrganizationUpdateOne { + _u.mutation.ClearControlObjectives() return _u } -// AddSubscribers adds the "subscribers" edges to the Subscriber entity. -func (_u *OrganizationUpdateOne) AddSubscribers(v ...*Subscriber) *OrganizationUpdateOne { +// RemoveControlObjectiveIDs removes the "control_objectives" edge to ControlObjective entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlObjectiveIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlObjectiveIDs(ids...) + return _u +} + +// RemoveControlObjectives removes "control_objectives" edges to ControlObjective entities. +func (_u *OrganizationUpdateOne) RemoveControlObjectives(v ...*ControlObjective) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubscriberIDs(ids...) + return _u.RemoveControlObjectiveIDs(ids...) } -// AddEntityIDs adds the "entities" edge to the Entity entity by IDs. -func (_u *OrganizationUpdateOne) AddEntityIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEntityIDs(ids...) +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (_u *OrganizationUpdateOne) ClearNarratives() *OrganizationUpdateOne { + _u.mutation.ClearNarratives() return _u } -// AddEntities adds the "entities" edges to the Entity entity. -func (_u *OrganizationUpdateOne) AddEntities(v ...*Entity) *OrganizationUpdateOne { +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNarrativeIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNarrativeIDs(ids...) + return _u +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (_u *OrganizationUpdateOne) RemoveNarratives(v ...*Narrative) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEntityIDs(ids...) + return _u.RemoveNarrativeIDs(ids...) } -// AddPlatformIDs adds the "platforms" edge to the Platform entity by IDs. -func (_u *OrganizationUpdateOne) AddPlatformIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddPlatformIDs(ids...) +// ClearControls clears all "controls" edges to the Control entity. +func (_u *OrganizationUpdateOne) ClearControls() *OrganizationUpdateOne { + _u.mutation.ClearControls() return _u } -// AddPlatforms adds the "platforms" edges to the Platform entity. -func (_u *OrganizationUpdateOne) AddPlatforms(v ...*Platform) *OrganizationUpdateOne { +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlIDs(ids...) + return _u +} + +// RemoveControls removes "controls" edges to Control entities. +func (_u *OrganizationUpdateOne) RemoveControls(v ...*Control) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddPlatformIDs(ids...) + return _u.RemoveControlIDs(ids...) } -// AddIdentityHolderIDs adds the "identity_holders" edge to the IdentityHolder entity by IDs. -func (_u *OrganizationUpdateOne) AddIdentityHolderIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddIdentityHolderIDs(ids...) +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (_u *OrganizationUpdateOne) ClearSubcontrols() *OrganizationUpdateOne { + _u.mutation.ClearSubcontrols() return _u } -// AddIdentityHolders adds the "identity_holders" edges to the IdentityHolder entity. -func (_u *OrganizationUpdateOne) AddIdentityHolders(v ...*IdentityHolder) *OrganizationUpdateOne { +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubcontrolIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubcontrolIDs(ids...) + return _u +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (_u *OrganizationUpdateOne) RemoveSubcontrols(v ...*Subcontrol) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddIdentityHolderIDs(ids...) + return _u.RemoveSubcontrolIDs(ids...) } -// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. -func (_u *OrganizationUpdateOne) AddCampaignIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddCampaignIDs(ids...) +// ClearControlImplementations clears all "control_implementations" edges to the ControlImplementation entity. +func (_u *OrganizationUpdateOne) ClearControlImplementations() *OrganizationUpdateOne { + _u.mutation.ClearControlImplementations() return _u } -// AddCampaigns adds the "campaigns" edges to the Campaign entity. -func (_u *OrganizationUpdateOne) AddCampaigns(v ...*Campaign) *OrganizationUpdateOne { +// RemoveControlImplementationIDs removes the "control_implementations" edge to ControlImplementation entities by IDs. +func (_u *OrganizationUpdateOne) RemoveControlImplementationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveControlImplementationIDs(ids...) + return _u +} + +// RemoveControlImplementations removes "control_implementations" edges to ControlImplementation entities. +func (_u *OrganizationUpdateOne) RemoveControlImplementations(v ...*ControlImplementation) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCampaignIDs(ids...) + return _u.RemoveControlImplementationIDs(ids...) } -// AddCampaignTargetIDs adds the "campaign_targets" edge to the CampaignTarget entity by IDs. -func (_u *OrganizationUpdateOne) AddCampaignTargetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddCampaignTargetIDs(ids...) +// ClearMappedControls clears all "mapped_controls" edges to the MappedControl entity. +func (_u *OrganizationUpdateOne) ClearMappedControls() *OrganizationUpdateOne { + _u.mutation.ClearMappedControls() return _u } -// AddCampaignTargets adds the "campaign_targets" edges to the CampaignTarget entity. -func (_u *OrganizationUpdateOne) AddCampaignTargets(v ...*CampaignTarget) *OrganizationUpdateOne { +// RemoveMappedControlIDs removes the "mapped_controls" edge to MappedControl entities by IDs. +func (_u *OrganizationUpdateOne) RemoveMappedControlIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveMappedControlIDs(ids...) + return _u +} + +// RemoveMappedControls removes "mapped_controls" edges to MappedControl entities. +func (_u *OrganizationUpdateOne) RemoveMappedControls(v ...*MappedControl) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCampaignTargetIDs(ids...) + return _u.RemoveMappedControlIDs(ids...) } -// AddEntityTypeIDs adds the "entity_types" edge to the EntityType entity by IDs. -func (_u *OrganizationUpdateOne) AddEntityTypeIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEntityTypeIDs(ids...) +// ClearEvidence clears all "evidence" edges to the Evidence entity. +func (_u *OrganizationUpdateOne) ClearEvidence() *OrganizationUpdateOne { + _u.mutation.ClearEvidence() + return _u +} + +// RemoveEvidenceIDs removes the "evidence" edge to Evidence entities by IDs. +func (_u *OrganizationUpdateOne) RemoveEvidenceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveEvidenceIDs(ids...) return _u } -// AddEntityTypes adds the "entity_types" edges to the EntityType entity. -func (_u *OrganizationUpdateOne) AddEntityTypes(v ...*EntityType) *OrganizationUpdateOne { +// RemoveEvidence removes "evidence" edges to Evidence entities. +func (_u *OrganizationUpdateOne) RemoveEvidence(v ...*Evidence) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddEntityTypeIDs(ids...) + return _u.RemoveEvidenceIDs(ids...) } -// AddContactIDs adds the "contacts" edge to the Contact entity by IDs. -func (_u *OrganizationUpdateOne) AddContactIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddContactIDs(ids...) +// ClearStandards clears all "standards" edges to the Standard entity. +func (_u *OrganizationUpdateOne) ClearStandards() *OrganizationUpdateOne { + _u.mutation.ClearStandards() return _u } -// AddContacts adds the "contacts" edges to the Contact entity. -func (_u *OrganizationUpdateOne) AddContacts(v ...*Contact) *OrganizationUpdateOne { +// RemoveStandardIDs removes the "standards" edge to Standard entities by IDs. +func (_u *OrganizationUpdateOne) RemoveStandardIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveStandardIDs(ids...) + return _u +} + +// RemoveStandards removes "standards" edges to Standard entities. +func (_u *OrganizationUpdateOne) RemoveStandards(v ...*Standard) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddContactIDs(ids...) + return _u.RemoveStandardIDs(ids...) } -// AddNoteIDs adds the "notes" edge to the Note entity by IDs. -func (_u *OrganizationUpdateOne) AddNoteIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNoteIDs(ids...) +// ClearActionPlans clears all "action_plans" edges to the ActionPlan entity. +func (_u *OrganizationUpdateOne) ClearActionPlans() *OrganizationUpdateOne { + _u.mutation.ClearActionPlans() return _u } -// AddNotes adds the "notes" edges to the Note entity. -func (_u *OrganizationUpdateOne) AddNotes(v ...*Note) *OrganizationUpdateOne { +// RemoveActionPlanIDs removes the "action_plans" edge to ActionPlan entities by IDs. +func (_u *OrganizationUpdateOne) RemoveActionPlanIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveActionPlanIDs(ids...) + return _u +} + +// RemoveActionPlans removes "action_plans" edges to ActionPlan entities. +func (_u *OrganizationUpdateOne) RemoveActionPlans(v ...*ActionPlan) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNoteIDs(ids...) + return _u.RemoveActionPlanIDs(ids...) } -// AddTaskIDs adds the "tasks" edge to the Task entity by IDs. -func (_u *OrganizationUpdateOne) AddTaskIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTaskIDs(ids...) +// ClearCustomDomains clears all "custom_domains" edges to the CustomDomain entity. +func (_u *OrganizationUpdateOne) ClearCustomDomains() *OrganizationUpdateOne { + _u.mutation.ClearCustomDomains() return _u } -// AddTasks adds the "tasks" edges to the Task entity. -func (_u *OrganizationUpdateOne) AddTasks(v ...*Task) *OrganizationUpdateOne { +// RemoveCustomDomainIDs removes the "custom_domains" edge to CustomDomain entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCustomDomainIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCustomDomainIDs(ids...) + return _u +} + +// RemoveCustomDomains removes "custom_domains" edges to CustomDomain entities. +func (_u *OrganizationUpdateOne) RemoveCustomDomains(v ...*CustomDomain) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTaskIDs(ids...) + return _u.RemoveCustomDomainIDs(ids...) } -// AddProgramIDs adds the "programs" edge to the Program entity by IDs. -func (_u *OrganizationUpdateOne) AddProgramIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddProgramIDs(ids...) +// ClearJobRunners clears all "job_runners" edges to the JobRunner entity. +func (_u *OrganizationUpdateOne) ClearJobRunners() *OrganizationUpdateOne { + _u.mutation.ClearJobRunners() return _u } -// AddPrograms adds the "programs" edges to the Program entity. -func (_u *OrganizationUpdateOne) AddPrograms(v ...*Program) *OrganizationUpdateOne { +// RemoveJobRunnerIDs removes the "job_runners" edge to JobRunner entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerIDs(ids...) + return _u +} + +// RemoveJobRunners removes "job_runners" edges to JobRunner entities. +func (_u *OrganizationUpdateOne) RemoveJobRunners(v ...*JobRunner) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProgramIDs(ids...) + return _u.RemoveJobRunnerIDs(ids...) } -// AddSystemDetailIDs adds the "system_details" edge to the SystemDetail entity by IDs. -func (_u *OrganizationUpdateOne) AddSystemDetailIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSystemDetailIDs(ids...) +// ClearJobRunnerTokens clears all "job_runner_tokens" edges to the JobRunnerToken entity. +func (_u *OrganizationUpdateOne) ClearJobRunnerTokens() *OrganizationUpdateOne { + _u.mutation.ClearJobRunnerTokens() return _u } -// AddSystemDetails adds the "system_details" edges to the SystemDetail entity. -func (_u *OrganizationUpdateOne) AddSystemDetails(v ...*SystemDetail) *OrganizationUpdateOne { +// RemoveJobRunnerTokenIDs removes the "job_runner_tokens" edge to JobRunnerToken entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerTokenIDs(ids...) + return _u +} + +// RemoveJobRunnerTokens removes "job_runner_tokens" edges to JobRunnerToken entities. +func (_u *OrganizationUpdateOne) RemoveJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSystemDetailIDs(ids...) + return _u.RemoveJobRunnerTokenIDs(ids...) } -// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. -func (_u *OrganizationUpdateOne) AddProcedureIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddProcedureIDs(ids...) +// ClearJobRunnerRegistrationTokens clears all "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. +func (_u *OrganizationUpdateOne) ClearJobRunnerRegistrationTokens() *OrganizationUpdateOne { + _u.mutation.ClearJobRunnerRegistrationTokens() return _u } -// AddProcedures adds the "procedures" edges to the Procedure entity. -func (_u *OrganizationUpdateOne) AddProcedures(v ...*Procedure) *OrganizationUpdateOne { +// RemoveJobRunnerRegistrationTokenIDs removes the "job_runner_registration_tokens" edge to JobRunnerRegistrationToken entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobRunnerRegistrationTokenIDs(ids...) + return _u +} + +// RemoveJobRunnerRegistrationTokens removes "job_runner_registration_tokens" edges to JobRunnerRegistrationToken entities. +func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddProcedureIDs(ids...) + return _u.RemoveJobRunnerRegistrationTokenIDs(ids...) } -// AddInternalPolicyIDs adds the "internal_policies" edge to the InternalPolicy entity by IDs. -func (_u *OrganizationUpdateOne) AddInternalPolicyIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddInternalPolicyIDs(ids...) +// ClearDNSVerifications clears all "dns_verifications" edges to the DNSVerification entity. +func (_u *OrganizationUpdateOne) ClearDNSVerifications() *OrganizationUpdateOne { + _u.mutation.ClearDNSVerifications() return _u } -// AddInternalPolicies adds the "internal_policies" edges to the InternalPolicy entity. -func (_u *OrganizationUpdateOne) AddInternalPolicies(v ...*InternalPolicy) *OrganizationUpdateOne { +// RemoveDNSVerificationIDs removes the "dns_verifications" edge to DNSVerification entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDNSVerificationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDNSVerificationIDs(ids...) + return _u +} + +// RemoveDNSVerifications removes "dns_verifications" edges to DNSVerification entities. +func (_u *OrganizationUpdateOne) RemoveDNSVerifications(v ...*DNSVerification) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddInternalPolicyIDs(ids...) + return _u.RemoveDNSVerificationIDs(ids...) } -// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. -func (_u *OrganizationUpdateOne) AddRiskIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddRiskIDs(ids...) +// ClearJobTemplates clears all "job_templates" edges to the JobTemplate entity. +func (_u *OrganizationUpdateOne) ClearJobTemplates() *OrganizationUpdateOne { + _u.mutation.ClearJobTemplates() return _u } -// AddRisks adds the "risks" edges to the Risk entity. -func (_u *OrganizationUpdateOne) AddRisks(v ...*Risk) *OrganizationUpdateOne { +// RemoveJobTemplateIDs removes the "job_templates" edge to JobTemplate entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobTemplateIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobTemplateIDs(ids...) + return _u +} + +// RemoveJobTemplates removes "job_templates" edges to JobTemplate entities. +func (_u *OrganizationUpdateOne) RemoveJobTemplates(v ...*JobTemplate) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRiskIDs(ids...) + return _u.RemoveJobTemplateIDs(ids...) } -// AddControlObjectiveIDs adds the "control_objectives" edge to the ControlObjective entity by IDs. -func (_u *OrganizationUpdateOne) AddControlObjectiveIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlObjectiveIDs(ids...) +// ClearScheduledJobs clears all "scheduled_jobs" edges to the ScheduledJob entity. +func (_u *OrganizationUpdateOne) ClearScheduledJobs() *OrganizationUpdateOne { + _u.mutation.ClearScheduledJobs() return _u } -// AddControlObjectives adds the "control_objectives" edges to the ControlObjective entity. -func (_u *OrganizationUpdateOne) AddControlObjectives(v ...*ControlObjective) *OrganizationUpdateOne { +// RemoveScheduledJobIDs removes the "scheduled_jobs" edge to ScheduledJob entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScheduledJobIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScheduledJobIDs(ids...) + return _u +} + +// RemoveScheduledJobs removes "scheduled_jobs" edges to ScheduledJob entities. +func (_u *OrganizationUpdateOne) RemoveScheduledJobs(v ...*ScheduledJob) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlObjectiveIDs(ids...) + return _u.RemoveScheduledJobIDs(ids...) } -// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. -func (_u *OrganizationUpdateOne) AddNarrativeIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNarrativeIDs(ids...) +// ClearJobResults clears all "job_results" edges to the JobResult entity. +func (_u *OrganizationUpdateOne) ClearJobResults() *OrganizationUpdateOne { + _u.mutation.ClearJobResults() return _u } -// AddNarratives adds the "narratives" edges to the Narrative entity. -func (_u *OrganizationUpdateOne) AddNarratives(v ...*Narrative) *OrganizationUpdateOne { +// RemoveJobResultIDs removes the "job_results" edge to JobResult entities by IDs. +func (_u *OrganizationUpdateOne) RemoveJobResultIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveJobResultIDs(ids...) + return _u +} + +// RemoveJobResults removes "job_results" edges to JobResult entities. +func (_u *OrganizationUpdateOne) RemoveJobResults(v ...*JobResult) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNarrativeIDs(ids...) + return _u.RemoveJobResultIDs(ids...) } -// AddControlIDs adds the "controls" edge to the Control entity by IDs. -func (_u *OrganizationUpdateOne) AddControlIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlIDs(ids...) +// ClearScheduledJobRuns clears all "scheduled_job_runs" edges to the ScheduledJobRun entity. +func (_u *OrganizationUpdateOne) ClearScheduledJobRuns() *OrganizationUpdateOne { + _u.mutation.ClearScheduledJobRuns() return _u } -// AddControls adds the "controls" edges to the Control entity. -func (_u *OrganizationUpdateOne) AddControls(v ...*Control) *OrganizationUpdateOne { +// RemoveScheduledJobRunIDs removes the "scheduled_job_runs" edge to ScheduledJobRun entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScheduledJobRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScheduledJobRunIDs(ids...) + return _u +} + +// RemoveScheduledJobRuns removes "scheduled_job_runs" edges to ScheduledJobRun entities. +func (_u *OrganizationUpdateOne) RemoveScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlIDs(ids...) + return _u.RemoveScheduledJobRunIDs(ids...) } -// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. -func (_u *OrganizationUpdateOne) AddSubcontrolIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSubcontrolIDs(ids...) +// ClearTrustCenters clears all "trust_centers" edges to the TrustCenter entity. +func (_u *OrganizationUpdateOne) ClearTrustCenters() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenters() return _u } -// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. -func (_u *OrganizationUpdateOne) AddSubcontrols(v ...*Subcontrol) *OrganizationUpdateOne { +// RemoveTrustCenterIDs removes the "trust_centers" edge to TrustCenter entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterIDs(ids...) + return _u +} + +// RemoveTrustCenters removes "trust_centers" edges to TrustCenter entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenters(v ...*TrustCenter) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubcontrolIDs(ids...) + return _u.RemoveTrustCenterIDs(ids...) } -// AddControlImplementationIDs adds the "control_implementations" edge to the ControlImplementation entity by IDs. -func (_u *OrganizationUpdateOne) AddControlImplementationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddControlImplementationIDs(ids...) +// ClearAssets clears all "assets" edges to the Asset entity. +func (_u *OrganizationUpdateOne) ClearAssets() *OrganizationUpdateOne { + _u.mutation.ClearAssets() return _u } -// AddControlImplementations adds the "control_implementations" edges to the ControlImplementation entity. -func (_u *OrganizationUpdateOne) AddControlImplementations(v ...*ControlImplementation) *OrganizationUpdateOne { +// RemoveAssetIDs removes the "assets" edge to Asset entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAssetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAssetIDs(ids...) + return _u +} + +// RemoveAssets removes "assets" edges to Asset entities. +func (_u *OrganizationUpdateOne) RemoveAssets(v ...*Asset) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddControlImplementationIDs(ids...) + return _u.RemoveAssetIDs(ids...) } -// AddMappedControlIDs adds the "mapped_controls" edge to the MappedControl entity by IDs. -func (_u *OrganizationUpdateOne) AddMappedControlIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddMappedControlIDs(ids...) +// ClearScans clears all "scans" edges to the Scan entity. +func (_u *OrganizationUpdateOne) ClearScans() *OrganizationUpdateOne { + _u.mutation.ClearScans() + return _u +} + +// RemoveScanIDs removes the "scans" edge to Scan entities by IDs. +func (_u *OrganizationUpdateOne) RemoveScanIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveScanIDs(ids...) return _u } -// AddMappedControls adds the "mapped_controls" edges to the MappedControl entity. -func (_u *OrganizationUpdateOne) AddMappedControls(v ...*MappedControl) *OrganizationUpdateOne { +// RemoveScans removes "scans" edges to Scan entities. +func (_u *OrganizationUpdateOne) RemoveScans(v ...*Scan) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddMappedControlIDs(ids...) + return _u.RemoveScanIDs(ids...) } -// AddEvidenceIDs adds the "evidence" edge to the Evidence entity by IDs. -func (_u *OrganizationUpdateOne) AddEvidenceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEvidenceIDs(ids...) +// ClearSLADefinitions clears all "sla_definitions" edges to the SLADefinition entity. +func (_u *OrganizationUpdateOne) ClearSLADefinitions() *OrganizationUpdateOne { + _u.mutation.ClearSLADefinitions() return _u } -// AddEvidence adds the "evidence" edges to the Evidence entity. -func (_u *OrganizationUpdateOne) AddEvidence(v ...*Evidence) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddEvidenceIDs(ids...) -} - -// AddStandardIDs adds the "standards" edge to the Standard entity by IDs. -func (_u *OrganizationUpdateOne) AddStandardIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddStandardIDs(ids...) +// RemoveSLADefinitionIDs removes the "sla_definitions" edge to SLADefinition entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSLADefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSLADefinitionIDs(ids...) return _u } -// AddStandards adds the "standards" edges to the Standard entity. -func (_u *OrganizationUpdateOne) AddStandards(v ...*Standard) *OrganizationUpdateOne { +// RemoveSLADefinitions removes "sla_definitions" edges to SLADefinition entities. +func (_u *OrganizationUpdateOne) RemoveSLADefinitions(v ...*SLADefinition) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddStandardIDs(ids...) + return _u.RemoveSLADefinitionIDs(ids...) } -// AddActionPlanIDs adds the "action_plans" edge to the ActionPlan entity by IDs. -func (_u *OrganizationUpdateOne) AddActionPlanIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddActionPlanIDs(ids...) +// ClearSubprocessors clears all "subprocessors" edges to the Subprocessor entity. +func (_u *OrganizationUpdateOne) ClearSubprocessors() *OrganizationUpdateOne { + _u.mutation.ClearSubprocessors() return _u } -// AddActionPlans adds the "action_plans" edges to the ActionPlan entity. -func (_u *OrganizationUpdateOne) AddActionPlans(v ...*ActionPlan) *OrganizationUpdateOne { +// RemoveSubprocessorIDs removes the "subprocessors" edge to Subprocessor entities by IDs. +func (_u *OrganizationUpdateOne) RemoveSubprocessorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveSubprocessorIDs(ids...) + return _u +} + +// RemoveSubprocessors removes "subprocessors" edges to Subprocessor entities. +func (_u *OrganizationUpdateOne) RemoveSubprocessors(v ...*Subprocessor) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddActionPlanIDs(ids...) + return _u.RemoveSubprocessorIDs(ids...) } -// AddCustomDomainIDs adds the "custom_domains" edge to the CustomDomain entity by IDs. -func (_u *OrganizationUpdateOne) AddCustomDomainIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddCustomDomainIDs(ids...) +// ClearExports clears all "exports" edges to the Export entity. +func (_u *OrganizationUpdateOne) ClearExports() *OrganizationUpdateOne { + _u.mutation.ClearExports() return _u } -// AddCustomDomains adds the "custom_domains" edges to the CustomDomain entity. -func (_u *OrganizationUpdateOne) AddCustomDomains(v ...*CustomDomain) *OrganizationUpdateOne { +// RemoveExportIDs removes the "exports" edge to Export entities by IDs. +func (_u *OrganizationUpdateOne) RemoveExportIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveExportIDs(ids...) + return _u +} + +// RemoveExports removes "exports" edges to Export entities. +func (_u *OrganizationUpdateOne) RemoveExports(v ...*Export) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCustomDomainIDs(ids...) + return _u.RemoveExportIDs(ids...) } -// AddJobRunnerIDs adds the "job_runners" edge to the JobRunner entity by IDs. -func (_u *OrganizationUpdateOne) AddJobRunnerIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddJobRunnerIDs(ids...) +// ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. +func (_u *OrganizationUpdateOne) ClearTrustCenterWatermarkConfigs() *OrganizationUpdateOne { + _u.mutation.ClearTrustCenterWatermarkConfigs() return _u } -// AddJobRunners adds the "job_runners" edges to the JobRunner entity. -func (_u *OrganizationUpdateOne) AddJobRunners(v ...*JobRunner) *OrganizationUpdateOne { +// RemoveTrustCenterWatermarkConfigIDs removes the "trust_center_watermark_configs" edge to TrustCenterWatermarkConfig entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTrustCenterWatermarkConfigIDs(ids...) + return _u +} + +// RemoveTrustCenterWatermarkConfigs removes "trust_center_watermark_configs" edges to TrustCenterWatermarkConfig entities. +func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerIDs(ids...) + return _u.RemoveTrustCenterWatermarkConfigIDs(ids...) } -// AddJobRunnerTokenIDs adds the "job_runner_tokens" edge to the JobRunnerToken entity by IDs. -func (_u *OrganizationUpdateOne) AddJobRunnerTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddJobRunnerTokenIDs(ids...) +// ClearImpersonationEvents clears all "impersonation_events" edges to the ImpersonationEvent entity. +func (_u *OrganizationUpdateOne) ClearImpersonationEvents() *OrganizationUpdateOne { + _u.mutation.ClearImpersonationEvents() return _u } -// AddJobRunnerTokens adds the "job_runner_tokens" edges to the JobRunnerToken entity. -func (_u *OrganizationUpdateOne) AddJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdateOne { +// RemoveImpersonationEventIDs removes the "impersonation_events" edge to ImpersonationEvent entities by IDs. +func (_u *OrganizationUpdateOne) RemoveImpersonationEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveImpersonationEventIDs(ids...) + return _u +} + +// RemoveImpersonationEvents removes "impersonation_events" edges to ImpersonationEvent entities. +func (_u *OrganizationUpdateOne) RemoveImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerTokenIDs(ids...) + return _u.RemoveImpersonationEventIDs(ids...) } -// AddJobRunnerRegistrationTokenIDs adds the "job_runner_registration_tokens" edge to the JobRunnerRegistrationToken entity by IDs. -func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddJobRunnerRegistrationTokenIDs(ids...) +// ClearAssessments clears all "assessments" edges to the Assessment entity. +func (_u *OrganizationUpdateOne) ClearAssessments() *OrganizationUpdateOne { + _u.mutation.ClearAssessments() return _u } -// AddJobRunnerRegistrationTokens adds the "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. -func (_u *OrganizationUpdateOne) AddJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdateOne { +// RemoveAssessmentIDs removes the "assessments" edge to Assessment entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAssessmentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAssessmentIDs(ids...) + return _u +} + +// RemoveAssessments removes "assessments" edges to Assessment entities. +func (_u *OrganizationUpdateOne) RemoveAssessments(v ...*Assessment) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobRunnerRegistrationTokenIDs(ids...) + return _u.RemoveAssessmentIDs(ids...) } -// AddDNSVerificationIDs adds the "dns_verifications" edge to the DNSVerification entity by IDs. -func (_u *OrganizationUpdateOne) AddDNSVerificationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDNSVerificationIDs(ids...) +// ClearAssessmentResponses clears all "assessment_responses" edges to the AssessmentResponse entity. +func (_u *OrganizationUpdateOne) ClearAssessmentResponses() *OrganizationUpdateOne { + _u.mutation.ClearAssessmentResponses() return _u } -// AddDNSVerifications adds the "dns_verifications" edges to the DNSVerification entity. -func (_u *OrganizationUpdateOne) AddDNSVerifications(v ...*DNSVerification) *OrganizationUpdateOne { +// RemoveAssessmentResponseIDs removes the "assessment_responses" edge to AssessmentResponse entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAssessmentResponseIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAssessmentResponseIDs(ids...) + return _u +} + +// RemoveAssessmentResponses removes "assessment_responses" edges to AssessmentResponse entities. +func (_u *OrganizationUpdateOne) RemoveAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddDNSVerificationIDs(ids...) + return _u.RemoveAssessmentResponseIDs(ids...) } -// AddJobTemplateIDs adds the "job_templates" edge to the JobTemplate entity by IDs. -func (_u *OrganizationUpdateOne) AddJobTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddJobTemplateIDs(ids...) +// ClearCustomTypeEnums clears all "custom_type_enums" edges to the CustomTypeEnum entity. +func (_u *OrganizationUpdateOne) ClearCustomTypeEnums() *OrganizationUpdateOne { + _u.mutation.ClearCustomTypeEnums() return _u } -// AddJobTemplates adds the "job_templates" edges to the JobTemplate entity. -func (_u *OrganizationUpdateOne) AddJobTemplates(v ...*JobTemplate) *OrganizationUpdateOne { +// RemoveCustomTypeEnumIDs removes the "custom_type_enums" edge to CustomTypeEnum entities by IDs. +func (_u *OrganizationUpdateOne) RemoveCustomTypeEnumIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveCustomTypeEnumIDs(ids...) + return _u +} + +// RemoveCustomTypeEnums removes "custom_type_enums" edges to CustomTypeEnum entities. +func (_u *OrganizationUpdateOne) RemoveCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobTemplateIDs(ids...) + return _u.RemoveCustomTypeEnumIDs(ids...) } -// AddScheduledJobIDs adds the "scheduled_jobs" edge to the ScheduledJob entity by IDs. -func (_u *OrganizationUpdateOne) AddScheduledJobIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddScheduledJobIDs(ids...) +// ClearTagDefinitions clears all "tag_definitions" edges to the TagDefinition entity. +func (_u *OrganizationUpdateOne) ClearTagDefinitions() *OrganizationUpdateOne { + _u.mutation.ClearTagDefinitions() return _u } -// AddScheduledJobs adds the "scheduled_jobs" edges to the ScheduledJob entity. -func (_u *OrganizationUpdateOne) AddScheduledJobs(v ...*ScheduledJob) *OrganizationUpdateOne { +// RemoveTagDefinitionIDs removes the "tag_definitions" edge to TagDefinition entities by IDs. +func (_u *OrganizationUpdateOne) RemoveTagDefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveTagDefinitionIDs(ids...) + return _u +} + +// RemoveTagDefinitions removes "tag_definitions" edges to TagDefinition entities. +func (_u *OrganizationUpdateOne) RemoveTagDefinitions(v ...*TagDefinition) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobIDs(ids...) + return _u.RemoveTagDefinitionIDs(ids...) } -// AddJobResultIDs adds the "job_results" edge to the JobResult entity by IDs. -func (_u *OrganizationUpdateOne) AddJobResultIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddJobResultIDs(ids...) +// ClearRemediations clears all "remediations" edges to the Remediation entity. +func (_u *OrganizationUpdateOne) ClearRemediations() *OrganizationUpdateOne { + _u.mutation.ClearRemediations() return _u } -// AddJobResults adds the "job_results" edges to the JobResult entity. -func (_u *OrganizationUpdateOne) AddJobResults(v ...*JobResult) *OrganizationUpdateOne { +// RemoveRemediationIDs removes the "remediations" edge to Remediation entities by IDs. +func (_u *OrganizationUpdateOne) RemoveRemediationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveRemediationIDs(ids...) + return _u +} + +// RemoveRemediations removes "remediations" edges to Remediation entities. +func (_u *OrganizationUpdateOne) RemoveRemediations(v ...*Remediation) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddJobResultIDs(ids...) + return _u.RemoveRemediationIDs(ids...) } -// AddScheduledJobRunIDs adds the "scheduled_job_runs" edge to the ScheduledJobRun entity by IDs. -func (_u *OrganizationUpdateOne) AddScheduledJobRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddScheduledJobRunIDs(ids...) +// ClearFindings clears all "findings" edges to the Finding entity. +func (_u *OrganizationUpdateOne) ClearFindings() *OrganizationUpdateOne { + _u.mutation.ClearFindings() return _u } -// AddScheduledJobRuns adds the "scheduled_job_runs" edges to the ScheduledJobRun entity. -func (_u *OrganizationUpdateOne) AddScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdateOne { +// RemoveFindingIDs removes the "findings" edge to Finding entities by IDs. +func (_u *OrganizationUpdateOne) RemoveFindingIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveFindingIDs(ids...) + return _u +} + +// RemoveFindings removes "findings" edges to Finding entities. +func (_u *OrganizationUpdateOne) RemoveFindings(v ...*Finding) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScheduledJobRunIDs(ids...) + return _u.RemoveFindingIDs(ids...) } -// AddTrustCenterIDs adds the "trust_centers" edge to the TrustCenter entity by IDs. -func (_u *OrganizationUpdateOne) AddTrustCenterIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTrustCenterIDs(ids...) +// ClearReviews clears all "reviews" edges to the Review entity. +func (_u *OrganizationUpdateOne) ClearReviews() *OrganizationUpdateOne { + _u.mutation.ClearReviews() return _u } -// AddTrustCenters adds the "trust_centers" edges to the TrustCenter entity. -func (_u *OrganizationUpdateOne) AddTrustCenters(v ...*TrustCenter) *OrganizationUpdateOne { +// RemoveReviewIDs removes the "reviews" edge to Review entities by IDs. +func (_u *OrganizationUpdateOne) RemoveReviewIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveReviewIDs(ids...) + return _u +} + +// RemoveReviews removes "reviews" edges to Review entities. +func (_u *OrganizationUpdateOne) RemoveReviews(v ...*Review) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterIDs(ids...) + return _u.RemoveReviewIDs(ids...) } -// AddAssetIDs adds the "assets" edge to the Asset entity by IDs. -func (_u *OrganizationUpdateOne) AddAssetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddAssetIDs(ids...) +// ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity. +func (_u *OrganizationUpdateOne) ClearVulnerabilities() *OrganizationUpdateOne { + _u.mutation.ClearVulnerabilities() return _u } -// AddAssets adds the "assets" edges to the Asset entity. -func (_u *OrganizationUpdateOne) AddAssets(v ...*Asset) *OrganizationUpdateOne { +// RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs. +func (_u *OrganizationUpdateOne) RemoveVulnerabilityIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveVulnerabilityIDs(ids...) + return _u +} + +// RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities. +func (_u *OrganizationUpdateOne) RemoveVulnerabilities(v ...*Vulnerability) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssetIDs(ids...) + return _u.RemoveVulnerabilityIDs(ids...) +} + +// ClearNotifications clears all "notifications" edges to the Notification entity. +func (_u *OrganizationUpdateOne) ClearNotifications() *OrganizationUpdateOne { + _u.mutation.ClearNotifications() + return _u } -// AddScanIDs adds the "scans" edge to the Scan entity by IDs. -func (_u *OrganizationUpdateOne) AddScanIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddScanIDs(ids...) +// RemoveNotificationIDs removes the "notifications" edge to Notification entities by IDs. +func (_u *OrganizationUpdateOne) RemoveNotificationIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveNotificationIDs(ids...) return _u } -// AddScans adds the "scans" edges to the Scan entity. -func (_u *OrganizationUpdateOne) AddScans(v ...*Scan) *OrganizationUpdateOne { +// RemoveNotifications removes "notifications" edges to Notification entities. +func (_u *OrganizationUpdateOne) RemoveNotifications(v ...*Notification) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddScanIDs(ids...) + return _u.RemoveNotificationIDs(ids...) } -// AddSLADefinitionIDs adds the "sla_definitions" edge to the SLADefinition entity by IDs. -func (_u *OrganizationUpdateOne) AddSLADefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSLADefinitionIDs(ids...) +// ClearWorkflowDefinitions clears all "workflow_definitions" edges to the WorkflowDefinition entity. +func (_u *OrganizationUpdateOne) ClearWorkflowDefinitions() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowDefinitions() return _u } -// AddSLADefinitions adds the "sla_definitions" edges to the SLADefinition entity. -func (_u *OrganizationUpdateOne) AddSLADefinitions(v ...*SLADefinition) *OrganizationUpdateOne { +// RemoveWorkflowDefinitionIDs removes the "workflow_definitions" edge to WorkflowDefinition entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowDefinitionIDs(ids...) + return _u +} + +// RemoveWorkflowDefinitions removes "workflow_definitions" edges to WorkflowDefinition entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSLADefinitionIDs(ids...) + return _u.RemoveWorkflowDefinitionIDs(ids...) } -// AddSubprocessorIDs adds the "subprocessors" edge to the Subprocessor entity by IDs. -func (_u *OrganizationUpdateOne) AddSubprocessorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddSubprocessorIDs(ids...) +// ClearWorkflowInstances clears all "workflow_instances" edges to the WorkflowInstance entity. +func (_u *OrganizationUpdateOne) ClearWorkflowInstances() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowInstances() return _u } -// AddSubprocessors adds the "subprocessors" edges to the Subprocessor entity. -func (_u *OrganizationUpdateOne) AddSubprocessors(v ...*Subprocessor) *OrganizationUpdateOne { +// RemoveWorkflowInstanceIDs removes the "workflow_instances" edge to WorkflowInstance entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowInstanceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowInstanceIDs(ids...) + return _u +} + +// RemoveWorkflowInstances removes "workflow_instances" edges to WorkflowInstance entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddSubprocessorIDs(ids...) + return _u.RemoveWorkflowInstanceIDs(ids...) } -// AddExportIDs adds the "exports" edge to the Export entity by IDs. -func (_u *OrganizationUpdateOne) AddExportIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddExportIDs(ids...) +// ClearWorkflowEvents clears all "workflow_events" edges to the WorkflowEvent entity. +func (_u *OrganizationUpdateOne) ClearWorkflowEvents() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowEvents() return _u } -// AddExports adds the "exports" edges to the Export entity. -func (_u *OrganizationUpdateOne) AddExports(v ...*Export) *OrganizationUpdateOne { +// RemoveWorkflowEventIDs removes the "workflow_events" edge to WorkflowEvent entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowEventIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowEventIDs(ids...) + return _u +} + +// RemoveWorkflowEvents removes "workflow_events" edges to WorkflowEvent entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddExportIDs(ids...) + return _u.RemoveWorkflowEventIDs(ids...) } -// AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by IDs. -func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTrustCenterWatermarkConfigIDs(ids...) +// ClearWorkflowAssignments clears all "workflow_assignments" edges to the WorkflowAssignment entity. +func (_u *OrganizationUpdateOne) ClearWorkflowAssignments() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowAssignments() return _u } -// AddTrustCenterWatermarkConfigs adds the "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. -func (_u *OrganizationUpdateOne) AddTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdateOne { +// RemoveWorkflowAssignmentIDs removes the "workflow_assignments" edge to WorkflowAssignment entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowAssignmentIDs(ids...) + return _u +} + +// RemoveWorkflowAssignments removes "workflow_assignments" edges to WorkflowAssignment entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTrustCenterWatermarkConfigIDs(ids...) + return _u.RemoveWorkflowAssignmentIDs(ids...) } -// AddImpersonationEventIDs adds the "impersonation_events" edge to the ImpersonationEvent entity by IDs. -func (_u *OrganizationUpdateOne) AddImpersonationEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddImpersonationEventIDs(ids...) +// ClearWorkflowAssignmentTargets clears all "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. +func (_u *OrganizationUpdateOne) ClearWorkflowAssignmentTargets() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowAssignmentTargets() return _u } -// AddImpersonationEvents adds the "impersonation_events" edges to the ImpersonationEvent entity. -func (_u *OrganizationUpdateOne) AddImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdateOne { +// RemoveWorkflowAssignmentTargetIDs removes the "workflow_assignment_targets" edge to WorkflowAssignmentTarget entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowAssignmentTargetIDs(ids...) + return _u +} + +// RemoveWorkflowAssignmentTargets removes "workflow_assignment_targets" edges to WorkflowAssignmentTarget entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddImpersonationEventIDs(ids...) + return _u.RemoveWorkflowAssignmentTargetIDs(ids...) } -// AddAssessmentIDs adds the "assessments" edge to the Assessment entity by IDs. -func (_u *OrganizationUpdateOne) AddAssessmentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddAssessmentIDs(ids...) +// ClearWorkflowObjectRefs clears all "workflow_object_refs" edges to the WorkflowObjectRef entity. +func (_u *OrganizationUpdateOne) ClearWorkflowObjectRefs() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowObjectRefs() return _u } -// AddAssessments adds the "assessments" edges to the Assessment entity. -func (_u *OrganizationUpdateOne) AddAssessments(v ...*Assessment) *OrganizationUpdateOne { +// RemoveWorkflowObjectRefIDs removes the "workflow_object_refs" edge to WorkflowObjectRef entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowObjectRefIDs(ids...) + return _u +} + +// RemoveWorkflowObjectRefs removes "workflow_object_refs" edges to WorkflowObjectRef entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssessmentIDs(ids...) + return _u.RemoveWorkflowObjectRefIDs(ids...) } -// AddAssessmentResponseIDs adds the "assessment_responses" edge to the AssessmentResponse entity by IDs. -func (_u *OrganizationUpdateOne) AddAssessmentResponseIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddAssessmentResponseIDs(ids...) +// ClearWorkflowProposals clears all "workflow_proposals" edges to the WorkflowProposal entity. +func (_u *OrganizationUpdateOne) ClearWorkflowProposals() *OrganizationUpdateOne { + _u.mutation.ClearWorkflowProposals() return _u } -// AddAssessmentResponses adds the "assessment_responses" edges to the AssessmentResponse entity. -func (_u *OrganizationUpdateOne) AddAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdateOne { +// RemoveWorkflowProposalIDs removes the "workflow_proposals" edge to WorkflowProposal entities by IDs. +func (_u *OrganizationUpdateOne) RemoveWorkflowProposalIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveWorkflowProposalIDs(ids...) + return _u +} + +// RemoveWorkflowProposals removes "workflow_proposals" edges to WorkflowProposal entities. +func (_u *OrganizationUpdateOne) RemoveWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddAssessmentResponseIDs(ids...) + return _u.RemoveWorkflowProposalIDs(ids...) } -// AddCustomTypeEnumIDs adds the "custom_type_enums" edge to the CustomTypeEnum entity by IDs. -func (_u *OrganizationUpdateOne) AddCustomTypeEnumIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddCustomTypeEnumIDs(ids...) +// ClearDirectoryAccounts clears all "directory_accounts" edges to the DirectoryAccount entity. +func (_u *OrganizationUpdateOne) ClearDirectoryAccounts() *OrganizationUpdateOne { + _u.mutation.ClearDirectoryAccounts() return _u } -// AddCustomTypeEnums adds the "custom_type_enums" edges to the CustomTypeEnum entity. -func (_u *OrganizationUpdateOne) AddCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdateOne { +// RemoveDirectoryAccountIDs removes the "directory_accounts" edge to DirectoryAccount entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDirectoryAccountIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDirectoryAccountIDs(ids...) + return _u +} + +// RemoveDirectoryAccounts removes "directory_accounts" edges to DirectoryAccount entities. +func (_u *OrganizationUpdateOne) RemoveDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddCustomTypeEnumIDs(ids...) + return _u.RemoveDirectoryAccountIDs(ids...) } -// AddTagDefinitionIDs adds the "tag_definitions" edge to the TagDefinition entity by IDs. -func (_u *OrganizationUpdateOne) AddTagDefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddTagDefinitionIDs(ids...) +// ClearDirectoryGroups clears all "directory_groups" edges to the DirectoryGroup entity. +func (_u *OrganizationUpdateOne) ClearDirectoryGroups() *OrganizationUpdateOne { + _u.mutation.ClearDirectoryGroups() return _u } -// AddTagDefinitions adds the "tag_definitions" edges to the TagDefinition entity. -func (_u *OrganizationUpdateOne) AddTagDefinitions(v ...*TagDefinition) *OrganizationUpdateOne { +// RemoveDirectoryGroupIDs removes the "directory_groups" edge to DirectoryGroup entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDirectoryGroupIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDirectoryGroupIDs(ids...) + return _u +} + +// RemoveDirectoryGroups removes "directory_groups" edges to DirectoryGroup entities. +func (_u *OrganizationUpdateOne) RemoveDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddTagDefinitionIDs(ids...) + return _u.RemoveDirectoryGroupIDs(ids...) } -// AddRemediationIDs adds the "remediations" edge to the Remediation entity by IDs. -func (_u *OrganizationUpdateOne) AddRemediationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddRemediationIDs(ids...) +// ClearDirectoryMemberships clears all "directory_memberships" edges to the DirectoryMembership entity. +func (_u *OrganizationUpdateOne) ClearDirectoryMemberships() *OrganizationUpdateOne { + _u.mutation.ClearDirectoryMemberships() return _u } -// AddRemediations adds the "remediations" edges to the Remediation entity. -func (_u *OrganizationUpdateOne) AddRemediations(v ...*Remediation) *OrganizationUpdateOne { +// RemoveDirectoryMembershipIDs removes the "directory_memberships" edge to DirectoryMembership entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDirectoryMembershipIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDirectoryMembershipIDs(ids...) + return _u +} + +// RemoveDirectoryMemberships removes "directory_memberships" edges to DirectoryMembership entities. +func (_u *OrganizationUpdateOne) RemoveDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddRemediationIDs(ids...) + return _u.RemoveDirectoryMembershipIDs(ids...) } -// AddFindingIDs adds the "findings" edge to the Finding entity by IDs. -func (_u *OrganizationUpdateOne) AddFindingIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddFindingIDs(ids...) +// ClearDirectorySyncRuns clears all "directory_sync_runs" edges to the DirectorySyncRun entity. +func (_u *OrganizationUpdateOne) ClearDirectorySyncRuns() *OrganizationUpdateOne { + _u.mutation.ClearDirectorySyncRuns() return _u } -// AddFindings adds the "findings" edges to the Finding entity. -func (_u *OrganizationUpdateOne) AddFindings(v ...*Finding) *OrganizationUpdateOne { +// RemoveDirectorySyncRunIDs removes the "directory_sync_runs" edge to DirectorySyncRun entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDirectorySyncRunIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDirectorySyncRunIDs(ids...) + return _u +} + +// RemoveDirectorySyncRuns removes "directory_sync_runs" edges to DirectorySyncRun entities. +func (_u *OrganizationUpdateOne) RemoveDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddFindingIDs(ids...) + return _u.RemoveDirectorySyncRunIDs(ids...) } -// AddReviewIDs adds the "reviews" edge to the Review entity by IDs. -func (_u *OrganizationUpdateOne) AddReviewIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddReviewIDs(ids...) +// ClearDiscussions clears all "discussions" edges to the Discussion entity. +func (_u *OrganizationUpdateOne) ClearDiscussions() *OrganizationUpdateOne { + _u.mutation.ClearDiscussions() return _u } -// AddReviews adds the "reviews" edges to the Review entity. -func (_u *OrganizationUpdateOne) AddReviews(v ...*Review) *OrganizationUpdateOne { +// RemoveDiscussionIDs removes the "discussions" edge to Discussion entities by IDs. +func (_u *OrganizationUpdateOne) RemoveDiscussionIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveDiscussionIDs(ids...) + return _u +} + +// RemoveDiscussions removes "discussions" edges to Discussion entities. +func (_u *OrganizationUpdateOne) RemoveDiscussions(v ...*Discussion) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddReviewIDs(ids...) + return _u.RemoveDiscussionIDs(ids...) } -// AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs. -func (_u *OrganizationUpdateOne) AddVulnerabilityIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddVulnerabilityIDs(ids...) +// ClearVendorScoringConfigs clears all "vendor_scoring_configs" edges to the VendorScoringConfig entity. +func (_u *OrganizationUpdateOne) ClearVendorScoringConfigs() *OrganizationUpdateOne { + _u.mutation.ClearVendorScoringConfigs() return _u } -// AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity. -func (_u *OrganizationUpdateOne) AddVulnerabilities(v ...*Vulnerability) *OrganizationUpdateOne { +// RemoveVendorScoringConfigIDs removes the "vendor_scoring_configs" edge to VendorScoringConfig entities by IDs. +func (_u *OrganizationUpdateOne) RemoveVendorScoringConfigIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveVendorScoringConfigIDs(ids...) + return _u +} + +// RemoveVendorScoringConfigs removes "vendor_scoring_configs" edges to VendorScoringConfig entities. +func (_u *OrganizationUpdateOne) RemoveVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddVulnerabilityIDs(ids...) + return _u.RemoveVendorScoringConfigIDs(ids...) } -// AddNotificationIDs adds the "notifications" edge to the Notification entity by IDs. -func (_u *OrganizationUpdateOne) AddNotificationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddNotificationIDs(ids...) +// ClearVendorRiskScores clears all "vendor_risk_scores" edges to the VendorRiskScore entity. +func (_u *OrganizationUpdateOne) ClearVendorRiskScores() *OrganizationUpdateOne { + _u.mutation.ClearVendorRiskScores() + return _u +} + +// RemoveVendorRiskScoreIDs removes the "vendor_risk_scores" edge to VendorRiskScore entities by IDs. +func (_u *OrganizationUpdateOne) RemoveVendorRiskScoreIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveVendorRiskScoreIDs(ids...) return _u } -// AddNotifications adds the "notifications" edges to the Notification entity. -func (_u *OrganizationUpdateOne) AddNotifications(v ...*Notification) *OrganizationUpdateOne { +// RemoveVendorRiskScores removes "vendor_risk_scores" edges to VendorRiskScore entities. +func (_u *OrganizationUpdateOne) RemoveVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddNotificationIDs(ids...) + return _u.RemoveVendorRiskScoreIDs(ids...) } -// AddWorkflowDefinitionIDs adds the "workflow_definitions" edge to the WorkflowDefinition entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowDefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowDefinitionIDs(ids...) +// ClearMembers clears all "members" edges to the OrgMembership entity. +func (_u *OrganizationUpdateOne) ClearMembers() *OrganizationUpdateOne { + _u.mutation.ClearMembers() return _u } -// AddWorkflowDefinitions adds the "workflow_definitions" edges to the WorkflowDefinition entity. -func (_u *OrganizationUpdateOne) AddWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdateOne { +// RemoveMemberIDs removes the "members" edge to OrgMembership entities by IDs. +func (_u *OrganizationUpdateOne) RemoveMemberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveMemberIDs(ids...) + return _u +} + +// RemoveMembers removes "members" edges to OrgMembership entities. +func (_u *OrganizationUpdateOne) RemoveMembers(v ...*OrgMembership) *OrganizationUpdateOne { ids := make([]string, len(v)) for i := range v { ids[i] = v[i].ID } - return _u.AddWorkflowDefinitionIDs(ids...) + return _u.RemoveMemberIDs(ids...) } -// AddWorkflowInstanceIDs adds the "workflow_instances" edge to the WorkflowInstance entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowInstanceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowInstanceIDs(ids...) +// Where appends a list predicates to the OrganizationUpdate builder. +func (_u *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne { + _u.mutation.Where(ps...) return _u } -// AddWorkflowInstances adds the "workflow_instances" edges to the WorkflowInstance entity. -func (_u *OrganizationUpdateOne) AddWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddWorkflowInstanceIDs(ids...) +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (_u *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } -// AddWorkflowEventIDs adds the "workflow_events" edge to the WorkflowEvent entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowEventIDs(ids...) - return _u +// Save executes the query and returns the updated Organization entity. +func (_u *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error) { + if err := _u.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } -// AddWorkflowEvents adds the "workflow_events" edges to the WorkflowEvent entity. -func (_u *OrganizationUpdateOne) AddWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// SaveX is like Save, but panics if an error occurs. +func (_u *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization { + node, err := _u.Save(ctx) + if err != nil { + panic(err) } - return _u.AddWorkflowEventIDs(ids...) + return node } -// AddWorkflowAssignmentIDs adds the "workflow_assignments" edge to the WorkflowAssignment entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowAssignmentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowAssignmentIDs(ids...) - return _u +// Exec executes the query on the entity. +func (_u *OrganizationUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err } -// AddWorkflowAssignments adds the "workflow_assignments" edges to the WorkflowAssignment entity. -func (_u *OrganizationUpdateOne) AddWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// ExecX is like Exec, but panics if an error occurs. +func (_u *OrganizationUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) } - return _u.AddWorkflowAssignmentIDs(ids...) } -// AddWorkflowAssignmentTargetIDs adds the "workflow_assignment_targets" edge to the WorkflowAssignmentTarget entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowAssignmentTargetIDs(ids...) - return _u +// defaults sets the default values of the builder before save. +func (_u *OrganizationUpdateOne) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if organization.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized organization.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := organization.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil } -// AddWorkflowAssignmentTargets adds the "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. -func (_u *OrganizationUpdateOne) AddWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +// check runs all checks and user-defined validators on the builder. +func (_u *OrganizationUpdateOne) check() error { + if v, ok := _u.mutation.DisplayName(); ok { + if err := organization.DisplayNameValidator(v); err != nil { + return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} + } } - return _u.AddWorkflowAssignmentTargetIDs(ids...) + if v, ok := _u.mutation.AvatarRemoteURL(); ok { + if err := organization.AvatarRemoteURLValidator(v); err != nil { + return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} + } + } + return nil } -// AddWorkflowObjectRefIDs adds the "workflow_object_refs" edge to the WorkflowObjectRef entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowObjectRefIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowObjectRefIDs(ids...) +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *OrganizationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdateOne { + _u.modifiers = append(_u.modifiers, modifiers...) return _u } -// AddWorkflowObjectRefs adds the "workflow_object_refs" edges to the WorkflowObjectRef entity. -func (_u *OrganizationUpdateOne) AddWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID +func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organization, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) + id, ok := _u.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Organization.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := _u.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, organization.FieldID) + for _, f := range fields { + if !organization.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != organization.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := _u.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(organization.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(organization.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(organization.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(organization.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(organization.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(organization.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(organization.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, organization.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(organization.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.DisplayName(); ok { + _spec.SetField(organization.FieldDisplayName, field.TypeString, value) + } + if value, ok := _u.mutation.Description(); ok { + _spec.SetField(organization.FieldDescription, field.TypeString, value) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(organization.FieldDescription, field.TypeString) + } + if _u.mutation.PersonalOrgCleared() { + _spec.ClearField(organization.FieldPersonalOrg, field.TypeBool) + } + if value, ok := _u.mutation.AvatarRemoteURL(); ok { + _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) + } + if _u.mutation.AvatarRemoteURLCleared() { + _spec.ClearField(organization.FieldAvatarRemoteURL, field.TypeString) + } + if value, ok := _u.mutation.AvatarUpdatedAt(); ok { + _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) + } + if _u.mutation.AvatarUpdatedAtCleared() { + _spec.ClearField(organization.FieldAvatarUpdatedAt, field.TypeTime) + } + if value, ok := _u.mutation.DedicatedDb(); ok { + _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) + } + if value, ok := _u.mutation.StripeCustomerID(); ok { + _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) + } + if _u.mutation.StripeCustomerIDCleared() { + _spec.ClearField(organization.FieldStripeCustomerID, field.TypeString) + } + if _u.mutation.ActionPlanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedActionPlanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ActionPlanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddWorkflowObjectRefIDs(ids...) -} - -// AddWorkflowProposalIDs adds the "workflow_proposals" edge to the WorkflowProposal entity by IDs. -func (_u *OrganizationUpdateOne) AddWorkflowProposalIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddWorkflowProposalIDs(ids...) - return _u -} - -// AddWorkflowProposals adds the "workflow_proposals" edges to the WorkflowProposal entity. -func (_u *OrganizationUpdateOne) AddWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ActionPlanCreatorsTable, + Columns: []string{organization.ActionPlanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.AddWorkflowProposalIDs(ids...) -} - -// AddDirectoryAccountIDs adds the "directory_accounts" edge to the DirectoryAccount entity by IDs. -func (_u *OrganizationUpdateOne) AddDirectoryAccountIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDirectoryAccountIDs(ids...) - return _u -} - -// AddDirectoryAccounts adds the "directory_accounts" edges to the DirectoryAccount entity. -func (_u *OrganizationUpdateOne) AddDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.APITokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddDirectoryAccountIDs(ids...) -} - -// AddDirectoryGroupIDs adds the "directory_groups" edge to the DirectoryGroup entity by IDs. -func (_u *OrganizationUpdateOne) AddDirectoryGroupIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDirectoryGroupIDs(ids...) - return _u -} - -// AddDirectoryGroups adds the "directory_groups" edges to the DirectoryGroup entity. -func (_u *OrganizationUpdateOne) AddDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedAPITokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.APITokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddDirectoryGroupIDs(ids...) -} - -// AddDirectoryMembershipIDs adds the "directory_memberships" edge to the DirectoryMembership entity by IDs. -func (_u *OrganizationUpdateOne) AddDirectoryMembershipIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDirectoryMembershipIDs(ids...) - return _u -} - -// AddDirectoryMemberships adds the "directory_memberships" edges to the DirectoryMembership entity. -func (_u *OrganizationUpdateOne) AddDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.APITokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.APITokenCreatorsTable, + Columns: []string{organization.APITokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.AddDirectoryMembershipIDs(ids...) -} - -// AddDirectorySyncRunIDs adds the "directory_sync_runs" edge to the DirectorySyncRun entity by IDs. -func (_u *OrganizationUpdateOne) AddDirectorySyncRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDirectorySyncRunIDs(ids...) - return _u -} - -// AddDirectorySyncRuns adds the "directory_sync_runs" edges to the DirectorySyncRun entity. -func (_u *OrganizationUpdateOne) AddDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.AssessmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddDirectorySyncRunIDs(ids...) -} - -// AddDiscussionIDs adds the "discussions" edge to the Discussion entity by IDs. -func (_u *OrganizationUpdateOne) AddDiscussionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddDiscussionIDs(ids...) - return _u -} - -// AddDiscussions adds the "discussions" edges to the Discussion entity. -func (_u *OrganizationUpdateOne) AddDiscussions(v ...*Discussion) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedAssessmentCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssessmentCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddDiscussionIDs(ids...) -} - -// AddVendorScoringConfigIDs adds the "vendor_scoring_configs" edge to the VendorScoringConfig entity by IDs. -func (_u *OrganizationUpdateOne) AddVendorScoringConfigIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddVendorScoringConfigIDs(ids...) - return _u -} - -// AddVendorScoringConfigs adds the "vendor_scoring_configs" edges to the VendorScoringConfig entity. -func (_u *OrganizationUpdateOne) AddVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.AssessmentCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssessmentCreatorsTable, + Columns: []string{organization.AssessmentCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.AddVendorScoringConfigIDs(ids...) -} - -// AddVendorRiskScoreIDs adds the "vendor_risk_scores" edge to the VendorRiskScore entity by IDs. -func (_u *OrganizationUpdateOne) AddVendorRiskScoreIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddVendorRiskScoreIDs(ids...) - return _u -} - -// AddVendorRiskScores adds the "vendor_risk_scores" edges to the VendorRiskScore entity. -func (_u *OrganizationUpdateOne) AddVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.AssetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.AddVendorRiskScoreIDs(ids...) -} - -// AddMemberIDs adds the "members" edge to the OrgMembership entity by IDs. -func (_u *OrganizationUpdateOne) AddMemberIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddMemberIDs(ids...) - return _u -} - -// AddMembers adds the "members" edges to the OrgMembership entity. -func (_u *OrganizationUpdateOne) AddMembers(v ...*OrgMembership) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedAssetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AssetCreatorsTable, + Columns: []string{organization.AssetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.AddMemberIDs(ids...) -} - -// Mutation returns the OrganizationMutation object of the builder. -func (_u *OrganizationUpdateOne) Mutation() *OrganizationMutation { - return _u.mutation -} - -// ClearControlCreators clears all "control_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearControlCreators() *OrganizationUpdateOne { - _u.mutation.ClearControlCreators() - return _u -} - -// RemoveControlCreatorIDs removes the "control_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlCreatorIDs(ids...) - return _u -} - -// RemoveControlCreators removes "control_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveControlCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.CampaignCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveControlCreatorIDs(ids...) -} - -// ClearControlImplementationCreators clears all "control_implementation_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearControlImplementationCreators() *OrganizationUpdateOne { - _u.mutation.ClearControlImplementationCreators() - return _u -} - -// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlImplementationCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlImplementationCreatorIDs(ids...) - return _u -} - -// RemoveControlImplementationCreators removes "control_implementation_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveControlImplementationCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedCampaignCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CampaignCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveControlImplementationCreatorIDs(ids...) -} - -// ClearControlObjectiveCreators clears all "control_objective_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearControlObjectiveCreators() *OrganizationUpdateOne { - _u.mutation.ClearControlObjectiveCreators() - return _u -} - -// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlObjectiveCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlObjectiveCreatorIDs(ids...) - return _u -} - -// RemoveControlObjectiveCreators removes "control_objective_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveControlObjectiveCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.CampaignCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignCreatorsTable, + Columns: []string{organization.CampaignCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveControlObjectiveCreatorIDs(ids...) -} - -// ClearEvidenceCreators clears all "evidence_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearEvidenceCreators() *OrganizationUpdateOne { - _u.mutation.ClearEvidenceCreators() - return _u -} - -// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEvidenceCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEvidenceCreatorIDs(ids...) - return _u -} - -// RemoveEvidenceCreators removes "evidence_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveEvidenceCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.CampaignTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveEvidenceCreatorIDs(ids...) -} - -// ClearAssetCreators clears all "asset_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearAssetCreators() *OrganizationUpdateOne { - _u.mutation.ClearAssetCreators() - return _u -} - -// RemoveAssetCreatorIDs removes the "asset_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveAssetCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveAssetCreatorIDs(ids...) - return _u -} - -// RemoveAssetCreators removes "asset_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveAssetCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedCampaignTargetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CampaignTargetCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveAssetCreatorIDs(ids...) -} - -// ClearFindingCreators clears all "finding_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearFindingCreators() *OrganizationUpdateOne { - _u.mutation.ClearFindingCreators() - return _u -} - -// RemoveFindingCreatorIDs removes the "finding_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveFindingCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveFindingCreatorIDs(ids...) - return _u -} - -// RemoveFindingCreators removes "finding_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveFindingCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.CampaignTargetCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CampaignTargetCreatorsTable, + Columns: []string{organization.CampaignTargetCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveFindingCreatorIDs(ids...) -} - -// ClearVulnerabilityCreators clears all "vulnerability_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearVulnerabilityCreators() *OrganizationUpdateOne { - _u.mutation.ClearVulnerabilityCreators() - return _u -} - -// RemoveVulnerabilityCreatorIDs removes the "vulnerability_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveVulnerabilityCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveVulnerabilityCreatorIDs(ids...) - return _u -} - -// RemoveVulnerabilityCreators removes "vulnerability_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveVulnerabilityCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.CheckResultCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveVulnerabilityCreatorIDs(ids...) -} - -// ClearGroupCreators clears all "group_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearGroupCreators() *OrganizationUpdateOne { - _u.mutation.ClearGroupCreators() - return _u -} - -// RemoveGroupCreatorIDs removes the "group_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveGroupCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveGroupCreatorIDs(ids...) - return _u -} - -// RemoveGroupCreators removes "group_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveGroupCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedCheckResultCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CheckResultCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveGroupCreatorIDs(ids...) -} - -// ClearInternalPolicyCreators clears all "internal_policy_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearInternalPolicyCreators() *OrganizationUpdateOne { - _u.mutation.ClearInternalPolicyCreators() - return _u -} - -// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveInternalPolicyCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveInternalPolicyCreatorIDs(ids...) - return _u -} - -// RemoveInternalPolicyCreators removes "internal_policy_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveInternalPolicyCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.CheckResultCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CheckResultCreatorsTable, + Columns: []string{organization.CheckResultCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveInternalPolicyCreatorIDs(ids...) -} - -// ClearMappedControlCreators clears all "mapped_control_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearMappedControlCreators() *OrganizationUpdateOne { - _u.mutation.ClearMappedControlCreators() - return _u -} - -// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveMappedControlCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveMappedControlCreatorIDs(ids...) - return _u -} - -// RemoveMappedControlCreators removes "mapped_control_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveMappedControlCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ContactCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveMappedControlCreatorIDs(ids...) -} - -// ClearNarrativeCreators clears all "narrative_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearNarrativeCreators() *OrganizationUpdateOne { - _u.mutation.ClearNarrativeCreators() - return _u -} - -// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNarrativeCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNarrativeCreatorIDs(ids...) - return _u -} - -// RemoveNarrativeCreators removes "narrative_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveNarrativeCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedContactCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ContactCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveNarrativeCreatorIDs(ids...) -} - -// ClearProcedureCreators clears all "procedure_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearProcedureCreators() *OrganizationUpdateOne { - _u.mutation.ClearProcedureCreators() - return _u -} - -// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveProcedureCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveProcedureCreatorIDs(ids...) - return _u -} - -// RemoveProcedureCreators removes "procedure_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveProcedureCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ContactCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ContactCreatorsTable, + Columns: []string{organization.ContactCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveProcedureCreatorIDs(ids...) -} - -// ClearProgramCreators clears all "program_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearProgramCreators() *OrganizationUpdateOne { - _u.mutation.ClearProgramCreators() - return _u -} - -// RemoveProgramCreatorIDs removes the "program_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveProgramCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveProgramCreatorIDs(ids...) - return _u -} - -// RemoveProgramCreators removes "program_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveProgramCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveProgramCreatorIDs(ids...) -} - -// ClearRiskCreators clears all "risk_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearRiskCreators() *OrganizationUpdateOne { - _u.mutation.ClearRiskCreators() - return _u -} - -// RemoveRiskCreatorIDs removes the "risk_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveRiskCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveRiskCreatorIDs(ids...) - return _u -} - -// RemoveRiskCreators removes "risk_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveRiskCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveRiskCreatorIDs(ids...) -} - -// ClearIdentityHolderCreators clears all "identity_holder_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearIdentityHolderCreators() *OrganizationUpdateOne { - _u.mutation.ClearIdentityHolderCreators() - return _u -} - -// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveIdentityHolderCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveIdentityHolderCreatorIDs(ids...) - return _u -} - -// RemoveIdentityHolderCreators removes "identity_holder_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveIdentityHolderCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlCreatorsTable, + Columns: []string{organization.ControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ControlImplementationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveIdentityHolderCreatorIDs(ids...) -} - -// ClearScheduledJobCreators clears all "scheduled_job_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearScheduledJobCreators() *OrganizationUpdateOne { - _u.mutation.ClearScheduledJobCreators() - return _u -} - -// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveScheduledJobCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveScheduledJobCreatorIDs(ids...) - return _u -} - -// RemoveScheduledJobCreators removes "scheduled_job_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveScheduledJobCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedControlImplementationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveScheduledJobCreatorIDs(ids...) -} - -// ClearStandardCreators clears all "standard_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearStandardCreators() *OrganizationUpdateOne { - _u.mutation.ClearStandardCreators() - return _u -} - -// RemoveStandardCreatorIDs removes the "standard_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveStandardCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveStandardCreatorIDs(ids...) - return _u -} - -// RemoveStandardCreators removes "standard_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveStandardCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlImplementationCreatorsTable, + Columns: []string{organization.ControlImplementationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveStandardCreatorIDs(ids...) -} - -// ClearTemplateCreators clears all "template_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearTemplateCreators() *OrganizationUpdateOne { - _u.mutation.ClearTemplateCreators() - return _u -} - -// RemoveTemplateCreatorIDs removes the "template_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTemplateCreatorIDs(ids...) - return _u -} - -// RemoveTemplateCreators removes "template_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveTemplateCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ControlObjectiveCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveTemplateCreatorIDs(ids...) -} - -// ClearSubprocessorCreators clears all "subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearSubprocessorCreators() *OrganizationUpdateOne { - _u.mutation.ClearSubprocessorCreators() - return _u -} - -// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSubprocessorCreatorIDs(ids...) - return _u -} - -// RemoveSubprocessorCreators removes "subprocessor_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedControlObjectiveCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectiveCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSubprocessorCreatorIDs(ids...) -} - -// ClearTrustCenterDocCreators clears all "trust_center_doc_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearTrustCenterDocCreators() *OrganizationUpdateOne { - _u.mutation.ClearTrustCenterDocCreators() - return _u -} - -// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTrustCenterDocCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTrustCenterDocCreatorIDs(ids...) - return _u -} - -// RemoveTrustCenterDocCreators removes "trust_center_doc_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveTrustCenterDocCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ControlObjectiveCreatorsTable, + Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveTrustCenterDocCreatorIDs(ids...) -} - -// ClearTrustCenterSubprocessorCreators clears all "trust_center_subprocessor_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearTrustCenterSubprocessorCreators() *OrganizationUpdateOne { - _u.mutation.ClearTrustCenterSubprocessorCreators() - return _u -} - -// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTrustCenterSubprocessorCreatorIDs(ids...) - return _u -} - -// RemoveTrustCenterSubprocessorCreators removes "trust_center_subprocessor_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveTrustCenterSubprocessorCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.CustomTypeEnumCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveTrustCenterSubprocessorCreatorIDs(ids...) -} - -// ClearActionPlanCreators clears all "action_plan_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearActionPlanCreators() *OrganizationUpdateOne { - _u.mutation.ClearActionPlanCreators() - return _u -} - -// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveActionPlanCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveActionPlanCreatorIDs(ids...) - return _u -} - -// RemoveActionPlanCreators removes "action_plan_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveActionPlanCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedCustomTypeEnumCreatorsIDs(); len(nodes) > 0 && !_u.mutation.CustomTypeEnumCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.CustomTypeEnumCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.CustomTypeEnumCreatorsTable, + Columns: []string{organization.CustomTypeEnumCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveActionPlanCreatorIDs(ids...) -} - -// ClearChildren clears all "children" edges to the Organization entity. -func (_u *OrganizationUpdateOne) ClearChildren() *OrganizationUpdateOne { - _u.mutation.ClearChildren() - return _u -} - -// RemoveChildIDs removes the "children" edge to Organization entities by IDs. -func (_u *OrganizationUpdateOne) RemoveChildIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveChildIDs(ids...) - return _u -} - -// RemoveChildren removes "children" edges to Organization entities. -func (_u *OrganizationUpdateOne) RemoveChildren(v ...*Organization) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.DiscussionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveChildIDs(ids...) -} - -// ClearSetting clears the "setting" edge to the OrganizationSetting entity. -func (_u *OrganizationUpdateOne) ClearSetting() *OrganizationUpdateOne { - _u.mutation.ClearSetting() - return _u -} - -// ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity. -func (_u *OrganizationUpdateOne) ClearPersonalAccessTokens() *OrganizationUpdateOne { - _u.mutation.ClearPersonalAccessTokens() - return _u -} - -// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs. -func (_u *OrganizationUpdateOne) RemovePersonalAccessTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemovePersonalAccessTokenIDs(ids...) - return _u -} - -// RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities. -func (_u *OrganizationUpdateOne) RemovePersonalAccessTokens(v ...*PersonalAccessToken) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedDiscussionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.DiscussionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemovePersonalAccessTokenIDs(ids...) -} - -// ClearAPITokens clears all "api_tokens" edges to the APIToken entity. -func (_u *OrganizationUpdateOne) ClearAPITokens() *OrganizationUpdateOne { - _u.mutation.ClearAPITokens() - return _u -} - -// RemoveAPITokenIDs removes the "api_tokens" edge to APIToken entities by IDs. -func (_u *OrganizationUpdateOne) RemoveAPITokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveAPITokenIDs(ids...) - return _u -} - -// RemoveAPITokens removes "api_tokens" edges to APIToken entities. -func (_u *OrganizationUpdateOne) RemoveAPITokens(v ...*APIToken) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.DiscussionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.DiscussionCreatorsTable, + Columns: []string{organization.DiscussionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveAPITokenIDs(ids...) -} - -// ClearEmailTemplates clears all "email_templates" edges to the EmailTemplate entity. -func (_u *OrganizationUpdateOne) ClearEmailTemplates() *OrganizationUpdateOne { - _u.mutation.ClearEmailTemplates() - return _u -} - -// RemoveEmailTemplateIDs removes the "email_templates" edge to EmailTemplate entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEmailTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEmailTemplateIDs(ids...) - return _u -} - -// RemoveEmailTemplates removes "email_templates" edges to EmailTemplate entities. -func (_u *OrganizationUpdateOne) RemoveEmailTemplates(v ...*EmailTemplate) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.EmailBrandingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveEmailTemplateIDs(ids...) -} - -// ClearIntegrationWebhooks clears all "integration_webhooks" edges to the IntegrationWebhook entity. -func (_u *OrganizationUpdateOne) ClearIntegrationWebhooks() *OrganizationUpdateOne { - _u.mutation.ClearIntegrationWebhooks() - return _u -} - -// RemoveIntegrationWebhookIDs removes the "integration_webhooks" edge to IntegrationWebhook entities by IDs. -func (_u *OrganizationUpdateOne) RemoveIntegrationWebhookIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveIntegrationWebhookIDs(ids...) - return _u -} - -// RemoveIntegrationWebhooks removes "integration_webhooks" edges to IntegrationWebhook entities. -func (_u *OrganizationUpdateOne) RemoveIntegrationWebhooks(v ...*IntegrationWebhook) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedEmailBrandingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailBrandingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveIntegrationWebhookIDs(ids...) -} - -// ClearIntegrationRuns clears all "integration_runs" edges to the IntegrationRun entity. -func (_u *OrganizationUpdateOne) ClearIntegrationRuns() *OrganizationUpdateOne { - _u.mutation.ClearIntegrationRuns() - return _u -} - -// RemoveIntegrationRunIDs removes the "integration_runs" edge to IntegrationRun entities by IDs. -func (_u *OrganizationUpdateOne) RemoveIntegrationRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveIntegrationRunIDs(ids...) - return _u -} - -// RemoveIntegrationRuns removes "integration_runs" edges to IntegrationRun entities. -func (_u *OrganizationUpdateOne) RemoveIntegrationRuns(v ...*IntegrationRun) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailBrandingCreatorsTable, + Columns: []string{organization.EmailBrandingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveIntegrationRunIDs(ids...) -} - -// ClearNotificationPreferences clears all "notification_preferences" edges to the NotificationPreference entity. -func (_u *OrganizationUpdateOne) ClearNotificationPreferences() *OrganizationUpdateOne { - _u.mutation.ClearNotificationPreferences() - return _u -} - -// RemoveNotificationPreferenceIDs removes the "notification_preferences" edge to NotificationPreference entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNotificationPreferenceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNotificationPreferenceIDs(ids...) - return _u -} - -// RemoveNotificationPreferences removes "notification_preferences" edges to NotificationPreference entities. -func (_u *OrganizationUpdateOne) RemoveNotificationPreferences(v ...*NotificationPreference) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.EmailTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEmailTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EmailTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EmailTemplateCreatorsTable, + Columns: []string{organization.EmailTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveNotificationPreferenceIDs(ids...) -} - -// ClearNotificationTemplates clears all "notification_templates" edges to the NotificationTemplate entity. -func (_u *OrganizationUpdateOne) ClearNotificationTemplates() *OrganizationUpdateOne { - _u.mutation.ClearNotificationTemplates() - return _u -} - -// RemoveNotificationTemplateIDs removes the "notification_templates" edge to NotificationTemplate entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNotificationTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNotificationTemplateIDs(ids...) - return _u -} - -// RemoveNotificationTemplates removes "notification_templates" edges to NotificationTemplate entities. -func (_u *OrganizationUpdateOne) RemoveNotificationTemplates(v ...*NotificationTemplate) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.EntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveNotificationTemplateIDs(ids...) -} - -// ClearUsers clears all "users" edges to the User entity. -func (_u *OrganizationUpdateOne) ClearUsers() *OrganizationUpdateOne { - _u.mutation.ClearUsers() - return _u -} - -// RemoveUserIDs removes the "users" edge to User entities by IDs. -func (_u *OrganizationUpdateOne) RemoveUserIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveUserIDs(ids...) - return _u -} - -// RemoveUsers removes "users" edges to User entities. -func (_u *OrganizationUpdateOne) RemoveUsers(v ...*User) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedEntityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveUserIDs(ids...) -} - -// ClearFiles clears all "files" edges to the File entity. -func (_u *OrganizationUpdateOne) ClearFiles() *OrganizationUpdateOne { - _u.mutation.ClearFiles() - return _u -} - -// RemoveFileIDs removes the "files" edge to File entities by IDs. -func (_u *OrganizationUpdateOne) RemoveFileIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveFileIDs(ids...) - return _u -} - -// RemoveFiles removes "files" edges to File entities. -func (_u *OrganizationUpdateOne) RemoveFiles(v ...*File) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.EntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityCreatorsTable, + Columns: []string{organization.EntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveFileIDs(ids...) -} - -// ClearEvents clears all "events" edges to the Event entity. -func (_u *OrganizationUpdateOne) ClearEvents() *OrganizationUpdateOne { - _u.mutation.ClearEvents() - return _u -} - -// RemoveEventIDs removes the "events" edge to Event entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEventIDs(ids...) - return _u -} - -// RemoveEvents removes "events" edges to Event entities. -func (_u *OrganizationUpdateOne) RemoveEvents(v ...*Event) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.EntityTypeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveEventIDs(ids...) -} - -// ClearSecrets clears all "secrets" edges to the Hush entity. -func (_u *OrganizationUpdateOne) ClearSecrets() *OrganizationUpdateOne { - _u.mutation.ClearSecrets() - return _u -} - -// RemoveSecretIDs removes the "secrets" edge to Hush entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSecretIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSecretIDs(ids...) - return _u -} - -// RemoveSecrets removes "secrets" edges to Hush entities. -func (_u *OrganizationUpdateOne) RemoveSecrets(v ...*Hush) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedEntityTypeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EntityTypeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSecretIDs(ids...) -} - -// ClearAvatarFile clears the "avatar_file" edge to the File entity. -func (_u *OrganizationUpdateOne) ClearAvatarFile() *OrganizationUpdateOne { - _u.mutation.ClearAvatarFile() - return _u -} - -// ClearGroups clears all "groups" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearGroups() *OrganizationUpdateOne { - _u.mutation.ClearGroups() - return _u -} - -// RemoveGroupIDs removes the "groups" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveGroupIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveGroupIDs(ids...) - return _u -} - -// RemoveGroups removes "groups" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveGroups(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.EntityTypeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EntityTypeCreatorsTable, + Columns: []string{organization.EntityTypeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveGroupIDs(ids...) -} - -// ClearTemplates clears all "templates" edges to the Template entity. -func (_u *OrganizationUpdateOne) ClearTemplates() *OrganizationUpdateOne { - _u.mutation.ClearTemplates() - return _u -} - -// RemoveTemplateIDs removes the "templates" edge to Template entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTemplateIDs(ids...) - return _u -} - -// RemoveTemplates removes "templates" edges to Template entities. -func (_u *OrganizationUpdateOne) RemoveTemplates(v ...*Template) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.EvidenceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEvidenceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.EvidenceCreatorsTable, + Columns: []string{organization.EvidenceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveTemplateIDs(ids...) -} - -// ClearIntegrations clears all "integrations" edges to the Integration entity. -func (_u *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne { - _u.mutation.ClearIntegrations() - return _u -} - -// RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs. -func (_u *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveIntegrationIDs(ids...) - return _u -} - -// RemoveIntegrations removes "integrations" edges to Integration entities. -func (_u *OrganizationUpdateOne) RemoveIntegrations(v ...*Integration) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ExportCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveIntegrationIDs(ids...) -} - -// ClearDocuments clears all "documents" edges to the DocumentData entity. -func (_u *OrganizationUpdateOne) ClearDocuments() *OrganizationUpdateOne { - _u.mutation.ClearDocuments() - return _u -} - -// RemoveDocumentIDs removes the "documents" edge to DocumentData entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDocumentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDocumentIDs(ids...) - return _u -} - -// RemoveDocuments removes "documents" edges to DocumentData entities. -func (_u *OrganizationUpdateOne) RemoveDocuments(v ...*DocumentData) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedExportCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ExportCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDocumentIDs(ids...) -} - -// ClearOrgSubscriptions clears all "org_subscriptions" edges to the OrgSubscription entity. -func (_u *OrganizationUpdateOne) ClearOrgSubscriptions() *OrganizationUpdateOne { - _u.mutation.ClearOrgSubscriptions() - return _u -} - -// RemoveOrgSubscriptionIDs removes the "org_subscriptions" edge to OrgSubscription entities by IDs. -func (_u *OrganizationUpdateOne) RemoveOrgSubscriptionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveOrgSubscriptionIDs(ids...) - return _u -} - -// RemoveOrgSubscriptions removes "org_subscriptions" edges to OrgSubscription entities. -func (_u *OrganizationUpdateOne) RemoveOrgSubscriptions(v ...*OrgSubscription) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ExportCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ExportCreatorsTable, + Columns: []string{organization.ExportCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveOrgSubscriptionIDs(ids...) -} - -// ClearOrgProducts clears all "org_products" edges to the OrgProduct entity. -func (_u *OrganizationUpdateOne) ClearOrgProducts() *OrganizationUpdateOne { - _u.mutation.ClearOrgProducts() - return _u -} - -// RemoveOrgProductIDs removes the "org_products" edge to OrgProduct entities by IDs. -func (_u *OrganizationUpdateOne) RemoveOrgProductIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveOrgProductIDs(ids...) - return _u -} - -// RemoveOrgProducts removes "org_products" edges to OrgProduct entities. -func (_u *OrganizationUpdateOne) RemoveOrgProducts(v ...*OrgProduct) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.FileCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveOrgProductIDs(ids...) -} - -// ClearOrgPrices clears all "org_prices" edges to the OrgPrice entity. -func (_u *OrganizationUpdateOne) ClearOrgPrices() *OrganizationUpdateOne { - _u.mutation.ClearOrgPrices() - return _u -} - -// RemoveOrgPriceIDs removes the "org_prices" edge to OrgPrice entities by IDs. -func (_u *OrganizationUpdateOne) RemoveOrgPriceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveOrgPriceIDs(ids...) - return _u -} - -// RemoveOrgPrices removes "org_prices" edges to OrgPrice entities. -func (_u *OrganizationUpdateOne) RemoveOrgPrices(v ...*OrgPrice) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedFileCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FileCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveOrgPriceIDs(ids...) -} - -// ClearOrgModules clears all "org_modules" edges to the OrgModule entity. -func (_u *OrganizationUpdateOne) ClearOrgModules() *OrganizationUpdateOne { - _u.mutation.ClearOrgModules() - return _u -} - -// RemoveOrgModuleIDs removes the "org_modules" edge to OrgModule entities by IDs. -func (_u *OrganizationUpdateOne) RemoveOrgModuleIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveOrgModuleIDs(ids...) - return _u -} - -// RemoveOrgModules removes "org_modules" edges to OrgModule entities. -func (_u *OrganizationUpdateOne) RemoveOrgModules(v ...*OrgModule) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.FileCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FileCreatorsTable, + Columns: []string{organization.FileCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveOrgModuleIDs(ids...) -} - -// ClearInvites clears all "invites" edges to the Invite entity. -func (_u *OrganizationUpdateOne) ClearInvites() *OrganizationUpdateOne { - _u.mutation.ClearInvites() - return _u -} - -// RemoveInviteIDs removes the "invites" edge to Invite entities by IDs. -func (_u *OrganizationUpdateOne) RemoveInviteIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveInviteIDs(ids...) - return _u -} - -// RemoveInvites removes "invites" edges to Invite entities. -func (_u *OrganizationUpdateOne) RemoveInvites(v ...*Invite) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.FindingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveInviteIDs(ids...) -} - -// ClearSubscribers clears all "subscribers" edges to the Subscriber entity. -func (_u *OrganizationUpdateOne) ClearSubscribers() *OrganizationUpdateOne { - _u.mutation.ClearSubscribers() - return _u -} - -// RemoveSubscriberIDs removes the "subscribers" edge to Subscriber entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSubscriberIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSubscriberIDs(ids...) - return _u -} - -// RemoveSubscribers removes "subscribers" edges to Subscriber entities. -func (_u *OrganizationUpdateOne) RemoveSubscribers(v ...*Subscriber) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedFindingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FindingCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSubscriberIDs(ids...) -} - -// ClearEntities clears all "entities" edges to the Entity entity. -func (_u *OrganizationUpdateOne) ClearEntities() *OrganizationUpdateOne { - _u.mutation.ClearEntities() - return _u -} - -// RemoveEntityIDs removes the "entities" edge to Entity entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEntityIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEntityIDs(ids...) - return _u -} - -// RemoveEntities removes "entities" edges to Entity entities. -func (_u *OrganizationUpdateOne) RemoveEntities(v ...*Entity) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.FindingCreatorsTable, + Columns: []string{organization.FindingCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveEntityIDs(ids...) -} - -// ClearPlatforms clears all "platforms" edges to the Platform entity. -func (_u *OrganizationUpdateOne) ClearPlatforms() *OrganizationUpdateOne { - _u.mutation.ClearPlatforms() - return _u -} - -// RemovePlatformIDs removes the "platforms" edge to Platform entities by IDs. -func (_u *OrganizationUpdateOne) RemovePlatformIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemovePlatformIDs(ids...) - return _u -} - -// RemovePlatforms removes "platforms" edges to Platform entities. -func (_u *OrganizationUpdateOne) RemovePlatforms(v ...*Platform) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.GroupCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemovePlatformIDs(ids...) -} - -// ClearIdentityHolders clears all "identity_holders" edges to the IdentityHolder entity. -func (_u *OrganizationUpdateOne) ClearIdentityHolders() *OrganizationUpdateOne { - _u.mutation.ClearIdentityHolders() - return _u -} - -// RemoveIdentityHolderIDs removes the "identity_holders" edge to IdentityHolder entities by IDs. -func (_u *OrganizationUpdateOne) RemoveIdentityHolderIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveIdentityHolderIDs(ids...) - return _u -} - -// RemoveIdentityHolders removes "identity_holders" edges to IdentityHolder entities. -func (_u *OrganizationUpdateOne) RemoveIdentityHolders(v ...*IdentityHolder) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedGroupCreatorsIDs(); len(nodes) > 0 && !_u.mutation.GroupCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveIdentityHolderIDs(ids...) -} - -// ClearCampaigns clears all "campaigns" edges to the Campaign entity. -func (_u *OrganizationUpdateOne) ClearCampaigns() *OrganizationUpdateOne { - _u.mutation.ClearCampaigns() - return _u -} - -// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. -func (_u *OrganizationUpdateOne) RemoveCampaignIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveCampaignIDs(ids...) - return _u -} - -// RemoveCampaigns removes "campaigns" edges to Campaign entities. -func (_u *OrganizationUpdateOne) RemoveCampaigns(v ...*Campaign) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.GroupCreatorsTable, + Columns: []string{organization.GroupCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveCampaignIDs(ids...) -} - -// ClearCampaignTargets clears all "campaign_targets" edges to the CampaignTarget entity. -func (_u *OrganizationUpdateOne) ClearCampaignTargets() *OrganizationUpdateOne { - _u.mutation.ClearCampaignTargets() - return _u -} - -// RemoveCampaignTargetIDs removes the "campaign_targets" edge to CampaignTarget entities by IDs. -func (_u *OrganizationUpdateOne) RemoveCampaignTargetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveCampaignTargetIDs(ids...) - return _u -} - -// RemoveCampaignTargets removes "campaign_targets" edges to CampaignTarget entities. -func (_u *OrganizationUpdateOne) RemoveCampaignTargets(v ...*CampaignTarget) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.IdentityHolderCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveCampaignTargetIDs(ids...) -} - -// ClearEntityTypes clears all "entity_types" edges to the EntityType entity. -func (_u *OrganizationUpdateOne) ClearEntityTypes() *OrganizationUpdateOne { - _u.mutation.ClearEntityTypes() - return _u -} - -// RemoveEntityTypeIDs removes the "entity_types" edge to EntityType entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEntityTypeIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEntityTypeIDs(ids...) - return _u -} - -// RemoveEntityTypes removes "entity_types" edges to EntityType entities. -func (_u *OrganizationUpdateOne) RemoveEntityTypes(v ...*EntityType) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedIdentityHolderCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IdentityHolderCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveEntityTypeIDs(ids...) -} - -// ClearContacts clears all "contacts" edges to the Contact entity. -func (_u *OrganizationUpdateOne) ClearContacts() *OrganizationUpdateOne { - _u.mutation.ClearContacts() - return _u -} - -// RemoveContactIDs removes the "contacts" edge to Contact entities by IDs. -func (_u *OrganizationUpdateOne) RemoveContactIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveContactIDs(ids...) - return _u -} - -// RemoveContacts removes "contacts" edges to Contact entities. -func (_u *OrganizationUpdateOne) RemoveContacts(v ...*Contact) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IdentityHolderCreatorsTable, + Columns: []string{organization.IdentityHolderCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveContactIDs(ids...) -} - -// ClearNotes clears all "notes" edges to the Note entity. -func (_u *OrganizationUpdateOne) ClearNotes() *OrganizationUpdateOne { - _u.mutation.ClearNotes() - return _u -} - -// RemoveNoteIDs removes the "notes" edge to Note entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNoteIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNoteIDs(ids...) - return _u -} - -// RemoveNotes removes "notes" edges to Note entities. -func (_u *OrganizationUpdateOne) RemoveNotes(v ...*Note) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.IntegrationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveNoteIDs(ids...) -} - -// ClearTasks clears all "tasks" edges to the Task entity. -func (_u *OrganizationUpdateOne) ClearTasks() *OrganizationUpdateOne { - _u.mutation.ClearTasks() - return _u -} - -// RemoveTaskIDs removes the "tasks" edge to Task entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTaskIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTaskIDs(ids...) - return _u -} - -// RemoveTasks removes "tasks" edges to Task entities. -func (_u *OrganizationUpdateOne) RemoveTasks(v ...*Task) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedIntegrationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveTaskIDs(ids...) -} - -// ClearPrograms clears all "programs" edges to the Program entity. -func (_u *OrganizationUpdateOne) ClearPrograms() *OrganizationUpdateOne { - _u.mutation.ClearPrograms() - return _u -} - -// RemoveProgramIDs removes the "programs" edge to Program entities by IDs. -func (_u *OrganizationUpdateOne) RemoveProgramIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveProgramIDs(ids...) - return _u -} - -// RemovePrograms removes "programs" edges to Program entities. -func (_u *OrganizationUpdateOne) RemovePrograms(v ...*Program) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.IntegrationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationCreatorsTable, + Columns: []string{organization.IntegrationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveProgramIDs(ids...) -} - -// ClearSystemDetails clears all "system_details" edges to the SystemDetail entity. -func (_u *OrganizationUpdateOne) ClearSystemDetails() *OrganizationUpdateOne { - _u.mutation.ClearSystemDetails() - return _u -} - -// RemoveSystemDetailIDs removes the "system_details" edge to SystemDetail entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSystemDetailIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSystemDetailIDs(ids...) - return _u -} - -// RemoveSystemDetails removes "system_details" edges to SystemDetail entities. -func (_u *OrganizationUpdateOne) RemoveSystemDetails(v ...*SystemDetail) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.IntegrationWebhookCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSystemDetailIDs(ids...) -} - -// ClearProcedures clears all "procedures" edges to the Procedure entity. -func (_u *OrganizationUpdateOne) ClearProcedures() *OrganizationUpdateOne { - _u.mutation.ClearProcedures() - return _u -} - -// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. -func (_u *OrganizationUpdateOne) RemoveProcedureIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveProcedureIDs(ids...) - return _u -} - -// RemoveProcedures removes "procedures" edges to Procedure entities. -func (_u *OrganizationUpdateOne) RemoveProcedures(v ...*Procedure) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedIntegrationWebhookCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IntegrationWebhookCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveProcedureIDs(ids...) -} - -// ClearInternalPolicies clears all "internal_policies" edges to the InternalPolicy entity. -func (_u *OrganizationUpdateOne) ClearInternalPolicies() *OrganizationUpdateOne { - _u.mutation.ClearInternalPolicies() - return _u -} - -// RemoveInternalPolicyIDs removes the "internal_policies" edge to InternalPolicy entities by IDs. -func (_u *OrganizationUpdateOne) RemoveInternalPolicyIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveInternalPolicyIDs(ids...) - return _u -} - -// RemoveInternalPolicies removes "internal_policies" edges to InternalPolicy entities. -func (_u *OrganizationUpdateOne) RemoveInternalPolicies(v ...*InternalPolicy) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.IntegrationWebhookCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.IntegrationWebhookCreatorsTable, + Columns: []string{organization.IntegrationWebhookCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveInternalPolicyIDs(ids...) -} - -// ClearRisks clears all "risks" edges to the Risk entity. -func (_u *OrganizationUpdateOne) ClearRisks() *OrganizationUpdateOne { - _u.mutation.ClearRisks() - return _u -} - -// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. -func (_u *OrganizationUpdateOne) RemoveRiskIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveRiskIDs(ids...) - return _u -} - -// RemoveRisks removes "risks" edges to Risk entities. -func (_u *OrganizationUpdateOne) RemoveRisks(v ...*Risk) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.InternalPolicyCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedInternalPolicyCreatorsIDs(); len(nodes) > 0 && !_u.mutation.InternalPolicyCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.InternalPolicyCreatorsTable, + Columns: []string{organization.InternalPolicyCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveRiskIDs(ids...) -} - -// ClearControlObjectives clears all "control_objectives" edges to the ControlObjective entity. -func (_u *OrganizationUpdateOne) ClearControlObjectives() *OrganizationUpdateOne { - _u.mutation.ClearControlObjectives() - return _u -} - -// RemoveControlObjectiveIDs removes the "control_objectives" edge to ControlObjective entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlObjectiveIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlObjectiveIDs(ids...) - return _u -} - -// RemoveControlObjectives removes "control_objectives" edges to ControlObjective entities. -func (_u *OrganizationUpdateOne) RemoveControlObjectives(v ...*ControlObjective) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.JobRunnerCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveControlObjectiveIDs(ids...) -} - -// ClearNarratives clears all "narratives" edges to the Narrative entity. -func (_u *OrganizationUpdateOne) ClearNarratives() *OrganizationUpdateOne { - _u.mutation.ClearNarratives() - return _u -} - -// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNarrativeIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNarrativeIDs(ids...) - return _u -} - -// RemoveNarratives removes "narratives" edges to Narrative entities. -func (_u *OrganizationUpdateOne) RemoveNarratives(v ...*Narrative) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedJobRunnerCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveNarrativeIDs(ids...) -} - -// ClearControls clears all "controls" edges to the Control entity. -func (_u *OrganizationUpdateOne) ClearControls() *OrganizationUpdateOne { - _u.mutation.ClearControls() - return _u -} - -// RemoveControlIDs removes the "controls" edge to Control entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlIDs(ids...) - return _u -} - -// RemoveControls removes "controls" edges to Control entities. -func (_u *OrganizationUpdateOne) RemoveControls(v ...*Control) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.JobRunnerCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerCreatorsTable, + Columns: []string{organization.JobRunnerCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveControlIDs(ids...) -} - -// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. -func (_u *OrganizationUpdateOne) ClearSubcontrols() *OrganizationUpdateOne { - _u.mutation.ClearSubcontrols() - return _u -} - -// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSubcontrolIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSubcontrolIDs(ids...) - return _u -} - -// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. -func (_u *OrganizationUpdateOne) RemoveSubcontrols(v ...*Subcontrol) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.JobRunnerRegistrationTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSubcontrolIDs(ids...) -} - -// ClearControlImplementations clears all "control_implementations" edges to the ControlImplementation entity. -func (_u *OrganizationUpdateOne) ClearControlImplementations() *OrganizationUpdateOne { - _u.mutation.ClearControlImplementations() - return _u -} - -// RemoveControlImplementationIDs removes the "control_implementations" edge to ControlImplementation entities by IDs. -func (_u *OrganizationUpdateOne) RemoveControlImplementationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveControlImplementationIDs(ids...) - return _u -} - -// RemoveControlImplementations removes "control_implementations" edges to ControlImplementation entities. -func (_u *OrganizationUpdateOne) RemoveControlImplementations(v ...*ControlImplementation) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedJobRunnerRegistrationTokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerRegistrationTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveControlImplementationIDs(ids...) -} - -// ClearMappedControls clears all "mapped_controls" edges to the MappedControl entity. -func (_u *OrganizationUpdateOne) ClearMappedControls() *OrganizationUpdateOne { - _u.mutation.ClearMappedControls() - return _u -} - -// RemoveMappedControlIDs removes the "mapped_controls" edge to MappedControl entities by IDs. -func (_u *OrganizationUpdateOne) RemoveMappedControlIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveMappedControlIDs(ids...) - return _u -} - -// RemoveMappedControls removes "mapped_controls" edges to MappedControl entities. -func (_u *OrganizationUpdateOne) RemoveMappedControls(v ...*MappedControl) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.JobRunnerRegistrationTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerRegistrationTokenCreatorsTable, + Columns: []string{organization.JobRunnerRegistrationTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveMappedControlIDs(ids...) -} - -// ClearEvidence clears all "evidence" edges to the Evidence entity. -func (_u *OrganizationUpdateOne) ClearEvidence() *OrganizationUpdateOne { - _u.mutation.ClearEvidence() - return _u -} - -// RemoveEvidenceIDs removes the "evidence" edge to Evidence entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEvidenceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEvidenceIDs(ids...) - return _u -} - -// RemoveEvidence removes "evidence" edges to Evidence entities. -func (_u *OrganizationUpdateOne) RemoveEvidence(v ...*Evidence) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.JobRunnerTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveEvidenceIDs(ids...) -} - -// ClearStandards clears all "standards" edges to the Standard entity. -func (_u *OrganizationUpdateOne) ClearStandards() *OrganizationUpdateOne { - _u.mutation.ClearStandards() - return _u -} - -// RemoveStandardIDs removes the "standards" edge to Standard entities by IDs. -func (_u *OrganizationUpdateOne) RemoveStandardIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveStandardIDs(ids...) - return _u -} - -// RemoveStandards removes "standards" edges to Standard entities. -func (_u *OrganizationUpdateOne) RemoveStandards(v ...*Standard) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedJobRunnerTokenCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobRunnerTokenCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveStandardIDs(ids...) -} - -// ClearActionPlans clears all "action_plans" edges to the ActionPlan entity. -func (_u *OrganizationUpdateOne) ClearActionPlans() *OrganizationUpdateOne { - _u.mutation.ClearActionPlans() - return _u -} - -// RemoveActionPlanIDs removes the "action_plans" edge to ActionPlan entities by IDs. -func (_u *OrganizationUpdateOne) RemoveActionPlanIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveActionPlanIDs(ids...) - return _u -} - -// RemoveActionPlans removes "action_plans" edges to ActionPlan entities. -func (_u *OrganizationUpdateOne) RemoveActionPlans(v ...*ActionPlan) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.JobRunnerTokenCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobRunnerTokenCreatorsTable, + Columns: []string{organization.JobRunnerTokenCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveActionPlanIDs(ids...) -} - -// ClearCustomDomains clears all "custom_domains" edges to the CustomDomain entity. -func (_u *OrganizationUpdateOne) ClearCustomDomains() *OrganizationUpdateOne { - _u.mutation.ClearCustomDomains() - return _u -} - -// RemoveCustomDomainIDs removes the "custom_domains" edge to CustomDomain entities by IDs. -func (_u *OrganizationUpdateOne) RemoveCustomDomainIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveCustomDomainIDs(ids...) - return _u -} - -// RemoveCustomDomains removes "custom_domains" edges to CustomDomain entities. -func (_u *OrganizationUpdateOne) RemoveCustomDomains(v ...*CustomDomain) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.JobTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveCustomDomainIDs(ids...) -} - -// ClearJobRunners clears all "job_runners" edges to the JobRunner entity. -func (_u *OrganizationUpdateOne) ClearJobRunners() *OrganizationUpdateOne { - _u.mutation.ClearJobRunners() - return _u -} - -// RemoveJobRunnerIDs removes the "job_runners" edge to JobRunner entities by IDs. -func (_u *OrganizationUpdateOne) RemoveJobRunnerIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveJobRunnerIDs(ids...) - return _u -} - -// RemoveJobRunners removes "job_runners" edges to JobRunner entities. -func (_u *OrganizationUpdateOne) RemoveJobRunners(v ...*JobRunner) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedJobTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.JobTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveJobRunnerIDs(ids...) -} - -// ClearJobRunnerTokens clears all "job_runner_tokens" edges to the JobRunnerToken entity. -func (_u *OrganizationUpdateOne) ClearJobRunnerTokens() *OrganizationUpdateOne { - _u.mutation.ClearJobRunnerTokens() - return _u -} - -// RemoveJobRunnerTokenIDs removes the "job_runner_tokens" edge to JobRunnerToken entities by IDs. -func (_u *OrganizationUpdateOne) RemoveJobRunnerTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveJobRunnerTokenIDs(ids...) - return _u -} - -// RemoveJobRunnerTokens removes "job_runner_tokens" edges to JobRunnerToken entities. -func (_u *OrganizationUpdateOne) RemoveJobRunnerTokens(v ...*JobRunnerToken) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.JobTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.JobTemplateCreatorsTable, + Columns: []string{organization.JobTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveJobRunnerTokenIDs(ids...) -} - -// ClearJobRunnerRegistrationTokens clears all "job_runner_registration_tokens" edges to the JobRunnerRegistrationToken entity. -func (_u *OrganizationUpdateOne) ClearJobRunnerRegistrationTokens() *OrganizationUpdateOne { - _u.mutation.ClearJobRunnerRegistrationTokens() - return _u -} - -// RemoveJobRunnerRegistrationTokenIDs removes the "job_runner_registration_tokens" edge to JobRunnerRegistrationToken entities by IDs. -func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokenIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveJobRunnerRegistrationTokenIDs(ids...) - return _u -} - -// RemoveJobRunnerRegistrationTokens removes "job_runner_registration_tokens" edges to JobRunnerRegistrationToken entities. -func (_u *OrganizationUpdateOne) RemoveJobRunnerRegistrationTokens(v ...*JobRunnerRegistrationToken) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.MappedControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveJobRunnerRegistrationTokenIDs(ids...) -} - -// ClearDNSVerifications clears all "dns_verifications" edges to the DNSVerification entity. -func (_u *OrganizationUpdateOne) ClearDNSVerifications() *OrganizationUpdateOne { - _u.mutation.ClearDNSVerifications() - return _u -} - -// RemoveDNSVerificationIDs removes the "dns_verifications" edge to DNSVerification entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDNSVerificationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDNSVerificationIDs(ids...) - return _u -} - -// RemoveDNSVerifications removes "dns_verifications" edges to DNSVerification entities. -func (_u *OrganizationUpdateOne) RemoveDNSVerifications(v ...*DNSVerification) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedMappedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDNSVerificationIDs(ids...) -} - -// ClearJobTemplates clears all "job_templates" edges to the JobTemplate entity. -func (_u *OrganizationUpdateOne) ClearJobTemplates() *OrganizationUpdateOne { - _u.mutation.ClearJobTemplates() - return _u -} - -// RemoveJobTemplateIDs removes the "job_templates" edge to JobTemplate entities by IDs. -func (_u *OrganizationUpdateOne) RemoveJobTemplateIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveJobTemplateIDs(ids...) - return _u -} - -// RemoveJobTemplates removes "job_templates" edges to JobTemplate entities. -func (_u *OrganizationUpdateOne) RemoveJobTemplates(v ...*JobTemplate) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.MappedControlCreatorsTable, + Columns: []string{organization.MappedControlCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.NarrativeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveJobTemplateIDs(ids...) -} - -// ClearScheduledJobs clears all "scheduled_jobs" edges to the ScheduledJob entity. -func (_u *OrganizationUpdateOne) ClearScheduledJobs() *OrganizationUpdateOne { - _u.mutation.ClearScheduledJobs() - return _u -} - -// RemoveScheduledJobIDs removes the "scheduled_jobs" edge to ScheduledJob entities by IDs. -func (_u *OrganizationUpdateOne) RemoveScheduledJobIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveScheduledJobIDs(ids...) - return _u -} - -// RemoveScheduledJobs removes "scheduled_jobs" edges to ScheduledJob entities. -func (_u *OrganizationUpdateOne) RemoveScheduledJobs(v ...*ScheduledJob) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedNarrativeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NarrativeCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveScheduledJobIDs(ids...) -} - -// ClearJobResults clears all "job_results" edges to the JobResult entity. -func (_u *OrganizationUpdateOne) ClearJobResults() *OrganizationUpdateOne { - _u.mutation.ClearJobResults() - return _u -} - -// RemoveJobResultIDs removes the "job_results" edge to JobResult entities by IDs. -func (_u *OrganizationUpdateOne) RemoveJobResultIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveJobResultIDs(ids...) - return _u -} - -// RemoveJobResults removes "job_results" edges to JobResult entities. -func (_u *OrganizationUpdateOne) RemoveJobResults(v ...*JobResult) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NarrativeCreatorsTable, + Columns: []string{organization.NarrativeCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveJobResultIDs(ids...) -} - -// ClearScheduledJobRuns clears all "scheduled_job_runs" edges to the ScheduledJobRun entity. -func (_u *OrganizationUpdateOne) ClearScheduledJobRuns() *OrganizationUpdateOne { - _u.mutation.ClearScheduledJobRuns() - return _u -} - -// RemoveScheduledJobRunIDs removes the "scheduled_job_runs" edge to ScheduledJobRun entities by IDs. -func (_u *OrganizationUpdateOne) RemoveScheduledJobRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveScheduledJobRunIDs(ids...) - return _u -} - -// RemoveScheduledJobRuns removes "scheduled_job_runs" edges to ScheduledJobRun entities. -func (_u *OrganizationUpdateOne) RemoveScheduledJobRuns(v ...*ScheduledJobRun) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.NoteCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveScheduledJobRunIDs(ids...) -} - -// ClearTrustCenters clears all "trust_centers" edges to the TrustCenter entity. -func (_u *OrganizationUpdateOne) ClearTrustCenters() *OrganizationUpdateOne { - _u.mutation.ClearTrustCenters() - return _u -} - -// RemoveTrustCenterIDs removes the "trust_centers" edge to TrustCenter entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTrustCenterIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTrustCenterIDs(ids...) - return _u -} - -// RemoveTrustCenters removes "trust_centers" edges to TrustCenter entities. -func (_u *OrganizationUpdateOne) RemoveTrustCenters(v ...*TrustCenter) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedNoteCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NoteCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveTrustCenterIDs(ids...) -} - -// ClearAssets clears all "assets" edges to the Asset entity. -func (_u *OrganizationUpdateOne) ClearAssets() *OrganizationUpdateOne { - _u.mutation.ClearAssets() - return _u -} - -// RemoveAssetIDs removes the "assets" edge to Asset entities by IDs. -func (_u *OrganizationUpdateOne) RemoveAssetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveAssetIDs(ids...) - return _u -} - -// RemoveAssets removes "assets" edges to Asset entities. -func (_u *OrganizationUpdateOne) RemoveAssets(v ...*Asset) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.NoteCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NoteCreatorsTable, + Columns: []string{organization.NoteCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveAssetIDs(ids...) -} - -// ClearScans clears all "scans" edges to the Scan entity. -func (_u *OrganizationUpdateOne) ClearScans() *OrganizationUpdateOne { - _u.mutation.ClearScans() - return _u -} - -// RemoveScanIDs removes the "scans" edge to Scan entities by IDs. -func (_u *OrganizationUpdateOne) RemoveScanIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveScanIDs(ids...) - return _u -} - -// RemoveScans removes "scans" edges to Scan entities. -func (_u *OrganizationUpdateOne) RemoveScans(v ...*Scan) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.NotificationTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveScanIDs(ids...) -} - -// ClearSLADefinitions clears all "sla_definitions" edges to the SLADefinition entity. -func (_u *OrganizationUpdateOne) ClearSLADefinitions() *OrganizationUpdateOne { - _u.mutation.ClearSLADefinitions() - return _u -} - -// RemoveSLADefinitionIDs removes the "sla_definitions" edge to SLADefinition entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSLADefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSLADefinitionIDs(ids...) - return _u -} - -// RemoveSLADefinitions removes "sla_definitions" edges to SLADefinition entities. -func (_u *OrganizationUpdateOne) RemoveSLADefinitions(v ...*SLADefinition) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedNotificationTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NotificationTemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.NotificationTemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.NotificationTemplateCreatorsTable, + Columns: []string{organization.NotificationTemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.OrganizationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSLADefinitionIDs(ids...) -} - -// ClearSubprocessors clears all "subprocessors" edges to the Subprocessor entity. -func (_u *OrganizationUpdateOne) ClearSubprocessors() *OrganizationUpdateOne { - _u.mutation.ClearSubprocessors() - return _u -} - -// RemoveSubprocessorIDs removes the "subprocessors" edge to Subprocessor entities by IDs. -func (_u *OrganizationUpdateOne) RemoveSubprocessorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveSubprocessorIDs(ids...) - return _u -} - -// RemoveSubprocessors removes "subprocessors" edges to Subprocessor entities. -func (_u *OrganizationUpdateOne) RemoveSubprocessors(v ...*Subprocessor) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedOrganizationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.OrganizationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveSubprocessorIDs(ids...) -} - -// ClearExports clears all "exports" edges to the Export entity. -func (_u *OrganizationUpdateOne) ClearExports() *OrganizationUpdateOne { - _u.mutation.ClearExports() - return _u -} - -// RemoveExportIDs removes the "exports" edge to Export entities by IDs. -func (_u *OrganizationUpdateOne) RemoveExportIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveExportIDs(ids...) - return _u -} - -// RemoveExports removes "exports" edges to Export entities. -func (_u *OrganizationUpdateOne) RemoveExports(v ...*Export) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.OrganizationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.OrganizationCreatorsTable, + Columns: []string{organization.OrganizationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveExportIDs(ids...) -} - -// ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. -func (_u *OrganizationUpdateOne) ClearTrustCenterWatermarkConfigs() *OrganizationUpdateOne { - _u.mutation.ClearTrustCenterWatermarkConfigs() - return _u -} - -// RemoveTrustCenterWatermarkConfigIDs removes the "trust_center_watermark_configs" edge to TrustCenterWatermarkConfig entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTrustCenterWatermarkConfigIDs(ids...) - return _u -} - -// RemoveTrustCenterWatermarkConfigs removes "trust_center_watermark_configs" edges to TrustCenterWatermarkConfig entities. -func (_u *OrganizationUpdateOne) RemoveTrustCenterWatermarkConfigs(v ...*TrustCenterWatermarkConfig) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.PlatformCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveTrustCenterWatermarkConfigIDs(ids...) -} - -// ClearImpersonationEvents clears all "impersonation_events" edges to the ImpersonationEvent entity. -func (_u *OrganizationUpdateOne) ClearImpersonationEvents() *OrganizationUpdateOne { - _u.mutation.ClearImpersonationEvents() - return _u -} - -// RemoveImpersonationEventIDs removes the "impersonation_events" edge to ImpersonationEvent entities by IDs. -func (_u *OrganizationUpdateOne) RemoveImpersonationEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveImpersonationEventIDs(ids...) - return _u -} - -// RemoveImpersonationEvents removes "impersonation_events" edges to ImpersonationEvent entities. -func (_u *OrganizationUpdateOne) RemoveImpersonationEvents(v ...*ImpersonationEvent) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedPlatformCreatorsIDs(); len(nodes) > 0 && !_u.mutation.PlatformCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveImpersonationEventIDs(ids...) -} - -// ClearAssessments clears all "assessments" edges to the Assessment entity. -func (_u *OrganizationUpdateOne) ClearAssessments() *OrganizationUpdateOne { - _u.mutation.ClearAssessments() - return _u -} - -// RemoveAssessmentIDs removes the "assessments" edge to Assessment entities by IDs. -func (_u *OrganizationUpdateOne) RemoveAssessmentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveAssessmentIDs(ids...) - return _u -} - -// RemoveAssessments removes "assessments" edges to Assessment entities. -func (_u *OrganizationUpdateOne) RemoveAssessments(v ...*Assessment) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.PlatformCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.PlatformCreatorsTable, + Columns: []string{organization.PlatformCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveAssessmentIDs(ids...) -} - -// ClearAssessmentResponses clears all "assessment_responses" edges to the AssessmentResponse entity. -func (_u *OrganizationUpdateOne) ClearAssessmentResponses() *OrganizationUpdateOne { - _u.mutation.ClearAssessmentResponses() - return _u -} - -// RemoveAssessmentResponseIDs removes the "assessment_responses" edge to AssessmentResponse entities by IDs. -func (_u *OrganizationUpdateOne) RemoveAssessmentResponseIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveAssessmentResponseIDs(ids...) - return _u -} - -// RemoveAssessmentResponses removes "assessment_responses" edges to AssessmentResponse entities. -func (_u *OrganizationUpdateOne) RemoveAssessmentResponses(v ...*AssessmentResponse) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ProcedureCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveAssessmentResponseIDs(ids...) -} - -// ClearCustomTypeEnums clears all "custom_type_enums" edges to the CustomTypeEnum entity. -func (_u *OrganizationUpdateOne) ClearCustomTypeEnums() *OrganizationUpdateOne { - _u.mutation.ClearCustomTypeEnums() - return _u -} - -// RemoveCustomTypeEnumIDs removes the "custom_type_enums" edge to CustomTypeEnum entities by IDs. -func (_u *OrganizationUpdateOne) RemoveCustomTypeEnumIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveCustomTypeEnumIDs(ids...) - return _u -} - -// RemoveCustomTypeEnums removes "custom_type_enums" edges to CustomTypeEnum entities. -func (_u *OrganizationUpdateOne) RemoveCustomTypeEnums(v ...*CustomTypeEnum) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedProcedureCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProcedureCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveCustomTypeEnumIDs(ids...) -} - -// ClearTagDefinitions clears all "tag_definitions" edges to the TagDefinition entity. -func (_u *OrganizationUpdateOne) ClearTagDefinitions() *OrganizationUpdateOne { - _u.mutation.ClearTagDefinitions() - return _u -} - -// RemoveTagDefinitionIDs removes the "tag_definitions" edge to TagDefinition entities by IDs. -func (_u *OrganizationUpdateOne) RemoveTagDefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveTagDefinitionIDs(ids...) - return _u -} - -// RemoveTagDefinitions removes "tag_definitions" edges to TagDefinition entities. -func (_u *OrganizationUpdateOne) RemoveTagDefinitions(v ...*TagDefinition) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProcedureCreatorsTable, + Columns: []string{organization.ProcedureCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveTagDefinitionIDs(ids...) -} - -// ClearRemediations clears all "remediations" edges to the Remediation entity. -func (_u *OrganizationUpdateOne) ClearRemediations() *OrganizationUpdateOne { - _u.mutation.ClearRemediations() - return _u -} - -// RemoveRemediationIDs removes the "remediations" edge to Remediation entities by IDs. -func (_u *OrganizationUpdateOne) RemoveRemediationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveRemediationIDs(ids...) - return _u -} - -// RemoveRemediations removes "remediations" edges to Remediation entities. -func (_u *OrganizationUpdateOne) RemoveRemediations(v ...*Remediation) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ProgramCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveRemediationIDs(ids...) -} - -// ClearFindings clears all "findings" edges to the Finding entity. -func (_u *OrganizationUpdateOne) ClearFindings() *OrganizationUpdateOne { - _u.mutation.ClearFindings() - return _u -} - -// RemoveFindingIDs removes the "findings" edge to Finding entities by IDs. -func (_u *OrganizationUpdateOne) RemoveFindingIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveFindingIDs(ids...) - return _u -} - -// RemoveFindings removes "findings" edges to Finding entities. -func (_u *OrganizationUpdateOne) RemoveFindings(v ...*Finding) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedProgramCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProgramCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveFindingIDs(ids...) -} - -// ClearReviews clears all "reviews" edges to the Review entity. -func (_u *OrganizationUpdateOne) ClearReviews() *OrganizationUpdateOne { - _u.mutation.ClearReviews() - return _u -} - -// RemoveReviewIDs removes the "reviews" edge to Review entities by IDs. -func (_u *OrganizationUpdateOne) RemoveReviewIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveReviewIDs(ids...) - return _u -} - -// RemoveReviews removes "reviews" edges to Review entities. -func (_u *OrganizationUpdateOne) RemoveReviews(v ...*Review) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ProgramCreatorsTable, + Columns: []string{organization.ProgramCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveReviewIDs(ids...) -} - -// ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity. -func (_u *OrganizationUpdateOne) ClearVulnerabilities() *OrganizationUpdateOne { - _u.mutation.ClearVulnerabilities() - return _u -} - -// RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs. -func (_u *OrganizationUpdateOne) RemoveVulnerabilityIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveVulnerabilityIDs(ids...) - return _u -} - -// RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities. -func (_u *OrganizationUpdateOne) RemoveVulnerabilities(v ...*Vulnerability) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.RemediationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveVulnerabilityIDs(ids...) -} - -// ClearNotifications clears all "notifications" edges to the Notification entity. -func (_u *OrganizationUpdateOne) ClearNotifications() *OrganizationUpdateOne { - _u.mutation.ClearNotifications() - return _u -} - -// RemoveNotificationIDs removes the "notifications" edge to Notification entities by IDs. -func (_u *OrganizationUpdateOne) RemoveNotificationIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveNotificationIDs(ids...) - return _u -} - -// RemoveNotifications removes "notifications" edges to Notification entities. -func (_u *OrganizationUpdateOne) RemoveNotifications(v ...*Notification) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedRemediationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RemediationCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveNotificationIDs(ids...) -} - -// ClearWorkflowDefinitions clears all "workflow_definitions" edges to the WorkflowDefinition entity. -func (_u *OrganizationUpdateOne) ClearWorkflowDefinitions() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowDefinitions() - return _u -} - -// RemoveWorkflowDefinitionIDs removes the "workflow_definitions" edge to WorkflowDefinition entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowDefinitionIDs(ids...) - return _u -} - -// RemoveWorkflowDefinitions removes "workflow_definitions" edges to WorkflowDefinition entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowDefinitions(v ...*WorkflowDefinition) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemediationCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RemediationCreatorsTable, + Columns: []string{organization.RemediationCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveWorkflowDefinitionIDs(ids...) -} - -// ClearWorkflowInstances clears all "workflow_instances" edges to the WorkflowInstance entity. -func (_u *OrganizationUpdateOne) ClearWorkflowInstances() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowInstances() - return _u -} - -// RemoveWorkflowInstanceIDs removes the "workflow_instances" edge to WorkflowInstance entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowInstanceIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowInstanceIDs(ids...) - return _u -} - -// RemoveWorkflowInstances removes "workflow_instances" edges to WorkflowInstance entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowInstances(v ...*WorkflowInstance) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ReviewCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedReviewCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ReviewCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveWorkflowInstanceIDs(ids...) -} - -// ClearWorkflowEvents clears all "workflow_events" edges to the WorkflowEvent entity. -func (_u *OrganizationUpdateOne) ClearWorkflowEvents() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowEvents() - return _u -} - -// RemoveWorkflowEventIDs removes the "workflow_events" edge to WorkflowEvent entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowEventIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowEventIDs(ids...) - return _u -} - -// RemoveWorkflowEvents removes "workflow_events" edges to WorkflowEvent entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowEvents(v ...*WorkflowEvent) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ReviewCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ReviewCreatorsTable, + Columns: []string{organization.ReviewCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveWorkflowEventIDs(ids...) -} - -// ClearWorkflowAssignments clears all "workflow_assignments" edges to the WorkflowAssignment entity. -func (_u *OrganizationUpdateOne) ClearWorkflowAssignments() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowAssignments() - return _u -} - -// RemoveWorkflowAssignmentIDs removes the "workflow_assignments" edge to WorkflowAssignment entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowAssignmentIDs(ids...) - return _u -} - -// RemoveWorkflowAssignments removes "workflow_assignments" edges to WorkflowAssignment entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowAssignments(v ...*WorkflowAssignment) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.RiskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveWorkflowAssignmentIDs(ids...) -} - -// ClearWorkflowAssignmentTargets clears all "workflow_assignment_targets" edges to the WorkflowAssignmentTarget entity. -func (_u *OrganizationUpdateOne) ClearWorkflowAssignmentTargets() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowAssignmentTargets() - return _u -} - -// RemoveWorkflowAssignmentTargetIDs removes the "workflow_assignment_targets" edge to WorkflowAssignmentTarget entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargetIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowAssignmentTargetIDs(ids...) - return _u -} - -// RemoveWorkflowAssignmentTargets removes "workflow_assignment_targets" edges to WorkflowAssignmentTarget entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowAssignmentTargets(v ...*WorkflowAssignmentTarget) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedRiskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RiskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveWorkflowAssignmentTargetIDs(ids...) -} - -// ClearWorkflowObjectRefs clears all "workflow_object_refs" edges to the WorkflowObjectRef entity. -func (_u *OrganizationUpdateOne) ClearWorkflowObjectRefs() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowObjectRefs() - return _u -} - -// RemoveWorkflowObjectRefIDs removes the "workflow_object_refs" edge to WorkflowObjectRef entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowObjectRefIDs(ids...) - return _u -} - -// RemoveWorkflowObjectRefs removes "workflow_object_refs" edges to WorkflowObjectRef entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowObjectRefs(v ...*WorkflowObjectRef) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.RiskCreatorsTable, + Columns: []string{organization.RiskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveWorkflowObjectRefIDs(ids...) -} - -// ClearWorkflowProposals clears all "workflow_proposals" edges to the WorkflowProposal entity. -func (_u *OrganizationUpdateOne) ClearWorkflowProposals() *OrganizationUpdateOne { - _u.mutation.ClearWorkflowProposals() - return _u -} - -// RemoveWorkflowProposalIDs removes the "workflow_proposals" edge to WorkflowProposal entities by IDs. -func (_u *OrganizationUpdateOne) RemoveWorkflowProposalIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveWorkflowProposalIDs(ids...) - return _u -} - -// RemoveWorkflowProposals removes "workflow_proposals" edges to WorkflowProposal entities. -func (_u *OrganizationUpdateOne) RemoveWorkflowProposals(v ...*WorkflowProposal) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ScanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveWorkflowProposalIDs(ids...) -} - -// ClearDirectoryAccounts clears all "directory_accounts" edges to the DirectoryAccount entity. -func (_u *OrganizationUpdateOne) ClearDirectoryAccounts() *OrganizationUpdateOne { - _u.mutation.ClearDirectoryAccounts() - return _u -} - -// RemoveDirectoryAccountIDs removes the "directory_accounts" edge to DirectoryAccount entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDirectoryAccountIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDirectoryAccountIDs(ids...) - return _u -} - -// RemoveDirectoryAccounts removes "directory_accounts" edges to DirectoryAccount entities. -func (_u *OrganizationUpdateOne) RemoveDirectoryAccounts(v ...*DirectoryAccount) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedScanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScanCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDirectoryAccountIDs(ids...) -} - -// ClearDirectoryGroups clears all "directory_groups" edges to the DirectoryGroup entity. -func (_u *OrganizationUpdateOne) ClearDirectoryGroups() *OrganizationUpdateOne { - _u.mutation.ClearDirectoryGroups() - return _u -} - -// RemoveDirectoryGroupIDs removes the "directory_groups" edge to DirectoryGroup entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDirectoryGroupIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDirectoryGroupIDs(ids...) - return _u -} - -// RemoveDirectoryGroups removes "directory_groups" edges to DirectoryGroup entities. -func (_u *OrganizationUpdateOne) RemoveDirectoryGroups(v ...*DirectoryGroup) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ScanCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScanCreatorsTable, + Columns: []string{organization.ScanCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ScheduledJobCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedScheduledJobCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDirectoryGroupIDs(ids...) -} - -// ClearDirectoryMemberships clears all "directory_memberships" edges to the DirectoryMembership entity. -func (_u *OrganizationUpdateOne) ClearDirectoryMemberships() *OrganizationUpdateOne { - _u.mutation.ClearDirectoryMemberships() - return _u -} - -// RemoveDirectoryMembershipIDs removes the "directory_memberships" edge to DirectoryMembership entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDirectoryMembershipIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDirectoryMembershipIDs(ids...) - return _u -} - -// RemoveDirectoryMemberships removes "directory_memberships" edges to DirectoryMembership entities. -func (_u *OrganizationUpdateOne) RemoveDirectoryMemberships(v ...*DirectoryMembership) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobCreatorsTable, + Columns: []string{organization.ScheduledJobCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveDirectoryMembershipIDs(ids...) -} - -// ClearDirectorySyncRuns clears all "directory_sync_runs" edges to the DirectorySyncRun entity. -func (_u *OrganizationUpdateOne) ClearDirectorySyncRuns() *OrganizationUpdateOne { - _u.mutation.ClearDirectorySyncRuns() - return _u -} - -// RemoveDirectorySyncRunIDs removes the "directory_sync_runs" edge to DirectorySyncRun entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDirectorySyncRunIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDirectorySyncRunIDs(ids...) - return _u -} - -// RemoveDirectorySyncRuns removes "directory_sync_runs" edges to DirectorySyncRun entities. -func (_u *OrganizationUpdateOne) RemoveDirectorySyncRuns(v ...*DirectorySyncRun) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.ScheduledJobRunCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDirectorySyncRunIDs(ids...) -} - -// ClearDiscussions clears all "discussions" edges to the Discussion entity. -func (_u *OrganizationUpdateOne) ClearDiscussions() *OrganizationUpdateOne { - _u.mutation.ClearDiscussions() - return _u -} - -// RemoveDiscussionIDs removes the "discussions" edge to Discussion entities by IDs. -func (_u *OrganizationUpdateOne) RemoveDiscussionIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveDiscussionIDs(ids...) - return _u -} - -// RemoveDiscussions removes "discussions" edges to Discussion entities. -func (_u *OrganizationUpdateOne) RemoveDiscussions(v ...*Discussion) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedScheduledJobRunCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobRunCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveDiscussionIDs(ids...) -} - -// ClearVendorScoringConfigs clears all "vendor_scoring_configs" edges to the VendorScoringConfig entity. -func (_u *OrganizationUpdateOne) ClearVendorScoringConfigs() *OrganizationUpdateOne { - _u.mutation.ClearVendorScoringConfigs() - return _u -} - -// RemoveVendorScoringConfigIDs removes the "vendor_scoring_configs" edge to VendorScoringConfig entities by IDs. -func (_u *OrganizationUpdateOne) RemoveVendorScoringConfigIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveVendorScoringConfigIDs(ids...) - return _u -} - -// RemoveVendorScoringConfigs removes "vendor_scoring_configs" edges to VendorScoringConfig entities. -func (_u *OrganizationUpdateOne) RemoveVendorScoringConfigs(v ...*VendorScoringConfig) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.ScheduledJobRunCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.ScheduledJobRunCreatorsTable, + Columns: []string{organization.ScheduledJobRunCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return _u.RemoveVendorScoringConfigIDs(ids...) -} - -// ClearVendorRiskScores clears all "vendor_risk_scores" edges to the VendorRiskScore entity. -func (_u *OrganizationUpdateOne) ClearVendorRiskScores() *OrganizationUpdateOne { - _u.mutation.ClearVendorRiskScores() - return _u -} - -// RemoveVendorRiskScoreIDs removes the "vendor_risk_scores" edge to VendorRiskScore entities by IDs. -func (_u *OrganizationUpdateOne) RemoveVendorRiskScoreIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveVendorRiskScoreIDs(ids...) - return _u -} - -// RemoveVendorRiskScores removes "vendor_risk_scores" edges to VendorRiskScore entities. -func (_u *OrganizationUpdateOne) RemoveVendorRiskScores(v ...*VendorRiskScore) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if _u.mutation.StandardCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveVendorRiskScoreIDs(ids...) -} - -// ClearMembers clears all "members" edges to the OrgMembership entity. -func (_u *OrganizationUpdateOne) ClearMembers() *OrganizationUpdateOne { - _u.mutation.ClearMembers() - return _u -} - -// RemoveMemberIDs removes the "members" edge to OrgMembership entities by IDs. -func (_u *OrganizationUpdateOne) RemoveMemberIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveMemberIDs(ids...) - return _u -} - -// RemoveMembers removes "members" edges to OrgMembership entities. -func (_u *OrganizationUpdateOne) RemoveMembers(v ...*OrgMembership) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID + if nodes := _u.mutation.RemovedStandardCreatorsIDs(); len(nodes) > 0 && !_u.mutation.StandardCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return _u.RemoveMemberIDs(ids...) -} - -// Where appends a list predicates to the OrganizationUpdate builder. -func (_u *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne { - _u.mutation.Where(ps...) - return _u -} - -// Select allows selecting one or more fields (columns) of the returned entity. -// The default is selecting all fields defined in the entity schema. -func (_u *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne { - _u.fields = append([]string{field}, fields...) - return _u -} - -// Save executes the query and returns the updated Organization entity. -func (_u *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error) { - if err := _u.defaults(); err != nil { - return nil, err + if nodes := _u.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.StandardCreatorsTable, + Columns: []string{organization.StandardCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubcontrolCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) -} - -// SaveX is like Save, but panics if an error occurs. -func (_u *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization { - node, err := _u.Save(ctx) - if err != nil { - panic(err) + if nodes := _u.mutation.RemovedSubcontrolCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubcontrolCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return node -} - -// Exec executes the query on the entity. -func (_u *OrganizationUpdateOne) Exec(ctx context.Context) error { - _, err := _u.Save(ctx) - return err -} - -// ExecX is like Exec, but panics if an error occurs. -func (_u *OrganizationUpdateOne) ExecX(ctx context.Context) { - if err := _u.Exec(ctx); err != nil { - panic(err) + if nodes := _u.mutation.SubcontrolCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubcontrolCreatorsTable, + Columns: []string{organization.SubcontrolCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } -} - -// defaults sets the default values of the builder before save. -func (_u *OrganizationUpdateOne) defaults() error { - if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { - if organization.UpdateDefaultUpdatedAt == nil { - return fmt.Errorf("generated: uninitialized organization.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + if _u.mutation.SubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, } - v := organization.UpdateDefaultUpdatedAt() - _u.mutation.SetUpdatedAt(v) + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - return nil -} - -// check runs all checks and user-defined validators on the builder. -func (_u *OrganizationUpdateOne) check() error { - if v, ok := _u.mutation.DisplayName(); ok { - if err := organization.DisplayNameValidator(v); err != nil { - return &ValidationError{Name: "display_name", err: fmt.Errorf(`generated: validator failed for field "Organization.display_name": %w`, err)} + if nodes := _u.mutation.RemovedSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if v, ok := _u.mutation.AvatarRemoteURL(); ok { - if err := organization.AvatarRemoteURLValidator(v); err != nil { - return &ValidationError{Name: "avatar_remote_url", err: fmt.Errorf(`generated: validator failed for field "Organization.avatar_remote_url": %w`, err)} + if nodes := _u.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubprocessorCreatorsTable, + Columns: []string{organization.SubprocessorCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - return nil -} - -// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. -func (_u *OrganizationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *OrganizationUpdateOne { - _u.modifiers = append(_u.modifiers, modifiers...) - return _u -} - -func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organization, err error) { - if err := _u.check(); err != nil { - return _node, err + if _u.mutation.SubscriberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - _spec := sqlgraph.NewUpdateSpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) - id, ok := _u.mutation.ID() - if !ok { - return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Organization.id" for update`)} + if nodes := _u.mutation.RemovedSubscriberCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubscriberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - _spec.Node.ID.Value = id - if fields := _u.fields; len(fields) > 0 { - _spec.Node.Columns = make([]string, 0, len(fields)) - _spec.Node.Columns = append(_spec.Node.Columns, organization.FieldID) - for _, f := range fields { - if !organization.ValidColumn(f) { - return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} - } - if f != organization.FieldID { - _spec.Node.Columns = append(_spec.Node.Columns, f) - } + if nodes := _u.mutation.SubscriberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SubscriberCreatorsTable, + Columns: []string{organization.SubscriberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if ps := _u.mutation.predicates; len(ps) > 0 { - _spec.Predicate = func(selector *sql.Selector) { - for i := range ps { - ps[i](selector) - } + if _u.mutation.SystemDetailCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.CreatedAtCleared() { - _spec.ClearField(organization.FieldCreatedAt, field.TypeTime) + if nodes := _u.mutation.RemovedSystemDetailCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SystemDetailCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.UpdatedAt(); ok { - _spec.SetField(organization.FieldUpdatedAt, field.TypeTime, value) + if nodes := _u.mutation.SystemDetailCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.SystemDetailCreatorsTable, + Columns: []string{organization.SystemDetailCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.UpdatedAtCleared() { - _spec.ClearField(organization.FieldUpdatedAt, field.TypeTime) + if _u.mutation.TagDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedTagDefinitionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TagDefinitionCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.TagDefinitionCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TagDefinitionCreatorsTable, + Columns: []string{organization.TagDefinitionCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.CreatedByCleared() { - _spec.ClearField(organization.FieldCreatedBy, field.TypeString) + if _u.mutation.TaskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.UpdatedBy(); ok { - _spec.SetField(organization.FieldUpdatedBy, field.TypeString, value) + if nodes := _u.mutation.RemovedTaskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TaskCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.UpdatedByCleared() { - _spec.ClearField(organization.FieldUpdatedBy, field.TypeString) + if nodes := _u.mutation.TaskCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TaskCreatorsTable, + Columns: []string{organization.TaskCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if value, ok := _u.mutation.DeletedAt(); ok { - _spec.SetField(organization.FieldDeletedAt, field.TypeTime, value) + if _u.mutation.TemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.DeletedAtCleared() { - _spec.ClearField(organization.FieldDeletedAt, field.TypeTime) + if nodes := _u.mutation.RemovedTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TemplateCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.DeletedBy(); ok { - _spec.SetField(organization.FieldDeletedBy, field.TypeString, value) + if nodes := _u.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TemplateCreatorsTable, + Columns: []string{organization.TemplateCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.DeletedByCleared() { - _spec.ClearField(organization.FieldDeletedBy, field.TypeString) + if _u.mutation.TrustCenterCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.Tags(); ok { - _spec.SetField(organization.FieldTags, field.TypeJSON, value) + if nodes := _u.mutation.RemovedTrustCenterCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.AppendedTags(); ok { - _spec.AddModifier(func(u *sql.UpdateBuilder) { - sqljson.Append(u, organization.FieldTags, value) - }) + if nodes := _u.mutation.TrustCenterCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterCreatorsTable, + Columns: []string{organization.TrustCenterCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TagsCleared() { - _spec.ClearField(organization.FieldTags, field.TypeJSON) + if _u.mutation.TrustCenterComplianceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.DisplayName(); ok { - _spec.SetField(organization.FieldDisplayName, field.TypeString, value) + if nodes := _u.mutation.RemovedTrustCenterComplianceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterComplianceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.Description(); ok { - _spec.SetField(organization.FieldDescription, field.TypeString, value) + if nodes := _u.mutation.TrustCenterComplianceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterComplianceCreatorsTable, + Columns: []string{organization.TrustCenterComplianceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.DescriptionCleared() { - _spec.ClearField(organization.FieldDescription, field.TypeString) + if _u.mutation.TrustCenterDocCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.PersonalOrgCleared() { - _spec.ClearField(organization.FieldPersonalOrg, field.TypeBool) + if nodes := _u.mutation.RemovedTrustCenterDocCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterDocCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.AvatarRemoteURL(); ok { - _spec.SetField(organization.FieldAvatarRemoteURL, field.TypeString, value) + if nodes := _u.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterDocCreatorsTable, + Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.AvatarRemoteURLCleared() { - _spec.ClearField(organization.FieldAvatarRemoteURL, field.TypeString) + if _u.mutation.TrustCenterEntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.AvatarUpdatedAt(); ok { - _spec.SetField(organization.FieldAvatarUpdatedAt, field.TypeTime, value) + if nodes := _u.mutation.RemovedTrustCenterEntityCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterEntityCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.AvatarUpdatedAtCleared() { - _spec.ClearField(organization.FieldAvatarUpdatedAt, field.TypeTime) + if nodes := _u.mutation.TrustCenterEntityCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterEntityCreatorsTable, + Columns: []string{organization.TrustCenterEntityCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if value, ok := _u.mutation.DedicatedDb(); ok { - _spec.SetField(organization.FieldDedicatedDb, field.TypeBool, value) + if _u.mutation.TrustCenterFaqCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if value, ok := _u.mutation.StripeCustomerID(); ok { - _spec.SetField(organization.FieldStripeCustomerID, field.TypeString, value) + if nodes := _u.mutation.RemovedTrustCenterFaqCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterFaqCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if _u.mutation.StripeCustomerIDCleared() { - _spec.ClearField(organization.FieldStripeCustomerID, field.TypeString) + if nodes := _u.mutation.TrustCenterFaqCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.TrustCenterFaqCreatorsTable, + Columns: []string{organization.TrustCenterFaqCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + edge.Schema = _u.schemaConfig.Group + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ControlCreatorsCleared() { + if _u.mutation.TrustCenterNdaRequestCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14073,12 +23649,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlCreatorsCleared() { + if nodes := _u.mutation.RemovedTrustCenterNdaRequestCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterNdaRequestCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14090,12 +23666,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ControlCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCenterNdaRequestCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlCreatorsTable, - Columns: []string{organization.ControlCreatorsColumn}, + Table: organization.TrustCenterNdaRequestCreatorsTable, + Columns: []string{organization.TrustCenterNdaRequestCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14107,12 +23683,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ControlImplementationCreatorsCleared() { + if _u.mutation.TrustCenterSubprocessorCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14121,12 +23697,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedControlImplementationCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlImplementationCreatorsCleared() { + if nodes := _u.mutation.RemovedTrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterSubprocessorCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14138,12 +23714,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ControlImplementationCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlImplementationCreatorsTable, - Columns: []string{organization.ControlImplementationCreatorsColumn}, + Table: organization.TrustCenterSubprocessorCreatorsTable, + Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14155,12 +23731,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ControlObjectiveCreatorsCleared() { + if _u.mutation.TrustCenterWatermarkConfigCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14169,12 +23745,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedControlObjectiveCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ControlObjectiveCreatorsCleared() { + if nodes := _u.mutation.RemovedTrustCenterWatermarkConfigCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterWatermarkConfigCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14186,12 +23762,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ControlObjectiveCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCenterWatermarkConfigCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ControlObjectiveCreatorsTable, - Columns: []string{organization.ControlObjectiveCreatorsColumn}, + Table: organization.TrustCenterWatermarkConfigCreatorsTable, + Columns: []string{organization.TrustCenterWatermarkConfigCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14203,12 +23779,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EvidenceCreatorsCleared() { + if _u.mutation.UserCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14217,12 +23793,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedEvidenceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EvidenceCreatorsCleared() { + if nodes := _u.mutation.RemovedUserCreatorsIDs(); len(nodes) > 0 && !_u.mutation.UserCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14234,12 +23810,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.EvidenceCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.EvidenceCreatorsTable, - Columns: []string{organization.EvidenceCreatorsColumn}, + Table: organization.UserCreatorsTable, + Columns: []string{organization.UserCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14251,12 +23827,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.AssetCreatorsCleared() { + if _u.mutation.UserSettingCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14265,12 +23841,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedAssetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AssetCreatorsCleared() { + if nodes := _u.mutation.RemovedUserSettingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.UserSettingCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14282,12 +23858,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.AssetCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserSettingCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.AssetCreatorsTable, - Columns: []string{organization.AssetCreatorsColumn}, + Table: organization.UserSettingCreatorsTable, + Columns: []string{organization.UserSettingCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14299,12 +23875,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.FindingCreatorsCleared() { + if _u.mutation.VendorRiskScoreCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14313,12 +23889,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedFindingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.FindingCreatorsCleared() { + if nodes := _u.mutation.RemovedVendorRiskScoreCreatorsIDs(); len(nodes) > 0 && !_u.mutation.VendorRiskScoreCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14330,12 +23906,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.FindingCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.VendorRiskScoreCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.FindingCreatorsTable, - Columns: []string{organization.FindingCreatorsColumn}, + Table: organization.VendorRiskScoreCreatorsTable, + Columns: []string{organization.VendorRiskScoreCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14395,12 +23971,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.GroupCreatorsCleared() { + if _u.mutation.WorkflowAssignmentCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14409,12 +23985,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedGroupCreatorsIDs(); len(nodes) > 0 && !_u.mutation.GroupCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowAssignmentCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14426,12 +24002,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.GroupCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowAssignmentCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.GroupCreatorsTable, - Columns: []string{organization.GroupCreatorsColumn}, + Table: organization.WorkflowAssignmentCreatorsTable, + Columns: []string{organization.WorkflowAssignmentCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14443,12 +24019,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.InternalPolicyCreatorsCleared() { + if _u.mutation.WorkflowAssignmentTargetCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14457,12 +24033,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedInternalPolicyCreatorsIDs(); len(nodes) > 0 && !_u.mutation.InternalPolicyCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowAssignmentTargetCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowAssignmentTargetCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14474,12 +24050,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.InternalPolicyCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowAssignmentTargetCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.InternalPolicyCreatorsTable, - Columns: []string{organization.InternalPolicyCreatorsColumn}, + Table: organization.WorkflowAssignmentTargetCreatorsTable, + Columns: []string{organization.WorkflowAssignmentTargetCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14491,12 +24067,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.MappedControlCreatorsCleared() { + if _u.mutation.WorkflowDefinitionCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14505,12 +24081,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedMappedControlCreatorsIDs(); len(nodes) > 0 && !_u.mutation.MappedControlCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowDefinitionCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowDefinitionCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14522,12 +24098,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.MappedControlCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowDefinitionCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.MappedControlCreatorsTable, - Columns: []string{organization.MappedControlCreatorsColumn}, + Table: organization.WorkflowDefinitionCreatorsTable, + Columns: []string{organization.WorkflowDefinitionCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14539,12 +24115,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.NarrativeCreatorsCleared() { + if _u.mutation.WorkflowEventCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14553,12 +24129,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedNarrativeCreatorsIDs(); len(nodes) > 0 && !_u.mutation.NarrativeCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowEventCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowEventCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14570,12 +24146,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.NarrativeCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowEventCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.NarrativeCreatorsTable, - Columns: []string{organization.NarrativeCreatorsColumn}, + Table: organization.WorkflowEventCreatorsTable, + Columns: []string{organization.WorkflowEventCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14587,12 +24163,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ProcedureCreatorsCleared() { + if _u.mutation.WorkflowInstanceCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14601,12 +24177,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedProcedureCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProcedureCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowInstanceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowInstanceCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14618,12 +24194,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ProcedureCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowInstanceCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProcedureCreatorsTable, - Columns: []string{organization.ProcedureCreatorsColumn}, + Table: organization.WorkflowInstanceCreatorsTable, + Columns: []string{organization.WorkflowInstanceCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14635,12 +24211,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ProgramCreatorsCleared() { + if _u.mutation.WorkflowObjectRefCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14649,12 +24225,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedProgramCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ProgramCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowObjectRefCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowObjectRefCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14666,12 +24242,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ProgramCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowObjectRefCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ProgramCreatorsTable, - Columns: []string{organization.ProgramCreatorsColumn}, + Table: organization.WorkflowObjectRefCreatorsTable, + Columns: []string{organization.WorkflowObjectRefCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14683,12 +24259,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.RiskCreatorsCleared() { + if _u.mutation.WorkflowProposalCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14697,12 +24273,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedRiskCreatorsIDs(); len(nodes) > 0 && !_u.mutation.RiskCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowProposalCreatorsIDs(); len(nodes) > 0 && !_u.mutation.WorkflowProposalCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14714,12 +24290,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RiskCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowProposalCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.RiskCreatorsTable, - Columns: []string{organization.RiskCreatorsColumn}, + Table: organization.WorkflowProposalCreatorsTable, + Columns: []string{organization.WorkflowProposalCreatorsColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14731,12 +24307,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.IdentityHolderCreatorsCleared() { + if _u.mutation.CampaignsManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14745,12 +24321,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedIdentityHolderCreatorsIDs(); len(nodes) > 0 && !_u.mutation.IdentityHolderCreatorsCleared() { + if nodes := _u.mutation.RemovedCampaignsManagerIDs(); len(nodes) > 0 && !_u.mutation.CampaignsManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14762,12 +24338,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.IdentityHolderCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CampaignsManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.IdentityHolderCreatorsTable, - Columns: []string{organization.IdentityHolderCreatorsColumn}, + Table: organization.CampaignsManagerTable, + Columns: []string{organization.CampaignsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14779,12 +24355,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ScheduledJobCreatorsCleared() { + if _u.mutation.ComplianceManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14793,12 +24369,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedScheduledJobCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ScheduledJobCreatorsCleared() { + if nodes := _u.mutation.RemovedComplianceManagerIDs(); len(nodes) > 0 && !_u.mutation.ComplianceManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14810,12 +24386,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ScheduledJobCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.ComplianceManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ScheduledJobCreatorsTable, - Columns: []string{organization.ScheduledJobCreatorsColumn}, + Table: organization.ComplianceManagerTable, + Columns: []string{organization.ComplianceManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14827,12 +24403,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.StandardCreatorsCleared() { + if _u.mutation.GroupManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14841,12 +24417,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedStandardCreatorsIDs(); len(nodes) > 0 && !_u.mutation.StandardCreatorsCleared() { + if nodes := _u.mutation.RemovedGroupManagerIDs(); len(nodes) > 0 && !_u.mutation.GroupManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14858,12 +24434,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.StandardCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.GroupManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.StandardCreatorsTable, - Columns: []string{organization.StandardCreatorsColumn}, + Table: organization.GroupManagerTable, + Columns: []string{organization.GroupManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14875,12 +24451,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TemplateCreatorsCleared() { + if _u.mutation.PoliciesManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14889,12 +24465,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTemplateCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TemplateCreatorsCleared() { + if nodes := _u.mutation.RemovedPoliciesManagerIDs(); len(nodes) > 0 && !_u.mutation.PoliciesManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14906,12 +24482,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TemplateCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PoliciesManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TemplateCreatorsTable, - Columns: []string{organization.TemplateCreatorsColumn}, + Table: organization.PoliciesManagerTable, + Columns: []string{organization.PoliciesManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14923,12 +24499,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.SubprocessorCreatorsCleared() { + if _u.mutation.RegistryManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14937,12 +24513,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.SubprocessorCreatorsCleared() { + if nodes := _u.mutation.RemovedRegistryManagerIDs(); len(nodes) > 0 && !_u.mutation.RegistryManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14954,12 +24530,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.SubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.RegistryManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.SubprocessorCreatorsTable, - Columns: []string{organization.SubprocessorCreatorsColumn}, + Table: organization.RegistryManagerTable, + Columns: []string{organization.RegistryManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14971,12 +24547,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TrustCenterDocCreatorsCleared() { + if _u.mutation.RiskManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -14985,12 +24561,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTrustCenterDocCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterDocCreatorsCleared() { + if nodes := _u.mutation.RemovedRiskManagerIDs(); len(nodes) > 0 && !_u.mutation.RiskManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15002,12 +24578,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TrustCenterDocCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.RiskManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterDocCreatorsTable, - Columns: []string{organization.TrustCenterDocCreatorsColumn}, + Table: organization.RiskManagerTable, + Columns: []string{organization.RiskManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15019,12 +24595,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.TrustCenterSubprocessorCreatorsCleared() { + if _u.mutation.TrustCenterManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15033,12 +24609,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedTrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterSubprocessorCreatorsCleared() { + if nodes := _u.mutation.RemovedTrustCenterManagerIDs(); len(nodes) > 0 && !_u.mutation.TrustCenterManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15050,12 +24626,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.TrustCenterSubprocessorCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.TrustCenterManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.TrustCenterSubprocessorCreatorsTable, - Columns: []string{organization.TrustCenterSubprocessorCreatorsColumn}, + Table: organization.TrustCenterManagerTable, + Columns: []string{organization.TrustCenterManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15067,12 +24643,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.ActionPlanCreatorsCleared() { + if _u.mutation.WorkflowsManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15081,12 +24657,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati edge.Schema = _u.schemaConfig.Group _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.RemovedActionPlanCreatorsIDs(); len(nodes) > 0 && !_u.mutation.ActionPlanCreatorsCleared() { + if nodes := _u.mutation.RemovedWorkflowsManagerIDs(); len(nodes) > 0 && !_u.mutation.WorkflowsManagerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), @@ -15098,12 +24674,12 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := _u.mutation.ActionPlanCreatorsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.WorkflowsManagerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: organization.ActionPlanCreatorsTable, - Columns: []string{organization.ActionPlanCreatorsColumn}, + Table: organization.WorkflowsManagerTable, + Columns: []string{organization.WorkflowsManagerColumn}, Bidi: false, Target: &sqlgraph.EdgeTarget{ IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), diff --git a/internal/ent/generated/orgmembership/orgmembership.go b/internal/ent/generated/orgmembership/orgmembership.go index 8407bf79a9..cdbd05f1fe 100644 --- a/internal/ent/generated/orgmembership/orgmembership.go +++ b/internal/ent/generated/orgmembership/orgmembership.go @@ -113,7 +113,7 @@ const DefaultRole enums.Role = "MEMBER" // RoleValidator is a validator for the "role" field enum values. It is called by the builders before save. func RoleValidator(r enums.Role) error { switch r.String() { - case "ADMIN", "MEMBER", "OWNER": + case "ADMIN", "MEMBER", "OWNER", "SUPER_ADMIN", "AUDITOR": return nil default: return fmt.Errorf("orgmembership: invalid enum value for role field: %q", r) diff --git a/internal/ent/generated/programmembership/programmembership.go b/internal/ent/generated/programmembership/programmembership.go index 7d82369810..4738626496 100644 --- a/internal/ent/generated/programmembership/programmembership.go +++ b/internal/ent/generated/programmembership/programmembership.go @@ -120,7 +120,7 @@ const DefaultRole enums.Role = "MEMBER" // RoleValidator is a validator for the "role" field enum values. It is called by the builders before save. func RoleValidator(r enums.Role) error { switch r.String() { - case "ADMIN", "MEMBER": + case "ADMIN", "MEMBER", "AUDITOR": return nil default: return fmt.Errorf("programmembership: invalid enum value for role field: %q", r) diff --git a/internal/ent/generated/workflowproposal/workflowproposal.go b/internal/ent/generated/workflowproposal/workflowproposal.go index 61e2af5281..89fa24b436 100644 --- a/internal/ent/generated/workflowproposal/workflowproposal.go +++ b/internal/ent/generated/workflowproposal/workflowproposal.go @@ -124,8 +124,9 @@ func ValidColumn(column string) bool { // // import _ "github.com/theopenlane/core/internal/ent/generated/runtime" var ( - Hooks [6]ent.Hook + Hooks [7]ent.Hook Interceptors [2]ent.Interceptor + Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. diff --git a/internal/ent/generated/workflowproposal_query.go b/internal/ent/generated/workflowproposal_query.go index f10823db84..2d570d52f4 100644 --- a/internal/ent/generated/workflowproposal_query.go +++ b/internal/ent/generated/workflowproposal_query.go @@ -5,6 +5,7 @@ package generated import ( "context" "database/sql/driver" + "errors" "fmt" "math" @@ -491,6 +492,12 @@ func (_q *WorkflowProposalQuery) prepareQuery(ctx context.Context) error { } _q.sql = prev } + if workflowproposal.Policy == nil { + return errors.New("generated: uninitialized workflowproposal.Policy (forgotten import generated/runtime?)") + } + if err := workflowproposal.Policy.EvalQuery(ctx, _q); err != nil { + return err + } return nil } diff --git a/internal/ent/historygenerated/assessmenthistory.go b/internal/ent/historygenerated/assessmenthistory.go index 5d7f4675c1..a902ce3311 100644 --- a/internal/ent/historygenerated/assessmenthistory.go +++ b/internal/ent/historygenerated/assessmenthistory.go @@ -42,7 +42,7 @@ type AssessmentHistory struct { DeletedBy string `json:"deleted_by,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object + // the ID of the organization owner of the object OwnerID string `json:"owner_id,omitempty"` // indicates if the record is owned by the the openlane system and not by an organization SystemOwned bool `json:"system_owned,omitempty"` diff --git a/internal/ent/historygenerated/migrate/schema.go b/internal/ent/historygenerated/migrate/schema.go index 9eaf03ca7b..c26b9eb479 100644 --- a/internal/ent/historygenerated/migrate/schema.go +++ b/internal/ent/historygenerated/migrate/schema.go @@ -1824,7 +1824,7 @@ var ( {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "created_by", Type: field.TypeString, Nullable: true}, {Name: "updated_by", Type: field.TypeString, Nullable: true}, - {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "OWNER"}, Default: "MEMBER"}, + {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "OWNER", "SUPER_ADMIN", "AUDITOR"}, Default: "MEMBER"}, {Name: "organization_id", Type: field.TypeString}, {Name: "user_id", Type: field.TypeString}, } @@ -2156,7 +2156,7 @@ var ( {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "created_by", Type: field.TypeString, Nullable: true}, {Name: "updated_by", Type: field.TypeString, Nullable: true}, - {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER"}, Default: "MEMBER"}, + {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "AUDITOR"}, Default: "MEMBER"}, {Name: "program_id", Type: field.TypeString}, {Name: "user_id", Type: field.TypeString}, } diff --git a/internal/ent/historygenerated/orgmembershiphistory/orgmembershiphistory.go b/internal/ent/historygenerated/orgmembershiphistory/orgmembershiphistory.go index ed4cb3c2f1..34f5b47295 100644 --- a/internal/ent/historygenerated/orgmembershiphistory/orgmembershiphistory.go +++ b/internal/ent/historygenerated/orgmembershiphistory/orgmembershiphistory.go @@ -105,7 +105,7 @@ const DefaultRole enums.Role = "MEMBER" // RoleValidator is a validator for the "role" field enum values. It is called by the builders before save. func RoleValidator(r enums.Role) error { switch r.String() { - case "ADMIN", "MEMBER", "OWNER": + case "ADMIN", "MEMBER", "OWNER", "SUPER_ADMIN", "AUDITOR": return nil default: return fmt.Errorf("orgmembershiphistory: invalid enum value for role field: %q", r) diff --git a/internal/ent/historygenerated/programmembershiphistory/programmembershiphistory.go b/internal/ent/historygenerated/programmembershiphistory/programmembershiphistory.go index 74415b76b6..f0a72ba9ba 100644 --- a/internal/ent/historygenerated/programmembershiphistory/programmembershiphistory.go +++ b/internal/ent/historygenerated/programmembershiphistory/programmembershiphistory.go @@ -105,7 +105,7 @@ const DefaultRole enums.Role = "MEMBER" // RoleValidator is a validator for the "role" field enum values. It is called by the builders before save. func RoleValidator(r enums.Role) error { switch r.String() { - case "ADMIN", "MEMBER": + case "ADMIN", "MEMBER", "AUDITOR": return nil default: return fmt.Errorf("programmembershiphistory: invalid enum value for role field: %q", r) diff --git a/internal/ent/hooks/apitoken.go b/internal/ent/hooks/apitoken.go index ee9d12f823..0a9064516d 100644 --- a/internal/ent/hooks/apitoken.go +++ b/internal/ent/hooks/apitoken.go @@ -2,6 +2,7 @@ package hooks import ( "context" + "fmt" "time" "entgo.io/ent" @@ -11,6 +12,7 @@ import ( "github.com/theopenlane/iam/auth" "github.com/theopenlane/core/common/models" + fgamodel "github.com/theopenlane/core/fga/model" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/hook" "github.com/theopenlane/core/pkg/logx" @@ -57,7 +59,7 @@ func HookCreateAPIToken() ent.Hook { } // create the relationship tuples in fga for the token - tuples, err := createScopeTuples(token.Scopes, orgID, token.ID) + tuples, err := createScopeTuples(ctx, token.Scopes, orgID, token.ID) if err != nil { return retVal, err } @@ -91,6 +93,24 @@ func HookCreateAPIToken() ent.Hook { func HookUpdateAPIToken() ent.Hook { return hook.On(func(next ent.Mutator) ent.Mutator { return hook.APITokenFunc(func(ctx context.Context, m *generated.APITokenMutation) (generated.Value, error) { + var oldScopes []string + var scopesModified bool + + // Only query old scopes if scopes are being modified and this is an UpdateOne operation + _, scopesModified = m.Scopes() + if !scopesModified { + // check appended + _, scopesModified = m.AppendedScopes() + } + + if scopesModified && m.Op().Is(ent.OpUpdateOne) { + var err error + oldScopes, err = m.OldScopes(ctx) + if err != nil { + return nil, err + } + } + retVal, err := next.Mutate(ctx, m) if err != nil { return nil, err @@ -104,23 +124,31 @@ func HookUpdateAPIToken() ent.Hook { at.Token = redacted - // create the relationship tuples in fga for the token - newScopes, err := getNewScopes(ctx, m) - if err != nil { - return at, err - } + // Only update scope tuples if scopes were modified + if scopesModified { + scopeSet, err := fgamodel.DefaultServiceScopeSet() + if err != nil { + return nil, fmt.Errorf("failed to load available token scopes from model: %w", err) + } - tuples, err := createScopeTuples(newScopes, at.OwnerID, at.ID) - if err != nil { - return retVal, err - } + addedScopes, removedScopes := diffScopes(oldScopes, at.Scopes) - // create the relationship tuples if we have any - if len(tuples) > 0 { - if _, err := m.Authz.WriteTupleKeys(ctx, tuples, nil); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to create relationship tuple") + addTuples, err := scopeTuples(ctx, addedScopes, at.OwnerID, at.ID, scopeSet) + if err != nil { + return nil, err + } - return nil, ErrInternalServerError + removeTuples, err := scopeTuples(ctx, removedScopes, at.OwnerID, at.ID, scopeSet) + if err != nil { + return nil, err + } + + if len(addTuples) > 0 || len(removeTuples) > 0 { + if _, err := m.Authz.WriteTupleKeys(ctx, addTuples, removeTuples); err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to update api token scope tuples") + + return nil, ErrInternalServerError + } } } @@ -129,27 +157,36 @@ func HookUpdateAPIToken() ent.Hook { }, ent.OpUpdate|ent.OpUpdateOne) } -// createScopeTuples creates the relationship tuples for the token -func createScopeTuples(scopes []string, orgID, tokenID string) (tuples []fgax.TupleKey, err error) { - // create the relationship tuples in fga for the token - // TODO (sfunk): this shouldn't be a static list +// / createScopeTuples creates the relationship tuples for the token +func createScopeTuples(ctx context.Context, scopes []string, orgID, tokenID string) ([]fgax.TupleKey, error) { + scopeSet, err := fgamodel.DefaultServiceScopeSet() + if err != nil { + return nil, fmt.Errorf("failed to load available token scopes from model: %w", err) + } + + return scopeTuples(ctx, scopes, orgID, tokenID, scopeSet) +} + +// scopeTuples creates relationship tuples for the given scopes +func scopeTuples(ctx context.Context, scopes []string, orgID, tokenID string, scopeSet map[string]struct{}) ([]fgax.TupleKey, error) { + var tuples []fgax.TupleKey + for _, scope := range scopes { - var relation string - - switch scope { - case "read": - relation = "can_view" - case "write": - relation = "can_edit" - case "delete": - relation = "can_delete" - case "group_manager": - relation = "group_manager" + relation := fgamodel.NormalizeScope(scope) + + if relation == "" { + logx.FromContext(ctx).Warn().Str("scope", scope).Msg("ignoring empty scope on api token") + + continue + } + + if _, ok := scopeSet[relation]; !ok { + return nil, fmt.Errorf("%w: %q (%s)", ErrInvalidScope, scope, relation) } req := fgax.TupleRequest{ SubjectID: tokenID, - SubjectType: "service", + SubjectType: auth.ServiceSubjectType, ObjectID: orgID, ObjectType: generated.TypeOrganization, Relation: relation, @@ -158,30 +195,14 @@ func createScopeTuples(scopes []string, orgID, tokenID string) (tuples []fgax.Tu tuples = append(tuples, fgax.GetTupleKey(req)) } - return + return tuples, nil } -// getNewScopes returns the new scopes that were added to the token during an update -// NOTE: there is an AppendedScopes on the mutation, but this is not populated -// so calculating the new scopes for now -func getNewScopes(ctx context.Context, m *generated.APITokenMutation) ([]string, error) { - scopes, ok := m.Scopes() - if !ok { - return nil, nil - } - - oldScopes, err := m.OldScopes(ctx) - if err != nil { - return nil, err - } - - var newScopes []string +// diffScopes returns the added and removed scopes between two scope slices +func diffScopes(oldScopes, newScopes []string) (added []string, removed []string) { + // lo for the win + added, _ = lo.Difference(newScopes, oldScopes) + removed, _ = lo.Difference(oldScopes, newScopes) - for _, scope := range scopes { - if !lo.Contains(oldScopes, scope) { - newScopes = append(newScopes, scope) - } - } - - return newScopes, nil + return } diff --git a/internal/ent/hooks/authzmutationhelpers.go b/internal/ent/hooks/authzmutationhelpers.go index bedf2f9cfa..d73e0c6b5d 100644 --- a/internal/ent/hooks/authzmutationhelpers.go +++ b/internal/ent/hooks/authzmutationhelpers.go @@ -27,11 +27,11 @@ func GetObjectTypeFromEntMutation(m ent.Mutation) string { return strcase.SnakeCase(m.Type()) } -// getTuplesToAdd is the generic function to get the tuples that need to be added to the authz service based on the edges that were added +// GetTuplesToAdd is the generic function to get the tuples that need to be added to the authz service based on the edges that were added // it is recommend to use the helper functions that call this instead of calling this directly // for example, to add a parent relationship, use createParentTuples, or for an org owner relationship, use createOrgOwnerParentTuple // this takes in the tuple request and sets the subject and subject id based on the edge field and tuple set relation -func getTuplesToAdd(ctx context.Context, m ent.Mutation, tr fgax.TupleRequest, edgeField string) ([]fgax.TupleKey, error) { +func GetTuplesToAdd(ctx context.Context, m ent.Mutation, tr fgax.TupleRequest, edgeField string) ([]fgax.TupleKey, error) { var addTuples []fgax.TupleKey if strings.EqualFold(edgeField, "organization_id") { @@ -75,12 +75,14 @@ func createParentTuples(ctx context.Context, m ent.Mutation, objectID string, pa Relation: fgax.ParentRelation, } - t, err := getTuplesToAdd(ctx, m, tr, parent) + t, err := GetTuplesToAdd(ctx, m, tr, parent) if err != nil { return nil, err } - addTuples = append(addTuples, t...) + if len(t) > 0 { + addTuples = append(addTuples, t...) + } } return addTuples, nil @@ -96,10 +98,10 @@ func createOrgOwnerParentTuple(ctx context.Context, m ent.Mutation, objectID str SubjectType: generated.TypeOrganization, ObjectID: objectID, // this is the object id being created ObjectType: GetObjectTypeFromEntMutation(m), // this is the object type being created - Relation: fgax.ParentRelation, + Relation: fgax.ParentContextRelation, } - t, err := getTuplesToAdd(ctx, m, tr, ownerFieldName) + t, err := GetTuplesToAdd(ctx, m, tr, ownerFieldName) if err != nil { return nil, err } @@ -126,7 +128,7 @@ func createTuplesByRelation(ctx context.Context, m ent.Mutation, objectID string } // this will create tuples such as group:ulid-of-group#member with the relation provided - t, err := getTuplesToAdd(ctx, m, tr, edgeField) + t, err := GetTuplesToAdd(ctx, m, tr, edgeField) if err != nil { return nil, err } @@ -404,35 +406,6 @@ func parseGraphqlInputForEdgeIDs(ctx context.Context, parentField string) ([]str return ids, nil } -// addTokenEditPermissions adds the edit permissions for the api token to the object -func addTokenEditPermissions(ctx context.Context, m generated.Mutation, oID string, objectType string) error { - subjectID, err := auth.GetSubjectIDFromContext(ctx) - if err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("unable to get subject id from context, cannot update token permissions") - - return err - } - - req := fgax.TupleRequest{ - SubjectID: subjectID, - SubjectType: auth.GetAuthzSubjectType(ctx), - Relation: fgax.CanEdit, - ObjectID: oID, - ObjectType: objectType, - } - - logx.FromContext(ctx).Debug().Interface("request", req). - Msg("creating edit tuples for api token") - - if _, err := utils.AuthzClient(ctx, m).WriteTupleKeys(ctx, []fgax.TupleKey{fgax.GetTupleKey(req)}, nil); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to create relationship tuple") - - return ErrInternalServerError - } - - return nil -} - // getOrgMemberID gets the org member id for the user in the organization if they are a member func getOrgMemberID(ctx context.Context, m utils.GenericMutation, userID string, orgID string) (string, error) { // ensure user is a member of the organization diff --git a/internal/ent/hooks/errors.go b/internal/ent/hooks/errors.go index f261bf7220..e21456b760 100644 --- a/internal/ent/hooks/errors.go +++ b/internal/ent/hooks/errors.go @@ -245,6 +245,8 @@ var ( ErrFailedToMergeAttestationPage = errors.New("failed to merge attestation page") // ErrFailedToGenerateAttestationPDF is returned when the attestation PDF output fails ErrFailedToGenerateAttestationPDF = errors.New("failed to generate attestation PDF") + // ErrInvalidScope is returned when a scope is not assignable to service subjects + ErrInvalidScope = errors.New("scope is not assignable to service subjects") ) // IsUniqueConstraintError reports if the error resulted from a DB uniqueness constraint violation. diff --git a/internal/ent/hooks/group.go b/internal/ent/hooks/group.go index 6534d09ce5..c45fff4299 100644 --- a/internal/ent/hooks/group.go +++ b/internal/ent/hooks/group.go @@ -208,12 +208,6 @@ func groupCreateHook(ctx context.Context, m *generated.GroupMutation) error { return nil } - if auth.IsAPITokenAuthentication(ctx) { - if err := addTokenEditPermissions(ctx, m, objID, GetObjectTypeFromEntMutation(m)); err != nil { - return err - } - } - // determine if the group is public publicGroup := true @@ -282,24 +276,13 @@ func createGroupParentTuple(orgID, groupID string, isPublic bool) ([]fgax.TupleK }, } - groupTuple, err := getTupleKeyFromRole(req, fgax.ParentRelation) + groupTuple, err := getTupleKeyFromRole(req, fgax.ParentContextRelation) if err != nil { return nil, err } tuples := []fgax.TupleKey{groupTuple} - reqOwner := fgax.TupleRequest{ - SubjectID: orgID, - SubjectType: generated.TypeOrganization, - SubjectRelation: fgax.OwnerRelation, - ObjectID: groupID, - ObjectType: generated.TypeGroup, - Relation: "parent_admin", - } - - tuples = append(tuples, fgax.GetTupleKey(reqOwner)) - return tuples, nil } diff --git a/internal/ent/hooks/invite.go b/internal/ent/hooks/invite.go index aa5c59955c..1560067bca 100644 --- a/internal/ent/hooks/invite.go +++ b/internal/ent/hooks/invite.go @@ -347,6 +347,7 @@ func validateCanCreateInvite(ctx context.Context, m *generated.InviteMutation) e email, _ := m.Recipient() if err := checkAllowedEmailDomain(email, org.Edges.Setting); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("email", email).Msg("error adding user to organization") return err } diff --git a/internal/ent/hooks/objectownedtuples.go b/internal/ent/hooks/objectownedtuples.go index 9c7e2be02f..019fda1f95 100644 --- a/internal/ent/hooks/objectownedtuples.go +++ b/internal/ent/hooks/objectownedtuples.go @@ -15,8 +15,6 @@ import ( "github.com/theopenlane/core/pkg/logx" ) -type skipCreateUserPermissions func(context.Context, ent.Mutation) bool - // HookObjectOwnedTuples is a hook that adds object owned tuples for the object being created // given a set of parent id fields, it will add the user and parent permissions to the object // on creation @@ -24,7 +22,7 @@ type skipCreateUserPermissions func(context.Context, ent.Mutation) bool // ownerRelation should normally be set to fgax.ParentRelation, but in some cases // this is set to owner to account for different inherited permissions from parent objects // vs. the user/service owner of the object (see notes as an example) -func HookObjectOwnedTuples(parents []string, ownerRelation string, skipCreateUserPermissions skipCreateUserPermissions) ent.Hook { +func HookObjectOwnedTuples(parents []string, ownerRelation string) ent.Hook { return func(next ent.Mutator) ent.Mutator { return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { retVal, err := next.Mutate(ctx, m) @@ -39,7 +37,9 @@ func HookObjectOwnedTuples(parents []string, ownerRelation string, skipCreateUse var addTuples []fgax.TupleKey - if skip := skipCreateUserPermissions(ctx, m); !skip { + objectType := GetObjectTypeFromEntMutation(m) + + if ownerRelation != fgax.ParentRelation { // add user permissions to the object on creation objCaller, ok := auth.CallerFromContext(ctx) if !ok || objCaller == nil { @@ -50,8 +50,8 @@ func HookObjectOwnedTuples(parents []string, ownerRelation string, skipCreateUse userTuple := fgax.GetTupleKey(fgax.TupleRequest{ SubjectID: objCaller.SubjectID, SubjectType: objCaller.SubjectType(), - ObjectID: objectID, // this is the object id being created - ObjectType: GetObjectTypeFromEntMutation(m), // this is the object type being created + ObjectID: objectID, // this is the object id being created + ObjectType: objectType, // this is the object type being created Relation: ownerRelation, }) diff --git a/internal/ent/hooks/organization.go b/internal/ent/hooks/organization.go index 8030a5d5bb..666e7fa2d2 100644 --- a/internal/ent/hooks/organization.go +++ b/internal/ent/hooks/organization.go @@ -7,6 +7,7 @@ import ( "time" "entgo.io/ent" + "entgo.io/ent/dialect/sql" "github.com/samber/lo" "github.com/stripe/stripe-go/v84" @@ -500,6 +501,13 @@ func checkAndUpdateDefaultOrg(ctx context.Context, userID string, oldOrgID strin newDefaultOrgID, err := client. Organization. Query(). + Where( + organization.IDNEQ(oldOrgID), + ). + Order( + // order by personal orgs last so that if there is another org available it will be set as the default instead of the personal org + organization.ByPersonalOrg(sql.OrderAsc()), + ). FirstID(ctx) if err != nil { return "", err @@ -618,11 +626,6 @@ func createOrgMemberOwner(ctx context.Context, oID string, m *generated.Organiza return createParentOrgTuple(ctx, m, parentOrgID, oID) } - // if this was created with an API token, do not create an owner but add the service tuple to fga - if auth.IsAPITokenAuthentication(ctx) { - return addTokenEditPermissions(ctx, m, oID, GetObjectTypeFromEntMutation(m)) - } - // get userID from context userID, err := auth.GetSubjectIDFromContext(ctx) if err != nil { diff --git a/internal/ent/hooks/orgmembers.go b/internal/ent/hooks/orgmembers.go index 654545dc7f..2f6532e878 100644 --- a/internal/ent/hooks/orgmembers.go +++ b/internal/ent/hooks/orgmembers.go @@ -95,6 +95,7 @@ func HookOrgMembers() ent.Hook { } if err := checkAllowedEmailDomain(user.Email, org.Edges.Setting); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("email", user.Email).Msg("error adding user to organization") return nil, err } diff --git a/internal/ent/hooks/orgownedtuples.go b/internal/ent/hooks/orgownedtuples.go index b32be61f2e..dd3fb6187f 100644 --- a/internal/ent/hooks/orgownedtuples.go +++ b/internal/ent/hooks/orgownedtuples.go @@ -4,31 +4,23 @@ import ( "context" "entgo.io/ent" - "github.com/theopenlane/iam/auth" "github.com/theopenlane/iam/fgax" "github.com/theopenlane/core/internal/ent/privacy/utils" "github.com/theopenlane/core/pkg/logx" ) -// OrgOwnedTuplesHookWithAdmin is a hook that adds organization owned tuples for the object being created -// it will add the user and parent (organization owner_id) permissions to the object -// on creation, and will also add an admin user permission to the object -func OrgOwnedTuplesHookWithAdmin() ent.Hook { - return hookOrgOwnedTuples(true) -} - // OrgOwnedTuplesHook is a hook that adds organization owned tuples for the object being created // it will only add the parent organization permissions, and no specific user permissions func OrgOwnedTuplesHook() ent.Hook { - return hookOrgOwnedTuples(false) + return hookOrgOwnedTuples() } // hookOrgOwnedTuples is a hook that adds organization owned tuples for the object being created // it will add the user and parent (organization owner_id) permissions to the object // on creation // by default, it will always add an admin user permission to the object -func hookOrgOwnedTuples(includeAdminRelation bool) ent.Hook { +func hookOrgOwnedTuples() ent.Hook { return func(next ent.Mutator) ent.Mutator { return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { retVal, err := next.Mutate(ctx, m) @@ -43,34 +35,12 @@ func hookOrgOwnedTuples(includeAdminRelation bool) ent.Hook { var addTuples []fgax.TupleKey - // add user and org owner tuples to the object on creation - if m.Op() == ent.OpCreate { - if includeAdminRelation { - orgOwnedCaller, ok := auth.CallerFromContext(ctx) - if !ok || orgOwnedCaller == nil { - return nil, auth.ErrNoAuthUser - } - - // add user permissions to the object as the parent on creation - userTuple := fgax.GetTupleKey(fgax.TupleRequest{ - SubjectID: orgOwnedCaller.SubjectID, - SubjectType: orgOwnedCaller.SubjectType(), - ObjectID: objectID, // this is the object id being created - ObjectType: GetObjectTypeFromEntMutation(m), // this is the object type being created - Relation: fgax.AdminRelation, - }) - - addTuples = append(addTuples, userTuple) - } - - additionalAddTuples, err := createOrgOwnerParentTuple(ctx, m, objectID) - if err != nil { - return nil, err - } - - addTuples = append(addTuples, additionalAddTuples...) + additionalAddTuples, err := createOrgOwnerParentTuple(ctx, m, objectID) + if err != nil { + return nil, err } + addTuples = append(addTuples, additionalAddTuples...) // write the tuples to the authz service if len(addTuples) != 0 { if _, err := utils.AuthzClientFromContext(ctx).WriteTupleKeys(ctx, addTuples, nil); err != nil { diff --git a/internal/ent/hooks/program.go b/internal/ent/hooks/program.go index 5c5a3e320c..219086faa2 100644 --- a/internal/ent/hooks/program.go +++ b/internal/ent/hooks/program.go @@ -6,7 +6,6 @@ import ( "entgo.io/ent" "github.com/theopenlane/iam/auth" - "github.com/theopenlane/iam/fgax" "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/internal/ent/generated" @@ -51,34 +50,6 @@ func programCreateHook(ctx context.Context, m *generated.ProgramMutation) error if err := createProgramMemberAdmin(ctx, objID, m); err != nil { return err } - } else { - if err := addTokenEditPermissions(ctx, m, objID, GetObjectTypeFromEntMutation(m)); err != nil { - return err - } - } - } - - org, orgExists := m.OwnerID() - if exists && orgExists { - req := fgax.TupleRequest{ - SubjectID: org, - SubjectType: generated.TypeOrganization, - ObjectID: objID, - ObjectType: GetObjectTypeFromEntMutation(m), - } - - logx.FromContext(ctx).Debug().Interface("request", req). - Msg("creating parent relationship tuples") - - orgTuple, err := getTupleKeyFromRole(req, fgax.ParentRelation) - if err != nil { - return err - } - - if _, err := m.Authz.WriteTupleKeys(ctx, []fgax.TupleKey{orgTuple}, nil); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to create relationship tuple") - - return ErrInternalServerError } } diff --git a/internal/ent/hooks/tools_test.go b/internal/ent/hooks/tools_test.go index 343e521b45..37c1f260c4 100644 --- a/internal/ent/hooks/tools_test.go +++ b/internal/ent/hooks/tools_test.go @@ -31,7 +31,7 @@ import ( ) const ( - fgaModelFile = "../../../fga/model/model.fga" + fgaModuleFile = "../../../fga/model/fga.mod" ) // TestHookSuite runs all the tests in the TestHookSuite @@ -79,10 +79,13 @@ func (suite *HookTestSuite) setupClient() *generated.Client { require.NoError(suite.T(), err) suite.ofgaTF = fgatest.NewFGATestcontainer(context.Background(), - fgatest.WithModelFile(fgaModelFile), + fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), + fgatest.WithSkipParentContextKinds("organization", "user", "system"), + fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) + ctx := context.Background() fgaClient, err := suite.ofgaTF.NewFgaClient(ctx) diff --git a/internal/ent/hooks/trustcenter.go b/internal/ent/hooks/trustcenter.go index e2efed00ca..d9febed878 100644 --- a/internal/ent/hooks/trustcenter.go +++ b/internal/ent/hooks/trustcenter.go @@ -171,7 +171,7 @@ func HookTrustCenter() ent.Hook { } // create trust center controls by cloning the controls from the trust center standard - if err := controls.CloneTrustCenterControls(ctx); err != nil { + if err := controls.CloneTrustCenterControls(ctx, m); err != nil { logx.FromContext(ctx).Error().Err(err).Msg("failed to clone trust center controls") return nil, ErrInternalServerError diff --git a/internal/ent/hooks/tuples.go b/internal/ent/hooks/tuples.go index b4436e845d..3180d8af40 100644 --- a/internal/ent/hooks/tuples.go +++ b/internal/ent/hooks/tuples.go @@ -119,7 +119,7 @@ func roleToRelation(r enums.Role) (string, error) { switch r { case enums.RoleOwner, enums.RoleAdmin, enums.RoleMember: return strings.ToLower(r.String()), nil - case fgax.ParentRelation: + case fgax.ParentRelation, fgax.ParentContextRelation: return r.String(), nil default: return "", ErrUnsupportedFGARole diff --git a/internal/ent/interceptors/filter.go b/internal/ent/interceptors/filter.go index 1ebdf40254..1f91585f6c 100644 --- a/internal/ent/interceptors/filter.go +++ b/internal/ent/interceptors/filter.go @@ -2,6 +2,7 @@ package interceptors import ( "context" + "errors" "strings" "entgo.io/ent" @@ -48,7 +49,19 @@ func AddIDPredicate(ctx context.Context, q Query) error { // History uses `ref` isHistory := strings.Contains(q.Type(), "History") - objectType := getFGAObjectType(q) + objectType := rule.GetFGAObjectType(q) + + // Never skip the filter for organization queries, as we need to ensure the user has access to the organization itself + isOrganizationQuery := strings.EqualFold(objectType, "organization") + + if !isOrganizationQuery { + // skip filter if the subject has full organization view access for the object type + if err := rule.CheckSubjectScope(ctx, objectType, fgax.CanView, nil); err != nil { + if errors.Is(err, privacy.Allow) { + return nil + } + } + } objectIDs, err := GetAuthorizedObjectIDs(ctx, objectType, fgax.CanView) if err != nil { @@ -98,14 +111,9 @@ func GetAuthorizedObjectIDs(ctx context.Context, queryType string, relation fgax if strings.Contains(queryType, "History") { logx.FromContext(ctx).Debug().Msg("adding history relation to list request") - // this was audit_log_viewer but changed to CanView to be consistent - // if you can view an object, you should be able to see the history of it - // TODO(sfunk): clean-up this in FGA policies - req.Relation = fgax.CanView + req.Relation = fgax.CanViewAuditLog } - logx.FromContext(ctx).Debug().Interface("req", req).Msg("getting authorized object ids") - resp, err := utils.AuthzClientFromContext(ctx).ListObjectsRequest(ctx, req) if err != nil { return []string{}, err @@ -161,7 +169,7 @@ func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Qu return nil, err } - if skipFilter(ctx, skipperFunc...) { + if skipFilter(ctx, q, skipperFunc...) { return next.Query(ctx, query) } @@ -184,9 +192,9 @@ func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Qu return nil, ErrRetrievingObjects } - return filterIDList(ctx, ids, getFGAObjectType(q)) + return filterIDList(ctx, ids, rule.GetFGAObjectType(q)) case ent.OpQueryOnlyID: - allow, err := singleIDCheck(ctx, v, getFGAObjectType(q)) + allow, err := singleIDCheck(ctx, v, rule.GetFGAObjectType(q)) if err != nil { return nil, err } @@ -210,7 +218,7 @@ func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Qu } } -func skipFilter(ctx context.Context, customSkipperFunc ...skipperFunc) bool { +func skipFilter(ctx context.Context, q intercept.Query, customSkipperFunc ...skipperFunc) bool { // by pass checks on invite or pre-allowed request if _, allow := privacy.DecisionFromContext(ctx); allow || rule.IsInternalRequest(ctx) { return true @@ -221,6 +229,17 @@ func skipFilter(ctx context.Context, customSkipperFunc ...skipperFunc) bool { return true } + // skip filter if the subject has full organization view access for the object type + objectType := rule.GetFGAObjectType(q) + + if !strings.EqualFold(objectType, "file") { + if err := rule.CheckSubjectScope(ctx, objectType, fgax.CanView, nil); err != nil { + if errors.Is(err, privacy.Allow) { + return true + } + } + } + // if the custom skipper function is set and returns true, skip the filter for _, f := range customSkipperFunc { if f(ctx) { @@ -275,7 +294,7 @@ func filterListObjects[T any](ctx context.Context, v ent.Value, q intercept.Quer return nil, err } - allowedIDs, err := filterAuthorizedObjectIDs(ctx, getFGAObjectType(q), objectIDs) + allowedIDs, err := filterAuthorizedObjectIDs(ctx, rule.GetFGAObjectType(q), objectIDs) if err != nil { return nil, err } @@ -319,7 +338,7 @@ func singleObjectCheck[T any](ctx context.Context, v ent.Value, q intercept.Quer return nil, err } - allowedIDs, err := filterAuthorizedObjectIDs(ctx, getFGAObjectType(q), objectIDs) + allowedIDs, err := filterAuthorizedObjectIDs(ctx, rule.GetFGAObjectType(q), objectIDs) if err != nil { return nil, err } @@ -333,22 +352,6 @@ func singleObjectCheck[T any](ctx context.Context, v ent.Value, q intercept.Quer return v, nil } -// getFGAObjectType returns the object type for the query -// for membership tables, it will return the type with the membership suffix removed -// e.g. GroupMembership -> Group -func getFGAObjectType(q intercept.Query) string { - // Membership tables should use the object_id field, - // e.g. GroupMembership should use group_id - isMembership := strings.Contains(q.Type(), "Membership") - - objectType := q.Type() - if isMembership { - objectType = strings.ReplaceAll(q.Type(), "Membership", "") - } - - return objectType -} - // getObjectIDFromEntValues extracts the object id from a generic ent value (used for list queries) // this function should be called after the query has been successful to get the returned object ids func getObjectIDsFromEntValues(m ent.Value) ([]string, error) { diff --git a/internal/ent/privacy/policy/base.go b/internal/ent/privacy/policy/base.go index d94807d29f..5af70b968b 100644 --- a/internal/ent/privacy/policy/base.go +++ b/internal/ent/privacy/policy/base.go @@ -19,7 +19,12 @@ var prePolicy = privacy.Policy{ Mutation: privacy.MutationPolicy{ // allow internal requests (used in tests) to proceed to mutate tables rule.AllowIfInternalRequest(), + // deny mutation if missing all modules rule.DenyIfMissingAllModules(), + // deny if the user doesn't have access to the organization + rule.DenyIfNotInOrganization(), + // allow mutation if the api token has the appropriate mutation scope + rule.AllowIfTokenHasMutationScope(), }, } diff --git a/internal/ent/privacy/policy/checks.go b/internal/ent/privacy/policy/checks.go index 49fa8e3475..31ae431b96 100644 --- a/internal/ent/privacy/policy/checks.go +++ b/internal/ent/privacy/policy/checks.go @@ -3,10 +3,9 @@ package policy import ( "context" "errors" + "fmt" "entgo.io/ent" - "entgo.io/ent/dialect/sql" - "github.com/gertd/go-pluralize" "github.com/stoewer/go-strcase" "github.com/theopenlane/iam/auth" "github.com/theopenlane/iam/fgax" @@ -31,6 +30,15 @@ func CheckCreateAccess() privacy.MutationRule { ) } +// CheckServiceCreateAccess checks if the user has access to create an object in the org +// for create operations +func CheckServiceCreateAccess() privacy.MutationRule { + return privacy.OnMutationOperation( + rule.CheckServiceScopeCreationAccess(), + ent.OpCreate, + ) +} + // AllowCreate is mutation that allows any user to create a that mutation type // this is only for the actual mutation type; edges are checked by edge access // hooks @@ -72,7 +80,7 @@ func CanCreateObjectsUnderParents(edges []string) privacy.MutationRuleFunc { if err := CheckEdgesForAddedAccess(ctx, m, edgesToCheck); err != nil { logx.FromContext(ctx).Error().Err(err).Msg("access not allowed to parent, cannot authorize creation") - return privacy.Deny + return privacy.Denyf("user does not have access to parent object, cannot authorize creation") } return privacy.Allow @@ -83,8 +91,15 @@ func CanCreateObjectsUnderParents(edges []string) privacy.MutationRuleFunc { func CheckOrgReadAccess() privacy.QueryRule { return privacy.QueryRuleFunc(func(ctx context.Context, q ent.Query) error { if _, hasAnon := auth.ActiveTrustCenterIDKey.Get(ctx); hasAnon { - return privacy.Deny + return privacy.Denyf("anonymous users cannot access organization data") } + + if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, fgax.CanView, nil); err != nil { + if !errors.Is(err, privacy.Skip) { + return err + } + } + // check if the user has access to view the organization // check the query first for the IDS query, ok := q.(*generated.OrganizationQuery) @@ -106,6 +121,12 @@ func CheckOrgReadAccess() privacy.QueryRule { // some query operations func CheckOrgEditAccess() privacy.QueryRule { return privacy.QueryRuleFunc(func(ctx context.Context, _ ent.Query) error { + if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, fgax.CanEdit, nil); err != nil { + if !errors.Is(err, privacy.Skip) { + return err + } + } + // otherwise check against the current context return rule.CheckCurrentOrgAccess(ctx, nil, fgax.CanEdit) }) @@ -123,6 +144,12 @@ func CheckOrgWriteAccess() privacy.MutationRule { func CheckOrgAccess() privacy.MutationRule { return privacy.MutationRuleFunc(func(ctx context.Context, m ent.Mutation) error { logx.FromContext(ctx).Debug().Msg("checking org read access") + if err := rule.CheckSubjectScope(ctx, m.Type(), fgax.CanView, nil); err != nil { + if !errors.Is(err, privacy.Skip) { + return err + } + } + return rule.CheckCurrentOrgAccess(ctx, m, fgax.CanView) }) } @@ -219,26 +246,42 @@ func checkEdgesEditAccess(ctx context.Context, m ent.Mutation, edges []string, a continue } - // If the object type of the edge to check is an organization, we need to ensure both that - // the object is in the organization and that the user has edit access - // to the organization - if edgeMap.ObjectType == organization.Label { - orgID := actor.OrganizationID - if orgID == "" { - logx.FromContext(ctx).Error().Msg("unable to get organization id from context") + orgID := actor.OrganizationID + if orgID == "" { + logx.FromContext(ctx).Error().Msg("unable to get organization id from context") - return auth.ErrNoAuthUser - } + return auth.ErrNoAuthUser + } + + if edgeMap.ObjectType == organization.Label { + idStr = orgID + } - if err := ensureObjectInOrganization(ctx, m, edge, idStr, orgID); err != nil { + allowScopeCheck := true + if err := rule.EnsureObjectInOrganization(ctx, m, edgeMap.ObjectType, idStr, orgID); err != nil { + if errors.Is(err, privacy.Deny) { logx.FromContext(ctx).Error().Err(err).Msg("object is not part of the organization") - return err + return fmt.Errorf("%s (id: %s) was not found: %w", edgeMap.ObjectType, idStr, generated.ErrPermissionDenied) } + allowScopeCheck = false + } + + // override the id to check if the edge is an organization, as we want to check access to the organization rather than the object + if edgeMap.ObjectType == organization.Label { idStr = orgID } + // check api token scope first, as api tokens will have full access to object types they have scope for + if allowScopeCheck { + if err := rule.CheckSubjectScope(ctx, edgeMap.ObjectType, relationCheck, nil); err != nil { + if errors.Is(err, privacy.Allow) { + return nil + } + } + } + ac := fgax.AccessCheck{ Relation: relationCheck, ObjectID: idStr, @@ -280,47 +323,3 @@ func mapEdgeToObjectType(ctx context.Context, schema string, edge string) authzg return edgeAccess } - -// ensureObjectInOrganization checks if the object is in the organization based on the requested edge -func ensureObjectInOrganization(ctx context.Context, m ent.Mutation, edge string, objectID, orgID string) error { - // also ensure the id is part of the organization - mut, ok := m.(utils.GenericMutation) - if !ok { - logx.FromContext(ctx).Error().Msg("unable to determine access") - return privacy.Denyf("unable to determine access") - } - - // check view access to the organization instead if the edge is an organization - if edge == organization.Label { - if err := rule.CheckCurrentOrgAccess(ctx, m, fgax.CanView); errors.Is(err, privacy.Allow) { - return nil - } - - logx.FromContext(ctx).Error().Msg("user does not have access to the organization") - - return privacy.Denyf("user does not have access to the requested organization") - } - - // check if the object is in the organization - table := pluralize.NewClient().Plural(edge) - query := "SELECT EXISTS (SELECT 1 FROM " + table + " WHERE id = $1 and (owner_id = $2 or owner_id IS NULL))" - - var rows sql.Rows - if err := mut.Client().Driver().Query(ctx, query, []any{objectID, orgID}, &rows); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to check for object in organization") - - return privacy.Denyf("failed to check for object in organization: %v", err) - } - - defer rows.Close() - - if rows.Next() { - var exists bool - if err := rows.Scan(&exists); err == nil && exists { - return nil - } - } - - // fall back to deny if the object is not in the organization - return privacy.Denyf("requested object not in organization") -} diff --git a/internal/ent/privacy/rule/group.go b/internal/ent/privacy/rule/group.go index e97e76ba2d..10deecac7f 100644 --- a/internal/ent/privacy/rule/group.go +++ b/internal/ent/privacy/rule/group.go @@ -2,64 +2,83 @@ package rule import ( "context" + "errors" "fmt" "github.com/stoewer/go-strcase" - "github.com/theopenlane/iam/auth" - "github.com/theopenlane/iam/fgax" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/ent/privacy/utils" "github.com/theopenlane/core/pkg/logx" + "github.com/theopenlane/iam/auth" + "github.com/theopenlane/iam/fgax" ) +// CheckServiceScopeCreationAccess is a wrapper on CheckGroupBasedObjectCreationAccess that indicates to automation +// that only service tokens should be checked for create access +func CheckServiceScopeCreationAccess() privacy.MutationRuleFunc { + return privacy.MutationRuleFunc(func(ctx context.Context, m generated.Mutation) error { + return checkCreateAccess(ctx, m, true) + }) +} + // CheckGroupBasedObjectCreationAccess is a rule that returns allow decision if user has // access to create the given object in the organization func CheckGroupBasedObjectCreationAccess() privacy.MutationRuleFunc { return privacy.MutationRuleFunc(func(ctx context.Context, m generated.Mutation) error { - if m.Op() != generated.OpCreate { - return privacy.Skipf("mutation is not a create operation, skipping") + return checkCreateAccess(ctx, m, false) + }) +} + +func checkCreateAccess(ctx context.Context, m generated.Mutation, serviceOnly bool) error { + op := m.Op() + if err := CheckSubjectScope(ctx, m.Type(), "", &op); err != nil { + if !errors.Is(err, privacy.Skip) { + return err } + } - caller, ok := auth.CallerFromContext(ctx) - if !ok || caller == nil || caller.IsAnonymous() { - logx.FromContext(ctx).Info().Msg("unable to get caller from context") + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil || caller.IsAnonymous() { + logx.FromContext(ctx).Info().Msg("unable to get caller from context") - return auth.ErrNoAuthUser - } + return auth.ErrNoAuthUser + } - if caller.OrganizationID == "" { - return privacy.Skipf("no organization set on request, skipping") - } + if serviceOnly && caller.SubjectType() != auth.ServiceSubjectType { + return privacy.Skipf("caller is not a service token, skipping service scope check") + } - // get the relation, which will be can_create_ - relation := fmt.Sprintf("can_create_%s", strcase.SnakeCase(m.Type())) + if caller.OrganizationID == "" { + return privacy.Skipf("no organization set on request, skipping") + } - ac := fgax.AccessCheck{ - SubjectID: caller.SubjectID, - SubjectType: caller.SubjectType(), - ObjectID: caller.OrganizationID, - ObjectType: generated.TypeOrganization, - Relation: relation, - Context: utils.NewOrganizationContextKey(caller.SubjectEmail), - } + // get the relation, which will be can_create_ + relation := fmt.Sprintf("%s%s", CanCreatePrefix, strcase.SnakeCase(m.Type())) - access, err := utils.AuthzClientFromContext(ctx).CheckAccess(ctx, ac) - if err != nil { - logx.FromContext(ctx).Err(err).Interface("req", ac).Msg("failed to check access") + ac := fgax.AccessCheck{ + SubjectID: caller.SubjectID, + SubjectType: caller.SubjectType(), + ObjectID: caller.OrganizationID, + ObjectType: generated.TypeOrganization, + Relation: relation, + Context: utils.NewOrganizationContextKey(caller.SubjectEmail), + } - return generated.ErrPermissionDenied - } + access, err := utils.AuthzClientFromContext(ctx).CheckAccess(ctx, ac) + if err != nil { + logx.FromContext(ctx).Err(err).Interface("req", ac).Msg("failed to check access") - if !access { - // deny if the user does not have access to create the object - logx.FromContext(ctx).Error().Str("relation", relation).Str("organization_id", caller.OrganizationID).Str("user_id", caller.SubjectID).Str("email", caller.SubjectEmail).Msg("access denied to create object in organization") + return generated.ErrPermissionDenied + } - return generated.ErrPermissionDenied - } + if !access { + // deny if the user does not have access to create the object + logx.FromContext(ctx).Error().Str("relation", relation).Str("organization_id", caller.OrganizationID).Str("user_id", caller.SubjectID).Str("email", caller.SubjectEmail).Msg("access denied to create object in organization") - // if we reach here, user has access to create the object in the organization - return privacy.Allow - }) + return generated.ErrPermissionDenied + } + + // if we reach here, user has access to create the object in the organization + return privacy.Allow } diff --git a/internal/ent/privacy/rule/invite.go b/internal/ent/privacy/rule/invite.go index b54b087aa8..1c41a8191b 100644 --- a/internal/ent/privacy/rule/invite.go +++ b/internal/ent/privacy/rule/invite.go @@ -14,8 +14,10 @@ import ( ) const ( - inviteMemberRelation = "can_invite_members" - inviteAdminRelation = "can_invite_admins" + inviteMemberRelation = "can_invite_members" + inviteAdminRelation = "can_invite_admins" + inviteSuperAdminRelation = "can_invite_super_admins" + inviteAuditors = "can_invite_auditors" ) // CanInviteUsers is a rule that returns allow decision if user has access to invite members or admins to the organization @@ -100,11 +102,17 @@ func getRelationToCheck(ctx context.Context, m *generated.InviteMutation) (strin } } - // allow member to invite members - if strings.EqualFold(role.String(), fgax.MemberRelation) { + switch strings.ToLower(role.String()) { + case strings.ToLower(fgax.MemberRelation): return inviteMemberRelation, nil + case strings.ToLower(fgax.AdminRelation): + return inviteAdminRelation, nil + case strings.ToLower(fgax.SuperAdminRelation): + return inviteSuperAdminRelation, nil + case strings.ToLower(fgax.AuditorRelation): + return inviteAuditors, nil } - // default to admin - return inviteAdminRelation, nil + // default to super admin + return inviteSuperAdminRelation, nil } diff --git a/internal/ent/privacy/rule/organization.go b/internal/ent/privacy/rule/organization.go index 479bdf7df7..d005a1e411 100644 --- a/internal/ent/privacy/rule/organization.go +++ b/internal/ent/privacy/rule/organization.go @@ -33,9 +33,20 @@ func CheckCurrentOrgAccess(ctx context.Context, m ent.Mutation, relation string) return privacy.Allow } + // Check API token scope first if applicable + genericMut, ok := m.(utils.GenericMutation) + if ok { + op := genericMut.Op() + if err := CheckSubjectScope(ctx, genericMut.Type(), relation, &op); err != nil { + if !errors.Is(err, privacy.Skip) { + return err + } + } + } + caller, ok := auth.CallerFromContext(ctx) if ok && caller != nil && caller.OrganizationID != "" { - if relation == fgax.CanView { + if relation == fgax.CanView && !auth.IsAPITokenAuthentication(ctx) { // if the relation is view, we can skip the check return privacy.Allow } diff --git a/internal/ent/privacy/rule/orgowner.go b/internal/ent/privacy/rule/orgowner.go new file mode 100644 index 0000000000..49c0690cc5 --- /dev/null +++ b/internal/ent/privacy/rule/orgowner.go @@ -0,0 +1,242 @@ +package rule + +import ( + "context" + "strings" + + "errors" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/privacy" + "github.com/gertd/go-pluralize" + "github.com/stoewer/go-strcase" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/organization" + "github.com/theopenlane/core/internal/ent/generated/orgmembership" + "github.com/theopenlane/core/internal/ent/generated/trustcenter" + "github.com/theopenlane/core/internal/ent/privacy/utils" + "github.com/theopenlane/core/pkg/logx" + "github.com/theopenlane/iam/auth" + "github.com/theopenlane/iam/fgax" +) + +var skipperType = map[string]struct{}{ + "Onboarding": {}, + "User": {}, + "UserSetting": {}, + "EmailVerificationToken": {}, + "PasswordResetToken": {}, + "TFASetting": {}, + "Webauthn": {}, +} + +// DenyIfNotInOrganization runs to ensure the object being updated is part of the user's authorized organization +func DenyIfNotInOrganization() privacy.MutationRule { + return privacy.MutationRuleFunc(func(ctx context.Context, m ent.Mutation) error { + actor, ok := auth.CallerFromContext(ctx) + if !ok || actor == nil || actor.IsAnonymous() { + logx.FromContext(ctx).Error().Msg("unable to get caller from context") + + return auth.ErrNoAuthUser + } + + orgID := actor.OrganizationID + + if _, ok := skipperType[m.Type()]; ok { + return privacy.Skip + } + + // History happens automatically, there are no external mutations to create history records + if strings.Contains(m.Type(), "History") { + return privacy.Allow + } + + orgMut, ok := m.(*generated.OrganizationMutation) + if ok { + if m.Op().Is(ent.OpCreate) { + // check if the parent org is set first + parentOrgID, ok := orgMut.ParentOrganizationID() + if ok && parentOrgID != "" { + if err := checkOrgAccess(ctx, fgax.CanView, parentOrgID); errors.Is(err, privacy.Allow) { + return nil + } + + return privacy.Denyf("user does not have access to the parent organization") + } + + // if there is no parent org, allow + return privacy.Skip + } + + objID, ok := orgMut.ID() + if !ok || orgID == "" { + return privacy.Skip + } + + if err := EnsureObjectInOrganization(ctx, m, m.Type(), objID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip + } + + membershipMutation, ok := m.(*generated.OrgMembershipMutation) + if ok { + membershipID, ok := membershipMutation.ID() + if !ok || membershipID == "" { + return privacy.Skip + } + + orgMembership, err := membershipMutation.Client().OrgMembership.Get(ctx, membershipID) + if err != nil { + return privacy.Skipf("unable to get org membership: %v", err) + } + + if err := EnsureObjectInOrganization(ctx, m, orgmembership.Label, orgMembership.ID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip + } + + groupMemberMutation, ok := m.(*generated.GroupMembershipMutation) + if ok { + groupMemberID, ok := groupMemberMutation.ID() + if !ok || groupMemberID == "" { + return privacy.Skip + } + + groupMembership, err := groupMemberMutation.Client().GroupMembership.Get(ctx, groupMemberID) + if err != nil { + return privacy.Skipf("unable to get group membership: %v", err) + } + + if err := EnsureObjectInOrganization(ctx, m, "group", groupMembership.GroupID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip + } + + if m.Op().Is(ent.OpCreate) { + return privacy.Skip + } + + mut, ok := m.(utils.GenericMutation) + if !ok { + return privacy.Skip + } + + id, ok := mut.ID() + if !ok { + return privacy.Skip + } + + _, okOrg := m.(utils.OrgOwnedMutation) + if okOrg { + // ensure the object being mutated is in the organization specified in the owner_id field + if err := EnsureObjectInOrganization(ctx, m, m.Type(), id, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip + } + + // ensure the object being mutated is in the organization specified in the owner_id field + if err := EnsureTrustCenterInOrganization(ctx, m, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip + }) +} + +// EnsureObjectInOrganization checks if the object is in the organization +func EnsureObjectInOrganization(ctx context.Context, m ent.Mutation, objectType string, objectID, orgID string) error { + // also ensure the id is part of the organization + mut, ok := m.(utils.GenericMutation) + if !ok { + return privacy.Denyf("unable to determine access") + } + + // check view access to the organization instead if the object is an organization + if strings.EqualFold(objectType, organization.Label) { + if objectID != "" && orgID != objectID { + return privacy.Denyf("user does not have access to the requested organization") + } + + if err := CheckCurrentOrgAccess(ctx, m, fgax.CanView); errors.Is(err, privacy.Allow) { + return nil + } + + return privacy.Denyf("user does not have access to the requested organization") + } + + if strings.EqualFold(objectType, orgmembership.Label) { + if err := CheckCurrentOrgAccess(ctx, m, fgax.CanView); errors.Is(err, privacy.Allow) { + return nil + } + + return privacy.Denyf("user does not have access to the requested organization") + + } + + // check if the object is in the organization + pluralObjectType := pluralize.NewClient().Plural(objectType) + tableName := strcase.SnakeCase(pluralObjectType) + + // files are not org owned, they rely on parents + if tableName == "files" { + // files can be skipped from this, they still do a parent + // organization unlike other objects + return privacy.Skip + } + + query := "SELECT EXISTS (SELECT 1 FROM " + tableName + " WHERE id = $1 and (owner_id = $2))" + + var rows sql.Rows + if err := mut.Client().Driver().Query(ctx, query, []any{objectID, orgID}, &rows); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("object", tableName).Msg("failed to check for object in organization") + + return err + } + + defer rows.Close() + + if rows.Next() { + var exists bool + if err := rows.Scan(&exists); err == nil && exists { + return nil + } + } + + // fall back to deny if the object is not in the organization + return privacy.Denyf("requested object not in organization") +} + +// EnsureTrustCenterInOrganization checks if the object is in the organization +func EnsureTrustCenterInOrganization(ctx context.Context, m ent.Mutation, orgID string) error { + trustCenterID := getTrustCenterIDFromMutation(ctx, m) + if trustCenterID == "" { + return privacy.Skip + } + + // the function above already checks this is a trust + // center mutation, no need to check again + tcMutation, _ := m.(utils.TrustCenterMutation) + + ownerID, err := tcMutation.Client().TrustCenter.Query().Where( + trustcenter.ID(trustCenterID), + ).Select(trustcenter.FieldOwnerID).String(ctx) + if err != nil { + return privacy.Denyf("requested object not in organization") + } + + if orgID == ownerID { + return privacy.Skip + } + + // fall back to deny if the object is not in the organization + return privacy.Denyf("requested object not in organization") +} diff --git a/internal/ent/privacy/rule/scopes.go b/internal/ent/privacy/rule/scopes.go new file mode 100644 index 0000000000..2a04280b10 --- /dev/null +++ b/internal/ent/privacy/rule/scopes.go @@ -0,0 +1,166 @@ +package rule + +import ( + "context" + "fmt" + "strings" + + "entgo.io/ent" + "github.com/stoewer/go-strcase" + fgamodel "github.com/theopenlane/core/fga/model" + "github.com/theopenlane/iam/auth" + "github.com/theopenlane/iam/fgax" + + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/intercept" + "github.com/theopenlane/core/internal/ent/generated/privacy" + "github.com/theopenlane/core/internal/ent/privacy/utils" + "github.com/theopenlane/core/pkg/logx" +) + +const ( + CanCreatePrefix = "can_create_" + CanEditPrefix = "can_edit_" + CanDeletePrefix = "can_delete_" + CanViewPrefix = "can_view_" +) + +// scopedRelation returns the scoped relation based on the object type, relation, and operation. A operation is checked for for create, update, delete. If instead a specific relation should be checked, that should be passed instead of the operation +func scopedRelation(objectType string, relation string, op *ent.Op) string { + object := strcase.SnakeCase(objectType) + if object == "" { + return "" + } + + if op != nil { + switch { + case op.Is(ent.OpCreate): + return fmt.Sprintf("%s%s", CanCreatePrefix, object) + case op.Is(ent.OpUpdate | ent.OpUpdateOne): + return fmt.Sprintf("%s%s", CanEditPrefix, object) + case op.Is(ent.OpDelete | ent.OpDeleteOne): + return fmt.Sprintf("%s%s", CanDeletePrefix, object) + } + } + + switch relation { + case fgax.CanEdit: + return fmt.Sprintf("%s%s", CanEditPrefix, object) + case fgax.CanView: + return fmt.Sprintf("%s%s", CanViewPrefix, object) + case fgax.CanDelete: + return fmt.Sprintf("%s%s", CanDeletePrefix, object) + default: + return "" + } +} + +// getFGAObjectType returns the object type for the query +// for membership tables, it will return the type with the membership suffix removed +// e.g. GroupMembership -> Group +func GetFGAObjectType(q intercept.Query) string { + // Membership tables should use the object_id field, + // e.g. GroupMembership should use group_id + isMembership := strings.Contains(q.Type(), "Membership") + + objectType := q.Type() + if isMembership { + objectType = strings.ReplaceAll(q.Type(), "Membership", "") + } + + return objectType +} + +// AllowIfTokenHasMutationScope is a rule that allows mutation if the api token has the appropriate scope +// for the object type and operation +// this is used on the base mutation policy to enforce api token scope checks +func AllowIfTokenHasMutationScope() privacy.MutationRuleFunc { + return privacy.MutationRuleFunc(func(ctx context.Context, m ent.Mutation) error { + objectType := m.Type() + if objectType == "" { + return privacy.Skip + } + + // do not skip scope, force trust center edit permissions checked + _, okTC := m.(utils.TrustCenterMutation) + if okTC { + return privacy.Skip + } + + // strip history suffix for history tables + objectType = strings.TrimSuffix(objectType, "History") + + op := m.Op() + return CheckSubjectScope(ctx, objectType, "", &op) + }) +} + +// CheckSubjectScope enforces that the authorized subject has the required scope for the given object type, relation, and operation. +// Returns nil if the rule should be skipped (no scoped relation), privacy.Allow if access is granted, or an error if denied +func CheckSubjectScope(ctx context.Context, objectType string, relation string, op *ent.Op) error { + // allow api token access to api tokens + if auth.IsAPITokenAuthentication(ctx) && objectType == generated.TypeAPIToken { + return privacy.Allow + } + + // allow organizations, as they are needed for for requests + // filters will be enforced elsewhere + if objectType == generated.TypeOrganization && relation == fgax.CanView { + return privacy.Allow + } + + scopedRelation := scopedRelation(objectType, relation, op) + if scopedRelation == "" { + return privacy.Skip + } + + scopeSet, err := fgamodel.DefaultServiceScopeSet() + if err != nil { + return err + } + + if _, ok := scopeSet[scopedRelation]; !ok { + return privacy.Skip + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + return privacy.Skip + } + + // this could happen before user is logged in, or if the token is missing organization scope, so we will log and skip the scope check in this case + orgID := caller.OrganizationID + if orgID == "" { + return privacy.Skip + } + + authzClient := utils.AuthzClientFromContext(ctx) + if authzClient == nil { + return generated.ErrPermissionDenied + } + + ac := fgax.AccessCheck{ + SubjectID: caller.SubjectID, + SubjectType: auth.GetAuthzSubjectType(ctx), + Relation: scopedRelation, + ObjectType: generated.TypeOrganization, + ObjectID: orgID, + } + + hasAccess, err := authzClient.CheckAccess(ctx, ac) + if err != nil { + logx.FromContext(ctx).Debug().Err(err).Interface("check", ac).Msg("failed scope check, unable to determine access") + + return privacy.Skip + } + + if hasAccess { + return privacy.Allow + } + + if auth.IsAPITokenAuthentication(ctx) { + return generated.ErrPermissionDenied + } + + return privacy.Skip +} diff --git a/internal/ent/privacy/rule/scopes_test.go b/internal/ent/privacy/rule/scopes_test.go new file mode 100644 index 0000000000..abf37d3465 --- /dev/null +++ b/internal/ent/privacy/rule/scopes_test.go @@ -0,0 +1,32 @@ +package rule + +import ( + "testing" + + "entgo.io/ent" + "github.com/stretchr/testify/assert" +) + +func TestScopedRelation(t *testing.T) { + tests := []struct { + name string + objectType string + relation string + op ent.Op + expected string + }{ + {name: "view query", objectType: "Control", relation: "can_view", expected: "can_view_control"}, + {name: "update op", objectType: "Task", relation: "can_view", op: ent.OpUpdate, expected: "can_edit_task"}, + {name: "edit relation", objectType: "Evidence", relation: "can_edit", expected: "can_edit_evidence"}, + {name: "delete op", objectType: "File", relation: "can_edit", op: ent.OpDeleteOne, expected: "can_delete_file"}, + {name: "create op", objectType: "Program", op: ent.OpCreate, expected: "can_create_program"}, + } + + for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { + actual := scopedRelation(tt.objectType, tt.relation, &tt.op) + assert.Equal(t, tt.expected, actual) + }) + } +} diff --git a/internal/ent/privacy/rule/trustcenter.go b/internal/ent/privacy/rule/trustcenter.go index e507c25865..31d45335f3 100644 --- a/internal/ent/privacy/rule/trustcenter.go +++ b/internal/ent/privacy/rule/trustcenter.go @@ -4,6 +4,8 @@ import ( "context" "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/gertd/go-pluralize" "github.com/stoewer/go-strcase" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/privacy" @@ -13,12 +15,6 @@ import ( "github.com/theopenlane/iam/fgax" ) -// trustCenterMutation defines an interface for mutations that involve a trust center ID. -type trustCenterMutation interface { - TrustCenterID() (string, bool) - OldTrustCenterID(context.Context) (string, error) -} - // AllowIfTrustCenterEditor checks if the user has edit access to the trust center associated with the mutation // so it can be used to allow mutations on trust center related entities. func AllowIfTrustCenterEditor() privacy.MutationRule { @@ -38,7 +34,7 @@ func AllowIfTrustCenterEditor() privacy.MutationRule { // getTrustCenterIDFromMutation extracts the trust center ID from the mutation // if available, otherwise tries to query it from the database. func getTrustCenterIDFromMutation(ctx context.Context, m ent.Mutation) string { - tcMutation, ok := m.(trustCenterMutation) + tcMutation, ok := m.(utils.TrustCenterMutation) if !ok { logx.FromContext(ctx).Warn().Str("mutation", m.Type()).Str("rule", "AllowIfTrustCenterEditor").Msg("mutation does not implement trustCenterMutation interface") @@ -51,13 +47,38 @@ func getTrustCenterIDFromMutation(ctx context.Context, m ent.Mutation) string { return id } - // try to get the old trust center id if available (for updates) + // try to get the old trust center id if available (for updates), this does not work for delete id, err := tcMutation.OldTrustCenterID(ctx) if err == nil { return id } - logx.FromContext(ctx).Debug().Msgf("error getting old trust center id from mutation :%v", err) + objectID, ok := tcMutation.ID() + if !ok { + return "" + } + + objectType := m.Type() + pluralObjectType := pluralize.NewClient().Plural(objectType) + tableName := strcase.SnakeCase(pluralObjectType) + + query := "SELECT trust_center_id FROM " + tableName + " WHERE id = $1" + + var rows sql.Rows + if err := tcMutation.Client().Driver().Query(ctx, query, []any{objectID}, &rows); err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to check for object in organization") + + return "" + } + + defer rows.Close() + + if rows.Next() { + var trustCenterID string + if err := rows.Scan(&trustCenterID); err == nil { + return trustCenterID + } + } return "" } diff --git a/internal/ent/privacy/utils/utils.go b/internal/ent/privacy/utils/utils.go index 652c09ec75..4cbce0405e 100644 --- a/internal/ent/privacy/utils/utils.go +++ b/internal/ent/privacy/utils/utils.go @@ -50,6 +50,14 @@ type OrgOwnedMutation interface { SetOwnerID(string) } +// TrustCenterMutation is an interface for interacting with the trust_center_id field in mutations +type TrustCenterMutation interface { + GenericMutation + + TrustCenterID() (r string, exists bool) + OldTrustCenterID(ctx context.Context) (v string, err error) +} + // NewMutationPolicyWithoutNil is creating a new slice of `privacy.MutationPolicy` by // removing any `nil` values from the input `source` slice. It iterates over each item in the source slice and appends it to the new slice only if it is not `nil` - the new slice is then returned func NewMutationPolicyWithoutNil(source privacy.MutationPolicy) privacy.MutationPolicy { diff --git a/internal/ent/schema/actionplan.go b/internal/ent/schema/actionplan.go index 16a7bee1e8..7db439103c 100644 --- a/internal/ent/schema/actionplan.go +++ b/internal/ent/schema/actionplan.go @@ -141,6 +141,7 @@ func (a ActionPlan) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ NewDocumentMixin(a), newObjectOwnedMixin[generated.ActionPlan](a, + withParents(Program{}, Control{}, Review{}), withOrganizationOwner(true), withWorkflowOwnedEdges(), ), @@ -173,6 +174,7 @@ func (a ActionPlan) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( policy.CheckCreateAccess(), + policy.CanCreateObjectsUnderParents([]string{Control{}.PluralName(), Program{}.PluralName(), Review{}.PluralName()}), entfga.CheckEditAccess[*generated.ActionPlanMutation](), ), ) diff --git a/internal/ent/schema/apitoken.go b/internal/ent/schema/apitoken.go index 8f847c996c..41c0fd0645 100644 --- a/internal/ent/schema/apitoken.go +++ b/internal/ent/schema/apitoken.go @@ -166,6 +166,7 @@ func (a APIToken) Policy() ent.Policy { policy.WithMutationRules( rule.RequirePaymentMethod(), rule.AllowIfContextAllowRule(), + policy.CheckCreateAccess(), policy.CheckOrgWriteAccess(), ), ) diff --git a/internal/ent/schema/assessment.go b/internal/ent/schema/assessment.go index 32f1e9e4ee..cc927f6128 100644 --- a/internal/ent/schema/assessment.go +++ b/internal/ent/schema/assessment.go @@ -4,7 +4,6 @@ import ( "entgo.io/contrib/entgql" "entgo.io/ent" "entgo.io/ent/dialect/entsql" - "entgo.io/ent/privacy" "entgo.io/ent/schema" "entgo.io/ent/schema/field" "entgo.io/ent/schema/index" @@ -16,6 +15,7 @@ import ( "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/common/models" + "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/hook" "github.com/theopenlane/core/internal/ent/hooks" "github.com/theopenlane/core/internal/ent/interceptors" @@ -84,7 +84,10 @@ func (Assessment) Fields() []ent.Field { func (a Assessment) Mixin() []ent.Mixin { return mixinConfig{ additionalMixins: []ent.Mixin{ - newOrgOwnedMixin(a), + newObjectOwnedMixin[generated.Assessment](a, + withParents(Campaign{}), + withOrganizationOwner(false), + ), newGroupPermissionsMixin(), mixin.NewSystemOwnedMixin(), }, @@ -110,12 +113,11 @@ func (a Assessment) Edges() []ent.Edge { func (Assessment) Policy() ent.Policy { return policy.NewPolicy( - policy.WithOnMutationRules( - ent.OpDelete|ent.OpDeleteOne, - policy.CheckOrgWriteAccess(), - ), policy.WithMutationRules( - privacy.AlwaysAllowRule(), + policy.CheckCreateAccess(), + policy.CheckOrgWriteAccess(), + policy.CanCreateObjectsUnderParents([]string{Campaign{}.PluralName()}), + entfga.CheckEditAccess[*generated.AssessmentMutation](), ), ) } diff --git a/internal/ent/schema/assessment_response.go b/internal/ent/schema/assessment_response.go index 327081251e..278d2396af 100644 --- a/internal/ent/schema/assessment_response.go +++ b/internal/ent/schema/assessment_response.go @@ -205,7 +205,7 @@ func (ar AssessmentResponse) Mixin() []ent.Mixin { excludeTags: true, additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.AssessmentResponse](ar, - withParents(Assessment{}, Campaign{}, IdentityHolder{}, Entity{}), + withParents(Assessment{}, Campaign{}, Entity{}), withOrganizationOwner(true), ), }, diff --git a/internal/ent/schema/asset.go b/internal/ent/schema/asset.go index b6a4ecd739..40a7c633a0 100644 --- a/internal/ent/schema/asset.go +++ b/internal/ent/schema/asset.go @@ -184,7 +184,7 @@ func (a Asset) Mixin() []ent.Mixin { return mixinConfig{ additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Asset](a, - withParents(Organization{}, Platform{}, Entity{}), + withParents(Platform{}, Entity{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/campaign.go b/internal/ent/schema/campaign.go index a3d6cce0c1..089cc97bdb 100644 --- a/internal/ent/schema/campaign.go +++ b/internal/ent/schema/campaign.go @@ -254,7 +254,6 @@ func (c Campaign) Mixin() []ent.Mixin { prefix: "CMP", additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Campaign](c, - withParents(Organization{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/contact.go b/internal/ent/schema/contact.go index 95675162f1..e812b158b0 100644 --- a/internal/ent/schema/contact.go +++ b/internal/ent/schema/contact.go @@ -156,6 +156,7 @@ func (c Contact) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( policy.CheckOrgWriteAccess(), + policy.CheckCreateAccess(), ), ) } diff --git a/internal/ent/schema/control.go b/internal/ent/schema/control.go index 6c50ffce2e..434cce169f 100644 --- a/internal/ent/schema/control.go +++ b/internal/ent/schema/control.go @@ -207,7 +207,7 @@ func (c Control) Mixin() []ent.Mixin { // controls must be associated with an organization but do not inherit permissions from the organization // controls can inherit permissions from the associated programs newObjectOwnedMixin[generated.Control](c, - withParents(Organization{}, Program{}, Standard{}), + withParents(Program{}, Standard{}), withOrganizationOwner(true), // controls are generally viewable by all users in the organization // exceptions are based on group based access so we can safely diff --git a/internal/ent/schema/controlimplementation.go b/internal/ent/schema/controlimplementation.go index ad41380c5d..6cadf684bc 100644 --- a/internal/ent/schema/controlimplementation.go +++ b/internal/ent/schema/controlimplementation.go @@ -98,7 +98,6 @@ func (ControlImplementation) Fields() []ent.Field { func (c ControlImplementation) Mixin() []ent.Mixin { return mixinConfig{ additionalMixins: []ent.Mixin{ - // subcontrols can inherit permissions from the parent control newObjectOwnedMixin[generated.ControlImplementation](c, withParents(Control{}, Subcontrol{}), withOrganizationOwner(true), diff --git a/internal/ent/schema/controlobjective.go b/internal/ent/schema/controlobjective.go index c71595bfee..d25ceb302e 100644 --- a/internal/ent/schema/controlobjective.go +++ b/internal/ent/schema/controlobjective.go @@ -120,11 +120,8 @@ func (c ControlObjective) Mixin() []ent.Mixin { prefix: "CLO", includeRevision: true, additionalMixins: []ent.Mixin{ - // control objectives inherit permissions from the associated programs, but must have an organization as well - // this mixin will add the owner_id field using the OrgHook but not organization tuples are created - // it will also create program parent tuples for the control objective when a program is associated to the control objectives newObjectOwnedMixin[generated.ControlObjective](c, - withParents(Program{}, Control{}, Subcontrol{}), + withParents(Control{}, Subcontrol{}), withOrganizationOwner(true), ), // add groups permissions with viewer, editor, and blocked groups diff --git a/internal/ent/schema/customtypeenum.go b/internal/ent/schema/customtypeenum.go index 2dbd5496f3..e7c16d9216 100644 --- a/internal/ent/schema/customtypeenum.go +++ b/internal/ent/schema/customtypeenum.go @@ -195,6 +195,7 @@ func (CustomTypeEnum) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( policy.CheckOrgWriteAccess(), + policy.CheckCreateAccess(), ), ) } diff --git a/internal/ent/schema/directoryaccount.go b/internal/ent/schema/directoryaccount.go index 5c1b809d3b..ed6a115e2d 100644 --- a/internal/ent/schema/directoryaccount.go +++ b/internal/ent/schema/directoryaccount.go @@ -277,7 +277,7 @@ func (d DirectoryAccount) Mixin() []ent.Mixin { excludeSoftDelete: true, additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.DirectoryAccount](d, - withParents(IdentityHolder{}, Organization{}, Platform{}, Integration{}, DirectorySyncRun{}), + withParents(IdentityHolder{}, Platform{}, Integration{}, DirectorySyncRun{}), withOrganizationOwner(true), ), newCustomEnumMixin(d, withEnumFieldName("environment"), withGlobalEnum()), diff --git a/internal/ent/schema/emailtemplate.go b/internal/ent/schema/emailtemplate.go index 3a98dd2b4d..42624c6f91 100644 --- a/internal/ent/schema/emailtemplate.go +++ b/internal/ent/schema/emailtemplate.go @@ -213,7 +213,7 @@ func (e EmailTemplate) Mixin() []ent.Mixin { includeRevision: true, additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.EmailTemplate](e, - withParents(Organization{}, Integration{}, WorkflowDefinition{}, WorkflowInstance{}), + withParents(Integration{}, WorkflowDefinition{}, WorkflowInstance{}), withOrganizationOwner(true), ), mixin.NewSystemOwnedMixin(), diff --git a/internal/ent/schema/entity.go b/internal/ent/schema/entity.go index 8908e22acb..bfb5d2295a 100644 --- a/internal/ent/schema/entity.go +++ b/internal/ent/schema/entity.go @@ -309,7 +309,7 @@ func (e Entity) Mixin() []ent.Mixin { return mixinConfig{ additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Entity](e, - withParents(Organization{}, TrustCenterEntity{}, Platform{}, SystemDetail{}), + withParents(TrustCenterEntity{}, Platform{}, SystemDetail{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/entitytype.go b/internal/ent/schema/entitytype.go index 841146d656..749cd63030 100644 --- a/internal/ent/schema/entitytype.go +++ b/internal/ent/schema/entitytype.go @@ -91,9 +91,9 @@ func (EntityType) Indexes() []ent.Index { // Policy of the EntityType func (e EntityType) Policy() ent.Policy { return policy.NewPolicy( - policy.WithQueryRules(), policy.WithMutationRules( policy.CheckOrgWriteAccess(), + policy.CheckCreateAccess(), ), ) } diff --git a/internal/ent/schema/export.go b/internal/ent/schema/export.go index c7fdd92056..4eecb3516a 100644 --- a/internal/ent/schema/export.go +++ b/internal/ent/schema/export.go @@ -128,7 +128,7 @@ func (e Export) Policy() ent.Policy { policy.WithQueryRules( rule.AllowQueryIfSystemAdmin(), ), - policy.WithMutationRules( + policy.WithOnMutationRules(ent.OpCreate, policy.AllowCreate(), ), policy.WithOnMutationRules(ent.OpUpdate|ent.OpUpdateOne|ent.OpDelete|ent.OpDeleteOne, diff --git a/internal/ent/schema/file.go b/internal/ent/schema/file.go index fb3f955b9d..3c0728dc23 100644 --- a/internal/ent/schema/file.go +++ b/internal/ent/schema/file.go @@ -157,7 +157,8 @@ func (f File) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.File](f, withParents( - // used to create parent tuples for the file, ensure these are added tot he fga model as well + // used to create parent tuples for the file, ensure these are added to the fga model as well + // Organization{} is a special case for files for backwards compatibility Organization{}, Program{}, Platform{}, Scan{}, Control{}, Procedure{}, Template{}, Subcontrol{}, DocumentData{}, Contact{}, InternalPolicy{}, Narrative{}, Evidence{}, TrustCenterSetting{}, Subprocessor{}, Export{}, TrustCenterDoc{}, Standard{}, TrustCenterEntity{}, TrustCenterSubprocessor{}, Entity{}, IdentityHolder{}, Contact{}, Review{}), diff --git a/internal/ent/schema/finding.go b/internal/ent/schema/finding.go index 81527d79e5..46d6b17ba4 100644 --- a/internal/ent/schema/finding.go +++ b/internal/ent/schema/finding.go @@ -318,7 +318,6 @@ func (f Finding) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Finding](f, withParents( - Organization{}, Program{}, Control{}, Subcontrol{}, diff --git a/internal/ent/schema/identity_holder.go b/internal/ent/schema/identity_holder.go index a0e882a00f..393598e5fe 100644 --- a/internal/ent/schema/identity_holder.go +++ b/internal/ent/schema/identity_holder.go @@ -226,7 +226,7 @@ func (p IdentityHolder) Mixin() []ent.Mixin { prefix: "IDH", additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.IdentityHolder](p, - withParents(Organization{}, Platform{}), + withParents(Platform{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/internalpolicy.go b/internal/ent/schema/internalpolicy.go index 9c09e06898..b5aac51f86 100644 --- a/internal/ent/schema/internalpolicy.go +++ b/internal/ent/schema/internalpolicy.go @@ -189,7 +189,7 @@ func (i InternalPolicy) Annotations() []schema.Annotation { func (InternalPolicy) Hooks() []ent.Hook { return []ent.Hook{ hook.On( - hooks.OrgOwnedTuplesHookWithAdmin(), + hooks.OrgOwnedTuplesHook(), ent.OpCreate, ), } diff --git a/internal/ent/schema/mixin_createacess.go b/internal/ent/schema/mixin_createacess.go index 86f37926ab..939f0e73d2 100644 --- a/internal/ent/schema/mixin_createacess.go +++ b/internal/ent/schema/mixin_createacess.go @@ -10,38 +10,31 @@ import ( "entgo.io/ent/schema/mixin" "github.com/theopenlane/iam/fgax" + fgamodel "github.com/theopenlane/core/fga/model" "github.com/theopenlane/core/internal/ent/generated/hook" "github.com/theopenlane/core/internal/ent/hooks" "github.com/theopenlane/entx/accessmap" ) -// createObjectTypes is a list of object types that access can be granted specifically for creation -// outside of the normal organization edit permissions -// TODO (sfunk): see if we can pull the annotations from the other schemas to make this dynamic -var createObjectTypes = []string{ - "control", - "control_implementation", - "control_objective", - "evidence", - "asset", - "finding", - "vulnerability", - "group", - "internal_policy", - "mapped_control", - "narrative", - "procedure", - "program", - "risk", - "identity_holder", - "scheduled_job", - "standard", - "template", - "subprocessor", - "trust_center_doc", - "trust_center_subprocessor", - "action_plan", -} +// createObjectTypes is derived from the model scopes for service subjects. +var createObjectTypes = func() []string { + opts, err := fgamodel.CreateOptions() + if err != nil { + return nil + } + + return opts +}() + +// createObjectTypes is derived from the model scopes for service subjects. +var roleTypes = func() []string { + opts, err := fgamodel.RoleOptions() + if err != nil { + return nil + } + + return opts +}() // GroupBasedCreateAccessMixin is a mixin for group permissions for creation of an entity // that should be added to both the to schema (Group) and the from schema (Organization) @@ -81,6 +74,21 @@ func (c GroupBasedCreateAccessMixin) Edges() []ent.Edge { edges = append(edges, edge) } + for _, t := range roleTypes { + toName := strings.ToLower(fmt.Sprintf("%s_manager", t)) + + edge := edge.To(toName, Group.Type). + Comment(fmt.Sprintf("groups that are allowed to manage %s features", t)). + Annotations( + entgql.RelayConnection(), + entgql.QueryField(), + entgql.MultiOrder(), + accessmap.EdgeViewCheck(Group{}.Name()), + ) + + edges = append(edges, edge) + } + return edges } @@ -103,5 +111,20 @@ func (c GroupBasedCreateAccessMixin) Hooks() []ent.Hook { h = append(h, hook) } + for _, objectType := range roleTypes { + idField := fmt.Sprintf("%s_manager_id", objectType) + + relation := fgax.Relation(objectType + "_manager") + + hook := hook.On( + hooks.HookRelationTuples(map[string]string{ + idField: "group", + }, relation), + ent.OpCreate|ent.OpUpdateOne|ent.OpUpdateOne, + ) + + h = append(h, hook) + } + return h } diff --git a/internal/ent/schema/mixin_objectowned.go b/internal/ent/schema/mixin_objectowned.go index c2bc6631c1..e685da0331 100644 --- a/internal/ent/schema/mixin_objectowned.go +++ b/internal/ent/schema/mixin_objectowned.go @@ -212,19 +212,6 @@ func withOrganizationOwnerServiceOnly(skipSystemAdmin bool) objectOwnedOption { } } -// withListObjectsFilter allows to use the list objects filter for the object owned mixin instead of batch checks -func withListObjectsFilter() objectOwnedOption { //nolint:unused - return func(o *ObjectOwnedMixin) { - o.UseListObjectsFilter = true - } -} - -func withOverrideOwnerFieldName(fieldName string) objectOwnedOption { //nolint:unused - return func(o *ObjectOwnedMixin) { - o.OwnerFieldName = fieldName - } -} - // withSkipFilterInterceptor allows to skip the filter interceptor for the object owned mixin // WARNING: this will bypass all batch or list objects checks from FGA; results will only be filtered // based on other interceptors on the schema. For example, if a schema is object owned and has @@ -373,19 +360,6 @@ func (o ObjectOwnedMixin) P(w interface{ WhereP(...func(*sql.Selector)) }, objec o.PWithField(w, "id", objectIDs) } -// defaultSkipCreateUserPermissionsFunc is the default function to skip creating user permissions -var defaultSkipCreateUserPermissionsFunc = func(ctx context.Context, m ent.Mutation) bool { - if m.Op() != ent.OpCreate { - return true - } - - if caller, ok := auth.CallerFromContext(ctx); ok && caller.Has(auth.CapBypassFGA) { - return true - } - - return false -} - // defaultTupleUpdateFunc is the default hook function for the object owned mixin // to add tuples to the database when creating or updating an object based on the edges // that can own the object @@ -396,7 +370,7 @@ var defaultTupleUpdateFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { } return hook.On( - hooks.HookObjectOwnedTuples(o.FieldNames, ownerRelation, defaultSkipCreateUserPermissionsFunc), + hooks.HookObjectOwnedTuples(o.FieldNames, ownerRelation), ent.OpCreate|ent.OpUpdateOne|ent.OpUpdateOne, ) } @@ -410,7 +384,7 @@ var serviceOnlyTupleUpdateFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { } return hook.On( - hooks.HookObjectOwnedTuples(o.FieldNames, ownerRelation, skipUserParentTupleFunc), + hooks.HookObjectOwnedTuples(o.FieldNames, ownerRelation), ent.OpCreate|ent.OpUpdateOne|ent.OpUpdateOne, ) } diff --git a/internal/ent/schema/mixin_orgowned.go b/internal/ent/schema/mixin_orgowned.go index fd1025b761..5e7de2fd64 100644 --- a/internal/ent/schema/mixin_orgowned.go +++ b/internal/ent/schema/mixin_orgowned.go @@ -7,13 +7,18 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" + "github.com/stoewer/go-strcase" "github.com/theopenlane/iam/auth" "github.com/theopenlane/iam/fgax" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/assessmentresponse" + "github.com/theopenlane/core/internal/ent/generated/campaigntarget" + "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/hook" "github.com/theopenlane/core/internal/ent/generated/intercept" "github.com/theopenlane/core/internal/ent/generated/privacy" + "github.com/theopenlane/core/internal/ent/generated/trustcenterwatermarkconfig" "github.com/theopenlane/core/internal/ent/hooks" "github.com/theopenlane/core/internal/ent/privacy/rule" "github.com/theopenlane/core/internal/ent/privacy/utils" @@ -96,6 +101,29 @@ var defaultOrgHookFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { } } +// createOrgOwnerParentTuple creates the tuple for the parent org owner relationship +func createOrgOwnerParentTuple(ctx context.Context, m ent.Mutation, objectID string) ([]fgax.TupleKey, error) { + var addTuples []fgax.TupleKey + + // create the tuple for the parent org owner relationship without the subject id + // this will be filled in by getTuplesToAdd based on the owner id field + tr := fgax.TupleRequest{ + SubjectType: generated.TypeOrganization, + ObjectID: objectID, // this is the object id being created + ObjectType: hooks.GetObjectTypeFromEntMutation(m), // this is the object type being created + Relation: fgax.ParentContextRelation, + } + + t, err := hooks.GetTuplesToAdd(ctx, m, tr, ownerFieldName) + if err != nil { + return nil, err + } + + addTuples = append(addTuples, t...) + + return addTuples, nil +} + // orgHookCreateFunc is a HookFunc that sets the owner on create mutations var orgHookCreateFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { return hook.On(func(next ent.Mutator) ent.Mutator { @@ -121,20 +149,31 @@ var orgHookCreateFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { return nil, err } - // add organization owner editor relation to the object - id, err := hooks.GetObjectIDFromEntValue(retVal) - if err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to get object id from ent value") + switch strcase.SnakeCase(m.Type()) { + case assessmentresponse.Label, campaigntarget.Label, trustcenterwatermarkconfig.Label, documentdata.Label: + return retVal, err + } + objectID, err := hooks.GetObjectIDFromEntValue(retVal) + if err != nil { return nil, err } - if err := addOrganizationOwnerEditorRelation(ctx, m, id); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to add organization owner editor relation") + tuples, err := createOrgOwnerParentTuple(ctx, m, objectID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to create organization owner parent tuple") return nil, err } + if len(tuples) > 0 { + if _, err := utils.AuthzClient(ctx, m).WriteTupleKeys(ctx, tuples, nil); err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to write organization owner parent tuples") + + return nil, ErrInternalServerError + } + } + return retVal, err }) }, ent.OpCreate) @@ -166,15 +205,6 @@ var orgHookCreateServiceOnlyFunc HookFunc = func(o ObjectOwnedMixin) ent.Hook { }, ent.OpCreate) } -// skipUserParentTupleFunc returns a skip function that always skips creating user parent tuples. -// This is used for service-only objects where the parent relation only allows organization/service types. -func skipUserParentTupleFunc(_ context.Context, _ ent.Mutation) bool { - // Always skip creating caller-derived parent tuples for service-only objects. - // These schemas inherit access from their org/parent relationships only, and - // update paths can run under internal callers that do not map to valid FGA subjects. - return true -} - // setOwnerIDField sets the owner id field on the mutation based on the current organization func (o ObjectOwnedMixin) setOwnerIDField(ctx context.Context, m ent.Mutation) error { caller, ok := auth.CallerFromContext(ctx) @@ -202,33 +232,6 @@ func (o ObjectOwnedMixin) setOwnerIDField(ctx context.Context, m ent.Mutation) e return nil } -// addOrganizationOwnerEditorRelation adds the organization owner as an editor to the object -func addOrganizationOwnerEditorRelation(ctx context.Context, m ent.Mutation, id string) error { - orgID, err := auth.GetOrganizationIDFromContext(ctx) - if err != nil { - return fmt.Errorf("failed to get organization id from context: %w", err) - } - - tr := fgax.TupleRequest{ - SubjectType: generated.TypeOrganization, - SubjectID: orgID, - SubjectRelation: fgax.OwnerRelation, - ObjectID: id, // this is the object id being created - ObjectType: hooks.GetObjectTypeFromEntMutation(m), // this is the object type being created - Relation: fgax.EditorRelation, - } - - t := fgax.GetTupleKey(tr) - - if _, err := utils.AuthzClient(ctx, m).WriteTupleKeys(ctx, []fgax.TupleKey{t}, nil); err != nil { - logx.FromContext(ctx).Error().Err(err).Msg("failed to create organization owner editor relationship tuple") - - return ErrInternalServerError - } - - return nil -} - // defaultOrgInterceptorFunc is the default interceptor function for the organization owned mixin // this applies a filter on organization ID for any request to a schema that applies the org // owned mixin diff --git a/internal/ent/schema/narrative.go b/internal/ent/schema/narrative.go index e4c268f192..cb11f173c6 100644 --- a/internal/ent/schema/narrative.go +++ b/internal/ent/schema/narrative.go @@ -103,7 +103,7 @@ func (n Narrative) Mixin() []ent.Mixin { // this mixin will add the owner_id field using the OrgHook but not organization tuples are created // it will also create program parent tuples for the narrative when a program is associated to the narrative newObjectOwnedMixin[generated.Narrative](n, - withParents(Program{}), + withParents(Program{}, Control{}), withOrganizationOwner(false), ), // add groups permissions with viewer, editor, and blocked groups diff --git a/internal/ent/schema/notificationtemplate.go b/internal/ent/schema/notificationtemplate.go index ec8c7df142..76eb4fb2a4 100644 --- a/internal/ent/schema/notificationtemplate.go +++ b/internal/ent/schema/notificationtemplate.go @@ -219,6 +219,7 @@ func (n NotificationTemplate) Mixin() []ent.Mixin { includeRevision: true, additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.NotificationTemplate](n, + withParents(Integration{}, WorkflowDefinition{}, WorkflowInstance{}), withOrganizationOwner(true), ), mixin.NewSystemOwnedMixin(), diff --git a/internal/ent/schema/orgmembership.go b/internal/ent/schema/orgmembership.go index ea1510a044..97ac20dba5 100644 --- a/internal/ent/schema/orgmembership.go +++ b/internal/ent/schema/orgmembership.go @@ -48,11 +48,11 @@ func (OrgMembership) Fields() []ent.Field { return []ent.Field{ field.Enum("role"). GoType(enums.Role("")). - Values(string(enums.RoleOwner)). + Values(enums.RoleOwner.String(), enums.RoleSuperAdmin.String(), enums.RoleAuditor.String()). Annotations( entgql.OrderField("ROLE"), ). - Default(string(enums.RoleMember)), + Default(enums.RoleMember.String()), field.String("organization_id").Immutable(), field.String("user_id").Immutable(), } diff --git a/internal/ent/schema/platform.go b/internal/ent/schema/platform.go index 61dde2400a..59cef36ebe 100644 --- a/internal/ent/schema/platform.go +++ b/internal/ent/schema/platform.go @@ -191,7 +191,7 @@ func (s Platform) Mixin() []ent.Mixin { prefix: "PLT", additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Platform](s, - withParents(Organization{}), + withParents(Platform{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/procedure.go b/internal/ent/schema/procedure.go index 590493a9f2..bcac57f33b 100644 --- a/internal/ent/schema/procedure.go +++ b/internal/ent/schema/procedure.go @@ -185,7 +185,7 @@ func (p Procedure) Annotations() []schema.Annotation { func (Procedure) Hooks() []ent.Hook { return []ent.Hook{ hook.On( - hooks.OrgOwnedTuplesHookWithAdmin(), + hooks.OrgOwnedTuplesHook(), ent.OpCreate, ), } diff --git a/internal/ent/schema/programmembership.go b/internal/ent/schema/programmembership.go index 7ae5c241d9..ee24381253 100644 --- a/internal/ent/schema/programmembership.go +++ b/internal/ent/schema/programmembership.go @@ -49,7 +49,8 @@ func (ProgramMembership) Fields() []ent.Field { return []ent.Field{ field.Enum("role"). GoType(enums.Role("")). - Default(string(enums.RoleMember)). + Default(enums.RoleMember.String()). + Values(enums.RoleAuditor.String()). Annotations( entgql.OrderField("ROLE"), ), diff --git a/internal/ent/schema/remediation.go b/internal/ent/schema/remediation.go index 901eae958a..5349ed14c8 100644 --- a/internal/ent/schema/remediation.go +++ b/internal/ent/schema/remediation.go @@ -248,7 +248,6 @@ func (r Remediation) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Remediation](r, withParents( - Organization{}, ActionPlan{}, Program{}, Control{}, diff --git a/internal/ent/schema/review.go b/internal/ent/schema/review.go index 248290ed76..242b88a14d 100644 --- a/internal/ent/schema/review.go +++ b/internal/ent/schema/review.go @@ -241,7 +241,6 @@ func (r Review) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Review](r, withParents( - Organization{}, Program{}, Control{}, Subcontrol{}, diff --git a/internal/ent/schema/scan.go b/internal/ent/schema/scan.go index dec3940efd..23b66a2535 100644 --- a/internal/ent/schema/scan.go +++ b/internal/ent/schema/scan.go @@ -128,7 +128,6 @@ func (s Scan) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Scan](s, withParents( - Organization{}, Control{}, Subcontrol{}, Risk{}, diff --git a/internal/ent/schema/scheduledjob.go b/internal/ent/schema/scheduledjob.go index b161fa1499..c8c77057ec 100644 --- a/internal/ent/schema/scheduledjob.go +++ b/internal/ent/schema/scheduledjob.go @@ -89,7 +89,7 @@ func (c ScheduledJob) Mixin() []ent.Mixin { excludeTags: true, additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.ScheduledJob](c, - withParents(Organization{}, Control{}, Subcontrol{}), + withParents(Control{}, Subcontrol{}), withOrganizationOwner(true), withSkipForSystemAdmin(true), ), diff --git a/internal/ent/schema/subprocessor.go b/internal/ent/schema/subprocessor.go index 3bc18bd7ea..dcc8419dc2 100644 --- a/internal/ent/schema/subprocessor.go +++ b/internal/ent/schema/subprocessor.go @@ -85,7 +85,7 @@ func (t Subprocessor) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Subprocessor]( t, - withParents(Organization{}, TrustCenterSubprocessor{}), + withParents(TrustCenterSubprocessor{}), withOrganizationOwner(true), withAllowAnonymousTrustCenterAccess(true), withSkipForSystemAdmin(true), @@ -117,7 +117,7 @@ func (t Subprocessor) Edges() []ent.Edge { func (Subprocessor) Hooks() []ent.Hook { return []ent.Hook{ hook.On( - hooks.OrgOwnedTuplesHookWithAdmin(), + hooks.OrgOwnedTuplesHook(), ent.OpCreate, ), hooks.HookSubprocessor(), diff --git a/internal/ent/schema/subscriber.go b/internal/ent/schema/subscriber.go index 41b1de88cc..7a864075e0 100644 --- a/internal/ent/schema/subscriber.go +++ b/internal/ent/schema/subscriber.go @@ -166,6 +166,7 @@ func (Subscriber) Policy() ent.Policy { policy.WithMutationRules( rule.AllowIfContextHasPrivacyTokenOfType[*token.SignUpToken](), rule.AllowIfContextHasPrivacyTokenOfType[*token.VerifyToken](), + policy.CheckCreateAccess(), policy.CheckOrgWriteAccess(), ), ) diff --git a/internal/ent/schema/tagdefinition.go b/internal/ent/schema/tagdefinition.go index 99e91ee181..a69c82fc61 100644 --- a/internal/ent/schema/tagdefinition.go +++ b/internal/ent/schema/tagdefinition.go @@ -146,6 +146,7 @@ func (TagDefinition) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( policy.CheckOrgWriteAccess(), + policy.CheckCreateAccess(), ), ) } diff --git a/internal/ent/schema/template.go b/internal/ent/schema/template.go index b53dc7806e..0fbf680393 100644 --- a/internal/ent/schema/template.go +++ b/internal/ent/schema/template.go @@ -100,7 +100,7 @@ func (t Template) Mixin() []ent.Mixin { return mixinConfig{ additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Template](t, - withParents(Organization{}, TrustCenter{}), + withParents(TrustCenter{}), withOrganizationOwner(true), withSkipperFunc(skipInterceptorForOrgMembers), withAllowAnonymousTrustCenterAccess(true), diff --git a/internal/ent/schema/trustcenter.go b/internal/ent/schema/trustcenter.go index 4368bb3af3..a03457e383 100644 --- a/internal/ent/schema/trustcenter.go +++ b/internal/ent/schema/trustcenter.go @@ -117,7 +117,7 @@ func (t TrustCenter) Edges() []ent.Edge { required: false, immutable: false, annotations: []schema.Annotation{ - accessmap.EdgeAuthCheck(Organization{}.Name()), + accessmap.EdgeAuthCheck(CustomDomain{}.Name()), }, cascadeDelete: "TrustCenterID", }), @@ -127,7 +127,7 @@ func (t TrustCenter) Edges() []ent.Edge { name: "preview_domain", field: "preview_domain_id", annotations: []schema.Annotation{ - accessmap.EdgeAuthCheck(Organization{}.Name()), + accessmap.EdgeAuthCheck(CustomDomain{}.Name()), }, cascadeDelete: "TrustCenterID", }), diff --git a/internal/ent/schema/trustcentersetting.go b/internal/ent/schema/trustcentersetting.go index 7b6d7f1a73..c3ed52d657 100644 --- a/internal/ent/schema/trustcentersetting.go +++ b/internal/ent/schema/trustcentersetting.go @@ -240,11 +240,15 @@ func (TrustCenterSetting) Hooks() []ent.Hook { // Policy of the TrustCenterSetting func (t TrustCenterSetting) Policy() ent.Policy { return policy.NewPolicy( - policy.WithMutationRules( + policy.WithOnMutationRules(ent.OpCreate, rule.AllowIfTrustCenterEditor(), policy.CanCreateObjectsUnderParents([]string{ TrustCenter{}.Name(), }), + policy.CheckOrgWriteAccess(), + ), + policy.WithOnMutationRules(ent.OpUpdate|ent.OpUpdateOne|ent.OpDelete|ent.OpDeleteOne, + rule.AllowIfTrustCenterEditor(), entfga.CheckEditAccess[*generated.TrustCenterSettingMutation](), ), ) diff --git a/internal/ent/schema/user.go b/internal/ent/schema/user.go index 7c25868f46..a8c008c570 100644 --- a/internal/ent/schema/user.go +++ b/internal/ent/schema/user.go @@ -337,6 +337,7 @@ func (User) Policy() ent.Policy { rule.AllowIfContextHasPrivacyTokenOfType[*token.SignUpToken](), rule.AllowIfContextHasPrivacyTokenOfType[*token.OrgInviteToken](), rule.AllowIfContextHasPrivacyTokenOfType[*token.OauthTooToken](), + policy.CheckServiceCreateAccess(), rule.AllowIfSelf(), ), policy.WithOnMutationRules( diff --git a/internal/ent/schema/usersetting.go b/internal/ent/schema/usersetting.go index 3ff68b2262..ff400c21b8 100644 --- a/internal/ent/schema/usersetting.go +++ b/internal/ent/schema/usersetting.go @@ -143,8 +143,10 @@ func (UserSetting) Interceptors() []ent.Interceptor { func (UserSetting) Policy() ent.Policy { return policy.NewPolicy( - policy.WithMutationRules( + policy.WithOnMutationRules( + ent.OpCreate, policy.AllowCreate(), + policy.CheckServiceCreateAccess(), ), policy.WithOnMutationRules( ent.OpUpdateOne|ent.OpUpdate, diff --git a/internal/ent/schema/vulnerability.go b/internal/ent/schema/vulnerability.go index fd7b19a275..aab9740952 100644 --- a/internal/ent/schema/vulnerability.go +++ b/internal/ent/schema/vulnerability.go @@ -286,7 +286,6 @@ func (v Vulnerability) Mixin() []ent.Mixin { additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.Vulnerability](v, withParents( - Organization{}, Program{}, Control{}, Subcontrol{}, diff --git a/internal/ent/schema/workflowassignment.go b/internal/ent/schema/workflowassignment.go index 9298298712..f6d84bea49 100644 --- a/internal/ent/schema/workflowassignment.go +++ b/internal/ent/schema/workflowassignment.go @@ -174,7 +174,7 @@ func (WorkflowAssignment) Annotations() []schema.Annotation { func (WorkflowAssignment) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( - policy.CheckCreateAccess(), + policy.CheckServiceCreateAccess(), entfga.CheckEditAccess[*generated.WorkflowAssignmentMutation](), ), ) diff --git a/internal/ent/schema/workflowassignmenttarget.go b/internal/ent/schema/workflowassignmenttarget.go index dbbaedf352..ea6ecb62f0 100644 --- a/internal/ent/schema/workflowassignmenttarget.go +++ b/internal/ent/schema/workflowassignmenttarget.go @@ -119,11 +119,8 @@ func (WorkflowAssignmentTarget) Modules() []models.OrgModule { // Policy of the WorkflowAssignmentTarget func (WorkflowAssignmentTarget) Policy() ent.Policy { return policy.NewPolicy( - policy.WithQueryRules( - policy.CheckOrgReadAccess(), - ), policy.WithMutationRules( - policy.CheckOrgWriteAccess(), + policy.CheckServiceCreateAccess(), ), ) } diff --git a/internal/ent/schema/workflowdefinition.go b/internal/ent/schema/workflowdefinition.go index 3806fbb0bb..634c39157c 100644 --- a/internal/ent/schema/workflowdefinition.go +++ b/internal/ent/schema/workflowdefinition.go @@ -153,7 +153,6 @@ func (w WorkflowDefinition) Mixin() []ent.Mixin { prefix: "WFD", additionalMixins: []ent.Mixin{ newObjectOwnedMixin[generated.WorkflowDefinition](w, - withParents(Organization{}), withOrganizationOwner(true), ), newGroupPermissionsMixin(), diff --git a/internal/ent/schema/workflowevent.go b/internal/ent/schema/workflowevent.go index 5a5624a651..85b09d034a 100644 --- a/internal/ent/schema/workflowevent.go +++ b/internal/ent/schema/workflowevent.go @@ -86,11 +86,9 @@ func (WorkflowEvent) Modules() []models.OrgModule { // Policy of the WorkflowEvent func (WorkflowEvent) Policy() ent.Policy { return policy.NewPolicy( - policy.WithQueryRules( - policy.CheckOrgReadAccess(), - ), policy.WithMutationRules( - policy.CheckOrgWriteAccess(), + policy.CheckServiceCreateAccess(), + entfga.CheckEditAccess[*generated.WorkflowEventMutation](), ), ) } diff --git a/internal/ent/schema/workflowinstance.go b/internal/ent/schema/workflowinstance.go index 36a3f751d7..bf7bc3fe34 100644 --- a/internal/ent/schema/workflowinstance.go +++ b/internal/ent/schema/workflowinstance.go @@ -261,7 +261,7 @@ func (WorkflowInstance) Hooks() []ent.Hook { func (WorkflowInstance) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( - policy.CheckCreateAccess(), + policy.CheckServiceCreateAccess(), entfga.CheckEditAccess[*generated.WorkflowInstanceMutation](), ), ) diff --git a/internal/ent/schema/workflowobjectref.go b/internal/ent/schema/workflowobjectref.go index 8b031d75f6..65551d1e2d 100644 --- a/internal/ent/schema/workflowobjectref.go +++ b/internal/ent/schema/workflowobjectref.go @@ -322,7 +322,7 @@ func (WorkflowObjectRef) Annotations() []schema.Annotation { func (WorkflowObjectRef) Policy() ent.Policy { return policy.NewPolicy( policy.WithMutationRules( - policy.CheckCreateAccess(), + policy.CheckServiceCreateAccess(), entfga.CheckEditAccess[*generated.WorkflowObjectRefMutation](), entfga.CheckDeleteAccess[*generated.WorkflowObjectRefMutation](), ), diff --git a/internal/ent/schema/workflowproposal.go b/internal/ent/schema/workflowproposal.go index d9bd294b9c..ea476693cf 100644 --- a/internal/ent/schema/workflowproposal.go +++ b/internal/ent/schema/workflowproposal.go @@ -14,6 +14,7 @@ import ( "github.com/theopenlane/core/common/models" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/hooks" + "github.com/theopenlane/core/internal/ent/privacy/policy" "github.com/theopenlane/entx" "github.com/theopenlane/entx/history" ) @@ -160,3 +161,12 @@ func (WorkflowProposal) Annotations() []schema.Annotation { }, } } + +// Policy of the WorkflowProposal +func (WorkflowProposal) Policy() ent.Policy { + return policy.NewPolicy( + policy.WithMutationRules( + policy.CheckServiceCreateAccess(), + ), + ) +} diff --git a/internal/entdb/client.go b/internal/entdb/client.go index 08d5f6c317..6b3bd2d985 100644 --- a/internal/entdb/client.go +++ b/internal/entdb/client.go @@ -421,7 +421,7 @@ func NewTestFixture() *testutils.TestFixture { } if testDBContainerExpiry == "" { - testDBContainerExpiry = "10" // default expiry of 10 minutes + testDBContainerExpiry = "20" // default expiry of 20 minutes } expiry, err := strconv.Atoi(testDBContainerExpiry) @@ -431,7 +431,7 @@ func NewTestFixture() *testutils.TestFixture { return testutils.GetTestURI(testutils.WithImage(testDBURI), testutils.WithExpiryMinutes(expiry), - testutils.WithMaxConn(200)) //nolint:mnd + testutils.WithMaxConn(500)) //nolint:mnd } // NewTestClient creates an entdb client that can be used for TEST purposes ONLY. diff --git a/internal/graphapi/apitoken_test.go b/internal/graphapi/apitoken_test.go index d64faaf342..53e51b45c5 100644 --- a/internal/graphapi/apitoken_test.go +++ b/internal/graphapi/apitoken_test.go @@ -8,9 +8,11 @@ import ( "github.com/brianvoe/gofakeit/v7" "github.com/samber/lo" "github.com/theopenlane/iam/auth" + "github.com/theopenlane/iam/fgax" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" + fgamodel "github.com/theopenlane/core/fga/model" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/hooks" "github.com/theopenlane/core/internal/graphapi/testclient" @@ -18,7 +20,7 @@ import ( ) func TestQueryApiToken(t *testing.T) { - apiToken := (&APITokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + apiToken := (&APITokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -29,18 +31,18 @@ func TestQueryApiToken(t *testing.T) { { name: "happy path", queryID: apiToken.ID, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "not found, no access", queryID: apiToken.ID, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: notFoundErrorMsg, queryID: "notfound", - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -57,16 +59,16 @@ func TestQueryApiToken(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(redacted, resp.APIToken.Token)) - assert.Check(t, is.Equal(testUser1.OrganizationID, resp.APIToken.Owner.ID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, resp.APIToken.Owner.ID)) }) } - (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: apiToken.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: apiToken.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryAPITokens(t *testing.T) { - token1 := (&APITokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - token2 := (&APITokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token1 := (&APITokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + token2 := (&APITokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -79,7 +81,7 @@ func TestQueryAPITokens(t *testing.T) { for _, tc := range testCases { t.Run("List "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.GetAllAPITokens(testUser1.UserCtx) + resp, err := suite.client.api.GetAllAPITokens(sharedTestUser1.UserCtx) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -96,8 +98,8 @@ func TestQueryAPITokens(t *testing.T) { }) } - (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token2.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token2.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateAPIToken(t *testing.T) { @@ -114,7 +116,7 @@ func TestMutationCreateAPIToken(t *testing.T) { input: testclient.CreateAPITokenInput{ Name: "forthethingz", Description: &tokenDescription, - Scopes: []string{"read", "write"}, + Scopes: []string{"read:evidence", "write:evidence"}, }, }, { @@ -159,7 +161,7 @@ func TestMutationCreateAPIToken(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - resp, err := suite.client.api.CreateAPIToken(testUser1.UserCtx, tc.input) + resp, err := suite.client.api.CreateAPIToken(sharedTestUser1.UserCtx, tc.input) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -181,7 +183,7 @@ func TestMutationCreateAPIToken(t *testing.T) { } // ensure the owner is the org set in the request - assert.Check(t, is.Equal(testUser1.OrganizationID, *resp.CreateAPIToken.APIToken.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, *resp.CreateAPIToken.APIToken.OwnerID)) // token should not be redacted on create assert.Check(t, redacted != resp.CreateAPIToken.APIToken.Token) @@ -189,13 +191,13 @@ func TestMutationCreateAPIToken(t *testing.T) { // ensure the token is prefixed assert.Check(t, is.Contains(resp.CreateAPIToken.APIToken.Token, "tola_")) - (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: resp.CreateAPIToken.APIToken.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: resp.CreateAPIToken.APIToken.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateAPIToken(t *testing.T) { - token := (&APITokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token := (&APITokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) tokenDescription := gofakeit.Sentence() tokenName := gofakeit.Word() @@ -213,7 +215,7 @@ func TestMutationUpdateAPIToken(t *testing.T) { input: testclient.UpdateAPITokenInput{ Name: &tokenName, }, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update expiration", @@ -222,7 +224,7 @@ func TestMutationUpdateAPIToken(t *testing.T) { Name: &tokenName, ExpiresAt: lo.ToPtr(time.Now().Add(time.Hour)), }, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update name, no access", @@ -230,7 +232,7 @@ func TestMutationUpdateAPIToken(t *testing.T) { input: testclient.UpdateAPITokenInput{ Name: &tokenName, }, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -239,15 +241,15 @@ func TestMutationUpdateAPIToken(t *testing.T) { input: testclient.UpdateAPITokenInput{ Description: &tokenDescription, }, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add scope", tokenID: token.ID, input: testclient.UpdateAPITokenInput{ - Scopes: []string{"write"}, + Scopes: []string{"write:evidence"}, }, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid token id", @@ -255,7 +257,7 @@ func TestMutationUpdateAPIToken(t *testing.T) { input: testclient.UpdateAPITokenInput{ Description: &tokenDescription, }, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -285,20 +287,20 @@ func TestMutationUpdateAPIToken(t *testing.T) { assert.Check(t, is.Len(resp.UpdateAPIToken.APIToken.Scopes, 1)) } - assert.Check(t, is.Equal(testUser1.OrganizationID, *resp.UpdateAPIToken.APIToken.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, *resp.UpdateAPIToken.APIToken.OwnerID)) // token should be redacted on update assert.Check(t, is.Equal(redacted, resp.UpdateAPIToken.APIToken.Token)) }) } - (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.APITokenDeleteOne]{client: suite.client.db.APIToken, ID: token.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteAPIToken(t *testing.T) { // create user to make tokens - user := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - user2 := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + user := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + user2 := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) orgID := user.Edges.Setting.Edges.DefaultOrg.ID orgID2 := user2.Edges.Setting.Edges.DefaultOrg.ID @@ -345,10 +347,10 @@ func TestMutationDeleteAPIToken(t *testing.T) { func TestLastUsedAPIToken(t *testing.T) { // create new API token - token := (&APITokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token := (&APITokenBuilder{client: suite.client, Scopes: []string{"read:evidence", "read:api_token"}}).MustNew(sharedTestUser1.UserCtx, t) // check that the last used is empty - res, err := suite.client.api.GetAPITokenByID(testUser1.UserCtx, token.ID) + res, err := suite.client.api.GetAPITokenByID(sharedTestUser1.UserCtx, token.ID) assert.NilError(t, err) assert.Check(t, res.APIToken.LastUsedAt == nil) @@ -367,3 +369,167 @@ func TestLastUsedAPIToken(t *testing.T) { assert.NilError(t, err) assert.Check(t, !out.APIToken.LastUsedAt.IsZero()) } + +func TestAPITokenScopeEnforcement(t *testing.T) { + t.Parallel() + localTestUser := suite.seedOrgOwner(t) + orgCtx := auth.NewTestContextWithOrgID(localTestUser.owner.ID, localTestUser.owner.OrganizationID) + + // create scoped tokens (read-only vs write) + readToken := (&APITokenBuilder{client: suite.client, Scopes: []string{"read:organization", "read:group"}}).MustNew(orgCtx, t) + writeToken := (&APITokenBuilder{client: suite.client, Scopes: []string{"write:group"}}).MustNew(orgCtx, t) + + makeClient := func(token string) *testclient.TestClient { + authHeader := testclient.Authorization{ + BearerToken: token, + } + + c, err := testutils.TestClientWithAuth( + suite.client.db, + suite.client.objectStore, + testclient.WithCredentials(authHeader), + ) + requireNoError(t, err) + + return c + } + + readClient := makeClient(readToken.Token) + writeClient := makeClient(writeToken.Token) + + // read-only scope can fetch org details, this query includes groups so the token must have read:group scope as well + _, err := readClient.GetOrganizationByID(context.Background(), localTestUser.owner.OrganizationID) + assert.NilError(t, err) + + // read-only scope cannot create a group (requires edit) + _, err = readClient.CreateGroup(context.Background(), testclient.CreateGroupInput{ + Name: gofakeit.AppName(), + }) + assert.ErrorContains(t, err, notAuthorizedErrorMsg) + + // write scope can create a group + groupResp, err := writeClient.CreateGroup(context.Background(), testclient.CreateGroupInput{ + Name: gofakeit.AppName(), + }) + assert.NilError(t, err) + assert.Assert(t, groupResp != nil) + assert.Check(t, groupResp.CreateGroup.Group.ID != "") + + cleanupOrganizationDataWithContext(orgCtx, t) +} + +func TestAPITokenObjectScopeTuples(t *testing.T) { + t.Parallel() + localTestUser := suite.seedOrgOwner(t) + orgCtx := auth.NewTestContextWithOrgID(localTestUser.owner.ID, localTestUser.owner.OrganizationID) + orgUser := localTestUser.owner + + evidence := (&EvidenceBuilder{client: suite.client}).MustNew(orgCtx, t) + + var tokensToCleanup []string + + makeTokenClient := func(scopes []string) (*testclient.APIToken, *testclient.TestClient) { + resp, err := suite.client.api.CreateAPIToken(orgCtx, testclient.CreateAPITokenInput{ + Name: gofakeit.AppName(), + Scopes: scopes, + }) + assert.NilError(t, err) + + token := resp.CreateAPIToken.APIToken + tokensToCleanup = append(tokensToCleanup, token.ID) + + authHeader := testclient.Authorization{ + BearerToken: token.Token, + } + + client, err := testutils.TestClientWithAuth( + suite.client.db, + suite.client.objectStore, + testclient.WithCredentials(authHeader), + ) + assert.NilError(t, err) + + apiToken := &testclient.APIToken{ + ID: token.ID, + Name: token.Name, + Description: token.Description, + Token: token.Token, + Scopes: token.Scopes, + ExpiresAt: token.ExpiresAt, + OwnerID: token.OwnerID, + LastUsedAt: token.LastUsedAt, + } + + return apiToken, client + } + + listScopedOrgIDs := func(tokenID string, relation string) []string { + resp, err := suite.client.db.Authz.ListObjectsRequest(context.Background(), fgax.ListRequest{ + SubjectID: tokenID, + SubjectType: auth.ServiceSubjectType, + Relation: relation, + ObjectType: generated.TypeOrganization, + }) + assert.NilError(t, err) + + ids, err := fgax.GetEntityIDs(resp) + assert.NilError(t, err) + + return ids + } + + viewRelation := fgamodel.NormalizeScope("read:evidence") + editRelation := fgamodel.NormalizeScope("write:evidence") + + t.Run("read-only evidence scope", func(t *testing.T) { + token, client := makeTokenClient([]string{"read:evidence", "read:file", "read:control", "read:task", "read:subcontrol"}) + + ids := listScopedOrgIDs(token.ID, viewRelation) + assert.Check(t, lo.Contains(ids, orgUser.OrganizationID)) + + ids = listScopedOrgIDs(token.ID, editRelation) + assert.Check(t, !lo.Contains(ids, orgUser.OrganizationID)) + + _, err := client.GetEvidenceByID(context.Background(), evidence.ID) + assert.NilError(t, err) + + _, err = client.UpdateEvidence(context.Background(), evidence.ID, testclient.UpdateEvidenceInput{ + Name: lo.ToPtr(gofakeit.Word()), + }, nil) + assert.ErrorContains(t, err, notAuthorizedErrorMsg) + }) + + t.Run("scope addition and removal update tuples", func(t *testing.T) { + token, client := makeTokenClient([]string{"read:evidence", "read:file", "read:control"}) + + assert.Check(t, lo.Contains(listScopedOrgIDs(token.ID, viewRelation), orgUser.OrganizationID)) + assert.Check(t, !lo.Contains(listScopedOrgIDs(token.ID, editRelation), orgUser.OrganizationID)) + + _, err := suite.client.api.UpdateAPIToken(orgCtx, token.ID, testclient.UpdateAPITokenInput{ + AppendScopes: []string{"write:evidence"}, + }) + assert.NilError(t, err) + + assert.Check(t, lo.Contains(listScopedOrgIDs(token.ID, editRelation), orgUser.OrganizationID)) + + updatedName := gofakeit.Word() + _, err = client.UpdateEvidence(context.Background(), evidence.ID, testclient.UpdateEvidenceInput{ + Name: &updatedName, + }, nil) + assert.NilError(t, err) + + _, err = suite.client.api.UpdateAPIToken(orgCtx, token.ID, testclient.UpdateAPITokenInput{ + Scopes: []string{"read:evidence"}, + }) + assert.NilError(t, err) + + assert.Check(t, !lo.Contains(listScopedOrgIDs(token.ID, editRelation), orgUser.OrganizationID)) + + _, err = client.UpdateEvidence(context.Background(), evidence.ID, testclient.UpdateEvidenceInput{ + Name: lo.ToPtr(gofakeit.Word()), + }, nil) + assert.ErrorContains(t, err, notAuthorizedErrorMsg) + }) + + cleanupOrganizationDataWithContext(orgCtx, t) +} diff --git a/internal/graphapi/assessment_test.go b/internal/graphapi/assessment_test.go index f4f05a05be..019bec301f 100644 --- a/internal/graphapi/assessment_test.go +++ b/internal/graphapi/assessment_test.go @@ -16,8 +16,8 @@ import ( ) func TestQueryAssessment(t *testing.T) { - assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) testCases := []struct { name string @@ -31,14 +31,14 @@ func TestQueryAssessment(t *testing.T) { name: "happy path", queryID: assessment1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: assessment1, }, { name: "happy path, assessment created by admin user", queryID: assessment2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: assessment2, }, { @@ -52,14 +52,14 @@ func TestQueryAssessment(t *testing.T) { name: "no access, user of different org", queryID: assessment1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, invalid ID", queryID: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -83,24 +83,24 @@ func TestQueryAssessment(t *testing.T) { }) } - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryAssessments(t *testing.T) { // assessments for the first organization - assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // assessment created by an admin user of the first organization - assessment3 := (&AssessmentBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + assessment3 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) // assessment for another organization anotherUser := suite.userBuilder(context.Background(), t) - assessment4 := (&AssessmentBuilder{client: suite.client}).MustNew(anotherUser.UserCtx, t) + (&AssessmentBuilder{client: suite.client}).MustNew(anotherUser.UserCtx, t) t.Run("Get all assessments", func(t *testing.T) { - resp, err := suite.client.api.GetAllAssessments(testUser1.UserCtx) + resp, err := suite.client.api.GetAllAssessments(sharedTestUser1.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -114,7 +114,7 @@ func TestQueryAssessments(t *testing.T) { Name: &assessment1.Name, } - resp, err := suite.client.api.GetAssessments(testUser1.UserCtx, lo.ToPtr(int64(10)), nil, whereInput) + resp, err := suite.client.api.GetAssessments(sharedTestUser1.UserCtx, lo.ToPtr(int64(10)), nil, whereInput) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -131,7 +131,7 @@ func TestQueryAssessments(t *testing.T) { }) t.Run("Get assessments with pagination", func(t *testing.T) { - resp, err := suite.client.api.GetAssessments(testUser1.UserCtx, lo.ToPtr(int64(2)), nil, nil) + resp, err := suite.client.api.GetAssessments(sharedTestUser1.UserCtx, lo.ToPtr(int64(2)), nil, nil) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -140,14 +140,13 @@ func TestQueryAssessments(t *testing.T) { assert.Assert(t, resp.Assessments.PageInfo.EndCursor != nil) }) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID, assessment3.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment4.ID}}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID, assessment3.TemplateID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment4.TemplateID}}).MustDelete(anotherUser.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID, assessment3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID, assessment3.TemplateID}}).MustDelete(sharedTestUser1.UserCtx, t) + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) } func TestMutationCreateAssessment(t *testing.T) { - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) jsonConfig := map[string]any{ "title": "Test Assessment Template Missing", @@ -173,25 +172,25 @@ func TestMutationCreateAssessment(t *testing.T) { request: testclient.CreateAssessmentInput{ Name: gofakeit.Company(), TemplateID: lo.ToPtr(template.ID), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all fields", request: testclient.CreateAssessmentInput{ Name: gofakeit.Company(), TemplateID: lo.ToPtr(template.ID), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, AssessmentType: lo.ToPtr(enums.AssessmentTypeInternal), Tags: []string{"tag1", "tag2"}, ResponseDueDuration: lo.ToPtr(int64(86400)), // 1 day Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path using personal access token", @@ -205,22 +204,22 @@ func TestMutationCreateAssessment(t *testing.T) { { name: "missing required field - jsonconfig", request: testclient.CreateAssessmentInput{ - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Name: "another assessment", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: "jsonconfig is required", }, { name: "missing required field - name", request: testclient.CreateAssessmentInput{ TemplateID: lo.ToPtr(template.ID), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: "value is less than the required length", }, { @@ -228,12 +227,12 @@ func TestMutationCreateAssessment(t *testing.T) { request: testclient.CreateAssessmentInput{ Name: gofakeit.Company(), TemplateID: lo.ToPtr(ulids.New().String()), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, - errorMsg: "do not have permission to perform this action", + ctx: sharedTestUser1.UserCtx, + errorMsg: notAuthorizedErrorMsg, }, } @@ -259,15 +258,14 @@ func TestMutationCreateAssessment(t *testing.T) { assert.Check(t, is.Len(resp.CreateAssessment.Assessment.Tags, len(tc.request.Tags))) } - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: resp.CreateAssessment.Assessment.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: resp.CreateAssessment.Assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateAssessment(t *testing.T) { - jsonConfig := map[string]any{ "title": "Test Assessment Template Missing", "description": "A test questionnaire template that will be deleted", @@ -280,7 +278,7 @@ func TestMutationUpdateAssessment(t *testing.T) { }, } - assessment := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) templateIDPtr := lo.ToPtr(assessment.TemplateID) testCases := []struct { @@ -300,7 +298,7 @@ func TestMutationUpdateAssessment(t *testing.T) { Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update due date", @@ -320,7 +318,7 @@ func TestMutationUpdateAssessment(t *testing.T) { Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, append tags", @@ -331,7 +329,7 @@ func TestMutationUpdateAssessment(t *testing.T) { Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path using personal access token", @@ -353,7 +351,7 @@ func TestMutationUpdateAssessment(t *testing.T) { Jsonconfig: jsonConfig, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -365,7 +363,7 @@ func TestMutationUpdateAssessment(t *testing.T) { TemplateID: templateIDPtr, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -402,13 +400,13 @@ func TestMutationUpdateAssessment(t *testing.T) { }) } - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteAssessment(t *testing.T) { - assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -421,27 +419,27 @@ func TestMutationDeleteAssessment(t *testing.T) { name: "not authorized, delete assessment", idToDelete: assessment1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, view only user", idToDelete: assessment1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: "you are not authorized to perform this action", }, { name: "happy path, delete assessment", idToDelete: assessment1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "assessment already deleted, not found", idToDelete: assessment1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -454,7 +452,7 @@ func TestMutationDeleteAssessment(t *testing.T) { name: "unknown assessment, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -474,26 +472,25 @@ func TestMutationDeleteAssessment(t *testing.T) { }) } - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateAssessmentWithDuplicateName(t *testing.T) { - - assessment1 := (&AssessmentBuilder{client: suite.client, Name: "Duplicate Test"}).MustNew(testUser1.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client, Name: "Duplicate Test"}).MustNew(sharedTestUser1.UserCtx, t) t.Run("duplicate name in same org should fail", func(t *testing.T) { - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) request := testclient.CreateAssessmentInput{ Name: "Duplicate Test", TemplateID: lo.ToPtr(template.ID), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, } - _, err := suite.client.api.CreateAssessment(testUser1.UserCtx, request) + _, err := suite.client.api.CreateAssessment(sharedTestUser1.UserCtx, request) assert.ErrorContains(t, err, "assessment already exists") - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) // assessment with same name in different org should succeed @@ -512,10 +509,9 @@ func TestMutationCreateAssessmentWithDuplicateName(t *testing.T) { assert.Assert(t, resp != nil) assert.Check(t, is.Equal("Duplicate Test", resp.CreateAssessment.Assessment.Name)) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: resp.CreateAssessment.Assessment.ID}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(anotherUser.UserCtx, t) + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) }) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment1.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment1.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/assessmentresponse_test.go b/internal/graphapi/assessmentresponse_test.go index 45292dcc8b..4fcb61c471 100644 --- a/internal/graphapi/assessmentresponse_test.go +++ b/internal/graphapi/assessmentresponse_test.go @@ -19,19 +19,19 @@ import ( // TestQueryAssessmentResponse verifies fetching a single assessment response. func TestQueryAssessmentResponse(t *testing.T) { - assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) response1 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment1.ID, OwnerID: assessment1.OwnerID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) response2 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment2.ID, OwnerID: assessment2.OwnerID, - }).MustNew(adminUser.UserCtx, t) + }).MustNew(sharedAdminUser.UserCtx, t) testCases := []struct { name string @@ -45,14 +45,14 @@ func TestQueryAssessmentResponse(t *testing.T) { name: "happy path", queryID: response1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: response1, }, { name: "happy path, response created by admin user", queryID: response2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: response2, }, { @@ -66,14 +66,14 @@ func TestQueryAssessmentResponse(t *testing.T) { name: "no access, user of different org", queryID: response1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, invalid ID", queryID: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -98,37 +98,37 @@ func TestQueryAssessmentResponse(t *testing.T) { }) } - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{response1.ID, response2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{response1.ID, response2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(sharedTestUser1.UserCtx, t) } // TestQueryAssessmentResponses verifies listing assessment responses. func TestQueryAssessmentResponses(t *testing.T) { - assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment1 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) response1 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment1.ID, OwnerID: assessment1.OwnerID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) response2 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment2.ID, OwnerID: assessment2.OwnerID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) anotherUser := suite.userBuilder(context.Background(), t) assessment3 := (&AssessmentBuilder{client: suite.client}).MustNew(anotherUser.UserCtx, t) - response3 := (&AssessmentResponseBuilder{ + (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment3.ID, OwnerID: assessment3.OwnerID, }).MustNew(anotherUser.UserCtx, t) t.Run("Get all assessment responses", func(t *testing.T) { - resp, err := suite.client.api.GetAllAssessmentResponses(testUser1.UserCtx) + resp, err := suite.client.api.GetAllAssessmentResponses(sharedTestUser1.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -141,7 +141,7 @@ func TestQueryAssessmentResponses(t *testing.T) { Email: &email, } - resp, err := suite.client.api.GetAssessmentResponses(testUser1.UserCtx, nil, nil, whereInput) + resp, err := suite.client.api.GetAssessmentResponses(sharedTestUser1.UserCtx, nil, nil, whereInput) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -157,23 +157,21 @@ func TestQueryAssessmentResponses(t *testing.T) { assert.Check(t, resp.AssessmentResponses.TotalCount >= 2) }) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{response1.ID, response2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{response1.ID, response2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, IDs: []string{assessment1.ID, assessment2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, IDs: []string{assessment1.TemplateID, assessment2.TemplateID}}).MustDelete(sharedTestUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, ID: response3.ID}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment3.ID}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment3.TemplateID}).MustDelete(anotherUser.UserCtx, t) + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) } // TestAssessmentResponseCampaignIsolation ensures responses are isolated per campaign. func TestAssessmentResponseCampaignIsolation(t *testing.T) { - assessment := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ctx := setContext(testUser1.UserCtx, suite.client.db) + assessment := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) campaignA, err := suite.client.db.Campaign.Create(). SetName("Campaign A"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetRecurrenceFrequency(enums.FrequencyYearly). Save(ctx) @@ -181,7 +179,7 @@ func TestAssessmentResponseCampaignIsolation(t *testing.T) { campaignB, err := suite.client.db.Campaign.Create(). SetName("Campaign B"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetRecurrenceFrequency(enums.FrequencyYearly). Save(ctx) @@ -189,7 +187,7 @@ func TestAssessmentResponseCampaignIsolation(t *testing.T) { email := gofakeit.Email() responseA, err := suite.client.db.AssessmentResponse.Create(). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetCampaignID(campaignA.ID). SetEmail(email). @@ -197,7 +195,7 @@ func TestAssessmentResponseCampaignIsolation(t *testing.T) { assert.NilError(t, err) responseB, err := suite.client.db.AssessmentResponse.Create(). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetCampaignID(campaignB.ID). SetEmail(email). @@ -222,20 +220,20 @@ func TestAssessmentResponseCampaignIsolation(t *testing.T) { assert.NilError(t, err) assert.Check(t, is.Equal(1, countB)) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{responseA.ID, responseB.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, IDs: []string{campaignA.ID, campaignB.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{responseA.ID, responseB.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, IDs: []string{campaignA.ID, campaignB.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) } // TestAssessmentResponseUpdatesCampaignTargetsAndCompletion verifies campaign rollups on completion. func TestAssessmentResponseUpdatesCampaignTargetsAndCompletion(t *testing.T) { - assessment := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ctx := setContext(testUser1.UserCtx, suite.client.db) + assessment := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) campaignObj, err := suite.client.db.Campaign.Create(). SetName("Campaign Target Sync"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetRecurrenceFrequency(enums.FrequencyYearly). Save(ctx) @@ -245,7 +243,7 @@ func TestAssessmentResponseUpdatesCampaignTargetsAndCompletion(t *testing.T) { targetIDs := make([]string, 0, len(emails)) for _, email := range emails { target, err := suite.client.db.CampaignTarget.Create(). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetCampaignID(campaignObj.ID). SetEmail(email). Save(ctx) @@ -254,7 +252,7 @@ func TestAssessmentResponseUpdatesCampaignTargetsAndCompletion(t *testing.T) { } responseA, err := suite.client.db.AssessmentResponse.Create(). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetCampaignID(campaignObj.ID). SetEmail(emails[0]). @@ -262,7 +260,7 @@ func TestAssessmentResponseUpdatesCampaignTargetsAndCompletion(t *testing.T) { assert.NilError(t, err) responseB, err := suite.client.db.AssessmentResponse.Create(). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetAssessmentID(assessment.ID). SetCampaignID(campaignObj.ID). SetEmail(emails[1]). @@ -310,17 +308,17 @@ func TestAssessmentResponseUpdatesCampaignTargetsAndCompletion(t *testing.T) { assert.Check(t, is.Equal(enums.CampaignStatusCompleted, campaignAfterSecond.Status)) assert.Check(t, !campaignAfterSecond.IsActive) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{responseA.ID, responseB.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CampaignTargetDeleteOne]{client: suite.client.db.CampaignTarget, IDs: targetIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, ID: campaignObj.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{responseA.ID, responseB.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CampaignTargetDeleteOne]{client: suite.client.db.CampaignTarget, IDs: targetIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, ID: campaignObj.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) } // TestMutationCreateAssessmentResponse validates create mutation behavior. func TestMutationCreateAssessmentResponse(t *testing.T) { - assessment := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + assessment := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + assessment2 := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -333,10 +331,10 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { request: testclient.CreateAssessmentResponseInput{ Email: lo.ToPtr(gofakeit.Email()), AssessmentID: assessment.ID, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "success - can create via PAT", @@ -352,10 +350,10 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { request: testclient.CreateAssessmentResponseInput{ Email: lo.ToPtr(gofakeit.Email()), AssessmentID: assessment2.ID, - OwnerID: &testUser2.OrganizationID, + OwnerID: &sharedTestUser2.OrganizationID, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, } @@ -369,7 +367,7 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { assert.Assert(t, resp != nil) assert.Assert(t, resp.CreateAssessmentResponse.AssessmentResponse.ID != "") - if tc.ctx == testUser2.UserCtx { + if tc.ctx == sharedTestUser2.UserCtx { responseIDsOrg2 = append(responseIDsOrg2, resp.CreateAssessmentResponse.AssessmentResponse.ID) } else { responseIDsOrg1 = append(responseIDsOrg1, resp.CreateAssessmentResponse.AssessmentResponse.ID) @@ -381,10 +379,10 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { req := testclient.CreateAssessmentResponseInput{ Email: lo.ToPtr(gofakeit.Email()), AssessmentID: assessment.ID, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, } - resp, err := suite.client.api.CreateAssessmentResponse(testUser1.UserCtx, req) + resp, err := suite.client.api.CreateAssessmentResponse(sharedTestUser1.UserCtx, req) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -392,7 +390,7 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { assert.Check(t, is.Equal(int64(1), firstResponse.SendAttempts)) responseIDsOrg1 = append(responseIDsOrg1, firstResponse.ID) - secondResp, err := suite.client.api.CreateAssessmentResponse(testUser1.UserCtx, req) + secondResp, err := suite.client.api.CreateAssessmentResponse(sharedTestUser1.UserCtx, req) assert.NilError(t, err) assert.Assert(t, secondResp != nil) @@ -405,48 +403,48 @@ func TestMutationCreateAssessmentResponse(t *testing.T) { req := testclient.CreateAssessmentResponseInput{ Email: lo.ToPtr(gofakeit.Email()), AssessmentID: assessment.ID, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, } - resp, err := suite.client.api.CreateAssessmentResponse(testUser1.UserCtx, req) + resp, err := suite.client.api.CreateAssessmentResponse(sharedTestUser1.UserCtx, req) assert.NilError(t, err) assert.Assert(t, resp != nil) response := resp.CreateAssessmentResponse.AssessmentResponse responseIDsOrg1 = append(responseIDsOrg1, response.ID) - updateCtx := setContext(testUser1.UserCtx, suite.client.db) + updateCtx := setContext(sharedTestUser1.UserCtx, suite.client.db) _, err = suite.client.db.AssessmentResponse.UpdateOneID(response.ID). SetStatus(enums.AssessmentResponseStatusCompleted). Save(updateCtx) assert.NilError(t, err) - _, err = suite.client.api.CreateAssessmentResponse(testUser1.UserCtx, req) + _, err = suite.client.api.CreateAssessmentResponse(sharedTestUser1.UserCtx, req) assert.ErrorContains(t, err, "assessment is already completed") }) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: responseIDsOrg1}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: responseIDsOrg1}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: responseIDsOrg2}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment2.TemplateID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: responseIDsOrg2}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment2.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment2.TemplateID}).MustDelete(sharedTestUser2.UserCtx, t) } // TestMutationDeleteAssessmentResponse validates delete mutation behavior. func TestMutationDeleteAssessmentResponse(t *testing.T) { - assessment := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessment := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) response1 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment.ID, OwnerID: assessment.OwnerID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) response2 := (&AssessmentResponseBuilder{ client: suite.client, AssessmentID: assessment.ID, OwnerID: assessment.OwnerID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -459,27 +457,27 @@ func TestMutationDeleteAssessmentResponse(t *testing.T) { name: "not authorized, different org user", idToDelete: response1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete response using view only user", idToDelete: response1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: "you are not authorized to perform this action", }, { name: "happy path, delete response", idToDelete: response1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "response already deleted, not found", idToDelete: response1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -492,7 +490,7 @@ func TestMutationDeleteAssessmentResponse(t *testing.T) { name: "unknown response, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -512,6 +510,6 @@ func TestMutationDeleteAssessmentResponse(t *testing.T) { }) } - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/asset_test.go b/internal/graphapi/asset_test.go index 18ae23745d..33025db340 100644 --- a/internal/graphapi/asset_test.go +++ b/internal/graphapi/asset_test.go @@ -14,7 +14,7 @@ import ( ) func TestQueryAsset(t *testing.T) { - asset := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + asset := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -27,13 +27,13 @@ func TestQueryAsset(t *testing.T) { name: "happy path", queryID: asset.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: asset.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -45,14 +45,14 @@ func TestQueryAsset(t *testing.T) { name: "asset not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "asset not found, using not authorized user", queryID: asset.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -76,12 +76,12 @@ func TestQueryAsset(t *testing.T) { }) } - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: asset.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: asset.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryAssets(t *testing.T) { - asset1 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - asset2 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + asset1 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + asset2 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -92,13 +92,13 @@ func TestQueryAssets(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -116,7 +116,7 @@ func TestQueryAssets(t *testing.T) { { name: "another user, no assets should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -131,7 +131,7 @@ func TestQueryAssets(t *testing.T) { }) } - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset1.ID, asset2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset1.ID, asset2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateAsset(t *testing.T) { @@ -148,24 +148,24 @@ func TestMutationCreateAsset(t *testing.T) { Name: "theopenlane.io", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input as org admin", request: testclient.CreateAssetInput{ Name: "theopenlane.io", Description: lo.ToPtr("description"), - InternalOwnerUserID: &viewOnlyUser.ID, + InternalOwnerUserID: &sharedViewOnlyUser.ID, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateAssetInput{ Name: "theopenlane.io", Description: lo.ToPtr("description"), - InternalOwnerUserID: &viewOnlyUser.ID, + InternalOwnerUserID: &sharedViewOnlyUser.ID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -185,14 +185,14 @@ func TestMutationCreateAsset(t *testing.T) { Name: "comply.fyi", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required field", request: testclient.CreateAssetInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -230,13 +230,13 @@ func TestMutationCreateAsset(t *testing.T) { assert.Check(t, *resp.CreateAsset.Asset.InternalOwnerGroupID == "", "expected InternalOwnerGroupID to be nil but was %v", resp.CreateAsset.Asset.InternalOwnerGroupID) } - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: resp.CreateAsset.Asset.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: resp.CreateAsset.Asset.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateAsset(t *testing.T) { - asset := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + asset := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -251,12 +251,12 @@ func TestMutationUpdateAsset(t *testing.T) { Description: lo.ToPtr("updated description"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update multiple fields", request: testclient.UpdateAssetInput{ - InternalOwnerUserID: &adminUser.ID, + InternalOwnerUserID: &sharedAdminUser.ID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -264,28 +264,28 @@ func TestMutationUpdateAsset(t *testing.T) { { name: "update not allowed, not enough permissions as view only user", request: testclient.UpdateAssetInput{ - InternalOwnerUserID: &viewOnlyUser.ID, + InternalOwnerUserID: &sharedViewOnlyUser.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "update not allowed, not allowed to add edge to without access to group", request: testclient.UpdateAssetInput{ - InternalOwnerGroupID: &viewOnlyUser2.GroupID, + InternalOwnerGroupID: &sharedViewOnlyUser2.GroupID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "update allowed to add edge to group if user has access to group", request: testclient.UpdateAssetInput{ - InternalOwnerGroupID: &testUser1.GroupID, + InternalOwnerGroupID: &sharedTestUser1.GroupID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update not allowed, no permissions", @@ -293,7 +293,7 @@ func TestMutationUpdateAsset(t *testing.T) { Description: lo.ToPtr("updated description again"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -320,13 +320,13 @@ func TestMutationUpdateAsset(t *testing.T) { }) } - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: asset.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, ID: asset.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteAsset(t *testing.T) { - asset1 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - asset2 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - asset3 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + asset1 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + asset2 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + asset3 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -339,27 +339,27 @@ func TestMutationDeleteAsset(t *testing.T) { name: "not found, delete", idToDelete: asset1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: asset1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: asset1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: asset1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -378,7 +378,7 @@ func TestMutationDeleteAsset(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/campaign_with_targets_integration_test.go b/internal/graphapi/campaign_with_targets_integration_test.go index 43eb504723..60ae8d8ff6 100644 --- a/internal/graphapi/campaign_with_targets_integration_test.go +++ b/internal/graphapi/campaign_with_targets_integration_test.go @@ -19,11 +19,11 @@ import ( // TestCreateCampaignWithTargets tests the createCampaignWithTargets mutation through the API. func TestCreateCampaignWithTargets(t *testing.T) { // Create template via builder (no FGA edge checks on template from campaign) - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create assessment via API with same user so EdgeViewCheck passes uid := ulids.New().String() - assessmentResp, err := suite.client.api.CreateAssessment(testUser1.UserCtx, testclient.CreateAssessmentInput{ + assessmentResp, err := suite.client.api.CreateAssessment(sharedTestUser1.UserCtx, testclient.CreateAssessmentInput{ Name: fmt.Sprintf("assessment-%s", uid), TemplateID: lo.ToPtr(template.ID), Jsonconfig: map[string]any{ @@ -53,7 +53,7 @@ func TestCreateCampaignWithTargets(t *testing.T) { }, } - resp, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + resp, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Assert(t, resp.CreateCampaignWithTargets.Campaign.ID != "") @@ -79,7 +79,7 @@ func TestCreateCampaignWithTargets(t *testing.T) { }, } - resp, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + resp, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(int(explicitCount), int(lo.FromPtr(resp.CreateCampaignWithTargets.Campaign.RecipientCount)))) @@ -99,13 +99,13 @@ func TestCreateCampaignWithTargets(t *testing.T) { Targets: []*testclient.CreateCampaignTargetInput{}, } - _, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + _, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.Assert(t, err != nil) }) // cleanup assessment and template - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessmentID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessmentID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) } // cleanupCampaignWithTargets deletes campaign targets and the campaign. @@ -117,6 +117,6 @@ func cleanupCampaignWithTargets(t *testing.T, campaignID string, targets []*test targetIDs = append(targetIDs, target.ID) } - (&Cleanup[*generated.CampaignTargetDeleteOne]{client: suite.client.db.CampaignTarget, IDs: targetIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, ID: campaignID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CampaignTargetDeleteOne]{client: suite.client.db.CampaignTarget, IDs: targetIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CampaignDeleteOne]{client: suite.client.db.Campaign, ID: campaignID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/clientschema/schema.graphql b/internal/graphapi/clientschema/schema.graphql index b20456b4c5..4859c6c170 100644 --- a/internal/graphapi/clientschema/schema.graphql +++ b/internal/graphapi/clientschema/schema.graphql @@ -1830,7 +1830,7 @@ type Assessment implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: ID """ @@ -15022,28 +15022,85 @@ input CreateOrganizationInput { Whether the organization has a dedicated database """ dedicatedDb: Boolean + actionPlanCreatorIDs: [ID!] + apiTokenCreatorIDs: [ID!] + assessmentCreatorIDs: [ID!] + assetCreatorIDs: [ID!] + campaignCreatorIDs: [ID!] + campaignTargetCreatorIDs: [ID!] + checkResultCreatorIDs: [ID!] + contactCreatorIDs: [ID!] controlCreatorIDs: [ID!] controlImplementationCreatorIDs: [ID!] controlObjectiveCreatorIDs: [ID!] + customTypeEnumCreatorIDs: [ID!] + discussionCreatorIDs: [ID!] + emailBrandingCreatorIDs: [ID!] + emailTemplateCreatorIDs: [ID!] + entityCreatorIDs: [ID!] + entityTypeCreatorIDs: [ID!] evidenceCreatorIDs: [ID!] - assetCreatorIDs: [ID!] + exportCreatorIDs: [ID!] + fileCreatorIDs: [ID!] findingCreatorIDs: [ID!] - vulnerabilityCreatorIDs: [ID!] groupCreatorIDs: [ID!] + identityHolderCreatorIDs: [ID!] + integrationCreatorIDs: [ID!] + integrationWebhookCreatorIDs: [ID!] internalPolicyCreatorIDs: [ID!] + jobRunnerCreatorIDs: [ID!] + jobRunnerRegistrationTokenCreatorIDs: [ID!] + jobRunnerTokenCreatorIDs: [ID!] + jobTemplateCreatorIDs: [ID!] mappedControlCreatorIDs: [ID!] narrativeCreatorIDs: [ID!] + noteCreatorIDs: [ID!] + notificationTemplateCreatorIDs: [ID!] + organizationCreatorIDs: [ID!] + platformCreatorIDs: [ID!] procedureCreatorIDs: [ID!] programCreatorIDs: [ID!] + remediationCreatorIDs: [ID!] + reviewCreatorIDs: [ID!] riskCreatorIDs: [ID!] - identityHolderCreatorIDs: [ID!] + scanCreatorIDs: [ID!] scheduledJobCreatorIDs: [ID!] + scheduledJobRunCreatorIDs: [ID!] standardCreatorIDs: [ID!] - templateCreatorIDs: [ID!] + subcontrolCreatorIDs: [ID!] subprocessorCreatorIDs: [ID!] + subscriberCreatorIDs: [ID!] + systemDetailCreatorIDs: [ID!] + tagDefinitionCreatorIDs: [ID!] + taskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + trustCenterCreatorIDs: [ID!] + trustCenterComplianceCreatorIDs: [ID!] trustCenterDocCreatorIDs: [ID!] + trustCenterEntityCreatorIDs: [ID!] + trustCenterFaqCreatorIDs: [ID!] + trustCenterNdaRequestCreatorIDs: [ID!] trustCenterSubprocessorCreatorIDs: [ID!] - actionPlanCreatorIDs: [ID!] + trustCenterWatermarkConfigCreatorIDs: [ID!] + userCreatorIDs: [ID!] + userSettingCreatorIDs: [ID!] + vendorRiskScoreCreatorIDs: [ID!] + vulnerabilityCreatorIDs: [ID!] + workflowAssignmentCreatorIDs: [ID!] + workflowAssignmentTargetCreatorIDs: [ID!] + workflowDefinitionCreatorIDs: [ID!] + workflowEventCreatorIDs: [ID!] + workflowInstanceCreatorIDs: [ID!] + workflowObjectRefCreatorIDs: [ID!] + workflowProposalCreatorIDs: [ID!] + campaignsManagerIDs: [ID!] + complianceManagerIDs: [ID!] + groupManagerIDs: [ID!] + policiesManagerIDs: [ID!] + registryManagerIDs: [ID!] + riskManagerIDs: [ID!] + trustCenterManagerIDs: [ID!] + workflowsManagerIDs: [ID!] parentID: ID settingID: ID personalAccessTokenIDs: [ID!] @@ -52346,6 +52403,8 @@ enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ Return response for updateOrgMembership mutation @@ -52824,7 +52883,7 @@ type Organization implements Node { the stripe customer ID this organization is associated to """ stripeCustomerID: String - controlCreators( + actionPlanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -52855,7 +52914,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlImplementationCreators( + apiTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -52886,7 +52945,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlObjectiveCreators( + assessmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -52917,7 +52976,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - evidenceCreators( + assetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -52948,7 +53007,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - assetCreators( + campaignCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -52979,7 +53038,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - findingCreators( + campaignTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53010,7 +53069,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - vulnerabilityCreators( + checkResultCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53041,7 +53100,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - groupCreators( + contactCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53072,7 +53131,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - internalPolicyCreators( + controlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53103,7 +53162,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - mappedControlCreators( + controlImplementationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53134,7 +53193,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - narrativeCreators( + controlObjectiveCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53165,7 +53224,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - procedureCreators( + customTypeEnumCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53196,7 +53255,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - programCreators( + discussionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53227,7 +53286,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - riskCreators( + emailBrandingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53258,7 +53317,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - identityHolderCreators( + emailTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53289,7 +53348,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - scheduledJobCreators( + entityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53320,7 +53379,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - standardCreators( + entityTypeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53351,7 +53410,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templateCreators( + evidenceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53382,7 +53441,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - subprocessorCreators( + exportCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53413,7 +53472,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterDocCreators( + fileCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53444,7 +53503,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterSubprocessorCreators( + findingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53475,7 +53534,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - actionPlanCreators( + groupCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53506,8 +53565,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - parent: Organization - children( + identityHolderCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53529,17 +53587,16 @@ type Organization implements Node { last: Int """ - Ordering options for Organizations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [OrganizationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Organizations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: OrganizationWhereInput - ): OrganizationConnection! - setting: OrganizationSetting - personalAccessTokens( + where: GroupWhereInput + ): GroupConnection! + integrationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53561,16 +53618,16 @@ type Organization implements Node { last: Int """ - Ordering options for PersonalAccessTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PersonalAccessTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for PersonalAccessTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - apiTokens( + where: GroupWhereInput + ): GroupConnection! + integrationWebhookCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53592,16 +53649,16 @@ type Organization implements Node { last: Int """ - Ordering options for APITokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [APITokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for APITokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: APITokenWhereInput - ): APITokenConnection! - emailTemplates( + where: GroupWhereInput + ): GroupConnection! + internalPolicyCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53623,16 +53680,16 @@ type Organization implements Node { last: Int """ - Ordering options for EmailTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EmailTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EmailTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EmailTemplateWhereInput - ): EmailTemplateConnection! - notificationPreferences( + where: GroupWhereInput + ): GroupConnection! + jobRunnerCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53654,16 +53711,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationPreferences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationPreferenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationPreferences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationPreferenceWhereInput - ): NotificationPreferenceConnection! - notificationTemplates( + where: GroupWhereInput + ): GroupConnection! + jobRunnerRegistrationTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53685,16 +53742,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationTemplateWhereInput - ): NotificationTemplateConnection! - users( + where: GroupWhereInput + ): GroupConnection! + jobRunnerTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53716,16 +53773,16 @@ type Organization implements Node { last: Int """ - Ordering options for Users returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [UserOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Users returned from the connection. + Filtering options for Groups returned from the connection. """ - where: UserWhereInput - ): UserConnection! - files( + where: GroupWhereInput + ): GroupConnection! + jobTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53747,16 +53804,16 @@ type Organization implements Node { last: Int """ - Ordering options for Files returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [FileOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Files returned from the connection. + Filtering options for Groups returned from the connection. """ - where: FileWhereInput - ): FileConnection! - events( + where: GroupWhereInput + ): GroupConnection! + mappedControlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53778,16 +53835,16 @@ type Organization implements Node { last: Int """ - Ordering options for Events returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EventOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Events returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EventWhereInput - ): EventConnection! - secrets( + where: GroupWhereInput + ): GroupConnection! + narrativeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53809,17 +53866,16 @@ type Organization implements Node { last: Int """ - Ordering options for Hushes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [HushOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Hushes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: HushWhereInput - ): HushConnection! - avatarFile: File - groups( + where: GroupWhereInput + ): GroupConnection! + noteCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53850,7 +53906,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templates( + notificationTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53872,16 +53928,16 @@ type Organization implements Node { last: Int """ - Ordering options for Templates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Templates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TemplateWhereInput - ): TemplateConnection! - integrations( + where: GroupWhereInput + ): GroupConnection! + organizationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53903,16 +53959,16 @@ type Organization implements Node { last: Int """ - Ordering options for Integrations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IntegrationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Integrations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IntegrationWhereInput - ): IntegrationConnection! - documents( + where: GroupWhereInput + ): GroupConnection! + platformCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53934,17 +53990,78 @@ type Organization implements Node { last: Int """ - Ordering options for DocumentDataSlice returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DocumentDataOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DocumentDataSlice returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - orgSubscriptions: [OrgSubscription!] - invites( + where: GroupWhereInput + ): GroupConnection! + procedureCreators( + """ + 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! + programCreators( + """ + 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! + remediationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53966,16 +54083,16 @@ type Organization implements Node { last: Int """ - Ordering options for Invites returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InviteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Invites returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InviteWhereInput - ): InviteConnection! - subscribers( + where: GroupWhereInput + ): GroupConnection! + reviewCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -53997,16 +54114,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subscribers returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubscriberOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subscribers returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubscriberWhereInput - ): SubscriberConnection! - entities( + where: GroupWhereInput + ): GroupConnection! + riskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54028,16 +54145,16 @@ type Organization implements Node { last: Int """ - Ordering options for Entities returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Entities returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityWhereInput - ): EntityConnection! - platforms( + where: GroupWhereInput + ): GroupConnection! + scanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54059,16 +54176,16 @@ type Organization implements Node { last: Int """ - Ordering options for Platforms returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PlatformOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Platforms returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PlatformWhereInput - ): PlatformConnection! - identityHolders( + where: GroupWhereInput + ): GroupConnection! + scheduledJobCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54090,16 +54207,16 @@ type Organization implements Node { last: Int """ - Ordering options for IdentityHolders returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IdentityHolderOrder!] + orderBy: [GroupOrder!] """ - Filtering options for IdentityHolders returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IdentityHolderWhereInput - ): IdentityHolderConnection! - campaigns( + where: GroupWhereInput + ): GroupConnection! + scheduledJobRunCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54121,16 +54238,16 @@ type Organization implements Node { last: Int """ - Ordering options for Campaigns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Campaigns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignWhereInput - ): CampaignConnection! - campaignTargets( + where: GroupWhereInput + ): GroupConnection! + standardCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54152,16 +54269,16 @@ type Organization implements Node { last: Int """ - Ordering options for CampaignTargets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignTargetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CampaignTargets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignTargetWhereInput - ): CampaignTargetConnection! - entityTypes( + where: GroupWhereInput + ): GroupConnection! + subcontrolCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54183,16 +54300,16 @@ type Organization implements Node { last: Int """ - Ordering options for EntityTypes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityTypeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EntityTypes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - contacts( + where: GroupWhereInput + ): GroupConnection! + subprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54214,16 +54331,16 @@ type Organization implements Node { last: Int """ - Ordering options for Contacts returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ContactOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Contacts returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ContactWhereInput - ): ContactConnection! - notes( + where: GroupWhereInput + ): GroupConnection! + subscriberCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54245,16 +54362,16 @@ type Organization implements Node { last: Int """ - Ordering options for Notes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NoteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Notes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NoteWhereInput - ): NoteConnection! - tasks( + where: GroupWhereInput + ): GroupConnection! + systemDetailCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54276,16 +54393,16 @@ type Organization implements Node { last: Int """ - Ordering options for Tasks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TaskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Tasks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TaskWhereInput - ): TaskConnection! - programs( + where: GroupWhereInput + ): GroupConnection! + tagDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54307,16 +54424,16 @@ type Organization implements Node { last: Int """ - Ordering options for Programs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProgramOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Programs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProgramWhereInput - ): ProgramConnection! - systemDetails( + where: GroupWhereInput + ): GroupConnection! + taskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54338,16 +54455,16 @@ type Organization implements Node { last: Int """ - Ordering options for SystemDetails returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SystemDetailOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SystemDetails returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SystemDetailWhereInput - ): SystemDetailConnection! - procedures( + where: GroupWhereInput + ): GroupConnection! + templateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54369,16 +54486,16 @@ type Organization implements Node { last: Int """ - Ordering options for Procedures returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProcedureOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Procedures returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProcedureWhereInput - ): ProcedureConnection! - internalPolicies( + where: GroupWhereInput + ): GroupConnection! + trustCenterCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54400,16 +54517,16 @@ type Organization implements Node { last: Int """ - Ordering options for InternalPolicies returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InternalPolicyOrder!] + orderBy: [GroupOrder!] """ - Filtering options for InternalPolicies returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InternalPolicyWhereInput - ): InternalPolicyConnection! - risks( + where: GroupWhereInput + ): GroupConnection! + trustCenterComplianceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54431,16 +54548,16 @@ type Organization implements Node { last: Int """ - Ordering options for Risks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [RiskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Risks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: RiskWhereInput - ): RiskConnection! - controlObjectives( + where: GroupWhereInput + ): GroupConnection! + trustCenterDocCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54462,16 +54579,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlObjectives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlObjectiveOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlObjectives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlObjectiveWhereInput - ): ControlObjectiveConnection! - narratives( + where: GroupWhereInput + ): GroupConnection! + trustCenterEntityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54493,16 +54610,16 @@ type Organization implements Node { last: Int """ - Ordering options for Narratives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NarrativeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Narratives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NarrativeWhereInput - ): NarrativeConnection! - controls( + where: GroupWhereInput + ): GroupConnection! + trustCenterFaqCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54524,16 +54641,16 @@ type Organization implements Node { last: Int """ - Ordering options for Controls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Controls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlWhereInput - ): ControlConnection! - subcontrols( + where: GroupWhereInput + ): GroupConnection! + trustCenterNdaRequestCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54555,16 +54672,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subcontrols returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubcontrolOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subcontrols returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubcontrolWhereInput - ): SubcontrolConnection! - controlImplementations( + where: GroupWhereInput + ): GroupConnection! + trustCenterSubprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54586,16 +54703,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlImplementations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlImplementationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlImplementations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlImplementationWhereInput - ): ControlImplementationConnection! - mappedControls( + where: GroupWhereInput + ): GroupConnection! + trustCenterWatermarkConfigCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54617,16 +54734,16 @@ type Organization implements Node { last: Int """ - Ordering options for MappedControls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [MappedControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for MappedControls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: MappedControlWhereInput - ): MappedControlConnection! - evidence( + where: GroupWhereInput + ): GroupConnection! + userCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54648,16 +54765,16 @@ type Organization implements Node { last: Int """ - Ordering options for Evidences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EvidenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Evidences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EvidenceWhereInput - ): EvidenceConnection! - standards( + where: GroupWhereInput + ): GroupConnection! + userSettingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54679,16 +54796,16 @@ type Organization implements Node { last: Int """ - Ordering options for Standards returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [StandardOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Standards returned from the connection. + Filtering options for Groups returned from the connection. """ - where: StandardWhereInput - ): StandardConnection! - actionPlans( + where: GroupWhereInput + ): GroupConnection! + vendorRiskScoreCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54710,16 +54827,16 @@ type Organization implements Node { last: Int """ - Ordering options for ActionPlans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ActionPlanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ActionPlans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ActionPlanWhereInput - ): ActionPlanConnection! - customDomains( + where: GroupWhereInput + ): GroupConnection! + vulnerabilityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54741,16 +54858,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomDomains returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CustomDomainOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CustomDomains returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CustomDomainWhereInput - ): CustomDomainConnection! - jobRunners( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54772,16 +54889,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunners returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunners returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerWhereInput - ): JobRunnerConnection! - jobRunnerTokens( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54803,16 +54920,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerTokenWhereInput - ): JobRunnerTokenConnection! - jobRunnerRegistrationTokens( + where: GroupWhereInput + ): GroupConnection! + workflowDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54834,16 +54951,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerRegistrationTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerRegistrationTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerRegistrationTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerRegistrationTokenWhereInput - ): JobRunnerRegistrationTokenConnection! - dnsVerifications( + where: GroupWhereInput + ): GroupConnection! + workflowEventCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54865,16 +54982,16 @@ type Organization implements Node { last: Int """ - Ordering options for DNSVerifications returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DNSVerificationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DNSVerifications returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DNSVerificationWhereInput - ): DNSVerificationConnection! - jobTemplates( + where: GroupWhereInput + ): GroupConnection! + workflowInstanceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54896,16 +55013,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobTemplateWhereInput - ): JobTemplateConnection! - scheduledJobs( + where: GroupWhereInput + ): GroupConnection! + workflowObjectRefCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54927,16 +55044,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobWhereInput - ): ScheduledJobConnection! - jobResults( + where: GroupWhereInput + ): GroupConnection! + workflowProposalCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -54958,16 +55075,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobResults returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobResultOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobResults returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobResultWhereInput - ): JobResultConnection! - scheduledJobRuns( + where: GroupWhereInput + ): GroupConnection! + campaignsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -54989,16 +55106,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobRuns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobRunOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobRuns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobRunWhereInput - ): ScheduledJobRunConnection! - trustCenters( + where: GroupWhereInput + ): GroupConnection! + complianceManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55020,16 +55137,16 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenters returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TrustCenterOrder!] + orderBy: [GroupOrder!] """ - Filtering options for TrustCenters returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TrustCenterWhereInput - ): TrustCenterConnection! - assets( + where: GroupWhereInput + ): GroupConnection! + groupManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55051,16 +55168,16 @@ type Organization implements Node { last: Int """ - Ordering options for Assets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [AssetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Assets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: AssetWhereInput - ): AssetConnection! - scans( + where: GroupWhereInput + ): GroupConnection! + policiesManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55082,16 +55199,16 @@ type Organization implements Node { last: Int """ - Ordering options for Scans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Scans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScanWhereInput - ): ScanConnection! - slaDefinitions( + where: GroupWhereInput + ): GroupConnection! + registryManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55113,16 +55230,16 @@ type Organization implements Node { last: Int """ - Ordering options for SLADefinitions returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SLADefinitionOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SLADefinitions returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SLADefinitionWhereInput - ): SLADefinitionConnection! - subprocessors( + where: GroupWhereInput + ): GroupConnection! + riskManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55144,16 +55261,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subprocessors returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubprocessorOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subprocessors returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubprocessorWhereInput - ): SubprocessorConnection! - exports( + where: GroupWhereInput + ): GroupConnection! + trustCenterManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55175,16 +55292,16 @@ type Organization implements Node { last: Int """ - Ordering options for Exports returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ExportOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Exports returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ExportWhereInput - ): ExportConnection! - trustCenterWatermarkConfigs( + where: GroupWhereInput + ): GroupConnection! + workflowsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -55206,16 +55323,17 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenterWatermarkConfigs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TrustCenterWatermarkConfigOrder!] + orderBy: [GroupOrder!] """ - Filtering options for TrustCenterWatermarkConfigs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TrustCenterWatermarkConfigWhereInput - ): TrustCenterWatermarkConfigConnection! - assessments( + where: GroupWhereInput + ): GroupConnection! + parent: Organization + children( """ Returns the elements in the list that come after the specified cursor. """ @@ -55237,16 +55355,17 @@ type Organization implements Node { last: Int """ - Ordering options for Assessments returned from the connection. + Ordering options for Organizations returned from the connection. """ - orderBy: [AssessmentOrder!] + orderBy: [OrganizationOrder!] """ - Filtering options for Assessments returned from the connection. + Filtering options for Organizations returned from the connection. """ - where: AssessmentWhereInput - ): AssessmentConnection! - assessmentResponses( + where: OrganizationWhereInput + ): OrganizationConnection! + setting: OrganizationSetting + personalAccessTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -55268,16 +55387,16 @@ type Organization implements Node { last: Int """ - Ordering options for AssessmentResponses returned from the connection. + Ordering options for PersonalAccessTokens returned from the connection. """ - orderBy: [AssessmentResponseOrder!] + orderBy: [PersonalAccessTokenOrder!] """ - Filtering options for AssessmentResponses returned from the connection. + Filtering options for PersonalAccessTokens returned from the connection. """ - where: AssessmentResponseWhereInput - ): AssessmentResponseConnection! - customTypeEnums( + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + apiTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -55299,16 +55418,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomTypeEnums returned from the connection. + Ordering options for APITokens returned from the connection. """ - orderBy: [CustomTypeEnumOrder!] + orderBy: [APITokenOrder!] """ - Filtering options for CustomTypeEnums returned from the connection. + Filtering options for APITokens returned from the connection. """ - where: CustomTypeEnumWhereInput - ): CustomTypeEnumConnection! - tagDefinitions( + where: APITokenWhereInput + ): APITokenConnection! + emailTemplates( """ Returns the elements in the list that come after the specified cursor. """ @@ -55330,16 +55449,16 @@ type Organization implements Node { last: Int """ - Ordering options for TagDefinitions returned from the connection. + Ordering options for EmailTemplates returned from the connection. """ - orderBy: [TagDefinitionOrder!] + orderBy: [EmailTemplateOrder!] """ - Filtering options for TagDefinitions returned from the connection. + Filtering options for EmailTemplates returned from the connection. """ - where: TagDefinitionWhereInput - ): TagDefinitionConnection! - remediations( + where: EmailTemplateWhereInput + ): EmailTemplateConnection! + notificationPreferences( """ Returns the elements in the list that come after the specified cursor. """ @@ -55361,16 +55480,1723 @@ type Organization implements Node { last: Int """ - Ordering options for Remediations returned from the connection. + Ordering options for NotificationPreferences returned from the connection. """ - orderBy: [RemediationOrder!] + orderBy: [NotificationPreferenceOrder!] """ - Filtering options for Remediations returned from the connection. + Filtering options for NotificationPreferences returned from the connection. """ - where: RemediationWhereInput - ): RemediationConnection! - findings( + where: NotificationPreferenceWhereInput + ): NotificationPreferenceConnection! + notificationTemplates( + """ + 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 NotificationTemplates returned from the connection. + """ + orderBy: [NotificationTemplateOrder!] + + """ + Filtering options for NotificationTemplates returned from the connection. + """ + where: NotificationTemplateWhereInput + ): NotificationTemplateConnection! + 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! + 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 + + """ + Ordering options for Files returned from the connection. + """ + orderBy: [FileOrder!] + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + 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 + + """ + Ordering options for Events returned from the connection. + """ + orderBy: [EventOrder!] + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + secrets( + """ + 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! + avatarFile: File + 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! + 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! + 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! + documents( + """ + 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 DocumentDataSlice returned from the connection. + """ + orderBy: [DocumentDataOrder!] + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + orgSubscriptions: [OrgSubscription!] + 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 + + """ + Ordering options for Invites returned from the connection. + """ + orderBy: [InviteOrder!] + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + 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 + + """ + Ordering options for Subscribers returned from the connection. + """ + orderBy: [SubscriberOrder!] + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + 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! + platforms( + """ + 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 Platforms returned from the connection. + """ + orderBy: [PlatformOrder!] + + """ + Filtering options for Platforms returned from the connection. + """ + where: PlatformWhereInput + ): PlatformConnection! + identityHolders( + """ + 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 IdentityHolders returned from the connection. + """ + orderBy: [IdentityHolderOrder!] + + """ + Filtering options for IdentityHolders returned from the connection. + """ + where: IdentityHolderWhereInput + ): IdentityHolderConnection! + campaigns( + """ + 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 Campaigns returned from the connection. + """ + orderBy: [CampaignOrder!] + + """ + Filtering options for Campaigns returned from the connection. + """ + where: CampaignWhereInput + ): CampaignConnection! + campaignTargets( + """ + 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 CampaignTargets returned from the connection. + """ + orderBy: [CampaignTargetOrder!] + + """ + Filtering options for CampaignTargets returned from the connection. + """ + where: CampaignTargetWhereInput + ): CampaignTargetConnection! + 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! + 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 + + """ + Ordering options for Contacts returned from the connection. + """ + orderBy: [ContactOrder!] + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + 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 + + """ + Ordering options for Notes returned from the connection. + """ + orderBy: [NoteOrder!] + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + 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 + + """ + Ordering options for Tasks returned from the connection. + """ + orderBy: [TaskOrder!] + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + 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 + + """ + Ordering options for Programs returned from the connection. + """ + orderBy: [ProgramOrder!] + + """ + Filtering options for Programs returned from the connection. + """ + where: ProgramWhereInput + ): ProgramConnection! + systemDetails( + """ + 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 SystemDetails returned from the connection. + """ + orderBy: [SystemDetailOrder!] + + """ + Filtering options for SystemDetails returned from the connection. + """ + where: SystemDetailWhereInput + ): SystemDetailConnection! + 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 + + """ + Ordering options for Procedures returned from the connection. + """ + orderBy: [ProcedureOrder!] + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + 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 + + """ + Ordering options for InternalPolicies returned from the connection. + """ + orderBy: [InternalPolicyOrder!] + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + 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 + + """ + Ordering options for Risks returned from the connection. + """ + orderBy: [RiskOrder!] + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + 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 + + """ + Ordering options for ControlObjectives returned from the connection. + """ + orderBy: [ControlObjectiveOrder!] + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + 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 + + """ + Ordering options for Narratives returned from the connection. + """ + orderBy: [NarrativeOrder!] + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + 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 + + """ + Ordering options for Controls returned from the connection. + """ + orderBy: [ControlOrder!] + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + 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 + + """ + Ordering options for Subcontrols returned from the connection. + """ + orderBy: [SubcontrolOrder!] + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + controlImplementations( + """ + 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 ControlImplementations returned from the connection. + """ + orderBy: [ControlImplementationOrder!] + + """ + Filtering options for ControlImplementations returned from the connection. + """ + where: ControlImplementationWhereInput + ): ControlImplementationConnection! + mappedControls( + """ + 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 MappedControls returned from the connection. + """ + orderBy: [MappedControlOrder!] + + """ + Filtering options for MappedControls returned from the connection. + """ + where: MappedControlWhereInput + ): MappedControlConnection! + evidence( + """ + 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 Evidences returned from the connection. + """ + orderBy: [EvidenceOrder!] + + """ + Filtering options for Evidences returned from the connection. + """ + where: EvidenceWhereInput + ): EvidenceConnection! + 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 + + """ + Ordering options for Standards returned from the connection. + """ + orderBy: [StandardOrder!] + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + 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 + + """ + Ordering options for ActionPlans returned from the connection. + """ + orderBy: [ActionPlanOrder!] + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + customDomains( + """ + 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 CustomDomains returned from the connection. + """ + orderBy: [CustomDomainOrder!] + + """ + Filtering options for CustomDomains returned from the connection. + """ + where: CustomDomainWhereInput + ): CustomDomainConnection! + jobRunners( + """ + 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 JobRunners returned from the connection. + """ + orderBy: [JobRunnerOrder!] + + """ + Filtering options for JobRunners returned from the connection. + """ + where: JobRunnerWhereInput + ): JobRunnerConnection! + jobRunnerTokens( + """ + 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 JobRunnerTokens returned from the connection. + """ + orderBy: [JobRunnerTokenOrder!] + + """ + Filtering options for JobRunnerTokens returned from the connection. + """ + where: JobRunnerTokenWhereInput + ): JobRunnerTokenConnection! + jobRunnerRegistrationTokens( + """ + 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 JobRunnerRegistrationTokens returned from the connection. + """ + orderBy: [JobRunnerRegistrationTokenOrder!] + + """ + Filtering options for JobRunnerRegistrationTokens returned from the connection. + """ + where: JobRunnerRegistrationTokenWhereInput + ): JobRunnerRegistrationTokenConnection! + dnsVerifications( + """ + 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 DNSVerifications returned from the connection. + """ + orderBy: [DNSVerificationOrder!] + + """ + Filtering options for DNSVerifications returned from the connection. + """ + where: DNSVerificationWhereInput + ): DNSVerificationConnection! + jobTemplates( + """ + 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 JobTemplates returned from the connection. + """ + orderBy: [JobTemplateOrder!] + + """ + Filtering options for JobTemplates returned from the connection. + """ + where: JobTemplateWhereInput + ): JobTemplateConnection! + scheduledJobs( + """ + 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 ScheduledJobs returned from the connection. + """ + orderBy: [ScheduledJobOrder!] + + """ + Filtering options for ScheduledJobs returned from the connection. + """ + where: ScheduledJobWhereInput + ): ScheduledJobConnection! + jobResults( + """ + 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 JobResults returned from the connection. + """ + orderBy: [JobResultOrder!] + + """ + Filtering options for JobResults returned from the connection. + """ + where: JobResultWhereInput + ): JobResultConnection! + scheduledJobRuns( + """ + 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 ScheduledJobRuns returned from the connection. + """ + orderBy: [ScheduledJobRunOrder!] + + """ + Filtering options for ScheduledJobRuns returned from the connection. + """ + where: ScheduledJobRunWhereInput + ): ScheduledJobRunConnection! + trustCenters( + """ + 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 TrustCenters returned from the connection. + """ + orderBy: [TrustCenterOrder!] + + """ + Filtering options for TrustCenters returned from the connection. + """ + where: TrustCenterWhereInput + ): TrustCenterConnection! + assets( + """ + 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 Assets returned from the connection. + """ + orderBy: [AssetOrder!] + + """ + Filtering options for Assets returned from the connection. + """ + where: AssetWhereInput + ): AssetConnection! + scans( + """ + 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 Scans returned from the connection. + """ + orderBy: [ScanOrder!] + + """ + Filtering options for Scans returned from the connection. + """ + where: ScanWhereInput + ): ScanConnection! + slaDefinitions( + """ + 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 SLADefinitions returned from the connection. + """ + orderBy: [SLADefinitionOrder!] + + """ + Filtering options for SLADefinitions returned from the connection. + """ + where: SLADefinitionWhereInput + ): SLADefinitionConnection! + subprocessors( + """ + 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 Subprocessors returned from the connection. + """ + orderBy: [SubprocessorOrder!] + + """ + Filtering options for Subprocessors returned from the connection. + """ + where: SubprocessorWhereInput + ): SubprocessorConnection! + exports( + """ + 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 Exports returned from the connection. + """ + orderBy: [ExportOrder!] + + """ + Filtering options for Exports returned from the connection. + """ + where: ExportWhereInput + ): ExportConnection! + trustCenterWatermarkConfigs( + """ + 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 TrustCenterWatermarkConfigs returned from the connection. + """ + orderBy: [TrustCenterWatermarkConfigOrder!] + + """ + Filtering options for TrustCenterWatermarkConfigs returned from the connection. + """ + where: TrustCenterWatermarkConfigWhereInput + ): TrustCenterWatermarkConfigConnection! + assessments( + """ + 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 Assessments returned from the connection. + """ + orderBy: [AssessmentOrder!] + + """ + Filtering options for Assessments returned from the connection. + """ + where: AssessmentWhereInput + ): AssessmentConnection! + assessmentResponses( + """ + 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 AssessmentResponses returned from the connection. + """ + orderBy: [AssessmentResponseOrder!] + + """ + Filtering options for AssessmentResponses returned from the connection. + """ + where: AssessmentResponseWhereInput + ): AssessmentResponseConnection! + customTypeEnums( + """ + 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 CustomTypeEnums returned from the connection. + """ + orderBy: [CustomTypeEnumOrder!] + + """ + Filtering options for CustomTypeEnums returned from the connection. + """ + where: CustomTypeEnumWhereInput + ): CustomTypeEnumConnection! + tagDefinitions( + """ + 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 TagDefinitions returned from the connection. + """ + orderBy: [TagDefinitionOrder!] + + """ + Filtering options for TagDefinitions returned from the connection. + """ + where: TagDefinitionWhereInput + ): TagDefinitionConnection! + remediations( + """ + 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 Remediations returned from the connection. + """ + orderBy: [RemediationOrder!] + + """ + Filtering options for Remediations returned from the connection. + """ + where: RemediationWhereInput + ): RemediationConnection! + findings( """ Returns the elements in the list that come after the specified cursor. """ @@ -56880,6 +58706,46 @@ input OrganizationWhereInput { avatarUpdatedAtIsNil: Boolean avatarUpdatedAtNotNil: Boolean """ + action_plan_creators edge predicates + """ + hasActionPlanCreators: Boolean + hasActionPlanCreatorsWith: [GroupWhereInput!] + """ + api_token_creators edge predicates + """ + hasAPITokenCreators: Boolean + hasAPITokenCreatorsWith: [GroupWhereInput!] + """ + assessment_creators edge predicates + """ + hasAssessmentCreators: Boolean + hasAssessmentCreatorsWith: [GroupWhereInput!] + """ + asset_creators edge predicates + """ + hasAssetCreators: Boolean + hasAssetCreatorsWith: [GroupWhereInput!] + """ + campaign_creators edge predicates + """ + hasCampaignCreators: Boolean + hasCampaignCreatorsWith: [GroupWhereInput!] + """ + campaign_target_creators edge predicates + """ + hasCampaignTargetCreators: Boolean + hasCampaignTargetCreatorsWith: [GroupWhereInput!] + """ + check_result_creators edge predicates + """ + hasCheckResultCreators: Boolean + hasCheckResultCreatorsWith: [GroupWhereInput!] + """ + contact_creators edge predicates + """ + hasContactCreators: Boolean + hasContactCreatorsWith: [GroupWhereInput!] + """ control_creators edge predicates """ hasControlCreators: Boolean @@ -56895,36 +58761,101 @@ input OrganizationWhereInput { hasControlObjectiveCreators: Boolean hasControlObjectiveCreatorsWith: [GroupWhereInput!] """ + custom_type_enum_creators edge predicates + """ + hasCustomTypeEnumCreators: Boolean + hasCustomTypeEnumCreatorsWith: [GroupWhereInput!] + """ + discussion_creators edge predicates + """ + hasDiscussionCreators: Boolean + hasDiscussionCreatorsWith: [GroupWhereInput!] + """ + email_branding_creators edge predicates + """ + hasEmailBrandingCreators: Boolean + hasEmailBrandingCreatorsWith: [GroupWhereInput!] + """ + email_template_creators edge predicates + """ + hasEmailTemplateCreators: Boolean + hasEmailTemplateCreatorsWith: [GroupWhereInput!] + """ + entity_creators edge predicates + """ + hasEntityCreators: Boolean + hasEntityCreatorsWith: [GroupWhereInput!] + """ + entity_type_creators edge predicates + """ + hasEntityTypeCreators: Boolean + hasEntityTypeCreatorsWith: [GroupWhereInput!] + """ evidence_creators edge predicates """ hasEvidenceCreators: Boolean hasEvidenceCreatorsWith: [GroupWhereInput!] """ - asset_creators edge predicates + export_creators edge predicates """ - hasAssetCreators: Boolean - hasAssetCreatorsWith: [GroupWhereInput!] + hasExportCreators: Boolean + hasExportCreatorsWith: [GroupWhereInput!] + """ + file_creators edge predicates + """ + hasFileCreators: Boolean + hasFileCreatorsWith: [GroupWhereInput!] """ finding_creators edge predicates """ hasFindingCreators: Boolean hasFindingCreatorsWith: [GroupWhereInput!] """ - vulnerability_creators edge predicates - """ - hasVulnerabilityCreators: Boolean - hasVulnerabilityCreatorsWith: [GroupWhereInput!] - """ group_creators edge predicates """ hasGroupCreators: Boolean hasGroupCreatorsWith: [GroupWhereInput!] """ + identity_holder_creators edge predicates + """ + hasIdentityHolderCreators: Boolean + hasIdentityHolderCreatorsWith: [GroupWhereInput!] + """ + integration_creators edge predicates + """ + hasIntegrationCreators: Boolean + hasIntegrationCreatorsWith: [GroupWhereInput!] + """ + integration_webhook_creators edge predicates + """ + hasIntegrationWebhookCreators: Boolean + hasIntegrationWebhookCreatorsWith: [GroupWhereInput!] + """ internal_policy_creators edge predicates """ hasInternalPolicyCreators: Boolean hasInternalPolicyCreatorsWith: [GroupWhereInput!] """ + job_runner_creators edge predicates + """ + hasJobRunnerCreators: Boolean + hasJobRunnerCreatorsWith: [GroupWhereInput!] + """ + job_runner_registration_token_creators edge predicates + """ + hasJobRunnerRegistrationTokenCreators: Boolean + hasJobRunnerRegistrationTokenCreatorsWith: [GroupWhereInput!] + """ + job_runner_token_creators edge predicates + """ + hasJobRunnerTokenCreators: Boolean + hasJobRunnerTokenCreatorsWith: [GroupWhereInput!] + """ + job_template_creators edge predicates + """ + hasJobTemplateCreators: Boolean + hasJobTemplateCreatorsWith: [GroupWhereInput!] + """ mapped_control_creators edge predicates """ hasMappedControlCreators: Boolean @@ -56935,6 +58866,26 @@ input OrganizationWhereInput { hasNarrativeCreators: Boolean hasNarrativeCreatorsWith: [GroupWhereInput!] """ + note_creators edge predicates + """ + hasNoteCreators: Boolean + hasNoteCreatorsWith: [GroupWhereInput!] + """ + notification_template_creators edge predicates + """ + hasNotificationTemplateCreators: Boolean + hasNotificationTemplateCreatorsWith: [GroupWhereInput!] + """ + organization_creators edge predicates + """ + hasOrganizationCreators: Boolean + hasOrganizationCreatorsWith: [GroupWhereInput!] + """ + platform_creators edge predicates + """ + hasPlatformCreators: Boolean + hasPlatformCreatorsWith: [GroupWhereInput!] + """ procedure_creators edge predicates """ hasProcedureCreators: Boolean @@ -56945,50 +58896,210 @@ input OrganizationWhereInput { hasProgramCreators: Boolean hasProgramCreatorsWith: [GroupWhereInput!] """ + remediation_creators edge predicates + """ + hasRemediationCreators: Boolean + hasRemediationCreatorsWith: [GroupWhereInput!] + """ + review_creators edge predicates + """ + hasReviewCreators: Boolean + hasReviewCreatorsWith: [GroupWhereInput!] + """ risk_creators edge predicates """ hasRiskCreators: Boolean hasRiskCreatorsWith: [GroupWhereInput!] """ - identity_holder_creators edge predicates + scan_creators edge predicates """ - hasIdentityHolderCreators: Boolean - hasIdentityHolderCreatorsWith: [GroupWhereInput!] + hasScanCreators: Boolean + hasScanCreatorsWith: [GroupWhereInput!] """ scheduled_job_creators edge predicates """ hasScheduledJobCreators: Boolean hasScheduledJobCreatorsWith: [GroupWhereInput!] """ + scheduled_job_run_creators edge predicates + """ + hasScheduledJobRunCreators: Boolean + hasScheduledJobRunCreatorsWith: [GroupWhereInput!] + """ standard_creators edge predicates """ hasStandardCreators: Boolean hasStandardCreatorsWith: [GroupWhereInput!] """ - template_creators edge predicates + subcontrol_creators edge predicates """ - hasTemplateCreators: Boolean - hasTemplateCreatorsWith: [GroupWhereInput!] + hasSubcontrolCreators: Boolean + hasSubcontrolCreatorsWith: [GroupWhereInput!] """ subprocessor_creators edge predicates """ hasSubprocessorCreators: Boolean hasSubprocessorCreatorsWith: [GroupWhereInput!] """ + subscriber_creators edge predicates + """ + hasSubscriberCreators: Boolean + hasSubscriberCreatorsWith: [GroupWhereInput!] + """ + system_detail_creators edge predicates + """ + hasSystemDetailCreators: Boolean + hasSystemDetailCreatorsWith: [GroupWhereInput!] + """ + tag_definition_creators edge predicates + """ + hasTagDefinitionCreators: Boolean + hasTagDefinitionCreatorsWith: [GroupWhereInput!] + """ + task_creators edge predicates + """ + hasTaskCreators: Boolean + hasTaskCreatorsWith: [GroupWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [GroupWhereInput!] + """ + trust_center_creators edge predicates + """ + hasTrustCenterCreators: Boolean + hasTrustCenterCreatorsWith: [GroupWhereInput!] + """ + trust_center_compliance_creators edge predicates + """ + hasTrustCenterComplianceCreators: Boolean + hasTrustCenterComplianceCreatorsWith: [GroupWhereInput!] + """ trust_center_doc_creators edge predicates """ hasTrustCenterDocCreators: Boolean hasTrustCenterDocCreatorsWith: [GroupWhereInput!] """ + trust_center_entity_creators edge predicates + """ + hasTrustCenterEntityCreators: Boolean + hasTrustCenterEntityCreatorsWith: [GroupWhereInput!] + """ + trust_center_faq_creators edge predicates + """ + hasTrustCenterFaqCreators: Boolean + hasTrustCenterFaqCreatorsWith: [GroupWhereInput!] + """ + trust_center_nda_request_creators edge predicates + """ + hasTrustCenterNdaRequestCreators: Boolean + hasTrustCenterNdaRequestCreatorsWith: [GroupWhereInput!] + """ trust_center_subprocessor_creators edge predicates """ hasTrustCenterSubprocessorCreators: Boolean hasTrustCenterSubprocessorCreatorsWith: [GroupWhereInput!] """ - action_plan_creators edge predicates + trust_center_watermark_config_creators edge predicates """ - hasActionPlanCreators: Boolean - hasActionPlanCreatorsWith: [GroupWhereInput!] + hasTrustCenterWatermarkConfigCreators: Boolean + hasTrustCenterWatermarkConfigCreatorsWith: [GroupWhereInput!] + """ + user_creators edge predicates + """ + hasUserCreators: Boolean + hasUserCreatorsWith: [GroupWhereInput!] + """ + user_setting_creators edge predicates + """ + hasUserSettingCreators: Boolean + hasUserSettingCreatorsWith: [GroupWhereInput!] + """ + vendor_risk_score_creators edge predicates + """ + hasVendorRiskScoreCreators: Boolean + hasVendorRiskScoreCreatorsWith: [GroupWhereInput!] + """ + vulnerability_creators edge predicates + """ + hasVulnerabilityCreators: Boolean + hasVulnerabilityCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_creators edge predicates + """ + hasWorkflowAssignmentCreators: Boolean + hasWorkflowAssignmentCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_target_creators edge predicates + """ + hasWorkflowAssignmentTargetCreators: Boolean + hasWorkflowAssignmentTargetCreatorsWith: [GroupWhereInput!] + """ + workflow_definition_creators edge predicates + """ + hasWorkflowDefinitionCreators: Boolean + hasWorkflowDefinitionCreatorsWith: [GroupWhereInput!] + """ + workflow_event_creators edge predicates + """ + hasWorkflowEventCreators: Boolean + hasWorkflowEventCreatorsWith: [GroupWhereInput!] + """ + workflow_instance_creators edge predicates + """ + hasWorkflowInstanceCreators: Boolean + hasWorkflowInstanceCreatorsWith: [GroupWhereInput!] + """ + workflow_object_ref_creators edge predicates + """ + hasWorkflowObjectRefCreators: Boolean + hasWorkflowObjectRefCreatorsWith: [GroupWhereInput!] + """ + workflow_proposal_creators edge predicates + """ + hasWorkflowProposalCreators: Boolean + hasWorkflowProposalCreatorsWith: [GroupWhereInput!] + """ + campaigns_manager edge predicates + """ + hasCampaignsManager: Boolean + hasCampaignsManagerWith: [GroupWhereInput!] + """ + compliance_manager edge predicates + """ + hasComplianceManager: Boolean + hasComplianceManagerWith: [GroupWhereInput!] + """ + group_manager edge predicates + """ + hasGroupManager: Boolean + hasGroupManagerWith: [GroupWhereInput!] + """ + policies_manager edge predicates + """ + hasPoliciesManager: Boolean + hasPoliciesManagerWith: [GroupWhereInput!] + """ + registry_manager edge predicates + """ + hasRegistryManager: Boolean + hasRegistryManagerWith: [GroupWhereInput!] + """ + risk_manager edge predicates + """ + hasRiskManager: Boolean + hasRiskManagerWith: [GroupWhereInput!] + """ + trust_center_manager edge predicates + """ + hasTrustCenterManager: Boolean + hasTrustCenterManagerWith: [GroupWhereInput!] + """ + workflows_manager edge predicates + """ + hasWorkflowsManager: Boolean + hasWorkflowsManagerWith: [GroupWhereInput!] """ parent edge predicates """ @@ -62250,6 +64361,7 @@ ProgramMembershipRole is enum for the field role enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ Return response for updateProgramMembership mutation @@ -86359,8 +88471,6 @@ input UpdateAssessmentInput { """ responseDueDuration: Int clearResponseDueDuration: Boolean - ownerID: ID - clearOwner: Boolean addBlockedGroupIDs: [ID!] removeBlockedGroupIDs: [ID!] clearBlockedGroups: Boolean @@ -90638,6 +92748,30 @@ input UpdateOrganizationInput { """ avatarUpdatedAt: Time clearAvatarUpdatedAt: Boolean + addActionPlanCreatorIDs: [ID!] + removeActionPlanCreatorIDs: [ID!] + clearActionPlanCreators: Boolean + addAPITokenCreatorIDs: [ID!] + removeAPITokenCreatorIDs: [ID!] + clearAPITokenCreators: Boolean + addAssessmentCreatorIDs: [ID!] + removeAssessmentCreatorIDs: [ID!] + clearAssessmentCreators: Boolean + addAssetCreatorIDs: [ID!] + removeAssetCreatorIDs: [ID!] + clearAssetCreators: Boolean + addCampaignCreatorIDs: [ID!] + removeCampaignCreatorIDs: [ID!] + clearCampaignCreators: Boolean + addCampaignTargetCreatorIDs: [ID!] + removeCampaignTargetCreatorIDs: [ID!] + clearCampaignTargetCreators: Boolean + addCheckResultCreatorIDs: [ID!] + removeCheckResultCreatorIDs: [ID!] + clearCheckResultCreators: Boolean + addContactCreatorIDs: [ID!] + removeContactCreatorIDs: [ID!] + clearContactCreators: Boolean addControlCreatorIDs: [ID!] removeControlCreatorIDs: [ID!] clearControlCreators: Boolean @@ -90647,63 +92781,210 @@ input UpdateOrganizationInput { addControlObjectiveCreatorIDs: [ID!] removeControlObjectiveCreatorIDs: [ID!] clearControlObjectiveCreators: Boolean + addCustomTypeEnumCreatorIDs: [ID!] + removeCustomTypeEnumCreatorIDs: [ID!] + clearCustomTypeEnumCreators: Boolean + addDiscussionCreatorIDs: [ID!] + removeDiscussionCreatorIDs: [ID!] + clearDiscussionCreators: Boolean + addEmailBrandingCreatorIDs: [ID!] + removeEmailBrandingCreatorIDs: [ID!] + clearEmailBrandingCreators: Boolean + addEmailTemplateCreatorIDs: [ID!] + removeEmailTemplateCreatorIDs: [ID!] + clearEmailTemplateCreators: Boolean + addEntityCreatorIDs: [ID!] + removeEntityCreatorIDs: [ID!] + clearEntityCreators: Boolean + addEntityTypeCreatorIDs: [ID!] + removeEntityTypeCreatorIDs: [ID!] + clearEntityTypeCreators: Boolean addEvidenceCreatorIDs: [ID!] removeEvidenceCreatorIDs: [ID!] clearEvidenceCreators: Boolean - addAssetCreatorIDs: [ID!] - removeAssetCreatorIDs: [ID!] - clearAssetCreators: Boolean + addExportCreatorIDs: [ID!] + removeExportCreatorIDs: [ID!] + clearExportCreators: Boolean + addFileCreatorIDs: [ID!] + removeFileCreatorIDs: [ID!] + clearFileCreators: Boolean addFindingCreatorIDs: [ID!] removeFindingCreatorIDs: [ID!] clearFindingCreators: Boolean - addVulnerabilityCreatorIDs: [ID!] - removeVulnerabilityCreatorIDs: [ID!] - clearVulnerabilityCreators: Boolean addGroupCreatorIDs: [ID!] removeGroupCreatorIDs: [ID!] clearGroupCreators: Boolean + addIdentityHolderCreatorIDs: [ID!] + removeIdentityHolderCreatorIDs: [ID!] + clearIdentityHolderCreators: Boolean + addIntegrationCreatorIDs: [ID!] + removeIntegrationCreatorIDs: [ID!] + clearIntegrationCreators: Boolean + addIntegrationWebhookCreatorIDs: [ID!] + removeIntegrationWebhookCreatorIDs: [ID!] + clearIntegrationWebhookCreators: Boolean addInternalPolicyCreatorIDs: [ID!] removeInternalPolicyCreatorIDs: [ID!] clearInternalPolicyCreators: Boolean + addJobRunnerCreatorIDs: [ID!] + removeJobRunnerCreatorIDs: [ID!] + clearJobRunnerCreators: Boolean + addJobRunnerRegistrationTokenCreatorIDs: [ID!] + removeJobRunnerRegistrationTokenCreatorIDs: [ID!] + clearJobRunnerRegistrationTokenCreators: Boolean + addJobRunnerTokenCreatorIDs: [ID!] + removeJobRunnerTokenCreatorIDs: [ID!] + clearJobRunnerTokenCreators: Boolean + addJobTemplateCreatorIDs: [ID!] + removeJobTemplateCreatorIDs: [ID!] + clearJobTemplateCreators: Boolean addMappedControlCreatorIDs: [ID!] removeMappedControlCreatorIDs: [ID!] clearMappedControlCreators: Boolean addNarrativeCreatorIDs: [ID!] removeNarrativeCreatorIDs: [ID!] clearNarrativeCreators: Boolean + addNoteCreatorIDs: [ID!] + removeNoteCreatorIDs: [ID!] + clearNoteCreators: Boolean + addNotificationTemplateCreatorIDs: [ID!] + removeNotificationTemplateCreatorIDs: [ID!] + clearNotificationTemplateCreators: Boolean + addOrganizationCreatorIDs: [ID!] + removeOrganizationCreatorIDs: [ID!] + clearOrganizationCreators: Boolean + addPlatformCreatorIDs: [ID!] + removePlatformCreatorIDs: [ID!] + clearPlatformCreators: Boolean addProcedureCreatorIDs: [ID!] removeProcedureCreatorIDs: [ID!] clearProcedureCreators: Boolean addProgramCreatorIDs: [ID!] removeProgramCreatorIDs: [ID!] clearProgramCreators: Boolean + addRemediationCreatorIDs: [ID!] + removeRemediationCreatorIDs: [ID!] + clearRemediationCreators: Boolean + addReviewCreatorIDs: [ID!] + removeReviewCreatorIDs: [ID!] + clearReviewCreators: Boolean addRiskCreatorIDs: [ID!] removeRiskCreatorIDs: [ID!] clearRiskCreators: Boolean - addIdentityHolderCreatorIDs: [ID!] - removeIdentityHolderCreatorIDs: [ID!] - clearIdentityHolderCreators: Boolean + addScanCreatorIDs: [ID!] + removeScanCreatorIDs: [ID!] + clearScanCreators: Boolean addScheduledJobCreatorIDs: [ID!] removeScheduledJobCreatorIDs: [ID!] clearScheduledJobCreators: Boolean + addScheduledJobRunCreatorIDs: [ID!] + removeScheduledJobRunCreatorIDs: [ID!] + clearScheduledJobRunCreators: Boolean addStandardCreatorIDs: [ID!] removeStandardCreatorIDs: [ID!] clearStandardCreators: Boolean - addTemplateCreatorIDs: [ID!] - removeTemplateCreatorIDs: [ID!] - clearTemplateCreators: Boolean + addSubcontrolCreatorIDs: [ID!] + removeSubcontrolCreatorIDs: [ID!] + clearSubcontrolCreators: Boolean addSubprocessorCreatorIDs: [ID!] removeSubprocessorCreatorIDs: [ID!] clearSubprocessorCreators: Boolean + addSubscriberCreatorIDs: [ID!] + removeSubscriberCreatorIDs: [ID!] + clearSubscriberCreators: Boolean + addSystemDetailCreatorIDs: [ID!] + removeSystemDetailCreatorIDs: [ID!] + clearSystemDetailCreators: Boolean + addTagDefinitionCreatorIDs: [ID!] + removeTagDefinitionCreatorIDs: [ID!] + clearTagDefinitionCreators: Boolean + addTaskCreatorIDs: [ID!] + removeTaskCreatorIDs: [ID!] + clearTaskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addTrustCenterCreatorIDs: [ID!] + removeTrustCenterCreatorIDs: [ID!] + clearTrustCenterCreators: Boolean + addTrustCenterComplianceCreatorIDs: [ID!] + removeTrustCenterComplianceCreatorIDs: [ID!] + clearTrustCenterComplianceCreators: Boolean addTrustCenterDocCreatorIDs: [ID!] removeTrustCenterDocCreatorIDs: [ID!] clearTrustCenterDocCreators: Boolean + addTrustCenterEntityCreatorIDs: [ID!] + removeTrustCenterEntityCreatorIDs: [ID!] + clearTrustCenterEntityCreators: Boolean + addTrustCenterFaqCreatorIDs: [ID!] + removeTrustCenterFaqCreatorIDs: [ID!] + clearTrustCenterFaqCreators: Boolean + addTrustCenterNdaRequestCreatorIDs: [ID!] + removeTrustCenterNdaRequestCreatorIDs: [ID!] + clearTrustCenterNdaRequestCreators: Boolean addTrustCenterSubprocessorCreatorIDs: [ID!] removeTrustCenterSubprocessorCreatorIDs: [ID!] clearTrustCenterSubprocessorCreators: Boolean - addActionPlanCreatorIDs: [ID!] - removeActionPlanCreatorIDs: [ID!] - clearActionPlanCreators: Boolean + addTrustCenterWatermarkConfigCreatorIDs: [ID!] + removeTrustCenterWatermarkConfigCreatorIDs: [ID!] + clearTrustCenterWatermarkConfigCreators: Boolean + addUserCreatorIDs: [ID!] + removeUserCreatorIDs: [ID!] + clearUserCreators: Boolean + addUserSettingCreatorIDs: [ID!] + removeUserSettingCreatorIDs: [ID!] + clearUserSettingCreators: Boolean + addVendorRiskScoreCreatorIDs: [ID!] + removeVendorRiskScoreCreatorIDs: [ID!] + clearVendorRiskScoreCreators: Boolean + addVulnerabilityCreatorIDs: [ID!] + removeVulnerabilityCreatorIDs: [ID!] + clearVulnerabilityCreators: Boolean + addWorkflowAssignmentCreatorIDs: [ID!] + removeWorkflowAssignmentCreatorIDs: [ID!] + clearWorkflowAssignmentCreators: Boolean + addWorkflowAssignmentTargetCreatorIDs: [ID!] + removeWorkflowAssignmentTargetCreatorIDs: [ID!] + clearWorkflowAssignmentTargetCreators: Boolean + addWorkflowDefinitionCreatorIDs: [ID!] + removeWorkflowDefinitionCreatorIDs: [ID!] + clearWorkflowDefinitionCreators: Boolean + addWorkflowEventCreatorIDs: [ID!] + removeWorkflowEventCreatorIDs: [ID!] + clearWorkflowEventCreators: Boolean + addWorkflowInstanceCreatorIDs: [ID!] + removeWorkflowInstanceCreatorIDs: [ID!] + clearWorkflowInstanceCreators: Boolean + addWorkflowObjectRefCreatorIDs: [ID!] + removeWorkflowObjectRefCreatorIDs: [ID!] + clearWorkflowObjectRefCreators: Boolean + addWorkflowProposalCreatorIDs: [ID!] + removeWorkflowProposalCreatorIDs: [ID!] + clearWorkflowProposalCreators: Boolean + addCampaignsManagerIDs: [ID!] + removeCampaignsManagerIDs: [ID!] + clearCampaignsManager: Boolean + addComplianceManagerIDs: [ID!] + removeComplianceManagerIDs: [ID!] + clearComplianceManager: Boolean + addGroupManagerIDs: [ID!] + removeGroupManagerIDs: [ID!] + clearGroupManager: Boolean + addPoliciesManagerIDs: [ID!] + removePoliciesManagerIDs: [ID!] + clearPoliciesManager: Boolean + addRegistryManagerIDs: [ID!] + removeRegistryManagerIDs: [ID!] + clearRegistryManager: Boolean + addRiskManagerIDs: [ID!] + removeRiskManagerIDs: [ID!] + clearRiskManager: Boolean + addTrustCenterManagerIDs: [ID!] + removeTrustCenterManagerIDs: [ID!] + clearTrustCenterManager: Boolean + addWorkflowsManagerIDs: [ID!] + removeWorkflowsManagerIDs: [ID!] + clearWorkflowsManager: Boolean settingID: ID clearSetting: Boolean addPersonalAccessTokenIDs: [ID!] diff --git a/internal/graphapi/contact_test.go b/internal/graphapi/contact_test.go index 19b6672ef8..0a9edbcc0e 100644 --- a/internal/graphapi/contact_test.go +++ b/internal/graphapi/contact_test.go @@ -20,7 +20,7 @@ import ( ) func TestQueryContact(t *testing.T) { - contact := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + contact := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -34,19 +34,19 @@ func TestQueryContact(t *testing.T) { name: "happy path contact", queryID: contact.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path contact, view only user", queryID: contact.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "contact not returned, no access", queryID: contact.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: "contact not found", }, { @@ -77,12 +77,12 @@ func TestQueryContact(t *testing.T) { }) } - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryContacts(t *testing.T) { - contact1 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - contact2 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + contact1 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + contact2 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // other tests like assessment responses may add contacts // so we do not want to check length @@ -95,12 +95,12 @@ func TestQueryContacts(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, using api token", @@ -115,7 +115,7 @@ func TestQueryContacts(t *testing.T) { { name: "another user, no contacts should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, } @@ -127,8 +127,8 @@ func TestQueryContacts(t *testing.T) { }) } - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact2.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact2.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateContact(t *testing.T) { @@ -145,7 +145,7 @@ func TestMutationCreateContact(t *testing.T) { FullName: lo.ToPtr("Aemond Targaryen"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "view only user cannot create", @@ -153,7 +153,7 @@ func TestMutationCreateContact(t *testing.T) { FullName: lo.ToPtr("Aemond Targaryen"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -168,7 +168,7 @@ func TestMutationCreateContact(t *testing.T) { name: "happy path, using pat", request: testclient.CreateContactInput{ FullName: lo.ToPtr("Aegon Targaryen"), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -184,7 +184,7 @@ func TestMutationCreateContact(t *testing.T) { Status: &enums.UserStatusOnboarding, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -240,13 +240,13 @@ func TestMutationCreateContact(t *testing.T) { assert.Equal(t, *tc.request.Status, resp.CreateContact.Contact.Status) } - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: resp.CreateContact.Contact.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: resp.CreateContact.Contact.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateContact(t *testing.T) { - contact := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + contact := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -261,7 +261,7 @@ func TestMutationUpdateContact(t *testing.T) { FullName: lo.ToPtr("Alicent Hightower"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "view only user cannot update", @@ -269,7 +269,7 @@ func TestMutationUpdateContact(t *testing.T) { PhoneNumber: lo.ToPtr(gofakeit.Phone()), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -278,7 +278,7 @@ func TestMutationUpdateContact(t *testing.T) { PhoneNumber: lo.ToPtr(gofakeit.Phone()), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -303,7 +303,7 @@ func TestMutationUpdateContact(t *testing.T) { Email: lo.ToPtr("a.hightower@dragon.net"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update phone number, invalid", @@ -311,7 +311,7 @@ func TestMutationUpdateContact(t *testing.T) { PhoneNumber: lo.ToPtr("not a phone number"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: rout.InvalidField("phone_number").Error(), }, { @@ -320,7 +320,7 @@ func TestMutationUpdateContact(t *testing.T) { Email: lo.ToPtr("a.hightower"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "validator failed for field", }, { @@ -329,7 +329,7 @@ func TestMutationUpdateContact(t *testing.T) { Title: lo.ToPtr("Queen of the Seven Kingdoms"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update company", @@ -337,7 +337,7 @@ func TestMutationUpdateContact(t *testing.T) { Company: lo.ToPtr("House Targaryen"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -378,13 +378,13 @@ func TestMutationUpdateContact(t *testing.T) { }) } - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contact.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteContact(t *testing.T) { - contact1 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - contact2 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - contact3 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + contact1 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + contact2 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + contact3 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -397,27 +397,27 @@ func TestMutationDeleteContact(t *testing.T) { name: "not allowed to delete, not enough permissions", idToDelete: contact1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not allowed to delete, no access to object", idToDelete: contact1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete contact", idToDelete: contact1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "contact already deleted, not found", idToDelete: contact1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "contact not found", }, { @@ -436,7 +436,7 @@ func TestMutationDeleteContact(t *testing.T) { name: "unknown contact, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "contact not found", }, } @@ -457,11 +457,11 @@ func TestMutationDeleteContact(t *testing.T) { } func TestMutationUpdateBulkContact(t *testing.T) { - contact1 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - contact2 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - contact3 := (&ContactBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + contact1 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + contact2 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + contact3 := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - contactAnotherUser := (&ContactBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + contactAnotherUser := (&ContactBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -480,7 +480,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { Title: lo.ToPtr("Cleared Title"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, { @@ -488,7 +488,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { ids: []string{}, input: testclient.UpdateContactInput{FullName: lo.ToPtr("test")}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "ids is required", }, { @@ -498,7 +498,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { FullName: lo.ToPtr("Updated by authorized user"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 1, // only contact1 should be updated }, { @@ -508,7 +508,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { FullName: lo.ToPtr("Should not update"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedUpdatedCount: 0, // view only user cannot update }, { @@ -518,7 +518,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { FullName: lo.ToPtr("Should not update"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any contacts to update }, { @@ -528,7 +528,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { Status: &enums.UserStatusInactive, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, { @@ -538,7 +538,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { Company: lo.ToPtr("Updated Company"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, } @@ -611,7 +611,7 @@ func TestMutationUpdateBulkContact(t *testing.T) { } // ensure the org owner has access to the contact that was updated - res, err := suite.client.api.GetContactByID(testUser1.UserCtx, contact.ID) + res, err := suite.client.api.GetContactByID(sharedTestUser1.UserCtx, contact.ID) assert.NilError(t, err) assert.Check(t, is.Equal(contact.ID, res.Contact.ID)) } @@ -631,6 +631,6 @@ func TestMutationUpdateBulkContact(t *testing.T) { } // Cleanup created contacts - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, IDs: []string{contact1.ID, contact2.ID, contact3.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contactAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, IDs: []string{contact1.ID, contact2.ID, contact3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, ID: contactAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) } diff --git a/internal/graphapi/control_clone.go b/internal/graphapi/control_clone.go index 479f842427..9b9b414645 100644 --- a/internal/graphapi/control_clone.go +++ b/internal/graphapi/control_clone.go @@ -17,6 +17,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/control" "github.com/theopenlane/core/internal/ent/generated/predicate" "github.com/theopenlane/core/internal/ent/generated/privacy" + "github.com/theopenlane/core/internal/ent/generated/program" "github.com/theopenlane/core/internal/ent/generated/standard" "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/privacy/rule" @@ -193,6 +194,14 @@ func (r *mutationResolver) cloneControls(ctx context.Context, controlsToClone [] // check program access if a program is specified if programID != nil { + exists, err := r.db.Program.Query().Where(program.ID(*programID)).Exist(allowCtx) + if err != nil { + return nil, err + } + if !exists { + return nil, generated.ErrPermissionDenied + } + allow, err := r.db.Authz.CheckAccess(ctx, fgax.AccessCheck{ ObjectType: generated.TypeProgram, ObjectID: *programID, diff --git a/internal/graphapi/control_test.go b/internal/graphapi/control_test.go index 7c94d61347..653561f70f 100644 --- a/internal/graphapi/control_test.go +++ b/internal/graphapi/control_test.go @@ -11,7 +11,6 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/samber/lo" - "github.com/theopenlane/iam/auth" "github.com/theopenlane/utils/ulids" "github.com/theopenlane/core/common/enums" @@ -23,16 +22,16 @@ import ( ) func TestQueryControl(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a control (&ProgramMemberBuilder{ client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String(), + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String(), }). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) controlIDs := []string{} // add test cases for querying the control @@ -48,19 +47,19 @@ func TestQueryControl(t *testing.T) { name: "happy path", programAccess: true, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user, inherits access from the organization", programAccess: false, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "admin user, access to the program", programAccess: true, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path using personal access token", @@ -72,13 +71,13 @@ func TestQueryControl(t *testing.T) { name: "control not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "control not found, using not authorized user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -93,7 +92,7 @@ func TestQueryControl(t *testing.T) { t.Run("Get "+tc.name, func(t *testing.T) { // setup the control if it is not already created if tc.queryID == "" { - resp, err := suite.client.api.CreateControl(testUser1.UserCtx, + resp, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "CTL-" + ulids.New().String(), // ensure unique ref code ProgramIDs: []string{program.ID}, @@ -149,8 +148,8 @@ func TestQueryControl(t *testing.T) { }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryControls(t *testing.T) { @@ -158,7 +157,7 @@ func TestQueryControls(t *testing.T) { controlsToCreate := int64(11) controlIDs := []string{} for range controlsToCreate { // set to 11 to ensure pagination is tested - control := (&ControlBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) controlIDs = append(controlIDs, control.ID) } @@ -166,7 +165,7 @@ func TestQueryControls(t *testing.T) { // add a control for the user to another org; this should not be returned for JWT auth, since it's // restricted to a single org. PAT auth would return it if both orgs are authorized on the token - controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(userAnotherOrg.UserCtx, t) + (&ControlBuilder{client: suite.client}).MustNew(userAnotherOrg.UserCtx, t) testCases := []struct { name string @@ -179,47 +178,47 @@ func TestQueryControls(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: testutils.MaxResultLimit, }, { name: "happy path, admin user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: testutils.MaxResultLimit, }, { name: "happy path, with first set", client: suite.client.api, first: lo.ToPtr(int64(5)), - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 5, }, { name: "happy path, with last set", client: suite.client.api, first: lo.ToPtr(int64(3)), - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 3, }, { name: "first set over max (10 in test)", client: suite.client.api, first: &controlsToCreate, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: testutils.MaxResultLimit, }, { name: "last set over max (10 in test)", client: suite.client.api, last: &controlsToCreate, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: testutils.MaxResultLimit, }, { name: "happy path, using read only user of the same org should inherit access from the org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: testutils.MaxResultLimit, }, { @@ -237,7 +236,7 @@ func TestQueryControls(t *testing.T) { { name: "another user, no controls should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -278,23 +277,21 @@ func TestQueryControls(t *testing.T) { } }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherOrg.ID}).MustDelete(userAnotherOrg.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(sharedTestUser1.UserCtx, t) + cleanupOrganizationDataWithContext(userAnotherOrg.UserCtx, t) } func TestQueryControlsMultipleOrgCheck(t *testing.T) { + t.Parallel() // test to make sure we don't get cross org results back even if the user technically has access to them - testUser := suite.userBuilder(context.Background(), t) + localTestUser := suite.seedOrgOwner(t) // create controls for the test user in their org - control := (&ControlBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - testUserOriginalCtx := auth.NewTestContextWithOrgID(testUser.ID, testUser.OrganizationID) + (&ControlBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) // create another org and a control in that org - anotherOrg := (&OrganizationBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - testUserCtxUpdate := auth.NewTestContextWithOrgID(testUser.ID, anotherOrg.ID) - - controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(testUserCtxUpdate, t) + localTestUser2 := suite.seedOrgOwner(t) + (&ControlBuilder{client: suite.client}).MustNew(localTestUser2.owner.UserCtx, t) testCases := []struct { name string @@ -307,20 +304,23 @@ func TestQueryControlsMultipleOrgCheck(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUserOriginalCtx, + ctx: localTestUser.owner.UserCtx, expectedResults: 1, }, { name: "happy path", client: suite.client.api, - ctx: testUserCtxUpdate, + ctx: localTestUser2.owner.UserCtx, expectedResults: 1, }, } for _, tc := range testCases { t.Run("List "+tc.name, func(t *testing.T) { - resp, err := tc.client.GetAllControls(tc.ctx) + // ensure system owned controls are not counted here + resp, err := tc.client.GetControls(tc.ctx, nil, nil, nil, nil, nil, &testclient.ControlWhereInput{ + SystemOwned: lo.ToPtr(false), + }) assert.NilError(t, err) assert.Check(t, resp != nil) @@ -328,32 +328,35 @@ func TestQueryControlsMultipleOrgCheck(t *testing.T) { assert.Check(t, is.Equal(int64(tc.expectedResults), resp.Controls.TotalCount)) }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUserOriginalCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherOrg.ID}).MustDelete(testUserCtxUpdate, t) + + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser2.owner.UserCtx, t) } func TestMutationCreateControl(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + + anotherOrg := suite.seedOrgOwner(t) + programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(anotherOrg.owner.UserCtx, t) - ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a control associated with the program1 (&ProgramMemberBuilder{ client: suite.client, ProgramID: program1.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String(), + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String(), }). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) // create groups to be associated with the control - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create control implementation to be associated with the control - controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - standard := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + standard := (&StandardBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -368,7 +371,7 @@ func TestMutationCreateControl(t *testing.T) { RefCode: "A-1", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -432,23 +435,23 @@ func TestMutationCreateControl(t *testing.T) { ControlImplementationIDs: []string{controlImplementation.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add groups", request: testclient.CreateControlInput{ RefCode: "A-3", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{blockedGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateControlInput{ RefCode: "A-4", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -467,26 +470,26 @@ func TestMutationCreateControl(t *testing.T) { RefCode: "A-6", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { - name: "user authorized, they were added to the program", + name: "admin authorized, they were added to the program", request: testclient.CreateControlInput{ RefCode: "A-7", ProgramIDs: []string{program1.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { - name: "user authorized, user not authorized to one of the programs", + name: "admin authorized, admin authorized to one of the programs", request: testclient.CreateControlInput{ RefCode: "A-8", ProgramIDs: []string{program1.ID, program2.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -495,7 +498,7 @@ func TestMutationCreateControl(t *testing.T) { Description: lo.ToPtr("A description of the Control"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -505,7 +508,7 @@ func TestMutationCreateControl(t *testing.T) { ProgramIDs: []string{programAnotherUser.ID, program1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -640,7 +643,7 @@ func TestMutationCreateControl(t *testing.T) { if len(tc.request.EditorIDs) > 0 { assert.Check(t, is.Len(resp.CreateControl.Control.Editors.Edges, 1)) for _, edge := range resp.CreateControl.Control.Editors.Edges { - assert.Check(t, is.Equal(testUser1.GroupID, edge.Node.ID)) + assert.Check(t, is.Equal(sharedTestUser1.GroupID, edge.Node.ID)) } } @@ -664,7 +667,7 @@ func TestMutationCreateControl(t *testing.T) { // ensure the org owner has access to the control that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetControlByID(testUser1.UserCtx, resp.CreateControl.Control.ID) + res, err := suite.client.api.GetControlByID(sharedTestUser1.UserCtx, resp.CreateControl.Control.ID) assert.NilError(t, err) assert.Check(t, is.Equal(resp.CreateControl.Control.ID, res.Control.ID)) @@ -675,29 +678,30 @@ func TestMutationCreateControl(t *testing.T) { // delete the created evidence, update for the token user cases if tc.ctx == context.Background() { - tc.ctx = testUser1.UserCtx + tc.ctx = sharedTestUser1.UserCtx } (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: resp.CreateControl.Control.ID}).MustDelete(tc.ctx, t) }) } - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, blockedGroup.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standard.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, blockedGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standard.ID}).MustDelete(sharedTestUser1.UserCtx, t) + + cleanupOrganizationDataWithContext(anotherOrg.owner.UserCtx, t) } func TestMutationCreateControlsByClone(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - programAnotherOrg := (&ProgramBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + programAnotherOrg := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) - publicStandard2 := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) + publicStandard2 := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) // create standard with controls to clone numControls := int64(20) @@ -710,32 +714,32 @@ func TestMutationCreateControlsByClone(t *testing.T) { subcontrols2 := []*generated.Subcontrol{} subcontrolID2s := []string{} for range numControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) controls = append(controls, control) controlIDs = append(controlIDs, control.ID) // give them all a subcontrol - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(systemAdminUser.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) subcontrols = append(subcontrols, subcontrol) subcontrolIDs = append(subcontrolIDs, subcontrol.ID) - control2 := (&ControlBuilder{client: suite.client, StandardID: publicStandard2.ID, AllFields: true}).MustNew(systemAdminUser.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, StandardID: publicStandard2.ID, AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) controls2 = append(controls2, control2) controlID2s = append(controlID2s, control2.ID) // give them all a subcontrol - subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(systemAdminUser.UserCtx, t) + subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) subcontrols2 = append(subcontrols2, subcontrol2) subcontrolID2s = append(subcontrolID2s, subcontrol2.ID) } // ensure the standard exists and has the correct number of controls for the non-system admin user - standard, err := suite.client.api.GetStandardByID(testUser2.UserCtx, publicStandard.ID) + standard, err := suite.client.api.GetStandardByID(sharedTestUser2.UserCtx, publicStandard.ID) assert.NilError(t, err) assert.Assert(t, standard != nil) assert.Equal(t, standard.Standard.Controls.TotalCount, numControls) // create org owned control in custom standard - orgStandard := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - orgOwnedControl := (&ControlBuilder{client: suite.client, AllFields: true, StandardID: orgStandard.ID}).MustNew(testUser1.UserCtx, t) + orgStandard := (&StandardBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + orgOwnedControl := (&ControlBuilder{client: suite.client, AllFields: true, StandardID: orgStandard.ID}).MustNew(sharedTestUser1.UserCtx, t) // sort controls so they are consistent slices.SortFunc(controls, func(a, b *generated.Control) int { @@ -765,7 +769,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: lo.ToPtr(publicStandard.ShortName), expectedControls: controls, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all controls under standard using standard id and program set", @@ -776,7 +780,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: lo.ToPtr(publicStandard2.ShortName), expectedControls: controls2, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all controls under standard", @@ -786,7 +790,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: &publicStandard.ShortName, expectedControls: controls, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, clone single control, should be a no-op. because the control already exists", @@ -796,7 +800,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedControls: []*generated.Control{controls[7]}, expectedStandard: &publicStandard.ShortName, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all controls under standard with program", @@ -808,7 +812,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: &publicStandard.ShortName, expectedNumProgram: 1, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "all controls under standard with program no access", @@ -819,7 +823,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedControls: controls, expectedStandard: &publicStandard.ShortName, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -830,7 +834,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedControls: []*generated.Control{orgOwnedControl}, expectedStandard: &orgStandard.Name, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, clone control under org with program", @@ -842,13 +846,13 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedControls: []*generated.Control{orgOwnedControl}, expectedNumProgram: 1, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, clone single control using personal access token", request: testclient.CloneControlInput{ ControlIDs: []string{controls[:1][0].ID}, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, expectedStandard: &publicStandard.ShortName, expectedControls: controls[:1], @@ -863,7 +867,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { }, expectedStandard: &publicStandard.ShortName, expectedControls: controls[:1], - expectedNumProgram: 0, // api token has no program access + expectedNumProgram: 1, // api token has scopes for program client: suite.client.apiWithToken, ctx: context.Background(), }, @@ -875,7 +879,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: lo.ToPtr("Custom"), expectedControls: []*generated.Control{orgOwnedControl}, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -884,7 +888,7 @@ func TestMutationCreateControlsByClone(t *testing.T) { expectedStandard: lo.ToPtr("Custom"), expectedControls: []*generated.Control{orgOwnedControl}, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -974,25 +978,25 @@ func TestMutationCreateControlsByClone(t *testing.T) { // ensure the org owner has access to the control that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetControlByID(testUser1.UserCtx, control.ID) + res, err := suite.client.api.GetControlByID(sharedTestUser1.UserCtx, control.ID) assert.NilError(t, err) assert.Check(t, res != nil) assert.Check(t, is.Equal(control.ID, res.Control.ID)) } // ensure view only user can see the control created by the admin user - res, err := suite.client.api.GetControlByID(viewOnlyUser.UserCtx, control.ID) + res, err := suite.client.api.GetControlByID(sharedViewOnlyUser.UserCtx, control.ID) assert.NilError(t, err) assert.Check(t, res != nil) assert.Check(t, is.Equal(control.ID, res.Control.ID)) // ensure a user outside my organization cannot get the control - res, err = suite.client.api.GetControlByID(testUser2.UserCtx, control.ID) + res, err = suite.client.api.GetControlByID(sharedTestUser2.UserCtx, control.ID) assert.ErrorContains(t, err, notFoundErrorMsg) // delete the created evidence, update for the token user cases if tc.ctx == context.Background() { - tc.ctx = testUser1.UserCtx + tc.ctx = sharedTestUser1.UserCtx } // keep track of controls to delete, sometimes we clone existing controls that were created @@ -1008,16 +1012,16 @@ func TestMutationCreateControlsByClone(t *testing.T) { } // cleanup created controls and standards - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: orgStandard.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: orgStandard.ID}).MustDelete(sharedTestUser1.UserCtx, t) // now we can delete it and the controls under it will be deleted - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{publicStandard.ID, publicStandard2.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{publicStandard.ID, publicStandard2.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolID2s}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolID2s}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateControlsByCloneCSV(t *testing.T) { @@ -1026,9 +1030,9 @@ func TestMutationCreateControlsByCloneCSV(t *testing.T) { updateControlsFile := uploadFile(t, "testdata/uploads/update.csv") // create the standard and controls to be cloned - standard := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "MITB 1987"}).MustNew(systemAdminUser.UserCtx, t) - control1 := (&ControlBuilder{client: suite.client, StandardID: standard.ID, RefCode: "AA-1", AllFields: true}).MustNew(systemAdminUser.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client, StandardID: standard.ID, RefCode: "AA-2", Aliases: []string{"AA 2", "ALIAS 2"}, AllFields: true}).MustNew(systemAdminUser.UserCtx, t) + standard := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "MITB 1987"}).MustNew(sharedSystemAdminUser.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, StandardID: standard.ID, RefCode: "AA-1", AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, StandardID: standard.ID, RefCode: "AA-2", Aliases: []string{"AA 2", "ALIAS 2"}, AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) controlsToDelete := []string{} implementationsToDelete := []string{} @@ -1044,21 +1048,21 @@ func TestMutationCreateControlsByCloneCSV(t *testing.T) { name: "happy path, clone controls from csv", fileInput: *validFile, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCountControls: 2, }, { name: "update existing controls, no new controls cloned", fileInput: *updateControlsFile, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCountControls: 2, }, { name: "controls missing from system, no controls cloned", fileInput: *missingControlsFile, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCountControls: 0, }, } @@ -1115,16 +1119,16 @@ func TestMutationCreateControlsByCloneCSV(t *testing.T) { implementationsToDelete = lo.Uniq(implementationsToDelete) // cleanup controls - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlsToDelete}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup control implementation - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: implementationsToDelete}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: implementationsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup created controls and standards - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) // create standard with controls to clone numControls := int64(20) @@ -1133,11 +1137,11 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { subcontrols := []*generated.Subcontrol{} subcontrolIDs := []string{} for range numControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) controls = append(controls, control) controlIDs = append(controlIDs, control.ID) // give them all a subcontrol - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(systemAdminUser.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) subcontrols = append(subcontrols, subcontrol) subcontrolIDs = append(subcontrolIDs, subcontrol.ID) } @@ -1165,7 +1169,7 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { }, expectedControlCount: 3, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, filter by ref codes and aliases", @@ -1175,7 +1179,7 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { }, expectedControlCount: 2, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, filter by aliases", @@ -1185,7 +1189,7 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { }, expectedControlCount: 2, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, filter by categories", @@ -1195,7 +1199,7 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { }, expectedControlCount: 3, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -1234,13 +1238,13 @@ func TestMutationCreateControlsByCloneWithFilter(t *testing.T) { } // cleanup created controls and standards - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationUpdateFrameworkControl(t *testing.T) { - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) // create standard with controls to clone numControls := int64(1) @@ -1249,11 +1253,11 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { subcontrols := []*generated.Subcontrol{} subcontrolIDs := []string{} for range numControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID, AllFields: true}).MustNew(sharedSystemAdminUser.UserCtx, t) controls = append(controls, control) controlIDs = append(controlIDs, control.ID) // give them all a subcontrol - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(systemAdminUser.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) subcontrols = append(subcontrols, subcontrol) subcontrolIDs = append(subcontrolIDs, subcontrol.ID) } @@ -1266,7 +1270,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { controlIDsToDelete := []string{} subcontrolIDsToDelete := []string{} - resp, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + resp, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1295,7 +1299,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { }, controlID: resp.CreateControlsByClone.Controls[0].ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "fail, unable to update ref code", @@ -1304,7 +1308,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { }, controlID: resp.CreateControlsByClone.Controls[0].ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -1314,7 +1318,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { }, controlID: resp.CreateControlsByClone.Controls[0].ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -1324,7 +1328,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { }, controlID: resp.CreateControlsByClone.Controls[0].ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -1334,7 +1338,7 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { }, controlID: resp.CreateControlsByClone.Controls[0].ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, } @@ -1354,13 +1358,13 @@ func TestMutationUpdateFrameworkControl(t *testing.T) { } // cleanup created controls and standards - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDsToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCloneControlsRevisionUpdate(t *testing.T) { - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) originalRevision := publicStandard.Revision sourceControl := (&ControlBuilder{ @@ -1368,15 +1372,15 @@ func TestMutationCloneControlsRevisionUpdate(t *testing.T) { StandardID: publicStandard.ID, AllFields: true, Title: "Original Title", - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) sourceSubcontrol := (&SubcontrolBuilder{ client: suite.client, ControlID: sourceControl.ID, - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) // clone the controls first - resp, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + resp, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1390,7 +1394,7 @@ func TestMutationCloneControlsRevisionUpdate(t *testing.T) { // then bump up the standard revision to create the drift newRevision := "v0.1.0" - _, err = suite.client.api.UpdateStandard(systemAdminUser.UserCtx, publicStandard.ID, testclient.UpdateStandardInput{ + _, err = suite.client.api.UpdateStandard(sharedSystemAdminUser.UserCtx, publicStandard.ID, testclient.UpdateStandardInput{ Revision: &newRevision, }, nil, nil) assert.NilError(t, err) @@ -1398,9 +1402,9 @@ func TestMutationCloneControlsRevisionUpdate(t *testing.T) { newSourceSubcontrol := (&SubcontrolBuilder{ client: suite.client, ControlID: sourceControl.ID, - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) - resp2, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + resp2, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1430,7 +1434,7 @@ func TestMutationCloneControlsRevisionUpdate(t *testing.T) { assert.DeepEqual(t, subcontrolRefCodes, expectedRefCodes) // cloning with the same revision should not do anything - noopResponse, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + noopResponse, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1444,24 +1448,24 @@ func TestMutationCloneControlsRevisionUpdate(t *testing.T) { clonedSubcontrolIDs = append(clonedSubcontrolIDs, edge.Node.ID) } - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: clonedSubcontrolIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: clonedControl.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{sourceSubcontrol.ID, newSourceSubcontrol.ID}}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: clonedSubcontrolIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: clonedControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{sourceSubcontrol.ID, newSourceSubcontrol.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCloneControlsRevisionUpdateWithComments(t *testing.T) { - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) (&ControlBuilder{ client: suite.client, StandardID: publicStandard.ID, AllFields: true, Title: "Control With Comments", - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) // clone the controls - resp, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + resp, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1487,7 +1491,7 @@ func TestMutationCloneControlsRevisionUpdateWithComments(t *testing.T) { }, } - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(sharedTestUser1.UserCtx, suite.client.db) err = suite.client.db.Control.UpdateOneID(clonedControl.ID). SetDescriptionJSON(comment). @@ -1496,13 +1500,13 @@ func TestMutationCloneControlsRevisionUpdateWithComments(t *testing.T) { // bump the standard revision to trigger a revision update on the next clone newRevision := "v0.2.0" - _, err = suite.client.api.UpdateStandard(systemAdminUser.UserCtx, publicStandard.ID, testclient.UpdateStandardInput{ + _, err = suite.client.api.UpdateStandard(sharedSystemAdminUser.UserCtx, publicStandard.ID, testclient.UpdateStandardInput{ Revision: &newRevision, }, nil, nil) assert.NilError(t, err) // clone again — this should succeed even though the existing control has comments on description_json - resp2, err := suite.client.api.CreateControlsByClone(testUser1.UserCtx, testclient.CloneControlInput{ + resp2, err := suite.client.api.CreateControlsByClone(sharedTestUser1.UserCtx, testclient.CloneControlInput{ StandardID: &publicStandard.ID, }) assert.NilError(t, err) @@ -1512,38 +1516,38 @@ func TestMutationCloneControlsRevisionUpdateWithComments(t *testing.T) { assert.Equal(t, newControl.ID, clonedControl.ID) assert.Equal(t, *newControl.ReferenceFrameworkRevision, newRevision) - queryResp, err := suite.client.api.GetControlByID(testUser1.UserCtx, clonedControl.ID) + queryResp, err := suite.client.api.GetControlByID(sharedTestUser1.UserCtx, clonedControl.ID) assert.NilError(t, err) assert.Check(t, queryResp.Control.DescriptionJSON == nil) // cleanup - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: clonedControl.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: clonedControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationUpdateControl(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(testUser1.UserCtx, t) - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(testUser1.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID}).MustNew(sharedTestUser1.UserCtx, t) - controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create control implementation to be associated with the control - controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can update the control - (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: adminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(testUser1.UserCtx, t) + (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) // create another user and add them to the same organization and group as testUser1 // this will allow us to test the group editor permissions anotherViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // ensure the user does not currently have access to update the control _, err := suite.client.api.UpdateControl(anotherViewerUser.UserCtx, control.ID, testclient.UpdateControlInput{ @@ -1552,8 +1556,8 @@ func TestMutationUpdateControl(t *testing.T) { assert.ErrorContains(t, err, notAuthorizedErrorMsg) // create system owned control kind - kind := (&CustomTypeEnumBuilder{client: suite.client, Name: "Detective", ObjectType: "control"}).MustNew(systemAdminUser.UserCtx, t) - kindCustom := (&CustomTypeEnumBuilder{client: suite.client, Name: "Custom Control Kind", ObjectType: "control"}).MustNew(testUser1.UserCtx, t) + kind := (&CustomTypeEnumBuilder{client: suite.client, Name: "Detective", ObjectType: "control"}).MustNew(sharedSystemAdminUser.UserCtx, t) + kindCustom := (&CustomTypeEnumBuilder{client: suite.client, Name: "Custom Control Kind", ObjectType: "control"}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -1576,7 +1580,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -1657,7 +1661,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -1667,7 +1671,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -1677,7 +1681,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: controlAnotherOrg.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, { name: "update allowed, user added to one of the programs", @@ -1686,7 +1690,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update not allowed, no permissions", @@ -1695,7 +1699,7 @@ func TestMutationUpdateControl(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -1828,18 +1832,18 @@ func TestMutationUpdateControl(t *testing.T) { } }) } - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, groupMember.GroupID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherOrg.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{kind.ID}}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{kindCustom.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, groupMember.GroupID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherOrg.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{kind.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{kindCustom.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateControlDescription(t *testing.T) { - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) descriptionRichText := "
lets just have text here and see
" descriptionSlateJSON := []any{` @@ -1910,7 +1914,7 @@ func TestMutationUpdateControlDescription(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedJSON: descriptionSlateJSON, }, { @@ -1920,7 +1924,7 @@ func TestMutationUpdateControlDescription(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "complex slate JSON with comments and multiple blocks", @@ -1929,7 +1933,7 @@ func TestMutationUpdateControlDescription(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "complex with comments, provide JSON", @@ -1939,7 +1943,7 @@ func TestMutationUpdateControlDescription(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedJSON: jsonWithComments, }, { @@ -1949,7 +1953,7 @@ func TestMutationUpdateControlDescription(t *testing.T) { }, controlID: control.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "text contains comments", }, } @@ -1976,16 +1980,16 @@ func TestMutationUpdateControlDescription(t *testing.T) { }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteControl(t *testing.T) { // create objects to be deleted - control1 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - controlSystem := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + controlSystem := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -1998,27 +2002,27 @@ func TestMutationDeleteControl(t *testing.T) { name: "not authorized, delete", idToDelete: control1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete system owned control", idToDelete: controlSystem.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: control1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: control1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -2031,13 +2035,13 @@ func TestMutationDeleteControl(t *testing.T) { name: "happy path, delete system owned control", idToDelete: controlSystem.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -2209,17 +2213,17 @@ func TestQueryControlCategories(t *testing.T) { // or standards, or that have controls linked to them func TestQueryControlSubcategories(t *testing.T) { // create controls with categories and subcategories - control1 := (&ControlBuilder{client: suite.client, AllFields: true}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client, AllFields: true}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, AllFields: true}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, AllFields: true}).MustNew(sharedTestUser1.UserCtx, t) // create one without a subcategory - control3 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control3 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create one with a duplicate subcategory - control4 := (&ControlBuilder{client: suite.client, Subcategory: control1.Subcategory}).MustNew(testUser1.UserCtx, t) + control4 := (&ControlBuilder{client: suite.client, Subcategory: control1.Subcategory}).MustNew(sharedTestUser1.UserCtx, t) // create a subcontrol with a different category - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID, Subcategory: "New Subcategory"}).MustNew(testUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID, Subcategory: "New Subcategory"}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -2231,13 +2235,13 @@ func TestQueryControlSubcategories(t *testing.T) { { name: "happy path, get control subcategories", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: []string{control1.Subcategory, control2.Subcategory, subcontrol.Subcategory}, }, { name: "no controls, no results", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResult: []string{}, }, } @@ -2275,8 +2279,8 @@ func TestQueryControlSubcategories(t *testing.T) { } // cleanup created controls - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID, control4.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID, control4.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(sharedTestUser1.UserCtx, t) } // TestQueryControlCategoriesByFramework tests the query for control subcategories by framework @@ -2646,7 +2650,7 @@ func TestQueryControlGroupsByCategory(t *testing.T) { name: "no controls, no results", where: defaultWhere, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, } @@ -2686,36 +2690,36 @@ func TestQueryControlGroupsByCategory(t *testing.T) { } func TestMutationUpdateBulkControl(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) - control1 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(testUser1.UserCtx, t) - control3 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(sharedTestUser1.UserCtx, t) + control3 := (&ControlBuilder{client: suite.client, ProgramID: program1.ID}).MustNew(sharedTestUser1.UserCtx, t) - subcontrol1 := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID}).MustNew(testUser1.UserCtx, t) - subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(testUser1.UserCtx, t) + subcontrol1 := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(sharedTestUser1.UserCtx, t) - ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create control implementation to be associated with the control - controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can update the control - (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: adminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(testUser1.UserCtx, t) + (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) // create another user and add them to the same organization and group as testUser1 // this will allow us to test the group editor permissions anotherViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - controlAnotherUser := (&ControlBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + controlAnotherUser := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // ensure the user does not currently have access to update the control - res, err := suite.client.api.UpdateBulkControl(testUser2.UserCtx, []string{control1.ID}, testclient.UpdateControlInput{ + res, err := suite.client.api.UpdateBulkControl(sharedTestUser2.UserCtx, []string{control1.ID}, testclient.UpdateControlInput{ Status: lo.ToPtr(enums.ControlStatusPreparing), }) @@ -2739,7 +2743,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { Status: &enums.ControlStatusPreparing, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, { @@ -2751,7 +2755,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { AddEditorIDs: []string{groupMember.GroupID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, { @@ -2759,7 +2763,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { ids: []string{}, input: testclient.UpdateControlInput{Description: lo.ToPtr("test")}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "ids is required", }, { @@ -2769,7 +2773,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { Status: &enums.ControlStatusPreparing, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 1, // only control1 should be updated }, { @@ -2779,7 +2783,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { Status: &enums.ControlStatusApproved, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedUpdatedCount: 2, }, { @@ -2789,7 +2793,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { Status: &enums.ControlStatusPreparing, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any controls to update }, { @@ -2800,7 +2804,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { ControlOwnerID: &ownerGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, { @@ -2812,7 +2816,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { Tags: []string{"bulk", "update"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, } @@ -2938,19 +2942,19 @@ func TestMutationUpdateBulkControl(t *testing.T) { }) } - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, groupMember.GroupID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: controlImplementation.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID, groupMember.GroupID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryControlTrustCenterVisibility(t *testing.T) { // create a trust center for the anonymous context - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(sharedTestUser1.UserCtx, suite.client.db) // create a trust center control with default (not visible) visibility publicControl, err := suite.client.db.Control.Create(). @@ -2958,13 +2962,13 @@ func TestQueryControlTrustCenterVisibility(t *testing.T) { SetTitle("Trust Center Public Control"). SetSource(enums.ControlSourceUserDefined). SetIsTrustCenterControl(true). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). Save(dbCtx) assert.NilError(t, err) // use the API client to set visibility to publicly visible, which triggers the hook // to create wildcard viewer tuples for anonymous access - _, err = suite.client.api.UpdateControl(testUser1.UserCtx, publicControl.ID, testclient.UpdateControlInput{ + _, err = suite.client.api.UpdateControl(sharedTestUser1.UserCtx, publicControl.ID, testclient.UpdateControlInput{ TrustCenterVisibility: &enums.TrustCenterControlVisibilityPubliclyVisible, }) assert.NilError(t, err) @@ -2975,14 +2979,14 @@ func TestQueryControlTrustCenterVisibility(t *testing.T) { SetTitle("Trust Center Hidden Control"). SetSource(enums.ControlSourceUserDefined). SetIsTrustCenterControl(true). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). Save(dbCtx) assert.NilError(t, err) // create a regular control (not a trust center control) - regularControl := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + regularControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) + anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, sharedTestUser1.OrganizationID) testCases := []struct { name string @@ -3014,13 +3018,13 @@ func TestQueryControlTrustCenterVisibility(t *testing.T) { { name: "authenticated user can view all their controls", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, queryID: publicControl.ID, }, { name: "authenticated user can view hidden trust center control", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, queryID: hiddenControl.ID, }, } @@ -3050,6 +3054,6 @@ func TestQueryControlTrustCenterVisibility(t *testing.T) { }) // cleanup - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{publicControl.ID, hiddenControl.ID, regularControl.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{publicControl.ID, hiddenControl.ID, regularControl.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/controlimplementation_test.go b/internal/graphapi/controlimplementation_test.go index 6d7d1f0fb6..e7eaac7d42 100644 --- a/internal/graphapi/controlimplementation_test.go +++ b/internal/graphapi/controlimplementation_test.go @@ -18,21 +18,21 @@ import ( func TestQueryControlImplementation(t *testing.T) { // create an controlImplementation1 to be queried using testUser1 - controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create another with associated controls in another org - control1 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlImplementation2 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control1.ID}}).MustNew(testUser2.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlImplementation2 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control1.ID}}).MustNew(sharedTestUser2.UserCtx, t) // create a controlImplementation with controls and subcontrols - control2 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol1 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(testUser1.UserCtx, t) - subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(testUser1.UserCtx, t) - controlImplementation3 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control2.ID}, SubcontrolIDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustNew(testUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol1 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol2 := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID}).MustNew(sharedTestUser1.UserCtx, t) + controlImplementation3 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control2.ID}, SubcontrolIDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustNew(sharedTestUser1.UserCtx, t) // ensure view only user can access controlImplementation with associated controls - control3 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlImplementation4 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control3.ID}}).MustNew(testUser1.UserCtx, t) + control3 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlImplementation4 := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control3.ID}}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the controlImplementation testCases := []struct { @@ -48,27 +48,27 @@ func TestQueryControlImplementation(t *testing.T) { name: "happy path", queryID: controlImplementation1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, controlImplementation with associated controls", queryID: controlImplementation2.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, shouldHaveControls: true, }, { name: "controlImplementation with associated controls, but no access", queryID: controlImplementation2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "happy path, controlImplementation with associated controls and subcontrols", queryID: controlImplementation3.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, shouldHaveControls: true, shouldHaveSubcontrols: true, }, @@ -76,28 +76,28 @@ func TestQueryControlImplementation(t *testing.T) { name: "controlImplementation with associated controls, but no access", queryID: controlImplementation3.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "happy path, read only user, no access to control or controlImplementation", queryID: controlImplementation1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "happy path, controlImplementation with associated controls and group viewer by org owner", queryID: controlImplementation4.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, shouldHaveControls: true, }, { name: "happy path, controlImplementation with associated controls and group viewer by view only user", queryID: controlImplementation4.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, shouldHaveControls: true, }, { @@ -110,14 +110,14 @@ func TestQueryControlImplementation(t *testing.T) { name: "controlImplementation not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "controlImplementation not found, using not authorized user", queryID: controlImplementation1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -156,20 +156,17 @@ func TestQueryControlImplementation(t *testing.T) { }) } - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation1.ID, controlImplementation3.ID, controlImplementation4.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation2.ID}}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation1.ID, controlImplementation3.ID, controlImplementation4.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation2.ID}}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, control3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryControlImplementations(t *testing.T) { // create a new user cause its a count test and we don't want to interfere with other tests - testUser := suite.userBuilder(context.Background(), t) - apiClient := suite.setupAPITokenClient(testUser.UserCtx, t) - patClient := suite.setupPatClient(testUser, t) - viewUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + testOrg := suite.seedFreshMinimalOrgUsers(t, true) anotherUser := suite.userBuilder(context.Background(), t) @@ -177,7 +174,7 @@ func TestQueryControlImplementations(t *testing.T) { numCIs := 5 ciIDs := []string{} for range numCIs { - ci := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + ci := (&ControlImplementationBuilder{client: suite.client}).MustNew(testOrg.owner.UserCtx, t) ciIDs = append(ciIDs, ci.ID) } @@ -185,8 +182,8 @@ func TestQueryControlImplementations(t *testing.T) { numCIsWithAssociatedControls := 2 controlIDs := []string{} for range numCIsWithAssociatedControls { - control1 := (&ControlBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - ci := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control1.ID}}).MustNew(testUser.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client}).MustNew(testOrg.owner.UserCtx, t) + ci := (&ControlImplementationBuilder{client: suite.client, ControlIDs: []string{control1.ID}}).MustNew(testOrg.owner.UserCtx, t) ciIDs = append(ciIDs, ci.ID) controlIDs = append(controlIDs, control1.ID) @@ -201,24 +198,24 @@ func TestQueryControlImplementations(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testOrg.owner.UserCtx, expectedResults: numCIs + numCIsWithAssociatedControls, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewUser.UserCtx, + ctx: testOrg.member.UserCtx, expectedResults: numCIsWithAssociatedControls, }, { name: "happy path, using api token", - client: apiClient, + client: testOrg.apiClient, ctx: context.Background(), - expectedResults: numCIsWithAssociatedControls, // only the ones with linked controls will be returned + expectedResults: numCIsWithAssociatedControls + numCIs, // api token has org level access to view all controls }, { name: "happy path, using pat", - client: patClient, + client: testOrg.adminPatClient, ctx: context.Background(), expectedResults: numCIs + numCIsWithAssociatedControls, }, @@ -246,34 +243,34 @@ func TestQueryControlImplementations(t *testing.T) { } // cleanup - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: ciIDs}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(testOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) } func TestMutationCreateControlImplementation(t *testing.T) { yesterday := time.Now().Add(-time.Hour * 24) - groupEditor := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + groupEditor := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add viewOnlyUser to the group with editor permissions - (&GroupMemberBuilder{client: suite.client, GroupID: groupEditor.ID, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, GroupID: groupEditor.ID, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) numControls := 2 controlIDs := []string{} for range numControls { // create controls where the groupEditor has editor permissions - control := (&ControlBuilder{client: suite.client, ControlEditorGroupID: groupEditor.ID}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client, ControlEditorGroupID: groupEditor.ID}).MustNew(sharedTestUser1.UserCtx, t) controlIDs = append(controlIDs, control.ID) } // create one control without group permissions - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) allControlIDs := append(controlIDs, control.ID) numSubcontrols := 2 subcontrolIDs := []string{} for range numSubcontrols { - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: controlIDs[0]}).MustNew(testUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: controlIDs[0]}).MustNew(sharedTestUser1.UserCtx, t) subcontrolIDs = append(subcontrolIDs, subcontrol.ID) } @@ -290,7 +287,7 @@ func TestMutationCreateControlImplementation(t *testing.T) { // there are no required fields in the model, you can create a blank implementation }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -305,13 +302,13 @@ func TestMutationCreateControlImplementation(t *testing.T) { SubcontrolIDs: subcontrolIDs, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateControlImplementationInput{ Details: lo.ToPtr(gofakeit.Paragraph()), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -330,7 +327,7 @@ func TestMutationCreateControlImplementation(t *testing.T) { Details: lo.ToPtr(gofakeit.Paragraph()), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -340,7 +337,7 @@ func TestMutationCreateControlImplementation(t *testing.T) { ControlIDs: controlIDs, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "user not authorized, not enough permissions to one of the parent controls", @@ -349,7 +346,7 @@ func TestMutationCreateControlImplementation(t *testing.T) { ControlIDs: allControlIDs, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -359,7 +356,7 @@ func TestMutationCreateControlImplementation(t *testing.T) { ControlIDs: controlIDs, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -434,42 +431,42 @@ func TestMutationCreateControlImplementation(t *testing.T) { assert.Check(t, is.Len(resp.CreateControlImplementation.ControlImplementation.Subcontrols.Edges, 0)) } - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: resp.CreateControlImplementation.ControlImplementation.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, ID: resp.CreateControlImplementation.ControlImplementation.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } // cleanup - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: allControlIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupEditor.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: allControlIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupEditor.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateControlImplementation(t *testing.T) { - controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlImplementation2 := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlImplementation2 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) yesterday := time.Now().Add(-time.Hour * 24) - groupEditor := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + groupEditor := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add viewOnlyUser to the group with editor permissions - (&GroupMemberBuilder{client: suite.client, GroupID: groupEditor.ID, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, GroupID: groupEditor.ID, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) numControls := 2 controlIDs := []string{} for range numControls { // create controls where the groupEditor has editor permissions - control := (&ControlBuilder{client: suite.client, ControlEditorGroupID: groupEditor.ID}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client, ControlEditorGroupID: groupEditor.ID}).MustNew(sharedTestUser1.UserCtx, t) controlIDs = append(controlIDs, control.ID) } // create one control without group permissions - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) numSubcontrols := 3 subcontrolIDs := []string{} for range numSubcontrols { - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: controlIDs[0]}).MustNew(testUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: controlIDs[0]}).MustNew(sharedTestUser1.UserCtx, t) subcontrolIDs = append(subcontrolIDs, subcontrol.ID) } @@ -488,7 +485,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -521,7 +518,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path remove control IDs", @@ -530,7 +527,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "no longer allowed because previous request removed control IDs the user has access to ", @@ -539,7 +536,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "update not allowed, not enough permissions, not found", @@ -548,7 +545,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -561,7 +558,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update still not allowed, not enough permissions, no edit permissions to control either", @@ -570,7 +567,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -580,7 +577,7 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }, id: controlImplementation1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -641,16 +638,16 @@ func TestMutationUpdateControlImplementation(t *testing.T) { }) } - (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation1.ID, controlImplementation2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupEditor.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlImplementationDeleteOne]{client: suite.client.db.ControlImplementation, IDs: []string{controlImplementation1.ID, controlImplementation2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: subcontrolIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupEditor.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteControlImplementation(t *testing.T) { // create controlImplementations to be deleted - controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlImplementation2 := (&ControlImplementationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlImplementation2 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -663,20 +660,20 @@ func TestMutationDeleteControlImplementation(t *testing.T) { name: "not authorized, delete", idToDelete: controlImplementation1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: controlImplementation1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: controlImplementation1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -689,7 +686,7 @@ func TestMutationDeleteControlImplementation(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/controlobjective_test.go b/internal/graphapi/controlobjective_test.go index 057408c0e3..fd9d029657 100644 --- a/internal/graphapi/controlobjective_test.go +++ b/internal/graphapi/controlobjective_test.go @@ -16,13 +16,13 @@ import ( ) func TestQueryControlObjective(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a ControlObjective (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) controlObjectiveIDs := []string{} // add test cases for querying the ControlObjective @@ -36,18 +36,18 @@ func TestQueryControlObjective(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user, same org, no access to the program", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "admin user, access to the program", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path using personal access token", @@ -58,13 +58,13 @@ func TestQueryControlObjective(t *testing.T) { name: "control objective not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "control objective not found, using not authorized user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -79,7 +79,7 @@ func TestQueryControlObjective(t *testing.T) { t.Run("Get "+tc.name, func(t *testing.T) { // setup the control objective if it is not already created if tc.queryID == "" { - resp, err := suite.client.api.CreateControlObjective(testUser1.UserCtx, + resp, err := suite.client.api.CreateControlObjective(sharedTestUser1.UserCtx, testclient.CreateControlObjectiveInput{ Name: "ControlObjective", ProgramIDs: []string{program.ID}, @@ -108,14 +108,14 @@ func TestQueryControlObjective(t *testing.T) { }) } - (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: controlObjectiveIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: controlObjectiveIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryControlObjectives(t *testing.T) { // create multiple objects to be queried using testUser1 - co1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - co2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + co1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + co2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) userAnotherOrg := suite.userBuilder(context.Background(), t) @@ -132,20 +132,20 @@ func TestQueryControlObjectives(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org, no programs or groups associated", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 0, }, { - name: "happy path, no access to the program or group", + name: "happy path, api token with scopes", client: suite.client.apiWithToken, ctx: context.Background(), - expectedResults: 0, + expectedResults: 2, }, { name: "happy path, using pat", @@ -156,7 +156,7 @@ func TestQueryControlObjectives(t *testing.T) { { name: "another user, no control objectives should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -171,25 +171,26 @@ func TestQueryControlObjectives(t *testing.T) { }) } - (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: []string{co1.ID, co2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: []string{co1.ID, co2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + cleanupOrganizationDataWithContext(userAnotherOrg.UserCtx, t) } func TestMutationCreateControlObjective(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // group for the view only user - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a control objective associated with the program1 (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) // create groups to be associated with the control objective - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -205,7 +206,7 @@ func TestMutationCreateControlObjective(t *testing.T) { Name: "ControlObjective", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -220,24 +221,24 @@ func TestMutationCreateControlObjective(t *testing.T) { ProgramIDs: []string{program1.ID, program2.ID}, // multiple programs }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add groups", request: testclient.CreateControlObjectiveInput{ Name: "Test Procedure", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{blockedGroup.ID}, ViewerIDs: []string{viewerGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateControlObjectiveInput{ Name: "ControlObjective", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -256,7 +257,7 @@ func TestMutationCreateControlObjective(t *testing.T) { Name: "ControlObjective", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -266,7 +267,7 @@ func TestMutationCreateControlObjective(t *testing.T) { }, addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "user authorized, they were added to the program", @@ -275,7 +276,7 @@ func TestMutationCreateControlObjective(t *testing.T) { ProgramIDs: []string{program1.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "user not authorized, user not authorized to one of the programs", @@ -284,14 +285,14 @@ func TestMutationCreateControlObjective(t *testing.T) { ProgramIDs: []string{program1.ID, program2.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required name", request: testclient.CreateControlObjectiveInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -301,7 +302,7 @@ func TestMutationCreateControlObjective(t *testing.T) { ProgramIDs: []string{programAnotherUser.ID, program1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -309,7 +310,7 @@ func TestMutationCreateControlObjective(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddControlObjectiveCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -375,34 +376,34 @@ func TestMutationCreateControlObjective(t *testing.T) { // ensure the org owner has access to the control objective that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetControlObjectiveByID(testUser1.UserCtx, resp.CreateControlObjective.ControlObjective.ID) + res, err := suite.client.api.GetControlObjectiveByID(sharedTestUser1.UserCtx, resp.CreateControlObjective.ControlObjective.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(resp.CreateControlObjective.ControlObjective.ID, res.ControlObjective.ID)) } - (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, ID: resp.CreateControlObjective.ControlObjective.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, ID: resp.CreateControlObjective.ControlObjective.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateControlObjective(t *testing.T) { - program := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - controlObjective := (&ControlObjectiveBuilder{client: suite.client, ProgramID: program.ID}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + controlObjective := (&ControlObjectiveBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) // create another admin user and add them to the same organization and group as testUser1 // this will allow us to test the group editor/viewer permissions - anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, testUser1.OrganizationID) + anotherViewUser := suite.userBuilder(context.Background(), t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewUser, enums.RoleMember, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // ensure the user does not currently have access to the control objective - _, err := suite.client.api.GetControlObjectiveByID(anotherAdminUser.UserCtx, controlObjective.ID) + _, err := suite.client.api.GetControlObjectiveByID(anotherViewUser.UserCtx, controlObjective.ID) assert.ErrorContains(t, err, notFoundErrorMsg) testCases := []struct { @@ -419,7 +420,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { AddViewerIDs: []string{groupMember.GroupID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -443,7 +444,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { RevisionBump: &models.Major, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid revision", @@ -451,7 +452,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { Revision: lo.ToPtr("1.1"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "revision, invalid semver value", }, { @@ -460,7 +461,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { Status: &enums.ObjectiveActiveStatus, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -469,7 +470,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { DesiredOutcome: lo.ToPtr("update this"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -534,22 +535,22 @@ func TestMutationUpdateControlObjective(t *testing.T) { assert.Check(t, found) // ensure the user has access to the control objective now - res, err := suite.client.api.GetControlObjectiveByID(anotherAdminUser.UserCtx, controlObjective.ID) + res, err := suite.client.api.GetControlObjectiveByID(anotherViewUser.UserCtx, controlObjective.ID) assert.NilError(t, err) assert.Check(t, res != nil) assert.Check(t, is.Equal(controlObjective.ID, res.ControlObjective.ID)) } }) } - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, ID: controlObjective.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, ID: controlObjective.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteControlObjective(t *testing.T) { // create objects to be deleted - controlObjective1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlObjective2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlObjective1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlObjective2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -562,20 +563,20 @@ func TestMutationDeleteControlObjective(t *testing.T) { name: "not authorized, delete", idToDelete: controlObjective1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: controlObjective1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: controlObjective1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -588,7 +589,7 @@ func TestMutationDeleteControlObjective(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/customdomain_test.go b/internal/graphapi/customdomain_test.go index 427ce2c01f..de279375fd 100644 --- a/internal/graphapi/customdomain_test.go +++ b/internal/graphapi/customdomain_test.go @@ -15,7 +15,7 @@ import ( ) func TestQueryCustomDomainByID(t *testing.T) { - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -30,20 +30,20 @@ func TestQueryCustomDomainByID(t *testing.T) { expectedDomain: customDomain.CnameRecord, queryID: customDomain.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", expectedDomain: customDomain.CnameRecord, queryID: customDomain.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "domain not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -51,7 +51,7 @@ func TestQueryCustomDomainByID(t *testing.T) { expectedDomain: customDomain.CnameRecord, queryID: customDomain.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -72,17 +72,17 @@ func TestQueryCustomDomainByID(t *testing.T) { assert.Check(t, is.Equal(tc.expectedDomain, resp.CustomDomain.CnameRecord)) }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryCustomDomains(t *testing.T) { - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) - customDomain1 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain2.ID}).MustNew(testUser1.UserCtx, t) - customDomain2 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain.ID}).MustNew(testUser1.UserCtx, t) - customDomain3 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain.ID}).MustNew(testUser2.UserCtx, t) + customDomain1 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain2.ID}).MustNew(sharedTestUser1.UserCtx, t) + customDomain2 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain.ID}).MustNew(sharedTestUser1.UserCtx, t) + customDomain3 := (&CustomDomainBuilder{client: suite.client, MappableDomainID: mappableDomain.ID}).MustNew(sharedTestUser2.UserCtx, t) nonExistentDomain := "nonexistent.example.com" @@ -96,19 +96,19 @@ func TestQueryCustomDomains(t *testing.T) { { name: "return all", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "return all, ro user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { name: "query by domain", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.CustomDomainWhereInput{ CnameRecord: &customDomain1.CnameRecord, }, @@ -117,7 +117,7 @@ func TestQueryCustomDomains(t *testing.T) { { name: "query by domain, not found", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.CustomDomainWhereInput{ CnameRecord: &nonExistentDomain, }, @@ -126,7 +126,7 @@ func TestQueryCustomDomains(t *testing.T) { { name: "query by mappable domain", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.CustomDomainWhereInput{ MappableDomainID: &customDomain1.MappableDomainID, }, @@ -144,19 +144,19 @@ func TestQueryCustomDomains(t *testing.T) { assert.Check(t, is.Equal(tc.expectedResults, resp.CustomDomains.TotalCount)) for _, domain := range resp.CustomDomains.Edges { - assert.Check(t, is.Equal(*domain.Node.OwnerID, testUser1.OrganizationID)) + assert.Check(t, is.Equal(*domain.Node.OwnerID, sharedTestUser1.OrganizationID)) } }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain.ID, mappableDomain2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain.ID, mappableDomain2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, IDs: []string{customDomain1.ID, customDomain2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain3.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, IDs: []string{customDomain1.ID, customDomain2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain3.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationCreateCustomDomain(t *testing.T) { - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -170,30 +170,30 @@ func TestMutationCreateCustomDomain(t *testing.T) { request: testclient.CreateCustomDomainInput{ CnameRecord: "test.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, adminUser", request: testclient.CreateCustomDomainInput{ CnameRecord: "test.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "not authorized", request: testclient.CreateCustomDomainInput{ CnameRecord: "test.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -201,20 +201,20 @@ func TestMutationCreateCustomDomain(t *testing.T) { request: testclient.CreateCustomDomainInput{ CnameRecord: "!invalid-domain", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field: url", }, { name: "missing mappable domain", request: testclient.CreateCustomDomainInput{ CnameRecord: "test2.example.com", - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "mappable_domain_id", }, } @@ -240,13 +240,13 @@ func TestMutationCreateCustomDomain(t *testing.T) { }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationDeleteCustomDomain(t *testing.T) { - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - customDomain2 := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - customDomain3 := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + customDomain2 := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + customDomain3 := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) anotherUser := suite.userBuilder(context.Background(), t) custDomainForTrustCenter := (&CustomDomainBuilder{client: suite.client}).MustNew(anotherUser.UserCtx, t) @@ -264,13 +264,13 @@ func TestMutationDeleteCustomDomain(t *testing.T) { name: "delete domain, system admin user", id: customDomain.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "delete domain, owner user", id: customDomain3.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "delete domain, owner user with trust center", @@ -282,14 +282,14 @@ func TestMutationDeleteCustomDomain(t *testing.T) { name: "unauthorized", id: customDomain2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "domain not found", id: nonExistentID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -330,14 +330,15 @@ func TestMutationDeleteCustomDomain(t *testing.T) { } }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{customDomain.MappableDomainID, customDomain2.MappableDomainID, customDomain3.MappableDomainID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{custDomainForTrustCenter.MappableDomainID}}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain2.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{customDomain.MappableDomainID, customDomain2.MappableDomainID, customDomain3.MappableDomainID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain2.ID}).MustDelete(sharedTestUser1.UserCtx, t) + + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) } func TestUpdateCustomDomain(t *testing.T) { - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -351,7 +352,7 @@ func TestUpdateCustomDomain(t *testing.T) { name: "happy path", queryID: customDomain.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, updateInput: testclient.UpdateCustomDomainInput{ Tags: []string{"hello"}, }, @@ -360,7 +361,7 @@ func TestUpdateCustomDomain(t *testing.T) { name: "update dns verification id", queryID: customDomain.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, updateInput: testclient.UpdateCustomDomainInput{ DNSVerificationID: &dnsVerification.ID, }, @@ -369,7 +370,7 @@ func TestUpdateCustomDomain(t *testing.T) { name: "clear dns verification", queryID: customDomain.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, updateInput: testclient.UpdateCustomDomainInput{ ClearDNSVerification: lo.ToPtr(true), }, @@ -378,7 +379,7 @@ func TestUpdateCustomDomain(t *testing.T) { name: "not allowed", queryID: customDomain.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateCustomDomainInput{ Tags: []string{"hello"}, }, @@ -399,13 +400,13 @@ func TestUpdateCustomDomain(t *testing.T) { assert.Assert(t, resp != nil) }) } - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{customDomain.MappableDomainID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{customDomain.MappableDomainID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateBulkCustomDomain(t *testing.T) { - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -421,21 +422,21 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { { CnameRecord: "bulk1.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, { CnameRecord: "bulk2.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, { CnameRecord: "bulk3.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, numExpected: 3, }, { @@ -444,11 +445,11 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { { CnameRecord: "singlebulk.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, numExpected: 1, }, { @@ -457,11 +458,11 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { { CnameRecord: "adminbulk.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, numExpected: 1, }, { @@ -470,16 +471,16 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { { CnameRecord: "valid.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, { CnameRecord: "!invalid-domain", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field: url", }, { @@ -488,18 +489,18 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { { CnameRecord: "unauthorized.example.com", MappableDomainID: mappableDomain.ID, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "empty input", requests: []*testclient.CreateCustomDomainInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "input is required", }, } @@ -532,13 +533,13 @@ func TestMutationCreateBulkCustomDomain(t *testing.T) { } }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestGetAllCustomDomains(t *testing.T) { // Create test mappable domain - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - deletectx := setContext(systemAdminUser.UserCtx, suite.client.db) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + deletectx := setContext(sharedSystemAdminUser.UserCtx, suite.client.db) d, err := suite.client.db.CustomDomain.Query().All(deletectx) assert.Assert(t, err == nil) @@ -550,17 +551,17 @@ func TestGetAllCustomDomains(t *testing.T) { customDomain1 := (&CustomDomainBuilder{ client: suite.client, MappableDomainID: mappableDomain.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) customDomain2 := (&CustomDomainBuilder{ client: suite.client, MappableDomainID: mappableDomain.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) customDomain3 := (&CustomDomainBuilder{ client: suite.client, MappableDomainID: mappableDomain.ID, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -572,25 +573,25 @@ func TestGetAllCustomDomains(t *testing.T) { { name: "happy path - regular user sees only their domains", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, // Should see only domains owned by testUser1 }, { name: "happy path - admin user sees all domains", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 2, // Should see all owned by testUser }, { name: "happy path - view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, // Should see only domains from their organization }, { name: "happy path - different user sees only their domains", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 1, // Should see only domains owned by testUser2 }, } @@ -626,40 +627,35 @@ func TestGetAllCustomDomains(t *testing.T) { } // Verify that users only see domains from their organization - if tc.ctx == testUser1.UserCtx || tc.ctx == viewOnlyUser.UserCtx { + if tc.ctx == sharedTestUser1.UserCtx || tc.ctx == sharedViewOnlyUser.UserCtx { for _, edge := range resp.CustomDomains.Edges { - assert.Check(t, is.Equal(testUser1.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, *edge.Node.OwnerID)) } - } else if tc.ctx == testUser2.UserCtx { + } else if tc.ctx == sharedTestUser2.UserCtx { for _, edge := range resp.CustomDomains.Edges { - assert.Check(t, is.Equal(testUser2.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser2.OrganizationID, *edge.Node.OwnerID)) } } }) } // Clean up created domains - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, IDs: []string{customDomain1.ID, customDomain2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain3.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, IDs: []string{customDomain1.ID, customDomain2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain3.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { - anotherUser := suite.userBuilder(context.Background(), t) - // This test validates the fix for the bug where deleting a custom domain - // was causing trust center FGA tuples to be deleted, making the trust center inaccessible. - // The bug occurred because the DeleteTuplesFirstKey context marker was being propagated - // to the trust center update operation when clearing the custom domain reference. - - // Create a custom domain - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(anotherUser.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain()) + trustCenter := tcOrg.trustCenter - // Create a trust center with the custom domain - trustCenter := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomain.ID}).MustNew(anotherUser.UserCtx, t) + customDomain, err := suite.client.api.GetCustomDomainByID(tcOrg.owner.UserCtx, *trustCenter.CustomDomainID) + requireNoError(t, err) // Verify the trust center has the expected FGA tuples before deletion // Check for wildcard user can_view tuple - userWildcardCheck, err := suite.client.fga.CheckAccess(anotherUser.UserCtx, fgax.AccessCheck{ + userWildcardCheck, err := suite.client.fga.CheckAccess(tcOrg.admin.UserCtx, fgax.AccessCheck{ SubjectID: "*", SubjectType: "user", Relation: "can_view", @@ -670,7 +666,7 @@ func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { assert.Check(t, userWildcardCheck, "trust center should have user:* can_view tuple before custom domain deletion") // Check for wildcard service can_view tuple - serviceWildcardCheck, err := suite.client.fga.CheckAccess(anotherUser.UserCtx, fgax.AccessCheck{ + serviceWildcardCheck, err := suite.client.fga.CheckAccess(tcOrg.admin.UserCtx, fgax.AccessCheck{ SubjectID: "*", SubjectType: "service", Relation: "can_view", @@ -681,17 +677,17 @@ func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { assert.Check(t, serviceWildcardCheck, "trust center should have service:* can_view tuple before custom domain deletion") // Delete the custom domain - resp, err := suite.client.api.DeleteCustomDomain(anotherUser.UserCtx, customDomain.ID) + resp, err := suite.client.api.DeleteCustomDomain(tcOrg.owner.UserCtx, customDomain.CustomDomain.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) - assert.Check(t, is.Equal(customDomain.ID, resp.DeleteCustomDomain.DeletedID)) + assert.Check(t, is.Equal(customDomain.CustomDomain.ID, resp.DeleteCustomDomain.DeletedID)) // Verify the custom domain is deleted - _, err = suite.client.api.GetCustomDomainByID(anotherUser.UserCtx, customDomain.ID) + _, err = suite.client.api.GetCustomDomainByID(tcOrg.owner.UserCtx, customDomain.CustomDomain.ID) assert.ErrorContains(t, err, notFoundErrorMsg) // Verify the trust center still exists and is accessible - tcResp, err := suite.client.api.GetTrustCenterByID(anotherUser.UserCtx, trustCenter.ID) + tcResp, err := suite.client.api.GetTrustCenterByID(tcOrg.owner.UserCtx, trustCenter.ID) assert.NilError(t, err) assert.Assert(t, tcResp != nil) assert.Check(t, is.Equal(trustCenter.ID, tcResp.TrustCenter.ID)) @@ -701,7 +697,7 @@ func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { // Verify the trust center's FGA tuples are still present after custom domain deletion // Check for wildcard user can_view tuple - userWildcardCheckAfter, err := suite.client.fga.CheckAccess(anotherUser.UserCtx, fgax.AccessCheck{ + userWildcardCheckAfter, err := suite.client.fga.CheckAccess(tcOrg.owner.UserCtx, fgax.AccessCheck{ SubjectID: "*", SubjectType: "user", Relation: "can_view", @@ -712,7 +708,7 @@ func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { assert.Check(t, userWildcardCheckAfter, "trust center should still have user:* can_view tuple after custom domain deletion") // Check for wildcard service can_view tuple - serviceWildcardCheckAfter, err := suite.client.fga.CheckAccess(anotherUser.UserCtx, fgax.AccessCheck{ + serviceWildcardCheckAfter, err := suite.client.fga.CheckAccess(tcOrg.owner.UserCtx, fgax.AccessCheck{ SubjectID: "*", SubjectType: "service", Relation: "can_view", @@ -723,21 +719,20 @@ func TestMutationDeleteCustomDomainWithTrustCenter(t *testing.T) { assert.Check(t, serviceWildcardCheckAfter, "trust center should still have service:* can_view tuple after custom domain deletion") // Cleanup - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(anotherUser.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(anotherUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestDeleteCustomDomainClearsPreviewDomain(t *testing.T) { - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - previewDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + previewDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(sharedTestUser1.UserCtx, suite.client.db) _, err := suite.client.db.TrustCenter.UpdateOneID(trustCenter.ID). SetPreviewDomainID(previewDomain.ID). Save(dbCtx) assert.NilError(t, err) - resp, err := suite.client.api.DeleteCustomDomain(testUser1.UserCtx, previewDomain.ID) + resp, err := suite.client.api.DeleteCustomDomain(sharedTestUser1.UserCtx, previewDomain.ID) assert.NilError(t, err) assert.Check(t, is.Equal(previewDomain.ID, resp.DeleteCustomDomain.DeletedID)) @@ -745,6 +740,6 @@ func TestDeleteCustomDomainClearsPreviewDomain(t *testing.T) { assert.NilError(t, err) assert.Check(t, is.Equal("", updatedTrustCenter.PreviewDomainID)) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: previewDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: previewDomain.MappableDomainID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/customtypeenums_test.go b/internal/graphapi/customtypeenums_test.go index 4da66f3753..8b51275f6f 100644 --- a/internal/graphapi/customtypeenums_test.go +++ b/internal/graphapi/customtypeenums_test.go @@ -17,7 +17,7 @@ import ( func TestQueryCustomTypeEnum(t *testing.T) { // create an customTypeEnum to be queried using testUser1 - customTypeEnum := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customTypeEnum := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) systemOwnedEnum := (&CustomTypeEnumBuilder{ client: suite.client, @@ -25,7 +25,7 @@ func TestQueryCustomTypeEnum(t *testing.T) { ObjectType: "control", Description: "A system owned enum", Color: "#ff0000", - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) customTypeEnumStatusFinding := (&CustomTypeEnumBuilder{ client: suite.client, @@ -34,7 +34,7 @@ func TestQueryCustomTypeEnum(t *testing.T) { Field: "status", Description: "An enum for finding status", Color: "#00ff00", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) customTypeEnumStatusVulnerability := (&CustomTypeEnumBuilder{ client: suite.client, @@ -43,7 +43,7 @@ func TestQueryCustomTypeEnum(t *testing.T) { Field: "status", Description: "An enum for vulnerability status", Color: "#0000ff", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the CustomTypeEnum testCases := []struct { @@ -57,19 +57,19 @@ func TestQueryCustomTypeEnum(t *testing.T) { name: "happy path", queryID: customTypeEnum.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, system owned", queryID: systemOwnedEnum.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: customTypeEnum.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -81,14 +81,14 @@ func TestQueryCustomTypeEnum(t *testing.T) { name: "not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, using not authorized user", queryID: customTypeEnum.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -120,8 +120,8 @@ func TestQueryCustomTypeEnum(t *testing.T) { }) } - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{customTypeEnum.ID, customTypeEnumStatusFinding.ID, customTypeEnumStatusVulnerability.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: systemOwnedEnum.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, IDs: []string{customTypeEnum.ID, customTypeEnumStatusFinding.ID, customTypeEnumStatusVulnerability.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: systemOwnedEnum.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateCustomTypeEnum(t *testing.T) { @@ -139,7 +139,7 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { ObjectType: "control", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -150,7 +150,7 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { Color: lo.ToPtr("#00ff00"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -177,7 +177,7 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { ObjectType: "risk", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -186,7 +186,7 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { Name: "missing type", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid global enum field", }, { @@ -195,7 +195,7 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { ObjectType: "task", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -230,20 +230,20 @@ func TestMutationCreateCustomTypeEnum(t *testing.T) { } // cleanup each object created - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: resp.CreateCustomTypeEnum.CustomTypeEnum.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: resp.CreateCustomTypeEnum.CustomTypeEnum.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateCustomTypeEnum(t *testing.T) { - customTypeEnum := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customTypeEnum := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) systemTypeEnum := (&CustomTypeEnumBuilder{ client: suite.client, Name: "SystemEnum", ObjectType: "control", Description: "A system owned enum", Color: "#123456", - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -260,7 +260,7 @@ func TestMutationUpdateCustomTypeEnum(t *testing.T) { }, requestID: customTypeEnum.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "not authorized, update system owned enum", @@ -269,7 +269,7 @@ func TestMutationUpdateCustomTypeEnum(t *testing.T) { }, requestID: systemTypeEnum.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -289,7 +289,7 @@ func TestMutationUpdateCustomTypeEnum(t *testing.T) { }, requestID: customTypeEnum.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -299,7 +299,7 @@ func TestMutationUpdateCustomTypeEnum(t *testing.T) { }, requestID: customTypeEnum.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -328,14 +328,14 @@ func TestMutationUpdateCustomTypeEnum(t *testing.T) { }) } - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: customTypeEnum.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: customTypeEnum.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteCustomTypeEnum(t *testing.T) { // create objects to be deleted - customTypeEnum1 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - customTypeEnum2 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - customTypeEnum3 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customTypeEnum1 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + customTypeEnum2 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + customTypeEnum3 := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -348,27 +348,27 @@ func TestMutationDeleteCustomTypeEnum(t *testing.T) { name: "not found, delete", idToDelete: customTypeEnum1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: customTypeEnum1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: customTypeEnum1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: customTypeEnum1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -387,7 +387,7 @@ func TestMutationDeleteCustomTypeEnum(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -414,30 +414,30 @@ func TestMutationDeleteCustomTypeEnumInUse(t *testing.T) { client: suite.client, Name: "Preventative", ObjectType: "control", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // create a task enum taskEnum := (&CustomTypeEnumBuilder{ client: suite.client, Name: "Evidence", ObjectType: "task", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) - controlResp, err := suite.client.api.CreateControl(testUser1.UserCtx, testclient.CreateControlInput{ + controlResp, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "TEST-1", ControlKindName: lo.ToPtr(controlEnum.Name), }) assert.NilError(t, err) controlID := controlResp.CreateControl.Control.ID - taskResp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + taskResp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Test Task", TaskKindName: lo.ToPtr(taskEnum.Name), }) assert.NilError(t, err) taskID := taskResp.CreateTask.Task.ID - subcontrolResp, err := suite.client.api.CreateSubcontrol(testUser1.UserCtx, testclient.CreateSubcontrolInput{ + subcontrolResp, err := suite.client.api.CreateSubcontrol(sharedTestUser1.UserCtx, testclient.CreateSubcontrolInput{ RefCode: "SUB-1", ControlID: controlID, SubcontrolKindName: lo.ToPtr(controlEnum.Name), @@ -446,33 +446,33 @@ func TestMutationDeleteCustomTypeEnumInUse(t *testing.T) { subcontrolID := subcontrolResp.CreateSubcontrol.Subcontrol.ID t.Run("delete enum in use by control", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, controlEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, controlEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) t.Run("delete enum in use by task", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, taskEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, taskEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) t.Run("delete enum in use by control and subcontrol", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, controlEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, controlEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) // clean up the objects using the enums - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrolID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrolID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("enum deletion works if no object using it", func(t *testing.T) { - resp, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, controlEnum.ID) + resp, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, controlEnum.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(controlEnum.ID, resp.DeleteCustomTypeEnum.DeletedID)) }) - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: taskEnum.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: taskEnum.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateGlobalCustomTypeEnum(t *testing.T) { @@ -491,7 +491,7 @@ func TestMutationCreateGlobalCustomTypeEnum(t *testing.T) { Field: lo.ToPtr("environment"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, global scope enum", @@ -502,7 +502,7 @@ func TestMutationCreateGlobalCustomTypeEnum(t *testing.T) { Description: lo.ToPtr("Payment Card Industry Data Security Standard scope"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -525,7 +525,7 @@ func TestMutationCreateGlobalCustomTypeEnum(t *testing.T) { assert.Check(t, resp.CreateCustomTypeEnum.CustomTypeEnum.Field == *tc.request.Field) } - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: resp.CreateCustomTypeEnum.CustomTypeEnum.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: resp.CreateCustomTypeEnum.CustomTypeEnum.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } @@ -537,10 +537,10 @@ func TestMutationDeleteGlobalCustomTypeEnumInUse(t *testing.T) { Name: "Staging", ObjectType: "", Field: "environment", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // create a task using the global environment enum - taskResp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + taskResp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Test Task with Global Env", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }) @@ -548,15 +548,15 @@ func TestMutationDeleteGlobalCustomTypeEnumInUse(t *testing.T) { taskID := taskResp.CreateTask.Task.ID t.Run("delete global enum in use by task", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalEnvEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalEnvEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) // cleanup task - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("global enum deletion works after removing references", func(t *testing.T) { - resp, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalEnvEnum.ID) + resp, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalEnvEnum.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(globalEnvEnum.ID, resp.DeleteCustomTypeEnum.DeletedID)) @@ -570,10 +570,10 @@ func TestMutationDeleteGlobalEnumInUseByMultipleTables(t *testing.T) { Name: "SOC2-Type2", ObjectType: "", Field: "scope", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // create a task using the global scope enum - taskResp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + taskResp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Task with Scope", ScopeName: lo.ToPtr(globalScopeEnum.Name), }) @@ -581,7 +581,7 @@ func TestMutationDeleteGlobalEnumInUseByMultipleTables(t *testing.T) { taskID := taskResp.CreateTask.Task.ID // create a control using the same global scope enum - controlResp, err := suite.client.api.CreateControl(testUser1.UserCtx, testclient.CreateControlInput{ + controlResp, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "SCOPE-TEST-1", ScopeName: lo.ToPtr(globalScopeEnum.Name), }) @@ -589,23 +589,23 @@ func TestMutationDeleteGlobalEnumInUseByMultipleTables(t *testing.T) { controlID := controlResp.CreateControl.Control.ID t.Run("delete global enum in use by multiple tables fails", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalScopeEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalScopeEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) // remove task reference - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("delete global enum still fails with one reference remaining", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalScopeEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalScopeEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) // remove control reference - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("global enum deletion works after all references removed", func(t *testing.T) { - resp, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalScopeEnum.ID) + resp, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalScopeEnum.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(globalScopeEnum.ID, resp.DeleteCustomTypeEnum.DeletedID)) @@ -619,31 +619,31 @@ func TestGlobalEnumLookup(t *testing.T) { Name: "GlobalDev", ObjectType: "", Field: "environment", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) t.Run("task uses global enum", func(t *testing.T) { - taskResp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + taskResp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Task Using Global Env", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }) assert.NilError(t, err) assert.Assert(t, taskResp != nil) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskResp.CreateTask.Task.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskResp.CreateTask.Task.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) t.Run("auto-creates enum for unknown name", func(t *testing.T) { - resp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + resp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Task With Auto Created Env", EnvironmentName: lo.ToPtr("NonExistentEnvironment"), }) assert.NilError(t, err) assert.Assert(t, resp != nil) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: resp.CreateTask.Task.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: resp.CreateTask.Task.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) - (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: globalEnvEnum.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.CustomTypeEnumDeleteOne]{client: suite.client.db.CustomTypeEnum, ID: globalEnvEnum.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { @@ -653,12 +653,12 @@ func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { Name: "Production", ObjectType: "", Field: "environment", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) var taskID, controlID, riskID, evidenceID string t.Run("task can use global environment enum", func(t *testing.T) { - resp, err := suite.client.api.CreateTask(testUser1.UserCtx, testclient.CreateTaskInput{ + resp, err := suite.client.api.CreateTask(sharedTestUser1.UserCtx, testclient.CreateTaskInput{ Title: "Task in Production", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }) @@ -668,7 +668,7 @@ func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { }) t.Run("control can use same global environment enum", func(t *testing.T) { - resp, err := suite.client.api.CreateControl(testUser1.UserCtx, testclient.CreateControlInput{ + resp, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "PROD-CTRL-1", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }) @@ -678,7 +678,7 @@ func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { }) t.Run("risk can use same global environment enum", func(t *testing.T) { - resp, err := suite.client.api.CreateRisk(testUser1.UserCtx, testclient.CreateRiskInput{ + resp, err := suite.client.api.CreateRisk(sharedTestUser1.UserCtx, testclient.CreateRiskInput{ Name: "Production Risk", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }) @@ -688,7 +688,7 @@ func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { }) t.Run("evidence can use same global environment enum", func(t *testing.T) { - resp, err := suite.client.api.CreateEvidence(testUser1.UserCtx, testclient.CreateEvidenceInput{ + resp, err := suite.client.api.CreateEvidence(sharedTestUser1.UserCtx, testclient.CreateEvidenceInput{ Name: "Production Evidence", EnvironmentName: lo.ToPtr(globalEnvEnum.Name), }, nil) @@ -698,18 +698,18 @@ func TestGlobalEnumUsedAcrossMultipleSchemas(t *testing.T) { }) t.Run("cannot delete global enum while in use by multiple schemas", func(t *testing.T) { - _, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalEnvEnum.ID) + _, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalEnvEnum.ID) assert.ErrorContains(t, err, "enum is in use") }) // cleanup in reverse order - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidenceID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: riskID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidenceID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: riskID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: controlID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("can delete global enum after all references removed", func(t *testing.T) { - resp, err := suite.client.api.DeleteCustomTypeEnum(testUser1.UserCtx, globalEnvEnum.ID) + resp, err := suite.client.api.DeleteCustomTypeEnum(sharedTestUser1.UserCtx, globalEnvEnum.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(globalEnvEnum.ID, resp.DeleteCustomTypeEnum.DeletedID)) diff --git a/internal/graphapi/dnsverification_test.go b/internal/graphapi/dnsverification_test.go index a84ccb4657..d6e906a68f 100644 --- a/internal/graphapi/dnsverification_test.go +++ b/internal/graphapi/dnsverification_test.go @@ -13,7 +13,7 @@ import ( ) func TestQueryDNSVerificationByID(t *testing.T) { - dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -28,27 +28,27 @@ func TestQueryDNSVerificationByID(t *testing.T) { expectedCloudflareID: dnsVerification.CloudflareHostnameID, queryID: dnsVerification.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", expectedCloudflareID: dnsVerification.CloudflareHostnameID, queryID: dnsVerification.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, sysadmin user", expectedCloudflareID: dnsVerification.CloudflareHostnameID, queryID: dnsVerification.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "verification not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -56,7 +56,7 @@ func TestQueryDNSVerificationByID(t *testing.T) { expectedCloudflareID: dnsVerification.CloudflareHostnameID, queryID: dnsVerification.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -77,13 +77,13 @@ func TestQueryDNSVerificationByID(t *testing.T) { assert.Check(t, is.Equal(tc.expectedCloudflareID, resp.DNSVerification.CloudflareHostnameID)) }) } - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryDNSVerifications(t *testing.T) { - dnsVerification1 := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - dnsVerification2 := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - dnsVerification3 := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + dnsVerification1 := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + dnsVerification2 := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + dnsVerification3 := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) nonExistentCloudflareID := "nonexistent-cloudflare-id" @@ -97,28 +97,28 @@ func TestQueryDNSVerifications(t *testing.T) { { name: "return all", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "return all, ro user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { name: "return all, sysadmin user", client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, where: &testclient.DNSVerificationWhereInput{ - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, expectedResults: 2, }, { name: "query by cloudflare hostname ID", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.DNSVerificationWhereInput{ CloudflareHostnameID: &dnsVerification1.CloudflareHostnameID, }, @@ -127,7 +127,7 @@ func TestQueryDNSVerifications(t *testing.T) { { name: "query by cloudflare hostname ID, not found", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.DNSVerificationWhereInput{ CloudflareHostnameID: &nonExistentCloudflareID, }, @@ -136,7 +136,7 @@ func TestQueryDNSVerifications(t *testing.T) { { name: "query by DNS TXT record", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, where: &testclient.DNSVerificationWhereInput{ DNSTxtRecord: &dnsVerification2.DNSTxtRecord, }, @@ -154,13 +154,13 @@ func TestQueryDNSVerifications(t *testing.T) { assert.Check(t, is.Equal(tc.expectedResults, resp.DNSVerifications.TotalCount)) for _, verification := range resp.DNSVerifications.Edges { - assert.Check(t, is.Equal(*verification.Node.OwnerID, testUser1.OrganizationID)) + assert.Check(t, is.Equal(*verification.Node.OwnerID, sharedTestUser1.OrganizationID)) } }) } - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification1.ID, dnsVerification2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification3.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification1.ID, dnsVerification2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification3.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationCreateDNSVerification(t *testing.T) { @@ -179,10 +179,10 @@ func TestMutationCreateDNSVerification(t *testing.T) { DNSTxtValue: "test-dns-value", AcmeChallengePath: lo.ToPtr("acmepaththing"), ExpectedAcmeChallengeValue: lo.ToPtr("test-ssl-value"), - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "not authorized", @@ -192,10 +192,10 @@ func TestMutationCreateDNSVerification(t *testing.T) { DNSTxtValue: "test-dns-value-unauthorized", AcmeChallengePath: lo.ToPtr("acmepaththing"), ExpectedAcmeChallengeValue: lo.ToPtr("test-ssl-value"), - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -205,10 +205,10 @@ func TestMutationCreateDNSVerification(t *testing.T) { DNSTxtValue: "test-dns-value-missing", AcmeChallengePath: lo.ToPtr("acmepaththing"), ExpectedAcmeChallengeValue: lo.ToPtr("test-ssl-value"), - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "cloudflare_hostname_id", }, } @@ -235,9 +235,9 @@ func TestMutationCreateDNSVerification(t *testing.T) { } func TestMutationDeleteDNSVerification(t *testing.T) { - dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - dnsVerification2 := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - dnsVerification3 := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + dnsVerification2 := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + dnsVerification3 := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) nonExistentID := "non-existent-id" testCases := []struct { @@ -251,20 +251,20 @@ func TestMutationDeleteDNSVerification(t *testing.T) { name: "delete verification", id: dnsVerification.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "unauthorized", id: dnsVerification3.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "verification not found", id: nonExistentID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -288,11 +288,11 @@ func TestMutationDeleteDNSVerification(t *testing.T) { assert.ErrorContains(t, err, notFoundErrorMsg) }) } - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification2.ID, dnsVerification3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification2.ID, dnsVerification3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestUpdateDNSVerification(t *testing.T) { - dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + dnsVerification := (&DNSVerificationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -306,20 +306,20 @@ func TestUpdateDNSVerification(t *testing.T) { name: "happy path", queryID: dnsVerification.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, updateInput: testclient.UpdateDNSVerificationInput{ AcmeChallengeStatus: lo.ToPtr(enums.SSLVerificationStatusActive), DNSVerificationStatus: lo.ToPtr(enums.DNSVerificationStatusActive), AcmeChallengeStatusReason: lo.ToPtr("all good!"), DNSVerificationStatusReason: lo.ToPtr("all good for the domain!"), - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, }, { name: "not allowed", queryID: dnsVerification.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateDNSVerificationInput{ Tags: []string{"unauthorized"}, }, @@ -340,22 +340,22 @@ func TestUpdateDNSVerification(t *testing.T) { assert.Assert(t, resp != nil) }) } - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestGetAllDNSVerifications(t *testing.T) { // Create test DNS verifications with different users dnsVerification1 := (&DNSVerificationBuilder{ client: suite.client, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) dnsVerification2 := (&DNSVerificationBuilder{ client: suite.client, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) dnsVerification3 := (&DNSVerificationBuilder{ client: suite.client, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -367,25 +367,25 @@ func TestGetAllDNSVerifications(t *testing.T) { { name: "happy path - regular user sees only their verifications", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, // Should see only verifications owned by testUser1 }, { name: "happy path - admin user sees all verifications", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 2, // Should see all owned by testUser }, { name: "happy path - view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, // Should see only verifications from their organization }, { name: "happy path - different user sees only their verifications", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 1, // Should see only verifications owned by testUser2 }, } @@ -421,19 +421,19 @@ func TestGetAllDNSVerifications(t *testing.T) { } // Verify that users only see verifications from their organization - if tc.ctx == testUser1.UserCtx || tc.ctx == viewOnlyUser.UserCtx { + if tc.ctx == sharedTestUser1.UserCtx || tc.ctx == sharedViewOnlyUser.UserCtx { for _, edge := range resp.DNSVerifications.Edges { - assert.Check(t, is.Equal(testUser1.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, *edge.Node.OwnerID)) } - } else if tc.ctx == testUser2.UserCtx { + } else if tc.ctx == sharedTestUser2.UserCtx { for _, edge := range resp.DNSVerifications.Edges { - assert.Check(t, is.Equal(testUser2.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser2.OrganizationID, *edge.Node.OwnerID)) } } }) } // Clean up created verifications - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification1.ID, dnsVerification2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification3.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, IDs: []string{dnsVerification1.ID, dnsVerification2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.DNSVerificationDeleteOne]{client: suite.client.db.DNSVerification, ID: dnsVerification3.ID}).MustDelete(sharedTestUser2.UserCtx, t) } diff --git a/internal/graphapi/emailtemplate_test.go b/internal/graphapi/emailtemplate_test.go index cf3b77ab73..0ce08b8aa3 100644 --- a/internal/graphapi/emailtemplate_test.go +++ b/internal/graphapi/emailtemplate_test.go @@ -26,7 +26,7 @@ func validEmailTemplateDefaults() map[string]any { func TestQueryEmailTemplate(t *testing.T) { // create an email template to be queried using testUser1 - emailTemplate := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + emailTemplate := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the email template testCases := []struct { @@ -40,13 +40,13 @@ func TestQueryEmailTemplate(t *testing.T) { name: "happy path", queryID: emailTemplate.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: emailTemplate.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -58,14 +58,14 @@ func TestQueryEmailTemplate(t *testing.T) { name: "email template not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "email template not found, using not authorized user from another org", queryID: emailTemplate.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -88,13 +88,13 @@ func TestQueryEmailTemplate(t *testing.T) { }) } - (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: emailTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: emailTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryEmailTemplates(t *testing.T) { // create multiple email templates to be queried using testUser1 - emailTemplate1 := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - emailTemplate2 := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + emailTemplate1 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + emailTemplate2 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -105,13 +105,13 @@ func TestQueryEmailTemplates(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -129,7 +129,7 @@ func TestQueryEmailTemplates(t *testing.T) { { name: "another user, no email templates should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -144,7 +144,7 @@ func TestQueryEmailTemplates(t *testing.T) { }) } - (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, IDs: []string{emailTemplate1.ID, emailTemplate2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, IDs: []string{emailTemplate1.ID, emailTemplate2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateEmailTemplate(t *testing.T) { @@ -164,7 +164,7 @@ func TestMutationCreateEmailTemplate(t *testing.T) { Defaults: validEmailTemplateDefaults(), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -184,7 +184,7 @@ func TestMutationCreateEmailTemplate(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -217,7 +217,7 @@ func TestMutationCreateEmailTemplate(t *testing.T) { Defaults: validEmailTemplateDefaults(), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -227,7 +227,7 @@ func TestMutationCreateEmailTemplate(t *testing.T) { TemplateContext: &enums.TemplateContextCampaignRecipient, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -238,7 +238,7 @@ func TestMutationCreateEmailTemplate(t *testing.T) { Defaults: validEmailTemplateDefaults(), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -278,13 +278,13 @@ func TestMutationCreateEmailTemplate(t *testing.T) { } // cleanup each email template created - (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: resp.CreateEmailTemplate.EmailTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: resp.CreateEmailTemplate.EmailTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateEmailTemplate(t *testing.T) { - emailTemplate := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + emailTemplate := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -299,7 +299,7 @@ func TestMutationUpdateEmailTemplate(t *testing.T) { Name: lo.ToPtr("Updated Email Template Name " + ulids.New().String()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -317,7 +317,7 @@ func TestMutationUpdateEmailTemplate(t *testing.T) { Name: lo.ToPtr("Updated Email Template Name " + ulids.New().String()), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -326,7 +326,7 @@ func TestMutationUpdateEmailTemplate(t *testing.T) { Name: lo.ToPtr("Updated Email Template Name " + ulids.New().String()), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -355,14 +355,14 @@ func TestMutationUpdateEmailTemplate(t *testing.T) { }) } - (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: emailTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EmailTemplateDeleteOne]{client: suite.client.db.EmailTemplate, ID: emailTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteEmailTemplate(t *testing.T) { // create email templates to be deleted - emailTemplate1 := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - emailTemplate2 := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - emailTemplate3 := (&EmailTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + emailTemplate1 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + emailTemplate2 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + emailTemplate3 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -375,27 +375,27 @@ func TestMutationDeleteEmailTemplate(t *testing.T) { name: "not found, delete", idToDelete: emailTemplate1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: emailTemplate1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: emailTemplate1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: emailTemplate1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -414,7 +414,7 @@ func TestMutationDeleteEmailTemplate(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/entity_test.go b/internal/graphapi/entity_test.go index 73a7e44327..a09cfb18dd 100644 --- a/internal/graphapi/entity_test.go +++ b/internal/graphapi/entity_test.go @@ -18,8 +18,8 @@ import ( ) func TestQueryEntity(t *testing.T) { - entity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + entity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) testCases := []struct { name string @@ -32,7 +32,7 @@ func TestQueryEntity(t *testing.T) { name: "happy path entity", queryID: entity.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path entity, using api token", @@ -50,7 +50,7 @@ func TestQueryEntity(t *testing.T) { name: "no access", queryID: entity.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: "entity not found", }, { @@ -79,14 +79,14 @@ func TestQueryEntity(t *testing.T) { } // delete created entity - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete the entityType - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryEntities(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - entity2 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + entity2 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -97,7 +97,7 @@ func TestQueryEntities(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { @@ -115,7 +115,7 @@ func TestQueryEntities(t *testing.T) { { name: "another user, no entities should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -130,8 +130,8 @@ func TestQueryEntities(t *testing.T) { }) } - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{entity1.ID, entity2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{entity1.EntityTypeID, entity2.EntityTypeID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{entity1.ID, entity2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{entity1.EntityTypeID, entity2.EntityTypeID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateEntity(t *testing.T) { @@ -139,8 +139,8 @@ func TestMutationCreateEntity(t *testing.T) { entityTypesToDelete := []string{} defaultTier := lo.ToPtr(enums.VendorTierStandard) - entityType := (&EntityTypeBuilder{client: suite.client, Name: "superheros"}).MustNew(testUser1.UserCtx, t) - entityTypeAnotherOrg := (&EntityTypeBuilder{client: suite.client, Name: "villains"}).MustNew(testUser2.UserCtx, t) + entityType := (&EntityTypeBuilder{client: suite.client, Name: "superheros"}).MustNew(sharedTestUser1.UserCtx, t) + entityTypeAnotherOrg := (&EntityTypeBuilder{client: suite.client, Name: "villains"}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -157,7 +157,7 @@ func TestMutationCreateEntity(t *testing.T) { Tier: defaultTier, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input with entity type", @@ -169,13 +169,12 @@ func TestMutationCreateEntity(t *testing.T) { Status: &enums.EntityStatusUnderReview, Tier: defaultTier, Note: &testclient.CreateNoteInput{ - Text: "matt is the best", - OwnerID: &adminUser.OrganizationID, + Text: "matt is the best", }, }, entityTypeName: &entityType.Name, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "not allowed to use another org's entity type", @@ -185,7 +184,7 @@ func TestMutationCreateEntity(t *testing.T) { }, entityTypeName: &entityTypeAnotherOrg.Name, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field: entity_type_name", }, { @@ -201,7 +200,7 @@ func TestMutationCreateEntity(t *testing.T) { name: "happy path, using pat", request: testclient.CreateEntityInput{ Name: lo.ToPtr("blue spruce"), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Tier: defaultTier, }, client: suite.client.apiWithPAT, @@ -214,7 +213,7 @@ func TestMutationCreateEntity(t *testing.T) { Tier: defaultTier, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -224,7 +223,7 @@ func TestMutationCreateEntity(t *testing.T) { Tier: defaultTier, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "name already exists, different casing", @@ -233,7 +232,7 @@ func TestMutationCreateEntity(t *testing.T) { Tier: defaultTier, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "entity already exists", }, { @@ -244,7 +243,7 @@ func TestMutationCreateEntity(t *testing.T) { Tier: defaultTier, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field: domains", }, } @@ -312,8 +311,8 @@ func TestMutationCreateEntity(t *testing.T) { }) } - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entitiesToDelete}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypesToDelete}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entitiesToDelete}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypesToDelete}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateEntityEnrichment(t *testing.T) { @@ -362,7 +361,7 @@ func TestMutationCreateEntityEnrichment(t *testing.T) { } func TestMutationUpdateEntity(t *testing.T) { - entity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) numNotes := 0 numDomains := 0 @@ -383,7 +382,7 @@ func TestMutationUpdateEntity(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update description using api token", @@ -423,7 +422,7 @@ func TestMutationUpdateEntity(t *testing.T) { ApprovedForUse: lo.ToPtr(false), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "not allowed to update", @@ -431,7 +430,7 @@ func TestMutationUpdateEntity(t *testing.T) { Description: lo.ToPtr("pine trees of the west"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -440,7 +439,7 @@ func TestMutationUpdateEntity(t *testing.T) { Description: lo.ToPtr("pine trees of the west"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "entity not found", }, } @@ -506,14 +505,14 @@ func TestMutationUpdateEntity(t *testing.T) { }) } - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteEntity(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - entity2 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - entity3 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + entity2 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + entity3 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -526,20 +525,20 @@ func TestMutationDeleteEntity(t *testing.T) { name: "not allowed to delete", idToDelete: entity1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete entity", idToDelete: entity1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "entity already deleted, not found", idToDelete: entity1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "entity not found", }, { @@ -558,7 +557,7 @@ func TestMutationDeleteEntity(t *testing.T) { name: "unknown entity, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "entity not found", }, } @@ -578,5 +577,5 @@ func TestMutationDeleteEntity(t *testing.T) { }) } - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{entity1.EntityTypeID, entity2.EntityTypeID, entity3.EntityTypeID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{entity1.EntityTypeID, entity2.EntityTypeID, entity3.EntityTypeID}}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/entitytype_test.go b/internal/graphapi/entitytype_test.go index dfdd99b6d5..46c4f1a791 100644 --- a/internal/graphapi/entitytype_test.go +++ b/internal/graphapi/entitytype_test.go @@ -15,7 +15,7 @@ import ( ) func TestQueryEntityType(t *testing.T) { - entityType := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entityType := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -27,7 +27,7 @@ func TestQueryEntityType(t *testing.T) { { name: "happy path entity type", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, queryID: entityType.ID, }, { @@ -45,7 +45,7 @@ func TestQueryEntityType(t *testing.T) { { name: "no access", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, queryID: entityType.ID, errorMsg: notFoundErrorMsg, }, @@ -68,12 +68,12 @@ func TestQueryEntityType(t *testing.T) { } // delete created entityType - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entityType.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entityType.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryEntityTypes(t *testing.T) { - e1 := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - e2 := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + e1 := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + e2 := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -84,7 +84,7 @@ func TestQueryEntityTypes(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, shouldSeeNew: true, }, { @@ -102,7 +102,7 @@ func TestQueryEntityTypes(t *testing.T) { { name: "another user, no new entities should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, shouldSeeNew: false, }, } @@ -137,7 +137,7 @@ func TestQueryEntityTypes(t *testing.T) { }) } - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{e1.ID, e2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: []string{e1.ID, e2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateEntityType(t *testing.T) { @@ -154,7 +154,7 @@ func TestMutationCreateEntityType(t *testing.T) { Name: "cats", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input, using api token", @@ -167,7 +167,7 @@ func TestMutationCreateEntityType(t *testing.T) { { name: "happy path, all input, using pat", request: testclient.CreateEntityTypeInput{ - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Name: "bunnies", }, client: suite.client.apiWithPAT, @@ -179,14 +179,14 @@ func TestMutationCreateEntityType(t *testing.T) { Name: "dogs", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required field, name", request: testclient.CreateEntityTypeInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -205,13 +205,13 @@ func TestMutationCreateEntityType(t *testing.T) { assert.Check(t, is.Equal(tc.request.Name, resp.CreateEntityType.EntityType.Name)) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: resp.CreateEntityType.EntityType.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: resp.CreateEntityType.EntityType.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateEntityType(t *testing.T) { - entityType := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entityType := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -226,7 +226,7 @@ func TestMutationUpdateEntityType(t *testing.T) { Name: lo.ToPtr("maine coons"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update name using api token", @@ -250,7 +250,7 @@ func TestMutationUpdateEntityType(t *testing.T) { Name: lo.ToPtr("dogs"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -270,13 +270,13 @@ func TestMutationUpdateEntityType(t *testing.T) { }) } - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entityType.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entityType.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteEntityType(t *testing.T) { - entityType1 := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - entityType2 := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - entityType3 := (&EntityTypeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entityType1 := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + entityType2 := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + entityType3 := (&EntityTypeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -289,27 +289,27 @@ func TestMutationDeleteEntityType(t *testing.T) { name: "not allowed to delete", idToDelete: entityType1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not allowed to delete, no access", idToDelete: entityType1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete entity type", idToDelete: entityType1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "entityType already deleted, not found", idToDelete: entityType1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -328,7 +328,7 @@ func TestMutationDeleteEntityType(t *testing.T) { name: "unknown entitytype, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/evidence_test.go b/internal/graphapi/evidence_test.go index aad8e6ab74..5cec21b676 100644 --- a/internal/graphapi/evidence_test.go +++ b/internal/graphapi/evidence_test.go @@ -19,19 +19,20 @@ import ( ) func TestQueryEvidence(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + evidenceNoParent := (&EvidenceBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) - (&ProgramMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, ProgramID: program.ID}).MustNew(adminUser.UserCtx, t) + (&ProgramMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) // create an Evidence to be queried using adminUser // org owner (testUser1) should automatically have access to the Evidence - evidence := (&EvidenceBuilder{client: suite.client, ProgramID: program.ID}).MustNew(adminUser.UserCtx, t) + evidence := (&EvidenceBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) // create a control to be queried using adminUser that access is granted via the control - control := (&ControlBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) - evidenceControl := (&EvidenceBuilder{client: suite.client, ControlID: control.ID}).MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + evidenceControl := (&EvidenceBuilder{client: suite.client, ControlID: control.ID}).MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) // add test cases for querying the Evidence testCases := []struct { @@ -42,41 +43,61 @@ func TestQueryEvidence(t *testing.T) { errorMsg string }{ { - name: "happy path, creator of the evidence", + name: "happy path, creator of the evidence no parent", + queryID: evidenceNoParent.ID, + client: suite.client.api, + ctx: sharedAdminUser.UserCtx, + }, + { + name: "happy path, creator of the evidence with program parent", queryID: evidence.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, permissions via control", queryID: evidenceControl.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, org owner", queryID: evidence.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user in organization, authorized via program", queryID: evidence.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { - name: "read only user in organization, no access", + name: "read only user in organization, no access given via parent", queryID: evidence.ID, client: suite.client.api, - ctx: viewOnlyUser2.UserCtx, + ctx: sharedViewOnlyUser2.UserCtx, + errorMsg: notFoundErrorMsg, + }, + { + name: "read only user in organization, no access", + queryID: evidenceNoParent.ID, + client: suite.client.api, + ctx: sharedViewOnlyUser.UserCtx, + errorMsg: notFoundErrorMsg, + }, + { + name: "read only user 2 in organization, no access", + queryID: evidenceNoParent.ID, + client: suite.client.api, + ctx: sharedViewOnlyUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "read only user in organization, has access via control", queryID: evidenceControl.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -85,17 +106,17 @@ func TestQueryEvidence(t *testing.T) { ctx: context.Background(), }, { - name: "Evidence not found, invalid ID", + name: "evidence not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { - name: "Evidence not found, using not authorized user", + name: "evidence not found, using not authorized user", queryID: evidence.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -130,15 +151,15 @@ func TestQueryEvidence(t *testing.T) { } // delete created evidence - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{evidence.ID, evidenceControl.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{evidence.ID, evidenceControl.ID, evidenceNoParent.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryEvidences(t *testing.T) { // create multiple objects by adminUser, org owner should have access to them as well - e1 := (&EvidenceBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - e2 := (&EvidenceBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + e1 := (&EvidenceBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + e2 := (&EvidenceBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) userAnotherOrg := suite.userBuilder(context.Background(), t) @@ -155,20 +176,20 @@ func TestQueryEvidences(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org, access not automatically granted", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 0, }, { - name: "happy path, using api token, access not automatically granted", + name: "happy path, using api token, includes evidence scope", client: suite.client.apiWithToken, ctx: context.Background(), - expectedResults: 0, + expectedResults: 2, }, { name: "happy path, using pat, which is for the org owner so access is granted", @@ -179,7 +200,7 @@ func TestQueryEvidences(t *testing.T) { { name: "another user, no Evidences should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -195,13 +216,13 @@ func TestQueryEvidences(t *testing.T) { } // delete created evidences - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{e1.ID, e2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{e1.ID, e2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: e3.ID}).MustDelete(userAnotherOrg.UserCtx, t) } func TestMutationCreateEvidence(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) pngFile := uploadFile(t, logoFilePath) csvFile := uploadFile(t, "testdata/uploads/orgs.csv") @@ -209,19 +230,19 @@ func TestMutationCreateEvidence(t *testing.T) { txtFile := uploadFile(t, txtFilePath) // create edges to be used in the test cases - control1 := (&ControlBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - controlObjective1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - controlObjective2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - subcontrol1 := (&SubcontrolBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - subcontrol2 := (&SubcontrolBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + controlObjective1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + controlObjective2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + subcontrol1 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + subcontrol2 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) // create system owned control to test that it cannot be linked - systemOwnedSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - systemOwnedControl := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + systemOwnedSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + systemOwnedControl := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) // create a task for view only user - taskViewOnly := (&TaskBuilder{client: suite.client}).MustNew(viewOnlyUser.UserCtx, t) + taskViewOnly := (&TaskBuilder{client: suite.client}).MustNew(sharedViewOnlyUser.UserCtx, t) testCases := []struct { name string @@ -237,7 +258,7 @@ func TestMutationCreateEvidence(t *testing.T) { Name: "Test Evidence", }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, view only user should be able to associate evidence to a task they can edit", @@ -246,7 +267,7 @@ func TestMutationCreateEvidence(t *testing.T) { TaskIDs: []string{taskViewOnly.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, view only user should be able to associate evidence to a task they can edit and control they can view", @@ -256,7 +277,7 @@ func TestMutationCreateEvidence(t *testing.T) { ControlIDs: []string{control1.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, all input", @@ -280,7 +301,7 @@ func TestMutationCreateEvidence(t *testing.T) { csvFile, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, admin user in org", @@ -298,7 +319,7 @@ func TestMutationCreateEvidence(t *testing.T) { SubcontrolIDs: []string{subcontrol1.ID, subcontrol2.ID}, // ensure the same subcontrols can be added to multiple evidences }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "attempt to link system owned control", @@ -308,7 +329,7 @@ func TestMutationCreateEvidence(t *testing.T) { ControlIDs: []string{systemOwnedControl.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -319,7 +340,7 @@ func TestMutationCreateEvidence(t *testing.T) { SubcontrolIDs: []string{systemOwnedSubcontrol.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -330,7 +351,7 @@ func TestMutationCreateEvidence(t *testing.T) { ControlIDs: []string{systemOwnedControl.ID, control1.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -338,7 +359,7 @@ func TestMutationCreateEvidence(t *testing.T) { request: testclient.CreateEvidenceInput{ Name: "Test Evidence - TSK-123", TaskIDs: []string{task.ID}, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, files: []*graphql.Upload{ pdfFile, @@ -363,7 +384,7 @@ func TestMutationCreateEvidence(t *testing.T) { Name: "Test Evidence", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -373,7 +394,7 @@ func TestMutationCreateEvidence(t *testing.T) { TaskIDs: []string{task.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -384,7 +405,7 @@ func TestMutationCreateEvidence(t *testing.T) { ControlIDs: []string{control1.ID, control2.ID}, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -393,7 +414,7 @@ func TestMutationCreateEvidence(t *testing.T) { Description: lo.ToPtr("This is a test Evidence"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -403,7 +424,7 @@ func TestMutationCreateEvidence(t *testing.T) { URL: lo.ToPtr("invalid"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field", }, { @@ -413,7 +434,7 @@ func TestMutationCreateEvidence(t *testing.T) { CreationDate: lo.ToPtr(models.DateTime(time.Now().Add(time.Hour))), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "time cannot be in the future", }, { @@ -423,7 +444,7 @@ func TestMutationCreateEvidence(t *testing.T) { RenewalDate: lo.ToPtr(models.DateTime(time.Now().Add(-time.Hour))), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "time cannot be in the past", }, } @@ -534,13 +555,13 @@ func TestMutationCreateEvidence(t *testing.T) { // attempt to retrieve the created evidence by org owner, no matter who created it // the org owner should have access to it - resp2, err := suite.client.api.GetEvidenceByID(testUser1.UserCtx, resp.CreateEvidence.Evidence.ID) + resp2, err := suite.client.api.GetEvidenceByID(sharedTestUser1.UserCtx, resp.CreateEvidence.Evidence.ID) assert.NilError(t, err) assert.Assert(t, resp2 != nil) // delete the created evidence, update for the token user cases if tc.ctx == context.Background() { - tc.ctx = testUser1.UserCtx + tc.ctx = sharedTestUser1.UserCtx } // delete the evidence @@ -552,14 +573,14 @@ func TestMutationCreateEvidence(t *testing.T) { }) } // delete created objects - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, subcontrol1.ControlID, subcontrol2.ControlID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: []string{controlObjective1.ID, controlObjective2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID, taskViewOnly.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, subcontrol1.ControlID, subcontrol2.ControlID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlObjectiveDeleteOne]{client: suite.client.db.ControlObjective, IDs: []string{controlObjective1.ID, controlObjective2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol1.ID, subcontrol2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID, taskViewOnly.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete system owned controls and subcontrols - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: systemOwnedSubcontrol.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemOwnedControl.ID, systemOwnedSubcontrol.ControlID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: systemOwnedSubcontrol.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemOwnedControl.ID, systemOwnedSubcontrol.ControlID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateBulkCSVEvidence(t *testing.T) { @@ -579,7 +600,7 @@ func TestMutationCreateBulkCSVEvidence(t *testing.T) { { name: "happy path, valid file with json array tags", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, fileInput: *bulkFile, expectedLen: 2, expectedTags: 3, @@ -587,7 +608,7 @@ func TestMutationCreateBulkCSVEvidence(t *testing.T) { { name: "happy path, plain string tag converted to array", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, fileInput: *plainTagFile, expectedLen: 1, expectedTags: 1, @@ -621,15 +642,15 @@ func TestMutationCreateBulkCSVEvidence(t *testing.T) { }) } - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: evidences}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: evidences}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateEvidence(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - evidence := (&EvidenceBuilder{client: suite.client, ProgramID: program.ID}).MustNew(adminUser.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + evidence := (&EvidenceBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) // add view only user to the program so that they have access to the evidence for testing update permissions - pm := (&ProgramMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, ProgramID: program.ID}).MustNew(adminUser.UserCtx, t) + pm := (&ProgramMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) pdfFile := uploadFile(t, pdfFilePath) @@ -647,7 +668,7 @@ func TestMutationUpdateEvidence(t *testing.T) { CollectionProcedure: lo.ToPtr("This is how we collected the updated Evidence"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update multiple fields using PAT", @@ -671,7 +692,7 @@ func TestMutationUpdateEvidence(t *testing.T) { }, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "update not allowed, no permissions to update but can view due to program membership", @@ -679,7 +700,7 @@ func TestMutationUpdateEvidence(t *testing.T) { Description: lo.ToPtr("This is an updated description of evidence"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -688,7 +709,7 @@ func TestMutationUpdateEvidence(t *testing.T) { Source: lo.ToPtr("woofs"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -697,7 +718,7 @@ func TestMutationUpdateEvidence(t *testing.T) { CreationDate: lo.ToPtr(models.DateTime(time.Now().Add(time.Minute))), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: "time cannot be in the future", }, { @@ -706,7 +727,7 @@ func TestMutationUpdateEvidence(t *testing.T) { RenewalDate: lo.ToPtr(models.DateTime(time.Now().Add(-time.Hour))), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: "time cannot be in the past", }, } @@ -751,16 +772,16 @@ func TestMutationUpdateEvidence(t *testing.T) { } // delete created evidence - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidence.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidence.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete created program and membership - (&Cleanup[*generated.ProgramMembershipDeleteOne]{client: suite.client.db.ProgramMembership, ID: pm.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramMembershipDeleteOne]{client: suite.client.db.ProgramMembership, ID: pm.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteEvidence(t *testing.T) { // create objects to be deleted - evidence1 := (&EvidenceBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - evidence2 := (&EvidenceBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + evidence1 := (&EvidenceBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + evidence2 := (&EvidenceBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) testCases := []struct { name string @@ -773,20 +794,20 @@ func TestMutationDeleteEvidence(t *testing.T) { name: "not authorized, delete", idToDelete: evidence1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: evidence1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: evidence1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -799,7 +820,7 @@ func TestMutationDeleteEvidence(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -948,7 +969,7 @@ func TestEvidenceMissingArtifactStatus(t *testing.T) { expectUploadNillable(t, suite.client.mockProvider, tc.createFiles) } - createResp, err := suite.client.api.CreateEvidence(adminUser.UserCtx, tc.createInput, tc.createFiles) + createResp, err := suite.client.api.CreateEvidence(sharedAdminUser.UserCtx, tc.createInput, tc.createFiles) assert.NilError(t, err) assert.Assert(t, createResp != nil) @@ -957,100 +978,20 @@ func TestEvidenceMissingArtifactStatus(t *testing.T) { if tc.updateInput == nil { assert.Check(t, is.Equal(tc.expectedStatus, *createResp.CreateEvidence.Evidence.Status), tc.description) } else { - updateResp, err := suite.client.api.UpdateEvidence(adminUser.UserCtx, evidenceID, *tc.updateInput, nil) + updateResp, err := suite.client.api.UpdateEvidence(sharedAdminUser.UserCtx, evidenceID, *tc.updateInput, nil) assert.NilError(t, err) assert.Assert(t, updateResp != nil) assert.Check(t, is.Equal(tc.expectedStatus, *updateResp.UpdateEvidence.Evidence.Status), tc.description) } - evidenceResp, err := suite.client.api.GetEvidenceByID(adminUser.UserCtx, evidenceID) + evidenceResp, err := suite.client.api.GetEvidenceByID(sharedAdminUser.UserCtx, evidenceID) if err == nil && evidenceResp != nil { for _, edge := range evidenceResp.Evidence.Files.Edges { - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: edge.Node.ID}).MustDelete(adminUser.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: edge.Node.ID}).MustDelete(sharedAdminUser.UserCtx, t) } } - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidenceID}).MustDelete(adminUser.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidenceID}).MustDelete(sharedAdminUser.UserCtx, t) }) } } - -func TestEvidence_NextReviewDate(t *testing.T) { - now := time.Now().UTC().Truncate(time.Second) - initialCreationDate := models.DateTime(now.AddDate(0, 0, -14)) - updatedCreationDate := models.DateTime(now.AddDate(0, 0, -7)) - monthlyFreq := enums.FrequencyMonthly - quarterlyFreq := enums.FrequencyQuarterly - - createResp, err := suite.client.api.CreateEvidence(adminUser.UserCtx, testclient.CreateEvidenceInput{ - Name: "Evidence review date", - CreationDate: lo.ToPtr(initialCreationDate), - ReviewFrequency: lo.ToPtr(monthlyFreq), - }, nil) - assert.NilError(t, err) - assert.Assert(t, createResp != nil) - - id := createResp.CreateEvidence.Evidence.ID - - bulkUpdateResp, err := suite.client.api.CreateEvidence(adminUser.UserCtx, testclient.CreateEvidenceInput{ - Name: "Bulk evidence review date", - CreationDate: lo.ToPtr(initialCreationDate), - ReviewFrequency: lo.ToPtr(quarterlyFreq), - }, nil) - assert.NilError(t, err) - assert.Assert(t, bulkUpdateResp != nil) - - bulkUpdateID := bulkUpdateResp.CreateEvidence.Evidence.ID - - resp, err := suite.client.api.GetEvidenceByID(adminUser.UserCtx, id) - assert.NilError(t, err) - assert.Assert(t, resp != nil) - assert.Assert(t, resp.Evidence.RenewalDate != nil) - assert.Check(t, is.Equal(time.Time(initialCreationDate).AddDate(0, 1, 0), time.Time(*resp.Evidence.RenewalDate))) - assert.Assert(t, resp.Evidence.ReviewFrequency != nil) - assert.Check(t, is.Equal(monthlyFreq, *resp.Evidence.ReviewFrequency)) - - _, err = suite.client.api.UpdateEvidence(adminUser.UserCtx, id, testclient.UpdateEvidenceInput{ - CreationDate: lo.ToPtr(updatedCreationDate), - }, nil) - assert.NilError(t, err) - - resp, err = suite.client.api.GetEvidenceByID(adminUser.UserCtx, id) - assert.NilError(t, err) - assert.Assert(t, resp != nil) - assert.Assert(t, resp.Evidence.RenewalDate != nil) - assert.Check(t, is.Equal(time.Time(updatedCreationDate).AddDate(0, 1, 0), time.Time(*resp.Evidence.RenewalDate))) - - _, err = suite.client.api.UpdateEvidence(adminUser.UserCtx, id, testclient.UpdateEvidenceInput{ - ReviewFrequency: lo.ToPtr(quarterlyFreq), - }, nil) - assert.NilError(t, err) - - resp, err = suite.client.api.GetEvidenceByID(adminUser.UserCtx, id) - assert.NilError(t, err) - assert.Assert(t, resp != nil) - assert.Assert(t, resp.Evidence.RenewalDate != nil) - assert.Check(t, is.Equal(time.Time(updatedCreationDate).AddDate(0, 3, 0), time.Time(*resp.Evidence.RenewalDate))) - - updateBulkResp, err := suite.client.api.UpdateBulkEvidence(adminUser.UserCtx, []string{id, bulkUpdateID}, testclient.UpdateEvidenceInput{ - ReviewFrequency: lo.ToPtr(monthlyFreq), - }) - assert.NilError(t, err) - assert.Assert(t, updateBulkResp != nil) - assert.Check(t, is.Len(updateBulkResp.UpdateBulkEvidence.UpdatedIDs, 2)) - - expectedRenewalDates := map[string]time.Time{ - id: time.Time(updatedCreationDate).AddDate(0, 1, 0), - bulkUpdateID: time.Time(initialCreationDate).AddDate(0, 1, 0), - } - - for evidenceID, expectedRenewalDate := range expectedRenewalDates { - resp, err = suite.client.api.GetEvidenceByID(adminUser.UserCtx, evidenceID) - assert.NilError(t, err) - assert.Assert(t, resp != nil) - assert.Assert(t, resp.Evidence.RenewalDate != nil) - assert.Check(t, is.Equal(expectedRenewalDate, time.Time(*resp.Evidence.RenewalDate))) - } - - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{id, bulkUpdateID}}).MustDelete(adminUser.UserCtx, t) -} diff --git a/internal/graphapi/export_test.go b/internal/graphapi/export_test.go index 5617ebea36..616c450b11 100644 --- a/internal/graphapi/export_test.go +++ b/internal/graphapi/export_test.go @@ -31,13 +31,13 @@ func TestMutationCreateExport(t *testing.T) { Filters: &emptyFilter, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with PAT", request: testclient.CreateExportInput{ ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Format: lo.ToPtr(enums.ExportFormatCsv), }, client: suite.client.apiWithPAT, @@ -47,11 +47,11 @@ func TestMutationCreateExport(t *testing.T) { name: "happy path with system admin", request: testclient.CreateExportInput{ ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Format: lo.ToPtr(enums.ExportFormatCsv), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, } @@ -73,22 +73,22 @@ func TestMutationCreateExport(t *testing.T) { assert.Check(t, is.Equal(*tc.request.OwnerID, *resp.CreateExport.Export.OwnerID)) } - if tc.ctx == systemAdminUser.UserCtx { - export, err := suite.client.api.GetExportByID(systemAdminUser.UserCtx, resp.CreateExport.Export.ID) + if tc.ctx == sharedSystemAdminUser.UserCtx { + export, err := suite.client.api.GetExportByID(sharedSystemAdminUser.UserCtx, resp.CreateExport.Export.ID) assert.NilError(t, err) assert.Assert(t, export != nil) assert.Check(t, is.Equal(resp.CreateExport.Export.ID, export.Export.ID)) } - (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: resp.CreateExport.Export.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: resp.CreateExport.Export.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) }) } } func TestMutationUpdateExport(t *testing.T) { - createResp, err := suite.client.api.CreateExport(testUser1.UserCtx, testclient.CreateExportInput{ + createResp, err := suite.client.api.CreateExport(sharedTestUser1.UserCtx, testclient.CreateExportInput{ ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Format: lo.ToPtr(enums.ExportFormatCsv), }) assert.NilError(t, err) @@ -110,7 +110,7 @@ func TestMutationUpdateExport(t *testing.T) { Status: &enums.ExportStatusReady, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "unauthorized user - regular user cannot update", @@ -119,7 +119,7 @@ func TestMutationUpdateExport(t *testing.T) { Status: &enums.ExportStatusReady, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "export not found", }, { @@ -129,7 +129,7 @@ func TestMutationUpdateExport(t *testing.T) { Status: &enums.ExportStatusReady, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "export not found", }, { @@ -139,7 +139,7 @@ func TestMutationUpdateExport(t *testing.T) { Status: &enums.ExportStatusReady, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "export not found", }, } @@ -163,13 +163,13 @@ func TestMutationUpdateExport(t *testing.T) { }) } - (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: exportID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: exportID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestQueryExport(t *testing.T) { - createResp, err := suite.client.api.CreateExport(testUser1.UserCtx, testclient.CreateExportInput{ + createResp, err := suite.client.api.CreateExport(sharedTestUser1.UserCtx, testclient.CreateExportInput{ ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Format: lo.ToPtr(enums.ExportFormatCsv), }) assert.NilError(t, err) @@ -187,7 +187,7 @@ func TestQueryExport(t *testing.T) { name: "happy path with system admin", exportID: exportID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "happy path with PAT and system admin context", @@ -199,33 +199,33 @@ func TestQueryExport(t *testing.T) { name: "regular user can query", exportID: exportID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "unauthorized user - different org user cannot query", exportID: exportID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "export not found", }, { name: "view only user can query", exportID: exportID, client: suite.client.api, - ctx: viewOnlyUser2.UserCtx, + ctx: sharedViewOnlyUser2.UserCtx, }, { name: "export not found", exportID: "non-existent-id", client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "export not found", }, { name: "system admin can fetch item", exportID: exportID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, } @@ -242,11 +242,11 @@ func TestQueryExport(t *testing.T) { assert.Check(t, is.Equal(tc.exportID, export.Export.ID)) assert.Check(t, is.Equal(enums.ExportTypeControl.String(), export.Export.ExportType.String())) assert.Check(t, is.Equal(enums.ExportStatusPending.String(), export.Export.Status.String())) - assert.Check(t, is.Equal(testUser1.OrganizationID, *export.Export.OwnerID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, *export.Export.OwnerID)) }) } - (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: exportID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ExportDeleteOne]{client: suite.client.db.Export, ID: exportID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationDeleteExport(t *testing.T) { @@ -260,45 +260,45 @@ func TestMutationDeleteExport(t *testing.T) { { name: "happy path with system admin", setupExport: func() string { - resp, err := suite.client.api.CreateExport(testUser1.UserCtx, testclient.CreateExportInput{ + resp, err := suite.client.api.CreateExport(sharedTestUser1.UserCtx, testclient.CreateExportInput{ ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Format: lo.ToPtr(enums.ExportFormatCsv), }) assert.NilError(t, err) return resp.CreateExport.Export.ID }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "unauthorized user - regular user cannot delete", setupExport: func() string { - resp, err := suite.client.api.CreateExport(testUser1.UserCtx, testclient.CreateExportInput{ + resp, err := suite.client.api.CreateExport(sharedTestUser1.UserCtx, testclient.CreateExportInput{ Format: lo.ToPtr(enums.ExportFormatCsv), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, ExportType: enums.ExportTypeControl, }) assert.NilError(t, err) return resp.CreateExport.Export.ID }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "export not found", }, { name: "unauthorized user - different org user cannot delete", setupExport: func() string { - resp, err := suite.client.api.CreateExport(testUser1.UserCtx, testclient.CreateExportInput{ + resp, err := suite.client.api.CreateExport(sharedTestUser1.UserCtx, testclient.CreateExportInput{ Format: lo.ToPtr(enums.ExportFormatCsv), ExportType: enums.ExportTypeControl, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }) assert.NilError(t, err) return resp.CreateExport.Export.ID }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "export not found", }, } @@ -315,13 +315,13 @@ func TestMutationDeleteExport(t *testing.T) { }, nil) assert.ErrorContains(t, err, tc.expectedErr) - cleanup.MustDelete(systemAdminUser.UserCtx, t) + cleanup.MustDelete(sharedSystemAdminUser.UserCtx, t) return } cleanup.MustDelete(tc.ctx, t) - _, err := suite.client.api.GetExportByID(systemAdminUser.UserCtx, exportID) + _, err := suite.client.api.GetExportByID(sharedSystemAdminUser.UserCtx, exportID) assert.ErrorContains(t, err, "export not found") }) } diff --git a/internal/graphapi/file_test.go b/internal/graphapi/file_test.go index 91281c4ebb..887ed2cf96 100644 --- a/internal/graphapi/file_test.go +++ b/internal/graphapi/file_test.go @@ -18,17 +18,17 @@ func TestQueryFile(t *testing.T) { fileUpload := uploadFile(t, "testdata/uploads/orgs.csv") // create control to be used in the Evidence - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*fileUpload}) - evidence, err := suite.client.api.CreateEvidence(testUser1.UserCtx, testclient.CreateEvidenceInput{ + evidence, err := suite.client.api.CreateEvidence(sharedTestUser1.UserCtx, testclient.CreateEvidenceInput{ Name: "Test Evidence", ControlIDs: []string{control.ID}, }, []*graphql.Upload{fileUpload}) assert.NilError(t, err) - getEvidence, err := suite.client.api.GetEvidenceByID(testUser1.UserCtx, evidence.CreateEvidence.Evidence.ID) + getEvidence, err := suite.client.api.GetEvidenceByID(sharedTestUser1.UserCtx, evidence.CreateEvidence.Evidence.ID) assert.NilError(t, err) assert.Check(t, is.Len(getEvidence.Evidence.Files.Edges, 1)) @@ -38,14 +38,14 @@ func TestQueryFile(t *testing.T) { expectUpload(t, suite.client.mockProvider, []graphql.Upload{*fileUpload}) // update user avatar to the file - userResp, err := suite.client.api.UpdateUser(testUser1.UserCtx, testUser1.ID, testclient.UpdateUserInput{}, fileUpload, nil) + userResp, err := suite.client.api.UpdateUser(sharedTestUser1.UserCtx, sharedTestUser1.ID, testclient.UpdateUserInput{}, fileUpload, nil) assert.NilError(t, err) assert.Check(t, userResp.UpdateUser.User.AvatarFile != nil) userFileID := *userResp.UpdateUser.User.AvatarLocalFileID // user in another org context - adminUserCtxAnotherOrg := auth.NewTestContextWithOrgID(adminUser.ID, adminUser.PersonalOrgID) + adminUserCtxAnotherOrg := auth.NewTestContextWithOrgID(sharedAdminUser.ID, sharedAdminUser.PersonalOrgID) // add test cases for querying the File testCases := []struct { @@ -59,31 +59,31 @@ func TestQueryFile(t *testing.T) { name: "happy path", queryID: evidenceFile.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, avatar file", queryID: userFileID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, admin user", queryID: evidenceFile.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "avatar file needs to be found to display to other users", queryID: userFileID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, user authorized via the control to view the file", queryID: evidenceFile.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -102,21 +102,21 @@ func TestQueryFile(t *testing.T) { name: "File not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "File not found, using not authorized user", queryID: evidenceFile.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "File not found, using not authorized user to avatar file", queryID: userFileID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -141,52 +141,46 @@ func TestQueryFile(t *testing.T) { }) } - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, IDs: []string{evidenceFile.ID, userFileID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidence.CreateEvidence.Evidence.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, IDs: []string{evidenceFile.ID, userFileID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidence.CreateEvidence.Evidence.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryFiles(t *testing.T) { // create users so we dont have conflicts with other tests - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - tokenClient := suite.setupAPITokenClient(testUser.UserCtx, t) + localTestUser := suite.seedFreshMinimalOrgUsers(t, true) - anotherTestUser := suite.userBuilder(context.Background(), t) + // create users so we dont have conflicts with other tests + localTestUser2 := suite.seedOrgOwner(t) - orgMember := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - orgMemberCtx := auth.NewTestContextWithOrgID(orgMember.UserID, orgMember.OrganizationID) + anotherTestUser := suite.userBuilder(context.Background(), t) // create an evidence to be queried using testUser fileUpload := uploadFile(t, "testdata/uploads/orgs.csv") // create control to be used in the Evidence - control := (&ControlBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*fileUpload}) - evidence, err := suite.client.api.CreateEvidence(testUser.UserCtx, testclient.CreateEvidenceInput{ + evidence, err := suite.client.api.CreateEvidence(localTestUser.owner.UserCtx, testclient.CreateEvidenceInput{ Name: "Test Evidence", ControlIDs: []string{control.ID}, }, []*graphql.Upload{fileUpload}) assert.NilError(t, err) - getEvidence, err := suite.client.api.GetEvidenceByID(testUser.UserCtx, evidence.CreateEvidence.Evidence.ID) + getEvidence, err := suite.client.api.GetEvidenceByID(localTestUser.owner.UserCtx, evidence.CreateEvidence.Evidence.ID) assert.NilError(t, err) assert.Check(t, is.Len(getEvidence.Evidence.Files.Edges, 1)) - evidenceFile := getEvidence.Evidence.Files.Edges[0].Node - fileUpload = uploadFile(t, logoFilePath) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*fileUpload}) // update user avatar to the file - userResp, err := suite.client.api.UpdateUser(testUser.UserCtx, testUser.ID, testclient.UpdateUserInput{}, fileUpload, nil) + userResp, err := suite.client.api.UpdateUser(localTestUser.owner.UserCtx, localTestUser.owner.ID, testclient.UpdateUserInput{}, fileUpload, nil) assert.NilError(t, err) assert.Check(t, userResp.UpdateUser.User.AvatarFile != nil) - userFileID := *userResp.UpdateUser.User.AvatarLocalFileID - testCases := []struct { name string client *testclient.TestClient @@ -196,24 +190,30 @@ func TestQueryFiles(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, expectedResults: 2, // 1 for evidence file, 1 for user avatar file }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: orgMemberCtx, + ctx: localTestUser.member.UserCtx, expectedResults: 2, // 1 for evidence file, 1 for user avatar file }, { name: "happy path, using api token", - client: tokenClient, + client: localTestUser.apiClient, ctx: context.Background(), - expectedResults: 1, // 1 for evidence file, service not able to access another user's avatar file + expectedResults: 1, // 1 for evidence file, as no avatar + }, + { + name: "another org api token cannot access orgs files", + client: localTestUser2.apiClient, + ctx: context.Background(), + expectedResults: 0, }, { name: "happy path, using pat", - client: patClient, + client: localTestUser.adminPatClient, ctx: context.Background(), expectedResults: 2, // 1 for evidence file, 1 for user avatar file since its the same user's personal access token }, @@ -235,7 +235,7 @@ func TestQueryFiles(t *testing.T) { }) } - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, IDs: []string{evidenceFile.ID, userFileID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, ID: evidence.CreateEvidence.Evidence.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser2.owner.UserCtx, t) + cleanupOrganizationDataWithContext(anotherTestUser.UserCtx, t) } diff --git a/internal/graphapi/group_test.go b/internal/graphapi/group_test.go index 3674c36b37..ad5c5bc128 100644 --- a/internal/graphapi/group_test.go +++ b/internal/graphapi/group_test.go @@ -19,17 +19,17 @@ import ( ) func TestQueryGroup(t *testing.T) { - group1 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - privateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + group1 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + privateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - privateGroupWithSetting, err := suite.client.api.GetGroupByID(testUser1.UserCtx, privateGroup.ID) + privateGroupWithSetting, err := suite.client.api.GetGroupByID(sharedTestUser1.UserCtx, privateGroup.ID) assert.NilError(t, err) - _, err = suite.client.api.UpdateGroupSetting(testUser1.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ + _, err = suite.client.api.UpdateGroupSetting(sharedTestUser1.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ Visibility: &enums.VisibilityPrivate, }) assert.NilError(t, err) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) testCases := []struct { name string @@ -42,7 +42,7 @@ func TestQueryGroup(t *testing.T) { { name: "happy path group", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, queryID: group1.ID, }, { @@ -54,20 +54,20 @@ func TestQueryGroup(t *testing.T) { { name: "happy path private group", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, queryID: privateGroup.ID, }, { name: "private group, no access", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, queryID: privateGroup.ID, errorMsg: notFoundErrorMsg, }, { name: "no access", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, queryID: group1.ID, errorMsg: notFoundErrorMsg, }, @@ -98,10 +98,12 @@ func TestQueryGroup(t *testing.T) { } // delete created group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group1.ID, privateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group1.ID, privateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryGroupsByOwner(t *testing.T) { + t.Parallel() + userAnotherOrg := suite.userBuilder(context.Background(), t) org1 := userAnotherOrg.OrganizationID reqCtx := userAnotherOrg.UserCtx @@ -163,38 +165,38 @@ func TestQueryGroupsByOwner(t *testing.T) { }) // delete created groups and orgs - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group1.ID}).MustDelete(reqCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group2.ID}).MustDelete(reqCtx2, t) + cleanupOrganizationDataWithContext(reqCtx, t) + cleanupOrganizationDataWithContext(reqCtx2, t) } func TestQueryGroups(t *testing.T) { - testUser1 := suite.userBuilder(context.Background(), t) - testUser2 := suite.userBuilder(context.Background(), t) + users := suite.seedFreshOrgUsers(t) + usersAnother := suite.seedFreshOrgUsers(t) - group1 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - group2 := (&GroupBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - group3 := (&GroupBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + group1 := (&GroupBuilder{client: suite.client}).MustNew(users.owner.UserCtx, t) + group2 := (&GroupBuilder{client: suite.client}).MustNew(usersAnother.owner.UserCtx, t) + group3 := (&GroupBuilder{client: suite.client}).MustNew(usersAnother.owner.UserCtx, t) - privateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + privateGroup := (&GroupBuilder{client: suite.client}).MustNew(users.owner.UserCtx, t) - privateGroupWithSetting, err := suite.client.api.GetGroupByID(testUser1.UserCtx, privateGroup.ID) + privateGroupWithSetting, err := suite.client.api.GetGroupByID(users.owner.UserCtx, privateGroup.ID) assert.NilError(t, err) - _, err = suite.client.api.UpdateGroupSetting(testUser1.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ + _, err = suite.client.api.UpdateGroupSetting(users.owner.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ Visibility: &enums.VisibilityPrivate, }) assert.NilError(t, err) t.Run("Get Groups", func(t *testing.T) { - resp, err := suite.client.api.GetAllGroups(testUser2.UserCtx) + resp, err := suite.client.api.GetAllGroups(usersAnother.owner.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Assert(t, resp.Groups.Edges != nil) - // make sure two organizations are returned (group 2 and group 3), the seeded group, and the 3 managed groups + // make sure two organizations are returned (group 2 and group 3), the seeded group, and the 6 managed groups // and the system managed group for the user - assert.Check(t, is.Equal(7, len(resp.Groups.Edges))) + assert.Check(t, is.Equal(10, len(resp.Groups.Edges))) group1Found := false group2Found := false @@ -219,13 +221,13 @@ func TestQueryGroups(t *testing.T) { assert.Assert(t, !group1Found) // check groups available to testuser1 - resp, err = suite.client.api.GetAllGroups(testUser1.UserCtx) + resp, err = suite.client.api.GetAllGroups(users.owner.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) // check groups available to admin user (private group created by testUser1 should not be returned) - resp, err = suite.client.api.GetAllGroups(adminUser.UserCtx) + resp, err = suite.client.api.GetAllGroups(users.admin.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -235,7 +237,7 @@ func TestQueryGroups(t *testing.T) { } // check groups available to admin user (private group created by testUser1 should not be returned for org member) - resp, err = suite.client.api.GetAllGroups(viewOnlyUser.UserCtx) + resp, err = suite.client.api.GetAllGroups(users.member.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -243,20 +245,19 @@ func TestQueryGroups(t *testing.T) { for _, v := range resp.Groups.Edges { assert.Assert(t, v.Node.ID != privateGroup.ID) } - }) // delete created groups - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group1.ID, privateGroup.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group2.ID, group3.ID}}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group1.ID, privateGroup.ID}}).MustDelete(users.owner.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group2.ID, group3.ID}}).MustDelete(usersAnother.owner.UserCtx, t) } func TestMutationCreateGroup(t *testing.T) { name := gofakeit.Name() // group for the view only user - group := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) + group := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) createdGroups := []string{group.ID} @@ -278,7 +279,7 @@ func TestMutationCreateGroup(t *testing.T) { displayName: gofakeit.LetterN(50), description: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid group name", @@ -286,7 +287,7 @@ func TestMutationCreateGroup(t *testing.T) { displayName: gofakeit.LetterN(50), description: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: "field cannot contain special character", }, { @@ -295,7 +296,7 @@ func TestMutationCreateGroup(t *testing.T) { displayName: gofakeit.LetterN(50), description: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: "group already exists", }, { @@ -310,7 +311,7 @@ func TestMutationCreateGroup(t *testing.T) { name: "happy path group using personal access token", groupName: gofakeit.Name(), displayName: gofakeit.LetterN(50), - owner: testUser1.OrganizationID, + owner: sharedTestUser1.OrganizationID, description: gofakeit.HipsterSentence(), client: suite.client.apiWithPAT, ctx: context.Background(), @@ -324,13 +325,13 @@ func TestMutationCreateGroup(t *testing.T) { JoinPolicy: &enums.JoinPolicyInviteOnly, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "no access to create group", groupName: gofakeit.Name(), client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notAuthorizedErrorMsg, }, { @@ -338,35 +339,35 @@ func TestMutationCreateGroup(t *testing.T) { groupName: gofakeit.Name(), addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "no access to owner, should ignore the input org", groupName: gofakeit.Name(), displayName: gofakeit.LetterN(50), description: gofakeit.HipsterSentence(), - owner: testUser2.OrganizationID, + owner: sharedTestUser2.OrganizationID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path group, minimum fields", groupName: gofakeit.Name(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "missing name", errorMsg: "validator failed", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddGroupCreatorIDs: []string{group.ID}, }, nil, nil) @@ -418,7 +419,7 @@ func TestMutationCreateGroup(t *testing.T) { assert.Check(t, is.Equal(resp.CreateGroup.Group.Setting.JoinPolicy, enums.JoinPolicyInviteOnly)) } - if tc.owner != "" && tc.ctx == testUser2.UserCtx { + if tc.owner != "" && tc.ctx == sharedTestUser2.UserCtx { // make sure the owner is ignored if the user doesn't have access assert.Check(t, tc.owner != resp.CreateGroup.Group.Owner.ID) } @@ -428,13 +429,13 @@ func TestMutationCreateGroup(t *testing.T) { } // cleanup the group creator - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ RemoveGroupCreatorIDs: []string{group.ID}, }, nil, nil) assert.NilError(t, err) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: createdGroups}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: createdGroups}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateGroupWithMembers(t *testing.T) { @@ -457,16 +458,16 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, { - UserID: viewOnlyUser.ID, + UserID: sharedViewOnlyUser.ID, Role: &enums.RoleMember, }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedLen: 2, }, { @@ -479,17 +480,17 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, { - UserID: viewOnlyUser.ID, + UserID: sharedViewOnlyUser.ID, Role: &enums.RoleMember, }, }, client: suite.client.api, expectedLen: 2, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path group as org admin including self", @@ -501,17 +502,17 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, { - UserID: viewOnlyUser.ID, + UserID: sharedViewOnlyUser.ID, Role: &enums.RoleMember, }, }, client: suite.client.api, expectedLen: 2, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path group as org admin not including self", @@ -523,13 +524,13 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, }, client: suite.client.api, expectedLen: 1, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path group using api token with same members", @@ -541,11 +542,11 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, { - UserID: viewOnlyUser.ID, + UserID: sharedViewOnlyUser.ID, Role: &enums.RoleMember, }, }, @@ -557,18 +558,18 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { name: "happy path group using personal access token with same members", group: testclient.CreateGroupInput{ Name: ulids.New().String(), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, CreateGroupSettings: &testclient.CreateGroupSettingInput{ Visibility: &enums.VisibilityPrivate, }, }, members: []*testclient.GroupMembersInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, Role: &enums.RoleAdmin, }, { - UserID: viewOnlyUser.ID, + UserID: sharedViewOnlyUser.ID, Role: &enums.RoleMember, }, }, @@ -627,14 +628,14 @@ func TestMutationCreateGroupWithMembers(t *testing.T) { } func TestMutationCreateGroupByClone(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - group := (&GroupBuilder{client: suite.client, ProgramEditorsIDs: []string{program.ID}, ControlEditorsIDs: []string{control.ID}}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + group := (&GroupBuilder{client: suite.client, ProgramEditorsIDs: []string{program.ID}, ControlEditorsIDs: []string{control.ID}}).MustNew(sharedTestUser1.UserCtx, t) - groupAnotherUser := (&GroupBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + groupAnotherUser := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // add a group member to the group - (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -654,13 +655,13 @@ func TestMutationCreateGroupByClone(t *testing.T) { groupPermissionsClone: &group.ID, groupMembersClone: &group.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, clone group members, use personal access token", group: testclient.CreateGroupInput{ Name: gofakeit.Name(), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, groupPermissionsClone: &group.ID, client: suite.client.apiWithPAT, @@ -683,7 +684,7 @@ func TestMutationCreateGroupByClone(t *testing.T) { groupPermissionsClone: &group.ID, groupMembersClone: &group.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notAuthorizedErrorMsg, }, { @@ -694,7 +695,7 @@ func TestMutationCreateGroupByClone(t *testing.T) { groupPermissionsClone: &groupAnotherUser.ID, groupMembersClone: &groupAnotherUser.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -739,10 +740,10 @@ func TestMutationCreateGroupByClone(t *testing.T) { } // cleanup - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateGroup(t *testing.T) { @@ -751,26 +752,26 @@ func TestMutationUpdateGroup(t *testing.T) { descriptionUpdate := gofakeit.HipsterSentence() gravatarURLUpdate := gofakeit.URL() - group := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - gm := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) + group := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + gm := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) // create a second group member to test removing and re-adding - group2 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - gm2 := (&GroupMemberBuilder{client: suite.client, GroupID: group2.ID}).MustNew(testUser1.UserCtx, t) + group2 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + gm2 := (&GroupMemberBuilder{client: suite.client, GroupID: group2.ID}).MustNew(sharedTestUser1.UserCtx, t) - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + om := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - procedure := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - programClone := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlClone := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + programClone := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlClone := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add additional permissions as well as the same we will be updating to the group (control ID) - groupClone := (&GroupBuilder{client: suite.client, ProgramEditorsIDs: []string{programClone.ID}, ControlEditorsIDs: []string{controlClone.ID, control.ID}}).MustNew(testUser1.UserCtx, t) + groupClone := (&GroupBuilder{client: suite.client, ProgramEditorsIDs: []string{programClone.ID}, ControlEditorsIDs: []string{controlClone.ID, control.ID}}).MustNew(sharedTestUser1.UserCtx, t) - gmCtx := auth.NewTestContextWithOrgID(gm.UserID, testUser1.OrganizationID) + gmCtx := auth.NewTestContextWithOrgID(gm.UserID, sharedTestUser1.OrganizationID) // ensure user cannot get access to the program _, err := suite.client.api.GetProgramByID(gmCtx, program.ID) @@ -799,7 +800,7 @@ func TestMutationUpdateGroup(t *testing.T) { AddControlEditorIDs: []string{control.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -849,7 +850,7 @@ func TestMutationUpdateGroup(t *testing.T) { AddProgramEditorIDs: []string{program.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, errorMsg: notAuthorizedErrorMsg, }, { @@ -862,7 +863,7 @@ func TestMutationUpdateGroup(t *testing.T) { InheritGroupPermissions: &groupClone.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -911,7 +912,7 @@ func TestMutationUpdateGroup(t *testing.T) { RemoveGroupMembers: []string{gm2.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group2.ID, DisplayID: group2.DisplayID, @@ -932,7 +933,7 @@ func TestMutationUpdateGroup(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group2.ID, DisplayID: group2.DisplayID, @@ -967,7 +968,7 @@ func TestMutationUpdateGroup(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -989,7 +990,7 @@ func TestMutationUpdateGroup(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -1011,7 +1012,7 @@ func TestMutationUpdateGroup(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -1033,7 +1034,7 @@ func TestMutationUpdateGroup(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRes: testclient.UpdateGroup_UpdateGroup_Group{ ID: group.ID, DisplayID: group.DisplayID, @@ -1054,7 +1055,7 @@ func TestMutationUpdateGroup(t *testing.T) { Description: &descriptionUpdate, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: "not authorized", }, } @@ -1143,24 +1144,24 @@ func TestMutationUpdateGroup(t *testing.T) { } // cleanup - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{om.ID, gm.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group.ID, groupClone.ID, group2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program.ID, programClone.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, controlClone.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{om.ID, gm.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{group.ID, groupClone.ID, group2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program.ID, programClone.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, controlClone.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteGroup(t *testing.T) { - group1 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - group2 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - group3 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - privateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + group1 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + group2 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + group3 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + privateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - privateGroupWithSetting, err := suite.client.api.GetGroupByID(testUser1.UserCtx, privateGroup.ID) + privateGroupWithSetting, err := suite.client.api.GetGroupByID(sharedTestUser1.UserCtx, privateGroup.ID) assert.NilError(t, err) - _, err = suite.client.api.UpdateGroupSetting(testUser1.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ + _, err = suite.client.api.UpdateGroupSetting(sharedTestUser1.UserCtx, privateGroupWithSetting.Group.Setting.ID, testclient.UpdateGroupSettingInput{ Visibility: &enums.VisibilityPrivate, }) assert.NilError(t, err) @@ -1175,7 +1176,7 @@ func TestMutationDeleteGroup(t *testing.T) { { name: "delete private group, happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, groupID: privateGroup.ID, }, { @@ -1193,14 +1194,14 @@ func TestMutationDeleteGroup(t *testing.T) { { name: "delete group, no access", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, groupID: group1.ID, errorMsg: notAuthorizedErrorMsg, }, { name: "delete group, happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, groupID: group1.ID, }, } @@ -1226,6 +1227,8 @@ func TestMutationDeleteGroup(t *testing.T) { } func TestManagedGroups(t *testing.T) { + t.Parallel() + whereInput := &testclient.GroupWhereInput{ IsManaged: lo.ToPtr(true), } @@ -1252,7 +1255,7 @@ func TestManagedGroups(t *testing.T) { // you should not be able to add group members to a managed group _, err = suite.client.api.AddUserToGroupWithRole(testUser.UserCtx, testclient.CreateGroupMembershipInput{ GroupID: groupID, - UserID: testUser2.ID, + UserID: sharedTestUser2.ID, }) assert.ErrorContains(t, err, "managed groups cannot be modified") @@ -1291,7 +1294,5 @@ func TestManagedGroups(t *testing.T) { assert.Check(t, is.Len(perms.Edges, 0)) // cleanup objects created - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(testUser.UserCtx, t) } diff --git a/internal/graphapi/groupmembers_test.go b/internal/graphapi/groupmembers_test.go index 2fbea242e5..cfb1d10beb 100644 --- a/internal/graphapi/groupmembers_test.go +++ b/internal/graphapi/groupmembers_test.go @@ -16,9 +16,9 @@ import ( ) func TestQueryGroupMembers(t *testing.T) { - group := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + group := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - groupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -32,7 +32,7 @@ func TestQueryGroupMembers(t *testing.T) { name: "happy path, get group member by group id", queryID: group.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expected: groupMember, }, { @@ -53,15 +53,15 @@ func TestQueryGroupMembers(t *testing.T) { name: "get group member by group id, no access", queryID: group.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expected: nil, // no results are returned because the group provided is not found for that user - errExpected: false, + errExpected: true, }, { name: "invalid-id", queryID: "tacos-for-dinner", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expected: nil, // no results are returned because the group provided is not found for that user errExpected: false, }, @@ -97,25 +97,25 @@ func TestQueryGroupMembers(t *testing.T) { } // delete created group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete created group member - (&Cleanup[*generated.GroupMembershipDeleteOne]{client: suite.client.db.GroupMembership, ID: groupMember.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupMembershipDeleteOne]{client: suite.client.db.GroupMembership, ID: groupMember.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete org member - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{groupMember.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{groupMember.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateGroupMembers(t *testing.T) { - group1 := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + group1 := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - checkCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + checkCtx := privacy.DecisionContext(sharedTestUser1.UserCtx, privacy.Allow) groupMember, err := group1.QueryMembers().All(checkCtx) assert.NilError(t, err) assert.Assert(t, is.Len(groupMember, 0)) - orgMember1 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - orgMember2 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - orgMember3 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + orgMember1 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + orgMember2 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + orgMember3 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -132,15 +132,15 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleAdmin, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add self (owner) as admin", groupID: group1.ID, - userID: testUser1.ID, + userID: sharedTestUser1.ID, role: enums.RoleAdmin, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add member using api token", @@ -161,10 +161,10 @@ func TestMutationCreateGroupMembers(t *testing.T) { { name: "cannot add self to group as org member", groupID: group1.ID, - userID: viewOnlyUser.UserInfo.ID, + userID: sharedViewOnlyUser.UserInfo.ID, role: enums.RoleAdmin, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -173,7 +173,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember2.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -182,7 +182,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember2.UserID, role: enums.RoleOwner, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "OWNER is not a valid GroupMembershipRole", }, { @@ -191,7 +191,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "already exists", }, { @@ -200,7 +200,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: "not-a-valid-user-id", role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "user not in organization", }, { @@ -209,7 +209,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -218,7 +218,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleInvalid, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "not a valid GroupMembershipRole", }, } @@ -248,16 +248,16 @@ func TestMutationCreateGroupMembers(t *testing.T) { } // delete created groups and org members - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{orgMember1.ID, orgMember2.ID, orgMember3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{orgMember1.ID, orgMember2.ID, orgMember3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateGroupMembers(t *testing.T) { - gm := (&GroupMemberBuilder{client: suite.client, GroupID: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + gm := (&GroupMemberBuilder{client: suite.client, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // add self to group as admin - testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: testUser1.GroupID, UserID: testUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(testUser1.UserCtx, t) + testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: sharedTestUser1.GroupID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) - gmCtx := auth.NewTestContextWithOrgID(gm.UserID, testUser1.OrganizationID) + gmCtx := auth.NewTestContextWithOrgID(gm.UserID, sharedTestUser1.OrganizationID) testCases := []struct { name string @@ -272,14 +272,14 @@ func TestMutationUpdateGroupMembers(t *testing.T) { groupMemberID: gm.ID, role: enums.RoleAdmin, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update self from admin to member ok", groupMemberID: testUser1GroupMember.ID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update self from member to admin not allowed", @@ -308,7 +308,7 @@ func TestMutationUpdateGroupMembers(t *testing.T) { groupMemberID: gm.ID, role: enums.RoleInvalid, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "not a valid GroupMembershipRole", }, { @@ -316,7 +316,7 @@ func TestMutationUpdateGroupMembers(t *testing.T) { groupMemberID: gm.ID, role: enums.RoleMember, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, } @@ -342,19 +342,19 @@ func TestMutationUpdateGroupMembers(t *testing.T) { } // delete created group member - (&Cleanup[*generated.GroupMembershipDeleteOne]{client: suite.client.db.GroupMembership, ID: gm.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupMembershipDeleteOne]{client: suite.client.db.GroupMembership, ID: gm.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete org member - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{gm.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{gm.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteGroupMembers(t *testing.T) { - group := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - gm1 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) - gm2 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) - gm3 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(testUser1.UserCtx, t) + group := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + gm1 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) + gm2 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) + gm3 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) // add self to group as admin - testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID, UserID: testUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(testUser1.UserCtx, t) + testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -367,20 +367,20 @@ func TestMutationDeleteGroupMembers(t *testing.T) { name: "not allowed to delete", idToDelete: gm1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "allowed to delete self as org admin", idToDelete: testUser1GroupMember.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { - name: "not allowed to delete, not found", + name: "not allowed to delete, in another org, not found", idToDelete: gm1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -393,7 +393,7 @@ func TestMutationDeleteGroupMembers(t *testing.T) { name: "happy path, delete org member", idToDelete: gm1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, delete group member using personal access token", @@ -405,14 +405,14 @@ func TestMutationDeleteGroupMembers(t *testing.T) { name: "unknown group member, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "group member already deleted, not found", idToDelete: gm1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -433,7 +433,7 @@ func TestMutationDeleteGroupMembers(t *testing.T) { } // delete org members - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{gm1.Edges.OrgMembership.ID, gm2.Edges.OrgMembership.ID, gm3.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{gm1.Edges.OrgMembership.ID, gm2.Edges.OrgMembership.ID, gm3.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // delete the group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/historygenerated/root_.generated.go b/internal/graphapi/historygenerated/root_.generated.go index a54a424ad3..8bc3d5a094 100644 --- a/internal/graphapi/historygenerated/root_.generated.go +++ b/internal/graphapi/historygenerated/root_.generated.go @@ -23031,7 +23031,7 @@ type AssessmentHistory implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: String """ @@ -43778,6 +43778,8 @@ enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/commo ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. @@ -47778,6 +47780,7 @@ ProgramMembershipHistoryRole is enum for the field role enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. diff --git a/internal/graphapi/historyschema/schema.graphql b/internal/graphapi/historyschema/schema.graphql index 9811e73e23..7c9c512045 100644 --- a/internal/graphapi/historyschema/schema.graphql +++ b/internal/graphapi/historyschema/schema.graphql @@ -831,7 +831,7 @@ type AssessmentHistory implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: String """ @@ -21636,6 +21636,8 @@ enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/commo ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. @@ -25640,6 +25642,7 @@ ProgramMembershipHistoryRole is enum for the field role enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. diff --git a/internal/graphapi/identity_holder_test.go b/internal/graphapi/identity_holder_test.go index 22576b7f57..96c793e3b6 100644 --- a/internal/graphapi/identity_holder_test.go +++ b/internal/graphapi/identity_holder_test.go @@ -17,7 +17,7 @@ import ( ) func TestQueryIdentityHolder(t *testing.T) { - ih := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ih := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -30,13 +30,13 @@ func TestQueryIdentityHolder(t *testing.T) { name: "happy path", queryID: ih.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", queryID: ih.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, with api token", @@ -54,14 +54,14 @@ func TestQueryIdentityHolder(t *testing.T) { name: "not found, no access", queryID: ih.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, invalid id", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -81,12 +81,12 @@ func TestQueryIdentityHolder(t *testing.T) { }) } - (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryIdentityHolders(t *testing.T) { - ih1 := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ih2 := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ih1 := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ih2 := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -96,12 +96,12 @@ func TestQueryIdentityHolders(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, using api token", @@ -116,7 +116,7 @@ func TestQueryIdentityHolders(t *testing.T) { { name: "another user, no identity holders should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, } @@ -128,8 +128,8 @@ func TestQueryIdentityHolders(t *testing.T) { }) } - (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih2.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih2.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateIdentityHolder(t *testing.T) { @@ -147,7 +147,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { Email: gofakeit.Email(), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -164,14 +164,14 @@ func TestMutationCreateIdentityHolder(t *testing.T) { Status: &enums.UserStatusOnboarding, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateIdentityHolderInput{ FullName: gofakeit.Name(), Email: gofakeit.Email(), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -192,7 +192,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { Email: gofakeit.Email(), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -202,7 +202,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { }, expectedErr: "value is less than the required length", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "missing required field, no name", @@ -211,7 +211,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { }, expectedErr: "value is less than the required length", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid email", @@ -221,7 +221,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { }, expectedErr: "mail: missing '@' or angle-addr", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid phone number", @@ -232,7 +232,7 @@ func TestMutationCreateIdentityHolder(t *testing.T) { }, expectedErr: rout.InvalidField("phone_number").Error(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -291,13 +291,13 @@ func TestMutationCreateIdentityHolder(t *testing.T) { assert.Check(t, ih.IsActive) - (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateIdentityHolder(t *testing.T) { - ih := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ih := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -312,7 +312,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { FullName: lo.ToPtr(gofakeit.Name()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update email", @@ -320,7 +320,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { Email: lo.ToPtr(gofakeit.Email()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update department and team", @@ -345,7 +345,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { IdentityHolderType: &enums.IdentityHolderTypeContractor, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update title and location", @@ -354,7 +354,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { Location: lo.ToPtr(gofakeit.City()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "not authorized, view only user", @@ -362,7 +362,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { FullName: lo.ToPtr(gofakeit.Name()), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -371,7 +371,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { FullName: lo.ToPtr(gofakeit.Name()), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -380,7 +380,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { PhoneNumber: lo.ToPtr("not a phone number"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: rout.InvalidField("phone_number").Error(), }, { @@ -389,7 +389,7 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { Email: lo.ToPtr("not-an-email"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "validator failed for field", }, } @@ -445,13 +445,13 @@ func TestMutationUpdateIdentityHolder(t *testing.T) { }) } - (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IdentityHolderDeleteOne]{client: suite.client.db.IdentityHolder, ID: ih.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteIdentityHolder(t *testing.T) { - ih1 := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ih2 := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ih3 := (&IdentityHolderBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ih1 := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ih2 := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ih3 := (&IdentityHolderBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -464,27 +464,27 @@ func TestMutationDeleteIdentityHolder(t *testing.T) { name: "not allowed to delete, view only user", idToDelete: ih1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not allowed to delete, no access", idToDelete: ih1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: ih1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: ih1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -503,7 +503,7 @@ func TestMutationDeleteIdentityHolder(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/identity_resolution_test.go b/internal/graphapi/identity_resolution_test.go index 6a386cf8ff..46d6351fc2 100644 --- a/internal/graphapi/identity_resolution_test.go +++ b/internal/graphapi/identity_resolution_test.go @@ -15,7 +15,7 @@ import ( ) func TestIdentityResolution(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) irSetup, err := graphapi.SetupIdentityResolution(ctx, suite.client.db, suite.tf.URI) assert.NilError(t, err) @@ -37,7 +37,7 @@ func TestIdentityResolution(t *testing.T) { Department: lo.ToPtr("Platform"), PhoneNumber: lo.ToPtr("800-867-5309"), EmailAliases: []string{"single-create@mail.testresolution.io"}, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, ExternalID: "1234871001", }).MustNew(ctx, t) @@ -78,7 +78,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusActive, JobTitle: lo.ToPtr("SRE"), Department: lo.ToPtr("Infra"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -95,7 +95,7 @@ func TestIdentityResolution(t *testing.T) { DisplayName: "Cross Dir User (GitHub)", DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, PhoneNumber: lo.ToPtr("800-867-5309"), EmailAliases: []string{"single-create@mail.testresolution.io"}, ExternalID: "1234871001", @@ -132,7 +132,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -149,7 +149,7 @@ func TestIdentityResolution(t *testing.T) { FamilyName: lo.ToPtr("Tester"), DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -179,7 +179,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusActive, JobTitle: lo.ToPtr("Slack Title"), Department: lo.ToPtr("Slack Dept"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -204,7 +204,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusSuspended, JobTitle: lo.ToPtr("Staff Engineer"), Department: lo.ToPtr("Platform"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -249,7 +249,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: tc.dirStatus, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -276,7 +276,7 @@ func TestIdentityResolution(t *testing.T) { DisplayName: "No Email User", DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -300,7 +300,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -317,7 +317,7 @@ func TestIdentityResolution(t *testing.T) { FamilyName: lo.ToPtr("Sync"), DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -359,7 +359,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -376,7 +376,7 @@ func TestIdentityResolution(t *testing.T) { FamilyName: lo.ToPtr("Test"), DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -411,7 +411,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusActive, JobTitle: lo.ToPtr("Engineer"), Department: lo.ToPtr("Platform"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -448,7 +448,7 @@ func TestIdentityResolution(t *testing.T) { DisplayName: "Unlinked Update", DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -494,7 +494,7 @@ func TestIdentityResolution(t *testing.T) { DisplayName: "Preexisting Match", DirectoryName: lo.ToPtr("googleworkspace"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -517,7 +517,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -543,7 +543,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -571,7 +571,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -603,7 +603,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusActive, JobTitle: lo.ToPtr("Principal Engineer"), Department: lo.ToPtr("Engineering"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -620,7 +620,7 @@ func TestIdentityResolution(t *testing.T) { FamilyName: lo.ToPtr("Source"), DirectoryName: lo.ToPtr("slack"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -636,7 +636,7 @@ func TestIdentityResolution(t *testing.T) { FamilyName: lo.ToPtr("Source"), DirectoryName: lo.ToPtr("github"), Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -680,7 +680,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("googleworkspace"), PrimarySource: true, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -698,7 +698,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("slack"), PrimarySource: false, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -727,7 +727,7 @@ func TestIdentityResolution(t *testing.T) { DirectoryName: lo.ToPtr("github"), PrimarySource: false, Status: enums.DirectoryAccountStatusActive, - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() @@ -765,7 +765,7 @@ func TestIdentityResolution(t *testing.T) { Status: enums.DirectoryAccountStatusActive, JobTitle: lo.ToPtr("Should Not Propagate"), Department: lo.ToPtr("Should Not Propagate"), - OwnerID: testUser1.OrganizationID, + OwnerID: sharedTestUser1.OrganizationID, }).MustNew(ctx, t) irSetup.Runtime.WaitIdle() diff --git a/internal/graphapi/integration_test.go b/internal/graphapi/integration_test.go index ff1097ed5b..e2dbdd4ada 100644 --- a/internal/graphapi/integration_test.go +++ b/internal/graphapi/integration_test.go @@ -103,13 +103,13 @@ func TestIntegrationWithSecretsRelationship(t *testing.T) { WithSecretValue("gho_access_123"). MustNew(orgUser.UserCtx, t) - refreshToken := (&SecretBuilder{client: suite.client}). + (&SecretBuilder{client: suite.client}). WithIntegration(integration.ID). WithSecretName("github_refresh_token"). WithSecretValue("ghr_refresh_456"). MustNew(orgUser.UserCtx, t) - expiresAt := (&SecretBuilder{client: suite.client}). + (&SecretBuilder{client: suite.client}). WithIntegration(integration.ID). WithSecretName("github_expires_at"). WithSecretValue("2024-12-31T23:59:59Z"). @@ -138,21 +138,14 @@ func TestIntegrationWithSecretsRelationship(t *testing.T) { }) // Clean up - err := suite.client.db.Hush.DeleteOneID(accessToken.ID).Exec(ctx) - assert.NilError(t, err) - err = suite.client.db.Hush.DeleteOneID(refreshToken.ID).Exec(ctx) - assert.NilError(t, err) - err = suite.client.db.Hush.DeleteOneID(expiresAt.ID).Exec(ctx) - assert.NilError(t, err) - err = suite.client.db.Integration.DeleteOneID(integration.ID).Exec(ctx) - assert.NilError(t, err) + cleanupOrganizationDataWithContext(ctx, t) } func TestMutationDeleteIntegration(t *testing.T) { // Create integrations with different kinds (unique constraint on owner_id + kind) - integration1 := (&IntegrationBuilder{client: suite.client, Kind: "github"}).MustNew(testUser1.UserCtx, t) - integration2 := (&IntegrationBuilder{client: suite.client, Kind: "slack"}).MustNew(testUser1.UserCtx, t) - integration3 := (&IntegrationBuilder{client: suite.client, Kind: "jira"}).MustNew(testUser1.UserCtx, t) + integration1 := (&IntegrationBuilder{client: suite.client, Kind: "github"}).MustNew(sharedTestUser1.UserCtx, t) + integration2 := (&IntegrationBuilder{client: suite.client, Kind: "slack"}).MustNew(sharedTestUser1.UserCtx, t) + integration3 := (&IntegrationBuilder{client: suite.client, Kind: "jira"}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -165,33 +158,33 @@ func TestMutationDeleteIntegration(t *testing.T) { { name: "delete integration, happy path using api token", client: suite.client.apiWithToken, - ctx: testUser1.UserCtx, + ctx: context.Background(), integrationID: integration1.ID, }, { name: "delete integration, happy path using personal access token", client: suite.client.apiWithPAT, - ctx: testUser1.UserCtx, + ctx: context.Background(), integrationID: integration2.ID, }, { name: "delete integration, no access", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, integrationID: integration3.ID, errorMsg: notAuthorizedErrorMsg, }, { name: "delete integration, no access another org", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, integrationID: integration3.ID, errorMsg: notFoundErrorMsg, }, { name: "delete integration, happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, integrationID: integration3.ID, }, } @@ -218,7 +211,7 @@ func TestMutationDeleteIntegration(t *testing.T) { func TestQueryIntegration(t *testing.T) { // create an integration to be queried using testUser1 - integration := (&IntegrationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + integration := (&IntegrationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Integration testCases := []struct { @@ -232,13 +225,13 @@ func TestQueryIntegration(t *testing.T) { name: "happy path", queryID: integration.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: integration.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -250,14 +243,14 @@ func TestQueryIntegration(t *testing.T) { name: "integration not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "integration not found, using not authorized user", queryID: integration.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -285,30 +278,30 @@ func TestQueryIntegration(t *testing.T) { }) } - (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, ID: integration.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, ID: integration.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryIntegrationWithSecrets(t *testing.T) { // create an integration to be queried using testUser1 - integration := (&IntegrationBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + integration := (&IntegrationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create multiple secrets for OAuth tokens accessToken := (&SecretBuilder{client: suite.client}). WithIntegration(integration.ID). WithSecretName("github_access_token"). WithSecretValue("gho_access_123"). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) refreshToken := (&SecretBuilder{client: suite.client}). WithIntegration(integration.ID). WithSecretName("github_refresh_token"). WithSecretValue("ghr_refresh_456"). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) expiresAt := (&SecretBuilder{client: suite.client}). WithIntegration(integration.ID). WithSecretName("github_expires_at"). WithSecretValue("2024-12-31T23:59:59Z"). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Integration testCases := []struct { @@ -322,13 +315,13 @@ func TestQueryIntegrationWithSecrets(t *testing.T) { name: "happy path", queryID: integration.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user, cannot query secrets, only the integration", queryID: integration.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notAuthorizedErrorMsg, }, { @@ -341,14 +334,14 @@ func TestQueryIntegrationWithSecrets(t *testing.T) { name: "integration not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "integration not found, using not authorized user", queryID: integration.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -377,14 +370,14 @@ func TestQueryIntegrationWithSecrets(t *testing.T) { }) } - (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, ID: integration.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.HushDeleteOne]{client: suite.client.db.Hush, IDs: []string{accessToken.ID, refreshToken.ID, expiresAt.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, ID: integration.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.HushDeleteOne]{client: suite.client.db.Hush, IDs: []string{accessToken.ID, refreshToken.ID, expiresAt.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestListIntegrations(t *testing.T) { // create integrations with different kinds (unique constraint on owner_id + kind) - integration1 := (&IntegrationBuilder{client: suite.client, Kind: "github"}).MustNew(testUser1.UserCtx, t) - integration2 := (&IntegrationBuilder{client: suite.client, Kind: "slack"}).MustNew(testUser1.UserCtx, t) + integration1 := (&IntegrationBuilder{client: suite.client, Kind: "github"}).MustNew(sharedTestUser1.UserCtx, t) + integration2 := (&IntegrationBuilder{client: suite.client, Kind: "slack"}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Integration testCases := []struct { @@ -396,13 +389,13 @@ func TestListIntegrations(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -420,7 +413,7 @@ func TestListIntegrations(t *testing.T) { { name: "another user, no integrations should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -435,5 +428,5 @@ func TestListIntegrations(t *testing.T) { }) } - (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, IDs: []string{integration1.ID, integration2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.IntegrationDeleteOne]{client: suite.client.db.Integration, IDs: []string{integration1.ID, integration2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/internalpolicy_statusapproval_test.go b/internal/graphapi/internalpolicy_statusapproval_test.go index acc37ed4fb..fb3f3fda9f 100644 --- a/internal/graphapi/internalpolicy_statusapproval_test.go +++ b/internal/graphapi/internalpolicy_statusapproval_test.go @@ -16,13 +16,13 @@ import ( func TestCreateInternalPolicyStatusApproval(t *testing.T) { // Create approver and delegate groups - approverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + approverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Add testUser1 to both approver and delegate groups (to test both paths) - (&GroupMemberBuilder{client: suite.client, UserID: testUser1.ID, GroupID: approverGroup.ID}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: testUser1.ID, GroupID: delegateGroup.ID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: approverGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: delegateGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -38,7 +38,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "happy path: create with APPROVED status and user in approver group", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, approverID: &approverGroup.ID, status: enums.DocumentApproved, requireApproval: true, @@ -47,7 +47,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "happy path: create with APPROVED status and user in delegate group", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, delegateID: &delegateGroup.ID, status: enums.DocumentApproved, requireApproval: true, @@ -56,7 +56,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "fail: create with APPROVED status but user not in approver group", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, approverID: &emptyGroup.ID, // testUser1 is NOT in emptyGroup status: enums.DocumentApproved, requireApproval: true, @@ -66,7 +66,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "happy path: create with APPROVED status but user not in approver group but approval not required", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, approverID: &emptyGroup.ID, // testUser1 is NOT in emptyGroup status: enums.DocumentApproved, requireApproval: false, @@ -75,7 +75,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "fail: create with APPROVED status but no approver group set", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, status: enums.DocumentApproved, requireApproval: true, expectError: true, @@ -84,7 +84,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "happy path: create with DRAFT status and no approver group", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, status: enums.DocumentDraft, requireApproval: true, expectError: false, @@ -92,7 +92,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { { name: "happy path: create with PUBLISHED status and no approver group", client: suite.client.api, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, status: enums.DocumentPublished, requireApproval: true, expectError: false, @@ -127,33 +127,33 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { assert.Check(t, *resp.CreateInternalPolicy.InternalPolicy.Status == tc.status) // Cleanup - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: resp.CreateInternalPolicy.InternalPolicy.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: resp.CreateInternalPolicy.InternalPolicy.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } // Cleanup - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{approverGroup.ID, delegateGroup.ID, emptyGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{approverGroup.ID, delegateGroup.ID, emptyGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestUpdateInternalPolicyStatusApproval(t *testing.T) { // Create approver and delegate groups - approverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + approverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Add testUser1 to both approver and delegate groups - (&GroupMemberBuilder{client: suite.client, UserID: testUser1.ID, GroupID: approverGroup.ID}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: testUser1.ID, GroupID: delegateGroup.ID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: approverGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: delegateGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) // Create policies with DRAFT status - use MustNew which bypasses hooks - policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy3 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy4 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy5 := (&InternalPolicyBuilder{client: suite.client, SkipApprovalRequirement: true}).MustNew(testUser1.UserCtx, t) + policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy3 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy4 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy5 := (&InternalPolicyBuilder{client: suite.client, SkipApprovalRequirement: true}).MustNew(sharedTestUser1.UserCtx, t) // Set approver/delegate groups using direct database access (bypasses authorization but keeps user context) - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(sharedTestUser1.UserCtx, privacy.Allow) suite.client.db.InternalPolicy.UpdateOneID(policy1.ID).SetApproverID(approverGroup.ID).SetStatus(enums.DocumentDraft).SaveX(allowCtx) suite.client.db.InternalPolicy.UpdateOneID(policy2.ID).SetDelegateID(delegateGroup.ID).SetStatus(enums.DocumentDraft).SaveX(allowCtx) suite.client.db.InternalPolicy.UpdateOneID(policy3.ID).SetStatus(enums.DocumentDraft).SaveX(allowCtx) // no approver group @@ -173,7 +173,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "happy path: update to APPROVED status with user in approver group", client: suite.client.api, policyID: policy1.ID, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: false, }, @@ -181,7 +181,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "happy path: update to APPROVED status with user in delegate group", client: suite.client.api, policyID: policy2.ID, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: false, }, @@ -189,7 +189,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "fail: update to APPROVED status but user not in approver group", client: suite.client.api, policyID: policy4.ID, // policy4 has emptyGroup, testUser1 is not a member - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: true, errorContains: "you must be in the approver group to mark as approved", @@ -198,7 +198,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "fail: update to APPROVED status but no approver group set", client: suite.client.api, policyID: policy3.ID, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: true, errorContains: "you must be in the approver group to mark as approved", @@ -207,7 +207,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "happy path: update other status without check", client: suite.client.api, policyID: policy3.ID, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentPublished), expectError: false, }, @@ -215,7 +215,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { name: "happy path: update to APPROVED status but approval not required", client: suite.client.api, policyID: policy5.ID, - userContext: testUser1.UserCtx, + userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: false, }, @@ -245,6 +245,6 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { } // Cleanup - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{policy1.ID, policy2.ID, policy3.ID, policy4.ID, policy5.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{approverGroup.ID, delegateGroup.ID, emptyGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{policy1.ID, policy2.ID, policy3.ID, policy4.ID, policy5.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{approverGroup.ID, delegateGroup.ID, emptyGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/internalpolicy_test.go b/internal/graphapi/internalpolicy_test.go index 568f36d6ef..b1151a33e8 100644 --- a/internal/graphapi/internalpolicy_test.go +++ b/internal/graphapi/internalpolicy_test.go @@ -18,14 +18,14 @@ import ( func TestQueryInternalPolicy(t *testing.T) { // create an InternalPolicy to be queried using testUser1 - internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // setup a blocked group with a view only user - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, GroupID: blockedGroup.ID}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, GroupID: blockedGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) - internalPolicy2 := (&InternalPolicyBuilder{client: suite.client, BlockedGroupIDs: []string{blockedGroup.ID}}).MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + internalPolicy2 := (&InternalPolicyBuilder{client: suite.client, BlockedGroupIDs: []string{blockedGroup.ID}}).MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) // add test cases for querying the internal policy testCases := []struct { @@ -40,19 +40,19 @@ func TestQueryInternalPolicy(t *testing.T) { name: "happy path", queryID: internalPolicy.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: internalPolicy.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, read only user but blocked", queryID: internalPolicy2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notFoundErrorMsg, // should not be able to access the policy due to blocked group updateBlockedGroup: true, }, @@ -60,7 +60,7 @@ func TestQueryInternalPolicy(t *testing.T) { name: "happy path, read only user no longer blocked", queryID: internalPolicy2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -72,14 +72,14 @@ func TestQueryInternalPolicy(t *testing.T) { name: "internalPolicy not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "internal policy not found, using not authorized user", queryID: internalPolicy.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -99,7 +99,7 @@ func TestQueryInternalPolicy(t *testing.T) { assert.ErrorContains(t, err, tc.errorMsg) if tc.updateBlockedGroup { - _, err := suite.client.api.UpdateInternalPolicy(testUser1.UserCtx, internalPolicy2.ID, + _, err := suite.client.api.UpdateInternalPolicy(sharedTestUser1.UserCtx, internalPolicy2.ID, testclient.UpdateInternalPolicyInput{ RemoveBlockedGroupIDs: []string{blockedGroup.ID}, }) @@ -118,19 +118,19 @@ func TestQueryInternalPolicy(t *testing.T) { } // cleanup - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{internalPolicy.ID, internalPolicy2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{internalPolicy.ID, internalPolicy2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryInternalPolicies(t *testing.T) { // create multiple policies to be queried using testUser1 - ip1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ip2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ip1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ip2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // setup a blocked group with a view only user - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, GroupID: blockedGroup.ID}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, GroupID: blockedGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) - ip3 := (&InternalPolicyBuilder{client: suite.client, BlockedGroupIDs: []string{blockedGroup.ID}}).MustNew(testUser1.UserCtx, t) + ip3 := (&InternalPolicyBuilder{client: suite.client, BlockedGroupIDs: []string{blockedGroup.ID}}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -142,20 +142,20 @@ func TestQueryInternalPolicies(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 3, }, { name: "happy path, using read only user of the same org, one policy blocked", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, // should not see the policy that is blocked for them updateBlockedGroup: true, // update the blocked group to allow the view only user to see the policy }, { name: "happy path, using read only user of the same org, no blocked group", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 3, // should now see all policies after removing the blocked group }, { @@ -173,7 +173,7 @@ func TestQueryInternalPolicies(t *testing.T) { { name: "another user, no policies should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -188,7 +188,7 @@ func TestQueryInternalPolicies(t *testing.T) { if tc.updateBlockedGroup { // do it the opposite, remove the policy from the group - _, err := suite.client.api.UpdateGroup(testUser1.UserCtx, blockedGroup.ID, + _, err := suite.client.api.UpdateGroup(sharedTestUser1.UserCtx, blockedGroup.ID, testclient.UpdateGroupInput{ RemoveInternalPolicyBlockedGroupIDs: []string{ip3.ID}, }, @@ -200,28 +200,28 @@ func TestQueryInternalPolicies(t *testing.T) { } // delete created policies - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{ip1.ID, ip2.ID, ip3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{ip1.ID, ip2.ID, ip3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateInternalPolicy(t *testing.T) { // create a system owned standard with a control - systemStandard := (&StandardBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + systemStandard := (&StandardBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) // create a control and add it to the system standard - systemControl := (&ControlBuilder{client: suite.client, StandardID: systemStandard.ID}).MustNew(systemAdminUser.UserCtx, t) + systemControl := (&ControlBuilder{client: suite.client, StandardID: systemStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) - anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // group for the view only user - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // approver and delegator groups for the test user - approverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + approverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // edges to add - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -238,7 +238,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { Name: "Test InternalPolicy", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input except edges", @@ -251,7 +251,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { DelegateID: &delegateGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, long details", @@ -264,7 +264,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { DelegateID: &delegateGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, with control edges", @@ -278,7 +278,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { TaskIDs: []string{task.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, controlEdgeShouldBeCreated: true, }, { @@ -289,7 +289,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { ControlIDs: []string{systemControl.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, controlEdgeShouldBeCreated: false, // user does not have edit access to the control, it is owned by the system }, @@ -297,10 +297,10 @@ func TestMutationCreateInternalPolicy(t *testing.T) { name: "happy path, add editor group", request: testclient.CreateInternalPolicyInput{ Name: "Test Policy", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add same task to another policy", @@ -309,7 +309,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { TaskIDs: []string{task.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add same control to another policy", @@ -318,7 +318,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { ControlIDs: []string{control.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, controlEdgeShouldBeCreated: true, }, { @@ -328,23 +328,23 @@ func TestMutationCreateInternalPolicy(t *testing.T) { SubcontrolIDs: []string{subcontrol.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add editor group, again - ensures the same group can be added to multiple policies", request: testclient.CreateInternalPolicyInput{ Name: "Test Policy", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{anotherGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateInternalPolicyInput{ Name: "Test Internal Policy", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -363,7 +363,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { Name: "Test InternalPolicy", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -373,7 +373,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { }, addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "missing required field", @@ -381,7 +381,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { Details: lo.ToPtr("instructions on how to release a new version"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -389,7 +389,7 @@ func TestMutationCreateInternalPolicy(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddInternalPolicyCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -460,18 +460,18 @@ func TestMutationCreateInternalPolicy(t *testing.T) { } // cleanup - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{resp.CreateInternalPolicy.InternalPolicy.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{resp.CreateInternalPolicy.InternalPolicy.ID}}).MustDelete(sharedTestUser1.UserCtx, t) }) } // cleanup - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, subcontrol.ControlID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{anotherGroup.ID, groupMember.GroupID, approverGroup.ID, delegateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, subcontrol.ControlID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{anotherGroup.ID, groupMember.GroupID, approverGroup.ID, delegateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup the system standard and control - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{systemStandard.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{systemStandard.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationUpdateInternalPolicy(t *testing.T) { @@ -484,31 +484,31 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { } } - internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - internalPolicyAdminUser := (&InternalPolicyBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + internalPolicyAdminUser := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) // create a viewer user and add them to the same organization as testUser1 // also add them to the same group as testUser1, this should still allow them to edit the policy // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // group admins should also have edit permissions when added to the group anotherViewerGroupAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerGroupAdminUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerGroupAdminUser, enums.RoleMember, sharedTestUser1.OrganizationID) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerGroupAdminUser.ID, GroupID: testUser1.GroupID, Role: enums.RoleAdmin.String()}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerGroupAdminUser.ID, GroupID: sharedTestUser1.GroupID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) // create one more group that will be used to test the blocked group permissions and add anotherViewerUser to it - blockGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(testUser1.UserCtx, t) + blockGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) // edges to add - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -526,7 +526,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { Details: lo.ToPtr(gofakeit.Sentence()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRevision: "v0.1.0", // details updated, should be a minor update }, { @@ -536,18 +536,18 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { Details: lo.ToPtr(gofakeit.Sentence()), }, client: suite.client.api, - ctx: testUser1.UserCtx, // org owner should always be able to update the policy - expectedRevision: "v0.1.0", // details updated, should be a minor update (different policy than test 1) + ctx: sharedTestUser1.UserCtx, // org owner should always be able to update the policy + expectedRevision: "v0.1.0", // details updated, should be a minor update (different policy than test 1) }, { name: "happy path, update name field", policyID: internalPolicy.ID, request: testclient.UpdateInternalPolicyInput{ Name: lo.ToPtr("Updated InternalPolicy Name"), - AddEditorIDs: []string{testUser1.GroupID}, // add the group to the editor groups for subsequent tests + AddEditorIDs: []string{sharedTestUser1.GroupID}, // add the group to the editor groups for subsequent tests }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRevision: "v0.1.1", // no details updated, should be a patch update }, { @@ -574,7 +574,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { }, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedRevision: "v1.0.1", // only comment added, should be a patch update }, { @@ -587,7 +587,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { DetailsJSON: makeSlate(map[string]any{"text": "hello"}), // should not be allowed to update the details, only add a comment }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -597,7 +597,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { Name: lo.ToPtr("Updated InternalPolicy Name"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -607,7 +607,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { Name: lo.ToPtr("Updated Procedure Name Again"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedRevision: "v1.0.2", // no details updated, should be a patch update }, { @@ -637,7 +637,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { AddBlockedGroupIDs: []string{blockGroup.ID}, // block the group }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRevision: "v1.0.5", // no details updated, should be a patch update }, { @@ -654,10 +654,10 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { name: "happy path, remove the group", policyID: internalPolicy.ID, request: testclient.UpdateInternalPolicyInput{ - RemoveEditorIDs: []string{testUser1.GroupID}, // remove the group from the editor groups + RemoveEditorIDs: []string{sharedTestUser1.GroupID}, // remove the group from the editor groups }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRevision: "v1.0.6", // no details updated, should be a patch update }, { @@ -677,7 +677,7 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { Details: lo.ToPtr("Updated details"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -720,17 +720,17 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { } // cleanup - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{internalPolicy.ID, internalPolicyAdminUser.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, subcontrol.ControlID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{internalPolicy.ID, internalPolicyAdminUser.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID, subcontrol.ControlID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrol.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteInternalPolicy(t *testing.T) { // create internal policies to be deleted - internalPolicy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - internalPolicy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + internalPolicy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + internalPolicy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -743,20 +743,20 @@ func TestMutationDeleteInternalPolicy(t *testing.T) { name: "not authorized, delete", idToDelete: internalPolicy1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: internalPolicy1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: internalPolicy1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -769,7 +769,7 @@ func TestMutationDeleteInternalPolicy(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -792,25 +792,25 @@ func TestMutationDeleteInternalPolicy(t *testing.T) { func TestMutationUpdateBulkInternalPolicy(t *testing.T) { // create internal policies to be updated - policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy3 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy3 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create another user and add them to the same organization and group as testUser1 // this will allow us to test the group editor permissions anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - policyAnotherUser := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + policyAnotherUser := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // ensure the user does not currently have access to update the policy - res, err := suite.client.api.UpdateBulkInternalPolicy(testUser2.UserCtx, []string{policy1.ID}, testclient.UpdateInternalPolicyInput{ + res, err := suite.client.api.UpdateBulkInternalPolicy(sharedTestUser2.UserCtx, []string{policy1.ID}, testclient.UpdateInternalPolicyInput{ Status: lo.ToPtr(enums.DocumentPublished), }) @@ -834,7 +834,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { Status: &enums.DocumentPublished, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, { @@ -845,7 +845,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { RevisionBump: &models.Major, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, { @@ -853,7 +853,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { ids: []string{}, input: testclient.UpdateInternalPolicyInput{Details: lo.ToPtr("test")}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "ids is required", }, { @@ -863,7 +863,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { Status: &enums.DocumentDraft, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 1, // only policy1 should be updated }, { @@ -873,7 +873,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { Status: &enums.DocumentPublished, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any policies to update }, { @@ -886,7 +886,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { AddTaskIDs: []string{task.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, } @@ -939,7 +939,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { } // ensure the org owner has access to the policy that was updated - checkResp, err := suite.client.api.GetInternalPolicyByID(testUser1.UserCtx, policy.ID) + checkResp, err := suite.client.api.GetInternalPolicyByID(sharedTestUser1.UserCtx, policy.ID) assert.NilError(t, err) assert.Check(t, is.Equal(policy.ID, checkResp.InternalPolicy.ID)) } @@ -958,10 +958,10 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { }) } - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{policy1.ID, policy2.ID, policy3.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policyAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: []string{policy1.ID, policy2.ID, policy3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policyAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/invite_test.go b/internal/graphapi/invite_test.go index a7f47f17c7..94f34a37bc 100644 --- a/internal/graphapi/invite_test.go +++ b/internal/graphapi/invite_test.go @@ -16,8 +16,8 @@ import ( ) func TestQueryInvite(t *testing.T) { - invite := (&InviteBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - invite2 := (&InviteBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + invite := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + invite2 := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -30,7 +30,7 @@ func TestQueryInvite(t *testing.T) { name: "happy path", queryID: invite.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with api token", @@ -50,14 +50,14 @@ func TestQueryInvite(t *testing.T) { name: "invalid id", queryID: "allthefooandbar", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, { name: "no access", queryID: invite.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, wantErr: true, }, } @@ -79,27 +79,31 @@ func TestQueryInvite(t *testing.T) { } // delete created invite - (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, ID: invite.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, ID: invite2.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, ID: invite.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, ID: invite2.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationCreateInvite(t *testing.T) { // existing user to invite to org - existingUser := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + existingUser := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // existing user already a member of org - existingUser2 := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - om := (&OrgMemberBuilder{client: suite.client, UserID: existingUser2.ID}).MustNew(testUser1.UserCtx, t) + existingUser2 := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&OrgMemberBuilder{client: suite.client, UserID: existingUser2.ID}).MustNew(sharedTestUser1.UserCtx, t) - orgWithRestrictions := (&OrganizationBuilder{client: suite.client, AllowedDomains: []string{"meow.net"}}).MustNew(testUserCreator.UserCtx, t) + // create another organization + localTestOrg := suite.userBuilder(context.Background(), t) - orgWithRestrictionsCtx := auth.NewTestContextWithOrgID(testUserCreator.ID, orgWithRestrictions.ID) + // setup one more with restrictions on allowed domains + orgWithRestrictions := (&OrganizationBuilder{client: suite.client, AllowedDomains: []string{"meow.net"}}).MustNew(localTestOrg.UserCtx, t) - user1Context := auth.NewTestContextWithOrgID(testUserCreator.ID, testUserCreator.OrganizationID) + orgWithRestrictionsCtx := auth.NewTestContextWithOrgID(localTestOrg.ID, orgWithRestrictions.ID) + + user1Context := localTestOrg.UserCtx // create a group to add to the invite meows := (&GroupBuilder{client: suite.client, Name: "meows"}).MustNew(user1Context, t) - anotherMeows := (&GroupBuilder{client: suite.client, Name: "another-meows"}).MustNew(testUser1.UserCtx, t) + anotherMeows := (&GroupBuilder{client: suite.client, Name: "another-meows"}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -117,36 +121,36 @@ func TestMutationCreateInvite(t *testing.T) { { name: "happy path, new user as member with a group set", recipient: "meow@theopenlane.io", - orgID: testUserCreator.OrganizationID, + orgID: localTestOrg.OrganizationID, groupID: &meows.ID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "happy path, another new user as member with a group set", recipient: "meowmeow@theopenlane.io", - orgID: testUserCreator.OrganizationID, + orgID: localTestOrg.OrganizationID, groupID: &meows.ID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "new user as member, with invalid group", recipient: "meow-another@theopenlane.io", - orgID: testUserCreator.OrganizationID, + orgID: localTestOrg.OrganizationID, groupID: &anotherMeows.ID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedErr: notAuthorizedErrorMsg, }, { @@ -156,7 +160,7 @@ func TestMutationCreateInvite(t *testing.T) { role: enums.RoleMember, client: suite.client.api, ctx: orgWithRestrictionsCtx, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, @@ -167,67 +171,67 @@ func TestMutationCreateInvite(t *testing.T) { role: enums.RoleMember, client: suite.client.api, ctx: orgWithRestrictionsCtx, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedErr: "email domain not allowed", }, { name: "invite new user as member using api token", recipient: "meow@theopenlane.io", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, - requestorID: testUser1.ID, + ctx: sharedTestUser1.UserCtx, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "re-invite new user as member using api token", recipient: "meow@theopenlane.io", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleMember, client: suite.client.apiWithToken, ctx: context.Background(), - requestorID: testUser1.ID, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 2, }, { name: "happy path, new user as admin using pat", recipient: "woof@theopenlane.io", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleAdmin, client: suite.client.apiWithPAT, ctx: context.Background(), - requestorID: testUser1.ID, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "happy path, new user as member, by member", recipient: "meow-meow@theopenlane.io", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleMember, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, - requestorID: viewOnlyUser.ID, + ctx: sharedViewOnlyUser.UserCtx, + requestorID: sharedViewOnlyUser.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "new user as admin, by member, not allowed", recipient: "meow-meow@theopenlane.io", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleAdmin, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, - requestorID: viewOnlyUser.ID, + ctx: sharedViewOnlyUser.UserCtx, + requestorID: sharedViewOnlyUser.ID, expectedErr: notAuthorizedErrorMsg, }, { name: "new user with invalid email", recipient: "woof", - orgID: testUser1.OrganizationID, + orgID: sharedTestUser1.OrganizationID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, @@ -236,22 +240,22 @@ func TestMutationCreateInvite(t *testing.T) { { name: "happy path, existing user as member", recipient: existingUser.Email, - orgID: testUserCreator.OrganizationID, + orgID: localTestOrg.OrganizationID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, { name: "user already a member, will still send an invite", recipient: existingUser2.Email, - orgID: testUserCreator.OrganizationID, + orgID: localTestOrg.OrganizationID, role: enums.RoleMember, client: suite.client.api, ctx: user1Context, - requestorID: testUserCreator.ID, + requestorID: localTestOrg.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, }, @@ -301,12 +305,8 @@ func TestMutationCreateInvite(t *testing.T) { } // delete organization created - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, ID: orgWithRestrictions.ID}).MustDelete(orgWithRestrictionsCtx, t) - // delete org member created - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: om.ID}).MustDelete(testUser1.UserCtx, t) - // delete group created - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: meows.ID}).MustDelete(user1Context, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: anotherMeows.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.UserCtx, t) + cleanupOrganizationDataWithContext(orgWithRestrictionsCtx, t) } func TestMutationCreateBulkInvite(t *testing.T) { @@ -325,8 +325,8 @@ func TestMutationCreateBulkInvite(t *testing.T) { name: "happy path, new user with defaults", recipients: []string{"meow-meow-meow@theopenlane.io", "kitty@theopenlane.io"}, client: suite.client.api, - ctx: testUser1.UserCtx, - requestorID: testUser1.ID, + ctx: sharedTestUser1.UserCtx, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 1, wantErr: false, @@ -335,8 +335,8 @@ func TestMutationCreateBulkInvite(t *testing.T) { name: "happy path, resend with defaults", recipients: []string{"meow-meow-meow@theopenlane.io", "kitty@theopenlane.io"}, client: suite.client.api, - ctx: testUser1.UserCtx, - requestorID: testUser1.ID, + ctx: sharedTestUser1.UserCtx, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 2, wantErr: false, @@ -345,8 +345,8 @@ func TestMutationCreateBulkInvite(t *testing.T) { name: "happy path, resend again with defaults", recipients: []string{"meow-meow-meow@theopenlane.io", "kitty@theopenlane.io"}, client: suite.client.api, - ctx: testUser1.UserCtx, - requestorID: testUser1.ID, + ctx: sharedTestUser1.UserCtx, + requestorID: sharedTestUser1.ID, expectedStatus: enums.InvitationSent, expectedAttempts: 3, wantErr: false, @@ -376,7 +376,7 @@ func TestMutationCreateBulkInvite(t *testing.T) { for _, invite := range resp.CreateBulkInvite.Invites { assert.Check(t, is.Equal(enums.RoleMember, invite.Role)) - assert.Check(t, is.Equal(testUser1.ID, *invite.RequestorID)) + assert.Check(t, is.Equal(sharedTestUser1.ID, *invite.RequestorID)) assert.Check(t, is.Equal(tc.expectedStatus, invite.Status)) assert.Check(t, is.Equal(tc.expectedAttempts, invite.SendAttempts)) } @@ -389,15 +389,15 @@ func TestMutationCreateBulkInvite(t *testing.T) { }) } - (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, IDs: invites}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InviteDeleteOne]{client: suite.client.db.Invite, IDs: invites}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteInvite(t *testing.T) { - invite1 := (&InviteBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - invite2 := (&InviteBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - invite3 := (&InviteBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - invite4 := (&InviteBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - invite5 := (&InviteBuilder{client: suite.client, Role: fgax.AdminRelation}).MustNew(testUser1.UserCtx, t) + invite1 := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + invite2 := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + invite3 := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + invite4 := (&InviteBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + invite5 := (&InviteBuilder{client: suite.client, Role: fgax.AdminRelation}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -410,7 +410,7 @@ func TestMutationDeleteInvite(t *testing.T) { name: "happy path", queryID: invite1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using api token", @@ -428,26 +428,26 @@ func TestMutationDeleteInvite(t *testing.T) { name: "happy path, org member deleting member invite", queryID: invite4.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "org member deleting admin invite", queryID: invite5.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "org owner deleting admin invite", queryID: invite5.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid id", queryID: "allthefooandbar", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/jobrunner_registration_token_test.go b/internal/graphapi/jobrunner_registration_token_test.go index 18e7395855..2d45914bbf 100644 --- a/internal/graphapi/jobrunner_registration_token_test.go +++ b/internal/graphapi/jobrunner_registration_token_test.go @@ -12,13 +12,13 @@ import ( func TestQueryJobRunnerRegistrationTokens(t *testing.T) { // auto cleaned up when the second job is created - _ = (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - secondJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + _ = (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + secondJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // auto cleaned up by hook when the last job is created // the last job itself is deleted since we are attaching it to a runner - _ = (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - lastJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client, WithRunner: true}).MustNew(testUser2.UserCtx, t) + _ = (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) + lastJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client, WithRunner: true}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -31,7 +31,7 @@ func TestQueryJobRunnerRegistrationTokens(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 1, }, { @@ -43,7 +43,7 @@ func TestQueryJobRunnerRegistrationTokens(t *testing.T) { { name: "valid test user 2", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedCount: 0, // 0 since the fourthJob sets a runner so it should be deleted too in the hook }, { @@ -71,15 +71,15 @@ func TestQueryJobRunnerRegistrationTokens(t *testing.T) { }) } - (&Cleanup[*generated.JobRunnerRegistrationTokenDeleteOne]{client: suite.client.db.JobRunnerRegistrationToken, ID: secondJob.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: lastJob.JobRunnerID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.JobRunnerRegistrationTokenDeleteOne]{client: suite.client.db.JobRunnerRegistrationToken, ID: secondJob.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: lastJob.JobRunnerID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationDeleteJobRunnerRegistrationToken(t *testing.T) { - firstJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - secondJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - thirdJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + firstJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + secondJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + thirdJob := (&JobRunnerRegistrationTokenBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -93,7 +93,7 @@ func TestMutationDeleteJobRunnerRegistrationToken(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, runnerID: firstJob.ID, // expected, we create the first job then second one. // Our hook clears all existing registration tokens on new one @@ -108,7 +108,7 @@ func TestMutationDeleteJobRunnerRegistrationToken(t *testing.T) { { name: "happy path but cannot delete token no access to", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, runnerID: thirdJob.ID, errorMsg: notFoundErrorMsg, expectedCount: 1, @@ -134,5 +134,5 @@ func TestMutationDeleteJobRunnerRegistrationToken(t *testing.T) { }) } - (&Cleanup[*generated.JobRunnerRegistrationTokenDeleteOne]{client: suite.client.db.JobRunnerRegistrationToken, ID: thirdJob.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.JobRunnerRegistrationTokenDeleteOne]{client: suite.client.db.JobRunnerRegistrationToken, ID: thirdJob.ID}).MustDelete(sharedTestUser2.UserCtx, t) } diff --git a/internal/graphapi/jobrunner_test.go b/internal/graphapi/jobrunner_test.go index af3a4a6a05..d4ec9a6d1e 100644 --- a/internal/graphapi/jobrunner_test.go +++ b/internal/graphapi/jobrunner_test.go @@ -11,10 +11,10 @@ import ( ) func TestQueryJobRunners(t *testing.T) { - systemJob := (&JobRunnerBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - firstJob := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - secondJob := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - thirdJob := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + systemJob := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + firstJob := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + secondJob := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + thirdJob := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -27,7 +27,7 @@ func TestQueryJobRunners(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 2, }, { @@ -39,7 +39,7 @@ func TestQueryJobRunners(t *testing.T) { { name: "valid test user 2", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedCount: 1, }, { @@ -67,19 +67,18 @@ func TestQueryJobRunners(t *testing.T) { }) } - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: systemJob.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: thirdJob.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, IDs: []string{firstJob.ID, secondJob.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: systemJob.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: thirdJob.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, IDs: []string{firstJob.ID, secondJob.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteJobRunner(t *testing.T) { - newUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(newUser, t) - apiTokenClient := suite.setupAPITokenClient(newUser.UserCtx, t) + t.Parallel() + localTestUser := suite.seedOrgOwner(t) - systemJob := (&JobRunnerBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - firstJob := (&JobRunnerBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - secondJob := (&JobRunnerBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) + systemJob := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + firstJob := (&JobRunnerBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) + secondJob := (&JobRunnerBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) testCases := []struct { name string @@ -92,27 +91,27 @@ func TestMutationDeleteJobRunner(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: newUser.UserCtx, + ctx: localTestUser.owner.UserCtx, runnerID: firstJob.ID, }, { // the first test case should have deleted the runner name: "job runner already deleted", - client: patClient, + client: localTestUser.patClient, ctx: context.Background(), runnerID: firstJob.ID, errorMsg: notFoundErrorMsg, }, { name: "happy path user with pat", - client: patClient, + client: localTestUser.patClient, ctx: context.Background(), runnerID: secondJob.ID, }, { name: "happy path but cannot delete system runner", - client: apiTokenClient, - ctx: newUser.UserCtx, + client: localTestUser.apiClient, + ctx: context.Background(), runnerID: systemJob.ID, errorMsg: notAuthorizedErrorMsg, }, @@ -133,5 +132,5 @@ func TestMutationDeleteJobRunner(t *testing.T) { }) } - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: systemJob.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) } diff --git a/internal/graphapi/jobrunnertoken_test.go b/internal/graphapi/jobrunnertoken_test.go index 7b283efeea..dbb7b8711a 100644 --- a/internal/graphapi/jobrunnertoken_test.go +++ b/internal/graphapi/jobrunnertoken_test.go @@ -76,8 +76,8 @@ func TestQueryJobRunnerTokens(t *testing.T) { } func TestMutationDeleteJobRunnerToken(t *testing.T) { - firstToken := (&JobRunnerTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - secondToken := (&JobRunnerTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + firstToken := (&JobRunnerTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + secondToken := (&JobRunnerTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -90,14 +90,14 @@ func TestMutationDeleteJobRunnerToken(t *testing.T) { { name: "not enough permissions", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, tokenID: firstToken.ID, errorMsg: notAuthorizedErrorMsg, }, { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, tokenID: firstToken.ID, }, { @@ -111,7 +111,7 @@ func TestMutationDeleteJobRunnerToken(t *testing.T) { { name: "not found, not in the correct org", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, tokenID: secondToken.ID, errorMsg: notFoundErrorMsg, }, diff --git a/internal/graphapi/jobtemplate_test.go b/internal/graphapi/jobtemplate_test.go index 20e6997e6d..06f1fb55cd 100644 --- a/internal/graphapi/jobtemplate_test.go +++ b/internal/graphapi/jobtemplate_test.go @@ -16,7 +16,7 @@ import ( func TestQueryJobTemplate(t *testing.T) { // create an jobTemplate to be queried using testUser1 - jobTemplate := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + jobTemplate := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the JobTemplate testCases := []struct { @@ -30,13 +30,13 @@ func TestQueryJobTemplate(t *testing.T) { name: "happy path", queryID: jobTemplate.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: jobTemplate.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -48,14 +48,14 @@ func TestQueryJobTemplate(t *testing.T) { name: "JobTemplate not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "JobTemplate not found, using not authorized user", queryID: jobTemplate.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -77,14 +77,14 @@ func TestQueryJobTemplate(t *testing.T) { }) } - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryJobTemplates(t *testing.T) { // create multiple JobTemplates to be queried using testUser1 - jobTemplate1 := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - jobTemplate2 := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - jobTemplateSystem := (&JobTemplateBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + jobTemplate1 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + jobTemplate2 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + jobTemplateSystem := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -95,13 +95,13 @@ func TestQueryJobTemplates(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 3, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 3, }, { @@ -119,7 +119,7 @@ func TestQueryJobTemplates(t *testing.T) { { name: "another user, only system owned JobTemplates should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 1, }, } @@ -134,8 +134,8 @@ func TestQueryJobTemplates(t *testing.T) { }) } - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, IDs: []string{jobTemplate1.ID, jobTemplate2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplateSystem.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, IDs: []string{jobTemplate1.ID, jobTemplate2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplateSystem.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateJobTemplate(t *testing.T) { @@ -154,7 +154,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { DownloadURL: testScriptURL, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -166,7 +166,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { DownloadURL: testScriptURL, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -174,7 +174,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { Title: "Test Job Template", Platform: enums.JobPlatformTypeGo, DownloadURL: testScriptURL, - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -197,7 +197,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { DownloadURL: testScriptURL, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -207,7 +207,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { DownloadURL: testScriptURL, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -217,7 +217,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { DownloadURL: testScriptURL, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not a valid JobTemplateJobPlatformType", }, { @@ -227,7 +227,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { Platform: enums.JobPlatformTypeGo, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid cron", @@ -238,7 +238,7 @@ func TestMutationCreateJobTemplate(t *testing.T) { Cron: lo.ToPtr("0 0 * * * a"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid cron syntax", }, } @@ -270,13 +270,13 @@ func TestMutationCreateJobTemplate(t *testing.T) { } // cleanup each JobTemplate created - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: resp.CreateJobTemplate.JobTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: resp.CreateJobTemplate.JobTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateJobTemplate(t *testing.T) { - jobTemplate := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + jobTemplate := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -291,7 +291,7 @@ func TestMutationUpdateJobTemplate(t *testing.T) { Description: lo.ToPtr("Test Description Updated"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -308,7 +308,7 @@ func TestMutationUpdateJobTemplate(t *testing.T) { Description: lo.ToPtr("Test Description Updated not allowed"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -317,7 +317,7 @@ func TestMutationUpdateJobTemplate(t *testing.T) { Description: lo.ToPtr("Test Description Updated not allowed"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -348,16 +348,16 @@ func TestMutationUpdateJobTemplate(t *testing.T) { }) } - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplate.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobTemplate.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteJobTemplate(t *testing.T) { // create JobTemplates to be deleted - jobTemplate1 := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - jobTemplate2 := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - jobTemplate3 := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + jobTemplate1 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + jobTemplate2 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + jobTemplate3 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - jobTemplateSystem := (&JobTemplateBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + jobTemplateSystem := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -370,40 +370,40 @@ func TestMutationDeleteJobTemplate(t *testing.T) { name: "not found, delete", idToDelete: jobTemplate1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: jobTemplate1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized, delete system owned JobTemplate", idToDelete: jobTemplateSystem.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: jobTemplate1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, delete system owned JobTemplate", idToDelete: jobTemplateSystem.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: jobTemplate1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -422,7 +422,7 @@ func TestMutationDeleteJobTemplate(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/mappabledomain_test.go b/internal/graphapi/mappabledomain_test.go index ab7fb19449..ca9587fae6 100644 --- a/internal/graphapi/mappabledomain_test.go +++ b/internal/graphapi/mappabledomain_test.go @@ -11,7 +11,7 @@ import ( ) func TestQueryMappableDomainByID(t *testing.T) { - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -26,13 +26,13 @@ func TestQueryMappableDomainByID(t *testing.T) { expectedName: mappableDomain.Name, queryID: mappableDomain.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "done", queryID: "iddne", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -54,12 +54,13 @@ func TestQueryMappableDomainByID(t *testing.T) { }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestQueryMappableDomains(t *testing.T) { - mappableDomain1 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + localTestUser := suite.seedOrgOwner(t) + mappableDomain1 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) bologneName := "bologne.io" testCases := []struct { @@ -69,25 +70,28 @@ func TestQueryMappableDomains(t *testing.T) { expectedResults int where *testclient.MappableDomainWhereInput }{ - { - name: "return all", - client: suite.client.api, - ctx: testUser2.UserCtx, - expectedResults: 2, - }, { name: "query by name", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser.owner.UserCtx, where: &testclient.MappableDomainWhereInput{ Name: &mappableDomain1.Name, }, expectedResults: 1, }, + { + name: "query by name, other", + client: suite.client.api, + ctx: localTestUser.owner.UserCtx, + where: &testclient.MappableDomainWhereInput{ + Name: &mappableDomain2.Name, + }, + expectedResults: 1, + }, { name: "query by name, does not exist", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser.owner.UserCtx, where: &testclient.MappableDomainWhereInput{ Name: &bologneName, }, @@ -106,8 +110,9 @@ func TestQueryMappableDomains(t *testing.T) { }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain1.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain2.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain1.ID, mappableDomain2.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) } func TestMutationCreateMappableDomain(t *testing.T) { @@ -125,7 +130,7 @@ func TestMutationCreateMappableDomain(t *testing.T) { ZoneID: "trust-zone-id", }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "invalid domain", @@ -134,7 +139,7 @@ func TestMutationCreateMappableDomain(t *testing.T) { ZoneID: "trust-zone-id", }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "invalid or unparsable field: url", }, { @@ -144,7 +149,7 @@ func TestMutationCreateMappableDomain(t *testing.T) { ZoneID: "trust-zone-id", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, } @@ -193,7 +198,7 @@ func TestMutationCreateBulkMappableDomain(t *testing.T) { }, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, numExpected: 3, }, { @@ -205,7 +210,7 @@ func TestMutationCreateBulkMappableDomain(t *testing.T) { }, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, numExpected: 1, }, { @@ -221,7 +226,7 @@ func TestMutationCreateBulkMappableDomain(t *testing.T) { }, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "invalid or unparsable field: url", }, { @@ -233,14 +238,14 @@ func TestMutationCreateBulkMappableDomain(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { name: "empty input", requests: []*testclient.CreateMappableDomainInput{}, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedErr: "input is required", }, } @@ -275,7 +280,7 @@ func TestMutationCreateBulkMappableDomain(t *testing.T) { } func TestUpdateMappableDomain(t *testing.T) { - mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + mappableDomain := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -289,7 +294,7 @@ func TestUpdateMappableDomain(t *testing.T) { name: "happy path", queryID: mappableDomain.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, input: testclient.UpdateMappableDomainInput{ Tags: []string{"hello"}, }, @@ -298,7 +303,7 @@ func TestUpdateMappableDomain(t *testing.T) { name: "does not exist", queryID: "iddne", client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, errorMsg: notFoundErrorMsg, input: testclient.UpdateMappableDomainInput{ Tags: []string{"hello"}, @@ -308,7 +313,7 @@ func TestUpdateMappableDomain(t *testing.T) { name: "not allowed", queryID: mappableDomain.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, input: testclient.UpdateMappableDomainInput{ Tags: []string{"hello"}, @@ -332,33 +337,33 @@ func TestUpdateMappableDomain(t *testing.T) { }) } - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestGetAllMappableDomains(t *testing.T) { - // Create test mappable domains with different users - mappableDomain1 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - mappableDomain3 := (&MappableDomainBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + // Create test mappable domains + mappableDomain1 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + mappableDomain2 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + mappableDomain3 := (&MappableDomainBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + + // ignore conflicts from other tests, just make sure we get these back + total := 3 testCases := []struct { - name string - client *testclient.TestClient - ctx context.Context - expectedResults int - expectedErr string + name string + client *testclient.TestClient + ctx context.Context + expectedErr string }{ { - name: "happy path - system admin can see all domains", - client: suite.client.api, - ctx: systemAdminUser.UserCtx, - expectedResults: 3, + name: "happy path - system admin can see all domains", + client: suite.client.api, + ctx: sharedSystemAdminUser.UserCtx, }, { - name: "regular user", - client: suite.client.api, - ctx: testUser1.UserCtx, - expectedResults: 3, + name: "regular user", + client: suite.client.api, + ctx: sharedTestUser1.UserCtx, }, } @@ -376,22 +381,20 @@ func TestGetAllMappableDomains(t *testing.T) { assert.Check(t, resp.MappableDomains.Edges != nil) // Verify the number of results - assert.Check(t, is.Len(resp.MappableDomains.Edges, tc.expectedResults)) - assert.Check(t, is.Equal(tc.expectedResults, int(resp.MappableDomains.TotalCount))) + assert.Check(t, len(resp.MappableDomains.Edges) >= total) + assert.Check(t, int(resp.MappableDomains.TotalCount) >= total) // Verify pagination info assert.Check(t, resp.MappableDomains.PageInfo.StartCursor != nil) // If we have results, verify the structure of the first result - if tc.expectedResults > 0 { - firstNode := resp.MappableDomains.Edges[0].Node - assert.Check(t, len(firstNode.ID) != 0) - assert.Check(t, len(firstNode.Name) != 0) - assert.Check(t, firstNode.CreatedAt != nil) - } + firstNode := resp.MappableDomains.Edges[0].Node + assert.Check(t, len(firstNode.ID) != 0) + assert.Check(t, len(firstNode.Name) != 0) + assert.Check(t, firstNode.CreatedAt != nil) }) } // Clean up created domains - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain1.ID, mappableDomain2.ID, mappableDomain3.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain1.ID, mappableDomain2.ID, mappableDomain3.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } diff --git a/internal/graphapi/mappedcontrol_test.go b/internal/graphapi/mappedcontrol_test.go index db027d4622..a72bb785b5 100644 --- a/internal/graphapi/mappedcontrol_test.go +++ b/internal/graphapi/mappedcontrol_test.go @@ -17,19 +17,19 @@ import ( func TestQueryMappedControl(t *testing.T) { // create an mappedControl to be queried using testUser1 - toControl := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - fromControl := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - mappedControl := (&MappedControlBuilder{client: suite.client, ToControlIDs: []string{toControl.ID}, FromControlIDs: []string{fromControl.ID}}).MustNew(testUser1.UserCtx, t) + toControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + fromControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + mappedControl := (&MappedControlBuilder{client: suite.client, ToControlIDs: []string{toControl.ID}, FromControlIDs: []string{fromControl.ID}}).MustNew(sharedTestUser1.UserCtx, t) toControls := mappedControl.Edges.ToControls fromControls := mappedControl.Edges.FromControls // create a system owned mappedControl to ensure we can still query it - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) - systemToControl := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(systemAdminUser.UserCtx, t) - systemFromControl := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) + systemToControl := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) + systemFromControl := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) - systemMappedControl := (&MappedControlBuilder{client: suite.client, ToControlIDs: []string{systemToControl.ID}, FromControlIDs: []string{systemFromControl.ID}, Source: enums.MappingSourceSuggested}).MustNew(systemAdminUser.UserCtx, t) + systemMappedControl := (&MappedControlBuilder{client: suite.client, ToControlIDs: []string{systemToControl.ID}, FromControlIDs: []string{systemFromControl.ID}, Source: enums.MappingSourceSuggested}).MustNew(sharedSystemAdminUser.UserCtx, t) // add test cases for querying the mappedControl testCases := []struct { @@ -43,25 +43,25 @@ func TestQueryMappedControl(t *testing.T) { name: "happy path", queryID: mappedControl.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path system admin", queryID: systemMappedControl.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "happy path, read only user, should have read access", queryID: mappedControl.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, read only user, should have read access to system owned mappedControl", queryID: systemMappedControl.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -73,14 +73,14 @@ func TestQueryMappedControl(t *testing.T) { name: "mappedControl not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "mappedControl not found, using not authorized user", queryID: mappedControl.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -106,7 +106,7 @@ func TestQueryMappedControl(t *testing.T) { assert.Check(t, is.Len(toControls, 1), "expected exactly one to control") // ensure internal only fields are not returned for non system admin users - if tc.ctx == systemAdminUser.UserCtx { + if tc.ctx == sharedSystemAdminUser.UserCtx { assert.Check(t, resp.MappedControl.SystemInternalID != nil) assert.Check(t, resp.MappedControl.InternalNotes != nil) } else { @@ -116,21 +116,21 @@ func TestQueryMappedControl(t *testing.T) { }) } - (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControl.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{toControls[0].ID, fromControls[0].ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: systemMappedControl.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemToControl.ID, systemFromControl.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{toControls[0].ID, fromControls[0].ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: systemMappedControl.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemToControl.ID, systemFromControl.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestQueryMappedControls(t *testing.T) { // create multiple objects to be queried using testUser1 controlsToDelete := []*generated.Control{} - mappedControl1 := (&MappedControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + mappedControl1 := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) controlsToDelete = mappedControl1.Edges.ToControls controlsToDelete = append(controlsToDelete, mappedControl1.Edges.FromControls...) - mappedControl2 := (&MappedControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + mappedControl2 := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) controlsToDelete = append(controlsToDelete, mappedControl2.Edges.ToControls...) controlsToDelete = append(controlsToDelete, mappedControl2.Edges.FromControls...) @@ -143,13 +143,13 @@ func TestQueryMappedControls(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -167,7 +167,7 @@ func TestQueryMappedControls(t *testing.T) { { name: "another user, no mappedControls should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -182,26 +182,26 @@ func TestQueryMappedControls(t *testing.T) { }) } - (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, IDs: []string{mappedControl1.ID, mappedControl2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, IDs: []string{mappedControl1.ID, mappedControl2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) for _, control := range controlsToDelete { - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } } func TestMutationCreateMappedControl(t *testing.T) { - toControl := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - fromControl := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - toSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - fromSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + toControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + fromControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + toSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + fromSubcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create system owned controls - systemToControl := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - systemFromControl := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + systemToControl := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + systemFromControl := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) // create standard for controls with a standard name - standard := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlWithStandard := (&ControlBuilder{client: suite.client, StandardID: standard.ID}).MustNew(testUser1.UserCtx, t) + standard := (&StandardBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlWithStandard := (&ControlBuilder{client: suite.client, StandardID: standard.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -216,7 +216,7 @@ func TestMutationCreateMappedControl(t *testing.T) { MappingType: &enums.MappingTypeEqual, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, all input", @@ -232,7 +232,7 @@ func TestMutationCreateMappedControl(t *testing.T) { Source: lo.ToPtr(enums.MappingSourceManual), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using ref codes instead of IDs", @@ -244,7 +244,7 @@ func TestMutationCreateMappedControl(t *testing.T) { ToSubcontrolRefCodes: []string{"CUSTOM::" + toSubcontrol.RefCode}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, using ref codes instead of IDs with multiple different standard controls", @@ -254,12 +254,12 @@ func TestMutationCreateMappedControl(t *testing.T) { ToControlRefCodes: []string{*controlWithStandard.ReferenceFramework + "::" + controlWithStandard.RefCode, "CUSTOM::" + toControl.RefCode}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateMappedControlInput{ - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, MappingType: &enums.MappingTypeSubset, ToControlIDs: []string{toControl.ID}, FromSubcontrolIDs: []string{fromSubcontrol.ID}, @@ -294,7 +294,7 @@ func TestMutationCreateMappedControl(t *testing.T) { Source: lo.ToPtr(enums.MappingSourceSuggested), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -307,7 +307,7 @@ func TestMutationCreateMappedControl(t *testing.T) { InternalNotes: lo.ToPtr("these are internal notes"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -320,7 +320,7 @@ func TestMutationCreateMappedControl(t *testing.T) { SystemInternalID: lo.ToPtr(ulids.New().String()), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -334,7 +334,7 @@ func TestMutationCreateMappedControl(t *testing.T) { InternalNotes: lo.ToPtr("these are internal notes"), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "user not authorized, not enough permissions", @@ -344,7 +344,7 @@ func TestMutationCreateMappedControl(t *testing.T) { FromControlIDs: []string{fromControl.ID}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -356,7 +356,7 @@ func TestMutationCreateMappedControl(t *testing.T) { Confidence: lo.ToPtr(int64(101)), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: "value out of range", }, } @@ -474,36 +474,36 @@ func TestMutationCreateMappedControl(t *testing.T) { assert.Check(t, is.Len(resp.CreateMappedControl.MappedControl.Tags, len(tc.request.Tags)), "expected %d tags in the response", len(tc.request.Tags)) // cleanup each object created - deleteCtx := testUser1.UserCtx - if tc.ctx == systemAdminUser.UserCtx { - deleteCtx = systemAdminUser.UserCtx + deleteCtx := sharedTestUser1.UserCtx + if tc.ctx == sharedSystemAdminUser.UserCtx { + deleteCtx = sharedSystemAdminUser.UserCtx } (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: resp.CreateMappedControl.MappedControl.ID}).MustDelete(deleteCtx, t) }) } // cleanup the controls created for the mappedControl - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{toControl.ID, fromControl.ID, controlWithStandard.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{toSubcontrol.ID, fromSubcontrol.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{toControl.ID, fromControl.ID, controlWithStandard.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{toSubcontrol.ID, fromSubcontrol.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup system owned controls - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemToControl.ID, systemFromControl.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{systemToControl.ID, systemFromControl.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) // clean up standard - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standard.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standard.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateMappedControl(t *testing.T) { - mappedControl := (&MappedControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - mappedControlAnotherOrg := (&MappedControlBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + mappedControl := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + mappedControlAnotherOrg := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - controlA := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - controlB := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + controlA := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + controlB := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - subcontrolA := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrolB := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + subcontrolA := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrolB := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + controlAnotherOrg := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - _, err := suite.client.api.GetMappedControlByID(testUser1.UserCtx, mappedControlAnotherOrg.ID) + _, err := suite.client.api.GetMappedControlByID(sharedTestUser1.UserCtx, mappedControlAnotherOrg.ID) assert.ErrorContains(t, err, notFoundErrorMsg) testCases := []struct { @@ -522,7 +522,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { MappingType: lo.ToPtr(enums.MappingTypeSubset), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -547,7 +547,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { AddToSubcontrolIDs: []string{subcontrolB.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "add controls from another org, not allowed", @@ -556,7 +556,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { AddFromControlIDs: []string{controlAnotherOrg.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, controlNotAdded: true, // this control should not be added expectedErr: notAuthorizedErrorMsg, }, @@ -567,7 +567,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { Relation: lo.ToPtr("Trying to update relation"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -577,7 +577,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { Source: lo.ToPtr(enums.MappingSourceSuggested), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -587,7 +587,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { Relation: lo.ToPtr("Trying to update relation"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -597,7 +597,7 @@ func TestMutationUpdateMappedControl(t *testing.T) { Relation: lo.ToPtr("Trying to update relation"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -706,17 +706,17 @@ func TestMutationUpdateMappedControl(t *testing.T) { }) } - (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControl.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControlAnotherOrg.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{controlA.ID, controlB.ID, mappedControl.Edges.FromControls[0].ID, mappedControl.Edges.ToControls[0].ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{mappedControlAnotherOrg.Edges.FromControls[0].ID, mappedControlAnotherOrg.Edges.ToControls[0].ID}}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrolA.ID, subcontrolB.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.MappedControlDeleteOne]{client: suite.client.db.MappedControl, ID: mappedControlAnotherOrg.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{controlA.ID, controlB.ID, mappedControl.Edges.FromControls[0].ID, mappedControl.Edges.ToControls[0].ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{mappedControlAnotherOrg.Edges.FromControls[0].ID, mappedControlAnotherOrg.Edges.ToControls[0].ID}}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{subcontrolA.ID, subcontrolB.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteMappedControl(t *testing.T) { // create objects to be deleted - mappedControl1 := (&MappedControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - mappedControl2 := (&MappedControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + mappedControl1 := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + mappedControl2 := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -729,20 +729,20 @@ func TestMutationDeleteMappedControl(t *testing.T) { name: "not authorized, delete", idToDelete: mappedControl1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: mappedControl1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: mappedControl1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -755,7 +755,7 @@ func TestMutationDeleteMappedControl(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/models_test.go b/internal/graphapi/models_test.go index 59a6b8fef8..25fe69779b 100644 --- a/internal/graphapi/models_test.go +++ b/internal/graphapi/models_test.go @@ -15,7 +15,6 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/theopenlane/iam/auth" - "github.com/theopenlane/iam/fgax" "github.com/theopenlane/utils/ulids" "github.com/theopenlane/core/common/enums" @@ -858,7 +857,7 @@ func (pat *PersonalAccessTokenBuilder) MustNew(ctx context.Context, t *testing.T if pat.OrganizationIDs == nil { // default to adding the test users organization ID - pat.OrganizationIDs = []string{testUser1.OrganizationID} + pat.OrganizationIDs = []string{sharedTestUser1.OrganizationID} } request := pat.client.db.PersonalAccessToken.Create(). @@ -888,14 +887,13 @@ func (at *APITokenBuilder) MustNew(ctx context.Context, t *testing.T) *ent.APITo at.Description = gofakeit.HipsterSentence() } - if at.Scopes == nil { - at.Scopes = []string{"read", "write", "group_manager"} - } - request := at.client.db.APIToken.Create(). SetName(at.Name). - SetDescription(at.Description). - SetScopes(at.Scopes) + SetDescription(at.Description) + + if at.Scopes != nil { + request.SetScopes(at.Scopes) + } if at.ExpiresAt != nil { request.SetExpiresAt(*at.ExpiresAt) @@ -1637,7 +1635,7 @@ func (e *ControlImplementationBuilder) MustNew(ctx context.Context, t *testing.T // MustNew controlImplementation builder is used to create, without authz checks, controlImplementations in the database func (e *MappedControlBuilder) MustNew(ctx context.Context, t *testing.T) *ent.MappedControl { - if ctx == systemAdminUser.UserCtx { + if ctx == sharedSystemAdminUser.UserCtx { if e.InternalID == "" { e.InternalID = ulids.New().String() } @@ -2020,29 +2018,14 @@ func (tc *TrustCenterBuilder) MustNew(ctx context.Context, t *testing.T) *ent.Tr mutation.SetCustomDomainID(tc.CustomDomainID) } - trustCenter, err := mutation.Save(ctx) - requireNoError(t, err) - - // Create the organization parent tuple for the trust center - // This is normally done by the orgOwnedMixin, but since we're bypassing hooks, we need to do it manually - orgCaller, orgCallerOk := auth.CallerFromContext(ctx) - if !orgCallerOk || orgCaller == nil { - requireNoError(t, auth.ErrNoAuthUser) + // set the org owner_id, this is done via hooks when using the api + caller, _ := auth.CallerFromContext(ctx) + if caller != nil && caller.OrganizationID != "" { + mutation.SetOwnerID(caller.OrganizationID) } - orgID := orgCaller.OrganizationID - parentReq := fgax.TupleRequest{ - SubjectID: orgID, - SubjectType: "organization", - ObjectID: trustCenter.ID, - ObjectType: "trust_center", - Relation: "parent", - } - - tuple := fgax.GetTupleKey(parentReq) - if _, err := tc.client.db.Authz.WriteTupleKeys(ctx, []fgax.TupleKey{tuple}, nil); err != nil { - requireNoError(t, err) - } + trustCenter, err := mutation.Save(ctx) + requireNoError(t, err) return trustCenter } diff --git a/internal/graphapi/narrative_test.go b/internal/graphapi/narrative_test.go index c22a3552b5..209b24226e 100644 --- a/internal/graphapi/narrative_test.go +++ b/internal/graphapi/narrative_test.go @@ -15,13 +15,13 @@ import ( ) func TestQueryNarrative(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a Narrative (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) narratives := []string{} @@ -36,18 +36,18 @@ func TestQueryNarrative(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user, same org, no access to the program", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "admin user, access to the program", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path using personal access token", @@ -58,13 +58,13 @@ func TestQueryNarrative(t *testing.T) { name: "narrative not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "narrative not found, using not authorized user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -79,7 +79,7 @@ func TestQueryNarrative(t *testing.T) { t.Run("Get "+tc.name, func(t *testing.T) { // setup the narrative if it is not already created if tc.queryID == "" { - resp, err := suite.client.api.CreateNarrative(testUser1.UserCtx, + resp, err := suite.client.api.CreateNarrative(sharedTestUser1.UserCtx, testclient.CreateNarrativeInput{ Name: "Narrative", ProgramIDs: []string{program.ID}, @@ -114,21 +114,21 @@ func TestQueryNarrative(t *testing.T) { } // delete created narratives - (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: narratives}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: narratives}).MustDelete(sharedTestUser1.UserCtx, t) // delete created program - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryNarratives(t *testing.T) { // create multiple objects to be queried using testUser1 - nrt1 := (&NarrativeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - nrt2 := (&NarrativeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + nrt1 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + nrt2 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) userAnotherOrg := suite.userBuilder(context.Background(), t) // add narrative for the user to another org; this should not be returned for JWT auth, since it's // restricted to a single org. PAT auth would return it if both orgs are authorized on the token - nrt3 := (&NarrativeBuilder{client: suite.client}).MustNew(userAnotherOrg.UserCtx, t) + (&NarrativeBuilder{client: suite.client}).MustNew(userAnotherOrg.UserCtx, t) testCases := []struct { name string @@ -139,20 +139,20 @@ func TestQueryNarratives(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org, no programs or groups associated", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 0, }, { - name: "happy path, no access to the program or group", + name: "happy path, scope access to all narratives in org", client: suite.client.apiWithToken, ctx: context.Background(), - expectedResults: 0, + expectedResults: 2, }, { name: "happy path, using pat", @@ -163,7 +163,7 @@ func TestQueryNarratives(t *testing.T) { { name: "another user, no narratives should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -179,25 +179,25 @@ func TestQueryNarratives(t *testing.T) { } // delete created narrative - (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: []string{nrt1.ID, nrt2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, ID: nrt3.ID}).MustDelete(userAnotherOrg.UserCtx, t) + (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: []string{nrt1.ID, nrt2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + cleanupOrganizationDataWithContext(userAnotherOrg.UserCtx, t) } func TestMutationCreateNarrative(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // group for the view only user - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a narrative associated with the program1 (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) // create groups to be associated with the narrative - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) narratives := []string{} @@ -215,7 +215,7 @@ func TestMutationCreateNarrative(t *testing.T) { Name: "Narrative", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -226,24 +226,24 @@ func TestMutationCreateNarrative(t *testing.T) { ProgramIDs: []string{program1.ID, program2.ID}, // multiple programs }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add groups", request: testclient.CreateNarrativeInput{ Name: "Test Procedure", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{blockedGroup.ID}, ViewerIDs: []string{viewerGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateNarrativeInput{ Name: "Narrative", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -262,7 +262,7 @@ func TestMutationCreateNarrative(t *testing.T) { Name: "Narrative", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -272,7 +272,7 @@ func TestMutationCreateNarrative(t *testing.T) { }, addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "user authorized, they were added to the program", @@ -281,7 +281,7 @@ func TestMutationCreateNarrative(t *testing.T) { ProgramIDs: []string{program1.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "user authorized, user not authorized to one of the programs", @@ -290,14 +290,14 @@ func TestMutationCreateNarrative(t *testing.T) { ProgramIDs: []string{program1.ID, program2.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required name", request: testclient.CreateNarrativeInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -307,7 +307,7 @@ func TestMutationCreateNarrative(t *testing.T) { ProgramIDs: []string{programAnotherUser.ID, program1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -315,7 +315,7 @@ func TestMutationCreateNarrative(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddNarrativeCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -362,7 +362,7 @@ func TestMutationCreateNarrative(t *testing.T) { if len(tc.request.EditorIDs) > 0 { assert.Check(t, is.Len(resp.CreateNarrative.Narrative.Editors.Edges, 1)) for _, edge := range resp.CreateNarrative.Narrative.Editors.Edges { - assert.Check(t, is.Equal(testUser1.GroupID, edge.Node.ID)) + assert.Check(t, is.Equal(sharedTestUser1.GroupID, edge.Node.ID)) } } @@ -382,7 +382,7 @@ func TestMutationCreateNarrative(t *testing.T) { // ensure the org owner has access to the narrative that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetNarrativeByID(testUser1.UserCtx, resp.CreateNarrative.Narrative.ID) + res, err := suite.client.api.GetNarrativeByID(sharedTestUser1.UserCtx, resp.CreateNarrative.Narrative.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(resp.CreateNarrative.Narrative.ID, res.Narrative.ID)) @@ -393,24 +393,24 @@ func TestMutationCreateNarrative(t *testing.T) { } // delete created narratives - (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: narratives}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, IDs: narratives}).MustDelete(sharedTestUser1.UserCtx, t) // delete created programs - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) // delete created groups - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateNarrative(t *testing.T) { - program := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - narrative := (&NarrativeBuilder{client: suite.client, ProgramID: program.ID}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + narrative := (&NarrativeBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) // create another admin user and add them to the same organization and group as testUser1 // this will allow us to test the group editor/viewer permissions anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(sharedTestUser1.UserCtx, t) // ensure the user does not currently have access to the narrative _, err := suite.client.api.GetNarrativeByID(anotherAdminUser.UserCtx, narrative.ID) @@ -431,7 +431,7 @@ func TestMutationUpdateNarrative(t *testing.T) { AddViewerIDs: []string{groupMember.GroupID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -450,7 +450,7 @@ func TestMutationUpdateNarrative(t *testing.T) { AppendTags: []string{"tag3"}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -459,7 +459,7 @@ func TestMutationUpdateNarrative(t *testing.T) { AppendTags: []string{"tag3"}, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -521,17 +521,17 @@ func TestMutationUpdateNarrative(t *testing.T) { } // delete created narrative - (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, ID: narrative.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.NarrativeDeleteOne]{client: suite.client.db.Narrative, ID: narrative.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete created program - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) // delete created group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: groupMember.GroupID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteNarrative(t *testing.T) { // create objects to be deleted - narrative1 := (&NarrativeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - narrative2 := (&NarrativeBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + narrative1 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + narrative2 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -544,20 +544,20 @@ func TestMutationDeleteNarrative(t *testing.T) { name: "not authorized, delete", idToDelete: narrative1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: narrative1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: narrative1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -570,7 +570,7 @@ func TestMutationDeleteNarrative(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/notes_test.go b/internal/graphapi/notes_test.go index 4d3b9fd79b..505f2de87a 100644 --- a/internal/graphapi/notes_test.go +++ b/internal/graphapi/notes_test.go @@ -13,7 +13,7 @@ import ( ) func TestMutationUpdateNoteForTask(t *testing.T) { - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -30,14 +30,14 @@ func TestMutationUpdateNoteForTask(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with PAT", request: testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "This is a test note using PAT", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, }, client: suite.client.apiWithPAT, @@ -49,7 +49,7 @@ func TestMutationUpdateNoteForTask(t *testing.T) { AddComment: &testclient.CreateNoteInput{}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -57,11 +57,11 @@ func TestMutationUpdateNoteForTask(t *testing.T) { request: testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "This is a test note", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, // wrong user + ctx: sharedViewOnlyUser.UserCtx, // wrong user expectedErr: notAuthorizedErrorMsg, }, } @@ -89,14 +89,14 @@ func TestMutationUpdateNoteForTask(t *testing.T) { } // clean up - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationAddNoteForControl(t *testing.T) { - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // ensure view only user caan see the control - _, err := suite.client.api.GetControlByID(viewOnlyUser.UserCtx, control.ID) + _, err := suite.client.api.GetControlByID(sharedViewOnlyUser.UserCtx, control.ID) assert.NilError(t, err) assert.Assert(t, control.ID != "") @@ -115,7 +115,7 @@ func TestMutationAddNoteForControl(t *testing.T) { }, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, add discussion", @@ -129,7 +129,7 @@ func TestMutationAddNoteForControl(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, minimal input", @@ -139,14 +139,14 @@ func TestMutationAddNoteForControl(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with PAT", request: testclient.UpdateControlInput{ AddComment: &testclient.CreateNoteInput{ Text: "This is a test note using PAT", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, }, client: suite.client.apiWithPAT, @@ -159,7 +159,7 @@ func TestMutationAddNoteForControl(t *testing.T) { AddComment: &testclient.CreateNoteInput{}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -199,14 +199,14 @@ func TestMutationAddNoteForControl(t *testing.T) { } // clean up - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateDiscussionForControl(t *testing.T) { - control := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add initial discussion to update - resp, err := suite.client.api.UpdateControl(testUser1.UserCtx, control.ID, testclient.UpdateControlInput{ + resp, err := suite.client.api.UpdateControl(sharedTestUser1.UserCtx, control.ID, testclient.UpdateControlInput{ AddDiscussion: &testclient.CreateDiscussionInput{ ExternalID: lo.ToPtr("DISC-22401"), IsResolved: lo.ToPtr(false), @@ -229,7 +229,7 @@ func TestMutationUpdateDiscussionForControl(t *testing.T) { discussionID := resp.UpdateControl.Control.Discussions.Edges[0].Node.ID // now update the discussion by adding another comment - updateResp, err := suite.client.api.UpdateControl(testUser1.UserCtx, control.ID, testclient.UpdateControlInput{ + updateResp, err := suite.client.api.UpdateControl(sharedTestUser1.UserCtx, control.ID, testclient.UpdateControlInput{ UpdateDiscussion: &testclient.UpdateDiscussionsInput{ ID: discussionID, Input: &testclient.UpdateDiscussionInput{ @@ -258,7 +258,7 @@ func TestMutationUpdateDiscussionForControl(t *testing.T) { // now lets try to update the second comment in the discussion noteToUpdateID := updatedDiscussion.Comments.Edges[1].Node.ID updatedText := "This is an updated additional comment in the discussion" - updateComment, err := suite.client.api.UpdateControlComment(testUser1.UserCtx, noteToUpdateID, testclient.UpdateNoteInput{ + updateComment, err := suite.client.api.UpdateControlComment(sharedTestUser1.UserCtx, noteToUpdateID, testclient.UpdateNoteInput{ Text: &updatedText, }) @@ -285,7 +285,7 @@ func TestMutationUpdateDiscussionForControl(t *testing.T) { // now lets try to remove a comment from the discussion noteToRemoveID := updatedDiscussion.Comments.Edges[0].Node.ID - updateResp2, err := suite.client.api.UpdateControl(testUser1.UserCtx, control.ID, testclient.UpdateControlInput{ + updateResp2, err := suite.client.api.UpdateControl(sharedTestUser1.UserCtx, control.ID, testclient.UpdateControlInput{ UpdateDiscussion: &testclient.UpdateDiscussionsInput{ ID: discussionID, Input: &testclient.UpdateDiscussionInput{ @@ -305,14 +305,14 @@ func TestMutationUpdateDiscussionForControl(t *testing.T) { assert.Check(t, is.Equal(updatedText, updatedDiscussion2.Comments.Edges[0].Node.Text)) // clean up - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateDiscussionForPolicy(t *testing.T) { - policy := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + policy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add initial discussion to update - resp, err := suite.client.api.UpdateInternalPolicy(testUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ + resp, err := suite.client.api.UpdateInternalPolicy(sharedTestUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ AddDiscussion: &testclient.CreateDiscussionInput{ ExternalID: lo.ToPtr("DISC-22402"), IsResolved: lo.ToPtr(false), @@ -335,7 +335,7 @@ func TestMutationUpdateDiscussionForPolicy(t *testing.T) { discussionID := resp.UpdateInternalPolicy.InternalPolicy.Discussions.Edges[0].Node.ID // now update the discussion by adding another comment - updateResp, err := suite.client.api.UpdateInternalPolicy(testUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ + updateResp, err := suite.client.api.UpdateInternalPolicy(sharedTestUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ UpdateDiscussion: &testclient.UpdateDiscussionsInput{ ID: discussionID, Input: &testclient.UpdateDiscussionInput{ @@ -364,7 +364,7 @@ func TestMutationUpdateDiscussionForPolicy(t *testing.T) { // now lets try to update the second comment in the discussion noteToUpdateID := updatedDiscussion.Comments.Edges[1].Node.ID updatedText := "This is an updated additional comment in the discussion for the policy" - updateComment, err := suite.client.api.UpdateInternalPolicyComment(testUser1.UserCtx, noteToUpdateID, testclient.UpdateNoteInput{ + updateComment, err := suite.client.api.UpdateInternalPolicyComment(sharedTestUser1.UserCtx, noteToUpdateID, testclient.UpdateNoteInput{ Text: &updatedText, }) @@ -391,7 +391,7 @@ func TestMutationUpdateDiscussionForPolicy(t *testing.T) { // now lets try to remove a comment from the discussion noteToRemoveID := updatedDiscussion.Comments.Edges[0].Node.ID - updateResp2, err := suite.client.api.UpdateInternalPolicy(testUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ + updateResp2, err := suite.client.api.UpdateInternalPolicy(sharedTestUser1.UserCtx, policy.ID, testclient.UpdateInternalPolicyInput{ UpdateDiscussion: &testclient.UpdateDiscussionsInput{ ID: discussionID, Input: &testclient.UpdateDiscussionInput{ @@ -411,13 +411,13 @@ func TestMutationUpdateDiscussionForPolicy(t *testing.T) { assert.Check(t, is.Equal(updatedText, updatedDiscussion2.Comments.Edges[0].Node.Text)) // clean up - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteNoteForTask(t *testing.T) { - userTask := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + userTask := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - createResp, err := suite.client.api.UpdateTask(testUser1.UserCtx, userTask.ID, testclient.UpdateTaskInput{ + createResp, err := suite.client.api.UpdateTask(sharedTestUser1.UserCtx, userTask.ID, testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "Here is my comment", }, @@ -429,15 +429,15 @@ func TestMutationDeleteNoteForTask(t *testing.T) { assert.Assert(t, len(createResp.UpdateTask.Task.Comments.Edges) != 0) noteID := createResp.UpdateTask.Task.Comments.Edges[0].Node.ID - _, err = suite.client.api.DeleteNote(testUser1.UserCtx, noteID) + _, err = suite.client.api.DeleteNote(sharedTestUser1.UserCtx, noteID) assert.NilError(t, err) // cleanup task - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: userTask.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: userTask.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteTaskNotes(t *testing.T) { - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -449,7 +449,7 @@ func TestMutationDeleteTaskNotes(t *testing.T) { { name: "happy path", request: func() testclient.UpdateTaskInput { - createResp, err := suite.client.api.UpdateTask(testUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ + createResp, err := suite.client.api.UpdateTask(sharedTestUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "Note to be deleted", }, @@ -463,13 +463,13 @@ func TestMutationDeleteTaskNotes(t *testing.T) { } }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with PAT", request: func() testclient.UpdateTaskInput { // create a note to delete - createResp, err := suite.client.api.UpdateTask(testUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ + createResp, err := suite.client.api.UpdateTask(sharedTestUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "Note to be deleted with PAT", }, @@ -493,7 +493,7 @@ func TestMutationDeleteTaskNotes(t *testing.T) { } }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "comment not found", }, } @@ -517,13 +517,13 @@ func TestMutationDeleteTaskNotes(t *testing.T) { } // clean up - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryNote(t *testing.T) { - task := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - createResp, err := suite.client.api.UpdateTask(testUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ + createResp, err := suite.client.api.UpdateTask(sharedTestUser1.UserCtx, task.ID, testclient.UpdateTaskInput{ AddComment: &testclient.CreateNoteInput{ Text: "Note for querying", }, @@ -544,7 +544,7 @@ func TestQueryNote(t *testing.T) { name: "happy path", noteID: noteID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with PAT", @@ -556,14 +556,14 @@ func TestQueryNote(t *testing.T) { name: "note not found", noteID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "note not found", }, { name: "unauthorized user", noteID: noteID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "note not found", }, } @@ -584,5 +584,5 @@ func TestQueryNote(t *testing.T) { } // clean up - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/notification_test.go b/internal/graphapi/notification_test.go index 54d296ad17..aad231d75e 100644 --- a/internal/graphapi/notification_test.go +++ b/internal/graphapi/notification_test.go @@ -27,10 +27,10 @@ func TestMutationCreateNotification(t *testing.T) { ObjectType: "program", Title: "Test Notification", Body: "This is a test notification body", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "not authorized, create notification as member", @@ -39,10 +39,10 @@ func TestMutationCreateNotification(t *testing.T) { ObjectType: "program", Title: "Test Notification", Body: "This is a test notification body", - OwnerID: &viewOnlyUser.OrganizationID, + OwnerID: &sharedViewOnlyUser.OrganizationID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -52,10 +52,10 @@ func TestMutationCreateNotification(t *testing.T) { ObjectType: "program", Title: "Test Notification", Body: "This is a test notification body", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -76,7 +76,7 @@ func TestMutationCreateNotification(t *testing.T) { assert.Check(t, is.Equal(tc.request.Body, resp.CreateNotification.Notification.Body)) assert.Check(t, is.Equal(tc.request.ObjectType, resp.CreateNotification.Notification.ObjectType)) - (&Cleanup[*generated.NotificationDeleteOne]{client: suite.client.db.Notification, ID: resp.CreateNotification.Notification.ID}).MustDelete(adminUser.UserCtx, t) + (&Cleanup[*generated.NotificationDeleteOne]{client: suite.client.db.Notification, ID: resp.CreateNotification.Notification.ID}).MustDelete(sharedAdminUser.UserCtx, t) }) } } diff --git a/internal/graphapi/onboarding_test.go b/internal/graphapi/onboarding_test.go index 1f8582f54a..045b3fbd3d 100644 --- a/internal/graphapi/onboarding_test.go +++ b/internal/graphapi/onboarding_test.go @@ -14,6 +14,8 @@ import ( ) func TestMutationCreateOnboarding(t *testing.T) { + t.Parallel() + // create another user for this test // so it doesn't interfere with the other tests onboardingUser := suite.userBuilder(context.Background(), t) diff --git a/internal/graphapi/organization_test.go b/internal/graphapi/organization_test.go index 67402d0c94..b78ecb0e35 100644 --- a/internal/graphapi/organization_test.go +++ b/internal/graphapi/organization_test.go @@ -42,20 +42,18 @@ func waitForCondition(t *testing.T, condition func() bool, msg string) { } func TestQueryOrganization(t *testing.T) { - // create another user for this test - // so it doesn't interfere with the other tests - orgUser := suite.userBuilder(context.Background(), t) - apiTokenClient := suite.setupAPITokenClient(orgUser.UserCtx, t) - patTokenClient := suite.setupPatClient(orgUser, t) + t.Parallel() + + localTestOrg := suite.seedOrgOwner(t) // create api token for the user - (&APITokenBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) + (&APITokenBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) // create personal access token for the user - (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) + (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) // add org members - om := (&OrgMemberBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext("abc123", orgUser.OrganizationID) + om := (&OrgMemberBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext("abc123", localTestOrg.owner.OrganizationID) testCases := []struct { name string @@ -67,22 +65,22 @@ func TestQueryOrganization(t *testing.T) { }{ { name: "happy path, get organization", - queryID: orgUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, orgMembersExpected: 2, // owner and 1 member }, { name: "happy path, get using api token", - queryID: orgUser.OrganizationID, - client: apiTokenClient, + queryID: localTestOrg.owner.OrganizationID, + client: localTestOrg.apiClient, ctx: context.Background(), orgMembersExpected: 2, // owner and 1 member }, { name: "happy path, get using personal access token", - queryID: orgUser.OrganizationID, - client: patTokenClient, + queryID: localTestOrg.owner.OrganizationID, + client: localTestOrg.patClient, ctx: context.Background(), orgMembersExpected: 2, // owner and 1 member }, @@ -90,14 +88,14 @@ func TestQueryOrganization(t *testing.T) { name: "invalid-id", queryID: "tacos-for-dinner", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "no access, anonymous user", client: suite.client.api, ctx: anonymousContext, - queryID: orgUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, errorMsg: notFoundErrorMsg, }, } @@ -129,32 +127,34 @@ func TestQueryOrganization(t *testing.T) { } }) } + + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestQueryOrganizations(t *testing.T) { - // create another user for this test - // so it doesn't interfere with the other tests - orgUser := suite.userBuilder(context.Background(), t) + t.Parallel() - org1 := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) - org2 := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) + orgUser := suite.seedOrgOwner(t) + + org1ID := orgUser.owner.OrganizationID + org2 := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.owner.UserCtx, t) t.Run("Get Organizations", func(t *testing.T) { - resp, err := suite.client.api.GetAllOrganizations(orgUser.UserCtx) + resp, err := suite.client.api.GetAllOrganizations(orgUser.owner.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Assert(t, resp.Organizations.Edges != nil) - // make sure two organizations are returned, the two created and - // the personal org and test org created at suite setup - assert.Check(t, is.Equal(4, len(resp.Organizations.Edges))) + // make sure 3 organizations are returned, the two created and + // the personal org + assert.Check(t, is.Equal(3, len(resp.Organizations.Edges))) org1Found := false org2Found := false for _, o := range resp.Organizations.Edges { - if o.Node.ID == org1.ID { + if o.Node.ID == org1ID { org1Found = true } else if o.Node.ID == org2.ID { org2Found = true @@ -166,24 +166,21 @@ func TestQueryOrganizations(t *testing.T) { }) // cleanup orgs - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, IDs: []string{org1.ID, org2.ID}}).MustDelete(orgUser.UserCtx, t) + cleanupOrganizationDataWithContext(orgUser.owner.UserCtx, t) } func TestMutationCreateOrganization(t *testing.T) { + t.Parallel() - // create another user for this test - // so it doesn't interfere with the other tests - orgUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(orgUser, t) - tokenClient := suite.setupAPITokenClient(orgUser.UserCtx, t) + orgUser := suite.seedOrgOwner(t) - parentOrg, err := suite.client.api.GetOrganizationByID(orgUser.UserCtx, orgUser.OrganizationID) + parentOrg, err := suite.client.api.GetOrganizationByID(orgUser.owner.UserCtx, orgUser.owner.OrganizationID) assert.NilError(t, err) // setup deleted org - orgToDelete := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) + orgToDelete := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.owner.UserCtx, t) // delete said org - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, ID: orgToDelete.ID}).MustDelete(orgUser.UserCtx, t) + (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, ID: orgToDelete.ID}).MustDelete(orgUser.owner.UserCtx, t) avatarFile := uploadFile(t, logoFilePath) invalidAvatarFile := uploadFile(t, txtFilePath) @@ -209,7 +206,7 @@ func TestMutationCreateOrganization(t *testing.T) { expectedDefaultOrgUpdate: true, // only the first org created should update the default org parentOrgID: "", // root org client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "happy path organization with settings and avatar", @@ -231,7 +228,7 @@ func TestMutationCreateOrganization(t *testing.T) { }, parentOrgID: "", // root org client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "organization settings with free email domain not allowed", @@ -243,32 +240,32 @@ func TestMutationCreateOrganization(t *testing.T) { }, parentOrgID: "", // root org client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, errorMsg: invalidInputErrorMsg, }, { name: "happy path organization with parent org", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: gofakeit.HipsterSentence(), - parentOrgID: orgUser.OrganizationID, + parentOrgID: orgUser.owner.OrganizationID, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "organization with parent org, no access", orgName: gofakeit.Name(), orgDescription: gofakeit.HipsterSentence(), - parentOrgID: testUser2.OrganizationID, + parentOrgID: sharedTestUser2.OrganizationID, client: suite.client.api, - ctx: orgUser.UserCtx, - errorMsg: notAuthorizedErrorMsg, + ctx: orgUser.owner.UserCtx, + errorMsg: notFoundErrorMsg, }, { name: "organization with parent org using personal access token, not allowed", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: gofakeit.HipsterSentence(), - parentOrgID: orgUser.OrganizationID, - client: patClient, + parentOrgID: orgUser.owner.OrganizationID, + client: orgUser.patClient, ctx: context.Background(), errorMsg: common.ErrResourceNotAccessibleWithToken.Error(), }, @@ -276,8 +273,8 @@ func TestMutationCreateOrganization(t *testing.T) { name: "organization with parent org using personal access token, no access to parent, not allowed", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: gofakeit.HipsterSentence(), - parentOrgID: testUser2.OrganizationID, - client: patClient, + parentOrgID: sharedTestUser2.OrganizationID, + client: orgUser.patClient, ctx: context.Background(), errorMsg: common.ErrResourceNotAccessibleWithToken.Error(), }, @@ -285,7 +282,7 @@ func TestMutationCreateOrganization(t *testing.T) { name: "organization create with api token not allowed", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: gofakeit.HipsterSentence(), - client: tokenClient, + client: orgUser.apiClient, ctx: context.Background(), errorMsg: common.ErrResourceNotAccessibleWithToken.Error(), }, @@ -293,10 +290,10 @@ func TestMutationCreateOrganization(t *testing.T) { name: "organization with parent personal org", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: gofakeit.HipsterSentence(), - parentOrgID: orgUser.PersonalOrgID, + parentOrgID: orgUser.owner.PersonalOrgID, errorMsg: "personal organizations are not allowed to have child organizations", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "empty organization name", @@ -304,7 +301,7 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "value is less than the required length", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "long organization name", @@ -312,15 +309,15 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "value is greater than the required length", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "organization with no description", orgName: ulids.New().String(), // use ulid to ensure uniqueness orgDescription: "", - parentOrgID: orgUser.OrganizationID, + parentOrgID: orgUser.owner.OrganizationID, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "duplicate organization name", @@ -328,7 +325,7 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "already exists", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "duplicate organization name, case insensitive", @@ -336,21 +333,21 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "already exists", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "duplicate organization name, but other was deleted, should pass", orgName: orgToDelete.Name, orgDescription: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "organization name with trailing space should work with trailing space removed", orgName: "orgname ", orgDescription: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "invalid organization name, too short", @@ -358,7 +355,7 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "value is less than the required length", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { @@ -367,7 +364,7 @@ func TestMutationCreateOrganization(t *testing.T) { orgDescription: gofakeit.HipsterSentence(), errorMsg: "invalid or unparsable field: name, field cannot contain special characters", client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "duplicate display name, should be allowed", @@ -375,7 +372,7 @@ func TestMutationCreateOrganization(t *testing.T) { displayName: parentOrg.Organization.DisplayName, orgDescription: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "display name with spaces should pass", @@ -383,14 +380,14 @@ func TestMutationCreateOrganization(t *testing.T) { displayName: gofakeit.Sentence(), orgDescription: gofakeit.HipsterSentence(), client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, }, { name: "invalid avatar file", orgName: ulids.New().String(), // use ulid to ensure uniqueness avatarFile: invalidAvatarFile, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, errorMsg: "unsupported mime type uploaded: text/plain", }, { @@ -400,7 +397,7 @@ func TestMutationCreateOrganization(t *testing.T) { AllowedEmailDomains: []string{"theopenlane"}, }, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, errorMsg: "invalid or unparsable field: domains", }, { @@ -410,7 +407,7 @@ func TestMutationCreateOrganization(t *testing.T) { Domains: []string{"theopenlane"}, }, client: suite.client.api, - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, errorMsg: "invalid or unparsable field: domains", }, } @@ -479,7 +476,7 @@ func TestMutationCreateOrganization(t *testing.T) { assert.Check(t, is.Len(resp.CreateOrganization.Organization.Setting.Domains, 1)) // make sure default org is updated if it's the first org created - userResp, err := tc.client.GetUserByID(tc.ctx, orgUser.ID) + userResp, err := tc.client.GetUserByID(tc.ctx, orgUser.owner.ID) assert.NilError(t, err) if tc.expectedDefaultOrgUpdate { @@ -502,7 +499,7 @@ func TestMutationCreateOrganization(t *testing.T) { } // ensure entity types are created - newCtx := auth.NewTestContextWithOrgID(orgUser.ID, resp.CreateOrganization.Organization.ID) + newCtx := auth.NewTestContextWithOrgID(orgUser.owner.ID, resp.CreateOrganization.Organization.ID) et, err := suite.client.api.GetEntityTypes(newCtx, &testclient.EntityTypeWhereInput{ OwnerID: &resp.CreateOrganization.Organization.ID, @@ -539,14 +536,13 @@ func TestMutationCreateOrganization(t *testing.T) { assert.Check(t, is.Len(managedGroups.Groups.Edges, num)) // cleanup org - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, ID: resp.CreateOrganization.Organization.ID}).MustDelete(orgUser.UserCtx, t) + (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, ID: resp.CreateOrganization.Organization.ID}).MustDelete(orgUser.owner.UserCtx, t) }) } } func TestMutationUpdateOrganization(t *testing.T) { - // create another user for this test - // so it doesn't interfere with the other tests + t.Parallel() orgUser := suite.userBuilder(context.Background(), t) nameUpdate := ulids.New().String() @@ -801,7 +797,7 @@ func TestMutationUpdateOrganization(t *testing.T) { DisplayName: &nameUpdate, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -858,19 +854,18 @@ func TestMutationUpdateOrganization(t *testing.T) { } func TestMutationDeleteOrganization(t *testing.T) { - // create another user for this test - // so it doesn't interfere with the other tests - orgUser := suite.userBuilder(context.Background(), t) + t.Parallel() + orgUser := suite.seedFreshMinimalOrgUsers(t, false) - reqCtx := orgUser.UserCtx + reqCtx := orgUser.owner.UserCtx - setting, err := suite.client.api.UpdateUserSetting(reqCtx, orgUser.UserInfo.Edges.Setting.ID, + setting, err := suite.client.api.UpdateUserSetting(reqCtx, orgUser.owner.UserInfo.Edges.Setting.ID, testclient.UpdateUserSettingInput{ - DefaultOrgID: &orgUser.OrganizationID, + DefaultOrgID: &orgUser.owner.OrganizationID, }, ) assert.NilError(t, err) - assert.Equal(t, orgUser.OrganizationID, setting.UpdateUserSetting.UserSetting.DefaultOrg.ID) + assert.Equal(t, orgUser.owner.OrganizationID, setting.UpdateUserSetting.UserSetting.DefaultOrg.ID) testCases := []struct { name string @@ -880,31 +875,31 @@ func TestMutationDeleteOrganization(t *testing.T) { }{ { name: "delete org, access denied", - orgID: viewOnlyUser.OrganizationID, - ctx: viewOnlyUser.UserCtx, + orgID: orgUser.owner.OrganizationID, + ctx: orgUser.member.UserCtx, errorMsg: notAuthorizedErrorMsg, }, { name: "delete org, not found", - orgID: orgUser.OrganizationID, - ctx: testUser2.UserCtx, + orgID: orgUser.owner.OrganizationID, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "delete org, happy path", - orgID: orgUser.OrganizationID, - ctx: orgUser.UserCtx, + orgID: orgUser.owner.OrganizationID, + ctx: orgUser.owner.UserCtx, }, { name: "delete org, personal org not allowed", - orgID: orgUser.PersonalOrgID, - ctx: orgUser.UserCtx, + orgID: orgUser.owner.PersonalOrgID, + ctx: orgUser.owner.UserCtx, errorMsg: "cannot delete personal organizations", }, { name: "delete org, not found", orgID: "tacos-tuesday", - ctx: orgUser.UserCtx, + ctx: orgUser.owner.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -927,13 +922,13 @@ func TestMutationDeleteOrganization(t *testing.T) { assert.Check(t, is.Equal(tc.orgID, resp.DeleteOrganization.DeletedID)) // update the context to have the correct org after the org is deleted - reqCtx := auth.NewTestContextWithOrgID(orgUser.ID, orgUser.OrganizationID) + reqCtx := auth.NewTestContextWithOrgID(orgUser.owner.ID, orgUser.owner.OrganizationID) // make sure the default org is reset - settingUpdated, err := suite.client.api.GetUserSettingByID(reqCtx, orgUser.UserInfo.Edges.Setting.ID) + settingUpdated, err := suite.client.api.GetUserSettingByID(reqCtx, orgUser.owner.UserInfo.Edges.Setting.ID) assert.NilError(t, err) assert.Assert(t, settingUpdated.UserSetting.DefaultOrg != nil) - assert.Check(t, orgUser.OrganizationID != settingUpdated.UserSetting.DefaultOrg.ID) + assert.Check(t, orgUser.owner.OrganizationID != settingUpdated.UserSetting.DefaultOrg.ID) // allow ctx to ensure the org no longer exists after deletion allowCtx := ent.NewContext(rule.WithInternalContext(reqCtx), suite.client.db) @@ -957,8 +952,6 @@ func TestMutationDeleteOrganization(t *testing.T) { func TestMutationOrganizationCascadeDelete(t *testing.T) { suite.enableGalaForTestSuite(t) - // create another user for this test - // so it doesn't interfere with the other tests orgUser := suite.userBuilder(context.Background(), t) org := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) diff --git a/internal/graphapi/orgmembers_test.go b/internal/graphapi/orgmembers_test.go index 3e8b7e19bc..bfa679c5aa 100644 --- a/internal/graphapi/orgmembers_test.go +++ b/internal/graphapi/orgmembers_test.go @@ -10,24 +10,25 @@ import ( is "gotest.tools/v3/assert/cmp" "github.com/theopenlane/core/common/enums" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/ent/hooks" "github.com/theopenlane/core/internal/graphapi/testclient" ) func TestQueryOrgMembers(t *testing.T) { - testOrgMemberUser := suite.userBuilder(context.Background(), t) - org1Member := (&OrgMemberBuilder{client: suite.client}).MustNew(testOrgMemberUser.UserCtx, t) + t.Parallel() - pm := (&ProgramMemberBuilder{client: suite.client}).MustNew(testOrgMemberUser.UserCtx, t) + localTestOrg := suite.seedFreshOrgUsers(t) + org1Member := localTestOrg.member - childOrg := (&OrganizationBuilder{client: suite.client, ParentOrgID: testOrgMemberUser.OrganizationID}).MustNew(testOrgMemberUser.UserCtx, t) + pm := (&ProgramMemberBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) - childReqCtx := auth.NewTestContextWithOrgID(testOrgMemberUser.ID, childOrg.ID) + childOrg := (&OrganizationBuilder{client: suite.client, ParentOrgID: localTestOrg.owner.OrganizationID}).MustNew(localTestOrg.owner.UserCtx, t) + + childReqCtx := auth.NewTestContextWithOrgID(localTestOrg.owner.ID, childOrg.ID) (&OrgMemberBuilder{client: suite.client}).MustNew(childReqCtx, t) - (&OrgMemberBuilder{client: suite.client, UserID: org1Member.UserID}).MustNew(childReqCtx, t) + (&OrgMemberBuilder{client: suite.client, UserID: org1Member.ID}).MustNew(childReqCtx, t) testCases := []struct { name string @@ -41,22 +42,22 @@ func TestQueryOrgMembers(t *testing.T) { }{ { name: "happy path, get org members by org id", - queryID: testOrgMemberUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: testOrgMemberUser.UserCtx, - expectedLen: 3, + ctx: localTestOrg.owner.UserCtx, + expectedLen: 5, }, { name: "happy path, get org with parent members based on context", client: suite.client.api, ctx: childReqCtx, - expectedLen: 4, // 2 from child org, 2 from parent org because we dedupe plus the program member + expectedLen: 6, // 2 from child org, 4 from parent org because we dedupe plus the program member }, { name: "where input, get members in program", - queryID: testOrgMemberUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: testOrgMemberUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, whereInput: &testclient.OrgMembershipWhereInput{ HasUserWith: []*testclient.UserWhereInput{ { @@ -72,9 +73,9 @@ func TestQueryOrgMembers(t *testing.T) { }, { name: "where input, get members not in program", - queryID: testOrgMemberUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: testOrgMemberUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, whereInput: &testclient.OrgMembershipWhereInput{ Not: &testclient.OrgMembershipWhereInput{ HasUserWith: []*testclient.UserWhereInput{ @@ -88,14 +89,14 @@ func TestQueryOrgMembers(t *testing.T) { }, }, }, - expectedLen: 1, // everyone not the owner and the program member + expectedLen: 3, }, { name: "where input, get members in program, after deleting a member", deleteProgramMember: true, - queryID: testOrgMemberUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: testOrgMemberUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, whereInput: &testclient.OrgMembershipWhereInput{ HasUserWith: []*testclient.UserWhereInput{ { @@ -118,9 +119,9 @@ func TestQueryOrgMembers(t *testing.T) { }, { name: "no access", - queryID: testOrgMemberUser.OrganizationID, + queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedLen: 0, expectErr: false, // no org members returned }, @@ -128,7 +129,7 @@ func TestQueryOrgMembers(t *testing.T) { name: "invalid-id", queryID: "tacos-for-dinner", client: suite.client.api, - ctx: testOrgMemberUser.UserCtx, + ctx: localTestOrg.owner.UserCtx, expectedLen: 0, expectErr: false, // no org members returned }, @@ -174,26 +175,27 @@ func TestQueryOrgMembers(t *testing.T) { } // delete created org - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, IDs: []string{childOrg.ID, testOrgMemberUser.OrganizationID}}).MustDelete(testOrgMemberUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationCreateOrgMembers(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() - org1 := (&OrganizationBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + localTestOrg := suite.seedFreshOrgUsers(t) + org1ID := localTestOrg.owner.OrganizationID - userCtx := auth.NewTestContextWithOrgID(testUser.ID, org1.ID) - personalOrgCtx := auth.NewTestContextWithOrgID(testUser.ID, testUser.PersonalOrgID) + userCtx := localTestOrg.owner.UserCtx + personalOrgCtx := auth.NewTestContextWithOrgID(localTestOrg.owner.ID, localTestOrg.owner.PersonalOrgID) - user1 := (&UserBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - user2 := (&UserBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - user3 := (&UserBuilder{client: suite.client, Email: "mitb2@anderson.io", FirstName: "FirstName!@"}).MustNew(testUser.UserCtx, t) + user1 := (&UserBuilder{client: suite.client}).MustNew(userCtx, t) + user2 := (&UserBuilder{client: suite.client}).MustNew(userCtx, t) + user3 := (&UserBuilder{client: suite.client, Email: "mitb2@anderson.io", FirstName: "FirstName!@"}).MustNew(userCtx, t) - userWithValidDomain := (&UserBuilder{client: suite.client, Email: "matt@anderson.net"}).MustNew(testUser.UserCtx, t) - userWithInvalidDomain := (&UserBuilder{client: suite.client, Email: "mitb@example.com"}).MustNew(testUser.UserCtx, t) + userWithValidDomain := (&UserBuilder{client: suite.client, Email: "matt@anderson.net"}).MustNew(userCtx, t) + userWithInvalidDomain := (&UserBuilder{client: suite.client, Email: "mitb@example.com"}).MustNew(userCtx, t) - orgWithRestrictions := (&OrganizationBuilder{client: suite.client, AllowedDomains: []string{"anderson.io", "anderson.net"}}).MustNew(testUser.UserCtx, t) - otherOrgCtx := auth.NewTestContextWithOrgID(testUser.ID, orgWithRestrictions.ID) + orgWithRestrictions := (&OrganizationBuilder{client: suite.client, AllowedDomains: []string{"anderson.io", "anderson.net"}}).MustNew(localTestOrg.owner.UserCtx, t) + otherOrgCtx := auth.NewTestContextWithOrgID(localTestOrg.owner.ID, orgWithRestrictions.ID) testCases := []struct { name string @@ -205,7 +207,7 @@ func TestMutationCreateOrgMembers(t *testing.T) { }{ { name: "happy path, add admin", - orgID: org1.ID, + orgID: org1ID, userID: user1.ID, ctx: userCtx, role: enums.RoleAdmin, @@ -227,7 +229,7 @@ func TestMutationCreateOrgMembers(t *testing.T) { }, { name: "happy path, add member in org with allowed domains", - orgID: org1.ID, + orgID: org1ID, userID: user2.ID, ctx: userCtx, role: enums.RoleMember, @@ -242,7 +244,7 @@ func TestMutationCreateOrgMembers(t *testing.T) { }, { name: "duplicate user, different role", - orgID: org1.ID, + orgID: org1ID, userID: user1.ID, role: enums.RoleMember, ctx: userCtx, @@ -250,15 +252,15 @@ func TestMutationCreateOrgMembers(t *testing.T) { }, { name: "cannot add self to organization", - orgID: org1.ID, - userID: testUser2.ID, + orgID: org1ID, + userID: sharedTestUser2.ID, role: enums.RoleMember, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errMsg: notAuthorizedErrorMsg, }, { name: "add user to personal org not allowed", - orgID: testUser.PersonalOrgID, + orgID: localTestOrg.owner.PersonalOrgID, userID: user1.ID, role: enums.RoleMember, ctx: personalOrgCtx, @@ -266,7 +268,7 @@ func TestMutationCreateOrgMembers(t *testing.T) { }, { name: "invalid user", - orgID: org1.ID, + orgID: org1ID, userID: ulids.New().String(), role: enums.RoleMember, ctx: userCtx, @@ -274,15 +276,15 @@ func TestMutationCreateOrgMembers(t *testing.T) { }, { name: "no access", - orgID: org1.ID, + orgID: org1ID, userID: user1.ID, role: enums.RoleMember, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { name: "invalid role", - orgID: org1.ID, + orgID: org1ID, userID: user1.ID, role: enums.RoleInvalid, ctx: userCtx, @@ -313,31 +315,32 @@ func TestMutationCreateOrgMembers(t *testing.T) { assert.Check(t, is.Equal(tc.role, resp.CreateOrgMembership.OrgMembership.Role)) // make sure the user default org is set to the new org - suite.assertDefaultOrgUpdate(testUser1.UserCtx, t, tc.userID, tc.orgID, true) + suite.assertDefaultOrgUpdate(sharedTestUser1.UserCtx, t, tc.userID, tc.orgID, true) }) } // delete created org and users - (&Cleanup[*generated.OrganizationDeleteOne]{client: suite.client.db.Organization, IDs: []string{org1.ID, orgWithRestrictions.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.UserDeleteOne]{client: suite.client.db.User, IDs: []string{user1.ID, user2.ID}}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(otherOrgCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationUpdateOrgMembers(t *testing.T) { // create another user for this test // so it doesn't interfere with the other tests - testUserOrg := suite.userBuilder(context.Background(), t) + t.Parallel() - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUserOrg.UserCtx, t) + localTestOrg := suite.seedOrgOwner(t) - orgMembers, err := suite.client.api.GetOrgMembersByOrgID(testUserOrg.UserCtx, &testclient.OrgMembershipWhereInput{ - OrganizationID: &testUserOrg.OrganizationID, + om := (&OrgMemberBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) + orgMembers, err := suite.client.api.GetOrgMembersByOrgID(localTestOrg.owner.UserCtx, &testclient.OrgMembershipWhereInput{ + OrganizationID: &localTestOrg.owner.OrganizationID, }) assert.NilError(t, err) testUserOrgMember := "" for _, edge := range orgMembers.OrgMemberships.Edges { - if edge.Node.UserID == testUserOrg.ID { + if edge.Node.UserID == localTestOrg.owner.ID { testUserOrgMember = edge.Node.ID break } @@ -372,7 +375,7 @@ func TestMutationUpdateOrgMembers(t *testing.T) { }, { name: "invalid role", - orgMemberID: om.ID, + orgMemberID: testUserOrgMember, role: enums.RoleInvalid, errMsg: "not a valid OrgMembershipRole", }, @@ -384,7 +387,7 @@ func TestMutationUpdateOrgMembers(t *testing.T) { Role: &tc.role, } - resp, err := suite.client.api.UpdateUserRoleInOrg(testUserOrg.UserCtx, tc.orgMemberID, input) + resp, err := suite.client.api.UpdateUserRoleInOrg(localTestOrg.owner.UserCtx, tc.orgMemberID, input) if tc.errMsg != "" { assert.ErrorContains(t, err, tc.errMsg) @@ -399,58 +402,62 @@ func TestMutationUpdateOrgMembers(t *testing.T) { } // delete created org members - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: om.ID}).MustDelete(testUserOrg.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationDeleteOrgMembers(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() + + localTestOrg := suite.seedOrgOwner(t) - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - adminOrgMember := (&OrgMemberBuilder{client: suite.client, Role: string(enums.RoleAdmin)}).MustNew(testUser.UserCtx, t) + om := (&OrgMemberBuilder{client: suite.client}).MustNew(localTestOrg.owner.UserCtx, t) + adminOrgMember := (&OrgMemberBuilder{client: suite.client, Role: string(enums.RoleAdmin)}).MustNew(localTestOrg.owner.UserCtx, t) // create admin user context - adminUserCtx := auth.NewTestContextWithOrgID(adminOrgMember.UserID, testUser.OrganizationID) + adminUserCtx := auth.NewTestContextWithOrgID(adminOrgMember.UserID, localTestOrg.owner.OrganizationID) - resp, err := suite.client.api.RemoveUserFromOrg(testUser.UserCtx, om.ID) + resp, err := suite.client.api.RemoveUserFromOrg(localTestOrg.owner.UserCtx, om.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(om.ID, resp.DeleteOrgMembership.DeletedID)) // make sure the user default org is not set to the deleted org - suite.assertDefaultOrgUpdate(testUser.UserCtx, t, om.UserID, om.OrganizationID, false) + suite.assertDefaultOrgUpdate(localTestOrg.owner.UserCtx, t, om.UserID, om.OrganizationID, false) // re-adding the user to the org should succeed since the org membership // is deleted and the managed group is properly cleaned up - reAddResp, err := suite.client.api.AddUserToOrgWithRole(testUser.UserCtx, testclient.CreateOrgMembershipInput{ - OrganizationID: om.OrganizationID, + reAddResp, err := suite.client.api.AddUserToOrgWithRole(localTestOrg.owner.UserCtx, testclient.CreateOrgMembershipInput{ + OrganizationID: localTestOrg.owner.OrganizationID, UserID: om.UserID, - Role: &om.Role, + Role: &enums.RoleAdmin, }) assert.NilError(t, err) assert.Assert(t, reAddResp != nil) // cant remove self from org and owners cannot be removed - orgMembers, err := suite.client.api.GetOrgMembersByOrgID(testUser.UserCtx, &testclient.OrgMembershipWhereInput{ - OrganizationID: &testUser.OrganizationID, + orgMembers, err := suite.client.api.GetOrgMembersByOrgID(localTestOrg.owner.UserCtx, &testclient.OrgMembershipWhereInput{ + OrganizationID: &localTestOrg.owner.OrganizationID, }) assert.NilError(t, err) for _, edge := range orgMembers.OrgMemberships.Edges { // cannot delete self - if edge.Node.UserID == adminUser.ID { + if edge.Node.UserID == sharedAdminUser.ID { _, err := suite.client.api.RemoveUserFromOrg(adminUserCtx, edge.Node.ID) assert.ErrorContains(t, err, notAuthorizedErrorMsg) } // organization owner cannot be deleted - if edge.Node.UserID == testUser.ID { + if edge.Node.UserID == localTestOrg.owner.ID { _, err = suite.client.api.RemoveUserFromOrg(adminUserCtx, edge.Node.ID) assert.ErrorContains(t, err, "organization owner cannot be deleted") break } } + + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func (suite *GraphTestSuite) assertDefaultOrgUpdate(ctx context.Context, t *testing.T, userID, orgID string, isEqual bool) { diff --git a/internal/graphapi/orgtransfer_test.go b/internal/graphapi/orgtransfer_test.go index 5833b43f36..b9b2b76dca 100644 --- a/internal/graphapi/orgtransfer_test.go +++ b/internal/graphapi/orgtransfer_test.go @@ -16,16 +16,16 @@ import ( func TestMutationTransferOrganizationOwnership(t *testing.T) { // Create an existing member user to transfer ownership to - existingMember := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + existingMember := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) memberRole := enums.RoleMember.String() membershipID := (&OrgMemberBuilder{ client: suite.client, UserID: existingMember.ID, Role: memberRole, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // Create a non-member user (exists but not in the org) - nonMemberUser := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + nonMemberUser := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create a different organization owner for negative test cases otherOwner := suite.userBuilder(context.Background(), t) @@ -43,7 +43,7 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { name: "happy path, transfer to existing member", newOwnerEmail: existingMember.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedInvite: false, checkTransfer: true, }, @@ -51,35 +51,35 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { name: "happy path, transfer to non-member (sends invitation)", newOwnerEmail: nonMemberUser.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedInvite: true, }, { name: "happy path, transfer to new user (sends invitation)", newOwnerEmail: "new-owner@theopenlane.io", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedInvite: true, }, { name: "not owner, permission denied", newOwnerEmail: "someone@theopenlane.io", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "different org owner, no access", newOwnerEmail: "someone@theopenlane.io", client: suite.client.api, - ctx: auth.NewTestContextWithOrgID(otherOwner.ID, testUser1.OrganizationID), + ctx: auth.NewTestContextWithOrgID(otherOwner.ID, sharedTestUser1.OrganizationID), expectedErr: notFoundErrorMsg, }, { name: "invalid email", newOwnerEmail: "invalid-email", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "email domain not allowed in organization", }, } @@ -95,7 +95,7 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) - assert.Check(t, is.Equal(testUser1.OrganizationID, resp.TransferOrganizationOwnership.Organization.ID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, resp.TransferOrganizationOwnership.Organization.ID)) assert.Check(t, is.Equal(tc.expectedInvite, resp.TransferOrganizationOwnership.InvitationSent)) // If checkTransfer is true, verify the ownership was actually transferred @@ -105,7 +105,7 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { // Verify new owner has OWNER role newOwnerMembership, err := suite.client.db.OrgMembership.Query(). Where( - orgmembership.OrganizationID(testUser1.OrganizationID), + orgmembership.OrganizationID(sharedTestUser1.OrganizationID), orgmembership.UserID(existingMember.ID), ). Only(allowCtx) @@ -115,8 +115,8 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { // Verify old owner has ADMIN role oldOwnerMembership, err := suite.client.db.OrgMembership.Query(). Where( - orgmembership.OrganizationID(testUser1.OrganizationID), - orgmembership.UserID(testUser1.ID), + orgmembership.OrganizationID(sharedTestUser1.OrganizationID), + orgmembership.UserID(sharedTestUser1.ID), ). Only(allowCtx) assert.NilError(t, err) @@ -124,13 +124,13 @@ func TestMutationTransferOrganizationOwnership(t *testing.T) { // Transfer back to original owner for other tests // Use auth context with proper org ID - transferBackCtx := auth.NewTestContextWithOrgID(existingMember.ID, testUser1.OrganizationID) - _, err = suite.client.api.TransferOrganizationOwnership(transferBackCtx, testUser1.UserInfo.Email) + transferBackCtx := auth.NewTestContextWithOrgID(existingMember.ID, sharedTestUser1.OrganizationID) + _, err = suite.client.api.TransferOrganizationOwnership(transferBackCtx, sharedTestUser1.UserInfo.Email) assert.NilError(t, err) } }) } // Cleanup - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: membershipID.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: membershipID.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/personalaccesstoken_test.go b/internal/graphapi/personalaccesstoken_test.go index 4a0b06fb8b..ac54dabdd1 100644 --- a/internal/graphapi/personalaccesstoken_test.go +++ b/internal/graphapi/personalaccesstoken_test.go @@ -18,7 +18,7 @@ import ( ) func TestQueryPersonalAccessToken(t *testing.T) { - token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -29,18 +29,18 @@ func TestQueryPersonalAccessToken(t *testing.T) { { name: "happy path pat", queryID: token.ID, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: notFoundErrorMsg, queryID: "notfound", - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: notFoundErrorMsg, queryID: "notfound", - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -65,15 +65,15 @@ func TestQueryPersonalAccessToken(t *testing.T) { (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: token.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryPersonalAccessTokens(t *testing.T) { - (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create a token for another user - (&PersonalAccessTokenBuilder{client: suite.client, OrganizationIDs: []string{testUser2.OrganizationID}}).MustNew(testUser2.UserCtx, t) + (&PersonalAccessTokenBuilder{client: suite.client, OrganizationIDs: []string{sharedTestUser2.OrganizationID}}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -86,7 +86,7 @@ func TestQueryPersonalAccessTokens(t *testing.T) { for _, tc := range testCases { t.Run("List "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.GetAllPersonalAccessTokens(testUser1.UserCtx) + resp, err := suite.client.api.GetAllPersonalAccessTokens(sharedTestUser1.UserCtx) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -141,7 +141,7 @@ func TestMutationCreatePersonalAccessToken(t *testing.T) { Name: "forthethingz", Description: &tokenDescription, ExpiresAt: &expiration30Days, - OrganizationIDs: []string{testUser1.OrganizationID, testUser1.PersonalOrgID}, + OrganizationIDs: []string{sharedTestUser1.OrganizationID, sharedTestUser1.PersonalOrgID}, }, }, { @@ -168,7 +168,7 @@ func TestMutationCreatePersonalAccessToken(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.CreatePersonalAccessToken(testUser1.UserCtx, tc.input) + resp, err := suite.client.api.CreatePersonalAccessToken(sharedTestUser1.UserCtx, tc.input) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -200,7 +200,7 @@ func TestMutationCreatePersonalAccessToken(t *testing.T) { } // ensure the owner is the user that made the request - assert.Check(t, is.Equal(testUser1.ID, resp.CreatePersonalAccessToken.PersonalAccessToken.Owner.ID)) + assert.Check(t, is.Equal(sharedTestUser1.ID, resp.CreatePersonalAccessToken.PersonalAccessToken.Owner.ID)) // token should not be redacted on create assert.Check(t, redacted != resp.CreatePersonalAccessToken.PersonalAccessToken.Token) @@ -212,7 +212,7 @@ func TestMutationCreatePersonalAccessToken(t *testing.T) { (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: resp.CreatePersonalAccessToken.PersonalAccessToken.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }) } } @@ -220,13 +220,13 @@ func TestMutationCreatePersonalAccessToken(t *testing.T) { func TestMutationUpdatePersonalAccessToken(t *testing.T) { token := (&PersonalAccessTokenBuilder{ client: suite.client, - OrganizationIDs: []string{testUser1.PersonalOrgID}, + OrganizationIDs: []string{sharedTestUser1.PersonalOrgID}, ExpiresAt: lo.ToPtr(time.Now().Add(time.Hour * 24 * 30))}). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) tokenOther := (&PersonalAccessTokenBuilder{ - client: suite.client, OrganizationIDs: []string{testUser2.OrganizationID}}). - MustNew(testUser2.UserCtx, t) + client: suite.client, OrganizationIDs: []string{sharedTestUser2.OrganizationID}}). + MustNew(sharedTestUser2.UserCtx, t) tokenDescription := gofakeit.Sentence() tokenName := gofakeit.Word() @@ -255,14 +255,14 @@ func TestMutationUpdatePersonalAccessToken(t *testing.T) { name: "happy path, add org", tokenID: token.ID, input: testclient.UpdatePersonalAccessTokenInput{ - AddOrganizationIDs: []string{testUser1.OrganizationID}, + AddOrganizationIDs: []string{sharedTestUser1.OrganizationID}, }, }, { name: "happy path, remove org", tokenID: token.ID, input: testclient.UpdatePersonalAccessTokenInput{ - RemoveOrganizationIDs: []string{testUser1.OrganizationID}, + RemoveOrganizationIDs: []string{sharedTestUser1.OrganizationID}, }, }, { @@ -285,7 +285,7 @@ func TestMutationUpdatePersonalAccessToken(t *testing.T) { for _, tc := range testCases { t.Run("Update "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.UpdatePersonalAccessToken(testUser1.UserCtx, tc.tokenID, tc.input) + resp, err := suite.client.api.UpdatePersonalAccessToken(sharedTestUser1.UserCtx, tc.tokenID, tc.input) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -320,7 +320,7 @@ func TestMutationUpdatePersonalAccessToken(t *testing.T) { assert.Check(t, is.Len(resp.UpdatePersonalAccessToken.PersonalAccessToken.Organizations.Edges, 1)) } - assert.Check(t, is.Equal(testUser1.ID, resp.UpdatePersonalAccessToken.PersonalAccessToken.Owner.ID)) + assert.Check(t, is.Equal(sharedTestUser1.ID, resp.UpdatePersonalAccessToken.PersonalAccessToken.Owner.ID)) // token should be redacted on update assert.Check(t, is.Equal(redacted, resp.UpdatePersonalAccessToken.PersonalAccessToken.Token)) @@ -328,7 +328,7 @@ func TestMutationUpdatePersonalAccessToken(t *testing.T) { } // update expiration date - _, err := suite.client.api.UpdatePersonalAccessToken(testUser1.UserCtx, token.ID, testclient.UpdatePersonalAccessTokenInput{ + _, err := suite.client.api.UpdatePersonalAccessToken(sharedTestUser1.UserCtx, token.ID, testclient.UpdatePersonalAccessTokenInput{ ExpiresAt: lo.ToPtr(time.Now().Add(time.Hour)), }) assert.NilError(t, err) @@ -337,18 +337,18 @@ func TestMutationUpdatePersonalAccessToken(t *testing.T) { (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: token.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: tokenOther.ID, - }).MustDelete(testUser2.UserCtx, t) + }).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationDeletePersonalAccessToken(t *testing.T) { - token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // token for another user - tokenOther := (&PersonalAccessTokenBuilder{client: suite.client, OrganizationIDs: []string{testUser2.OrganizationID}}).MustNew(testUser2.UserCtx, t) + tokenOther := (&PersonalAccessTokenBuilder{client: suite.client, OrganizationIDs: []string{sharedTestUser2.OrganizationID}}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -368,7 +368,7 @@ func TestMutationDeletePersonalAccessToken(t *testing.T) { for _, tc := range testCases { t.Run("Delete "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.DeletePersonalAccessToken(testUser1.UserCtx, tc.tokenID) + resp, err := suite.client.api.DeletePersonalAccessToken(sharedTestUser1.UserCtx, tc.tokenID) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -386,15 +386,15 @@ func TestMutationDeletePersonalAccessToken(t *testing.T) { (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: tokenOther.ID, - }).MustDelete(testUser2.UserCtx, t) + }).MustDelete(sharedTestUser2.UserCtx, t) } func TestLastUsedPersonalAccessToken(t *testing.T) { // create new personal access token - token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + token := (&PersonalAccessTokenBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // check that the last used is empty - res, err := suite.client.api.GetPersonalAccessTokenByID(testUser1.UserCtx, token.ID) + res, err := suite.client.api.GetPersonalAccessTokenByID(sharedTestUser1.UserCtx, token.ID) assert.NilError(t, err) assert.Check(t, res.PersonalAccessToken.LastUsedAt == nil) @@ -415,5 +415,5 @@ func TestLastUsedPersonalAccessToken(t *testing.T) { (&Cleanup[*generated.PersonalAccessTokenDeleteOne]{ client: suite.client.db.PersonalAccessToken, ID: token.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/platform_test.go b/internal/graphapi/platform_test.go index c8628bef9b..f576f847b8 100644 --- a/internal/graphapi/platform_test.go +++ b/internal/graphapi/platform_test.go @@ -18,7 +18,7 @@ import ( func TestQueryPlatform(t *testing.T) { // create an platform to be queried using testUser1 - platform := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + platform := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Platform testCases := []struct { @@ -32,13 +32,13 @@ func TestQueryPlatform(t *testing.T) { name: "happy path, same org user", queryID: platform.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, read only user", queryID: platform.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -50,14 +50,14 @@ func TestQueryPlatform(t *testing.T) { name: "Platform not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "Platform not found, using not authorized user", queryID: platform.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -80,13 +80,13 @@ func TestQueryPlatform(t *testing.T) { }) } - (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: platform.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: platform.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryPlatforms(t *testing.T) { // create multiple objects to be queried using testUser1 - platform1 := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - platform2 := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + platform1 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + platform2 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -97,13 +97,13 @@ func TestQueryPlatforms(t *testing.T) { { name: "happy path, admin user of the same org", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -121,7 +121,7 @@ func TestQueryPlatforms(t *testing.T) { { name: "another user, no Platforms should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -136,13 +136,13 @@ func TestQueryPlatforms(t *testing.T) { }) } - (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, IDs: []string{platform1.ID, platform2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, IDs: []string{platform1.ID, platform2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreatePlatform(t *testing.T) { - asset := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - vendor := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - asset2 := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + asset := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + vendor := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + asset2 := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) pdfFile := uploadFile(t, pdfFilePath) pngFile := uploadFile(t, logoFilePath) @@ -162,7 +162,7 @@ func TestMutationCreatePlatform(t *testing.T) { Name: gofakeit.AppName() + ulids.New().String(), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, admin user edges and files", @@ -182,7 +182,7 @@ func TestMutationCreatePlatform(t *testing.T) { dataFlowDiagrams: []*graphql.Upload{pdfFile}, trustBoundaryDiagrams: []*graphql.Upload{pdfFile}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, using pat", @@ -216,14 +216,14 @@ func TestMutationCreatePlatform(t *testing.T) { ScopeStatement: lo.ToPtr(gofakeit.Paragraph()), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required name field", request: testclient.CreatePlatformInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -311,32 +311,32 @@ func TestMutationCreatePlatform(t *testing.T) { } // cleanup each object created - (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: resp.CreatePlatform.Platform.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: resp.CreatePlatform.Platform.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup files created for the platform if len(tc.archDiagrams) > 0 { - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.ArchitectureDiagrams.Edges[0].Node.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.ArchitectureDiagrams.Edges[0].Node.ID}).MustDelete(sharedTestUser1.UserCtx, t) } if len(tc.dataFlowDiagrams) > 0 { - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.DataFlowDiagrams.Edges[0].Node.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.DataFlowDiagrams.Edges[0].Node.ID}).MustDelete(sharedTestUser1.UserCtx, t) } if len(tc.trustBoundaryDiagrams) > 0 { - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.TrustBoundaryDiagrams.Edges[0].Node.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: resp.CreatePlatform.Platform.TrustBoundaryDiagrams.Edges[0].Node.ID}).MustDelete(sharedTestUser1.UserCtx, t) } }) } // cleanup assets and entities created for the tests - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset.ID, asset2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset.ID, asset2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdatePlatform(t *testing.T) { - platform := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - asset := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - vendor := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - outOfScopeAsset := (&AssetBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - outOfScopeVendor := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + platform := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + asset := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + vendor := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + outOfScopeAsset := (&AssetBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + outOfScopeVendor := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) pngFile := uploadFile(t, logoFilePath) diagramFileId := "" @@ -361,7 +361,7 @@ func TestMutationUpdatePlatform(t *testing.T) { ContainsPii: lo.ToPtr(true), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update multiple fields with personal access token", @@ -381,14 +381,14 @@ func TestMutationUpdatePlatform(t *testing.T) { request: testclient.UpdatePlatformInput{}, archDiagrams: []*graphql.Upload{pngFile}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, remove diagram", request: testclient.UpdatePlatformInput{}, removeDiagram: true, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update not allowed, not enough permissions", @@ -396,7 +396,7 @@ func TestMutationUpdatePlatform(t *testing.T) { Name: lo.ToPtr("New Name"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -405,7 +405,7 @@ func TestMutationUpdatePlatform(t *testing.T) { Name: lo.ToPtr("New Name"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -481,19 +481,19 @@ func TestMutationUpdatePlatform(t *testing.T) { }) } - (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: platform.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.PlatformDeleteOne]{client: suite.client.db.Platform, ID: platform.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup assets and entities created for the tests - (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset.ID, outOfScopeAsset.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{vendor.ID, outOfScopeVendor.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssetDeleteOne]{client: suite.client.db.Asset, IDs: []string{asset.ID, outOfScopeAsset.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{vendor.ID, outOfScopeVendor.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup files created for the platform - (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: diagramFileId}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.FileDeleteOne]{client: suite.client.db.File, ID: diagramFileId}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeletePlatform(t *testing.T) { // create objects to be deleted - platform1 := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - platform2 := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - platform3 := (&PlatformBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + platform1 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + platform2 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + platform3 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -506,27 +506,27 @@ func TestMutationDeletePlatform(t *testing.T) { name: "not found, delete", idToDelete: platform1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: platform1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: platform1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: platform1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -545,7 +545,7 @@ func TestMutationDeletePlatform(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/procedure_test.go b/internal/graphapi/procedure_test.go index 9457896878..9a3cbd5c4a 100644 --- a/internal/graphapi/procedure_test.go +++ b/internal/graphapi/procedure_test.go @@ -20,8 +20,8 @@ import ( func TestQueryProcedure(t *testing.T) { // create an Procedure to be queried using testUser1 - procedure := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) // add test cases for querying the procedure testCases := []struct { @@ -35,13 +35,13 @@ func TestQueryProcedure(t *testing.T) { name: "happy path", queryID: procedure.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: procedure.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -53,14 +53,14 @@ func TestQueryProcedure(t *testing.T) { name: "procedure not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "procedure not found, using not authorized user", queryID: procedure.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -92,16 +92,16 @@ func TestQueryProcedure(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryProcedures(t *testing.T) { // create multiple Procedures to be queried using testUser1 - p1 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - p2 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + p1 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + p2 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add procedure for another org; it should not be returned in the list - p3 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + p3 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -112,13 +112,13 @@ func TestQueryProcedures(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -136,7 +136,7 @@ func TestQueryProcedures(t *testing.T) { { name: "another user, no procedures should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 1, }, } @@ -152,18 +152,18 @@ func TestQueryProcedures(t *testing.T) { } // cleanup procedures created for the test - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: []string{p1.ID, p2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: p3.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: []string{p1.ID, p2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: p3.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationCreateProcedure(t *testing.T) { - anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // group for the view only user - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - approverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + approverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -179,7 +179,7 @@ func TestMutationCreateProcedure(t *testing.T) { Name: "Test Procedure", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input except edges, you should have to have view access to a group to add it as an edge on this object", @@ -192,33 +192,33 @@ func TestMutationCreateProcedure(t *testing.T) { DelegateID: &delegateGroup.ID, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "add editor group", request: testclient.CreateProcedureInput{ Name: "Test Procedure", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{anotherGroup.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "add editor group, again - ensures the same group can be added to multiple procedures", request: testclient.CreateProcedureInput{ Name: "Test Procedure", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{anotherGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateProcedureInput{ Name: "Test Procedure", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -227,7 +227,7 @@ func TestMutationCreateProcedure(t *testing.T) { name: "happy path with details, using pat", request: testclient.CreateProcedureInput{ Name: "Test Procedure", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, Details: lo.ToPtr(gofakeit.Sentence()), }, client: suite.client.apiWithPAT, @@ -247,7 +247,7 @@ func TestMutationCreateProcedure(t *testing.T) { Name: "Test Procedure", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -257,7 +257,7 @@ func TestMutationCreateProcedure(t *testing.T) { }, addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "missing required field", @@ -265,7 +265,7 @@ func TestMutationCreateProcedure(t *testing.T) { Details: lo.ToPtr("instructions on how to release a new version"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -273,7 +273,7 @@ func TestMutationCreateProcedure(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddProcedureCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -344,34 +344,34 @@ func TestMutationCreateProcedure(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: resp.CreateProcedure.Procedure.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: resp.CreateProcedure.Procedure.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } // cleanup group created for the test - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{anotherGroup.ID, groupMember.GroupID, approverGroup.ID, delegateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{anotherGroup.ID, groupMember.GroupID, approverGroup.ID, delegateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateProcedure(t *testing.T) { // create procedure to be updated - procedure := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create a viewer user and add them to the same organization as testUser1 // also add them to the same group as testUser1, this should still allow them to edit the procedure // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // create one more group that will be used to test the blocked group permissions and add anotherViewerUser to it - blockGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(testUser1.UserCtx, t) + blockGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) - approverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anotherApproverGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anotherDelegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + approverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anotherApproverGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anotherDelegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) log.Error().Msg("starting test cases") log.Error().Str("procedureID", procedure.ID).Str("revision", procedure.Revision).Msg("Procedure created for testing") @@ -387,12 +387,12 @@ func TestMutationUpdateProcedure(t *testing.T) { name: "happy path, update name field, and add group", request: testclient.UpdateProcedureInput{ Name: lo.ToPtr("Updated Procedure Name"), - AddEditorIDs: []string{testUser1.GroupID}, // add the group to the editor groups for subsequent tests + AddEditorIDs: []string{sharedTestUser1.GroupID}, // add the group to the editor groups for subsequent tests ApproverID: &approverGroup.ID, DelegateID: &delegateGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -404,7 +404,7 @@ func TestMutationUpdateProcedure(t *testing.T) { DelegateID: &anotherDelegateGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update not allowed, not enough permissions", @@ -412,16 +412,16 @@ func TestMutationUpdateProcedure(t *testing.T) { Name: lo.ToPtr("Updated Procedure Name"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { - name: "update not allowed, not enough permissions", + name: "update allowed by admin user", request: testclient.UpdateProcedureInput{ Name: lo.ToPtr("Updated Procedure Name Meow"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update allowed, details updated by admin", @@ -429,7 +429,7 @@ func TestMutationUpdateProcedure(t *testing.T) { Details: lo.ToPtr(gofakeit.Sentence()), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "member update allowed, user in editor group", @@ -445,7 +445,7 @@ func TestMutationUpdateProcedure(t *testing.T) { AddBlockedGroupIDs: []string{blockGroup.ID}, // block the group }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "member update no longer allowed, user in blocked group", @@ -459,10 +459,10 @@ func TestMutationUpdateProcedure(t *testing.T) { { name: "happy path, remove the group", request: testclient.UpdateProcedureInput{ - RemoveEditorIDs: []string{testUser1.GroupID}, // remove the group from the editor groups + RemoveEditorIDs: []string{sharedTestUser1.GroupID}, // remove the group from the editor groups }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update not allowed, editor group was removed", @@ -479,7 +479,7 @@ func TestMutationUpdateProcedure(t *testing.T) { Details: lo.ToPtr("Updated details"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -532,14 +532,14 @@ func TestMutationUpdateProcedure(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID, approverGroup.ID, delegateGroup.ID, anotherApproverGroup.ID, anotherDelegateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID, approverGroup.ID, delegateGroup.ID, anotherApproverGroup.ID, anotherDelegateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteProcedure(t *testing.T) { // create procedures to be deleted - procedure1 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + procedure1 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -552,20 +552,20 @@ func TestMutationDeleteProcedure(t *testing.T) { name: "not authorized, delete", idToDelete: procedure1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: procedure1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: procedure1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -578,7 +578,7 @@ func TestMutationDeleteProcedure(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -600,26 +600,23 @@ func TestMutationDeleteProcedure(t *testing.T) { } func TestMutationUpdateBulkProcedure(t *testing.T) { - newUser := suite.userBuilder(context.Background(), t) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + newUser := localTestOrg.owner + adminUser := localTestOrg.admin + // create procedures to be updated procedure1 := (&ProcedureBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) procedure3 := (&ProcedureBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) approverGroup := (&GroupBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - - // create another user and add them to the same organization and group as testUser1 - // this will allow us to test the group editor permissions - anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(newUser.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, newUser.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(newUser.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: adminUser.ID}).MustNew(newUser.UserCtx, t) - procedureAnotherUser := (&ProcedureBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + procedureAnotherUser := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // ensure the user does not currently have access to update the procedure - res, err := suite.client.api.UpdateBulkProcedure(testUser2.UserCtx, []string{procedure1.ID}, testclient.UpdateProcedureInput{ + res, err := suite.client.api.UpdateBulkProcedure(sharedTestUser2.UserCtx, []string{procedure1.ID}, testclient.UpdateProcedureInput{ Status: lo.ToPtr(enums.DocumentPublished), }) @@ -684,7 +681,7 @@ func TestMutationUpdateBulkProcedure(t *testing.T) { Status: &enums.DocumentPublished, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any procedures to update }, } @@ -753,7 +750,7 @@ func TestMutationUpdateBulkProcedure(t *testing.T) { if len(tc.input.AddEditorIDs) > 0 { // ensure the user has access to the procedure now - res, err := suite.client.api.UpdateProcedure(anotherAdminUser.UserCtx, responseProcedure.ID, testclient.UpdateProcedureInput{ + res, err := suite.client.api.UpdateProcedure(adminUser.UserCtx, responseProcedure.ID, testclient.UpdateProcedureInput{ Tags: []string{"bulk-test-tag"}, }) assert.NilError(t, err) @@ -775,7 +772,6 @@ func TestMutationUpdateBulkProcedure(t *testing.T) { }) } - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: []string{procedure1.ID, procedure2.ID, procedure3.ID}}).MustDelete(newUser.UserCtx, t) - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedureAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{approverGroup.ID, delegateGroup.ID, groupMember.GroupID}}).MustDelete(newUser.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedureAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + cleanupOrganizationDataWithContext(newUser.UserCtx, t) } diff --git a/internal/graphapi/program_test.go b/internal/graphapi/program_test.go index 8c1e81b114..71a3941956 100644 --- a/internal/graphapi/program_test.go +++ b/internal/graphapi/program_test.go @@ -6,6 +6,7 @@ import ( "time" "github.com/samber/lo" + "github.com/theopenlane/iam/auth" "github.com/theopenlane/utils/ulids" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" @@ -20,12 +21,12 @@ const errStartDateLaterThanEndDate = "mutation's start date cannot be later than func TestQueryProgram(t *testing.T) { // create program1 with a linked procedure and policy - program1 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(adminUser.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(sharedAdminUser.UserCtx, t) - archivedProgram := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true, Status: enums.ProgramStatusArchived}).MustNew(adminUser.UserCtx, t) + archivedProgram := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true, Status: enums.ProgramStatusArchived}).MustNew(sharedAdminUser.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) testCases := []struct { name string @@ -39,14 +40,14 @@ func TestQueryProgram(t *testing.T) { name: "happy path", queryID: program1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: program1, }, { name: "happy path, program created by admin user", queryID: program2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResult: program2, }, { @@ -67,14 +68,14 @@ func TestQueryProgram(t *testing.T) { name: "no access, user of same org", queryID: program1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "no access, user of different org", queryID: program1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -107,7 +108,7 @@ func TestQueryProgram(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup procedure and policy procedureIDs := []string{} for _, p := range program1.Edges.Procedures { @@ -118,20 +119,20 @@ func TestQueryProgram(t *testing.T) { policyIDs = append(policyIDs, p.ID) } - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: procedureIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: policyIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: procedureIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: policyIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryPrograms(t *testing.T) { // programs for the first organization with a linked procedure and policy - program1 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(testUser1.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(sharedTestUser1.UserCtx, t) // program created by an admin user of the first organization with a linked procedure and policy - program3 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(adminUser.UserCtx, t) + program3 := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true}).MustNew(sharedAdminUser.UserCtx, t) // archived program for the first organization - archivedProgram := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true, Status: enums.ProgramStatusArchived}).MustNew(testUser1.UserCtx, t) + archivedProgram := (&ProgramBuilder{client: suite.client, WithProcedure: true, WithPolicy: true, Status: enums.ProgramStatusArchived}).MustNew(sharedTestUser1.UserCtx, t) // program for the other organization with a linked procedure and policy anotherUser := suite.userBuilder(context.Background(), t) @@ -147,7 +148,7 @@ func TestQueryPrograms(t *testing.T) { { name: "happy path, org owner should see all programs", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 3, // archived programs not listed by default }, { @@ -159,13 +160,19 @@ func TestQueryPrograms(t *testing.T) { { name: "view only user has not been added to any programs", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 0, }, + { + name: "super admin should see all programs in the org", + client: suite.client.api, + ctx: sharedSuperAdminUser.UserCtx, + expectedResults: 3, // archived programs not listed by default + }, { name: "admin user should see the program they created", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 1, }, { @@ -199,7 +206,7 @@ func TestQueryPrograms(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID, program3.ID, archivedProgram.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID, program3.ID, archivedProgram.ID}}).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program4.ID}).MustDelete(anotherUser.UserCtx, t) // cleanup procedures and policies @@ -237,9 +244,9 @@ func TestQueryPrograms(t *testing.T) { policyIDs = append(policyIDs, p.ID) } - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: procedureIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, IDs: procedureIDs}).MustDelete(sharedTestUser1.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: policyIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, IDs: policyIDs}).MustDelete(sharedTestUser1.UserCtx, t) // we can ignore the cleanup for the new user, it won't conflict with other tests } @@ -248,17 +255,18 @@ func TestMutationCreateProgram(t *testing.T) { startDate := time.Now().AddDate(0, 0, 1) endDate := time.Now().AddDate(0, 0, 360) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + groupMemberUserCtx := auth.NewTestContextWithOrgID(groupMember.UserID, sharedTestUser1.OrganizationID) // Create some edge objects - procedure := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // group that the user does not have access to (for testing permissions) - anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + anotherGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) programIDsToCleanup := []string{} testCases := []struct { @@ -275,7 +283,7 @@ func TestMutationCreateProgram(t *testing.T) { Name: "mitb program", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all basic input", @@ -283,7 +291,7 @@ func TestMutationCreateProgram(t *testing.T) { Name: "mitb program", Description: lo.ToPtr("being the best"), FrameworkName: lo.ToPtr("SOC 2"), - ProgramOwnerID: &testUser1.ID, + ProgramOwnerID: &sharedTestUser1.ID, Status: &enums.ProgramStatusInProgress, StartDate: &startDate, EndDate: &endDate, @@ -295,7 +303,7 @@ func TestMutationCreateProgram(t *testing.T) { AuditorEmail: lo.ToPtr("m@meow-audit.com"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, edges", @@ -303,22 +311,22 @@ func TestMutationCreateProgram(t *testing.T) { Name: "mitb program", ProcedureIDs: []string{procedure.ID}, InternalPolicyIDs: []string{policy.ID}, - ProgramOwnerID: &adminUser.ID, + ProgramOwnerID: &sharedAdminUser.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add editor group", request: testclient.CreateProgramInput{ Name: "Test Program MITB", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{blockedGroup.ID}, ViewerIDs: []string{viewerGroup.ID}, - ProgramOwnerID: &testUser1.ID, + ProgramOwnerID: &sharedTestUser1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add editor group, no access to group", @@ -327,7 +335,7 @@ func TestMutationCreateProgram(t *testing.T) { EditorIDs: []string{anotherGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -335,7 +343,7 @@ func TestMutationCreateProgram(t *testing.T) { request: testclient.CreateProgramInput{ Name: "mitb program", Description: lo.ToPtr("being the best"), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -357,7 +365,7 @@ func TestMutationCreateProgram(t *testing.T) { EndDate: lo.ToPtr(endDate), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "only start date", @@ -366,7 +374,7 @@ func TestMutationCreateProgram(t *testing.T) { StartDate: lo.ToPtr(startDate), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "only end date", @@ -375,7 +383,7 @@ func TestMutationCreateProgram(t *testing.T) { EndDate: lo.ToPtr(endDate), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "user not authorized, not enough permissions", @@ -383,7 +391,7 @@ func TestMutationCreateProgram(t *testing.T) { Name: "mitb program", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -393,7 +401,7 @@ func TestMutationCreateProgram(t *testing.T) { }, addGroupToOrg: true, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: groupMemberUserCtx, }, { name: "missing required field", @@ -401,7 +409,7 @@ func TestMutationCreateProgram(t *testing.T) { Description: lo.ToPtr("soc2 2024"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -411,7 +419,7 @@ func TestMutationCreateProgram(t *testing.T) { AuditorEmail: lo.ToPtr("invalid email"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "validator failed for field", }, { @@ -422,7 +430,7 @@ func TestMutationCreateProgram(t *testing.T) { EndDate: lo.ToPtr(time.Now().AddDate(0, 9, 17)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: errStartDateLaterThanEndDate, }, } @@ -430,7 +438,7 @@ func TestMutationCreateProgram(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddProgramCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -456,8 +464,8 @@ func TestMutationCreateProgram(t *testing.T) { assert.Check(t, is.Contains(resp.CreateProgram.Program.DisplayID, "PRG-")) // ensure the owner is set to the user's organization, not the input - if tc.request.OwnerID != nil && tc.ctx == testUser2.UserCtx { - assert.Check(t, is.Equal(testUser2.OrganizationID, *resp.CreateProgram.Program.OwnerID)) + if tc.request.OwnerID != nil && tc.ctx == sharedTestUser2.UserCtx { + assert.Check(t, is.Equal(sharedTestUser2.OrganizationID, *resp.CreateProgram.Program.OwnerID)) } // check optional fields @@ -549,7 +557,7 @@ func TestMutationCreateProgram(t *testing.T) { if len(tc.request.EditorIDs) > 0 { assert.Assert(t, is.Len(resp.CreateProgram.Program.Editors.Edges, 1)) for _, edge := range resp.CreateProgram.Program.Editors.Edges { - assert.Check(t, is.Equal(testUser1.GroupID, edge.Node.ID)) + assert.Check(t, is.Equal(sharedTestUser1.GroupID, edge.Node.ID)) } } @@ -570,20 +578,20 @@ func TestMutationCreateProgram(t *testing.T) { } // cleanup policy and procedure - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupMember.GroupID, blockedGroup.ID, viewerGroup.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: anotherGroup.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{groupMember.GroupID, blockedGroup.ID, viewerGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: anotherGroup.ID}).MustDelete(sharedTestUser2.UserCtx, t) // cleanup programs - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: programIDsToCleanup}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: programIDsToCleanup}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateProgram(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - archivedProgram := (&ProgramBuilder{client: suite.client, Status: enums.ProgramStatusArchived}).MustNew(testUser1.UserCtx, t) + archivedProgram := (&ProgramBuilder{client: suite.client, Status: enums.ProgramStatusArchived}).MustNew(sharedTestUser1.UserCtx, t) // data to test the date validation logic in the update mutation, we want to ensure that the validation is working and that it is possible to update the dates successfully when they are valid baseStart := time.Now().AddDate(0, 0, 5) @@ -592,64 +600,64 @@ func TestMutationUpdateProgram(t *testing.T) { program.StartDate = baseStart program.EndDate = baseEnd - programMembers, err := suite.client.api.GetProgramMembersByProgramID(testUser1.UserCtx, &testclient.ProgramMembershipWhereInput{ + programMembers, err := suite.client.api.GetProgramMembersByProgramID(sharedTestUser1.UserCtx, &testclient.ProgramMembershipWhereInput{ ProgramID: &program.ID, }) assert.NilError(t, err) testUserProgramMemberID := "" for _, pm := range programMembers.ProgramMemberships.Edges { - if pm.Node.UserID == testUser1.ID { + if pm.Node.UserID == sharedTestUser1.ID { testUserProgramMemberID = pm.Node.ID } } // create program user to remove programUser := suite.userBuilder(context.Background(), t) - om := (&OrgMemberBuilder{client: suite.client, UserID: programUser.ID}).MustNew(testUser1.UserCtx, t) + om := (&OrgMemberBuilder{client: suite.client, UserID: programUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - pm := (&ProgramMemberBuilder{client: suite.client, UserID: programUser.ID, ProgramID: program.ID}).MustNew(testUser1.UserCtx, t) + pm := (&ProgramMemberBuilder{client: suite.client, UserID: programUser.ID, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) // Create some edge objects - procedure1 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + procedure1 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + policy1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create some edge objects for another organization - procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) + policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // create another admin user and add them to the same organization and group as testUser1 // this will allow us to test the group editor permissions anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) - gm1 := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID, GroupID: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + gm1 := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // create a viewer user and add them to the same organization as testUser1 // also add them to the same group as testUser1, this should still allow them to edit the policy // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) - gm2 := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) + gm2 := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // create one more group that will be used to test the blocked group permissions and add anotherViewerUser to it - blockGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(testUser1.UserCtx, t) + blockGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) // create a view only user and add them to the same organization as testUser1 meowViewerUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &meowViewerUser, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &meowViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) // create one more group that will be used to test the blocked group permissions and add anotherViewerUser to it - viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - gm3 := (&GroupMemberBuilder{client: suite.client, UserID: meowViewerUser.ID, GroupID: blockGroup.ID}).MustNew(testUser1.UserCtx, t) + viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + gm3 := (&GroupMemberBuilder{client: suite.client, UserID: meowViewerUser.ID, GroupID: blockGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) // add add user to the viewer group - gm4 := (&GroupMemberBuilder{client: suite.client, UserID: viewOnlyUser.ID, GroupID: viewerGroup.ID}).MustNew(testUser1.UserCtx, t) + gm4 := (&GroupMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, GroupID: viewerGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) // ensure the user does not currently have access to the program - _, err = suite.client.api.GetProgramByID(viewOnlyUser.UserCtx, program.ID) + _, err = suite.client.api.GetProgramByID(sharedViewOnlyUser.UserCtx, program.ID) assert.ErrorContains(t, err, notFoundErrorMsg) testCases := []struct { @@ -666,11 +674,11 @@ func TestMutationUpdateProgram(t *testing.T) { programID: program.ID, request: testclient.UpdateProgramInput{ Description: lo.ToPtr("new description"), - AddEditorIDs: []string{testUser1.GroupID}, // add the group to the editor groups for the subsequent tests - AddViewerIDs: []string{viewerGroup.ID}, // add the group to the viewer groups and ensure the user has access to the program + AddEditorIDs: []string{sharedTestUser1.GroupID}, // add the group to the editor groups for the subsequent tests + AddViewerIDs: []string{viewerGroup.ID}, // add the group to the viewer groups and ensure the user has access to the program }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields using pat", @@ -696,7 +704,7 @@ func TestMutationUpdateProgram(t *testing.T) { RemoveProgramMembers: []string{testUserProgramMemberID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "add program member, cannot add self", @@ -704,12 +712,12 @@ func TestMutationUpdateProgram(t *testing.T) { request: testclient.UpdateProgramInput{ AddProgramMembers: []*testclient.AddProgramMembershipInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, }, }, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -718,12 +726,12 @@ func TestMutationUpdateProgram(t *testing.T) { request: testclient.UpdateProgramInput{ AddProgramMembers: []*testclient.AddProgramMembershipInput{ { - UserID: adminUser.ID, + UserID: sharedAdminUser.ID, }, }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, remove program member", @@ -746,7 +754,7 @@ func TestMutationUpdateProgram(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update edge - procedure", @@ -755,7 +763,7 @@ func TestMutationUpdateProgram(t *testing.T) { AddProcedureIDs: []string{procedure1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedEdgeCount: 1, }, { @@ -765,7 +773,7 @@ func TestMutationUpdateProgram(t *testing.T) { AddInternalPolicyIDs: []string{policy1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedEdgeCount: 1, }, { @@ -776,7 +784,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(baseEnd.AddDate(0, 0, 1)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, valid start date update", @@ -786,7 +794,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(baseEnd), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, valid end date update", @@ -796,7 +804,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(time.Now().AddDate(1, 2, 5)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "invalid start and end date update", @@ -806,7 +814,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(time.Now().AddDate(1, 2, 5)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: errStartDateLaterThanEndDate, }, { @@ -817,7 +825,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(baseEnd), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: errStartDateLaterThanEndDate, }, { @@ -828,7 +836,7 @@ func TestMutationUpdateProgram(t *testing.T) { EndDate: lo.ToPtr(time.Now().AddDate(0, 0, -15)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: errStartDateLaterThanEndDate, }, { @@ -838,7 +846,7 @@ func TestMutationUpdateProgram(t *testing.T) { AddProcedureIDs: []string{procedure2.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -848,7 +856,7 @@ func TestMutationUpdateProgram(t *testing.T) { AddInternalPolicyIDs: []string{policy2.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -858,7 +866,7 @@ func TestMutationUpdateProgram(t *testing.T) { Description: lo.ToPtr("newer description"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, // user in in viewer group, but has no edit access }, { @@ -868,7 +876,7 @@ func TestMutationUpdateProgram(t *testing.T) { Description: lo.ToPtr("newer description"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -888,7 +896,7 @@ func TestMutationUpdateProgram(t *testing.T) { Status: lo.ToPtr(enums.ProgramStatusArchived), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: hooks.ErrArchivedProgramUpdateNotAllowed.Error(), }, { @@ -898,7 +906,7 @@ func TestMutationUpdateProgram(t *testing.T) { Description: lo.ToPtr("newer description"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: hooks.ErrArchivedProgramUpdateNotAllowed.Error(), }, { @@ -908,7 +916,7 @@ func TestMutationUpdateProgram(t *testing.T) { Status: lo.ToPtr(enums.ProgramStatusInProgress), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update allowed, program is not archived but updated to archived state", @@ -917,7 +925,7 @@ func TestMutationUpdateProgram(t *testing.T) { Status: lo.ToPtr(enums.ProgramStatusArchived), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update allowed, program is archived but updated to in progress state", @@ -926,7 +934,7 @@ func TestMutationUpdateProgram(t *testing.T) { Status: lo.ToPtr(enums.ProgramStatusInProgress), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -1009,7 +1017,7 @@ func TestMutationUpdateProgram(t *testing.T) { if len(tc.request.AddEditorIDs) > 0 { assert.Assert(t, is.Len(resp.UpdateProgram.Program.Editors.Edges, 1)) for _, edge := range resp.UpdateProgram.Program.Editors.Edges { - assert.Check(t, is.Equal(testUser1.GroupID, edge.Node.ID)) + assert.Check(t, is.Equal(sharedTestUser1.GroupID, edge.Node.ID)) } } @@ -1027,7 +1035,7 @@ func TestMutationUpdateProgram(t *testing.T) { } // ensure the user has access to the program now - res, err := suite.client.api.GetProgramByID(viewOnlyUser.UserCtx, program.ID) + res, err := suite.client.api.GetProgramByID(sharedViewOnlyUser.UserCtx, program.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(program.ID, res.Program.ID)) @@ -1041,7 +1049,7 @@ func TestMutationUpdateProgram(t *testing.T) { for _, edge := range resp.UpdateProgram.Program.Members.Edges { if edge.Node.User.ID == programUser.ID { programUserFound = true - } else if edge.Node.User.ID == adminUser.ID { + } else if edge.Node.User.ID == sharedAdminUser.ID { adminUserFound = true } } @@ -1058,22 +1066,22 @@ func TestMutationUpdateProgram(t *testing.T) { } // cleanup program - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup policy and procedure - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy2.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy1.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProcedureDeleteOne]{client: suite.client.db.Procedure, ID: procedure2.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: policy2.ID}).MustDelete(sharedTestUser2.UserCtx, t) // cleanup group - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID, viewerGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockGroup.ID, viewerGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // org member cleanup - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{om.ID, gm1.Edges.OrgMembership.ID, gm2.Edges.OrgMembership.ID, gm3.Edges.OrgMembership.ID, gm4.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{om.ID, gm1.Edges.OrgMembership.ID, gm2.Edges.OrgMembership.ID, gm3.Edges.OrgMembership.ID, gm4.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteProgram(t *testing.T) { // create Programs to be deleted - program1 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -1086,20 +1094,20 @@ func TestMutationDeleteProgram(t *testing.T) { name: "not authorized, delete program", idToDelete: program1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete program", idToDelete: program1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "program already deleted, not found", idToDelete: program1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -1112,7 +1120,7 @@ func TestMutationDeleteProgram(t *testing.T) { name: "unknown program, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/programextended_test.go b/internal/graphapi/programextended_test.go index 8a24789f76..07091e54a1 100644 --- a/internal/graphapi/programextended_test.go +++ b/internal/graphapi/programextended_test.go @@ -14,28 +14,31 @@ import ( func TestMutationCreateProgramWithMembers(t *testing.T) { // setup a separate user - user := suite.userBuilder(context.Background(), t) + t.Parallel() - member := (&OrgMemberBuilder{client: suite.client}).MustNew(user.UserCtx, t) - admin := (&OrgMemberBuilder{client: suite.client, Role: enums.RoleAdmin.String()}).MustNew(user.UserCtx, t) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + user := localTestOrg.owner + + member := localTestOrg.member + admin := localTestOrg.admin members := []*testclient.CreateMemberWithProgramInput{ { - UserID: member.UserID, + UserID: member.ID, Role: &enums.RoleMember, }, { - UserID: admin.UserID, + UserID: admin.ID, Role: &enums.RoleAdmin, }, } - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) numAdminControls := 5 adminControlIDs := []string{} for range numAdminControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) adminControlIDs = append(adminControlIDs, control.ID) } @@ -112,16 +115,18 @@ func TestMutationCreateProgramWithMembers(t *testing.T) { }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: adminControlIDs}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationCreateFullProgram(t *testing.T) { // setup a separate user - user := suite.userBuilder(context.Background(), t) + t.Parallel() + + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + user := localTestOrg.owner - member := (&OrgMemberBuilder{client: suite.client}).MustNew(user.UserCtx, t) - admin := (&OrgMemberBuilder{client: suite.client, Role: enums.RoleAdmin.String()}).MustNew(user.UserCtx, t) + member := localTestOrg.member + admin := localTestOrg.admin numControls := 5 controlIDs := []string{} @@ -138,22 +143,22 @@ func TestMutationCreateFullProgram(t *testing.T) { orgStandard := resp.CreateStandard.Standard - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) numAdminControls := 5 adminControlIDs := []string{} for range numAdminControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) adminControlIDs = append(adminControlIDs, control.ID) } members := []*testclient.CreateMemberWithProgramInput{ { - UserID: member.UserID, + UserID: member.ID, Role: &enums.RoleMember, }, { - UserID: admin.UserID, + UserID: admin.ID, Role: &enums.RoleAdmin, }, } @@ -278,7 +283,6 @@ func TestMutationCreateFullProgram(t *testing.T) { } // cleanup seeded input - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(user.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: orgStandard.ID}).MustDelete(user.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } diff --git a/internal/graphapi/programmembers_test.go b/internal/graphapi/programmembers_test.go index ead41e218f..2be6520db7 100644 --- a/internal/graphapi/programmembers_test.go +++ b/internal/graphapi/programmembers_test.go @@ -12,11 +12,11 @@ import ( ) func TestMutationCreateProgramMembers(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - orgMember1 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - orgMember2 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - orgMember3 := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + orgMember1 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + orgMember2 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + orgMember3 := (&OrgMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -33,7 +33,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleAdmin, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add member using personal access token", @@ -46,10 +46,10 @@ func TestMutationCreateProgramMembers(t *testing.T) { { name: "cannot add self to program", programID: program.ID, - userID: adminUser.UserInfo.ID, + userID: sharedAdminUser.UserInfo.ID, role: enums.RoleAdmin, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -58,7 +58,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember2.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -67,7 +67,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember2.UserID, role: enums.RoleOwner, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "OWNER is not a valid ProgramMembershipRole", }, { @@ -76,7 +76,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "already exists", }, { @@ -85,7 +85,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: "not-a-valid-user-id", role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "user not in organization", }, { @@ -94,7 +94,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -103,7 +103,7 @@ func TestMutationCreateProgramMembers(t *testing.T) { userID: orgMember1.UserID, role: enums.RoleInvalid, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "not a valid ProgramMembershipRole", }, } @@ -134,30 +134,30 @@ func TestMutationCreateProgramMembers(t *testing.T) { } // cleanup program - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup org members - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{orgMember1.ID, orgMember2.ID, orgMember3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{orgMember1.ID, orgMember2.ID, orgMember3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateProgramMembers(t *testing.T) { - pm := (&ProgramMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + pm := (&ProgramMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // get all program members so we know the id of the test user program member - programMembers, err := suite.client.api.GetProgramMembersByProgramID(testUser1.UserCtx, &testclient.ProgramMembershipWhereInput{ + programMembers, err := suite.client.api.GetProgramMembersByProgramID(sharedTestUser1.UserCtx, &testclient.ProgramMembershipWhereInput{ ProgramID: &pm.ProgramID, }) assert.NilError(t, err) testUser1ProgramMember := "" for _, pm := range programMembers.ProgramMemberships.Edges { - if pm.Node.UserID == testUser1.UserInfo.ID { + if pm.Node.UserID == sharedTestUser1.UserInfo.ID { testUser1ProgramMember = pm.Node.ID break } } // add an admin user to the program as member - (&ProgramMemberBuilder{client: suite.client, UserID: adminUser.ID, ProgramID: pm.ProgramID, Role: enums.RoleMember.String()}).MustNew(testUser1.UserCtx, t) + (&ProgramMemberBuilder{client: suite.client, UserID: sharedAdminUser.ID, ProgramID: pm.ProgramID, Role: enums.RoleMember.String()}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -172,21 +172,21 @@ func TestMutationUpdateProgramMembers(t *testing.T) { programMemberID: pm.ID, role: enums.RoleAdmin, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update self from admin to member allowed because user is org owner", programMemberID: testUser1ProgramMember, role: enums.RoleMember, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update self from member to admin of self not allowed", programMemberID: testUser1ProgramMember, role: enums.RoleAdmin, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, errMsg: notAuthorizedErrorMsg, }, { @@ -201,7 +201,7 @@ func TestMutationUpdateProgramMembers(t *testing.T) { programMemberID: pm.ID, role: enums.RoleInvalid, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errMsg: "not a valid ProgramMembershipRole", }, { @@ -209,7 +209,7 @@ func TestMutationUpdateProgramMembers(t *testing.T) { programMemberID: pm.ID, role: enums.RoleMember, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, errMsg: notFoundErrorMsg, }, } @@ -235,7 +235,7 @@ func TestMutationUpdateProgramMembers(t *testing.T) { } // cleanup program - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: pm.ProgramID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: pm.ProgramID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup org members - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{pm.Edges.OrgMembership.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, IDs: []string{pm.Edges.OrgMembership.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/query/trustcenter.graphql b/internal/graphapi/query/trustcenter.graphql index 4b9f28d116..c37021abd3 100644 --- a/internal/graphapi/query/trustcenter.graphql +++ b/internal/graphapi/query/trustcenter.graphql @@ -1,498 +1,525 @@ -mutation CreateTrustCenter ($input: CreateTrustCenterInput!) { - createTrustCenter(input: $input) { - trustCenter { - createdAt - createdBy - customDomainID - id - ownerID - pirschAccessLink - pirschDomainID - pirschIdentificationCode - previewDomainID - previewStatus - slug - subprocessorURL - tags - updatedAt - updatedBy - customDomain { - cnameRecord - dnsVerificationID - } - watermarkConfig { - id - text - } - previewDomain { - cnameRecord - dnsVerificationID - } - setting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - previewSetting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - } - } +mutation CreateTrustCenter($input: CreateTrustCenterInput!) { + createTrustCenter(input: $input) { + trustCenter { + createdAt + createdBy + customDomainID + id + ownerID + pirschAccessLink + pirschDomainID + pirschIdentificationCode + previewDomainID + previewStatus + slug + subprocessorURL + tags + updatedAt + updatedBy + customDomain { + cnameRecord + dnsVerificationID + } + watermarkConfig { + id + text + } + previewDomain { + cnameRecord + dnsVerificationID + } + setting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + previewSetting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + } + } } -mutation DeleteTrustCenter ($deleteTrustCenterId: ID!) { - deleteTrustCenter(id: $deleteTrustCenterId) { - deletedID - } + +mutation DeleteTrustCenter($deleteTrustCenterId: ID!) { + deleteTrustCenter(id: $deleteTrustCenterId) { + deletedID + } } + query GetAllTrustCenters { - trustCenters { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - node { - createdAt - createdBy - customDomain { - cnameRecord - dnsVerificationID - } - customDomainID - previewDomain { - cnameRecord - dnsVerificationID - } - id - ownerID - slug - tags - updatedAt - updatedBy - setting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - posts { - edges { - node { - id - text - } - } - } - trustCenterEntities { - edges { - node { - id - name - logoFile { - id - base64 - presignedURL - } - } - } - } - trustCenterSubprocessors { - edges { - node { - id - subprocessor { - name - description - logoFile { - base64 - } - } - } - } - } - } - } - } + trustCenters { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + createdAt + createdBy + customDomain { + cnameRecord + dnsVerificationID + } + customDomainID + previewDomain { + cnameRecord + dnsVerificationID + } + id + ownerID + slug + tags + updatedAt + updatedBy + setting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + posts { + edges { + node { + id + text + } + } + } + trustCenterEntities { + edges { + node { + id + name + logoFile { + id + base64 + presignedURL + } + } + } + } + trustCenterSubprocessors { + edges { + node { + id + subprocessor { + name + description + logoFile { + base64 + } + } + } + } + } + } + } + } } -query GetTrustCenterByID ($trustCenterId: ID!) { - trustCenter(id: $trustCenterId) { - createdAt - createdBy - customDomainID - id - ownerID - pirschAccessLink - pirschDomainID - pirschIdentificationCode - previewDomainID - previewStatus - slug - subprocessorURL - tags - updatedAt - updatedBy - customDomain { - cnameRecord - dnsVerificationID - } - setting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - posts { - edges { - node { - id - text - } - } - } - trustCenterEntities { - edges { - node { - id - name - logoFile { - id - base64 - presignedURL - } - } - } - } - trustCenterSubprocessors { - edges { - node { - id - subprocessor { - name - description - logoFile { - base64 - } - } - } - } - } - } + +query GetTrustCenterByID($trustCenterId: ID!) { + trustCenter(id: $trustCenterId) { + createdAt + createdBy + customDomainID + id + ownerID + pirschAccessLink + pirschDomainID + pirschIdentificationCode + previewDomainID + previewStatus + slug + subprocessorURL + tags + updatedAt + updatedBy + customDomain { + cnameRecord + dnsVerificationID + } + setting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + posts { + edges { + node { + id + text + } + } + } + trustCenterEntities { + edges { + node { + id + name + logoFile { + id + base64 + presignedURL + } + } + } + } + trustCenterSubprocessors { + edges { + node { + id + subprocessor { + name + description + logoFile { + base64 + } + } + } + } + } + } } + query GetTrustCenterFrontendQuery { - trustCenters { - edges { - node { - id - slug - customDomain { - cnameRecord - } - previewDomain { - cnameRecord - } - setting { - id - title - overview - accentColor - backgroundColor - themeMode - primaryColor - secondaryForegroundColor - secondaryBackgroundColor - font - foregroundColor - logoRemoteURL - logoFile { - base64 - } - faviconFile { - base64 - } - } - previewSetting { - id - title - overview - accentColor - backgroundColor - themeMode - primaryColor - secondaryForegroundColor - secondaryBackgroundColor - font - foregroundColor - logoRemoteURL - logoFile { - base64 - } - faviconFile { - base64 - } - } - trustCenterCompliances { - edges { - node { - id - tags - standard { - description - name - id - shortName - logoFile { - base64 - } - governingBodyLogoURL - } - } - } - } - trustCenterSubprocessors { - edges { - node { - id - countries - trustCenterSubprocessorKindName - subprocessor { - name - logoFile { - base64 - presignedURL - } - logoRemoteURL - } - } - } - } - trustCenterEntities { - edges { - node { - id - name - logoFile { - base64 - } - url - } - } - } - trustCenterDocs(orderBy: [{field:created_at,direction:DESC}]) { - edges { - node { - id - title - tags - visibility - trustCenterDocKindName - tags - standard { - id - shortName - } - } - } - } - posts(orderBy: [{field:created_at,direction:DESC}]) { - edges { - node { - id - text - updatedAt - } - } - } - trustCenterFaqs { - edges { - node { - referenceLink - id - noteID - note { - id - } - } - } - } - } - } - } - controls { - edges { - node { - id - refCode - } - } - } + trustCenters { + edges { + node { + id + slug + customDomain { + cnameRecord + } + previewDomain { + cnameRecord + } + setting { + id + title + overview + accentColor + backgroundColor + themeMode + primaryColor + secondaryForegroundColor + secondaryBackgroundColor + font + foregroundColor + logoRemoteURL + logoFile { + base64 + } + faviconFile { + base64 + } + } + previewSetting { + id + title + overview + accentColor + backgroundColor + themeMode + primaryColor + secondaryForegroundColor + secondaryBackgroundColor + font + foregroundColor + logoRemoteURL + logoFile { + base64 + } + faviconFile { + base64 + } + } + trustCenterCompliances { + edges { + node { + id + tags + standard { + description + name + id + shortName + logoFile { + base64 + } + governingBodyLogoURL + } + } + } + } + trustCenterSubprocessors { + edges { + node { + id + countries + trustCenterSubprocessorKindName + subprocessor { + name + logoFile { + base64 + presignedURL + } + logoRemoteURL + } + } + } + } + trustCenterEntities { + edges { + node { + id + name + logoFile { + base64 + } + url + } + } + } + trustCenterDocs(orderBy: [{field: created_at, direction: DESC}]) { + edges { + node { + id + title + tags + visibility + trustCenterDocKindName + tags + standard { + id + shortName + } + } + } + } + posts(orderBy: [{field: created_at, direction: DESC}]) { + edges { + node { + id + text + updatedAt + } + } + } + trustCenterFaqs { + edges { + node { + referenceLink + id + noteID + note { + id + } + } + } + } + } + } + } + controls { + edges { + node { + id + refCode + } + } + } } -query GetTrustCenters ($first: Int, $last: Int, $where: TrustCenterWhereInput) { - trustCenters(first: $first, last: $last, where: $where) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - node { - createdAt - createdBy - customDomainID - previewDomainID - id - ownerID - slug - tags - updatedAt - updatedBy - customDomain { - cnameRecord - dnsVerificationID - } - setting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - } - } - } + +query GetTrustCenters($first: Int, $last: Int, $where: TrustCenterWhereInput) { + trustCenters(first: $first, last: $last, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + createdAt + createdBy + customDomainID + previewDomainID + id + ownerID + slug + tags + updatedAt + updatedBy + customDomain { + cnameRecord + dnsVerificationID + } + setting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + previewSetting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + } + } + } } -mutation UpdateTrustCenter ($updateTrustCenterId: ID!, $input: UpdateTrustCenterInput!) { - updateTrustCenter(id: $updateTrustCenterId, input: $input) { - trustCenter { - createdAt - createdBy - customDomainID - id - ownerID - pirschAccessLink - pirschDomainID - pirschIdentificationCode - previewDomainID - previewStatus - slug - subprocessorURL - tags - updatedAt - updatedBy - customDomain { - cnameRecord - dnsVerificationID - } - setting { - id - overview - title - primaryColor - logoRemoteURL - logoLocalFileID - logoFile { - presignedURL - } - faviconRemoteURL - faviconLocalFileID - faviconFile { - presignedURL - } - themeMode - font - foregroundColor - backgroundColor - accentColor - } - posts { - edges { - node { - text - } - } - } - } - } + +mutation UpdateTrustCenter($updateTrustCenterId: ID!, $input: UpdateTrustCenterInput!) { + updateTrustCenter(id: $updateTrustCenterId, input: $input) { + trustCenter { + createdAt + createdBy + customDomainID + id + ownerID + pirschAccessLink + pirschDomainID + pirschIdentificationCode + previewDomainID + previewStatus + slug + subprocessorURL + tags + updatedAt + updatedBy + customDomain { + cnameRecord + dnsVerificationID + } + setting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } + posts { + edges { + node { + text + } + } + } + } + } } diff --git a/internal/graphapi/review_test.go b/internal/graphapi/review_test.go index c39027b372..7191d066a2 100644 --- a/internal/graphapi/review_test.go +++ b/internal/graphapi/review_test.go @@ -33,11 +33,11 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { Summary: lo.ToPtr("Test summary"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectFields: true, setup: func(t *testing.T) ([]string, []string) { - entity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - ctx := setContext(testUser1.UserCtx, suite.client.db) + entity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) err := suite.client.db.Entity.UpdateOneID(entity.ID). SetReviewFrequency(frequency). Exec(ctx) @@ -52,11 +52,11 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { Summary: lo.ToPtr("With frequency"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectFields: true, setup: func(t *testing.T) ([]string, []string) { - entity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - _, err := suite.client.api.UpdateEntity(testUser1.UserCtx, entity.ID, testclient.UpdateEntityInput{ + entity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + _, err := suite.client.api.UpdateEntity(sharedTestUser1.UserCtx, entity.ID, testclient.UpdateEntityInput{ ReviewFrequency: lo.ToPtr(frequency), }, nil, nil, nil, nil) assert.NilError(t, err) @@ -70,10 +70,10 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { Summary: lo.ToPtr("This review has no entities linked"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectFields: false, setup: func(t *testing.T) ([]string, []string) { - entity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) return []string{entity.ID}, []string{entity.EntityTypeID} }, }, @@ -101,7 +101,7 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { if tc.expectFields { for _, entityID := range entityIDs { - resp, err := suite.client.api.GetEntityByID(testUser1.UserCtx, entityID) + resp, err := suite.client.api.GetEntityByID(sharedTestUser1.UserCtx, entityID) assert.NilError(t, err) updatedEntity := resp.Entity @@ -124,7 +124,7 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { } } else { for _, entityID := range entityIDs { - resp, err := suite.client.api.GetEntityByID(testUser1.UserCtx, entityID) + resp, err := suite.client.api.GetEntityByID(sharedTestUser1.UserCtx, entityID) assert.NilError(t, err) entity := resp.Entity @@ -135,17 +135,17 @@ func TestCreateReviewUpdatesEntityReviewFields(t *testing.T) { } } - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, review.ID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, review.ID) assert.NilError(t, err) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestCreateReview(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entitiesToCleanup := []string{entity1.ID} entityTypesToCleanup := []string{entity1.EntityTypeID} @@ -163,7 +163,7 @@ func TestCreateReview(t *testing.T) { Title: "Minimal Review", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, full input", @@ -178,7 +178,7 @@ func TestCreateReview(t *testing.T) { Tags: []string{"test", "review"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using PAT", @@ -194,7 +194,7 @@ func TestCreateReview(t *testing.T) { Title: "Unauthorized Review", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -220,23 +220,23 @@ func TestCreateReview(t *testing.T) { } if len(tc.reviewInput.EntityIDs) > 0 { - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, review.ID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, review.ID) assert.NilError(t, err) } }) } - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entitiesToCleanup}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypesToCleanup}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entitiesToCleanup}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypesToCleanup}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryReview(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entityIDs := []string{entity1.ID} entityTypeIDs := []string{entity1.EntityTypeID} - createResp, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + createResp, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Query Test Review", EntityIDs: entityIDs, Summary: lo.ToPtr("Test summary for query"), @@ -248,7 +248,7 @@ func TestQueryReview(t *testing.T) { reviewID := review.ID t.Run("get review by ID", func(t *testing.T) { - resp, err := suite.client.api.GetReviewByID(testUser1.UserCtx, reviewID) + resp, err := suite.client.api.GetReviewByID(sharedTestUser1.UserCtx, reviewID) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -259,45 +259,45 @@ func TestQueryReview(t *testing.T) { }) t.Run("review not found", func(t *testing.T) { - _, err := suite.client.api.GetReviewByID(testUser1.UserCtx, "invalid-id") + _, err := suite.client.api.GetReviewByID(sharedTestUser1.UserCtx, "invalid-id") assert.ErrorContains(t, err, "review not found") }) - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, reviewID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, reviewID) assert.NilError(t, err) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryReviews(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entityIDs := []string{entity1.ID} entityTypeIDs := []string{entity1.EntityTypeID} reviewsToCleanup := []string{} - beforeResp, err := suite.client.api.GetAllReviews(testUser1.UserCtx) + beforeResp, err := suite.client.api.GetAllReviews(sharedTestUser1.UserCtx) initialCount := 0 if err == nil && beforeResp.GetReviews() != nil { initialCount = len(beforeResp.GetReviews().Edges) } - review1, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + review1, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "First Review", Summary: lo.ToPtr("First summary"), }) assert.NilError(t, err) reviewsToCleanup = append(reviewsToCleanup, review1.GetCreateReview().GetReview().ID) - review2, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + review2, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Second Review", Summary: lo.ToPtr("Second summary"), }) assert.NilError(t, err) reviewsToCleanup = append(reviewsToCleanup, review2.GetCreateReview().GetReview().ID) - review3, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + review3, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Entity Review", EntityIDs: entityIDs, }) @@ -313,7 +313,7 @@ func TestQueryReviews(t *testing.T) { { name: "list all reviews", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedDiff: 3, }, { @@ -336,23 +336,23 @@ func TestQueryReviews(t *testing.T) { } for _, reviewID := range reviewsToCleanup { - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, reviewID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, reviewID) if err != nil { t.Logf("failed to delete review %s: %v", reviewID, err) } } - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestDeleteReview(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entityIDs := []string{entity1.ID} entityTypeIDs := []string{entity1.EntityTypeID} - createResp, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + createResp, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Delete Test Review", EntityIDs: entityIDs, }) @@ -361,7 +361,7 @@ func TestDeleteReview(t *testing.T) { reviewID := createResp.GetCreateReview().GetReview().ID t.Run("delete review", func(t *testing.T) { - resp, err := suite.client.api.DeleteReview(testUser1.UserCtx, reviewID) + resp, err := suite.client.api.DeleteReview(sharedTestUser1.UserCtx, reviewID) assert.NilError(t, err) assert.Assert(t, resp != nil) deletedReview := resp.GetDeleteReview() @@ -369,35 +369,35 @@ func TestDeleteReview(t *testing.T) { }) t.Run("review not found after delete", func(t *testing.T) { - _, err := suite.client.api.GetReviewByID(testUser1.UserCtx, reviewID) + _, err := suite.client.api.GetReviewByID(sharedTestUser1.UserCtx, reviewID) assert.ErrorContains(t, err, "review not found") }) t.Run("not authorized to delete", func(t *testing.T) { - anotherReview, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + anotherReview, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Another Review", }) assert.NilError(t, err) anotherReviewID := anotherReview.GetCreateReview().GetReview().ID - _, err = suite.client.api.DeleteReview(viewOnlyUser.UserCtx, anotherReviewID) + _, err = suite.client.api.DeleteReview(sharedViewOnlyUser.UserCtx, anotherReviewID) assert.ErrorContains(t, err, notAuthorizedErrorMsg) - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, anotherReviewID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, anotherReviewID) assert.NilError(t, err) }) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestUpdateReview(t *testing.T) { - entity1 := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + entity1 := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entityIDs := []string{entity1.ID} entityTypeIDs := []string{entity1.EntityTypeID} - createResp, err := suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + createResp, err := suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Original Title", Summary: lo.ToPtr("Original summary"), }) @@ -406,7 +406,7 @@ func TestUpdateReview(t *testing.T) { reviewID := createResp.GetCreateReview().GetReview().ID t.Run("update review", func(t *testing.T) { - resp, err := suite.client.api.UpdateReview(testUser1.UserCtx, reviewID, testclient.UpdateReviewInput{ + resp, err := suite.client.api.UpdateReview(sharedTestUser1.UserCtx, reviewID, testclient.UpdateReviewInput{ Title: lo.ToPtr("Updated Title"), Summary: lo.ToPtr("Updated summary"), }, nil) @@ -419,17 +419,17 @@ func TestUpdateReview(t *testing.T) { }) t.Run("update review not found", func(t *testing.T) { - _, err := suite.client.api.UpdateReview(testUser1.UserCtx, "invalid-id", testclient.UpdateReviewInput{ + _, err := suite.client.api.UpdateReview(sharedTestUser1.UserCtx, "invalid-id", testclient.UpdateReviewInput{ Title: lo.ToPtr("New Title"), }, nil) assert.ErrorContains(t, err, "review not found") }) - _, err = suite.client.api.DeleteReview(testUser1.UserCtx, reviewID) + _, err = suite.client.api.DeleteReview(sharedTestUser1.UserCtx, reviewID) assert.NilError(t, err) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestReviewWithReviewFrequencyCalculation(t *testing.T) { @@ -447,28 +447,28 @@ func TestReviewWithReviewFrequencyCalculation(t *testing.T) { for _, freq := range frequencies { t.Run("next review date for "+freq.name+" frequency", func(t *testing.T) { - testEntity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + testEntity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) entityIDs := []string{testEntity.ID} entityTypeIDs := []string{testEntity.EntityTypeID} defer func() { - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: entityIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: entityTypeIDs}).MustDelete(sharedTestUser1.UserCtx, t) }() - _, err := suite.client.api.UpdateEntity(testUser1.UserCtx, testEntity.ID, testclient.UpdateEntityInput{ + _, err := suite.client.api.UpdateEntity(sharedTestUser1.UserCtx, testEntity.ID, testclient.UpdateEntityInput{ ReviewFrequency: lo.ToPtr(freq.frequency), }, nil, nil, nil, nil) assert.NilError(t, err) - _, err = suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + _, err = suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: freq.name + " review", EntityIDs: []string{testEntity.ID}, Summary: lo.ToPtr("Testing " + freq.name + " frequency"), }) assert.NilError(t, err) - resp, err := suite.client.apiWithToken.GetEntityByID(testUser1.UserCtx, testEntity.ID) + resp, err := suite.client.apiWithToken.GetEntityByID(sharedTestUser1.UserCtx, testEntity.ID) assert.NilError(t, err) updatedEntity := resp.Entity @@ -500,24 +500,24 @@ func TestReviewWithReviewFrequencyCalculation(t *testing.T) { } func TestReviewWithMultipleConnectedEntities(t *testing.T) { - testEntity := (&EntityBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + testEntity := (&EntityBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) ids := []string{testEntity.ID} typeIDs := []string{testEntity.EntityTypeID} - _, err := suite.client.api.UpdateEntity(testUser1.UserCtx, testEntity.ID, testclient.UpdateEntityInput{ + _, err := suite.client.api.UpdateEntity(sharedTestUser1.UserCtx, testEntity.ID, testclient.UpdateEntityInput{ ReviewFrequency: lo.ToPtr(enums.FrequencyMonthly), }, nil, nil, nil, nil) assert.NilError(t, err) - _, err = suite.client.api.CreateReview(testUser1.UserCtx, testclient.CreateReviewInput{ + _, err = suite.client.api.CreateReview(sharedTestUser1.UserCtx, testclient.CreateReviewInput{ Title: "Multi-Entity Review", EntityIDs: ids, Summary: lo.ToPtr("we are reviewing multiple entities at once"), }) assert.NilError(t, err) - resp, err := suite.client.apiWithToken.GetEntityByID(testUser1.UserCtx, testEntity.ID) + resp, err := suite.client.apiWithToken.GetEntityByID(sharedTestUser1.UserCtx, testEntity.ID) assert.NilError(t, err) newEntity := resp.Entity @@ -534,6 +534,6 @@ func TestReviewWithMultipleConnectedEntities(t *testing.T) { assert.Check(t, is.DeepEqual(expectedReviewDate, nextReviewTime), "next_review_at should be one month after last_reviewed_at") - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: ids}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: typeIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: ids}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, IDs: typeIDs}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/risk_test.go b/internal/graphapi/risk_test.go index be8eef5822..db8759b520 100644 --- a/internal/graphapi/risk_test.go +++ b/internal/graphapi/risk_test.go @@ -18,55 +18,68 @@ import ( ) func TestQueryRisk(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + viewUser := suite.userBuilder(context.Background(), t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &viewUser, enums.RoleMember, sharedTestUser1.OrganizationID) - // add adminUser to the program so that they can create a Risk + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + + // add viewer user to the program so that they can see/edit risk (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + UserID: viewUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) riskIDs := []string{} // add test cases for querying the Risk testCases := []struct { - name string - queryID string - client *testclient.TestClient - ctx context.Context - errorMsg string + name string + queryID string + client *testclient.TestClient + ctx context.Context + errorMsg string + hasProgramAccess bool }{ { - name: "happy path", - client: suite.client.api, - ctx: testUser1.UserCtx, + name: "happy path", + client: suite.client.api, + ctx: sharedTestUser1.UserCtx, + hasProgramAccess: true, }, { name: "read only user, same org, no access to the program", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { - name: "admin user, access to the program", - client: suite.client.api, - ctx: adminUser.UserCtx, + name: "admin user, has full access to risks", + client: suite.client.api, + ctx: sharedAdminUser.UserCtx, + hasProgramAccess: false, // admins do not automatically have program access, only super admins + owners }, { - name: "happy path using personal access token", - client: suite.client.apiWithPAT, - ctx: context.Background(), + name: "member user, but has access to the program", + client: suite.client.api, + ctx: viewUser.UserCtx, + hasProgramAccess: true, // member was given program access + }, + { + name: "happy path using personal access token", + client: suite.client.apiWithPAT, + ctx: context.Background(), + hasProgramAccess: true, // this is the owner's PAT }, { name: "risk not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "risk not found, using not authorized user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -81,7 +94,7 @@ func TestQueryRisk(t *testing.T) { t.Run("Get "+tc.name, func(t *testing.T) { // setup the risk if it is not already created if tc.queryID == "" { - resp, err := suite.client.api.CreateRisk(testUser1.UserCtx, + resp, err := suite.client.api.CreateRisk(sharedTestUser1.UserCtx, testclient.CreateRiskInput{ Name: "Risk", ProgramIDs: []string{program.ID}, @@ -108,20 +121,24 @@ func TestQueryRisk(t *testing.T) { assert.Check(t, is.Equal(tc.queryID, resp.Risk.ID)) assert.Check(t, len(resp.Risk.Name) != 0) - assert.Assert(t, is.Len(resp.Risk.Programs.Edges, 1)) - assert.Check(t, len(resp.Risk.Programs.Edges[0].Node.ID) != 0) + if tc.hasProgramAccess { + assert.Assert(t, is.Len(resp.Risk.Programs.Edges, 1)) + assert.Check(t, len(resp.Risk.Programs.Edges[0].Node.ID) != 0) + } else { + assert.Assert(t, is.Len(resp.Risk.Programs.Edges, 0)) + } }) } // cleanup - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, IDs: riskIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, IDs: riskIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryRisks(t *testing.T) { // create multiple objects to be queried using testUser1 - risk1 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - risk2 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + risk1 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + risk2 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -132,20 +149,20 @@ func TestQueryRisks(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org, no programs or groups associated", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 0, }, { - name: "happy path, no access to the program or group", + name: "happy path, has scope using api token", client: suite.client.apiWithToken, ctx: context.Background(), - expectedResults: 0, + expectedResults: 2, }, { name: "happy path, using pat", @@ -156,7 +173,7 @@ func TestQueryRisks(t *testing.T) { { name: "another user, no risks should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -173,29 +190,29 @@ func TestQueryRisks(t *testing.T) { // cleanup (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, IDs: []string{risk1.ID, risk2.ID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateRisk(t *testing.T) { - program1 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - program2 := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + program1 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + program2 := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + programAnotherUser := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // group to be used for checking access, defaulting to a read only user - groupMember := (&GroupMemberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) groupMemberCtx := auth.NewTestContextWithOrgID(groupMember.UserID, groupMember.Edges.OrgMembership.OrganizationID) // add adminUser to the program so that they can create a risk associated with the program1 (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) // create groups to be associated with the risk - blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + blockedGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + viewerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -213,7 +230,7 @@ func TestMutationCreateRisk(t *testing.T) { Name: "Risk", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedStatus: enums.RiskIdentified, expectedImpact: enums.RiskImpactLow, }, @@ -233,7 +250,7 @@ func TestMutationCreateRisk(t *testing.T) { DelegateID: &delegateGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, hook defaults are applied", @@ -242,7 +259,7 @@ func TestMutationCreateRisk(t *testing.T) { Score: lo.ToPtr(int64(19)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedStatus: enums.RiskIdentified, expectedImpact: enums.RiskImpactCritical, }, @@ -250,12 +267,12 @@ func TestMutationCreateRisk(t *testing.T) { name: "add groups", request: testclient.CreateRiskInput{ Name: "Test Risk", - EditorIDs: []string{testUser1.GroupID}, + EditorIDs: []string{sharedTestUser1.GroupID}, BlockedGroupIDs: []string{blockedGroup.ID}, ViewerIDs: []string{viewerGroup.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedStatus: enums.RiskIdentified, expectedImpact: enums.RiskImpactLow, }, @@ -263,7 +280,7 @@ func TestMutationCreateRisk(t *testing.T) { name: "happy path, using pat", request: testclient.CreateRiskInput{ Name: "Risk", - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -307,7 +324,7 @@ func TestMutationCreateRisk(t *testing.T) { ProgramIDs: []string{program1.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedStatus: enums.RiskIdentified, expectedImpact: enums.RiskImpactLow, }, @@ -318,14 +335,14 @@ func TestMutationCreateRisk(t *testing.T) { ProgramIDs: []string{program1.ID, program2.ID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required name", request: testclient.CreateRiskInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -335,7 +352,7 @@ func TestMutationCreateRisk(t *testing.T) { ProgramIDs: []string{programAnotherUser.ID, program1.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -343,7 +360,7 @@ func TestMutationCreateRisk(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { if tc.addGroupToOrg { - _, err := suite.client.api.UpdateOrganization(testUser1.UserCtx, testUser1.OrganizationID, + _, err := suite.client.api.UpdateOrganization(sharedTestUser1.UserCtx, sharedTestUser1.OrganizationID, testclient.UpdateOrganizationInput{ AddRiskCreatorIDs: []string{groupMember.GroupID}, }, nil, nil) @@ -423,7 +440,7 @@ func TestMutationCreateRisk(t *testing.T) { if len(tc.request.EditorIDs) > 0 { assert.Assert(t, is.Len(resp.CreateRisk.Risk.Editors.Edges, 1)) for _, edge := range resp.CreateRisk.Risk.Editors.Edges { - assert.Check(t, is.Equal(testUser1.GroupID, edge.Node.ID)) + assert.Check(t, is.Equal(sharedTestUser1.GroupID, edge.Node.ID)) } } @@ -463,7 +480,7 @@ func TestMutationCreateRisk(t *testing.T) { // ensure the org owner has access to the risk that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetRiskByID(testUser1.UserCtx, resp.CreateRisk.Risk.ID) + res, err := suite.client.api.GetRiskByID(sharedTestUser1.UserCtx, resp.CreateRisk.Risk.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(resp.CreateRisk.Risk.ID, res.Risk.ID)) @@ -472,46 +489,46 @@ func TestMutationCreateRisk(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID, stakeholderGroup.ID, delegateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: []string{program1.ID, program2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: programAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{blockedGroup.ID, viewerGroup.ID, groupMember.GroupID, stakeholderGroup.ID, delegateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateRisk(t *testing.T) { - program := (&ProgramBuilder{client: suite.client, EditorIDs: testUser1.GroupID}).MustNew(testUser1.UserCtx, t) - risk := (&RiskBuilder{client: suite.client, ProgramID: program.ID}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) + risk := (&RiskBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) - // create another admin user and add them to the same organization and group as testUser1 + // create another viewer user and add them to the same organization and group as testUser1 // this will allow us to test the group editor/viewer permissions - anotherAdminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, testUser1.OrganizationID) + anotherViewUser := suite.userBuilder(context.Background(), t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewUser, enums.RoleMember, sharedTestUser1.OrganizationID) - groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID}).MustNew(testUser1.UserCtx, t) + groupMember := (&GroupMemberBuilder{client: suite.client, UserID: anotherViewUser.ID}).MustNew(sharedTestUser1.UserCtx, t) - stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - anotherStakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + anotherStakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // ensure the user does not currently have access to the risk - _, err := suite.client.api.GetRiskByID(anotherAdminUser.UserCtx, risk.ID) + _, err := suite.client.api.GetRiskByID(anotherViewUser.UserCtx, risk.ID) assert.ErrorContains(t, err, notFoundErrorMsg) - createRemediation, err := suite.client.api.CreateRemediation(testUser1.UserCtx, testclient.CreateRemediationInput{ + createRemediation, err := suite.client.api.CreateRemediation(sharedTestUser1.UserCtx, testclient.CreateRemediationInput{ Title: lo.ToPtr("Test Remediation"), Summary: lo.ToPtr("Test summary for query"), Status: &enums.RemediationStatusCompleted, }) assert.NilError(t, err) - createActionPlan, err := suite.client.api.CreateActionPlan(testUser1.UserCtx, testclient.CreateActionPlanInput{ + createActionPlan, err := suite.client.api.CreateActionPlan(sharedTestUser1.UserCtx, testclient.CreateActionPlanInput{ Name: "Test Action Plan", Title: "Test Action Plan", }) assert.NilError(t, err) - createReview, err := suite.client.api.CreateReview(adminUser.UserCtx, testclient.CreateReviewInput{ + createReview, err := suite.client.api.CreateReview(sharedAdminUser.UserCtx, testclient.CreateReviewInput{ Title: "Test Review", Status: &enums.ReviewStatusCompleted, }) @@ -534,7 +551,7 @@ func TestMutationUpdateRisk(t *testing.T) { Status: &enums.RiskOpen, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, add action plan, status should be set to in progress", @@ -542,7 +559,7 @@ func TestMutationUpdateRisk(t *testing.T) { AddActionPlanIDs: []string{createActionPlan.CreateActionPlan.ActionPlan.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -589,7 +606,7 @@ func TestMutationUpdateRisk(t *testing.T) { Likelihood: &enums.RiskLikelihoodLow, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -598,7 +615,7 @@ func TestMutationUpdateRisk(t *testing.T) { Likelihood: &enums.RiskLikelihoodLow, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -698,7 +715,7 @@ func TestMutationUpdateRisk(t *testing.T) { assert.Check(t, found) // ensure the user has access to the risk now - res, err := suite.client.api.GetRiskByID(anotherAdminUser.UserCtx, risk.ID) + res, err := suite.client.api.GetRiskByID(anotherViewUser.UserCtx, risk.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(risk.ID, res.Risk.ID)) @@ -707,15 +724,15 @@ func TestMutationUpdateRisk(t *testing.T) { } // cleanup - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: risk.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{stakeholderGroup.ID, delegateGroup.ID, anotherStakeholderGroup.ID, groupMember.GroupID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: risk.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{stakeholderGroup.ID, delegateGroup.ID, anotherStakeholderGroup.ID, groupMember.GroupID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteRisk(t *testing.T) { // create objects to be deleted - risk1 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - risk2 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + risk1 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + risk2 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -728,20 +745,20 @@ func TestMutationDeleteRisk(t *testing.T) { name: "not authorized, delete", idToDelete: risk1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: risk1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: risk1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -754,7 +771,7 @@ func TestMutationDeleteRisk(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -777,17 +794,17 @@ func TestMutationDeleteRisk(t *testing.T) { func TestMutationUpdateBulkRisk(t *testing.T) { // create risks to be updated - risk1 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - risk2 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - risk3 := (&RiskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + risk1 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + risk2 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + risk3 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + stakeholderGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - riskAnotherUser := (&RiskBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + riskAnotherUser := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) // ensure the user does not currently have access to update the risk - res, err := suite.client.api.UpdateBulkRisk(testUser2.UserCtx, []string{risk1.ID}, testclient.UpdateRiskInput{ + res, err := suite.client.api.UpdateBulkRisk(sharedTestUser2.UserCtx, []string{risk1.ID}, testclient.UpdateRiskInput{ Status: lo.ToPtr(enums.RiskArchived), }) @@ -812,7 +829,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { Impact: &enums.RiskImpactModerate, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 3, }, { @@ -822,7 +839,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { Score: lo.ToPtr(int64(8)), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 2, }, { @@ -830,7 +847,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { ids: []string{}, input: testclient.UpdateRiskInput{Details: lo.ToPtr("test")}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "ids is required", }, { @@ -840,7 +857,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { Status: &enums.RiskIdentified, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedUpdatedCount: 1, // only risk1 should be updated }, { @@ -850,7 +867,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { Status: &enums.RiskArchived, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any risks to update }, } @@ -937,7 +954,7 @@ func TestMutationUpdateBulkRisk(t *testing.T) { }) } - (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, IDs: []string{risk1.ID, risk2.ID, risk3.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: riskAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{stakeholderGroup.ID, delegateGroup.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, IDs: []string{risk1.ID, risk2.ID, risk3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.RiskDeleteOne]{client: suite.client.db.Risk, ID: riskAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{stakeholderGroup.ID, delegateGroup.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/scheduledjob_test.go b/internal/graphapi/scheduledjob_test.go index 3250d59d1e..f899055945 100644 --- a/internal/graphapi/scheduledjob_test.go +++ b/internal/graphapi/scheduledjob_test.go @@ -13,32 +13,32 @@ import ( ) func TestQueryScheduledJob(t *testing.T) { - job := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - runner := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + job := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + runner := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) firstScheduledJob := (&ScheduledJobBuilder{ client: suite.client, JobID: job.ID, Configuration: models.JobConfiguration{}, JobRunnerID: runner.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) secondScheduledJob := (&ScheduledJobBuilder{ client: suite.client, JobID: job.ID, Configuration: models.JobConfiguration{}, JobRunnerID: runner.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) - secondJob := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - runner2 := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + secondJob := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) + runner2 := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) thirdScheduledJob := (&ScheduledJobBuilder{ client: suite.client, JobID: secondJob.ID, Configuration: models.JobConfiguration{}, JobRunnerID: runner2.ID, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -51,19 +51,19 @@ func TestQueryScheduledJob(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 2, }, { name: "happy path admin user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 2, }, { name: "happy path view only user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 2, }, { @@ -75,7 +75,7 @@ func TestQueryScheduledJob(t *testing.T) { { name: "happy path second user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedCount: 1, }, } @@ -99,40 +99,40 @@ func TestQueryScheduledJob(t *testing.T) { (&Cleanup[*generated.JobRunnerDeleteOne]{ client: suite.client.db.JobRunner, IDs: []string{runner.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.ScheduledJobDeleteOne]{ client: suite.client.db.ScheduledJob, IDs: []string{firstScheduledJob.ID, secondScheduledJob.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.ScheduledJobDeleteOne]{ client: suite.client.db.ScheduledJob, IDs: []string{thirdScheduledJob.ID}, - }).MustDelete(testUser2.UserCtx, t) + }).MustDelete(sharedTestUser2.UserCtx, t) (&Cleanup[*generated.JobRunnerDeleteOne]{ client: suite.client.db.JobRunner, IDs: []string{runner2.ID}, - }).MustDelete(testUser2.UserCtx, t) + }).MustDelete(sharedTestUser2.UserCtx, t) (&Cleanup[*generated.JobTemplateDeleteOne]{ client: suite.client.db.JobTemplate, IDs: []string{job.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.JobTemplateDeleteOne]{ client: suite.client.db.JobTemplate, IDs: []string{secondJob.ID}, - }).MustDelete(testUser2.UserCtx, t) + }).MustDelete(sharedTestUser2.UserCtx, t) } func TestScheduledJobs(t *testing.T) { - job := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - runner := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client, RefCode: "Test Control"}).MustNew(testUser1.UserCtx, t) + job := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + runner := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client, RefCode: "Test Control"}).MustNew(sharedTestUser1.UserCtx, t) subControl := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID, Name: "Test Control"}). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -143,7 +143,7 @@ func TestScheduledJobs(t *testing.T) { }{ { name: "happy path - create scheduled job with runner", - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, client: suite.client.api, jobBuilder: ScheduledJobBuilder{ client: suite.client, @@ -155,7 +155,7 @@ func TestScheduledJobs(t *testing.T) { }, { name: "happy path - create scheduled job with runner by admin", - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, client: suite.client.api, jobBuilder: ScheduledJobBuilder{ client: suite.client, @@ -167,7 +167,7 @@ func TestScheduledJobs(t *testing.T) { }, { name: "create scheduled job with runner by view only user should fail", - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, client: suite.client.api, jobBuilder: ScheduledJobBuilder{ client: suite.client, @@ -209,34 +209,34 @@ func TestScheduledJobs(t *testing.T) { (&Cleanup[*generated.JobRunnerDeleteOne]{ client: suite.client.db.JobRunner, ID: runner.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.JobTemplateDeleteOne]{ client: suite.client.db.JobTemplate, ID: job.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.SubcontrolDeleteOne]{ client: suite.client.db.Subcontrol, ID: subControl.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.ControlDeleteOne]{ client: suite.client.db.Control, ID: control.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateScheduledJob(t *testing.T) { - job := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - jobSystemOwned := (&JobTemplateBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + job := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + // jobSystemOwned := (&JobTemplateBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - runner := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control := (&ControlBuilder{client: suite.client, RefCode: "Test Control"}).MustNew(testUser1.UserCtx, t) + runner := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control := (&ControlBuilder{client: suite.client, RefCode: "Test Control"}).MustNew(sharedTestUser1.UserCtx, t) subControl := (&SubcontrolBuilder{client: suite.client, ControlID: control.ID, Name: "Test Control"}). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) - job2 := (&JobTemplateBuilder{client: suite.client, Cron: "0 0 0 * * *"}).MustNew(testUser2.UserCtx, t) + job2 := (&JobTemplateBuilder{client: suite.client, Cron: "0 0 0 * * *"}).MustNew(sharedTestUser2.UserCtx, t) cron := "0 0 0 * * *" invalidCron := "0 0 * * *" // invalid cron syntax (requires 5 parts), should fail validation @@ -254,17 +254,17 @@ func TestMutationCreateScheduledJob(t *testing.T) { JobTemplateID: job.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, // TODO: see comment on schema, public tuples need to be implemented for this to work - { - name: "happy path, minimal input, cron inherited from job template, system owned job", - request: testclient.CreateScheduledJobInput{ - JobTemplateID: jobSystemOwned.ID, - }, - client: suite.client.api, - ctx: testUser1.UserCtx, - }, + // { + // name: "happy path, minimal input, cron inherited from job template, system owned job", + // request: testclient.CreateScheduledJobInput{ + // JobTemplateID: jobSystemOwned.ID, + // }, + // client: suite.client.api, + // ctx: testUser1.UserCtx, + // }, { name: "happy path, all input", request: testclient.CreateScheduledJobInput{ @@ -275,14 +275,14 @@ func TestMutationCreateScheduledJob(t *testing.T) { SubcontrolIDs: []string{subControl.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", request: testclient.CreateScheduledJobInput{ JobTemplateID: job.ID, Cron: &cron, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -303,7 +303,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { Cron: &cron, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -313,7 +313,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { Cron: &cron, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -324,7 +324,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { JobRunnerID: &runner.ID, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -333,7 +333,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { Cron: &cron, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -343,7 +343,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { Cron: &invalidCron, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid cron syntax", }, } @@ -392,38 +392,38 @@ func TestMutationCreateScheduledJob(t *testing.T) { } // cleanup each ScheduledJob created - (&Cleanup[*generated.ScheduledJobDeleteOne]{client: suite.client.db.ScheduledJob, ID: resp.CreateScheduledJob.ScheduledJob.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ScheduledJobDeleteOne]{client: suite.client.db.ScheduledJob, ID: resp.CreateScheduledJob.ScheduledJob.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } // cleanup each JobTemplate created - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job2.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job2.ID}).MustDelete(sharedTestUser2.UserCtx, t) // (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: jobSystemOwned.ID}).MustDelete(systemAdminUser.UserCtx, t) // cleanup each JobRunner created - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: runner.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: runner.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each Control created - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each Subcontrol created - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subControl.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateScheduledJob(t *testing.T) { - job := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control1 := (&ControlBuilder{client: suite.client, RefCode: "TC-1"}).MustNew(testUser1.UserCtx, t) + job := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, RefCode: "TC-1"}).MustNew(sharedTestUser1.UserCtx, t) // ensure we can create two scheduled jobs with the same job template id - scheduledJob := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID, ControlIDs: []string{control1.ID}}).MustNew(testUser1.UserCtx, t) - scheduledJob2 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(testUser1.UserCtx, t) + scheduledJob := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID, ControlIDs: []string{control1.ID}}).MustNew(sharedTestUser1.UserCtx, t) + scheduledJob2 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(sharedTestUser1.UserCtx, t) - runner := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anotherRunner := (&JobRunnerBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client, RefCode: "TC-2"}).MustNew(testUser1.UserCtx, t) + runner := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anotherRunner := (&JobRunnerBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, RefCode: "TC-2"}).MustNew(sharedTestUser1.UserCtx, t) subControl := (&SubcontrolBuilder{client: suite.client, ControlID: control2.ID, Name: "SCT-1"}). - MustNew(testUser1.UserCtx, t) + MustNew(sharedTestUser1.UserCtx, t) newCron := "1 1 0 * * *" anotherCron := "0 0 1 * * *" @@ -443,7 +443,7 @@ func TestMutationUpdateScheduledJob(t *testing.T) { }, scheduledJobID: scheduledJob.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -482,7 +482,7 @@ func TestMutationUpdateScheduledJob(t *testing.T) { }, scheduledJobID: scheduledJob.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -492,7 +492,7 @@ func TestMutationUpdateScheduledJob(t *testing.T) { }, scheduledJobID: scheduledJob.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -502,7 +502,7 @@ func TestMutationUpdateScheduledJob(t *testing.T) { }, scheduledJobID: scheduledJob.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid cron syntax", }, } @@ -543,27 +543,27 @@ func TestMutationUpdateScheduledJob(t *testing.T) { }) } - (&Cleanup[*generated.ScheduledJobDeleteOne]{client: suite.client.db.ScheduledJob, ID: scheduledJob.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ScheduledJobDeleteOne]{client: suite.client.db.ScheduledJob, ID: scheduledJob.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each JobTemplate created - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each JobRunner created - (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: runner.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobRunnerDeleteOne]{client: suite.client.db.JobRunner, ID: runner.ID}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each Control created - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup each Subcontrol created - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subControl.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subControl.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteScheduledJob(t *testing.T) { // create scheduled jobs to be deleted - job := (&JobTemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - scheduledJob1 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(testUser1.UserCtx, t) - scheduledJob2 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(testUser1.UserCtx, t) - scheduledJob3 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(testUser1.UserCtx, t) + job := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + scheduledJob1 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(sharedTestUser1.UserCtx, t) + scheduledJob2 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(sharedTestUser1.UserCtx, t) + scheduledJob3 := (&ScheduledJobBuilder{client: suite.client, JobID: job.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -576,27 +576,27 @@ func TestMutationDeleteScheduledJob(t *testing.T) { name: "not found, delete", idToDelete: scheduledJob1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: scheduledJob1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: scheduledJob1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: scheduledJob1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -615,7 +615,7 @@ func TestMutationDeleteScheduledJob(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -636,5 +636,5 @@ func TestMutationDeleteScheduledJob(t *testing.T) { } // cleanup each JobTemplate created - (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.JobTemplateDeleteOne]{client: suite.client.db.JobTemplate, ID: job.ID}).MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/schema/ent.graphql b/internal/graphapi/schema/ent.graphql index 5affd202d3..c81ffc4d9e 100644 --- a/internal/graphapi/schema/ent.graphql +++ b/internal/graphapi/schema/ent.graphql @@ -1630,7 +1630,7 @@ type Assessment implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: ID """ @@ -13891,28 +13891,85 @@ input CreateOrganizationInput { Whether the organization has a dedicated database """ dedicatedDb: Boolean + actionPlanCreatorIDs: [ID!] + apiTokenCreatorIDs: [ID!] + assessmentCreatorIDs: [ID!] + assetCreatorIDs: [ID!] + campaignCreatorIDs: [ID!] + campaignTargetCreatorIDs: [ID!] + checkResultCreatorIDs: [ID!] + contactCreatorIDs: [ID!] controlCreatorIDs: [ID!] controlImplementationCreatorIDs: [ID!] controlObjectiveCreatorIDs: [ID!] + customTypeEnumCreatorIDs: [ID!] + discussionCreatorIDs: [ID!] + emailBrandingCreatorIDs: [ID!] + emailTemplateCreatorIDs: [ID!] + entityCreatorIDs: [ID!] + entityTypeCreatorIDs: [ID!] evidenceCreatorIDs: [ID!] - assetCreatorIDs: [ID!] + exportCreatorIDs: [ID!] + fileCreatorIDs: [ID!] findingCreatorIDs: [ID!] - vulnerabilityCreatorIDs: [ID!] groupCreatorIDs: [ID!] + identityHolderCreatorIDs: [ID!] + integrationCreatorIDs: [ID!] + integrationWebhookCreatorIDs: [ID!] internalPolicyCreatorIDs: [ID!] + jobRunnerCreatorIDs: [ID!] + jobRunnerRegistrationTokenCreatorIDs: [ID!] + jobRunnerTokenCreatorIDs: [ID!] + jobTemplateCreatorIDs: [ID!] mappedControlCreatorIDs: [ID!] narrativeCreatorIDs: [ID!] + noteCreatorIDs: [ID!] + notificationTemplateCreatorIDs: [ID!] + organizationCreatorIDs: [ID!] + platformCreatorIDs: [ID!] procedureCreatorIDs: [ID!] programCreatorIDs: [ID!] + remediationCreatorIDs: [ID!] + reviewCreatorIDs: [ID!] riskCreatorIDs: [ID!] - identityHolderCreatorIDs: [ID!] + scanCreatorIDs: [ID!] scheduledJobCreatorIDs: [ID!] + scheduledJobRunCreatorIDs: [ID!] standardCreatorIDs: [ID!] - templateCreatorIDs: [ID!] + subcontrolCreatorIDs: [ID!] subprocessorCreatorIDs: [ID!] + subscriberCreatorIDs: [ID!] + systemDetailCreatorIDs: [ID!] + tagDefinitionCreatorIDs: [ID!] + taskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + trustCenterCreatorIDs: [ID!] + trustCenterComplianceCreatorIDs: [ID!] trustCenterDocCreatorIDs: [ID!] + trustCenterEntityCreatorIDs: [ID!] + trustCenterFaqCreatorIDs: [ID!] + trustCenterNdaRequestCreatorIDs: [ID!] trustCenterSubprocessorCreatorIDs: [ID!] - actionPlanCreatorIDs: [ID!] + trustCenterWatermarkConfigCreatorIDs: [ID!] + userCreatorIDs: [ID!] + userSettingCreatorIDs: [ID!] + vendorRiskScoreCreatorIDs: [ID!] + vulnerabilityCreatorIDs: [ID!] + workflowAssignmentCreatorIDs: [ID!] + workflowAssignmentTargetCreatorIDs: [ID!] + workflowDefinitionCreatorIDs: [ID!] + workflowEventCreatorIDs: [ID!] + workflowInstanceCreatorIDs: [ID!] + workflowObjectRefCreatorIDs: [ID!] + workflowProposalCreatorIDs: [ID!] + campaignsManagerIDs: [ID!] + complianceManagerIDs: [ID!] + groupManagerIDs: [ID!] + policiesManagerIDs: [ID!] + registryManagerIDs: [ID!] + riskManagerIDs: [ID!] + trustCenterManagerIDs: [ID!] + workflowsManagerIDs: [ID!] parentID: ID settingID: ID personalAccessTokenIDs: [ID!] @@ -42348,6 +42405,8 @@ enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ OrgMembershipWhereInput is used for filtering OrgMembership objects. @@ -42813,7 +42872,7 @@ type Organization implements Node { the stripe customer ID this organization is associated to """ stripeCustomerID: String - controlCreators( + actionPlanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42844,7 +42903,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlImplementationCreators( + apiTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42875,7 +42934,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlObjectiveCreators( + assessmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42906,7 +42965,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - evidenceCreators( + assetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42937,7 +42996,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - assetCreators( + campaignCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42968,7 +43027,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - findingCreators( + campaignTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -42999,7 +43058,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - vulnerabilityCreators( + checkResultCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43030,7 +43089,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - groupCreators( + contactCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43061,7 +43120,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - internalPolicyCreators( + controlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43092,7 +43151,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - mappedControlCreators( + controlImplementationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43123,7 +43182,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - narrativeCreators( + controlObjectiveCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43154,7 +43213,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - procedureCreators( + customTypeEnumCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43185,7 +43244,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - programCreators( + discussionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43216,7 +43275,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - riskCreators( + emailBrandingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43247,7 +43306,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - identityHolderCreators( + emailTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43278,7 +43337,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - scheduledJobCreators( + entityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43309,7 +43368,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - standardCreators( + entityTypeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43340,7 +43399,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templateCreators( + evidenceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43371,7 +43430,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - subprocessorCreators( + exportCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43402,7 +43461,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterDocCreators( + fileCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43433,7 +43492,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterSubprocessorCreators( + findingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43464,7 +43523,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - actionPlanCreators( + groupCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43495,8 +43554,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - parent: Organization - children( + identityHolderCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43518,17 +43576,16 @@ type Organization implements Node { last: Int """ - Ordering options for Organizations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [OrganizationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Organizations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: OrganizationWhereInput - ): OrganizationConnection! - setting: OrganizationSetting - personalAccessTokens( + where: GroupWhereInput + ): GroupConnection! + integrationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43550,16 +43607,16 @@ type Organization implements Node { last: Int """ - Ordering options for PersonalAccessTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PersonalAccessTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for PersonalAccessTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - apiTokens( + where: GroupWhereInput + ): GroupConnection! + integrationWebhookCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43581,16 +43638,16 @@ type Organization implements Node { last: Int """ - Ordering options for APITokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [APITokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for APITokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: APITokenWhereInput - ): APITokenConnection! - emailTemplates( + where: GroupWhereInput + ): GroupConnection! + internalPolicyCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43612,16 +43669,16 @@ type Organization implements Node { last: Int """ - Ordering options for EmailTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EmailTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EmailTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EmailTemplateWhereInput - ): EmailTemplateConnection! - notificationPreferences( + where: GroupWhereInput + ): GroupConnection! + jobRunnerCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43643,16 +43700,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationPreferences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationPreferenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationPreferences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationPreferenceWhereInput - ): NotificationPreferenceConnection! - notificationTemplates( + where: GroupWhereInput + ): GroupConnection! + jobRunnerRegistrationTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43674,16 +43731,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationTemplateWhereInput - ): NotificationTemplateConnection! - users( + where: GroupWhereInput + ): GroupConnection! + jobRunnerTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43705,16 +43762,16 @@ type Organization implements Node { last: Int """ - Ordering options for Users returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [UserOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Users returned from the connection. + Filtering options for Groups returned from the connection. """ - where: UserWhereInput - ): UserConnection! - files( + where: GroupWhereInput + ): GroupConnection! + jobTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43736,16 +43793,16 @@ type Organization implements Node { last: Int """ - Ordering options for Files returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [FileOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Files returned from the connection. + Filtering options for Groups returned from the connection. """ - where: FileWhereInput - ): FileConnection! - events( + where: GroupWhereInput + ): GroupConnection! + mappedControlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43767,16 +43824,16 @@ type Organization implements Node { last: Int """ - Ordering options for Events returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EventOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Events returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EventWhereInput - ): EventConnection! - secrets( + where: GroupWhereInput + ): GroupConnection! + narrativeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43798,17 +43855,16 @@ type Organization implements Node { last: Int """ - Ordering options for Hushes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [HushOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Hushes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: HushWhereInput - ): HushConnection! - avatarFile: File - groups( + where: GroupWhereInput + ): GroupConnection! + noteCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43839,7 +43895,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templates( + notificationTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43861,16 +43917,16 @@ type Organization implements Node { last: Int """ - Ordering options for Templates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Templates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TemplateWhereInput - ): TemplateConnection! - integrations( + where: GroupWhereInput + ): GroupConnection! + organizationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43892,16 +43948,16 @@ type Organization implements Node { last: Int """ - Ordering options for Integrations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IntegrationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Integrations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IntegrationWhereInput - ): IntegrationConnection! - documents( + where: GroupWhereInput + ): GroupConnection! + platformCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43923,17 +43979,78 @@ type Organization implements Node { last: Int """ - Ordering options for DocumentDataSlice returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DocumentDataOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DocumentDataSlice returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - orgSubscriptions: [OrgSubscription!] - invites( + where: GroupWhereInput + ): GroupConnection! + procedureCreators( + """ + 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! + programCreators( + """ + 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! + remediationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43955,16 +44072,16 @@ type Organization implements Node { last: Int """ - Ordering options for Invites returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InviteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Invites returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InviteWhereInput - ): InviteConnection! - subscribers( + where: GroupWhereInput + ): GroupConnection! + reviewCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -43986,16 +44103,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subscribers returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubscriberOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subscribers returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubscriberWhereInput - ): SubscriberConnection! - entities( + where: GroupWhereInput + ): GroupConnection! + riskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44017,16 +44134,16 @@ type Organization implements Node { last: Int """ - Ordering options for Entities returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Entities returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityWhereInput - ): EntityConnection! - platforms( + where: GroupWhereInput + ): GroupConnection! + scanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44048,16 +44165,16 @@ type Organization implements Node { last: Int """ - Ordering options for Platforms returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PlatformOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Platforms returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PlatformWhereInput - ): PlatformConnection! - identityHolders( + where: GroupWhereInput + ): GroupConnection! + scheduledJobCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44079,16 +44196,16 @@ type Organization implements Node { last: Int """ - Ordering options for IdentityHolders returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IdentityHolderOrder!] + orderBy: [GroupOrder!] """ - Filtering options for IdentityHolders returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IdentityHolderWhereInput - ): IdentityHolderConnection! - campaigns( + where: GroupWhereInput + ): GroupConnection! + scheduledJobRunCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44110,16 +44227,16 @@ type Organization implements Node { last: Int """ - Ordering options for Campaigns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Campaigns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignWhereInput - ): CampaignConnection! - campaignTargets( + where: GroupWhereInput + ): GroupConnection! + standardCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44141,16 +44258,16 @@ type Organization implements Node { last: Int """ - Ordering options for CampaignTargets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignTargetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CampaignTargets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignTargetWhereInput - ): CampaignTargetConnection! - entityTypes( + where: GroupWhereInput + ): GroupConnection! + subcontrolCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44172,16 +44289,16 @@ type Organization implements Node { last: Int """ - Ordering options for EntityTypes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityTypeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EntityTypes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - contacts( + where: GroupWhereInput + ): GroupConnection! + subprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44203,16 +44320,16 @@ type Organization implements Node { last: Int """ - Ordering options for Contacts returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ContactOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Contacts returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ContactWhereInput - ): ContactConnection! - notes( + where: GroupWhereInput + ): GroupConnection! + subscriberCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44234,16 +44351,16 @@ type Organization implements Node { last: Int """ - Ordering options for Notes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NoteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Notes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NoteWhereInput - ): NoteConnection! - tasks( + where: GroupWhereInput + ): GroupConnection! + systemDetailCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44265,16 +44382,16 @@ type Organization implements Node { last: Int """ - Ordering options for Tasks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TaskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Tasks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TaskWhereInput - ): TaskConnection! - programs( + where: GroupWhereInput + ): GroupConnection! + tagDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44296,16 +44413,16 @@ type Organization implements Node { last: Int """ - Ordering options for Programs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProgramOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Programs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProgramWhereInput - ): ProgramConnection! - systemDetails( + where: GroupWhereInput + ): GroupConnection! + taskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44327,16 +44444,16 @@ type Organization implements Node { last: Int """ - Ordering options for SystemDetails returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SystemDetailOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SystemDetails returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SystemDetailWhereInput - ): SystemDetailConnection! - procedures( + where: GroupWhereInput + ): GroupConnection! + templateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44358,16 +44475,16 @@ type Organization implements Node { last: Int """ - Ordering options for Procedures returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProcedureOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Procedures returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProcedureWhereInput - ): ProcedureConnection! - internalPolicies( + where: GroupWhereInput + ): GroupConnection! + trustCenterCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44389,16 +44506,16 @@ type Organization implements Node { last: Int """ - Ordering options for InternalPolicies returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InternalPolicyOrder!] + orderBy: [GroupOrder!] """ - Filtering options for InternalPolicies returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InternalPolicyWhereInput - ): InternalPolicyConnection! - risks( + where: GroupWhereInput + ): GroupConnection! + trustCenterComplianceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44420,16 +44537,16 @@ type Organization implements Node { last: Int """ - Ordering options for Risks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [RiskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Risks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: RiskWhereInput - ): RiskConnection! - controlObjectives( + where: GroupWhereInput + ): GroupConnection! + trustCenterDocCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44451,16 +44568,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlObjectives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlObjectiveOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlObjectives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlObjectiveWhereInput - ): ControlObjectiveConnection! - narratives( + where: GroupWhereInput + ): GroupConnection! + trustCenterEntityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44482,16 +44599,16 @@ type Organization implements Node { last: Int """ - Ordering options for Narratives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NarrativeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Narratives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NarrativeWhereInput - ): NarrativeConnection! - controls( + where: GroupWhereInput + ): GroupConnection! + trustCenterFaqCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44513,16 +44630,16 @@ type Organization implements Node { last: Int """ - Ordering options for Controls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Controls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlWhereInput - ): ControlConnection! - subcontrols( + where: GroupWhereInput + ): GroupConnection! + trustCenterNdaRequestCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44544,16 +44661,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subcontrols returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubcontrolOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subcontrols returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubcontrolWhereInput - ): SubcontrolConnection! - controlImplementations( + where: GroupWhereInput + ): GroupConnection! + trustCenterSubprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44575,16 +44692,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlImplementations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlImplementationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlImplementations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlImplementationWhereInput - ): ControlImplementationConnection! - mappedControls( + where: GroupWhereInput + ): GroupConnection! + trustCenterWatermarkConfigCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44606,16 +44723,16 @@ type Organization implements Node { last: Int """ - Ordering options for MappedControls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [MappedControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for MappedControls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: MappedControlWhereInput - ): MappedControlConnection! - evidence( + where: GroupWhereInput + ): GroupConnection! + userCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44637,16 +44754,16 @@ type Organization implements Node { last: Int """ - Ordering options for Evidences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EvidenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Evidences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EvidenceWhereInput - ): EvidenceConnection! - standards( + where: GroupWhereInput + ): GroupConnection! + userSettingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44668,16 +44785,16 @@ type Organization implements Node { last: Int """ - Ordering options for Standards returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [StandardOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Standards returned from the connection. + Filtering options for Groups returned from the connection. """ - where: StandardWhereInput - ): StandardConnection! - actionPlans( + where: GroupWhereInput + ): GroupConnection! + vendorRiskScoreCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44699,16 +44816,16 @@ type Organization implements Node { last: Int """ - Ordering options for ActionPlans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ActionPlanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ActionPlans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ActionPlanWhereInput - ): ActionPlanConnection! - customDomains( + where: GroupWhereInput + ): GroupConnection! + vulnerabilityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44730,16 +44847,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomDomains returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CustomDomainOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CustomDomains returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CustomDomainWhereInput - ): CustomDomainConnection! - jobRunners( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44761,16 +44878,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunners returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunners returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerWhereInput - ): JobRunnerConnection! - jobRunnerTokens( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44792,16 +44909,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerTokenWhereInput - ): JobRunnerTokenConnection! - jobRunnerRegistrationTokens( + where: GroupWhereInput + ): GroupConnection! + workflowDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44823,16 +44940,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerRegistrationTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerRegistrationTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerRegistrationTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerRegistrationTokenWhereInput - ): JobRunnerRegistrationTokenConnection! - dnsVerifications( + where: GroupWhereInput + ): GroupConnection! + workflowEventCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44854,16 +44971,16 @@ type Organization implements Node { last: Int """ - Ordering options for DNSVerifications returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DNSVerificationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DNSVerifications returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DNSVerificationWhereInput - ): DNSVerificationConnection! - jobTemplates( + where: GroupWhereInput + ): GroupConnection! + workflowInstanceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44885,16 +45002,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobTemplateWhereInput - ): JobTemplateConnection! - scheduledJobs( + where: GroupWhereInput + ): GroupConnection! + workflowObjectRefCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44916,16 +45033,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobWhereInput - ): ScheduledJobConnection! - jobResults( + where: GroupWhereInput + ): GroupConnection! + workflowProposalCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -44947,16 +45064,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobResults returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobResultOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobResults returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobResultWhereInput - ): JobResultConnection! - scheduledJobRuns( + where: GroupWhereInput + ): GroupConnection! + campaignsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -44978,16 +45095,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobRuns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobRunOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobRuns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobRunWhereInput - ): ScheduledJobRunConnection! - trustCenters( + where: GroupWhereInput + ): GroupConnection! + complianceManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45009,16 +45126,16 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenters returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TrustCenterOrder!] + orderBy: [GroupOrder!] """ - Filtering options for TrustCenters returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TrustCenterWhereInput - ): TrustCenterConnection! - assets( + where: GroupWhereInput + ): GroupConnection! + groupManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45040,16 +45157,16 @@ type Organization implements Node { last: Int """ - Ordering options for Assets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [AssetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Assets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: AssetWhereInput - ): AssetConnection! - scans( + where: GroupWhereInput + ): GroupConnection! + policiesManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45071,16 +45188,16 @@ type Organization implements Node { last: Int """ - Ordering options for Scans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Scans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScanWhereInput - ): ScanConnection! - slaDefinitions( + where: GroupWhereInput + ): GroupConnection! + registryManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45102,16 +45219,16 @@ type Organization implements Node { last: Int """ - Ordering options for SLADefinitions returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SLADefinitionOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SLADefinitions returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SLADefinitionWhereInput - ): SLADefinitionConnection! - subprocessors( + where: GroupWhereInput + ): GroupConnection! + riskManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45133,16 +45250,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subprocessors returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubprocessorOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subprocessors returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubprocessorWhereInput - ): SubprocessorConnection! - exports( + where: GroupWhereInput + ): GroupConnection! + trustCenterManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45164,16 +45281,16 @@ type Organization implements Node { last: Int """ - Ordering options for Exports returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ExportOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Exports returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ExportWhereInput - ): ExportConnection! - trustCenterWatermarkConfigs( + where: GroupWhereInput + ): GroupConnection! + workflowsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -45195,16 +45312,17 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenterWatermarkConfigs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TrustCenterWatermarkConfigOrder!] + orderBy: [GroupOrder!] """ - Filtering options for TrustCenterWatermarkConfigs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TrustCenterWatermarkConfigWhereInput - ): TrustCenterWatermarkConfigConnection! - assessments( + where: GroupWhereInput + ): GroupConnection! + parent: Organization + children( """ Returns the elements in the list that come after the specified cursor. """ @@ -45226,16 +45344,17 @@ type Organization implements Node { last: Int """ - Ordering options for Assessments returned from the connection. + Ordering options for Organizations returned from the connection. """ - orderBy: [AssessmentOrder!] + orderBy: [OrganizationOrder!] """ - Filtering options for Assessments returned from the connection. + Filtering options for Organizations returned from the connection. """ - where: AssessmentWhereInput - ): AssessmentConnection! - assessmentResponses( + where: OrganizationWhereInput + ): OrganizationConnection! + setting: OrganizationSetting + personalAccessTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -45257,16 +45376,16 @@ type Organization implements Node { last: Int """ - Ordering options for AssessmentResponses returned from the connection. + Ordering options for PersonalAccessTokens returned from the connection. """ - orderBy: [AssessmentResponseOrder!] + orderBy: [PersonalAccessTokenOrder!] """ - Filtering options for AssessmentResponses returned from the connection. + Filtering options for PersonalAccessTokens returned from the connection. """ - where: AssessmentResponseWhereInput - ): AssessmentResponseConnection! - customTypeEnums( + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + apiTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -45288,16 +45407,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomTypeEnums returned from the connection. + Ordering options for APITokens returned from the connection. """ - orderBy: [CustomTypeEnumOrder!] + orderBy: [APITokenOrder!] """ - Filtering options for CustomTypeEnums returned from the connection. + Filtering options for APITokens returned from the connection. """ - where: CustomTypeEnumWhereInput - ): CustomTypeEnumConnection! - tagDefinitions( + where: APITokenWhereInput + ): APITokenConnection! + emailTemplates( """ Returns the elements in the list that come after the specified cursor. """ @@ -45319,16 +45438,16 @@ type Organization implements Node { last: Int """ - Ordering options for TagDefinitions returned from the connection. + Ordering options for EmailTemplates returned from the connection. """ - orderBy: [TagDefinitionOrder!] + orderBy: [EmailTemplateOrder!] """ - Filtering options for TagDefinitions returned from the connection. + Filtering options for EmailTemplates returned from the connection. """ - where: TagDefinitionWhereInput - ): TagDefinitionConnection! - remediations( + where: EmailTemplateWhereInput + ): EmailTemplateConnection! + notificationPreferences( """ Returns the elements in the list that come after the specified cursor. """ @@ -45350,16 +45469,1723 @@ type Organization implements Node { last: Int """ - Ordering options for Remediations returned from the connection. + Ordering options for NotificationPreferences returned from the connection. """ - orderBy: [RemediationOrder!] + orderBy: [NotificationPreferenceOrder!] """ - Filtering options for Remediations returned from the connection. + Filtering options for NotificationPreferences returned from the connection. """ - where: RemediationWhereInput - ): RemediationConnection! - findings( + where: NotificationPreferenceWhereInput + ): NotificationPreferenceConnection! + notificationTemplates( + """ + 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 NotificationTemplates returned from the connection. + """ + orderBy: [NotificationTemplateOrder!] + + """ + Filtering options for NotificationTemplates returned from the connection. + """ + where: NotificationTemplateWhereInput + ): NotificationTemplateConnection! + 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! + 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 + + """ + Ordering options for Files returned from the connection. + """ + orderBy: [FileOrder!] + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + 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 + + """ + Ordering options for Events returned from the connection. + """ + orderBy: [EventOrder!] + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + secrets( + """ + 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! + avatarFile: File + 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! + 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! + 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! + documents( + """ + 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 DocumentDataSlice returned from the connection. + """ + orderBy: [DocumentDataOrder!] + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + orgSubscriptions: [OrgSubscription!] + 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 + + """ + Ordering options for Invites returned from the connection. + """ + orderBy: [InviteOrder!] + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + 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 + + """ + Ordering options for Subscribers returned from the connection. + """ + orderBy: [SubscriberOrder!] + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + 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! + platforms( + """ + 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 Platforms returned from the connection. + """ + orderBy: [PlatformOrder!] + + """ + Filtering options for Platforms returned from the connection. + """ + where: PlatformWhereInput + ): PlatformConnection! + identityHolders( + """ + 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 IdentityHolders returned from the connection. + """ + orderBy: [IdentityHolderOrder!] + + """ + Filtering options for IdentityHolders returned from the connection. + """ + where: IdentityHolderWhereInput + ): IdentityHolderConnection! + campaigns( + """ + 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 Campaigns returned from the connection. + """ + orderBy: [CampaignOrder!] + + """ + Filtering options for Campaigns returned from the connection. + """ + where: CampaignWhereInput + ): CampaignConnection! + campaignTargets( + """ + 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 CampaignTargets returned from the connection. + """ + orderBy: [CampaignTargetOrder!] + + """ + Filtering options for CampaignTargets returned from the connection. + """ + where: CampaignTargetWhereInput + ): CampaignTargetConnection! + 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! + 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 + + """ + Ordering options for Contacts returned from the connection. + """ + orderBy: [ContactOrder!] + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + 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 + + """ + Ordering options for Notes returned from the connection. + """ + orderBy: [NoteOrder!] + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + 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 + + """ + Ordering options for Tasks returned from the connection. + """ + orderBy: [TaskOrder!] + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + 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 + + """ + Ordering options for Programs returned from the connection. + """ + orderBy: [ProgramOrder!] + + """ + Filtering options for Programs returned from the connection. + """ + where: ProgramWhereInput + ): ProgramConnection! + systemDetails( + """ + 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 SystemDetails returned from the connection. + """ + orderBy: [SystemDetailOrder!] + + """ + Filtering options for SystemDetails returned from the connection. + """ + where: SystemDetailWhereInput + ): SystemDetailConnection! + 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 + + """ + Ordering options for Procedures returned from the connection. + """ + orderBy: [ProcedureOrder!] + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + 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 + + """ + Ordering options for InternalPolicies returned from the connection. + """ + orderBy: [InternalPolicyOrder!] + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + 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 + + """ + Ordering options for Risks returned from the connection. + """ + orderBy: [RiskOrder!] + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + 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 + + """ + Ordering options for ControlObjectives returned from the connection. + """ + orderBy: [ControlObjectiveOrder!] + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + 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 + + """ + Ordering options for Narratives returned from the connection. + """ + orderBy: [NarrativeOrder!] + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + 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 + + """ + Ordering options for Controls returned from the connection. + """ + orderBy: [ControlOrder!] + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + 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 + + """ + Ordering options for Subcontrols returned from the connection. + """ + orderBy: [SubcontrolOrder!] + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + controlImplementations( + """ + 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 ControlImplementations returned from the connection. + """ + orderBy: [ControlImplementationOrder!] + + """ + Filtering options for ControlImplementations returned from the connection. + """ + where: ControlImplementationWhereInput + ): ControlImplementationConnection! + mappedControls( + """ + 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 MappedControls returned from the connection. + """ + orderBy: [MappedControlOrder!] + + """ + Filtering options for MappedControls returned from the connection. + """ + where: MappedControlWhereInput + ): MappedControlConnection! + evidence( + """ + 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 Evidences returned from the connection. + """ + orderBy: [EvidenceOrder!] + + """ + Filtering options for Evidences returned from the connection. + """ + where: EvidenceWhereInput + ): EvidenceConnection! + 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 + + """ + Ordering options for Standards returned from the connection. + """ + orderBy: [StandardOrder!] + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + 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 + + """ + Ordering options for ActionPlans returned from the connection. + """ + orderBy: [ActionPlanOrder!] + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + customDomains( + """ + 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 CustomDomains returned from the connection. + """ + orderBy: [CustomDomainOrder!] + + """ + Filtering options for CustomDomains returned from the connection. + """ + where: CustomDomainWhereInput + ): CustomDomainConnection! + jobRunners( + """ + 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 JobRunners returned from the connection. + """ + orderBy: [JobRunnerOrder!] + + """ + Filtering options for JobRunners returned from the connection. + """ + where: JobRunnerWhereInput + ): JobRunnerConnection! + jobRunnerTokens( + """ + 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 JobRunnerTokens returned from the connection. + """ + orderBy: [JobRunnerTokenOrder!] + + """ + Filtering options for JobRunnerTokens returned from the connection. + """ + where: JobRunnerTokenWhereInput + ): JobRunnerTokenConnection! + jobRunnerRegistrationTokens( + """ + 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 JobRunnerRegistrationTokens returned from the connection. + """ + orderBy: [JobRunnerRegistrationTokenOrder!] + + """ + Filtering options for JobRunnerRegistrationTokens returned from the connection. + """ + where: JobRunnerRegistrationTokenWhereInput + ): JobRunnerRegistrationTokenConnection! + dnsVerifications( + """ + 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 DNSVerifications returned from the connection. + """ + orderBy: [DNSVerificationOrder!] + + """ + Filtering options for DNSVerifications returned from the connection. + """ + where: DNSVerificationWhereInput + ): DNSVerificationConnection! + jobTemplates( + """ + 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 JobTemplates returned from the connection. + """ + orderBy: [JobTemplateOrder!] + + """ + Filtering options for JobTemplates returned from the connection. + """ + where: JobTemplateWhereInput + ): JobTemplateConnection! + scheduledJobs( + """ + 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 ScheduledJobs returned from the connection. + """ + orderBy: [ScheduledJobOrder!] + + """ + Filtering options for ScheduledJobs returned from the connection. + """ + where: ScheduledJobWhereInput + ): ScheduledJobConnection! + jobResults( + """ + 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 JobResults returned from the connection. + """ + orderBy: [JobResultOrder!] + + """ + Filtering options for JobResults returned from the connection. + """ + where: JobResultWhereInput + ): JobResultConnection! + scheduledJobRuns( + """ + 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 ScheduledJobRuns returned from the connection. + """ + orderBy: [ScheduledJobRunOrder!] + + """ + Filtering options for ScheduledJobRuns returned from the connection. + """ + where: ScheduledJobRunWhereInput + ): ScheduledJobRunConnection! + trustCenters( + """ + 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 TrustCenters returned from the connection. + """ + orderBy: [TrustCenterOrder!] + + """ + Filtering options for TrustCenters returned from the connection. + """ + where: TrustCenterWhereInput + ): TrustCenterConnection! + assets( + """ + 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 Assets returned from the connection. + """ + orderBy: [AssetOrder!] + + """ + Filtering options for Assets returned from the connection. + """ + where: AssetWhereInput + ): AssetConnection! + scans( + """ + 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 Scans returned from the connection. + """ + orderBy: [ScanOrder!] + + """ + Filtering options for Scans returned from the connection. + """ + where: ScanWhereInput + ): ScanConnection! + slaDefinitions( + """ + 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 SLADefinitions returned from the connection. + """ + orderBy: [SLADefinitionOrder!] + + """ + Filtering options for SLADefinitions returned from the connection. + """ + where: SLADefinitionWhereInput + ): SLADefinitionConnection! + subprocessors( + """ + 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 Subprocessors returned from the connection. + """ + orderBy: [SubprocessorOrder!] + + """ + Filtering options for Subprocessors returned from the connection. + """ + where: SubprocessorWhereInput + ): SubprocessorConnection! + exports( + """ + 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 Exports returned from the connection. + """ + orderBy: [ExportOrder!] + + """ + Filtering options for Exports returned from the connection. + """ + where: ExportWhereInput + ): ExportConnection! + trustCenterWatermarkConfigs( + """ + 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 TrustCenterWatermarkConfigs returned from the connection. + """ + orderBy: [TrustCenterWatermarkConfigOrder!] + + """ + Filtering options for TrustCenterWatermarkConfigs returned from the connection. + """ + where: TrustCenterWatermarkConfigWhereInput + ): TrustCenterWatermarkConfigConnection! + assessments( + """ + 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 Assessments returned from the connection. + """ + orderBy: [AssessmentOrder!] + + """ + Filtering options for Assessments returned from the connection. + """ + where: AssessmentWhereInput + ): AssessmentConnection! + assessmentResponses( + """ + 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 AssessmentResponses returned from the connection. + """ + orderBy: [AssessmentResponseOrder!] + + """ + Filtering options for AssessmentResponses returned from the connection. + """ + where: AssessmentResponseWhereInput + ): AssessmentResponseConnection! + customTypeEnums( + """ + 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 CustomTypeEnums returned from the connection. + """ + orderBy: [CustomTypeEnumOrder!] + + """ + Filtering options for CustomTypeEnums returned from the connection. + """ + where: CustomTypeEnumWhereInput + ): CustomTypeEnumConnection! + tagDefinitions( + """ + 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 TagDefinitions returned from the connection. + """ + orderBy: [TagDefinitionOrder!] + + """ + Filtering options for TagDefinitions returned from the connection. + """ + where: TagDefinitionWhereInput + ): TagDefinitionConnection! + remediations( + """ + 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 Remediations returned from the connection. + """ + orderBy: [RemediationOrder!] + + """ + Filtering options for Remediations returned from the connection. + """ + where: RemediationWhereInput + ): RemediationConnection! + findings( """ Returns the elements in the list that come after the specified cursor. """ @@ -46754,6 +48580,46 @@ input OrganizationWhereInput { avatarUpdatedAtIsNil: Boolean avatarUpdatedAtNotNil: Boolean """ + action_plan_creators edge predicates + """ + hasActionPlanCreators: Boolean + hasActionPlanCreatorsWith: [GroupWhereInput!] + """ + api_token_creators edge predicates + """ + hasAPITokenCreators: Boolean + hasAPITokenCreatorsWith: [GroupWhereInput!] + """ + assessment_creators edge predicates + """ + hasAssessmentCreators: Boolean + hasAssessmentCreatorsWith: [GroupWhereInput!] + """ + asset_creators edge predicates + """ + hasAssetCreators: Boolean + hasAssetCreatorsWith: [GroupWhereInput!] + """ + campaign_creators edge predicates + """ + hasCampaignCreators: Boolean + hasCampaignCreatorsWith: [GroupWhereInput!] + """ + campaign_target_creators edge predicates + """ + hasCampaignTargetCreators: Boolean + hasCampaignTargetCreatorsWith: [GroupWhereInput!] + """ + check_result_creators edge predicates + """ + hasCheckResultCreators: Boolean + hasCheckResultCreatorsWith: [GroupWhereInput!] + """ + contact_creators edge predicates + """ + hasContactCreators: Boolean + hasContactCreatorsWith: [GroupWhereInput!] + """ control_creators edge predicates """ hasControlCreators: Boolean @@ -46769,36 +48635,101 @@ input OrganizationWhereInput { hasControlObjectiveCreators: Boolean hasControlObjectiveCreatorsWith: [GroupWhereInput!] """ + custom_type_enum_creators edge predicates + """ + hasCustomTypeEnumCreators: Boolean + hasCustomTypeEnumCreatorsWith: [GroupWhereInput!] + """ + discussion_creators edge predicates + """ + hasDiscussionCreators: Boolean + hasDiscussionCreatorsWith: [GroupWhereInput!] + """ + email_branding_creators edge predicates + """ + hasEmailBrandingCreators: Boolean + hasEmailBrandingCreatorsWith: [GroupWhereInput!] + """ + email_template_creators edge predicates + """ + hasEmailTemplateCreators: Boolean + hasEmailTemplateCreatorsWith: [GroupWhereInput!] + """ + entity_creators edge predicates + """ + hasEntityCreators: Boolean + hasEntityCreatorsWith: [GroupWhereInput!] + """ + entity_type_creators edge predicates + """ + hasEntityTypeCreators: Boolean + hasEntityTypeCreatorsWith: [GroupWhereInput!] + """ evidence_creators edge predicates """ hasEvidenceCreators: Boolean hasEvidenceCreatorsWith: [GroupWhereInput!] """ - asset_creators edge predicates + export_creators edge predicates """ - hasAssetCreators: Boolean - hasAssetCreatorsWith: [GroupWhereInput!] + hasExportCreators: Boolean + hasExportCreatorsWith: [GroupWhereInput!] + """ + file_creators edge predicates + """ + hasFileCreators: Boolean + hasFileCreatorsWith: [GroupWhereInput!] """ finding_creators edge predicates """ hasFindingCreators: Boolean hasFindingCreatorsWith: [GroupWhereInput!] """ - vulnerability_creators edge predicates - """ - hasVulnerabilityCreators: Boolean - hasVulnerabilityCreatorsWith: [GroupWhereInput!] - """ group_creators edge predicates """ hasGroupCreators: Boolean hasGroupCreatorsWith: [GroupWhereInput!] """ + identity_holder_creators edge predicates + """ + hasIdentityHolderCreators: Boolean + hasIdentityHolderCreatorsWith: [GroupWhereInput!] + """ + integration_creators edge predicates + """ + hasIntegrationCreators: Boolean + hasIntegrationCreatorsWith: [GroupWhereInput!] + """ + integration_webhook_creators edge predicates + """ + hasIntegrationWebhookCreators: Boolean + hasIntegrationWebhookCreatorsWith: [GroupWhereInput!] + """ internal_policy_creators edge predicates """ hasInternalPolicyCreators: Boolean hasInternalPolicyCreatorsWith: [GroupWhereInput!] """ + job_runner_creators edge predicates + """ + hasJobRunnerCreators: Boolean + hasJobRunnerCreatorsWith: [GroupWhereInput!] + """ + job_runner_registration_token_creators edge predicates + """ + hasJobRunnerRegistrationTokenCreators: Boolean + hasJobRunnerRegistrationTokenCreatorsWith: [GroupWhereInput!] + """ + job_runner_token_creators edge predicates + """ + hasJobRunnerTokenCreators: Boolean + hasJobRunnerTokenCreatorsWith: [GroupWhereInput!] + """ + job_template_creators edge predicates + """ + hasJobTemplateCreators: Boolean + hasJobTemplateCreatorsWith: [GroupWhereInput!] + """ mapped_control_creators edge predicates """ hasMappedControlCreators: Boolean @@ -46809,6 +48740,26 @@ input OrganizationWhereInput { hasNarrativeCreators: Boolean hasNarrativeCreatorsWith: [GroupWhereInput!] """ + note_creators edge predicates + """ + hasNoteCreators: Boolean + hasNoteCreatorsWith: [GroupWhereInput!] + """ + notification_template_creators edge predicates + """ + hasNotificationTemplateCreators: Boolean + hasNotificationTemplateCreatorsWith: [GroupWhereInput!] + """ + organization_creators edge predicates + """ + hasOrganizationCreators: Boolean + hasOrganizationCreatorsWith: [GroupWhereInput!] + """ + platform_creators edge predicates + """ + hasPlatformCreators: Boolean + hasPlatformCreatorsWith: [GroupWhereInput!] + """ procedure_creators edge predicates """ hasProcedureCreators: Boolean @@ -46819,50 +48770,210 @@ input OrganizationWhereInput { hasProgramCreators: Boolean hasProgramCreatorsWith: [GroupWhereInput!] """ + remediation_creators edge predicates + """ + hasRemediationCreators: Boolean + hasRemediationCreatorsWith: [GroupWhereInput!] + """ + review_creators edge predicates + """ + hasReviewCreators: Boolean + hasReviewCreatorsWith: [GroupWhereInput!] + """ risk_creators edge predicates """ hasRiskCreators: Boolean hasRiskCreatorsWith: [GroupWhereInput!] """ - identity_holder_creators edge predicates + scan_creators edge predicates """ - hasIdentityHolderCreators: Boolean - hasIdentityHolderCreatorsWith: [GroupWhereInput!] + hasScanCreators: Boolean + hasScanCreatorsWith: [GroupWhereInput!] """ scheduled_job_creators edge predicates """ hasScheduledJobCreators: Boolean hasScheduledJobCreatorsWith: [GroupWhereInput!] """ + scheduled_job_run_creators edge predicates + """ + hasScheduledJobRunCreators: Boolean + hasScheduledJobRunCreatorsWith: [GroupWhereInput!] + """ standard_creators edge predicates """ hasStandardCreators: Boolean hasStandardCreatorsWith: [GroupWhereInput!] """ - template_creators edge predicates + subcontrol_creators edge predicates """ - hasTemplateCreators: Boolean - hasTemplateCreatorsWith: [GroupWhereInput!] + hasSubcontrolCreators: Boolean + hasSubcontrolCreatorsWith: [GroupWhereInput!] """ subprocessor_creators edge predicates """ hasSubprocessorCreators: Boolean hasSubprocessorCreatorsWith: [GroupWhereInput!] """ + subscriber_creators edge predicates + """ + hasSubscriberCreators: Boolean + hasSubscriberCreatorsWith: [GroupWhereInput!] + """ + system_detail_creators edge predicates + """ + hasSystemDetailCreators: Boolean + hasSystemDetailCreatorsWith: [GroupWhereInput!] + """ + tag_definition_creators edge predicates + """ + hasTagDefinitionCreators: Boolean + hasTagDefinitionCreatorsWith: [GroupWhereInput!] + """ + task_creators edge predicates + """ + hasTaskCreators: Boolean + hasTaskCreatorsWith: [GroupWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [GroupWhereInput!] + """ + trust_center_creators edge predicates + """ + hasTrustCenterCreators: Boolean + hasTrustCenterCreatorsWith: [GroupWhereInput!] + """ + trust_center_compliance_creators edge predicates + """ + hasTrustCenterComplianceCreators: Boolean + hasTrustCenterComplianceCreatorsWith: [GroupWhereInput!] + """ trust_center_doc_creators edge predicates """ hasTrustCenterDocCreators: Boolean hasTrustCenterDocCreatorsWith: [GroupWhereInput!] """ + trust_center_entity_creators edge predicates + """ + hasTrustCenterEntityCreators: Boolean + hasTrustCenterEntityCreatorsWith: [GroupWhereInput!] + """ + trust_center_faq_creators edge predicates + """ + hasTrustCenterFaqCreators: Boolean + hasTrustCenterFaqCreatorsWith: [GroupWhereInput!] + """ + trust_center_nda_request_creators edge predicates + """ + hasTrustCenterNdaRequestCreators: Boolean + hasTrustCenterNdaRequestCreatorsWith: [GroupWhereInput!] + """ trust_center_subprocessor_creators edge predicates """ hasTrustCenterSubprocessorCreators: Boolean hasTrustCenterSubprocessorCreatorsWith: [GroupWhereInput!] """ - action_plan_creators edge predicates + trust_center_watermark_config_creators edge predicates """ - hasActionPlanCreators: Boolean - hasActionPlanCreatorsWith: [GroupWhereInput!] + hasTrustCenterWatermarkConfigCreators: Boolean + hasTrustCenterWatermarkConfigCreatorsWith: [GroupWhereInput!] + """ + user_creators edge predicates + """ + hasUserCreators: Boolean + hasUserCreatorsWith: [GroupWhereInput!] + """ + user_setting_creators edge predicates + """ + hasUserSettingCreators: Boolean + hasUserSettingCreatorsWith: [GroupWhereInput!] + """ + vendor_risk_score_creators edge predicates + """ + hasVendorRiskScoreCreators: Boolean + hasVendorRiskScoreCreatorsWith: [GroupWhereInput!] + """ + vulnerability_creators edge predicates + """ + hasVulnerabilityCreators: Boolean + hasVulnerabilityCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_creators edge predicates + """ + hasWorkflowAssignmentCreators: Boolean + hasWorkflowAssignmentCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_target_creators edge predicates + """ + hasWorkflowAssignmentTargetCreators: Boolean + hasWorkflowAssignmentTargetCreatorsWith: [GroupWhereInput!] + """ + workflow_definition_creators edge predicates + """ + hasWorkflowDefinitionCreators: Boolean + hasWorkflowDefinitionCreatorsWith: [GroupWhereInput!] + """ + workflow_event_creators edge predicates + """ + hasWorkflowEventCreators: Boolean + hasWorkflowEventCreatorsWith: [GroupWhereInput!] + """ + workflow_instance_creators edge predicates + """ + hasWorkflowInstanceCreators: Boolean + hasWorkflowInstanceCreatorsWith: [GroupWhereInput!] + """ + workflow_object_ref_creators edge predicates + """ + hasWorkflowObjectRefCreators: Boolean + hasWorkflowObjectRefCreatorsWith: [GroupWhereInput!] + """ + workflow_proposal_creators edge predicates + """ + hasWorkflowProposalCreators: Boolean + hasWorkflowProposalCreatorsWith: [GroupWhereInput!] + """ + campaigns_manager edge predicates + """ + hasCampaignsManager: Boolean + hasCampaignsManagerWith: [GroupWhereInput!] + """ + compliance_manager edge predicates + """ + hasComplianceManager: Boolean + hasComplianceManagerWith: [GroupWhereInput!] + """ + group_manager edge predicates + """ + hasGroupManager: Boolean + hasGroupManagerWith: [GroupWhereInput!] + """ + policies_manager edge predicates + """ + hasPoliciesManager: Boolean + hasPoliciesManagerWith: [GroupWhereInput!] + """ + registry_manager edge predicates + """ + hasRegistryManager: Boolean + hasRegistryManagerWith: [GroupWhereInput!] + """ + risk_manager edge predicates + """ + hasRiskManager: Boolean + hasRiskManagerWith: [GroupWhereInput!] + """ + trust_center_manager edge predicates + """ + hasTrustCenterManager: Boolean + hasTrustCenterManagerWith: [GroupWhereInput!] + """ + workflows_manager edge predicates + """ + hasWorkflowsManager: Boolean + hasWorkflowsManagerWith: [GroupWhereInput!] """ parent edge predicates """ @@ -51827,6 +53938,7 @@ ProgramMembershipRole is enum for the field role enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ ProgramMembershipWhereInput is used for filtering ProgramMembership objects. @@ -72010,8 +74122,6 @@ input UpdateAssessmentInput { """ responseDueDuration: Int clearResponseDueDuration: Boolean - ownerID: ID - clearOwner: Boolean addBlockedGroupIDs: [ID!] removeBlockedGroupIDs: [ID!] clearBlockedGroups: Boolean @@ -76254,6 +78364,30 @@ input UpdateOrganizationInput { """ avatarUpdatedAt: Time clearAvatarUpdatedAt: Boolean + addActionPlanCreatorIDs: [ID!] + removeActionPlanCreatorIDs: [ID!] + clearActionPlanCreators: Boolean + addAPITokenCreatorIDs: [ID!] + removeAPITokenCreatorIDs: [ID!] + clearAPITokenCreators: Boolean + addAssessmentCreatorIDs: [ID!] + removeAssessmentCreatorIDs: [ID!] + clearAssessmentCreators: Boolean + addAssetCreatorIDs: [ID!] + removeAssetCreatorIDs: [ID!] + clearAssetCreators: Boolean + addCampaignCreatorIDs: [ID!] + removeCampaignCreatorIDs: [ID!] + clearCampaignCreators: Boolean + addCampaignTargetCreatorIDs: [ID!] + removeCampaignTargetCreatorIDs: [ID!] + clearCampaignTargetCreators: Boolean + addCheckResultCreatorIDs: [ID!] + removeCheckResultCreatorIDs: [ID!] + clearCheckResultCreators: Boolean + addContactCreatorIDs: [ID!] + removeContactCreatorIDs: [ID!] + clearContactCreators: Boolean addControlCreatorIDs: [ID!] removeControlCreatorIDs: [ID!] clearControlCreators: Boolean @@ -76263,63 +78397,210 @@ input UpdateOrganizationInput { addControlObjectiveCreatorIDs: [ID!] removeControlObjectiveCreatorIDs: [ID!] clearControlObjectiveCreators: Boolean + addCustomTypeEnumCreatorIDs: [ID!] + removeCustomTypeEnumCreatorIDs: [ID!] + clearCustomTypeEnumCreators: Boolean + addDiscussionCreatorIDs: [ID!] + removeDiscussionCreatorIDs: [ID!] + clearDiscussionCreators: Boolean + addEmailBrandingCreatorIDs: [ID!] + removeEmailBrandingCreatorIDs: [ID!] + clearEmailBrandingCreators: Boolean + addEmailTemplateCreatorIDs: [ID!] + removeEmailTemplateCreatorIDs: [ID!] + clearEmailTemplateCreators: Boolean + addEntityCreatorIDs: [ID!] + removeEntityCreatorIDs: [ID!] + clearEntityCreators: Boolean + addEntityTypeCreatorIDs: [ID!] + removeEntityTypeCreatorIDs: [ID!] + clearEntityTypeCreators: Boolean addEvidenceCreatorIDs: [ID!] removeEvidenceCreatorIDs: [ID!] clearEvidenceCreators: Boolean - addAssetCreatorIDs: [ID!] - removeAssetCreatorIDs: [ID!] - clearAssetCreators: Boolean + addExportCreatorIDs: [ID!] + removeExportCreatorIDs: [ID!] + clearExportCreators: Boolean + addFileCreatorIDs: [ID!] + removeFileCreatorIDs: [ID!] + clearFileCreators: Boolean addFindingCreatorIDs: [ID!] removeFindingCreatorIDs: [ID!] clearFindingCreators: Boolean - addVulnerabilityCreatorIDs: [ID!] - removeVulnerabilityCreatorIDs: [ID!] - clearVulnerabilityCreators: Boolean addGroupCreatorIDs: [ID!] removeGroupCreatorIDs: [ID!] clearGroupCreators: Boolean + addIdentityHolderCreatorIDs: [ID!] + removeIdentityHolderCreatorIDs: [ID!] + clearIdentityHolderCreators: Boolean + addIntegrationCreatorIDs: [ID!] + removeIntegrationCreatorIDs: [ID!] + clearIntegrationCreators: Boolean + addIntegrationWebhookCreatorIDs: [ID!] + removeIntegrationWebhookCreatorIDs: [ID!] + clearIntegrationWebhookCreators: Boolean addInternalPolicyCreatorIDs: [ID!] removeInternalPolicyCreatorIDs: [ID!] clearInternalPolicyCreators: Boolean + addJobRunnerCreatorIDs: [ID!] + removeJobRunnerCreatorIDs: [ID!] + clearJobRunnerCreators: Boolean + addJobRunnerRegistrationTokenCreatorIDs: [ID!] + removeJobRunnerRegistrationTokenCreatorIDs: [ID!] + clearJobRunnerRegistrationTokenCreators: Boolean + addJobRunnerTokenCreatorIDs: [ID!] + removeJobRunnerTokenCreatorIDs: [ID!] + clearJobRunnerTokenCreators: Boolean + addJobTemplateCreatorIDs: [ID!] + removeJobTemplateCreatorIDs: [ID!] + clearJobTemplateCreators: Boolean addMappedControlCreatorIDs: [ID!] removeMappedControlCreatorIDs: [ID!] clearMappedControlCreators: Boolean addNarrativeCreatorIDs: [ID!] removeNarrativeCreatorIDs: [ID!] clearNarrativeCreators: Boolean + addNoteCreatorIDs: [ID!] + removeNoteCreatorIDs: [ID!] + clearNoteCreators: Boolean + addNotificationTemplateCreatorIDs: [ID!] + removeNotificationTemplateCreatorIDs: [ID!] + clearNotificationTemplateCreators: Boolean + addOrganizationCreatorIDs: [ID!] + removeOrganizationCreatorIDs: [ID!] + clearOrganizationCreators: Boolean + addPlatformCreatorIDs: [ID!] + removePlatformCreatorIDs: [ID!] + clearPlatformCreators: Boolean addProcedureCreatorIDs: [ID!] removeProcedureCreatorIDs: [ID!] clearProcedureCreators: Boolean addProgramCreatorIDs: [ID!] removeProgramCreatorIDs: [ID!] clearProgramCreators: Boolean + addRemediationCreatorIDs: [ID!] + removeRemediationCreatorIDs: [ID!] + clearRemediationCreators: Boolean + addReviewCreatorIDs: [ID!] + removeReviewCreatorIDs: [ID!] + clearReviewCreators: Boolean addRiskCreatorIDs: [ID!] removeRiskCreatorIDs: [ID!] clearRiskCreators: Boolean - addIdentityHolderCreatorIDs: [ID!] - removeIdentityHolderCreatorIDs: [ID!] - clearIdentityHolderCreators: Boolean + addScanCreatorIDs: [ID!] + removeScanCreatorIDs: [ID!] + clearScanCreators: Boolean addScheduledJobCreatorIDs: [ID!] removeScheduledJobCreatorIDs: [ID!] clearScheduledJobCreators: Boolean + addScheduledJobRunCreatorIDs: [ID!] + removeScheduledJobRunCreatorIDs: [ID!] + clearScheduledJobRunCreators: Boolean addStandardCreatorIDs: [ID!] removeStandardCreatorIDs: [ID!] clearStandardCreators: Boolean - addTemplateCreatorIDs: [ID!] - removeTemplateCreatorIDs: [ID!] - clearTemplateCreators: Boolean + addSubcontrolCreatorIDs: [ID!] + removeSubcontrolCreatorIDs: [ID!] + clearSubcontrolCreators: Boolean addSubprocessorCreatorIDs: [ID!] removeSubprocessorCreatorIDs: [ID!] clearSubprocessorCreators: Boolean + addSubscriberCreatorIDs: [ID!] + removeSubscriberCreatorIDs: [ID!] + clearSubscriberCreators: Boolean + addSystemDetailCreatorIDs: [ID!] + removeSystemDetailCreatorIDs: [ID!] + clearSystemDetailCreators: Boolean + addTagDefinitionCreatorIDs: [ID!] + removeTagDefinitionCreatorIDs: [ID!] + clearTagDefinitionCreators: Boolean + addTaskCreatorIDs: [ID!] + removeTaskCreatorIDs: [ID!] + clearTaskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addTrustCenterCreatorIDs: [ID!] + removeTrustCenterCreatorIDs: [ID!] + clearTrustCenterCreators: Boolean + addTrustCenterComplianceCreatorIDs: [ID!] + removeTrustCenterComplianceCreatorIDs: [ID!] + clearTrustCenterComplianceCreators: Boolean addTrustCenterDocCreatorIDs: [ID!] removeTrustCenterDocCreatorIDs: [ID!] clearTrustCenterDocCreators: Boolean + addTrustCenterEntityCreatorIDs: [ID!] + removeTrustCenterEntityCreatorIDs: [ID!] + clearTrustCenterEntityCreators: Boolean + addTrustCenterFaqCreatorIDs: [ID!] + removeTrustCenterFaqCreatorIDs: [ID!] + clearTrustCenterFaqCreators: Boolean + addTrustCenterNdaRequestCreatorIDs: [ID!] + removeTrustCenterNdaRequestCreatorIDs: [ID!] + clearTrustCenterNdaRequestCreators: Boolean addTrustCenterSubprocessorCreatorIDs: [ID!] removeTrustCenterSubprocessorCreatorIDs: [ID!] clearTrustCenterSubprocessorCreators: Boolean - addActionPlanCreatorIDs: [ID!] - removeActionPlanCreatorIDs: [ID!] - clearActionPlanCreators: Boolean + addTrustCenterWatermarkConfigCreatorIDs: [ID!] + removeTrustCenterWatermarkConfigCreatorIDs: [ID!] + clearTrustCenterWatermarkConfigCreators: Boolean + addUserCreatorIDs: [ID!] + removeUserCreatorIDs: [ID!] + clearUserCreators: Boolean + addUserSettingCreatorIDs: [ID!] + removeUserSettingCreatorIDs: [ID!] + clearUserSettingCreators: Boolean + addVendorRiskScoreCreatorIDs: [ID!] + removeVendorRiskScoreCreatorIDs: [ID!] + clearVendorRiskScoreCreators: Boolean + addVulnerabilityCreatorIDs: [ID!] + removeVulnerabilityCreatorIDs: [ID!] + clearVulnerabilityCreators: Boolean + addWorkflowAssignmentCreatorIDs: [ID!] + removeWorkflowAssignmentCreatorIDs: [ID!] + clearWorkflowAssignmentCreators: Boolean + addWorkflowAssignmentTargetCreatorIDs: [ID!] + removeWorkflowAssignmentTargetCreatorIDs: [ID!] + clearWorkflowAssignmentTargetCreators: Boolean + addWorkflowDefinitionCreatorIDs: [ID!] + removeWorkflowDefinitionCreatorIDs: [ID!] + clearWorkflowDefinitionCreators: Boolean + addWorkflowEventCreatorIDs: [ID!] + removeWorkflowEventCreatorIDs: [ID!] + clearWorkflowEventCreators: Boolean + addWorkflowInstanceCreatorIDs: [ID!] + removeWorkflowInstanceCreatorIDs: [ID!] + clearWorkflowInstanceCreators: Boolean + addWorkflowObjectRefCreatorIDs: [ID!] + removeWorkflowObjectRefCreatorIDs: [ID!] + clearWorkflowObjectRefCreators: Boolean + addWorkflowProposalCreatorIDs: [ID!] + removeWorkflowProposalCreatorIDs: [ID!] + clearWorkflowProposalCreators: Boolean + addCampaignsManagerIDs: [ID!] + removeCampaignsManagerIDs: [ID!] + clearCampaignsManager: Boolean + addComplianceManagerIDs: [ID!] + removeComplianceManagerIDs: [ID!] + clearComplianceManager: Boolean + addGroupManagerIDs: [ID!] + removeGroupManagerIDs: [ID!] + clearGroupManager: Boolean + addPoliciesManagerIDs: [ID!] + removePoliciesManagerIDs: [ID!] + clearPoliciesManager: Boolean + addRegistryManagerIDs: [ID!] + removeRegistryManagerIDs: [ID!] + clearRegistryManager: Boolean + addRiskManagerIDs: [ID!] + removeRiskManagerIDs: [ID!] + clearRiskManager: Boolean + addTrustCenterManagerIDs: [ID!] + removeTrustCenterManagerIDs: [ID!] + clearTrustCenterManager: Boolean + addWorkflowsManagerIDs: [ID!] + removeWorkflowsManagerIDs: [ID!] + clearWorkflowsManager: Boolean settingID: ID clearSetting: Boolean addPersonalAccessTokenIDs: [ID!] diff --git a/internal/graphapi/schemahistory/ent.graphql b/internal/graphapi/schemahistory/ent.graphql index 3ccca871b5..ea8b4a5abb 100644 --- a/internal/graphapi/schemahistory/ent.graphql +++ b/internal/graphapi/schemahistory/ent.graphql @@ -795,7 +795,7 @@ type AssessmentHistory implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: String """ @@ -21542,6 +21542,8 @@ enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/commo ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. @@ -25542,6 +25544,7 @@ ProgramMembershipHistoryRole is enum for the field role enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. diff --git a/internal/graphapi/search_test.go b/internal/graphapi/search_test.go index b162b4b545..566790fac7 100644 --- a/internal/graphapi/search_test.go +++ b/internal/graphapi/search_test.go @@ -5,19 +5,17 @@ import ( "fmt" "testing" - "github.com/theopenlane/core/common/enums" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) func TestGlobalSearch(t *testing.T) { - // create a new user for this test - testSearchUser := suite.userBuilder(context.Background(), t) + t.Parallel() - testViewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testSearchUser.UserCtx, t, &testViewOnlyUser, enums.RoleMember, testSearchUser.OrganizationID) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + testSearchUser := localTestOrg.owner + testViewOnlyUser := localTestOrg.member testAnotherUser := suite.userBuilder(context.Background(), t) @@ -141,6 +139,6 @@ func TestGlobalSearch(t *testing.T) { } // clean up the created objects - (&Cleanup[*generated.ContactDeleteOne]{client: suite.client.db.Contact, IDs: contactIDs}).MustDelete(testSearchUser.UserCtx, t) - (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, IDs: programIDs}).MustDelete(testSearchUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(testAnotherUser.UserCtx, t) } diff --git a/internal/graphapi/seed_test.go b/internal/graphapi/seed_test.go index f83fcac1da..78700a7954 100644 --- a/internal/graphapi/seed_test.go +++ b/internal/graphapi/seed_test.go @@ -11,6 +11,7 @@ import ( "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/common/models" + fgamodel "github.com/theopenlane/core/fga/model" ent "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" coreutils "github.com/theopenlane/core/internal/testutils" @@ -18,20 +19,22 @@ import ( ) var ( - // testUser1 is a test user with a personal org and an organization - testUser1 testUserDetails - // testUser2 is a test user with a personal org and an organization - testUser2 testUserDetails - // viewOnlyUser is a test user that is a member of the first user's organization - viewOnlyUser testUserDetails - // viewOnlyUser2 is a test user that is a member of the first user's organization - viewOnlyUser2 testUserDetails - // adminUser is a test user that is an admin of the first user's organization - adminUser testUserDetails - // systemAdminUser is a test user that is a system admin - systemAdminUser testUserDetails - // testUserCreator is used to create other organizations later to not conflict the test user - testUserCreator testUserDetails + // sharedTestUser1 is a test user with a personal org and an organization + sharedTestUser1 testUserDetails + // sharedTestUser2 is a test user with a personal org and an organization + sharedTestUser2 testUserDetails + // sharedViewOnlyUser is a test user that is a member of the first user's organization + sharedViewOnlyUser testUserDetails + // sharedViewOnlyUser2 is a test user that is a member of the first user's organization + sharedViewOnlyUser2 testUserDetails + // sharedSuperAdminUser is a test user that is a super admin of the first user's organization + sharedSuperAdminUser testUserDetails + // sharedAdminUser is a test user that is an admin of the first user's organization + sharedAdminUser testUserDetails + // sharedSystemAdminUser is a test user that is a system admin + sharedSystemAdminUser testUserDetails + // sharedAuditorUser is a test user that has auditor access to an organization + sharedAuditorUser testUserDetails ) // testUserDetails is a struct that holds the details of a test user @@ -96,28 +99,33 @@ func (suite *GraphTestSuite) setupTestData(ctx context.Context, t *testing.T) { (&OrganizationBuilder{client: suite.client, SystemOrg: true}).MustNew(ctx, t) // create system admin user - systemAdminUser = suite.systemAdminBuilder(ctx, t) + sharedSystemAdminUser = suite.systemAdminBuilder(ctx, t) - // create test users - testUserCreator = suite.userBuilder(ctx, t) - - testUser1 = suite.userBuilder(ctx, t) - testUser2 = suite.userBuilder(ctx, t) + sharedTestUser1 = suite.userBuilder(ctx, t) + sharedTestUser2 = suite.userBuilder(ctx, t) // setup two test users that are members of the organization - viewOnlyUser = suite.userBuilder(ctx, t) - viewOnlyUser2 = suite.userBuilder(ctx, t) + sharedViewOnlyUser = suite.userBuilder(ctx, t) + sharedViewOnlyUser2 = suite.userBuilder(ctx, t) // add the user to the organization - suite.addUserToOrganization(testUser1.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser1.OrganizationID) - suite.addUserToOrganization(testUser1.UserCtx, t, &viewOnlyUser2, enums.RoleAdmin, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &sharedViewOnlyUser, enums.RoleMember, sharedTestUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &sharedViewOnlyUser2, enums.RoleMember, sharedTestUser1.OrganizationID) + + // setup a test user that is a super admin of an organization + sharedSuperAdminUser = suite.userBuilder(ctx, t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &sharedSuperAdminUser, enums.RoleSuperAdmin, sharedTestUser1.OrganizationID) // setup a test user that is an admin of an organization - adminUser = suite.userBuilder(ctx, t) - suite.addUserToOrganization(testUser1.UserCtx, t, &adminUser, enums.RoleAdmin, testUser1.OrganizationID) + sharedAdminUser = suite.userBuilder(ctx, t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &sharedAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) - suite.client.apiWithPAT = suite.setupPatClient(testUser1, t) - suite.client.apiWithToken = suite.setupAPITokenClient(testUser1.UserCtx, t) + // setup a test user that is an auditor for an organization + sharedAuditorUser = suite.userBuilder(ctx, t) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &sharedAuditorUser, enums.RoleAuditor, sharedTestUser1.OrganizationID) + + suite.client.apiWithPAT = suite.setupPatClient(sharedTestUser1, t) + suite.client.apiWithToken = suite.setupAPITokenClient(sharedTestUser1.UserCtx, t) }) requireNoError(t, seedErr) @@ -142,8 +150,19 @@ func (suite *GraphTestSuite) setupPatClient(user testUserDetails, t *testing.T) } func (suite *GraphTestSuite) setupAPITokenClient(ctx context.Context, t *testing.T) *testclient.TestClient { - // setup client with an API token - apiToken := (&APITokenBuilder{client: suite.client}).MustNew(ctx, t) + // setup client with an API token with comprehensive scopes for testing + // Get all available scopes from the FGA model + scopeOpts, err := fgamodel.ScopeOptions() + requireNoError(t, err) + + var scopes []string + for obj, verbs := range scopeOpts { + for _, verb := range verbs { + scopes = append(scopes, verb+":"+obj) + } + } + + apiToken := (&APITokenBuilder{client: suite.client, Scopes: scopes}).MustNew(ctx, t) authHeaderAPIToken := testclient.Authorization{ BearerToken: apiToken.Token, @@ -208,3 +227,96 @@ func resetContext(ctx context.Context, t *testing.T) context.Context { return auth.NewTestContextWithOrgID(caller.SubjectID, caller.OrganizationID, auth.WithOrganizationRole(caller.OrganizationRole)) } + +// testOrgUsers is all available roles with api and pat clients to used with tests +type testOrgUsers struct { + owner *testUserDetails + superAdmin *testUserDetails + admin *testUserDetails + member *testUserDetails + auditor *testUserDetails + adminApiClient *testclient.TestClient + adminPatClient *testclient.TestClient +} + +// testMinimalOrgUsers is a subset of org users created when all roles do not need to be tested +type testMinimalOrgUsers struct { + owner *testUserDetails + admin *testUserDetails + member *testUserDetails + apiClient *testclient.TestClient + adminPatClient *testclient.TestClient +} + +// testOwner only creates a org with a single user (owner) and api clients +type testOwner struct { + owner *testUserDetails + apiClient *testclient.TestClient + patClient *testclient.TestClient +} + +// seedOrgOwner will seed the owner and api clients +func (suite *GraphTestSuite) seedOrgOwner(t *testing.T) *testOwner { + t.Helper() + localOwner := suite.userBuilder(context.Background(), t) + + return &testOwner{ + owner: &localOwner, + apiClient: suite.setupAPITokenClient(localOwner.UserCtx, t), + patClient: suite.setupPatClient(localOwner, t), + } +} + +// seedFreshMinimalOrgUsers will seed the owner, admin, and member but leave out the super admin, auditor, and api clients +func (suite *GraphTestSuite) seedFreshMinimalOrgUsers(t *testing.T, includeClients bool) *testMinimalOrgUsers { + t.Helper() + localOwner := suite.userBuilder(context.Background(), t) + localAdmin := suite.userBuilder(context.Background(), t) + localMember := suite.userBuilder(context.Background(), t) + + suite.addUserToOrganization(localOwner.UserCtx, t, &localAdmin, enums.RoleAdmin, localOwner.OrganizationID) + suite.addUserToOrganization(localOwner.UserCtx, t, &localMember, enums.RoleMember, localOwner.OrganizationID) + + out := &testMinimalOrgUsers{ + owner: &localOwner, + admin: &localAdmin, + member: &localMember, + } + + if includeClients { + out.apiClient = suite.setupAPITokenClient(localAdmin.UserCtx, t) + out.adminPatClient = suite.setupPatClient(localAdmin, t) + } + + return out +} + +// seedFreshOrgUsers is a helper function to setup an entire new set of users that can be used when you do not want organization conflicts between tests +func (suite *GraphTestSuite) seedFreshOrgUsers(t *testing.T) *testOrgUsers { + t.Helper() + localOwner := suite.userBuilder(context.Background(), t) + localSuperAdmin := suite.userBuilder(context.Background(), t) + localAdmin := suite.userBuilder(context.Background(), t) + localMember := suite.userBuilder(context.Background(), t) + + // TODO: look into auditor setup, causing user not found on some queries + // localAuditor := suite.userBuilder(context.Background(), t) + + suite.addUserToOrganization(localOwner.UserCtx, t, &localSuperAdmin, enums.RoleSuperAdmin, localOwner.OrganizationID) + suite.addUserToOrganization(localOwner.UserCtx, t, &localAdmin, enums.RoleAdmin, localOwner.OrganizationID) + suite.addUserToOrganization(localOwner.UserCtx, t, &localMember, enums.RoleMember, localOwner.OrganizationID) + // suite.addUserToOrganization(localOwner.UserCtx, t, &localAuditor, enums.RoleAuditor, localOwner.OrganizationID) + + apiTokenClient := suite.setupAPITokenClient(localAdmin.UserCtx, t) + adminPersonalAccessTokenClient := suite.setupPatClient(localAdmin, t) + + return &testOrgUsers{ + owner: &localOwner, + superAdmin: &localSuperAdmin, + admin: &localAdmin, + member: &localMember, + // auditor: &localAuditor, + adminApiClient: apiTokenClient, + adminPatClient: adminPersonalAccessTokenClient, + } +} diff --git a/internal/graphapi/sladefinition_test.go b/internal/graphapi/sladefinition_test.go index dd9532cbec..d655f8d9f8 100644 --- a/internal/graphapi/sladefinition_test.go +++ b/internal/graphapi/sladefinition_test.go @@ -15,7 +15,7 @@ import ( ) func TestQuerySLADefinition(t *testing.T) { - sla := (&SLADefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + sla := (&SLADefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -28,13 +28,13 @@ func TestQuerySLADefinition(t *testing.T) { name: "happy path", queryID: sla.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: sla.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -46,14 +46,14 @@ func TestQuerySLADefinition(t *testing.T) { name: "not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, using not authorized user", queryID: sla.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -76,11 +76,11 @@ func TestQuerySLADefinition(t *testing.T) { }) } - (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQuerySLADefinitions(t *testing.T) { - sla1 := (&SLADefinitionBuilder{client: suite.client, SLADays: 7, SecurityLevel: enums.SecurityLevelNone}).MustNew(testUser1.UserCtx, t) + sla1 := (&SLADefinitionBuilder{client: suite.client, SLADays: 7, SecurityLevel: enums.SecurityLevelNone}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -91,13 +91,13 @@ func TestQuerySLADefinitions(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 5, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 5, }, { @@ -115,7 +115,7 @@ func TestQuerySLADefinitions(t *testing.T) { { name: "another user, no results from this org", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 4, }, } @@ -130,7 +130,7 @@ func TestQuerySLADefinitions(t *testing.T) { }) } - (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla1.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla1.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateSLADefinition(t *testing.T) { @@ -147,7 +147,7 @@ func TestMutationCreateSLADefinition(t *testing.T) { SLADays: 30, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -157,21 +157,13 @@ func TestMutationCreateSLADefinition(t *testing.T) { client: suite.client.apiWithPAT, ctx: context.Background(), }, - { - name: "happy path, using api token", - request: testclient.CreateSLADefinitionInput{ - SLADays: 7, - }, - client: suite.client.apiWithToken, - ctx: context.Background(), - }, { name: "user not authorized, not enough permissions", request: testclient.CreateSLADefinitionInput{ SLADays: 60, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -191,13 +183,13 @@ func TestMutationCreateSLADefinition(t *testing.T) { assert.Check(t, resp.CreateSLADefinition.SLADefinition.ID != "") assert.Check(t, is.Equal(tc.request.SLADays, resp.CreateSLADefinition.SLADefinition.SLADays)) - (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: resp.CreateSLADefinition.SLADefinition.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: resp.CreateSLADefinition.SLADefinition.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateSLADefinition(t *testing.T) { - sla := (&SLADefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + sla := (&SLADefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -212,7 +204,7 @@ func TestMutationUpdateSLADefinition(t *testing.T) { SLADays: lo.ToPtr(int64(14)), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update using pat", @@ -222,13 +214,21 @@ func TestMutationUpdateSLADefinition(t *testing.T) { client: suite.client.apiWithPAT, ctx: context.Background(), }, + { + name: "happy path, update using api token", + request: testclient.UpdateSLADefinitionInput{ + SLADays: lo.ToPtr(int64(9)), + }, + client: suite.client.apiWithToken, + ctx: context.Background(), + }, { name: "update not allowed, not enough permissions as view only user", request: testclient.UpdateSLADefinitionInput{ SLADays: lo.ToPtr(int64(60)), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -237,7 +237,7 @@ func TestMutationUpdateSLADefinition(t *testing.T) { SLADays: lo.ToPtr(int64(60)), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -260,13 +260,13 @@ func TestMutationUpdateSLADefinition(t *testing.T) { }) } - (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SLADefinitionDeleteOne]{client: suite.client.db.SLADefinition, ID: sla.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteSLADefinition(t *testing.T) { - sla1 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelLow}).MustNew(testUser1.UserCtx, t) - sla2 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelMedium}).MustNew(testUser1.UserCtx, t) - sla3 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelHigh}).MustNew(testUser1.UserCtx, t) + sla1 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelLow}).MustNew(sharedTestUser1.UserCtx, t) + sla2 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelMedium}).MustNew(sharedTestUser1.UserCtx, t) + sla3 := (&SLADefinitionBuilder{client: suite.client, SecurityLevel: enums.SecurityLevelHigh}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -279,27 +279,27 @@ func TestMutationDeleteSLADefinition(t *testing.T) { name: "not found, delete", idToDelete: sla1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized, delete", idToDelete: sla1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete", idToDelete: sla1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "already deleted, not found", idToDelete: sla1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -318,7 +318,7 @@ func TestMutationDeleteSLADefinition(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/standard_test.go b/internal/graphapi/standard_test.go index 47134a8b9c..ace1ab5c6b 100644 --- a/internal/graphapi/standard_test.go +++ b/internal/graphapi/standard_test.go @@ -20,20 +20,20 @@ import ( ) func TestQueryStandard(t *testing.T) { - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) numControls := 20 controlIDs := []string{} for range numControls { - control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: publicStandard.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) controlIDs = append(controlIDs, control.ID) } - notPublicStandard := (&StandardBuilder{client: suite.client, IsPublic: false}).MustNew(systemAdminUser.UserCtx, t) + notPublicStandard := (&StandardBuilder{client: suite.client, IsPublic: false}).MustNew(sharedSystemAdminUser.UserCtx, t) orgStandardName := "org-owned-standard" - orgOwnedStandard := (&StandardBuilder{client: suite.client, Name: orgStandardName}).MustNew(testUser1.UserCtx, t) - anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID) + orgOwnedStandard := (&StandardBuilder{client: suite.client, Name: orgStandardName}).MustNew(sharedTestUser1.UserCtx, t) + anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) // add test cases for querying the Standard testCases := []struct { @@ -48,13 +48,13 @@ func TestQueryStandard(t *testing.T) { name: "happy path, org owned standard", queryID: orgOwnedStandard.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: orgOwnedStandard.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -79,42 +79,42 @@ func TestQueryStandard(t *testing.T) { name: "standard not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "standard not found, using not authorized user", queryID: orgOwnedStandard.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "public standard, other org user", queryID: publicStandard.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedControlCount: int64(numControls), }, { name: "public standard, view only user", queryID: publicStandard.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedControlCount: int64(numControls), }, { name: "org owned, but not public standard, not found", queryID: notPublicStandard.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "org owned, but not public standard, get by system admin", queryID: notPublicStandard.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "no access, anonymous user", @@ -150,7 +150,7 @@ func TestQueryStandard(t *testing.T) { assert.Check(t, resp.Standard.Framework != nil) - if tc.ctx == systemAdminUser.UserCtx { + if tc.ctx == sharedSystemAdminUser.UserCtx { assert.Check(t, resp.Standard.IsPublic != nil) } else { assert.Check(t, resp.Standard.IsPublic == nil) @@ -166,9 +166,9 @@ func TestQueryStandard(t *testing.T) { }) } - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{publicStandard.ID, notPublicStandard.ID}}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: orgOwnedStandard.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: controlIDs}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{publicStandard.ID, notPublicStandard.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: orgOwnedStandard.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryStandards(t *testing.T) { @@ -176,21 +176,21 @@ func TestQueryStandards(t *testing.T) { countOrgOwned := 2 orgOwnedStandardIDs := []string{} for range countOrgOwned { - standard := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + standard := (&StandardBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) orgOwnedStandardIDs = append(orgOwnedStandardIDs, standard.ID) } countPublic := 4 publicStandardIDs := []string{} for range countPublic { - standard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + standard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) publicStandardIDs = append(publicStandardIDs, standard.ID) } countNotPublic := 1 notPublicStandardIDs := []string{} for range countNotPublic { - standard := (&StandardBuilder{client: suite.client, IsPublic: false}).MustNew(systemAdminUser.UserCtx, t) + standard := (&StandardBuilder{client: suite.client, IsPublic: false}).MustNew(sharedSystemAdminUser.UserCtx, t) notPublicStandardIDs = append(notPublicStandardIDs, standard.ID) } @@ -198,7 +198,7 @@ func TestQueryStandards(t *testing.T) { countPublic = 0 countNotPublic = 0 - standards, err := suite.client.api.GetAllStandards(systemAdminUser.UserCtx) + standards, err := suite.client.api.GetAllStandards(sharedSystemAdminUser.UserCtx) assert.NilError(t, err) for _, standard := range standards.Standards.Edges { @@ -219,13 +219,13 @@ func TestQueryStandards(t *testing.T) { { name: "happy path, org using should get all org owned + public standards", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: countOrgOwned + countPublic, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: countOrgOwned + countPublic, }, { @@ -243,13 +243,13 @@ func TestQueryStandards(t *testing.T) { { name: "another user, only public should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: countPublic, }, { name: "happy path, system admin user", client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedResults: countNotPublic + countPublic, }, } @@ -270,27 +270,27 @@ func TestQueryStandards(t *testing.T) { systemOwnedIDs := append(notPublicStandardIDs, publicStandardIDs...) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: systemOwnedIDs}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: orgOwnedStandardIDs}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: systemOwnedIDs}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: orgOwnedStandardIDs}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryStandardsWithDeletedControls(t *testing.T) { - standard1 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With Active Controls"}).MustNew(systemAdminUser.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With Deleted Controls"}).MustNew(systemAdminUser.UserCtx, t) - standard3 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With No Controls"}).MustNew(systemAdminUser.UserCtx, t) + standard1 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With Active Controls"}).MustNew(sharedSystemAdminUser.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With Deleted Controls"}).MustNew(sharedSystemAdminUser.UserCtx, t) + standard3 := (&StandardBuilder{client: suite.client, IsPublic: true, Name: "Standard With No Controls"}).MustNew(sharedSystemAdminUser.UserCtx, t) - control1 := (&ControlBuilder{client: suite.client, StandardID: standard1.ID}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client, StandardID: standard1.ID}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, StandardID: standard1.ID}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client, StandardID: standard1.ID}).MustNew(sharedTestUser1.UserCtx, t) - controlToDelete1 := (&ControlBuilder{client: suite.client, StandardID: standard2.ID}).MustNew(testUser1.UserCtx, t) - controlToDelete2 := (&ControlBuilder{client: suite.client, StandardID: standard2.ID}).MustNew(testUser1.UserCtx, t) + controlToDelete1 := (&ControlBuilder{client: suite.client, StandardID: standard2.ID}).MustNew(sharedTestUser1.UserCtx, t) + controlToDelete2 := (&ControlBuilder{client: suite.client, StandardID: standard2.ID}).MustNew(sharedTestUser1.UserCtx, t) whereFilter := &testclient.StandardWhereInput{ HasControlsWith: []*testclient.ControlWhereInput{ { HasOwnerWith: []*testclient.OrganizationWhereInput{ { - ID: &testUser1.OrganizationID, + ID: &sharedTestUser1.OrganizationID, }, }, }, @@ -298,7 +298,7 @@ func TestQueryStandardsWithDeletedControls(t *testing.T) { } // check to make sure there are 2 standards since we only linked to two standards - resp, err := suite.client.api.GetStandards(testUser1.UserCtx, nil, nil, whereFilter) + resp, err := suite.client.api.GetStandards(sharedTestUser1.UserCtx, nil, nil, whereFilter) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -306,11 +306,11 @@ func TestQueryStandardsWithDeletedControls(t *testing.T) { // delete the controls linked to standard2 for _, id := range []string{controlToDelete1.ID, controlToDelete2.ID} { - _, err := suite.client.api.DeleteControl(testUser1.UserCtx, id) + _, err := suite.client.api.DeleteControl(sharedTestUser1.UserCtx, id) assert.NilError(t, err) } - resp, err = suite.client.api.GetStandards(testUser1.UserCtx, nil, nil, whereFilter) + resp, err = suite.client.api.GetStandards(sharedTestUser1.UserCtx, nil, nil, whereFilter) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -318,24 +318,24 @@ func TestQueryStandardsWithDeletedControls(t *testing.T) { assert.Check(t, is.Equal(standard1.ID, resp.Standards.Edges[0].Node.ID), "expected standard1 only") // cleanup - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID, standard2.ID, standard3.ID}}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID, standard2.ID, standard3.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateStandard(t *testing.T) { - patClientSystemAdmin := suite.setupPatClient(systemAdminUser, t) + patClientSystemAdmin := suite.setupPatClient(sharedSystemAdminUser, t) numControls := 20 controlIDs := []string{} for range numControls { - control := (&ControlBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) controlIDs = append(controlIDs, control.ID) } numAdminControls := 32 adminControlIDs := []string{} for range numAdminControls { - control := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) adminControlIDs = append(adminControlIDs, control.ID) } @@ -355,7 +355,7 @@ func TestMutationCreateStandard(t *testing.T) { Name: "Super Awesome Standard", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, minimal input with logo upload", @@ -364,7 +364,7 @@ func TestMutationCreateStandard(t *testing.T) { }, upload: createImageUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, system admin - system owned with controls", @@ -374,7 +374,7 @@ func TestMutationCreateStandard(t *testing.T) { ControlIDs: adminControlIDs, }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "happy path, system admin - system owned using pat", @@ -392,7 +392,7 @@ func TestMutationCreateStandard(t *testing.T) { IsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "happy path, all input by org admin", @@ -412,7 +412,7 @@ func TestMutationCreateStandard(t *testing.T) { Revision: lo.ToPtr("v1.0.0"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, using pat", @@ -420,7 +420,7 @@ func TestMutationCreateStandard(t *testing.T) { Name: "Greatness, Kitties, and Rainbows", Tags: []string{"uffo", "brax"}, Framework: lo.ToPtr("Meows Framework"), - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -441,7 +441,7 @@ func TestMutationCreateStandard(t *testing.T) { IsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -451,7 +451,7 @@ func TestMutationCreateStandard(t *testing.T) { IsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -461,7 +461,7 @@ func TestMutationCreateStandard(t *testing.T) { FreeToUse: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -470,14 +470,14 @@ func TestMutationCreateStandard(t *testing.T) { Name: "Oh noes", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing required field", request: testclient.CreateStandardInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -514,12 +514,12 @@ func TestMutationCreateStandard(t *testing.T) { assert.Check(t, is.Equal(expectedStatus, *resp.CreateStandard.Standard.Status)) expectedSystemOwned := false - if tc.ctx == systemAdminUser.UserCtx || tc.client == patClientSystemAdmin { + if tc.ctx == sharedSystemAdminUser.UserCtx || tc.client == patClientSystemAdmin { expectedSystemOwned = true } assert.Check(t, is.Equal(expectedSystemOwned, *resp.CreateStandard.Standard.SystemOwned)) - if tc.ctx == systemAdminUser.UserCtx || tc.client == patClientSystemAdmin { + if tc.ctx == sharedSystemAdminUser.UserCtx || tc.client == patClientSystemAdmin { isPublic := false if tc.request.IsPublic != nil { isPublic = *tc.request.IsPublic @@ -600,12 +600,12 @@ func TestMutationCreateStandard(t *testing.T) { // cleanup the created standard ctx := tc.ctx - if tc.ctx != systemAdminUser.UserCtx && tc.client != suite.client.api { - ctx = testUser1.UserCtx + if tc.ctx != sharedSystemAdminUser.UserCtx && tc.client != suite.client.api { + ctx = sharedTestUser1.UserCtx } if tc.client == patClientSystemAdmin { - ctx = systemAdminUser.UserCtx + ctx = sharedSystemAdminUser.UserCtx } (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: resp.CreateStandard.Standard.ID}).MustDelete(ctx, t) @@ -614,11 +614,11 @@ func TestMutationCreateStandard(t *testing.T) { } func TestMutationUpdateStandard(t *testing.T) { - standardOrgOwned := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standardSystemOwned := (&StandardBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + standardOrgOwned := (&StandardBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + standardSystemOwned := (&StandardBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) // users should not be able to get the system owned standard because its not public - _, err := suite.client.api.GetStandardByID(testUser1.UserCtx, standardSystemOwned.ID) + _, err := suite.client.api.GetStandardByID(sharedTestUser1.UserCtx, standardSystemOwned.ID) assert.ErrorContains(t, err, notFoundErrorMsg) createImageUpload := logoFileFunc(t) @@ -667,7 +667,7 @@ func TestMutationUpdateStandard(t *testing.T) { RevisionBump: &models.Major, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update not allowed, not enough permissions", @@ -676,7 +676,7 @@ func TestMutationUpdateStandard(t *testing.T) { ClearTags: lo.ToPtr(true), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -686,7 +686,7 @@ func TestMutationUpdateStandard(t *testing.T) { IsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -696,7 +696,7 @@ func TestMutationUpdateStandard(t *testing.T) { ClearIsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: invalidInputErrorMsg, }, { @@ -706,7 +706,7 @@ func TestMutationUpdateStandard(t *testing.T) { Link: lo.ToPtr("not a link"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "invalid or unparsable field: url", }, { @@ -716,7 +716,7 @@ func TestMutationUpdateStandard(t *testing.T) { ClearTags: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -726,7 +726,7 @@ func TestMutationUpdateStandard(t *testing.T) { IsPublic: lo.ToPtr(true), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "happy path, update multiple fields, org owned standard", @@ -739,7 +739,7 @@ func TestMutationUpdateStandard(t *testing.T) { FreeToUse: lo.ToPtr(true), }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "update not allowed, no permissions", @@ -748,7 +748,7 @@ func TestMutationUpdateStandard(t *testing.T) { ClearTags: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -758,7 +758,7 @@ func TestMutationUpdateStandard(t *testing.T) { ClearTags: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -834,7 +834,7 @@ func TestMutationUpdateStandard(t *testing.T) { assert.Check(t, *resp.UpdateStandard.Standard.IsPublic) // users should now be be able to get the system owned standard because its not public - std, err := suite.client.api.GetStandardByID(testUser1.UserCtx, standardSystemOwned.ID) + std, err := suite.client.api.GetStandardByID(sharedTestUser1.UserCtx, standardSystemOwned.ID) assert.NilError(t, err) assert.Assert(t, std != nil) assert.Equal(t, standardSystemOwned.ID, std.Standard.ID) @@ -851,16 +851,20 @@ func TestMutationUpdateStandard(t *testing.T) { }) } - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardOrgOwned.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardSystemOwned.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardOrgOwned.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardSystemOwned.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationDeleteStandard(t *testing.T) { + t.Parallel() + newAdminUser := suite.systemAdminBuilder(context.Background(), t) - newTestUser1 := suite.userBuilder(context.Background(), t) - apiClient := suite.setupAPITokenClient(newTestUser1.UserCtx, t) - patClient := suite.setupPatClient(newTestUser1, t) + localTestOrg := suite.seedOrgOwner(t) + + newTestUser1 := localTestOrg.owner + apiClient := localTestOrg.apiClient + patClient := localTestOrg.patClient // we need to create the standards each time because the cascade delete of the standard standardOrgOwned1 := (&StandardBuilder{client: suite.client}).MustNew(newTestUser1.UserCtx, t) @@ -892,7 +896,7 @@ func TestMutationDeleteStandard(t *testing.T) { name: "not authorized, delete", idToDelete: standardOrgOwned1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -972,5 +976,5 @@ func TestMutationDeleteStandard(t *testing.T) { } // delete the public standard and the controls linked to it - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: publicStandard.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } diff --git a/internal/graphapi/subcontrol_test.go b/internal/graphapi/subcontrol_test.go index efb8459daa..eec5874718 100644 --- a/internal/graphapi/subcontrol_test.go +++ b/internal/graphapi/subcontrol_test.go @@ -17,12 +17,12 @@ import ( ) func TestQuerySubcontrol(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a subcontrol (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) createdControlIDs := []string{} createdSubcontrolIDs := []string{} @@ -37,17 +37,17 @@ func TestQuerySubcontrol(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "read only user, same org, access to the parent control via organization", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "admin user, access to the parent control via the program", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path using personal access token", @@ -58,13 +58,13 @@ func TestQuerySubcontrol(t *testing.T) { name: "subcontrol not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "subcontrol not found, using not authorized user", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -74,7 +74,7 @@ func TestQuerySubcontrol(t *testing.T) { // setup the subcontrol if it is not already created if tc.queryID == "" { // create the control first - control, err := suite.client.api.CreateControl(testUser1.UserCtx, + control, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "SC-" + ulids.New().String(), ProgramIDs: []string{program.ID}, @@ -85,7 +85,7 @@ func TestQuerySubcontrol(t *testing.T) { createdControlIDs = append(createdControlIDs, control.CreateControl.Control.ID) - resp, err := suite.client.api.CreateSubcontrol(testUser1.UserCtx, + resp, err := suite.client.api.CreateSubcontrol(sharedTestUser1.UserCtx, testclient.CreateSubcontrolInput{ RefCode: "SC-1" + ulids.New().String(), ControlID: control.CreateControl.Control.ID, @@ -118,19 +118,19 @@ func TestQuerySubcontrol(t *testing.T) { // cleanup the program (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) // cleanup the controls (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: createdSubcontrolIDs}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: createdControlIDs}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) } func TestQuerySubcontrols(t *testing.T) { // create multiple objects to be queried using testUser1 - sc1 := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - sc2 := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + sc1 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + sc2 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -141,13 +141,13 @@ func TestQuerySubcontrols(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 2, }, { @@ -165,7 +165,7 @@ func TestQuerySubcontrols(t *testing.T) { { name: "another user, no subcontrols should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -181,27 +181,27 @@ func TestQuerySubcontrols(t *testing.T) { } // cleanup the controls - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{sc1.ControlID, sc2.ControlID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{sc1.ControlID, sc2.ControlID}}).MustDelete(sharedTestUser1.UserCtx, t) // cleanup the subcontrols - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{sc1.ID, sc2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, IDs: []string{sc1.ID, sc2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateSubcontrol(t *testing.T) { - program := (&ProgramBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - anotherOwnerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + anotherOwnerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program (&ProgramMemberBuilder{client: suite.client, ProgramID: program.ID, - UserID: adminUser.ID, Role: enums.RoleAdmin.String()}). - MustNew(testUser1.UserCtx, t) + UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}). + MustNew(sharedTestUser1.UserCtx, t) - control1 := (&ControlBuilder{client: suite.client, ProgramID: program.ID}).MustNew(testUser1.UserCtx, t) - control2 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) + control2 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) controlWithOwner := (&ControlBuilder{client: suite.client, ProgramID: program.ID, - ControlOwnerID: ownerGroup.ID}).MustNew(testUser1.UserCtx, t) + ControlOwnerID: ownerGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -219,7 +219,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlID: control1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -230,7 +230,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { }, client: suite.client.api, expectedRefFramework: control1.ReferenceFramework, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, parent control has owner", @@ -240,7 +240,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { }, client: suite.client.api, expectedRefFramework: controlWithOwner.ReferenceFramework, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, parent control has owner, subcontrol should override it", @@ -250,7 +250,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlOwnerID: &anotherOwnerGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRefFramework: controlWithOwner.ReferenceFramework, }, { @@ -305,7 +305,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlOwnerID: &ownerGroup.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedRefFramework: control2.ReferenceFramework, }, { @@ -313,7 +313,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { request: testclient.CreateSubcontrolInput{ RefCode: "Subcontrol", ControlID: control1.ID, - OwnerID: &testUser1.OrganizationID, + OwnerID: &sharedTestUser1.OrganizationID, }, client: suite.client.apiWithPAT, ctx: context.Background(), @@ -326,7 +326,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlID: control1.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -337,7 +337,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { }, createParentControl: true, // create the parent control first client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedRefFramework: control1.ReferenceFramework, }, { @@ -347,7 +347,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlID: control2.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -356,7 +356,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { RefCode: "SC-1", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "validator failed for field", }, { @@ -366,7 +366,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { ControlID: "invalid-control-id", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -375,7 +375,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { t.Run("Create "+tc.name, func(t *testing.T) { if tc.createParentControl { // create the control first - control, err := suite.client.api.CreateControl(testUser1.UserCtx, + control, err := suite.client.api.CreateControl(sharedTestUser1.UserCtx, testclient.CreateControlInput{ RefCode: "SC", ProgramIDs: []string{program.ID}, @@ -446,7 +446,7 @@ func TestMutationCreateSubcontrol(t *testing.T) { // ensure the org owner has access to the subcontrol that was created by an api token if tc.client == suite.client.apiWithToken { - res, err := suite.client.api.GetSubcontrolByID(testUser1.UserCtx, resp.CreateSubcontrol.Subcontrol.ID) + res, err := suite.client.api.GetSubcontrolByID(sharedTestUser1.UserCtx, resp.CreateSubcontrol.Subcontrol.ID) assert.NilError(t, err) assert.Assert(t, res != nil) assert.Check(t, is.Equal(resp.CreateSubcontrol.Subcontrol.ID, res.Subcontrol.ID)) @@ -456,23 +456,23 @@ func TestMutationCreateSubcontrol(t *testing.T) { // cleanup the program (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) // cleanup the controls (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID, control2.ID, controlWithOwner.ID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) // cleanup the groups (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, anotherOwnerGroup.ID, delegateGroup.ID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateSubcontrol(t *testing.T) { - control1 := (&ControlBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID}).MustNew(testUser1.UserCtx, t) + control1 := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: control1.ID}).MustNew(sharedTestUser1.UserCtx, t) - ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + ownerGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - kind := (&CustomTypeEnumBuilder{client: suite.client, ObjectType: "control"}).MustNew(testUser1.UserCtx, t) + kind := (&CustomTypeEnumBuilder{client: suite.client, ObjectType: "control"}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -487,7 +487,7 @@ func TestMutationUpdateSubcontrol(t *testing.T) { Description: lo.ToPtr("Updated description"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -517,7 +517,7 @@ func TestMutationUpdateSubcontrol(t *testing.T) { MappedCategories: []string{"Category1", "Category2"}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -526,7 +526,7 @@ func TestMutationUpdateSubcontrol(t *testing.T) { MappedCategories: []string{"Category1", "Category2"}, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -582,19 +582,19 @@ func TestMutationUpdateSubcontrol(t *testing.T) { // cleanup the subcontrol (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: subcontrol.ID}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) // cleanup the control (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{control1.ID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) // cleanup the groups (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, IDs: []string{ownerGroup.ID, delegateGroup.ID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteSubcontrol(t *testing.T) { // create objects to be deleted - subcontrol1 := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subcontrol2 := (&SubcontrolBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + subcontrol1 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subcontrol2 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -607,20 +607,20 @@ func TestMutationDeleteSubcontrol(t *testing.T) { name: "not authorized, delete", idToDelete: subcontrol1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete", idToDelete: subcontrol1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: subcontrol1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -633,7 +633,7 @@ func TestMutationDeleteSubcontrol(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -656,5 +656,5 @@ func TestMutationDeleteSubcontrol(t *testing.T) { // cleanup the controls (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: []string{subcontrol1.ControlID, subcontrol2.ControlID}}). - MustDelete(testUser1.UserCtx, t) + MustDelete(sharedTestUser1.UserCtx, t) } diff --git a/internal/graphapi/subprocessor_test.go b/internal/graphapi/subprocessor_test.go index e28c58a942..2af2565062 100644 --- a/internal/graphapi/subprocessor_test.go +++ b/internal/graphapi/subprocessor_test.go @@ -9,14 +9,13 @@ import ( "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" - "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" "github.com/theopenlane/utils/ulids" ) func TestQuerySubprocessorByID(t *testing.T) { - subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create a file to be used as logo and ensure file is returned properly logoFile := uploadFile(t, logoFilePath) @@ -26,7 +25,7 @@ func TestQuerySubprocessorByID(t *testing.T) { expectUpload(t, suite.client.mockProvider, []graphql.Upload{*logoFile}) - systemOwnedSubprocessor, err := suite.client.api.CreateSubprocessor(systemAdminUser.UserCtx, input, logoFile, nil) + systemOwnedSubprocessor, err := suite.client.api.CreateSubprocessor(sharedSystemAdminUser.UserCtx, input, logoFile, nil) assert.NilError(t, err) systemSubprocessr := systemOwnedSubprocessor.CreateSubprocessor.Subprocessor @@ -44,20 +43,20 @@ func TestQuerySubprocessorByID(t *testing.T) { expectedName: subprocessor.Name, queryID: subprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, view only user", expectedName: subprocessor.Name, queryID: subprocessor.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "subprocessor not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -65,21 +64,21 @@ func TestQuerySubprocessorByID(t *testing.T) { expectedName: subprocessor.Name, queryID: subprocessor.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "happy path, system owned", queryID: systemSubprocessr.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedName: systemSubprocessr.Name, }, { name: "happy path, system owned, regular only user", queryID: systemSubprocessr.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: systemSubprocessr.Name, }, } @@ -108,19 +107,19 @@ func TestQuerySubprocessorByID(t *testing.T) { }) } - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: systemSubprocessr.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: systemSubprocessr.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestQuerySubprocessors(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - viewUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewUser, enums.RoleMember, testUser.OrganizationID) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + testUser := localTestOrg.owner + viewUser := localTestOrg.member subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - subprocessor4 := (&SubprocessorBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) + subprocessor4 := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) nonExistentName := "nonexistent-subprocessor" @@ -183,9 +182,9 @@ func TestQuerySubprocessors(t *testing.T) { }) } - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessor2.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor4.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor4.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationCreateSubprocessor(t *testing.T) { @@ -205,9 +204,9 @@ func TestMutationCreateSubprocessor(t *testing.T) { request: testclient.CreateSubprocessorInput{ Name: "Test Subprocessor", }, - expectedOwnerID: lo.ToPtr(testUser1.OrganizationID), + expectedOwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path with description and logo upload", @@ -216,36 +215,36 @@ func TestMutationCreateSubprocessor(t *testing.T) { Description: lo.ToPtr("This is a test subprocessor"), }, upload: createImageUpload(), - expectedOwnerID: lo.ToPtr(testUser1.OrganizationID), + expectedOwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, adminUser", request: testclient.CreateSubprocessorInput{ Name: "Admin Test Subprocessor", }, - expectedOwnerID: lo.ToPtr(testUser1.OrganizationID), + expectedOwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "not authorized", request: testclient.CreateSubprocessorInput{ Name: "Unauthorized Subprocessor", - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "missing name", request: testclient.CreateSubprocessorInput{ - OwnerID: lo.ToPtr(testUser1.OrganizationID), + OwnerID: lo.ToPtr(sharedTestUser1.OrganizationID), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "name", }, { @@ -254,7 +253,7 @@ func TestMutationCreateSubprocessor(t *testing.T) { Name: "Sys Admin Test Subprocessor", }, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedOwnerID: nil, }, } @@ -300,9 +299,9 @@ func TestMutationCreateSubprocessor(t *testing.T) { } func TestMutationDeleteSubprocessor(t *testing.T) { - subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) nonExistentID := "non-existent-id" testCases := []struct { @@ -316,20 +315,20 @@ func TestMutationDeleteSubprocessor(t *testing.T) { name: "delete subprocessor", id: subprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "unauthorized", id: subprocessor3.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "subprocessor not found", id: nonExistentID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -354,12 +353,12 @@ func TestMutationDeleteSubprocessor(t *testing.T) { }) } - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor2.ID, subprocessor3.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor2.ID, subprocessor3.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestUpdateSubprocessor(t *testing.T) { - subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - systemOwnedSubprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + systemOwnedSubprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -373,7 +372,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "happy path", queryID: subprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ Tags: []string{"updated", "test"}, }, @@ -382,7 +381,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "update name and description", queryID: subprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ Name: lo.ToPtr("Updated Subprocessor Name"), Description: lo.ToPtr("Updated description"), @@ -392,7 +391,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "update name and description, system owned", queryID: systemOwnedSubprocessor.ID, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ Name: lo.ToPtr("Updated System Owned Subprocessor Name"), Description: lo.ToPtr("Updated system owned description"), @@ -402,7 +401,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "update logo remote URL", queryID: subprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ LogoRemoteURL: lo.ToPtr("https://example.com/new-logo.png"), }, @@ -411,7 +410,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "not allowed", queryID: subprocessor.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ Tags: []string{"unauthorized"}, }, @@ -421,7 +420,7 @@ func TestUpdateSubprocessor(t *testing.T) { name: "not allowed to update system owned", queryID: systemOwnedSubprocessor.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, updateInput: testclient.UpdateSubprocessorInput{ Tags: []string{"unauthorized"}, }, @@ -453,13 +452,13 @@ func TestUpdateSubprocessor(t *testing.T) { }) } - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: systemOwnedSubprocessor.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: systemOwnedSubprocessor.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestGetAllSubprocessors(t *testing.T) { // Clean up any existing subprocessors to ensure clean test state - deletectx := setContext(systemAdminUser.UserCtx, suite.client.db) + deletectx := setContext(sharedSystemAdminUser.UserCtx, suite.client.db) existingSubprocessors, err := suite.client.db.Subprocessor.Query().All(deletectx) assert.NilError(t, err) for _, sp := range existingSubprocessors { @@ -469,19 +468,19 @@ func TestGetAllSubprocessors(t *testing.T) { // Create test subprocessors with different users subprocessor1 := (&SubprocessorBuilder{ client: suite.client, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) subprocessor2 := (&SubprocessorBuilder{ client: suite.client, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) subprocessor3 := (&SubprocessorBuilder{ client: suite.client, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(sharedTestUser2.UserCtx, t) subprocessor4 := (&SubprocessorBuilder{ client: suite.client, - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -493,31 +492,31 @@ func TestGetAllSubprocessors(t *testing.T) { { name: "happy path - regular user sees only their subprocessors", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 3, // Should see only subprocessors owned by testUser1 }, { name: "happy path - admin user sees all subprocessors", client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 3, // Should see all owned by testUser1 }, { name: "happy path - view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedResults: 3, // Should see only subprocessors from their organization }, { name: "happy path - different user sees only their subprocessors", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 2, // Should see only subprocessors owned by testUser2 }, { name: "happy path - sysadmin", client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, expectedResults: 1, }, } @@ -551,26 +550,26 @@ func TestGetAllSubprocessors(t *testing.T) { } // Verify that users only see subprocessors from their organization - if tc.ctx == testUser1.UserCtx || tc.ctx == viewOnlyUser.UserCtx { + if tc.ctx == sharedTestUser1.UserCtx || tc.ctx == sharedViewOnlyUser.UserCtx { for _, edge := range resp.Subprocessors.Edges { if edge.Node.Owner == nil { continue } - assert.Check(t, is.Equal(testUser1.OrganizationID, edge.Node.Owner.ID)) + assert.Check(t, is.Equal(sharedTestUser1.OrganizationID, edge.Node.Owner.ID)) } - } else if tc.ctx == testUser2.UserCtx { + } else if tc.ctx == sharedTestUser2.UserCtx { for _, edge := range resp.Subprocessors.Edges { if edge.Node.Owner == nil { continue } - assert.Check(t, is.Equal(testUser2.OrganizationID, edge.Node.Owner.ID)) + assert.Check(t, is.Equal(sharedTestUser2.OrganizationID, edge.Node.Owner.ID)) } } }) } // Clean up created subprocessors - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessor2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor4.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessor2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(sharedTestUser2.UserCtx, t) + (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor4.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } diff --git a/internal/graphapi/subscriber_test.go b/internal/graphapi/subscriber_test.go index 14f245e024..cfbad543cf 100644 --- a/internal/graphapi/subscriber_test.go +++ b/internal/graphapi/subscriber_test.go @@ -16,8 +16,8 @@ import ( ) func TestQuerySubscriber(t *testing.T) { - subscriber := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + subscriber := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -30,7 +30,7 @@ func TestQuerySubscriber(t *testing.T) { name: "happy path", email: subscriber.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, }, { @@ -51,14 +51,14 @@ func TestQuerySubscriber(t *testing.T) { name: "invalid email", email: "beep@boop.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, { name: "subscriber for another org", email: subscriber2.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, { @@ -99,14 +99,14 @@ func TestQuerySubscriber(t *testing.T) { } // cleanup - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber2.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber2.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestQuerySubscribers(t *testing.T) { - s1 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - s2 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - s3 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + s1 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + s2 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + s3 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -117,7 +117,7 @@ func TestQuerySubscribers(t *testing.T) { { name: "happy path, multiple subscribers", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, numExpected: 2, }, { @@ -135,7 +135,7 @@ func TestQuerySubscribers(t *testing.T) { { name: "happy path, one subscriber", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, numExpected: 1, }, } @@ -151,8 +151,8 @@ func TestQuerySubscribers(t *testing.T) { } // cleanup - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, IDs: []string{s1.ID, s2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, IDs: []string{s3.ID}}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, IDs: []string{s1.ID, s2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, IDs: []string{s3.ID}}).MustDelete(sharedTestUser2.UserCtx, t) } func TestMutationCreateBulkSubscribers(t *testing.T) { @@ -222,7 +222,7 @@ func TestMutationCreateBulkSubscribers(t *testing.T) { // cleanup for _, v := range resp.CreateBulkSubscriber.Subscribers { - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: v.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: v.ID}).MustDelete(sharedTestUser1.UserCtx, t) } }) } @@ -250,7 +250,7 @@ func TestMutationCreateSubscriber_Tokens(t *testing.T) { { name: "happy path, new subscriber using personal access token", email: "a.stark@example.com", - ownerID: testUser1.OrganizationID, + ownerID: sharedTestUser1.OrganizationID, client: suite.client.apiWithPAT, ctx: context.Background(), wantErr: false, @@ -258,7 +258,7 @@ func TestMutationCreateSubscriber_Tokens(t *testing.T) { { name: "missing email", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, } @@ -290,7 +290,7 @@ func TestMutationCreateSubscriber_Tokens(t *testing.T) { assert.Check(t, !resp.CreateSubscriber.Subscriber.Unsubscribed) // cleanup - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: resp.CreateSubscriber.Subscriber.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: resp.CreateSubscriber.Subscriber.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } @@ -315,7 +315,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { email: "c.stark@example.com", setUnsubscribed: true, //unsubscribe the subscriber to test for re-creation client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 0, // since we unsubscribe, it should reset }, @@ -323,7 +323,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber but original was unsubscribed", email: "c.stark@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 1, }, @@ -331,7 +331,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber, case insensitive", email: "c.STARK@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 2, }, @@ -339,7 +339,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber, case insensitive", email: "c.STARK@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 3, }, @@ -347,7 +347,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber, case insensitive", email: "c.STARK@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 4, }, @@ -355,7 +355,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber, case insensitive", email: "c.STARK@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, expectedAttempts: 5, }, @@ -363,7 +363,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { name: "happy path, duplicate subscriber, case insensitive, max attempts", email: "c.STARK@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, expectedErrorCode: gqlerrors.MaxAttemptsErrorCode, expectedMessage: "max attempts reached for this email, please reach out to support", @@ -372,7 +372,7 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { { name: "missing email", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErrorCode: gqlerrors.BadRequestErrorCode, expectedMessage: "subscriber email is required, please provide a valid email", wantErr: true, @@ -440,14 +440,14 @@ func TestMutationCreateSubscriber_SendAttempts(t *testing.T) { // cleanup for _, v := range createdSubscriberEmails { - _, err := suite.client.api.DeleteSubscriber(testUser1.UserCtx, v, nil) + _, err := suite.client.api.DeleteSubscriber(sharedTestUser1.UserCtx, v, nil) assert.NilError(t, err) } } func TestUpdateSubscriber(t *testing.T) { - subscriber := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + subscriber := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -464,7 +464,7 @@ func TestUpdateSubscriber(t *testing.T) { PhoneNumber: lo.ToPtr("+1-555-867-5309"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, }, { @@ -504,7 +504,7 @@ func TestUpdateSubscriber(t *testing.T) { PhoneNumber: lo.ToPtr("+1-555-867-5309"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, { @@ -514,7 +514,7 @@ func TestUpdateSubscriber(t *testing.T) { PhoneNumber: lo.ToPtr("+1-555-867-5309"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, } @@ -552,16 +552,16 @@ func TestUpdateSubscriber(t *testing.T) { } // cleanup - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber2.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriber2.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestDeleteSubscriber(t *testing.T) { - subscriber1 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - subscriber3 := (&SubscriberBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + subscriber1 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subscriber2 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + subscriber3 := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - subscriberOtherOrg := (&SubscriberBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + subscriberOtherOrg := (&SubscriberBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) testCases := []struct { name string @@ -575,7 +575,7 @@ func TestDeleteSubscriber(t *testing.T) { name: "happy path", email: subscriber1.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, }, { @@ -588,7 +588,7 @@ func TestDeleteSubscriber(t *testing.T) { { name: "happy path, using personal access token", email: subscriber3.Email, - organizationID: testUser1.OrganizationID, + organizationID: sharedTestUser1.OrganizationID, client: suite.client.apiWithPAT, ctx: context.Background(), wantErr: false, @@ -597,14 +597,14 @@ func TestDeleteSubscriber(t *testing.T) { name: "invalid email", email: "beep@boop.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, { name: "subscriber for another org", email: subscriberOtherOrg.Email, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: true, }, } @@ -626,7 +626,7 @@ func TestDeleteSubscriber(t *testing.T) { } // cleanup - (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriberOtherOrg.ID}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.SubscriberDeleteOne]{client: suite.client.db.Subscriber, ID: subscriberOtherOrg.ID}).MustDelete(sharedTestUser2.UserCtx, t) } func TestActiveSubscriber(t *testing.T) { @@ -644,7 +644,7 @@ func TestActiveSubscriber(t *testing.T) { name: "happy path, active subscriber", email: "c.stark@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, markActive: true, }, @@ -652,7 +652,7 @@ func TestActiveSubscriber(t *testing.T) { name: "happy path, resubscribing", email: "aa.stark@example.com", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, wantErr: false, markActive: false, }, diff --git a/internal/graphapi/subscription_test.go b/internal/graphapi/subscription_test.go index 810af20f0a..461a2c5002 100644 --- a/internal/graphapi/subscription_test.go +++ b/internal/graphapi/subscription_test.go @@ -25,7 +25,7 @@ func TestNotificationCreated(t *testing.T) { }{ { name: "happy path", - testUser: testUser1, + testUser: sharedTestUser1, expectError: false, }, { diff --git a/internal/graphapi/tagdefinition_test.go b/internal/graphapi/tagdefinition_test.go index cc4f80cc01..580c180b60 100644 --- a/internal/graphapi/tagdefinition_test.go +++ b/internal/graphapi/tagdefinition_test.go @@ -18,8 +18,8 @@ import ( func TestQueryTagDefinition(t *testing.T) { // create an tagDef to be queried using testUser1 - tagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - systemTagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + tagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + systemTagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) // add test cases for querying the TagDefinition testCases := []struct { @@ -33,19 +33,19 @@ func TestQueryTagDefinition(t *testing.T) { name: "happy path", queryID: tagDef.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path", queryID: systemTagDef.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", queryID: tagDef.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -57,14 +57,14 @@ func TestQueryTagDefinition(t *testing.T) { name: "tag definition not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "tag definition not found, using not authorized user", queryID: tagDef.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -96,8 +96,8 @@ func TestQueryTagDefinition(t *testing.T) { }) } - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: tagDef.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: systemTagDef.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: tagDef.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: systemTagDef.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateTagDefinition(t *testing.T) { @@ -114,7 +114,7 @@ func TestMutationCreateTagDefinition(t *testing.T) { Name: "mitb", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -125,7 +125,7 @@ func TestMutationCreateTagDefinition(t *testing.T) { Color: lo.ToPtr("#08800a"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -149,7 +149,7 @@ func TestMutationCreateTagDefinition(t *testing.T) { Name: "sames", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, @@ -157,7 +157,7 @@ func TestMutationCreateTagDefinition(t *testing.T) { name: "missing required field", request: testclient.CreateTagDefinitionInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -167,7 +167,7 @@ func TestMutationCreateTagDefinition(t *testing.T) { Color: lo.ToPtr("invalid"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "field is not a valid hex color code", }, } @@ -204,13 +204,13 @@ func TestMutationCreateTagDefinition(t *testing.T) { } // cleanup each TagDefinition created - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: resp.CreateTagDefinition.TagDefinition.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: resp.CreateTagDefinition.TagDefinition.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { - baseTagResp, err := suite.client.api.CreateTagDefinition(testUser1.UserCtx, testclient.CreateTagDefinitionInput{ + baseTagResp, err := suite.client.api.CreateTagDefinition(sharedTestUser1.UserCtx, testclient.CreateTagDefinitionInput{ Name: "red", Aliases: []string{"maroon", "brick", "crimson"}, Description: lo.ToPtr("Red color tag with aliases"), @@ -236,7 +236,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "maroon", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -247,7 +247,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "brick", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -258,7 +258,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "crimson", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -269,7 +269,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "MAROON", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -280,7 +280,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "BrIcK", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -291,7 +291,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "red", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "red", expectedID: baseTagID, shouldReturnOriginal: true, @@ -302,7 +302,7 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { Name: "blue", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedName: "blue", shouldReturnOriginal: false, }, @@ -342,17 +342,17 @@ func TestMutationCreateTagDefinitionWithAliasLookup(t *testing.T) { // new tag ( new id ) assert.Check(t, resp.CreateTagDefinition.TagDefinition.ID != baseTagID) - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: resp.CreateTagDefinition.TagDefinition.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: resp.CreateTagDefinition.TagDefinition.ID}).MustDelete(sharedTestUser1.UserCtx, t) } }) } - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: baseTagID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: baseTagID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateTagDefinition(t *testing.T) { - tagDefinition := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - systemTagDefinition := (&TagDefinitionBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) + tagDefinition := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + systemTagDefinition := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -369,7 +369,7 @@ func TestMutationUpdateTagDefinition(t *testing.T) { }, reqID: tagDefinition.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "not allowed to update system tag definition", @@ -378,7 +378,7 @@ func TestMutationUpdateTagDefinition(t *testing.T) { }, reqID: systemTagDefinition.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -400,7 +400,7 @@ func TestMutationUpdateTagDefinition(t *testing.T) { }, reqID: tagDefinition.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -419,7 +419,7 @@ func TestMutationUpdateTagDefinition(t *testing.T) { }, reqID: tagDefinition.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -461,15 +461,15 @@ func TestMutationUpdateTagDefinition(t *testing.T) { }) } - (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: tagDefinition.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TagDefinitionDeleteOne]{client: suite.client.db.TagDefinition, ID: tagDefinition.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteTagDefinition(t *testing.T) { // create TagDefinitions to be deleted - tagDefinition1 := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - tagDefinition2 := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - tagDefinition3 := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - tagDefinition4 := (&TagDefinitionBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + tagDefinition1 := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + tagDefinition2 := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + tagDefinition3 := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + tagDefinition4 := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -482,34 +482,34 @@ func TestMutationDeleteTagDefinition(t *testing.T) { name: "not found, delete", idToDelete: tagDefinition1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "view only user cannot delete, not authorized", idToDelete: tagDefinition1.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "happy path, delete tagDefinition1", idToDelete: tagDefinition1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: tagDefinition1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { name: "happy path, delete tagDefinition2", idToDelete: tagDefinition2.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, delete using personal access token", @@ -527,7 +527,7 @@ func TestMutationDeleteTagDefinition(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -553,10 +553,10 @@ func TestMutationDeleteTagDefinitionInUse(t *testing.T) { tagDef := (&TagDefinitionBuilder{ client: suite.client, Name: "test-tag", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(sharedTestUser1.UserCtx, t) // create a workflow definition that uses the tag definition - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) workflowResp, err := suite.client.db.WorkflowDefinition.Create(). SetName("Test Workflow"). SetWorkflowKind(enums.WorkflowKindApproval). @@ -568,15 +568,15 @@ func TestMutationDeleteTagDefinitionInUse(t *testing.T) { workflowID := workflowResp.ID t.Run("delete tag definition in use by workflow definition", func(t *testing.T) { - _, err := suite.client.api.DeleteTagDefinition(testUser1.UserCtx, tagDef.ID) + _, err := suite.client.api.DeleteTagDefinition(sharedTestUser1.UserCtx, tagDef.ID) assert.ErrorContains(t, err, "tag definition is in use") }) // clean up the workflow definition using the tag - (&Cleanup[*generated.WorkflowDefinitionDeleteOne]{client: suite.client.db.WorkflowDefinition, ID: workflowID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.WorkflowDefinitionDeleteOne]{client: suite.client.db.WorkflowDefinition, ID: workflowID}).MustDelete(sharedTestUser1.UserCtx, t) t.Run("tag definition deletion works if no workflow definition using it", func(t *testing.T) { - resp, err := suite.client.api.DeleteTagDefinition(testUser1.UserCtx, tagDef.ID) + resp, err := suite.client.api.DeleteTagDefinition(sharedTestUser1.UserCtx, tagDef.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(tagDef.ID, resp.DeleteTagDefinition.DeletedID)) diff --git a/internal/graphapi/task_test.go b/internal/graphapi/task_test.go index 3c0f0fbac3..42fe08b8c4 100644 --- a/internal/graphapi/task_test.go +++ b/internal/graphapi/task_test.go @@ -21,8 +21,11 @@ import ( ) func TestQueryTask(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) + t.Parallel() + + localTestOrg := suite.seedOrgOwner(t) + testUser := localTestOrg.owner + patClient := localTestOrg.patClient task := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) anonymousContext := createAnonymousTrustCenterContext("abc123", testUser.OrganizationID) @@ -83,18 +86,19 @@ func TestQueryTask(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(testUser.UserCtx, t) } func TestQueryTasks(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - - viewUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() - adminUser1 := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser1, enums.RoleAdmin, testUser.OrganizationID) + localTestOrg := suite.seedFreshOrgUsers(t) + testUser := localTestOrg.owner + adminPatClient := localTestOrg.adminPatClient + apiClient := localTestOrg.adminApiClient + viewUser := localTestOrg.member + adminUser := localTestOrg.admin + superAdmin := localTestOrg.superAdmin anotherUser := suite.userBuilder(context.Background(), t) @@ -106,7 +110,7 @@ func TestQueryTasks(t *testing.T) { for range numTasks { t1 := (&TaskBuilder{client: suite.client, Due: gofakeit.Date()}).MustNew(testUser.UserCtx, t) t2 := (&TaskBuilder{client: suite.client, Due: gofakeit.Date()}).MustNew(viewUser.UserCtx, t) - t3 := (&TaskBuilder{client: suite.client, Due: gofakeit.Date()}).MustNew(adminUser1.UserCtx, t) + t3 := (&TaskBuilder{client: suite.client, Due: gofakeit.Date()}).MustNew(adminUser.UserCtx, t) org1TaskIDs = append(org1TaskIDs, t1.ID, t2.ID, t3.ID) t4 := (&TaskBuilder{client: suite.client, Due: gofakeit.Date()}).MustNew(anotherUser.UserCtx, t) @@ -119,7 +123,7 @@ func TestQueryTasks(t *testing.T) { // restricted to a single org. PAT auth would return it if both orgs are authorized on the token taskPersonal := (&TaskBuilder{client: suite.client, AssigneeID: testUser.ID}).MustNew(userCtxPersonalOrg, t) - risk := (&RiskBuilder{client: suite.client}).MustNew(adminUser1.UserCtx, t) + risk := (&RiskBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) taskWithRisk := (&TaskBuilder{client: suite.client, RiskID: risk.ID}).MustNew(testUser.UserCtx, t) org1TaskIDs = append(org1TaskIDs, taskWithRisk.ID) @@ -147,6 +151,20 @@ func TestQueryTasks(t *testing.T) { expectedResults: first, totalCount: 31, }, + { + name: "happy path, super admin", + client: suite.client.api, + ctx: superAdmin.UserCtx, + expectedResults: first, + totalCount: 31, + }, + { + name: "happy path, api client", + client: apiClient, + ctx: context.Background(), + expectedResults: first, + totalCount: 31, + }, { name: "happy path, with order by due date, page 1", orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionDesc}}, @@ -233,16 +251,16 @@ func TestQueryTasks(t *testing.T) { { name: "happy path, admin user", client: suite.client.api, - ctx: adminUser1.UserCtx, + ctx: adminUser.UserCtx, expectedResults: first, totalCount: 11, }, { - name: "happy path, using pat - which should have access to all tasks because its authorized to the personal org", - client: patClient, + name: "happy path, using admin user pat pat, should only have access to same as admin user", + client: adminPatClient, ctx: context.Background(), expectedResults: first, - totalCount: 32, + totalCount: 11, }, { name: "another user, no entities should be returned", @@ -300,10 +318,11 @@ func TestQueryTasks(t *testing.T) { // internal context because personal orgs do not have access to tasks and the creation earlier // with TaskBuilder used the bypass too. SO use the system admin to remove (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskPersonal.ID}). - MustDelete(systemAdminUser.UserCtx, t) + MustDelete(sharedSystemAdminUser.UserCtx, t) + + cleanupOrganizationDataWithContext(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(anotherUser.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org1TaskIDs}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(anotherUser.UserCtx, t) } func getFutureDate() time.Time { @@ -317,12 +336,12 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { org1TaskIDs := []string{} org2TaskIDs := []string{} for range numTasks { - t1 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(testUser1.UserCtx, t) - t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(viewOnlyUser2.UserCtx, t) - t3 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(adminUser.UserCtx, t) + t1 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser1.UserCtx, t) + t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedViewOnlyUser2.UserCtx, t) + t3 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedAdminUser.UserCtx, t) org1TaskIDs = append(org1TaskIDs, t1.ID, t2.ID, t3.ID) - t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(testUser2.UserCtx, t) + t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser2.UserCtx, t) org2TaskIDs = append(org2TaskIDs, t4.ID) } @@ -343,7 +362,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { name: "happy path, with order by due date, page 1", orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -353,7 +372,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -363,7 +382,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -373,7 +392,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -383,7 +402,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -393,7 +412,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -403,7 +422,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -413,7 +432,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -423,7 +442,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -433,7 +452,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedResults: 5, totalCount: 95, }, @@ -489,17 +508,16 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org1TaskIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org1TaskIDs}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(sharedTestUser2.UserCtx, t) } func TestQueryTasksPaginationByCreatedDate(t *testing.T) { // create a bunch to test the pagination with different users // to ensure we are paginating correctly when viewing as org admin - testUser := suite.userBuilder(context.Background(), t) - om := (&OrgMemberBuilder{client: suite.client, Role: enums.RoleMember.String()}).MustNew(testUser.UserCtx, t) - - viewOnlyUserCtx := auth.NewTestContextWithOrgID(om.UserID, testUser.OrganizationID) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + testUser := localTestOrg.owner + viewOnlyUserCtx := localTestOrg.member.UserCtx numTasks := 93 org1TaskIDs := []string{} @@ -509,7 +527,7 @@ func TestQueryTasksPaginationByCreatedDate(t *testing.T) { t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(viewOnlyUserCtx, t) org1TaskIDs = append(org1TaskIDs, t1.ID, t2.ID) - t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(testUser2.UserCtx, t) + t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser2.UserCtx, t) org2TaskIDs = append(org2TaskIDs, t4.ID) } @@ -676,26 +694,23 @@ func TestQueryTasksPaginationByCreatedDate(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org1TaskIDs}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(testUser2.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(sharedTestUser2.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationCreateTask(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - apiClient := suite.setupAPITokenClient(testUser.UserCtx, t) + localTestOrg := suite.seedFreshMinimalOrgUsers(t, true) - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - om2 := (&OrgMemberBuilder{client: suite.client, Role: enums.RoleAdmin.String()}).MustNew(testUser.UserCtx, t) + testUser := localTestOrg.owner - userCtx := auth.NewTestContextWithOrgID(om.UserID, om.OrganizationID) - adminCtx := auth.NewTestContextWithOrgID(om2.UserID, om2.OrganizationID) + userCtx := localTestOrg.member.UserCtx + adminCtx := localTestOrg.admin.UserCtx control := (&ControlBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - systemOwnedControl := (&ControlBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - systemOwnedSubcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: systemOwnedControl.ID}).MustNew(systemAdminUser.UserCtx, t) + systemOwnedControl := (&ControlBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + systemOwnedSubcontrol := (&SubcontrolBuilder{client: suite.client, ControlID: systemOwnedControl.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -721,7 +736,7 @@ func TestMutationCreateTask(t *testing.T) { Due: lo.ToPtr(models.DateTime(time.Now().Add(time.Hour * 24))), ControlIDs: []string{control.ID}, InternalPolicyIDs: []string{internalPolicy.ID}, - AssigneeID: &om.UserID, // assign the task to self + AssigneeID: &localTestOrg.member.ID, // assign the task to self }, client: suite.client.api, ctx: userCtx, @@ -733,7 +748,7 @@ func TestMutationCreateTask(t *testing.T) { Details: lo.ToPtr("test details of the task"), Status: &enums.TaskStatusInProgress, Due: lo.ToPtr(models.DateTime(time.Now().Add(time.Hour * 24))), - AssigneeID: &om.UserID, // assign the task to another user + AssigneeID: &localTestOrg.member.ID, // assign the task to another user }, client: suite.client.api, ctx: testUser.UserCtx, @@ -742,7 +757,7 @@ func TestMutationCreateTask(t *testing.T) { name: "create with assignee not in org should fail", request: testclient.CreateTaskInput{ Title: "test-task", - AssigneeID: &testUser2.ID, + AssigneeID: &sharedTestUser2.ID, }, client: suite.client.api, ctx: testUser.UserCtx, @@ -754,7 +769,7 @@ func TestMutationCreateTask(t *testing.T) { Title: "test-task", OwnerID: &testUser.OrganizationID, }, - client: patClient, + client: localTestOrg.adminPatClient, ctx: context.Background(), }, { @@ -762,7 +777,7 @@ func TestMutationCreateTask(t *testing.T) { request: testclient.CreateTaskInput{ Title: "test-task", }, - client: apiClient, + client: localTestOrg.apiClient, ctx: context.Background(), }, { @@ -842,7 +857,7 @@ func TestMutationCreateTask(t *testing.T) { } // when using an API token, the assigner is not set - if tc.client == apiClient { + if tc.client == localTestOrg.apiClient { assert.Check(t, is.Nil(resp.CreateTask.Task.Assigner)) } else { // otherwise it defaults to the authorized user @@ -851,7 +866,7 @@ func TestMutationCreateTask(t *testing.T) { case testUser.UserCtx: assert.Check(t, is.Equal(testUser.ID, resp.CreateTask.Task.Assigner.ID)) case userCtx: - assert.Check(t, is.Equal(om.UserID, resp.CreateTask.Task.Assigner.ID)) + assert.Check(t, is.Equal(localTestOrg.member.ID, resp.CreateTask.Task.Assigner.ID)) } } @@ -878,19 +893,16 @@ func TestMutationCreateTask(t *testing.T) { } // cleanup - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: om.ID}).MustDelete(testUser.UserCtx, t) - // cleanup controls and policies - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: control.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.InternalPolicyDeleteOne]{client: suite.client.db.InternalPolicy, ID: internalPolicy.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) // cleanup system owned controls - (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: systemOwnedSubcontrol.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: systemOwnedControl.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.SubcontrolDeleteOne]{client: suite.client.db.Subcontrol, ID: systemOwnedSubcontrol.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) + (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: systemOwnedControl.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationUpdateTask(t *testing.T) { - task := (&TaskBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - group := (&GroupMemberBuilder{client: suite.client, UserID: adminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(adminUser.UserCtx, t) + task := (&TaskBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + group := (&GroupMemberBuilder{client: suite.client, UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedAdminUser.UserCtx, t) pngFile := uploadFile(t, logoFilePath) pdfFile := uploadFile(t, pdfFilePath) @@ -898,14 +910,14 @@ func TestMutationUpdateTask(t *testing.T) { taskCommentID := "" assignee := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser1.UserCtx, t, &assignee, enums.RoleMember, testUser1.OrganizationID) + suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &assignee, enums.RoleMember, sharedTestUser1.OrganizationID) // add parents to ensure permissions are inherited - risk := (&RiskBuilder{client: suite.client}).MustNew(adminUser.UserCtx, t) - taskRisk := (&TaskBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + risk := (&RiskBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) + taskRisk := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // make sure the user cannot can see the task before they are the assigner - _, err := suite.client.api.GetTaskByID(viewOnlyUser2.UserCtx, task.ID) + _, err := suite.client.api.GetTaskByID(sharedViewOnlyUser2.UserCtx, task.ID) assert.ErrorContains(t, err, notFoundErrorMsg) // make sure the user cannot can see the task before they are the assignee @@ -913,7 +925,7 @@ func TestMutationUpdateTask(t *testing.T) { assert.ErrorContains(t, err, notFoundErrorMsg) // make sure the user cannot see the task before the risk is added - _, err = suite.client.api.GetTaskByID(adminUser.UserCtx, taskRisk.ID) + _, err = suite.client.api.GetTaskByID(sharedAdminUser.UserCtx, taskRisk.ID) assert.ErrorContains(t, err, notFoundErrorMsg) // NOTE: the tests and checks are ordered due to dependencies between updates @@ -933,10 +945,10 @@ func TestMutationUpdateTask(t *testing.T) { taskID: task.ID, request: &testclient.UpdateTaskInput{ Details: lo.ToPtr(("making a list, checking it twice")), - AssigneeID: &adminUser.ID, + AssigneeID: &sharedAdminUser.ID, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, add comment", @@ -947,7 +959,7 @@ func TestMutationUpdateTask(t *testing.T) { }, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update comment with files", @@ -959,7 +971,7 @@ func TestMutationUpdateTask(t *testing.T) { pngFile, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update comment with file using PAT", @@ -980,7 +992,7 @@ func TestMutationUpdateTask(t *testing.T) { DeleteComment: &taskCommentID, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, add risk", @@ -989,7 +1001,7 @@ func TestMutationUpdateTask(t *testing.T) { AddRiskIDs: []string{risk.ID}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "update category using pat of owner", @@ -1002,10 +1014,10 @@ func TestMutationUpdateTask(t *testing.T) { name: "update assignee to user not in org should fail", taskID: task.ID, request: &testclient.UpdateTaskInput{ - AssigneeID: lo.ToPtr(testUser2.ID), + AssigneeID: lo.ToPtr(sharedTestUser2.ID), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, expectedErr: "user not in organization", }, { @@ -1015,7 +1027,7 @@ func TestMutationUpdateTask(t *testing.T) { AssigneeID: lo.ToPtr(assignee.ID), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update assignee to same user, should not error", @@ -1024,7 +1036,7 @@ func TestMutationUpdateTask(t *testing.T) { AssigneeID: lo.ToPtr(assignee.ID), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "update status and details", @@ -1034,7 +1046,7 @@ func TestMutationUpdateTask(t *testing.T) { Details: lo.ToPtr("do all the things for the thing"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "add to group", @@ -1043,16 +1055,16 @@ func TestMutationUpdateTask(t *testing.T) { AddGroupIDs: []string{group.GroupID}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { - name: "update assigner to another org member, this user should still be able to see it because they originally created it", + name: "update assigner to another org member, no longer see it because no parent linked", taskID: task.ID, request: &testclient.UpdateTaskInput{ - AssignerID: lo.ToPtr(viewOnlyUser2.ID), + AssignerID: lo.ToPtr(sharedViewOnlyUser2.ID), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "clear assignee", @@ -1061,16 +1073,7 @@ func TestMutationUpdateTask(t *testing.T) { ClearAssignee: lo.ToPtr(true), }, client: suite.client.api, - ctx: adminUser.UserCtx, - }, - { - name: "clear assigner", - taskID: task.ID, - request: &testclient.UpdateTaskInput{ - ClearAssigner: lo.ToPtr(true), - }, - client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedViewOnlyUser2.UserCtx, }, } @@ -1089,7 +1092,7 @@ func TestMutationUpdateTask(t *testing.T) { expectUploadNillable(t, suite.client.mockProvider, tc.files) } - commentResp, err = suite.client.api.UpdateTaskComment(testUser1.UserCtx, taskCommentID, *tc.updateCommentRequest, tc.files) + commentResp, err = suite.client.api.UpdateTaskComment(sharedTestUser1.UserCtx, taskCommentID, *tc.updateCommentRequest, tc.files) } if tc.expectedErr != "" { @@ -1127,12 +1130,12 @@ func TestMutationUpdateTask(t *testing.T) { assert.Check(t, is.Nil(resp.UpdateTask.Task.Assignee)) // the previous assigner should no longer be able to see the task - _, err := suite.client.api.GetTaskByID(viewOnlyUser2.UserCtx, resp.UpdateTask.Task.ID) + _, err := suite.client.api.GetTaskByID(sharedViewOnlyUser2.UserCtx, resp.UpdateTask.Task.ID) assert.Check(t, is.ErrorContains(err, notFoundErrorMsg)) } if tc.request.AddRiskIDs != nil { - taskResp, err := suite.client.api.GetTaskByID(adminUser.UserCtx, resp.UpdateTask.Task.ID) + taskResp, err := suite.client.api.GetTaskByID(sharedAdminUser.UserCtx, resp.UpdateTask.Task.ID) assert.Check(t, is.Nil(err)) assert.Check(t, is.Equal(taskResp.Task.ID, tc.taskID)) } @@ -1142,14 +1145,9 @@ func TestMutationUpdateTask(t *testing.T) { assert.Check(t, is.Equal(*tc.request.AssignerID, resp.UpdateTask.Task.Assigner.ID)) // make sure the assigner can see the task - taskResp, err := suite.client.api.GetTaskByID(viewOnlyUser2.UserCtx, resp.UpdateTask.Task.ID) + taskResp, err := suite.client.api.GetTaskByID(sharedViewOnlyUser2.UserCtx, resp.UpdateTask.Task.ID) assert.Check(t, err) assert.Check(t, taskResp != nil) - - // make sure the original creator can still see the task - taskResp, err = suite.client.api.GetTaskByID(adminUser.UserCtx, resp.UpdateTask.Task.ID) - assert.NilError(t, err) - assert.Check(t, taskResp != nil) } if tc.request.AddComment != nil { @@ -1165,11 +1163,11 @@ func TestMutationUpdateTask(t *testing.T) { assert.Check(t, is.ErrorContains(err, notFoundErrorMsg)) // user should be able to see the comment since they created the task - checkResp, err = suite.client.api.GetNoteByID(adminUser.UserCtx, taskCommentID) + checkResp, err = suite.client.api.GetNoteByID(sharedAdminUser.UserCtx, taskCommentID) assert.Check(t, err) // org owner should be able to see the comment - checkResp, err = suite.client.api.GetNoteByID(testUser1.UserCtx, taskCommentID) + checkResp, err = suite.client.api.GetNoteByID(sharedTestUser1.UserCtx, taskCommentID) assert.Check(t, err) assert.Check(t, checkResp != nil) } else if tc.request.DeleteComment != nil { @@ -1187,15 +1185,16 @@ func TestMutationUpdateTask(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.GroupID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: task.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.GroupDeleteOne]{client: suite.client.db.Group, ID: group.GroupID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteTask(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - task1 := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - task2 := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + t.Parallel() + + testUser := suite.seedOrgOwner(t) + task1 := (&TaskBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) + task2 := (&TaskBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) testCases := []struct { name string @@ -1208,33 +1207,33 @@ func TestMutationDeleteTask(t *testing.T) { name: "not authorized, delete task", idToDelete: task1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "happy path, delete task", idToDelete: task1.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, }, { name: "task already deleted, not found", idToDelete: task1.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedErr: "task not found", }, { name: "happy path, delete task using personal access token", idToDelete: task2.ID, - client: patClient, + client: testUser.patClient, ctx: context.Background(), }, { name: "unknown task, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -1253,18 +1252,20 @@ func TestMutationDeleteTask(t *testing.T) { assert.Check(t, is.Equal(tc.idToDelete, resp.DeleteTask.DeletedID)) }) } + + cleanupOrganizationDataWithContext(testUser.owner.UserCtx, t) } func TestMutationUpdateBulkTask(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + testUser := suite.seedOrgOwner(t) - task1 := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - task2 := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - task3 := (&TaskBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + task1 := (&TaskBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) + task2 := (&TaskBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) + task3 := (&TaskBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) - taskAnotherUser := (&TaskBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + taskAnotherUser := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) testCases := []struct { name string @@ -1283,7 +1284,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { Details: lo.ToPtr("Cleared all tags"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedUpdatedCount: 2, }, { @@ -1291,7 +1292,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { ids: []string{}, input: testclient.UpdateTaskInput{Title: lo.ToPtr("test")}, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedErr: "ids is required", }, { @@ -1301,7 +1302,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { Title: lo.ToPtr("Updated by authorized user"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedUpdatedCount: 1, // only task1 should be updated }, { @@ -1311,7 +1312,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { Title: lo.ToPtr("Should not update"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedUpdatedCount: 0, // should not find any tasks to update }, { @@ -1321,7 +1322,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { Status: &enums.TaskStatusInProgress, }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedUpdatedCount: 3, }, { @@ -1331,7 +1332,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { AssigneeID: &om.UserID, }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, expectedUpdatedCount: 2, }, } @@ -1393,7 +1394,7 @@ func TestMutationUpdateBulkTask(t *testing.T) { } // ensure the org owner has access to the task that was updated - res, err := suite.client.api.GetTaskByID(testUser.UserCtx, task.ID) + res, err := suite.client.api.GetTaskByID(testUser.owner.UserCtx, task.ID) assert.NilError(t, err) assert.Check(t, is.Equal(task.ID, res.Task.ID)) } @@ -1413,7 +1414,6 @@ func TestMutationUpdateBulkTask(t *testing.T) { } // Cleanup created tasks - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: []string{task1.ID, task2.ID, task3.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskAnotherUser.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.OrgMembershipDeleteOne]{client: suite.client.db.OrgMembership, ID: om.ID}).MustDelete(testUser.UserCtx, t) + (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, ID: taskAnotherUser.ID}).MustDelete(sharedTestUser2.UserCtx, t) + cleanupOrganizationDataWithContext(testUser.owner.UserCtx, t) } diff --git a/internal/graphapi/template_test.go b/internal/graphapi/template_test.go index 66950e9098..2cc75b3c79 100644 --- a/internal/graphapi/template_test.go +++ b/internal/graphapi/template_test.go @@ -17,10 +17,10 @@ import ( func TestQueryTemplate(t *testing.T) { // create an template to be queried using testUser1 - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create a system admin root template - templateRoot := (&TemplateBuilder{client: suite.client, TemplateType: enums.RootTemplate}).MustNew(systemAdminUser.UserCtx, t) + templateRoot := (&TemplateBuilder{client: suite.client, TemplateType: enums.RootTemplate}).MustNew(sharedSystemAdminUser.UserCtx, t) // add test cases for querying the Template testCases := []struct { @@ -34,25 +34,25 @@ func TestQueryTemplate(t *testing.T) { name: "happy path", queryID: template.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, root template", queryID: templateRoot.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, root template, view only user", queryID: templateRoot.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path, read only user", queryID: template.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: sharedViewOnlyUser.UserCtx, }, { name: "happy path using personal access token", @@ -64,21 +64,21 @@ func TestQueryTemplate(t *testing.T) { name: "template not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "template not found, using not authorized user", queryID: template.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "anonymous user can access root template", queryID: templateRoot.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(ulids.New().String(), testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID), }, } @@ -100,8 +100,8 @@ func TestQueryTemplate(t *testing.T) { }) } - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: templateRoot.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: templateRoot.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } func TestMutationCreateTemplate(t *testing.T) { @@ -109,7 +109,7 @@ func TestMutationCreateTemplate(t *testing.T) { createPDFUpload := uploadFileFunc(t, pdfFilePath) createPNGUpload := logoFileFunc(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -135,7 +135,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, full input without files", @@ -176,7 +176,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, with single PDF file", @@ -196,7 +196,7 @@ func TestMutationCreateTemplate(t *testing.T) { templateFiles: []*graphql.Upload{createPDFUpload()}, expectedKind: &enums.TemplateKindQuestionnaire, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, with multiple files", @@ -217,7 +217,7 @@ func TestMutationCreateTemplate(t *testing.T) { templateFiles: []*graphql.Upload{createPDFUpload(), createPNGUpload()}, expectedKind: &enums.TemplateKindQuestionnaire, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "missing required name field", @@ -228,7 +228,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, { @@ -238,7 +238,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "cannot be null", }, { @@ -257,7 +257,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "trust center NDA with no trust center", @@ -275,7 +275,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "generated: constraint failed: pq: new row for relation", }, { @@ -295,7 +295,7 @@ func TestMutationCreateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "trust center NDA with trust center and file", @@ -315,7 +315,7 @@ func TestMutationCreateTemplate(t *testing.T) { templateFiles: []*graphql.Upload{createPDFUpload()}, expectedKind: &enums.TemplateKindTrustCenterNda, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, } @@ -381,7 +381,7 @@ func TestMutationCreateTemplate(t *testing.T) { (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(tc.ctx, t) }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationUpdateTemplate(t *testing.T) { @@ -390,15 +390,15 @@ func TestMutationUpdateTemplate(t *testing.T) { createPNGUpload := logoFileFunc(t) // Create a template to be updated - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - template2 := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + template2 := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create a root template for system admin tests rootTemplate := (&TemplateBuilder{ client: suite.client, TemplateType: enums.RootTemplate, Name: "Root Template for Update", - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) testCases := []struct { name string @@ -417,7 +417,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update description", @@ -427,7 +427,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -466,7 +466,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update with single file", @@ -485,7 +485,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: []*graphql.Upload{createPDFUpload()}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update with multiple files", @@ -505,7 +505,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: []*graphql.Upload{createPDFUpload(), createPNGUpload()}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update tags", @@ -515,7 +515,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, append tags", @@ -525,7 +525,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using personal access token", @@ -546,7 +546,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: systemAdminUser.UserCtx, + ctx: sharedSystemAdminUser.UserCtx, }, { name: "template not found, invalid ID", @@ -556,7 +556,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -567,7 +567,7 @@ func TestMutationUpdateTemplate(t *testing.T) { }, templateFiles: nil, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -669,7 +669,7 @@ func TestMutationUpdateTemplate(t *testing.T) { } // Cleanup the created templates - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template2.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: rootTemplate.ID}).MustDelete(systemAdminUser.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template2.ID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: rootTemplate.ID}).MustDelete(sharedSystemAdminUser.UserCtx, t) } diff --git a/internal/graphapi/testclient/graphclient.go b/internal/graphapi/testclient/graphclient.go index 930c78b91b..9e0ade2d56 100644 --- a/internal/graphapi/testclient/graphclient.go +++ b/internal/graphapi/testclient/graphclient.go @@ -128299,19 +128299,151 @@ func (t *GetTrustCenters_TrustCenters_Edges_Node_Setting) GetTitle() *string { return t.Title } +type GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_LogoFile struct { + PresignedURL *string "json:\"presignedURL,omitempty\" graphql:\"presignedURL\"" +} + +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_LogoFile) GetPresignedURL() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_LogoFile{} + } + return t.PresignedURL +} + +type GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_FaviconFile struct { + PresignedURL *string "json:\"presignedURL,omitempty\" graphql:\"presignedURL\"" +} + +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_FaviconFile) GetPresignedURL() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_FaviconFile{} + } + return t.PresignedURL +} + +type GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting struct { + AccentColor *string "json:\"accentColor,omitempty\" graphql:\"accentColor\"" + BackgroundColor *string "json:\"backgroundColor,omitempty\" graphql:\"backgroundColor\"" + FaviconFile *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_FaviconFile "json:\"faviconFile,omitempty\" graphql:\"faviconFile\"" + FaviconLocalFileID *string "json:\"faviconLocalFileID,omitempty\" graphql:\"faviconLocalFileID\"" + FaviconRemoteURL *string "json:\"faviconRemoteURL,omitempty\" graphql:\"faviconRemoteURL\"" + Font *string "json:\"font,omitempty\" graphql:\"font\"" + ForegroundColor *string "json:\"foregroundColor,omitempty\" graphql:\"foregroundColor\"" + ID string "json:\"id\" graphql:\"id\"" + LogoFile *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_LogoFile "json:\"logoFile,omitempty\" graphql:\"logoFile\"" + LogoLocalFileID *string "json:\"logoLocalFileID,omitempty\" graphql:\"logoLocalFileID\"" + LogoRemoteURL *string "json:\"logoRemoteURL,omitempty\" graphql:\"logoRemoteURL\"" + Overview *string "json:\"overview,omitempty\" graphql:\"overview\"" + PrimaryColor *string "json:\"primaryColor,omitempty\" graphql:\"primaryColor\"" + ThemeMode *enums.TrustCenterThemeMode "json:\"themeMode,omitempty\" graphql:\"themeMode\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" +} + +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetAccentColor() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.AccentColor +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetBackgroundColor() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.BackgroundColor +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetFaviconFile() *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_FaviconFile { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.FaviconFile +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetFaviconLocalFileID() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.FaviconLocalFileID +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetFaviconRemoteURL() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.FaviconRemoteURL +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetFont() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.Font +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetForegroundColor() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.ForegroundColor +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetID() string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.ID +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetLogoFile() *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting_LogoFile { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.LogoFile +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetLogoLocalFileID() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.LogoLocalFileID +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetLogoRemoteURL() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.LogoRemoteURL +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetOverview() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.Overview +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetPrimaryColor() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.PrimaryColor +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetThemeMode() *enums.TrustCenterThemeMode { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.ThemeMode +} +func (t *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting) GetTitle() *string { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting{} + } + return t.Title +} + type GetTrustCenters_TrustCenters_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - CustomDomain *GetTrustCenters_TrustCenters_Edges_Node_CustomDomain "json:\"customDomain,omitempty\" graphql:\"customDomain\"" - CustomDomainID *string "json:\"customDomainID,omitempty\" graphql:\"customDomainID\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PreviewDomainID *string "json:\"previewDomainID,omitempty\" graphql:\"previewDomainID\"" - Setting *GetTrustCenters_TrustCenters_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" - Slug *string "json:\"slug,omitempty\" graphql:\"slug\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + CustomDomain *GetTrustCenters_TrustCenters_Edges_Node_CustomDomain "json:\"customDomain,omitempty\" graphql:\"customDomain\"" + CustomDomainID *string "json:\"customDomainID,omitempty\" graphql:\"customDomainID\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PreviewDomainID *string "json:\"previewDomainID,omitempty\" graphql:\"previewDomainID\"" + PreviewSetting *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting "json:\"previewSetting,omitempty\" graphql:\"previewSetting\"" + Setting *GetTrustCenters_TrustCenters_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" + Slug *string "json:\"slug,omitempty\" graphql:\"slug\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } func (t *GetTrustCenters_TrustCenters_Edges_Node) GetCreatedAt() *time.Time { @@ -128356,6 +128488,12 @@ func (t *GetTrustCenters_TrustCenters_Edges_Node) GetPreviewDomainID() *string { } return t.PreviewDomainID } +func (t *GetTrustCenters_TrustCenters_Edges_Node) GetPreviewSetting() *GetTrustCenters_TrustCenters_Edges_Node_PreviewSetting { + if t == nil { + t = &GetTrustCenters_TrustCenters_Edges_Node{} + } + return t.PreviewSetting +} func (t *GetTrustCenters_TrustCenters_Edges_Node) GetSetting() *GetTrustCenters_TrustCenters_Edges_Node_Setting { if t == nil { t = &GetTrustCenters_TrustCenters_Edges_Node{} @@ -196825,6 +196963,27 @@ const GetTrustCentersDocument = `query GetTrustCenters ($first: Int, $last: Int, backgroundColor accentColor } + previewSetting { + id + overview + title + primaryColor + logoRemoteURL + logoLocalFileID + logoFile { + presignedURL + } + faviconRemoteURL + faviconLocalFileID + faviconFile { + presignedURL + } + themeMode + font + foregroundColor + backgroundColor + accentColor + } } } } diff --git a/internal/graphapi/tfasetting_test.go b/internal/graphapi/tfasetting_test.go index 92fa0fa667..16609109e6 100644 --- a/internal/graphapi/tfasetting_test.go +++ b/internal/graphapi/tfasetting_test.go @@ -11,16 +11,15 @@ import ( "github.com/theopenlane/utils/rout" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" ) func TestQueryTFASetting(t *testing.T) { + t.Parallel() // create a user for this test - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) + testUser := suite.seedOrgOwner(t) - tfa := (&TFASettingBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + (&TFASettingBuilder{client: suite.client}).MustNew(testUser.owner.UserCtx, t) testCases := []struct { name string @@ -32,17 +31,17 @@ func TestQueryTFASetting(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: testUser.owner.UserCtx, }, { name: "happy path, using personal access token", - client: patClient, + client: testUser.patClient, ctx: context.Background(), }, { name: "valid user, but not auth", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -63,15 +62,14 @@ func TestQueryTFASetting(t *testing.T) { } // cleanup - (&Cleanup[*generated.TFASettingDeleteOne]{client: suite.client.db.TFASetting, ID: tfa.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(testUser.owner.UserCtx, t) } func TestMutationCreateTFASetting(t *testing.T) { // create a user for this test - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - apiClient := suite.setupAPITokenClient(testUser.UserCtx, t) - + t.Parallel() + localTestUser := suite.seedOrgOwner(t) + localTestUser2 := suite.userBuilder(context.Background(), t) testUserAnother := suite.userBuilder(context.Background(), t) testCases := []struct { @@ -84,40 +82,40 @@ func TestMutationCreateTFASetting(t *testing.T) { }{ { name: "happy path", - userID: testUser2.ID, + userID: localTestUser2.ID, input: testclient.CreateTFASettingInput{ TotpAllowed: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser2.UserCtx, }, { name: "happy path, using personal access token", - userID: testUser.ID, + userID: localTestUser.owner.ID, input: testclient.CreateTFASettingInput{ TotpAllowed: lo.ToPtr(true), }, - client: patClient, + client: localTestUser.patClient, ctx: context.Background(), }, { name: "unable to create using api token", - userID: testUser.ID, + userID: localTestUser.owner.ID, input: testclient.CreateTFASettingInput{ TotpAllowed: lo.ToPtr(true), }, - client: apiClient, + client: localTestUser.apiClient, ctx: context.Background(), errMsg: rout.ErrBadRequest.Error(), }, { name: "already exists", - userID: testUser.ID, + userID: localTestUser.owner.ID, input: testclient.CreateTFASettingInput{ TotpAllowed: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, errMsg: "tfasetting already exists", }, { @@ -160,7 +158,7 @@ func TestMutationCreateTFASetting(t *testing.T) { assert.Check(t, is.Equal(tc.userID, resp.CreateTFASetting.TfaSetting.Owner.ID)) // make sure user setting was not updated - userSetting, err := testUser1.UserInfo.Setting(testUser1.UserCtx) + userSetting, err := sharedTestUser1.UserInfo.Setting(sharedTestUser1.UserCtx) assert.NilError(t, err) assert.Check(t, !userSetting.IsTfaEnabled) @@ -168,19 +166,20 @@ func TestMutationCreateTFASetting(t *testing.T) { } // cleanup - tfaSetting, err := suite.client.api.GetTFASetting(testUser2.UserCtx) + _, err := suite.client.api.GetTFASetting(localTestUser2.UserCtx) assert.NilError(t, err) - (&Cleanup[*generated.TFASettingDeleteOne]{client: suite.client.db.TFASetting, ID: tfaSetting.TfaSetting.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser2.UserCtx, t) + cleanupOrganizationDataWithContext(testUserAnother.UserCtx, t) } func TestMutationUpdateTFASetting(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - patClient := suite.setupPatClient(testUser, t) - apiClient := suite.setupAPITokenClient(testUser.UserCtx, t) + t.Parallel() + localTestUser := suite.seedOrgOwner(t) - // create tfa settings for users - tfaSetting := (&TFASettingBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + // create tfa settings for user + (&TFASettingBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) recoveryCodes := []string{} @@ -198,14 +197,14 @@ func TestMutationUpdateTFASetting(t *testing.T) { Verified: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "regen codes using personal access token", input: testclient.UpdateTFASettingInput{ RegenBackupCodes: lo.ToPtr(true), }, - client: patClient, + client: localTestUser.patClient, ctx: context.Background(), }, { @@ -213,7 +212,7 @@ func TestMutationUpdateTFASetting(t *testing.T) { input: testclient.UpdateTFASettingInput{ RegenBackupCodes: lo.ToPtr(true), }, - client: apiClient, + client: localTestUser.apiClient, ctx: context.Background(), errMsg: rout.ErrBadRequest.Error(), }, @@ -223,7 +222,7 @@ func TestMutationUpdateTFASetting(t *testing.T) { RegenBackupCodes: lo.ToPtr(false), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "update totp to false should clear settings", @@ -231,7 +230,7 @@ func TestMutationUpdateTFASetting(t *testing.T) { TotpAllowed: lo.ToPtr(false), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "update TotpAllowed to true should enable TFA", @@ -239,7 +238,7 @@ func TestMutationUpdateTFASetting(t *testing.T) { TotpAllowed: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: localTestUser.owner.UserCtx, }, } @@ -287,7 +286,7 @@ func TestMutationUpdateTFASetting(t *testing.T) { } // make sure user setting is updated correctly - userSettings, err := suite.client.api.GetUserSettingByID(testUser.UserCtx, testUser.UserInfo.Edges.Setting.ID) + userSettings, err := suite.client.api.GetUserSettingByID(localTestUser.owner.UserCtx, localTestUser.owner.UserInfo.Edges.Setting.ID) assert.NilError(t, err) if resp.UpdateTFASetting.TfaSetting.Verified { @@ -305,5 +304,5 @@ func TestMutationUpdateTFASetting(t *testing.T) { } // cleanup - (&Cleanup[*generated.TFASettingDeleteOne]{client: suite.client.db.TFASetting, ID: tfaSetting.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) } diff --git a/internal/graphapi/tools_test.go b/internal/graphapi/tools_test.go index 362e2a7fa8..3d18d47ae4 100644 --- a/internal/graphapi/tools_test.go +++ b/internal/graphapi/tools_test.go @@ -75,7 +75,7 @@ import ( ) const ( - fgaModelFile = "../../fga/model/model.fga" + fgaModuleFile = "../../fga/model/fga.mod" redacted = "*****************************" @@ -167,9 +167,11 @@ func (suite *GraphTestSuite) SetupSuite(t *testing.T) { // setup openFGA container suite.ofgaTF = fgatest.NewFGATestcontainer(context.Background(), - fgatest.WithModelFile(fgaModelFile), + fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), + fgatest.WithSkipParentContextKinds("organization", "user", "system"), + fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) ctx := context.Background() @@ -609,6 +611,19 @@ func requireNoError(t *testing.T, err error) { } } +func failNow(t *testing.T, msgs ...string) { + t.Helper() + logMsg := log.Error() + + for _, m := range msgs { + logMsg.Str("msg", m) + } + + logMsg.Msg("fatal error during test setup or teardown") + + os.Exit(1) +} + func testPDFBytes() []byte { page := map[string]any{ "paper": "A4P", diff --git a/internal/graphapi/tools_trustcenter_test.go b/internal/graphapi/tools_trustcenter_test.go index f1c2ab9dc0..887d22f34b 100644 --- a/internal/graphapi/tools_trustcenter_test.go +++ b/internal/graphapi/tools_trustcenter_test.go @@ -5,43 +5,180 @@ import ( "fmt" "testing" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/httpserve/authmanager" "github.com/theopenlane/iam/auth" "github.com/theopenlane/utils/ulids" - "gotest.tools/v3/assert" ) -// cleanupTrustCenterData removes all trust centers and watermark configs for the test user's organization. -// This ensures the Only() query in hooks works correctly when tests expect a single watermark config. +func cleanupOrganizationDataWithContext(ctx context.Context, t *testing.T) { + t.Helper() + caller, _ := auth.CallerFromContext(ctx) + if caller == nil && caller.OrganizationID == "" { + failNow(t) + } + _, err := suite.client.api.DeleteOrganization(ctx, caller.OrganizationID) + requireNoError(t, err) +} + +// cleanupTrustCenterData for the testUser1 context func cleanupTrustCenterData(t *testing.T) { t.Helper() - ctx := privacy.DecisionContext(setContext(testUser1.UserCtx, suite.client.db), privacy.Allow) + cleanupTrustCenterDataWithContext(sharedTestUser1.UserCtx, t) +} + +// cleanupTrustCenterData removes all trust centers and watermark configs for the context of the passed in user context. +// This ensures the Only() query in hooks works correctly when tests expect a single watermark config. +func cleanupTrustCenterDataWithContext(ctx context.Context, t *testing.T) { + t.Helper() + ctx = setContext(ctx, suite.client.db) wcs, err := suite.client.db.TrustCenterWatermarkConfig.Query().All(ctx) - assert.NilError(t, err) + requireNoError(t, err) for _, wc := range wcs { - _ = suite.client.db.TrustCenterWatermarkConfig.DeleteOneID(wc.ID).Exec(ctx) + err := suite.client.db.TrustCenterWatermarkConfig.DeleteOneID(wc.ID).Exec(ctx) + requireNoError(t, err) } tcs, err := suite.client.db.TrustCenter.Query().All(ctx) - assert.NilError(t, err) + requireNoError(t, err) for _, tc := range tcs { - _ = suite.client.db.TrustCenter.DeleteOneID(tc.ID).Exec(ctx) + err := suite.client.db.TrustCenter.DeleteOneID(tc.ID).Exec(ctx) + requireNoError(t, err) } } -// cleanupWatermarkConfigs removes all watermark configs for the test user's organization. -func cleanupWatermarkConfigs(t *testing.T) { +type trustCenterOrg struct { + organizationID string + trustCenter *generated.TrustCenter + ndaTemplateID *string + *testOrgUsers +} + +type trustCenterOption func(ctx context.Context, t *testing.T, c *trustCenterConfig) +type trustCenterConfig struct { + trustCenterID *string + customDomainID *string + ndaTemplateID *string + seedAllUserTypes bool + seedAPIClients bool +} + +// withAllUserTypes creates the owner, super admin, admin (with api and pat clients), member, and auditor users +func withAllUserTypes() trustCenterOption { + return func(ctx context.Context, t *testing.T, c *trustCenterConfig) { + c.seedAllUserTypes = true + } +} + +// withAPIClients adds the admin pat and api token clients, this isn't needed when withAllUserTypes is used because that will always create the api clients +func withAPIClients() trustCenterOption { + return func(ctx context.Context, t *testing.T, c *trustCenterConfig) { + c.seedAPIClients = true + } +} + +// withCustomDomain adds the custom domain for the trust center +func withCustomDomain() trustCenterOption { + return func(ctx context.Context, t *testing.T, c *trustCenterConfig) { + if ctx == nil || c.customDomainID != nil { + return + } + + cd := (&CustomDomainBuilder{client: suite.client}).MustNew(ctx, t) + c.customDomainID = &cd.ID + } +} + +// withNDATemplate adds an nda template for the trust center +func withNDATemplate() trustCenterOption { + return func(ctx context.Context, t *testing.T, c *trustCenterConfig) { + if ctx == nil || c.trustCenterID == nil || c.ndaTemplateID != nil { + return + } + + tmpl := (&TemplateBuilder{ + client: suite.client, + Kind: enums.TemplateKindTrustCenterNda, + TrustCenterID: *c.trustCenterID, + }).MustNew(ctx, t) + + c.ndaTemplateID = &tmpl.ID + } +} + +func createFreshOrgWithTrustCenter(t *testing.T, opts ...trustCenterOption) *trustCenterOrg { + t.Helper() + config := trustCenterConfig{} + + // run setup options + for _, opt := range opts { + opt(nil, t, &config) + } + + localUsers := &testOrgUsers{} + if config.seedAllUserTypes { + localUsers = suite.seedFreshOrgUsers(t) + } else { + users := suite.seedFreshMinimalOrgUsers(t, config.seedAPIClients) + localUsers.owner = users.owner + localUsers.admin = users.admin + localUsers.member = users.member + localUsers.adminApiClient = users.apiClient + localUsers.adminPatClient = users.adminPatClient + } + + ownerCtx := localUsers.owner.UserCtx + + // run pre-options post org creation + for _, opt := range opts { + opt(ownerCtx, t, &config) + } + + customDomainID := "" + if config.customDomainID != nil { + customDomainID = *config.customDomainID + } + + localTrustCenter := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomainID}).MustNew(ownerCtx, t) + + config.trustCenterID = &localTrustCenter.ID + + // run post options + for _, opt := range opts { + opt(ownerCtx, t, &config) + } + + return &trustCenterOrg{ + organizationID: localUsers.owner.OrganizationID, + trustCenter: localTrustCenter, + ndaTemplateID: config.ndaTemplateID, + testOrgUsers: localUsers, + } +} + +func cleanupWatermarkConfigsWithContext(ctx context.Context, t *testing.T) { t.Helper() - ctx := privacy.DecisionContext(setContext(testUser1.UserCtx, suite.client.db), privacy.Allow) + wcs, err := suite.client.db.TrustCenterWatermarkConfig.Query().All(ctx) + requireNoError(t, err) - wcs, _ := suite.client.db.TrustCenterWatermarkConfig.Query().All(ctx) for _, wc := range wcs { - _ = suite.client.db.TrustCenterWatermarkConfig.DeleteOneID(wc.ID).Exec(ctx) + err := suite.client.db.TrustCenterWatermarkConfig.DeleteOneID(wc.ID).Exec(ctx) + requireNoError(t, err) } } +// cleanupWatermarkConfigs removes all watermark configs for the test user's organization. +func cleanupWatermarkConfigs(t *testing.T) { + t.Helper() + + ctx := privacy.DecisionContext(setContext(sharedTestUser1.UserCtx, suite.client.db), privacy.Allow) + + cleanupWatermarkConfigsWithContext(ctx, t) +} + // createAnonymousTrustCenterContext creates a context for an anonymous trust center user func createAnonymousTrustCenterContext(trustCenterID, organizationID string) context.Context { anonUserID := fmt.Sprintf("%s%s", authmanager.AnonTrustCenterJWTPrefix, ulids.New().String()) diff --git a/internal/graphapi/trustcenter_test.go b/internal/graphapi/trustcenter_test.go index ade249d166..20f5b2e9e9 100644 --- a/internal/graphapi/trustcenter_test.go +++ b/internal/graphapi/trustcenter_test.go @@ -25,9 +25,9 @@ import ( ) func TestQueryTrustCenterByID(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter testCases := []struct { name string @@ -40,26 +40,26 @@ func TestQueryTrustCenterByID(t *testing.T) { name: "happy path", queryID: trustCenter.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, view only user", queryID: trustCenter.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, }, { name: "trust center not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not authorized to query org", queryID: trustCenter.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -79,7 +79,7 @@ func TestQueryTrustCenterByID(t *testing.T) { assert.Check(t, is.Equal(tc.queryID, resp.TrustCenter.ID)) assert.Check(t, resp.TrustCenter.Slug != nil) assert.Check(t, resp.TrustCenter.OwnerID != nil) - assert.Check(t, is.Equal(testUser1.OrganizationID, *resp.TrustCenter.OwnerID)) + assert.Check(t, is.Equal(tcOrg.organizationID, *resp.TrustCenter.OwnerID)) setting := resp.TrustCenter.GetSetting() assert.Assert(t, setting != nil) @@ -89,19 +89,24 @@ func TestQueryTrustCenterByID(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenters(t *testing.T) { - cleanupTrustCenterData(t) - - cnameRecord := gofakeit.DomainName() - customDomain := (&CustomDomainBuilder{client: suite.client, CnameRecord: cnameRecord}).MustNew(testUser1.UserCtx, t) - trustCenter1 := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomain.ID}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain(), withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter1 := tcOrg.trustCenter nonExistentSlug := "nonexistent-slug" + if trustCenter1.CustomDomainID == nil { + failNow(t, "expected trust center custom domain but no ID was returned") + + } + customDomainTrustCenter1, err := suite.client.api.GetCustomDomainByID(tcOrg.owner.UserCtx, *trustCenter1.CustomDomainID) + requireNoError(t, err) + testCases := []struct { name string client *testclient.TestClient @@ -112,28 +117,28 @@ func TestQueryTrustCenters(t *testing.T) { { name: "return all", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedResults: 1, }, { name: "return all, ro user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedResults: 1, }, { name: "query by org ID", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, where: &testclient.TrustCenterWhereInput{ - OwnerID: &testUser1.OrganizationID, + OwnerID: &tcOrg.organizationID, }, expectedResults: 1, }, { name: "query by slug", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, where: &testclient.TrustCenterWhereInput{ Slug: &trustCenter1.Slug, }, @@ -142,7 +147,7 @@ func TestQueryTrustCenters(t *testing.T) { { name: "query by slug, not found", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterWhereInput{ Slug: &nonExistentSlug, }, @@ -151,7 +156,7 @@ func TestQueryTrustCenters(t *testing.T) { { name: "query by custom domain, slug", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterWhereInput{ And: []*testclient.TrustCenterWhereInput{ { @@ -160,7 +165,7 @@ func TestQueryTrustCenters(t *testing.T) { { HasCustomDomainWith: []*testclient.CustomDomainWhereInput{ { - CnameRecord: &cnameRecord, + CnameRecord: &customDomainTrustCenter1.CustomDomain.CnameRecord, }, }, }, @@ -171,7 +176,7 @@ func TestQueryTrustCenters(t *testing.T) { { name: "query by non existent custom domain, slug", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterWhereInput{ And: []*testclient.TrustCenterWhereInput{ { @@ -199,12 +204,12 @@ func TestQueryTrustCenters(t *testing.T) { assert.Check(t, is.Equal(tc.expectedResults, resp.TrustCenters.TotalCount)) for _, node := range resp.TrustCenters.Edges { - assert.Check(t, node.Node != nil) + assert.Assert(t, node.Node != nil) assert.Check(t, node.Node.Slug != nil) assert.Check(t, node.Node.OwnerID != nil) - assert.Check(t, is.Equal(testUser1.OrganizationID, *node.Node.OwnerID)) + assert.Check(t, is.Equal(tcOrg.organizationID, *node.Node.OwnerID)) setting := node.Node.GetSetting() - assert.Check(t, setting != nil) + assert.Assert(t, setting != nil) assert.Check(t, setting.Title != nil) assert.Check(t, setting.Overview != nil) assert.Check(t, setting.PrimaryColor != nil) @@ -213,29 +218,29 @@ func TestQueryTrustCenters(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationCreateTrustCenter(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain()) + customDomainAnotherOrg, err := suite.client.api.GetCustomDomainByID(tcOrg.owner.UserCtx, *tcOrg.trustCenter.CustomDomainID) + requireNoError(t, err) - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - customDomainAnotherOrg := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + localTestUser := suite.seedFreshMinimalOrgUsers(t, false) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(localTestUser.owner.UserCtx, t) // create trust center standard - trustCenterControlStd := (&StandardBuilder{client: suite.client, Name: "OTS", Framework: "openlane-trust-center", IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + trustCenterControlStd := (&StandardBuilder{client: suite.client, Name: "OTS", Framework: "openlane-trust-center", IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) trustCenterControlIDs := []string{} numTrustCenterControls := 5 for range numTrustCenterControls { - control := (&ControlBuilder{client: suite.client, StandardID: trustCenterControlStd.ID}).MustNew(systemAdminUser.UserCtx, t) + control := (&ControlBuilder{client: suite.client, StandardID: trustCenterControlStd.ID}).MustNew(sharedSystemAdminUser.UserCtx, t) trustCenterControlIDs = append(trustCenterControlIDs, control.ID) } - // Create a trust center first to test the duplicate constraint - existingTrustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - testCases := []struct { name string request testclient.CreateTrustCenterInput @@ -247,16 +252,16 @@ func TestMutationCreateTrustCenter(t *testing.T) { name: "happy path for different organization", request: testclient.CreateTrustCenterInput{}, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "custom domain for different organization should error", request: testclient.CreateTrustCenterInput{ - CustomDomainID: &customDomainAnotherOrg.ID, + CustomDomainID: &customDomainAnotherOrg.CustomDomain.ID, }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notFoundErrorMsg, + ctx: localTestUser.owner.UserCtx, + expectedErr: notAuthorizedErrorMsg, }, { name: "custom domain setting", @@ -264,7 +269,7 @@ func TestMutationCreateTrustCenter(t *testing.T) { CustomDomainID: &customDomain.ID, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "happy path with settings for different organization", @@ -274,20 +279,20 @@ func TestMutationCreateTrustCenter(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: localTestUser.owner.UserCtx, }, { name: "not authorized", request: testclient.CreateTrustCenterInput{}, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: localTestUser.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "duplicate trust center for same organization", request: testclient.CreateTrustCenterInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "one trust center at a time", }, } @@ -353,26 +358,14 @@ func TestMutationCreateTrustCenter(t *testing.T) { } // Clean up the existing trust center - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: existingTrustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) - // cleanup trust center standard and control - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, IDs: trustCenterControlIDs}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: trustCenterControlStd.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) } func TestGetAllTrustCenters(t *testing.T) { - // Clean up any existing trust centers - cleanupTrustCenterData(t) - // Create test trust centers with different users - // Each organization can only have one trust center - trustCenter1 := (&TrustCenterBuilder{ - client: suite.client, - }).MustNew(testUser1.UserCtx, t) - - trustCenter2 := (&TrustCenterBuilder{ - client: suite.client, - }).MustNew(testUser2.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) testCases := []struct { name string @@ -384,26 +377,26 @@ func TestGetAllTrustCenters(t *testing.T) { { name: "happy path - regular user sees only their trust centers", client: suite.client.api, - ctx: testUser1.UserCtx, - expectedResults: 1, // Should see only trust centers owned by testUser1 + ctx: tcOrg.owner.UserCtx, + expectedResults: 1, }, { name: "happy path - admin user sees all trust centers", client: suite.client.api, - ctx: adminUser.UserCtx, - expectedResults: 1, // Should see all owned by testUser + ctx: tcOrg.admin.UserCtx, + expectedResults: 1, }, { name: "happy path - view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, - expectedResults: 1, // Should see only trust centers from their organization + ctx: tcOrg.member.UserCtx, + expectedResults: 1, }, { name: "happy path - different user sees only their trust centers", client: suite.client.api, - ctx: testUser2.UserCtx, - expectedResults: 1, // Should see only trust centers owned by testUser2 + ctx: tcOrg2.owner.UserCtx, + expectedResults: 1, }, } @@ -438,28 +431,33 @@ func TestGetAllTrustCenters(t *testing.T) { // Verify that users only see trust centers from their organization switch tc.ctx { - case testUser1.UserCtx, viewOnlyUser.UserCtx: + case tcOrg.owner.UserCtx, tcOrg.admin.UserCtx, tcOrg.member.UserCtx, tcOrg.superAdmin.UserCtx: for _, edge := range resp.TrustCenters.Edges { - assert.Check(t, is.Equal(testUser1.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(tcOrg.organizationID, *edge.Node.OwnerID)) } - case testUser2.UserCtx: + case tcOrg2.owner.UserCtx: for _, edge := range resp.TrustCenters.Edges { - assert.Check(t, is.Equal(testUser2.OrganizationID, *edge.Node.OwnerID)) + assert.Check(t, is.Equal(tcOrg2.organizationID, *edge.Node.OwnerID)) } } }) } // Clean up created trust centers - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationUpdateTrustCenter(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain(), withAllUserTypes()) + trustCenter := tcOrg.trustCenter - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + if trustCenter.CustomDomainID == nil { + failNow(t, "expected trust center custom domain but no ID was returned") + + } + customDomainTrustCenter, err := suite.client.api.GetCustomDomainByID(tcOrg.owner.UserCtx, *trustCenter.CustomDomainID) + requireNoError(t, err) testCases := []struct { name string @@ -476,19 +474,19 @@ func TestMutationUpdateTrustCenter(t *testing.T) { Tags: []string{"updated", "test"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, update custom domain", trustCenterID: trustCenter.ID, request: testclient.UpdateTrustCenterInput{ - CustomDomainID: &customDomain.ID, + CustomDomainID: &customDomainTrustCenter.CustomDomain.ID, AddPost: &testclient.CreateNoteInput{ Text: "Adding a post about obtaining our SOC 2 compliance attestation.", }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, update settings", @@ -504,7 +502,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { }, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, append tags", @@ -513,7 +511,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { AppendTags: []string{"appended", "tag"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, using admin user", @@ -522,7 +520,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { Tags: []string{"admin", "update"}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using personal access token", @@ -530,7 +528,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { request: testclient.UpdateTrustCenterInput{ Tags: []string{"pat", "update"}, }, - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { @@ -540,7 +538,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { Tags: []string{"unauthorized"}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -550,7 +548,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { Tags: []string{"unauthorized"}, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -560,7 +558,7 @@ func TestMutationUpdateTrustCenter(t *testing.T) { Tags: []string{"test"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -615,21 +613,16 @@ func TestMutationUpdateTrustCenter(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationDeleteTrustCenter(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + tcOrg2 := createFreshOrgWithTrustCenter(t) - // Create new test users - testUser := suite.userBuilder(context.Background(), t) - testUserOther := suite.userBuilder(testUser.UserCtx, t) - - // create objects to be deleted - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserOther.UserCtx, t) + trustCenter1 := tcOrg.trustCenter + trustCenter2 := tcOrg2.trustCenter testCases := []struct { name string @@ -642,20 +635,20 @@ func TestMutationDeleteTrustCenter(t *testing.T) { name: "happy path, delete trust center", idToDelete: trustCenter1.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized, different org user", idToDelete: trustCenter2.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "trust center not found", idToDelete: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -674,50 +667,53 @@ func TestMutationDeleteTrustCenter(t *testing.T) { assert.Check(t, is.Equal(tc.idToDelete, resp.DeleteTrustCenter.DeletedID)) }) } + + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { + t.Parallel() // create new test users - testUser := suite.userBuilder(context.Background(), t) - testUserOther := suite.userBuilder(context.Background(), t) + tcOrg := createFreshOrgWithTrustCenter(t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + + trustCenter := tcOrg.trustCenter - // Create a trust center for testing - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) // create trust center entities for the trust center createLogoUpload := logoFileFunc(t) logoFile := createLogoUpload() expectUpload(t, suite.client.mockProvider, []graphql.Upload{*logoFile}) - entity1, err := suite.client.api.CreateTrustCenterEntity(testUser.UserCtx, testclient.CreateTrustCenterEntityInput{ + _, err := suite.client.api.CreateTrustCenterEntity(tcOrg.owner.UserCtx, testclient.CreateTrustCenterEntityInput{ Name: "test entity 1", TrustCenterID: &trustCenter.ID, URL: lo.ToPtr(gofakeit.URL()), }, logoFile, nil) assert.NilError(t, err) - _, err = suite.client.api.UpdateTrustCenter(testUser.UserCtx, trustCenter.ID, testclient.UpdateTrustCenterInput{ + _, err = suite.client.api.UpdateTrustCenter(tcOrg.owner.UserCtx, trustCenter.ID, testclient.UpdateTrustCenterInput{ AddPost: &testclient.CreateNoteInput{ Text: "this is an update", }, }) assert.NilError(t, err) - var postID string // create trust center compliance - std := (&StandardBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - tcc, err := suite.client.api.CreateTrustCenterCompliance(testUser.UserCtx, testclient.CreateTrustCenterComplianceInput{ + std := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + _, err = suite.client.api.CreateTrustCenterCompliance(tcOrg.owner.UserCtx, testclient.CreateTrustCenterComplianceInput{ StandardID: std.ID, }) assert.NilError(t, err) // create subprocessor - sbpr := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + sbpr := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) sbprKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) - tcs, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + }).MustNew(tcOrg.owner.UserCtx, t) + _, err = suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: sbpr.ID, TrustCenterSubprocessorKindName: &sbprKind.Name, Countries: []string{"United States"}, @@ -728,14 +724,14 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // create trust center doc createFileUpload := uploadFileFunc(t, pdfFilePath) fileUpload := createFileUpload() expectUpload(t, suite.client.mockProvider, []graphql.Upload{*fileUpload}) - doc, err := suite.client.api.CreateTrustCenterDoc(testUser.UserCtx, testclient.CreateTrustCenterDocInput{ + doc, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, testclient.CreateTrustCenterDocInput{ Title: "Test Doc", TrustCenterDocKindName: &docKind.Name, Visibility: &enums.TrustCenterDocumentVisibilityPubliclyVisible, @@ -745,11 +741,10 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { assert.Check(t, doc.CreateTrustCenterDoc.TrustCenterDoc.OriginalFile != nil) assert.Check(t, doc.CreateTrustCenterDoc.TrustCenterDoc.OriginalFileID != nil) assert.Check(t, doc.CreateTrustCenterDoc.TrustCenterDoc.Title == "Test Doc") - docID := doc.CreateTrustCenterDoc.TrustCenterDoc.ID // create trust center FAQ - faqNote := (&NoteBuilder{client: suite.client, TrustCenterID: trustCenter.ID}).MustNew(testUser.UserCtx, t) - faqResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + faqNote := (&NoteBuilder{client: suite.client, TrustCenterID: trustCenter.ID}).MustNew(tcOrg.owner.UserCtx, t) + _, err = suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: faqNote.ID, TrustCenterID: &trustCenter.ID, ReferenceLink: lo.ToPtr("https://example.com/faq"), @@ -758,7 +753,7 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { assert.NilError(t, err) // Create another trust center that the anonymous user should NOT have access to - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserOther.UserCtx, t) + trustCenter2 := tcOrg2.trustCenter testCases := []struct { name string @@ -774,7 +769,7 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { name: "list query - anonymous user can query their trust center, only one returned", queryID: trustCenter.ID, trustCenterID: trustCenter.ID, - organizationID: testUser.OrganizationID, + organizationID: tcOrg.organizationID, client: suite.client.api, shouldSucceed: true, isList: true, @@ -783,7 +778,7 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { name: "anonymous user cannot query different trust center by id", queryID: trustCenter2.ID, trustCenterID: trustCenter.ID, // Anonymous user has access to trustCenter, not trustCenter2 - organizationID: testUser.OrganizationID, + organizationID: tcOrg.organizationID, client: suite.client.api, expectedErr: notFoundErrorMsg, shouldSucceed: false, @@ -792,7 +787,7 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { name: "anonymous user cannot query non-existent trust center by id", queryID: "non-existent-id", trustCenterID: trustCenter.ID, - organizationID: testUser.OrganizationID, + organizationID: tcOrg.organizationID, client: suite.client.api, expectedErr: notFoundErrorMsg, shouldSucceed: false, @@ -839,7 +834,6 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { // // Verify that children are accessible assert.Assert(t, trustCenter.Posts.Edges != nil) assert.Assert(t, is.Len(trustCenter.Posts.Edges, 2)) - postID = trustCenter.Posts.Edges[0].Node.ID assert.Assert(t, trustCenter.TrustCenterCompliances.Edges != nil) assert.Assert(t, is.Len(trustCenter.TrustCenterCompliances.Edges, 1)) @@ -873,40 +867,40 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { } // create a trust center control and verify frontend query still works with controls present - dbCtx := setContext(testUser.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) tcControl, err := suite.client.db.Control.Create(). SetRefCode("OTS-TC-" + ulids.New().String()). SetTitle("Trust Center Control"). SetSource(enums.ControlSourceUserDefined). SetIsTrustCenterControl(true). - SetOwnerID(testUser.OrganizationID). + SetOwnerID(tcOrg.organizationID). Save(dbCtx) assert.NilError(t, err) - _, err = suite.client.api.UpdateControl(testUser.UserCtx, tcControl.ID, testclient.UpdateControlInput{ + _, err = suite.client.api.UpdateControl(tcOrg.owner.UserCtx, tcControl.ID, testclient.UpdateControlInput{ TrustCenterVisibility: &enums.TrustCenterControlVisibilityPubliclyVisible, }) assert.NilError(t, err) // create another trust center control for another trust center to ensure only controls for the queried trust center are returned in the frontend query - dbCtx2 := setContext(testUser2.UserCtx, suite.client.db) + dbCtx2 := setContext(tcOrg2.owner.UserCtx, suite.client.db) tcControlForAnotherOrg, err := suite.client.db.Control.Create(). SetRefCode("OTS-TC-" + ulids.New().String()). SetTitle("Trust Center Control"). SetSource(enums.ControlSourceUserDefined). SetIsTrustCenterControl(true). - SetOwnerID(testUser2.OrganizationID). + SetOwnerID(tcOrg2.organizationID). Save(dbCtx2) assert.NilError(t, err) - _, err = suite.client.api.UpdateControl(testUser2.UserCtx, tcControlForAnotherOrg.ID, testclient.UpdateControlInput{ + _, err = suite.client.api.UpdateControl(tcOrg2.owner.UserCtx, tcControlForAnotherOrg.ID, testclient.UpdateControlInput{ TrustCenterVisibility: &enums.TrustCenterControlVisibilityPubliclyVisible, }) assert.NilError(t, err) t.Run("anonymous user frontend query returns all child objects with controls present", func(t *testing.T) { - anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID) + anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID) resp, err := suite.client.api.GetTrustCenterFrontendQuery(anonCtx) assert.NilError(t, err) @@ -930,7 +924,7 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { }) t.Run("anonymous user can query publicly visible trust center controls", func(t *testing.T) { - anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID) + anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID) resp, err := suite.client.api.GetAllControls(anonCtx) assert.NilError(t, err) @@ -940,34 +934,18 @@ func TestQueryTrustCenterAsAnonymousUser(t *testing.T) { assert.Check(t, resp.Controls.Edges[0].Node.RefCode != "") }) - // Cleanup Trust Center Children - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: tcControl.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.ControlDeleteOne]{client: suite.client.db.Control, ID: tcControlForAnotherOrg.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterEntityDeleteOne]{client: suite.client.db.TrustCenterEntity, ID: entity1.CreateTrustCenterEntity.TrustCenterEntity.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: faqResp.CreateTrustCenterFaq.TrustCenterFaq.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.NoteDeleteOne]{client: suite.client.db.Note, ID: postID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: tcc.CreateTrustCenterCompliance.TrustCenterCompliance.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcs.CreateTrustCenterSubprocessor.TrustCenterSubprocessor.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: docID}).MustDelete(testUser.UserCtx, t) - - // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserOther.UserCtx, t) - - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: std.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: sbpr.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestQueryTrustCentersAsAnonymousUser(t *testing.T) { + t.Parallel() // create new test users - testUser := suite.userBuilder(context.Background(), t) - testUserOther := suite.userBuilder(context.Background(), t) + tcOrg := createFreshOrgWithTrustCenter(t) + tcOrg2 := createFreshOrgWithTrustCenter(t) - // Create a trust center for testing - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - // Create another trust center that the anonymous user should NOT have access to - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserOther.UserCtx, t) + trustCenter := tcOrg.trustCenter + trustCenter2 := tcOrg2.trustCenter testCases := []struct { name string @@ -979,14 +957,14 @@ func TestQueryTrustCentersAsAnonymousUser(t *testing.T) { { name: "anonymous user can only see their trust center in list query", trustCenterID: trustCenter.ID, - organizationID: testUser.OrganizationID, + organizationID: tcOrg.organizationID, client: suite.client.api, expectedCount: 1, // Should only see the one trust center they have access to }, { name: "anonymous user with different trust center sees only their trust center", trustCenterID: trustCenter2.ID, - organizationID: testUserOther.OrganizationID, + organizationID: tcOrg2.organizationID, client: suite.client.api, expectedCount: 1, // Should only see the one trust center they have access to }, @@ -1013,14 +991,16 @@ func TestQueryTrustCentersAsAnonymousUser(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserOther.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationUpdateTrustCenterSetting(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) + + trustCenter := tcOrg.trustCenter testCases := []struct { name string @@ -1038,7 +1018,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { logoPath: logoFilePath, updateInput: testclient.UpdateTrustCenterSettingInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update logo with other fields", @@ -1049,7 +1029,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { PrimaryColor: lo.ToPtr("#FF5733"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { @@ -1059,7 +1039,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { invalidFile: true, updateInput: testclient.UpdateTrustCenterSettingInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, expectedErr: "unsupported mime type uploaded: text/plain", }, { @@ -1067,7 +1047,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { settingID: trustCenter.Edges.Setting.ID, updateInput: testclient.UpdateTrustCenterSettingInput{}, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -1075,15 +1055,15 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { settingID: trustCenter.Edges.Setting.ID, updateInput: testclient.UpdateTrustCenterSettingInput{}, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg2.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "trust center setting not found", settingID: "non-existent-setting-id", updateInput: testclient.UpdateTrustCenterSettingInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { @@ -1096,7 +1076,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { PrimaryColor: lo.ToPtr("#00FF00"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update theme mode to EASY", @@ -1105,7 +1085,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { ThemeMode: lo.ToPtr(enums.TrustCenterThemeModeEasy), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update theme mode to ADVANCED", @@ -1114,7 +1094,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { ThemeMode: lo.ToPtr(enums.TrustCenterThemeModeAdvanced), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update font", @@ -1123,7 +1103,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { Font: lo.ToPtr("Arial, sans-serif"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update foreground color", @@ -1132,7 +1112,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { ForegroundColor: lo.ToPtr("#333333"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path - update background color", @@ -1141,7 +1121,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { BackgroundColor: lo.ToPtr("#FFFFFF"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path - update accent color", @@ -1150,7 +1130,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { AccentColor: lo.ToPtr("#007BFF"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update all theme fields together", @@ -1164,7 +1144,7 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { AccentColor: lo.ToPtr("#28A745"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, } @@ -1230,15 +1210,14 @@ func TestMutationUpdateTrustCenterSetting(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } // TestTrustCenterCreateHookWithCustomDomain tests that CreatePirschDomain job is called when custom_domain_id is set during creation func TestTrustCenterCreateHookWithCustomDomain(t *testing.T) { - cleanupTrustCenterData(t) + users := suite.seedFreshOrgUsers(t) - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(users.owner.UserCtx, t) testCases := []struct { name string @@ -1254,14 +1233,14 @@ func TestTrustCenterCreateHookWithCustomDomain(t *testing.T) { CustomDomainID: &customDomain.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: users.owner.UserCtx, expectCreatePirschJob: true, }, { name: "create trust center without custom domain - should NOT trigger CreatePirschDomain job", request: testclient.CreateTrustCenterInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: users.owner.UserCtx, expectCreatePirschJob: false, }, } @@ -1303,16 +1282,15 @@ func TestTrustCenterCreateHookWithCustomDomain(t *testing.T) { } // Clean up custom domain - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(users.owner.UserCtx, t) } // TestTrustCenterUpdateHookWithCustomDomain tests that CreatePirschDomain job is called when custom_domain_id changes from empty to non-empty func TestTrustCenterUpdateHookWithCustomDomain(t *testing.T) { - cleanupTrustCenterData(t) + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -1330,7 +1308,7 @@ func TestTrustCenterUpdateHookWithCustomDomain(t *testing.T) { CustomDomainID: &customDomain.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectCreatePirschJob: true, }, { @@ -1340,7 +1318,7 @@ func TestTrustCenterUpdateHookWithCustomDomain(t *testing.T) { Tags: []string{"test", "tag"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, expectCreatePirschJob: false, }, } @@ -1379,24 +1357,19 @@ func TestTrustCenterUpdateHookWithCustomDomain(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } // TestTrustCenterUpdateHookWithPirschDomainUpdate tests that UpdatePirschDomain job is called when custom_domain_id changes from one domain to another func TestTrustCenterUpdateHookWithPirschDomainUpdate(t *testing.T) { - cleanupTrustCenterData(t) + tcOrgWithDomain := createFreshOrgWithTrustCenter(t, withCustomDomain()) + trustCenterWithDomain := tcOrgWithDomain.trustCenter // Create two custom domains - customDomain1 := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - customDomain2 := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - // Create trust center with first custom domain - trustCenterWithDomain := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomain1.ID}).MustNew(testUser1.UserCtx, t) + customDomain2 := (&CustomDomainBuilder{client: suite.client}).MustNew(tcOrgWithDomain.owner.UserCtx, t) // Manually set pirsch_domain_id to simulate what would happen after the CreatePirschDomain job completes - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(tcOrgWithDomain.owner.UserCtx, suite.client.db) fakePirschDomainID := "fake-pirsch-domain-id-for-update-test" _, err := suite.client.db.TrustCenter.UpdateOneID(trustCenterWithDomain.ID).SetPirschDomainID(fakePirschDomainID).Save(ctx) assert.NilError(t, err) @@ -1417,7 +1390,7 @@ func TestTrustCenterUpdateHookWithPirschDomainUpdate(t *testing.T) { CustomDomainID: &customDomain2.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrgWithDomain.owner.UserCtx, expectUpdatePirschJob: true, }, { @@ -1427,7 +1400,7 @@ func TestTrustCenterUpdateHookWithPirschDomainUpdate(t *testing.T) { Tags: []string{"test", "tag"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrgWithDomain.owner.UserCtx, expectUpdatePirschJob: false, }, } @@ -1466,37 +1439,31 @@ func TestTrustCenterUpdateHookWithPirschDomainUpdate(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterWithDomain.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain1.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain1.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain2.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain2.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrgWithDomain.owner.UserCtx, t) } // TestTrustCenterUpdateHookWithCustomDomainRemoval tests that DeletePirschDomain job is called when custom_domain_id is cleared func TestTrustCenterUpdateHookWithCustomDomainRemoval(t *testing.T) { - cleanupTrustCenterData(t) - - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterWithDomain := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomain.ID}).MustNew(testUser1.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain()) + trustCenter := tcOrg.trustCenter - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(tcOrg.owner.UserCtx, suite.client.db) fakePirschDomainID := "fake-pirsch-domain-id-clear-test" - _, err := suite.client.db.TrustCenter.UpdateOneID(trustCenterWithDomain.ID). + _, err := suite.client.db.TrustCenter.UpdateOneID(trustCenter.ID). SetPirschDomainID(fakePirschDomainID). Save(ctx) assert.NilError(t, err) - err = suite.client.db.Job.TruncateRiverTables(testUser1.UserCtx) + err = suite.client.db.Job.TruncateRiverTables(tcOrg.owner.UserCtx) assert.NilError(t, err) - resp, err := suite.client.api.UpdateTrustCenter(testUser1.UserCtx, trustCenterWithDomain.ID, testclient.UpdateTrustCenterInput{ + resp, err := suite.client.api.UpdateTrustCenter(tcOrg.owner.UserCtx, trustCenter.ID, testclient.UpdateTrustCenterInput{ ClearCustomDomain: lo.ToPtr(true), }) assert.NilError(t, err) assert.Assert(t, resp != nil) - jobs := rivertest.RequireManyInserted(testUser1.UserCtx, t, riverpgxv5.New(suite.client.db.Job.GetPool()), + jobs := rivertest.RequireManyInserted(tcOrg.owner.UserCtx, t, riverpgxv5.New(suite.client.db.Job.GetPool()), []rivertest.ExpectedJob{ { Args: jobspec.DeletePirschDomainArgs{ @@ -1507,29 +1474,23 @@ func TestTrustCenterUpdateHookWithCustomDomainRemoval(t *testing.T) { assert.Assert(t, jobs != nil) assert.Assert(t, is.Len(jobs, 1)) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterWithDomain.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } // TestTrustCenterDeleteHookWithPirschDomain tests that DeletePirschDomain job is called when pirsch_domain_id exists during deletion func TestTrustCenterDeleteHookWithPirschDomain(t *testing.T) { - cleanupTrustCenterData(t) - - // Create trust center with custom domain for testUser1 - customDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterWithDomain := (&TrustCenterBuilder{client: suite.client, CustomDomainID: customDomain.ID}).MustNew(testUser1.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withCustomDomain()) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenterWithDomain := tcOrg.trustCenter + trustCenterWithoutDomain := tcOrg2.trustCenter // Manually set pirsch_domain_id to simulate what would happen after the CreatePirschDomain job completes // This is necessary because the job runs asynchronously and we need the field set for the delete hook to trigger - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(tcOrg.owner.UserCtx, suite.client.db) fakePirschDomainID := "fake-pirsch-domain-id-123" _, err := suite.client.db.TrustCenter.UpdateOneID(trustCenterWithDomain.ID).SetPirschDomainID(fakePirschDomainID).Save(ctx) assert.NilError(t, err) - // Create trust center without custom domain for testUser2 (different organization) - trustCenterWithoutDomain := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - testCases := []struct { name string trustCenterID string @@ -1542,14 +1503,14 @@ func TestTrustCenterDeleteHookWithPirschDomain(t *testing.T) { name: "delete trust center with pirsch domain - should trigger DeletePirschDomain job", trustCenterID: trustCenterWithDomain.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectDeletePirschJob: true, }, { name: "delete trust center without pirsch domain - should NOT trigger DeletePirschDomain job", trustCenterID: trustCenterWithoutDomain.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectDeletePirschJob: false, }, } @@ -1587,22 +1548,23 @@ func TestTrustCenterDeleteHookWithPirschDomain(t *testing.T) { }) } - // Clean up custom domain - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: customDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: customDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestTrustCenterDocStandards(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard1 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter + + standard1 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) (&CustomTypeEnumBuilder{ client: suite.client, Name: "Policy", ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) createPDFUpload := uploadFileFunc(t, pdfFilePath) @@ -1618,7 +1580,7 @@ func TestTrustCenterDocStandards(t *testing.T) { Tags: []string{"test", "standard"}, } - createResp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *fileUpload) + createResp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *fileUpload) assert.NilError(t, err) assert.Assert(t, createResp != nil) @@ -1630,7 +1592,7 @@ func TestTrustCenterDocStandards(t *testing.T) { assert.Check(t, is.Equal(standard1.ID, doc.Standard.ID)) assert.Check(t, is.Equal(standard1.Name, doc.Standard.Name)) - getResp, err := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, doc.ID) + getResp, err := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, doc.ID) assert.NilError(t, err) assert.Assert(t, getResp != nil) assert.Check(t, getResp.TrustCenterDoc.StandardID != nil) @@ -1638,8 +1600,6 @@ func TestTrustCenterDocStandards(t *testing.T) { assert.Check(t, getResp.TrustCenterDoc.Standard != nil) assert.Check(t, is.Equal(standard1.ID, getResp.TrustCenterDoc.Standard.ID)) assert.Check(t, is.Equal(standard1.Name, getResp.TrustCenterDoc.Standard.Name)) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: doc.ID}).MustDelete(testUser1.UserCtx, t) }) t.Run("update trust center doc to set standard and retrieve it", func(t *testing.T) { @@ -1653,13 +1613,13 @@ func TestTrustCenterDocStandards(t *testing.T) { Tags: []string{"test"}, } - createResp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, createInput, *fileUpload) + createResp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, createInput, *fileUpload) assert.NilError(t, err) assert.Assert(t, createResp != nil) docID := createResp.CreateTrustCenterDoc.TrustCenterDoc.ID - getResp, err := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, docID) + getResp, err := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, docID) assert.NilError(t, err) assert.Assert(t, getResp != nil) assert.Check(t, getResp.TrustCenterDoc.StandardID == nil || *getResp.TrustCenterDoc.StandardID == "") @@ -1668,7 +1628,7 @@ func TestTrustCenterDocStandards(t *testing.T) { StandardID: &standard1.ID, } - updateResp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, docID, updateInput, nil, nil) + updateResp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, docID, updateInput, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp != nil) @@ -1679,7 +1639,7 @@ func TestTrustCenterDocStandards(t *testing.T) { assert.Check(t, is.Equal(standard1.ID, updatedDoc.Standard.ID)) assert.Check(t, is.Equal(standard1.Name, updatedDoc.Standard.Name)) - getResp2, err := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, docID) + getResp2, err := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, docID) assert.NilError(t, err) assert.Assert(t, getResp2 != nil) assert.Check(t, getResp2.TrustCenterDoc.StandardID != nil) @@ -1691,7 +1651,7 @@ func TestTrustCenterDocStandards(t *testing.T) { StandardID: &standard2.ID, } - updateResp2, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, docID, updateInput2, nil, nil) + updateResp2, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, docID, updateInput2, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp2 != nil) @@ -1702,39 +1662,34 @@ func TestTrustCenterDocStandards(t *testing.T) { assert.Check(t, is.Equal(standard2.ID, updatedDoc2.Standard.ID)) assert.Check(t, is.Equal(standard2.Name, updatedDoc2.Standard.Name)) - getResp3, err := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, docID) + getResp3, err := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, docID) assert.NilError(t, err) assert.Assert(t, getResp3 != nil) assert.Check(t, getResp3.TrustCenterDoc.StandardID != nil) assert.Check(t, is.Equal(standard2.ID, *getResp3.TrustCenterDoc.StandardID)) assert.Check(t, getResp3.TrustCenterDoc.Standard != nil) assert.Check(t, is.Equal(standard2.ID, getResp3.TrustCenterDoc.Standard.ID)) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: docID}).MustDelete(testUser1.UserCtx, t) }) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationDeleteTrustCenterWithPreviewDomain(t *testing.T) { - // Create a new test user - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter // Create a preview domain (custom domain) - previewDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - // Create a trust center and manually set the preview domain ID - // We need to use the database directly to set the preview domain - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + previewDomain := (&CustomDomainBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) - dbCtx := setContext(testUser.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) trustCenter, err := suite.client.db.TrustCenter.UpdateOneID(trustCenter.ID). SetPreviewDomainID(previewDomain.ID). Save(dbCtx) assert.NilError(t, err) // Delete the trust center - resp, err := suite.client.api.DeleteTrustCenter(testUser.UserCtx, trustCenter.ID) + resp, err := suite.client.api.DeleteTrustCenter(tcOrg.owner.UserCtx, trustCenter.ID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(trustCenter.ID, resp.DeleteTrustCenter.DeletedID)) @@ -1746,7 +1701,5 @@ func TestMutationDeleteTrustCenterWithPreviewDomain(t *testing.T) { assert.NilError(t, err) assert.Check(t, exists, "preview domain should still exist (will be deleted by job)") - // Clean up the preview domain and mappable domain - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: previewDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: previewDomain.MappableDomainID}).MustDelete(systemAdminUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcentercompliance_test.go b/internal/graphapi/trustcentercompliance_test.go index 7fe1793c1e..f09469b8a3 100644 --- a/internal/graphapi/trustcentercompliance_test.go +++ b/internal/graphapi/trustcentercompliance_test.go @@ -10,21 +10,22 @@ import ( "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" - "github.com/theopenlane/iam/auth" "github.com/theopenlane/iam/fgax" "github.com/theopenlane/utils/ulids" ) func TestMutationCreateTrustCenterCompliance(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) // Create test data - standards and trust centers - standard1 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client}).MustNew(systemAdminUser.UserCtx, t) - publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(systemAdminUser.UserCtx, t) + standard1 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) + publicStandard := (&StandardBuilder{client: suite.client, IsPublic: true}).MustNew(sharedSystemAdminUser.UserCtx, t) - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + trustCenter1 := tcOrg.trustCenter + trustCenter2 := tcOrg2.trustCenter testCases := []struct { name string @@ -39,7 +40,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { StandardID: standard1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, with trust center and tags", @@ -49,7 +50,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { Tags: []string{"compliance", "test"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using public standard", @@ -59,7 +60,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { Tags: []string{"public", "compliance"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, using personal access token", @@ -68,7 +69,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, Tags: []string{"pat", "test"}, }, - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { @@ -78,7 +79,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, Tags: []string{"api", "token"}, }, - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { @@ -88,8 +89,8 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "user not authorized, different org trust center", @@ -98,7 +99,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter2.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -108,7 +109,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -118,7 +119,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "value is less than the required length", }, { @@ -128,8 +129,8 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: &trustCenter1.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: "invalid input", }, { name: "invalid trust center id", @@ -138,7 +139,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { TrustCenterID: lo.ToPtr("invalid-id"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -170,7 +171,7 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { // cleanup the created trust center compliance ctx := tc.ctx if tc.client != suite.client.api { - ctx = testUser1.UserCtx + ctx = tcOrg.owner.UserCtx } (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: resp.CreateTrustCenterCompliance.TrustCenterCompliance.ID}).MustDelete(ctx, t) @@ -178,39 +179,32 @@ func TestMutationCreateTrustCenterCompliance(t *testing.T) { } // Cleanup test data - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{publicStandard.ID, standard2.ID}}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterCompliance(t *testing.T) { - newUser := suite.userBuilder(context.Background(), t) - apiClient := suite.setupAPITokenClient(newUser.UserCtx, t) - patClient := suite.setupPatClient(newUser, t) - - orgMember := (&OrgMemberBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - orgMemberCtx := auth.NewTestContextWithOrgID(orgMember.UserID, newUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) // Create test data - standard := (&StandardBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) + standard := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + trustCenter := tcOrg.trustCenter compliance := (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standard.ID, TrustCenterID: trustCenter.ID, Tags: []string{"test", "query"}, - }).MustNew(newUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - newUser2 := suite.userBuilder(context.Background(), t) + users2 := suite.seedFreshOrgUsers(t) // Create compliance for different org - standardOther := (&StandardBuilder{client: suite.client}).MustNew(newUser2.UserCtx, t) + standardOther := (&StandardBuilder{client: suite.client}).MustNew(users2.owner.UserCtx, t) complianceOther := (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standardOther.ID, - }).MustNew(newUser2.UserCtx, t) + }).MustNew(users2.owner.UserCtx, t) testCases := []struct { name string @@ -223,51 +217,51 @@ func TestQueryTrustCenterCompliance(t *testing.T) { name: "happy path", queryID: compliance.ID, client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, view only user", queryID: compliance.ID, client: suite.client.api, - ctx: orgMemberCtx, + ctx: tcOrg.member.UserCtx, }, { name: "happy path, anonymous user", queryID: compliance.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, newUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID), }, { name: "happy path using personal access token", queryID: compliance.ID, - client: patClient, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { name: "happy path using api token", queryID: compliance.ID, - client: apiClient, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { name: "trust center compliance not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "trust center compliance not found, using not authorized user", queryID: compliance.ID, client: suite.client.api, - ctx: newUser2.UserCtx, + ctx: users2.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "trust center compliance not found, different org", queryID: complianceOther.ID, client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -292,21 +286,18 @@ func TestQueryTrustCenterCompliance(t *testing.T) { } // Cleanup - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: compliance.ID}).MustDelete(newUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: complianceOther.ID}).MustDelete(newUser2.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standard.ID}).MustDelete(newUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardOther.ID}).MustDelete(newUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(newUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestUpdateTrustCenterComplianceUpdatesFgaTuples(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard1 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + standard1 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) - resp, err := suite.client.api.CreateTrustCenterCompliance(testUser1.UserCtx, testclient.CreateTrustCenterComplianceInput{ + resp, err := suite.client.api.CreateTrustCenterCompliance(tcOrg.owner.UserCtx, testclient.CreateTrustCenterComplianceInput{ TrustCenterID: &trustCenter.ID, StandardID: standard1.ID, }) @@ -321,7 +312,7 @@ func TestUpdateTrustCenterComplianceUpdatesFgaTuples(t *testing.T) { ObjectType: "standard", Relation: "associated_with", } - exists, err := suite.client.db.Authz.CheckAccess(testUser1.UserCtx, ac) + exists, err := suite.client.db.Authz.CheckAccess(tcOrg.owner.UserCtx, ac) assert.NilError(t, err) if shouldExist { assert.Assert(t, exists) @@ -332,7 +323,7 @@ func TestUpdateTrustCenterComplianceUpdatesFgaTuples(t *testing.T) { checkTuple(standard1.ID, true) - _, err = suite.client.api.UpdateTrustCenterCompliance(testUser1.UserCtx, complianceID, testclient.UpdateTrustCenterComplianceInput{ + _, err = suite.client.api.UpdateTrustCenterCompliance(tcOrg.owner.UserCtx, complianceID, testclient.UpdateTrustCenterComplianceInput{ StandardID: &standard2.ID, }) assert.NilError(t, err) @@ -340,20 +331,20 @@ func TestUpdateTrustCenterComplianceUpdatesFgaTuples(t *testing.T) { checkTuple(standard1.ID, false) checkTuple(standard2.ID, true) - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: complianceID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID, standard2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterCompliances(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) + tcOrg2 := createFreshOrgWithTrustCenter(t) // Create test data - standard1 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + standard1 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + trustCenter := tcOrg.trustCenter - // Create multiple compliances for testUser1 + // Create multiple compliances for tcOrg.owner countOrgOwned := 2 orgOwnedComplianceIDs := []string{} for i := range countOrgOwned { @@ -366,19 +357,19 @@ func TestQueryTrustCenterCompliances(t *testing.T) { StandardID: standardID, TrustCenterID: trustCenter.ID, Tags: []string{"org", "test"}, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) orgOwnedComplianceIDs = append(orgOwnedComplianceIDs, compliance.ID) } // Create compliance for different org - standardOther := (&StandardBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - trustCenterOther := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - complianceOther := (&TrustCenterComplianceBuilder{ + standardOther := (&StandardBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) + trustCenterOther := tcOrg2.trustCenter + (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standardOther.ID, TrustCenterID: trustCenterOther.ID, Tags: []string{"other", "org"}, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) testCases := []struct { name string @@ -389,37 +380,37 @@ func TestQueryTrustCenterCompliances(t *testing.T) { { name: "happy path, org user should get all org owned compliances", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedResults: countOrgOwned, }, { name: "happy path, using read only user of the same org", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedResults: countOrgOwned, }, { name: "happy path, anonymous user", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID), expectedResults: countOrgOwned, }, { name: "happy path, using api token", - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), expectedResults: countOrgOwned, }, { name: "happy path, using pat", - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), expectedResults: countOrgOwned, }, { name: "another user, should see their own compliance", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedResults: 1, // only their own compliance }, } @@ -445,27 +436,19 @@ func TestQueryTrustCenterCompliances(t *testing.T) { } // Cleanup - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, IDs: orgOwnedComplianceIDs}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: complianceOther.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID, standard2.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardOther.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterOther.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationDeleteTrustCenterCompliance(t *testing.T) { - newUser := suite.userBuilder(context.Background(), t) - apiClient := suite.setupAPITokenClient(newUser.UserCtx, t) - patClient := suite.setupPatClient(newUser, t) - - orgMember := (&OrgMemberBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - orgMemberCtx := auth.NewTestContextWithOrgID(orgMember.UserID, newUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) // Create test data for deletion - standard1 := (&StandardBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - standard2 := (&StandardBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - standard3 := (&StandardBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(newUser.UserCtx, t) + standard1 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard2 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + standard3 := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + trustCenter1 := tcOrg.trustCenter // Create compliance objects to delete compliance1 := (&TrustCenterComplianceBuilder{ @@ -473,33 +456,33 @@ func TestMutationDeleteTrustCenterCompliance(t *testing.T) { StandardID: standard1.ID, TrustCenterID: trustCenter1.ID, Tags: []string{"delete", "test1"}, - }).MustNew(newUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) compliance2 := (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standard2.ID, TrustCenterID: trustCenter1.ID, Tags: []string{"delete", "test2"}, - }).MustNew(newUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) compliance3 := (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standard3.ID, TrustCenterID: trustCenter1.ID, Tags: []string{"delete", "test3"}, - }).MustNew(newUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - newUser2 := suite.userBuilder(context.Background(), t) + tcOrg2 := createFreshOrgWithTrustCenter(t, withAPIClients()) // Create compliance for different org - standardOther := (&StandardBuilder{client: suite.client}).MustNew(newUser2.UserCtx, t) - trustCenterOther := (&TrustCenterBuilder{client: suite.client}).MustNew(newUser2.UserCtx, t) + standardOther := (&StandardBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) + trustCenterOther := tcOrg2.trustCenter complianceOther := (&TrustCenterComplianceBuilder{ client: suite.client, StandardID: standardOther.ID, TrustCenterID: trustCenterOther.ID, Tags: []string{"other", "org"}, - }).MustNew(newUser2.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) testCases := []struct { name string @@ -512,46 +495,53 @@ func TestMutationDeleteTrustCenterCompliance(t *testing.T) { name: "happy path, delete trust center compliance", idToDelete: compliance1.ID, client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.owner.UserCtx, + }, + { + name: "not authorized, different org compliance api token", + idToDelete: compliance2.ID, + client: tcOrg2.adminApiClient, + ctx: context.Background(), + expectedErr: notFoundErrorMsg, }, { name: "happy path, delete using personal access token", idToDelete: compliance2.ID, - client: patClient, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { name: "happy path, delete using api token", idToDelete: compliance3.ID, - client: apiClient, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { - name: "not authorized, different org compliance", + name: "not authorized, different org compliance via jwt", idToDelete: complianceOther.ID, client: suite.client.api, - ctx: newUser.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "not authorized, view only user", idToDelete: complianceOther.ID, // use different org compliance to test permissions client: suite.client.api, - ctx: orgMemberCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.member.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "trust center compliance not found, invalid ID", idToDelete: "invalid-id", client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "trust center compliance not found, non-existent ID", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: newUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -575,10 +565,5 @@ func TestMutationDeleteTrustCenterCompliance(t *testing.T) { }) } - // Cleanup remaining test data - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: complianceOther.ID}).MustDelete(newUser2.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, IDs: []string{standard1.ID, standard2.ID, standard3.ID}}).MustDelete(newUser.UserCtx, t) - (&Cleanup[*generated.StandardDeleteOne]{client: suite.client.db.Standard, ID: standardOther.ID}).MustDelete(newUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(newUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterOther.ID}).MustDelete(newUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterdoc_test.go b/internal/graphapi/trustcenterdoc_test.go index a804768f81..5b92f910d8 100644 --- a/internal/graphapi/trustcenterdoc_test.go +++ b/internal/graphapi/trustcenterdoc_test.go @@ -20,24 +20,25 @@ import ( ) func TestQueryTrustCenterDocByID(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) - trustCenterDocPublic := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(testUser1.UserCtx, t) - trustCenterDocNotVisible := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityNotVisible}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) - signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) + trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: tcOrg.trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg.owner.UserCtx, t) + trustCenterDocPublic := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: tcOrg.trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(tcOrg.owner.UserCtx, t) + trustCenterDocNotVisible := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: tcOrg.trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityNotVisible}).MustNew(tcOrg.owner.UserCtx, t) + + signedNdaAnonCtx := createAnonymousTrustCenterContext(tcOrg.trustCenter.ID, tcOrg.owner.OrganizationID) signedNDACaller, _ := auth.CallerFromContext(signedNdaAnonCtx) req := fgax.TupleRequest{ SubjectID: signedNDACaller.SubjectID, SubjectType: "user", - ObjectID: trustCenter.ID, + ObjectID: tcOrg.trustCenter.ID, ObjectType: "trust_center", Relation: "nda_signed", } tuple := fgax.GetTupleKey(req) - if _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { + if _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg.owner.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { requireNoError(t, err) } testCases := []struct { @@ -52,35 +53,35 @@ func TestQueryTrustCenterDocByID(t *testing.T) { name: "happy path", queryID: trustCenterDocProtected.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, shouldShowFileDetails: true, }, { name: "happy path, view only user", queryID: trustCenterDocProtected.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, shouldShowFileDetails: true, }, { name: "trust center doc not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not authorized to query org", queryID: trustCenterDocProtected.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "anonymous user can query trust center doc, but can't see files", queryID: trustCenterDocProtected.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(tcOrg.trustCenter.ID, tcOrg.owner.OrganizationID), shouldShowFileDetails: false, }, { @@ -94,7 +95,7 @@ func TestQueryTrustCenterDocByID(t *testing.T) { name: "anonymous user can query trust center doc, can see public files", queryID: trustCenterDocPublic.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(tcOrg.trustCenter.ID, tcOrg.owner.OrganizationID), shouldShowFileDetails: true, }, { @@ -108,7 +109,7 @@ func TestQueryTrustCenterDocByID(t *testing.T) { name: "anonymous user can't see not visible docs", queryID: trustCenterDocNotVisible.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(tcOrg.trustCenter.ID, tcOrg.owner.OrganizationID), errorMsg: notFoundErrorMsg, }, { @@ -122,14 +123,14 @@ func TestQueryTrustCenterDocByID(t *testing.T) { name: "org user can see visible docs", queryID: trustCenterDocNotVisible.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, shouldShowFileDetails: true, }, { name: "org user can see not see other orgs files", queryID: trustCenterDocPublic.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -160,35 +161,33 @@ func TestQueryTrustCenterDocByID(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocProtected.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocPublic.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocNotVisible.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterDocByIDWithStandardForAnonymousUsers(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter + standard := (&StandardBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - standard := (&StandardBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - compliance := (&TrustCenterComplianceBuilder{ + (&TrustCenterComplianceBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, StandardID: standard.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) - trustCenterDocPublic := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(testUser1.UserCtx, t) + trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg.owner.UserCtx, t) + trustCenterDocPublic := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(tcOrg.owner.UserCtx, t) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) _, err := suite.client.db.TrustCenterDoc.UpdateOneID(trustCenterDocProtected.ID).SetStandardID(standard.ID).Save(dbCtx) assert.NilError(t, err) _, err = suite.client.db.TrustCenterDoc.UpdateOneID(trustCenterDocPublic.ID).SetStandardID(standard.ID).Save(dbCtx) assert.NilError(t, err) // anonymous contexts - anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) - signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) + anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID) + signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID) signedNDACaller, _ := auth.CallerFromContext(signedNdaAnonCtx) req := fgax.TupleRequest{ SubjectID: signedNDACaller.SubjectID, @@ -199,7 +198,7 @@ func TestQueryTrustCenterDocByIDWithStandardForAnonymousUsers(t *testing.T) { } tuple := fgax.GetTupleKey(req) - if _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { + if _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg.owner.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { requireNoError(t, err) } @@ -248,7 +247,7 @@ func TestQueryTrustCenterDocByIDWithStandardForAnonymousUsers(t *testing.T) { name: "regular user can query protected doc and get standard", queryID: trustCenterDocProtected.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, shouldShowFileDetails: true, shouldHaveStandard: true, }, @@ -289,19 +288,18 @@ func TestQueryTrustCenterDocByIDWithStandardForAnonymousUsers(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocProtected.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocPublic.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterComplianceDeleteOne]{client: suite.client.db.TrustCenterCompliance, ID: compliance.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationCreateTrustCenterDoc(t *testing.T) { - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Helper function to create fresh file uploads for each test case createPDFUpload := uploadFileFunc(t, pdfFilePath) @@ -316,17 +314,18 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { expectedErr string }{ { - name: "happy path, create trust center doc with PDF file", + name: "happy path, create trust center doc with PDF file, disable watermarking", input: testclient.CreateTrustCenterDocInput{ Title: "Test Document", TrustCenterDocKindName: &docKind.Name, TrustCenterID: &trustCenter.ID, Tags: []string{"test", "document"}, Visibility: &enums.TrustCenterDocumentVisibilityPubliclyVisible, + WatermarkingEnabled: lo.ToPtr(false), }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, create trust center doc with watermarking", @@ -340,7 +339,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, protected, create trust center doc with PDF file", @@ -353,7 +352,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, protected, create trust center doc with watermarking", @@ -367,7 +366,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, not visible, create trust center doc with PDF file", @@ -380,7 +379,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, not visible, create trust center doc with watermarking", @@ -393,7 +392,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, minimal required fields", @@ -404,7 +403,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using personal access token", @@ -414,7 +413,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { TrustCenterID: &trustCenter.ID, }, file: createPDFUpload(), - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { @@ -424,8 +423,8 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { TrustCenterDocKindName: &docKind.Name, }, file: createTXTUpload(), - client: suite.client.api, - ctx: testUser1.UserCtx, + client: tcOrg.adminApiClient, + ctx: context.Background(), expectedErr: "unsupported mime type", }, { @@ -436,7 +435,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "title", }, { @@ -447,7 +446,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized, view only user", @@ -458,7 +457,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -470,7 +469,7 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { }, file: createPDFUpload(), client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -530,7 +529,11 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { assert.Check(t, trustCenterDoc.CreatedAt != nil) assert.Check(t, trustCenterDoc.UpdatedAt != nil) assert.Check(t, trustCenterDoc.CreatedBy != nil) - if tc.input.WatermarkingEnabled != nil && *tc.input.WatermarkingEnabled { + + // if watermarking is enabled, the file id will not be set because its set + // by the jobs + // the default true so either nil, or explicitly true should be checked + if tc.input.WatermarkingEnabled == nil || *tc.input.WatermarkingEnabled { assert.Check(t, trustCenterDoc.File == nil) } else { assert.Assert(t, trustCenterDoc.File != nil) @@ -538,24 +541,24 @@ func TestMutationCreateTrustCenterDoc(t *testing.T) { assert.Check(t, trustCenterDoc.FileID != nil) assert.Check(t, is.Equal(*trustCenterDoc.FileID, trustCenterDoc.File.ID)) } - - // Clean up the created trust center doc - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } // Clean up the trust center - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterDocs(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter1 := tcOrg.trustCenter + trustCenter2 := tcOrg2.trustCenter - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + trustCenterDoc1 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg.owner.UserCtx, t) - trustCenterDoc1 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) - trustCenterDoc2 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter2.ID}).MustNew(testUser2.UserCtx, t) - signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter1.ID, testUser1.OrganizationID) + (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter2.ID}).MustNew(tcOrg2.owner.UserCtx, t) + signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter1.ID, tcOrg.owner.OrganizationID) signedNDACaller, _ := auth.CallerFromContext(signedNdaAnonCtx) req := fgax.TupleRequest{ SubjectID: signedNDACaller.SubjectID, @@ -566,7 +569,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { } tuple := fgax.GetTupleKey(req) - if _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { + if _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg.owner.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { requireNoError(t, err) } @@ -582,21 +585,21 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "return all for user1", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedResults: 1, shouldShowFileDetails: true, }, { name: "return all, ro user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedResults: 1, shouldShowFileDetails: true, }, { name: "query by trust center ID", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, where: &testclient.TrustCenterDocWhereInput{ TrustCenterID: &trustCenter1.ID, }, @@ -606,7 +609,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "query by title", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, where: &testclient.TrustCenterDocWhereInput{ Title: &trustCenterDoc1.Title, }, @@ -616,7 +619,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "query by category", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterDocWhereInput{ TrustCenterDocKindName: &trustCenterDoc1.TrustCenterDocKindName, }, @@ -626,7 +629,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "query by visibility", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterDocWhereInput{ Visibility: &trustCenterDoc1.Visibility, }, @@ -636,7 +639,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "query by non-existent title", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterDocWhereInput{ Title: lo.ToPtr("non-existent-title"), }, @@ -645,7 +648,7 @@ func TestQueryTrustCenterDocs(t *testing.T) { { name: "anonymous user can query trust center docs", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter1.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter1.ID, tcOrg.owner.OrganizationID), where: &testclient.TrustCenterDocWhereInput{ Title: &trustCenterDoc1.Title, }, @@ -693,28 +696,27 @@ func TestQueryTrustCenterDocs(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationUpdateTrustCenterDoc(t *testing.T) { - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterDoc := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter + trustCenterDoc := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID}).MustNew(tcOrg.owner.UserCtx, t) (&CustomTypeEnumBuilder{ client: suite.client, Name: "UpdatedCategory", ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) (&CustomTypeEnumBuilder{ client: suite.client, Name: "MultiCategory", ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -731,7 +733,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Title: lo.ToPtr("Updated Document Title"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, update category", @@ -740,7 +742,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { TrustCenterDocKindName: lo.ToPtr("UpdatedCategory"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, update visibility", @@ -749,7 +751,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Visibility: &enums.TrustCenterDocumentVisibilityProtected, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, update multiple fields", @@ -761,7 +763,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Tags: []string{"multi", "update"}, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, using personal access token", @@ -769,7 +771,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { request: testclient.UpdateTrustCenterDocInput{ Title: lo.ToPtr("PAT Updated Title"), }, - client: suite.client.apiWithPAT, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { @@ -779,7 +781,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Title: lo.ToPtr("Unauthorized Update"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -789,8 +791,8 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Title: lo.ToPtr("Unauthorized Update"), }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: sharedTestUser2.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "trust center doc not found", @@ -799,7 +801,7 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { Title: lo.ToPtr("Update Non-existent"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -835,18 +837,20 @@ func TestMutationUpdateTrustCenterDoc(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterDocUpdateSysAdmin(t *testing.T) { - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter + + trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg.owner.UserCtx, t) // Helper function to create fresh file uploads createPDFUpload := uploadFileFunc(t, pdfFilePath) - signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) + signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID) signedNDACaller, _ := auth.CallerFromContext(signedNdaAnonCtx) req := fgax.TupleRequest{ SubjectID: signedNDACaller.SubjectID, @@ -857,7 +861,7 @@ func TestTrustCenterDocUpdateSysAdmin(t *testing.T) { } tuple := fgax.GetTupleKey(req) - if _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { + if _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg.owner.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { requireNoError(t, err) } @@ -867,11 +871,11 @@ func TestTrustCenterDocUpdateSysAdmin(t *testing.T) { upload := createPDFUpload() expectUpload(t, suite.client.mockProvider, []graphql.Upload{*upload}) - resp, err := suite.client.api.UpdateTrustCenterDoc(systemAdminUser.UserCtx, trustCenterDocProtected.ID, input, nil, upload) + resp, err := suite.client.api.UpdateTrustCenterDoc(sharedSystemAdminUser.UserCtx, trustCenterDocProtected.ID, input, nil, upload) assert.NilError(t, err) assert.Assert(t, resp != nil) - getResp, err := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, trustCenterDocProtected.ID) + getResp, err := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, trustCenterDocProtected.ID) assert.NilError(t, err) assert.Assert(t, getResp.TrustCenterDoc.File != nil) @@ -881,23 +885,23 @@ func TestTrustCenterDocUpdateSysAdmin(t *testing.T) { assert.Assert(t, getResp.TrustCenterDoc.File != nil) // Verify that anonymous user can't access the file if the doc is set to protected - getResp, err = suite.client.api.GetTrustCenterDocByID(createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), trustCenterDocProtected.ID) + getResp, err = suite.client.api.GetTrustCenterDocByID(createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID), trustCenterDocProtected.ID) assert.NilError(t, err) assert.Assert(t, getResp.TrustCenterDoc.File == nil) }) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocProtected.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Helper function to create fresh file uploads createPDFUpload := uploadFileFunc(t, pdfFilePath) @@ -908,10 +912,10 @@ func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { for _, tuple := range wildcardTuples { ac := fgax.AccessCheck{ SubjectID: tuple.Subject.Identifier, - SubjectType: string(tuple.Subject.Kind), + SubjectType: tuple.Subject.Kind.String(), ObjectID: tuple.Object.Identifier, ObjectType: tuple.Object.Kind, - Relation: string(tuple.Relation), + Relation: tuple.Relation.String(), } exists, err := suite.client.db.Authz.CheckAccess(ctx, ac) assert.NilError(t, err) @@ -935,23 +939,20 @@ func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { Visibility: &enums.TrustCenterDocumentVisibilityPubliclyVisible, } - resp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *file) + resp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *file) assert.NilError(t, err) doc := resp.CreateTrustCenterDoc.TrustCenterDoc // Check that wildcard viewer tuples exist for the document - checkWildcardViewerTuples(testUser1.UserCtx, doc.ID, "trust_center_doc", true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, doc.ID, "trust_center_doc", true) // Check that wildcard viewer tuples exist for the original file (since it's publicly visible) assert.Assert(t, doc.OriginalFileID != nil) - checkWildcardViewerTuples(testUser1.UserCtx, *doc.OriginalFileID, generated.TypeFile, true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, *doc.OriginalFileID, generated.TypeFile, true) // FileID should be nil initially when watermarking is enabled assert.Assert(t, doc.FileID == nil) - - // Clean up - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: doc.ID}).MustDelete(testUser1.UserCtx, t) }) t.Run("update document with watermarked file upload - should create tuples for watermarked file", func(t *testing.T) { @@ -960,7 +961,7 @@ func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) originalFileID := *doc.OriginalFileID @@ -972,29 +973,26 @@ func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { Title: lo.ToPtr("Updated with Watermarked File"), } - resp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, doc.ID, input, nil, watermarkedFile) + resp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, doc.ID, input, nil, watermarkedFile) assert.NilError(t, err) updatedDoc := resp.UpdateTrustCenterDoc.TrustCenterDoc // Get the updated document from database to check FileID - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, updatedDoc.ID) assert.NilError(t, err) // Check that wildcard viewer tuples exist for the document - checkWildcardViewerTuples(testUser1.UserCtx, updatedDoc.ID, "trust_center_doc", true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, updatedDoc.ID, "trust_center_doc", true) // Check that wildcard viewer tuples exist for the original file - checkWildcardViewerTuples(testUser1.UserCtx, originalFileID, generated.TypeFile, true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, originalFileID, generated.TypeFile, true) // Check that wildcard viewer tuples exist for the watermarked file (if FileID is set) if dbDoc.FileID != nil { - checkWildcardViewerTuples(testUser1.UserCtx, *dbDoc.FileID, generated.TypeFile, true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, *dbDoc.FileID, generated.TypeFile, true) } - - // Clean up - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: doc.ID}).MustDelete(testUser1.UserCtx, t) }) t.Run("change visibility from public to protected - should remove file tuples", func(t *testing.T) { @@ -1003,40 +1001,38 @@ func TestTrustCenterDocWatermarkingFGATuples(t *testing.T) { client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) originalFileID := *doc.OriginalFileID // Verify tuples exist initially - checkWildcardViewerTuples(testUser1.UserCtx, doc.ID, "trust_center_doc", true) - checkWildcardViewerTuples(testUser1.UserCtx, originalFileID, generated.TypeFile, true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, doc.ID, "trust_center_doc", true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, originalFileID, generated.TypeFile, true) // Update visibility to protected input := testclient.UpdateTrustCenterDocInput{ Visibility: &enums.TrustCenterDocumentVisibilityProtected, } - resp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, doc.ID, input, nil, nil) + resp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, doc.ID, input, nil, nil) assert.NilError(t, err) updatedDoc := resp.UpdateTrustCenterDoc.TrustCenterDoc // Check that wildcard viewer tuples still exist for the document (protected is still viewable) - checkWildcardViewerTuples(testUser1.UserCtx, updatedDoc.ID, "trust_center_doc", true) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, updatedDoc.ID, "trust_center_doc", true) // Check that wildcard viewer tuples are removed for the file (no longer publicly visible) - checkWildcardViewerTuples(testUser1.UserCtx, originalFileID, generated.TypeFile, false) - - // Clean up - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: doc.ID}).MustDelete(testUser1.UserCtx, t) + checkWildcardViewerTuples(tcOrg.owner.UserCtx, originalFileID, generated.TypeFile, false) }) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter testCases := []struct { name string @@ -1056,7 +1052,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { expectedDocTuples: []string{"trust_center_doc"}, expectedFileTuples: []string{"file"}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "update from not_visible to protected creates doc tuple only", @@ -1064,7 +1060,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { updateVisibility: enums.TrustCenterDocumentVisibilityProtected, expectedDocTuples: []string{"trust_center_doc"}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "update from publicly_visible to not_visible deletes all tuples", @@ -1072,7 +1068,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { updateVisibility: enums.TrustCenterDocumentVisibilityNotVisible, expectedDeletedTuples: []string{"trust_center_doc", "file"}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "update from publicly_visible to protected deletes file tuples only", @@ -1080,7 +1076,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { updateVisibility: enums.TrustCenterDocumentVisibilityProtected, expectedDeletedTuples: []string{"file"}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "update from protected to publicly_visible creates file tuples", @@ -1088,14 +1084,14 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { updateVisibility: enums.TrustCenterDocumentVisibilityPubliclyVisible, expectedFileTuples: []string{"file"}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized, view only user", initialVisibility: enums.TrustCenterDocumentVisibilityNotVisible, updateVisibility: enums.TrustCenterDocumentVisibilityPubliclyVisible, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -1107,7 +1103,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { client: suite.client, TrustCenterID: trustCenter.ID, Visibility: tc.initialVisibility, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Perform the update updateInput := testclient.UpdateTrustCenterDocInput{ @@ -1119,7 +1115,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { if tc.expectedErr != "" { assert.ErrorContains(t, err, tc.expectedErr) // Clean up and return early for error cases - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(tcOrg.owner.UserCtx, t) return } @@ -1131,7 +1127,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { // We verify tuples indirectly by testing access with different user contexts // Test anonymous user access based on expected visibility - anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID) + anonCtx := createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.owner.OrganizationID) if tc.updateVisibility == enums.TrustCenterDocumentVisibilityPubliclyVisible { // Should be able to access the doc and files @@ -1152,7 +1148,7 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { } // Verify the organization user can always access the doc (regardless of visibility) - orgDocResp, orgDocErr := suite.client.api.GetTrustCenterDocByID(testUser1.UserCtx, trustCenterDoc.ID) + orgDocResp, orgDocErr := suite.client.api.GetTrustCenterDocByID(tcOrg.owner.UserCtx, trustCenterDoc.ID) assert.NilError(t, orgDocErr) assert.Assert(t, orgDocResp != nil) assert.Check(t, orgDocResp.TrustCenterDoc.OriginalFile != nil, "Organization user should always see files") @@ -1182,27 +1178,25 @@ func TestMutationUpdateTrustCenterDocWithFGATuples(t *testing.T) { assert.ErrorContains(t, docErr, notFoundErrorMsg) } } - - // Clean up the created trust center doc - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } // Clean up the trust center - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationDeleteTrustCenterDoc(t *testing.T) { + t.Parallel() // Create new test users - testUser := suite.userBuilder(context.Background(), t) - testUserOther := suite.userBuilder(testUser.UserCtx, t) + tcOrg1 := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + tcOrg2 := createFreshOrgWithTrustCenter(t) // create objects to be deleted - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserOther.UserCtx, t) + trustCenter1 := tcOrg1.trustCenter + trustCenter2 := tcOrg2.trustCenter - trustCenterDoc1 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID}).MustNew(testUser.UserCtx, t) - trustCenterDoc2 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter2.ID}).MustNew(testUserOther.UserCtx, t) + trustCenterDoc1 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID}).MustNew(tcOrg1.owner.UserCtx, t) + trustCenterDoc2 := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter2.ID}).MustNew(tcOrg2.owner.UserCtx, t) testCases := []struct { name string @@ -1215,20 +1209,20 @@ func TestMutationDeleteTrustCenterDoc(t *testing.T) { name: "happy path, delete trust center doc", idToDelete: trustCenterDoc1.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg1.owner.UserCtx, }, { name: "not authorized, different org user", idToDelete: trustCenterDoc2.ID, client: suite.client.api, - ctx: testUser.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg1.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "trust center doc not found", idToDelete: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg1.superAdmin.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -1246,37 +1240,40 @@ func TestMutationDeleteTrustCenterDoc(t *testing.T) { assert.Check(t, is.Equal(tc.idToDelete, resp.DeleteTrustCenterDoc.DeletedID)) }) } + + cleanupOrganizationDataWithContext(tcOrg1.owner.UserCtx, t) } func TestGetAllTrustCenterDocs(t *testing.T) { - // Clean up any existing trust center docs - cleanupTrustCenterData(t) + t.Parallel() + tcOrg1 := createFreshOrgWithTrustCenter(t) + tcOrg2 := createFreshOrgWithTrustCenter(t) // Create test trust center docs with different users - trustCenter1 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + trustCenter1 := tcOrg1.trustCenter + trustCenter2 := tcOrg2.trustCenter - trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) - trustCenterDocPublic := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(testUser1.UserCtx, t) - trustCenterDocNotVisible := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityNotVisible}).MustNew(testUser1.UserCtx, t) + (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg1.owner.UserCtx, t) + (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityPubliclyVisible}).MustNew(tcOrg1.owner.UserCtx, t) + (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter1.ID, Visibility: enums.TrustCenterDocumentVisibilityNotVisible}).MustNew(tcOrg1.owner.UserCtx, t) - trustCenterDoc2 := (&TrustCenterDocBuilder{ + (&TrustCenterDocBuilder{ client: suite.client, TrustCenterID: trustCenter2.ID, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) - signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter1.ID, testUser1.OrganizationID) + signedNdaAnonCtx := createAnonymousTrustCenterContext(trustCenter1.ID, tcOrg1.owner.OrganizationID) signedNDACaller, _ := auth.CallerFromContext(signedNdaAnonCtx) req := fgax.TupleRequest{ SubjectID: signedNDACaller.SubjectID, SubjectType: "user", - ObjectID: trustCenter1.ID, + ObjectID: tcOrg1.owner.ID, ObjectType: "trust_center", Relation: "nda_signed", } tuple := fgax.GetTupleKey(req) - if _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { + if _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg1.owner.UserCtx, []fgax.TupleKey{tuple}, nil); err != nil { requireNoError(t, err) } @@ -1290,31 +1287,31 @@ func TestGetAllTrustCenterDocs(t *testing.T) { { name: "happy path - regular user sees only their trust center docs", client: suite.client.api, - ctx: testUser1.UserCtx, - expectedResults: 3, // Should see only trust center docs owned by testUser1 + ctx: tcOrg1.owner.UserCtx, + expectedResults: 3, // Should see only trust center docs owned by their org }, { name: "happy path - admin user sees all trust center docs", client: suite.client.api, - ctx: adminUser.UserCtx, - expectedResults: 3, // Should see all owned by testUser + ctx: tcOrg1.admin.UserCtx, + expectedResults: 3, // Should see all owned by their org }, { name: "happy path - view only user", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg1.member.UserCtx, expectedResults: 3, // Should see only trust center docs from their organization }, { name: "happy path - different user sees only their trust center docs", client: suite.client.api, - ctx: testUser2.UserCtx, - expectedResults: 1, // Should see only trust center docs owned by testUser2 + ctx: tcOrg2.owner.UserCtx, + expectedResults: 1, // Should see only trust center docs owned by tcOrg2 }, { name: "anonymous user can't see not visible docs", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter1.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter1.ID, tcOrg1.owner.OrganizationID), expectedResults: 2, }, { @@ -1357,11 +1354,11 @@ func TestGetAllTrustCenterDocs(t *testing.T) { // Verify that users only see trust center docs from their organization switch tc.ctx { - case testUser1.UserCtx, viewOnlyUser.UserCtx: + case tcOrg1.owner.UserCtx, tcOrg1.admin.UserCtx, tcOrg1.member.UserCtx: for _, edge := range resp.TrustCenterDocs.Edges { assert.Check(t, is.Equal(trustCenter1.ID, *edge.Node.TrustCenterID)) } - case testUser2.UserCtx: + case tcOrg2.owner.UserCtx: for _, edge := range resp.TrustCenterDocs.Edges { assert.Check(t, is.Equal(trustCenter2.ID, *edge.Node.TrustCenterID)) } @@ -1369,24 +1366,22 @@ func TestGetAllTrustCenterDocs(t *testing.T) { }) } - // Clean up created trust center docs - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocProtected.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocPublic.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocNotVisible.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + // Clean up + cleanupOrganizationDataWithContext(tcOrg1.owner.UserCtx, t) } func TestTrustCenterDoc_NotVisible(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - t.Run("doc without file should set to NOT_VISIBLE", func(t *testing.T) { + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Run("doc without file should set to NOT_VISIBLE", func(t *testing.T) { testCases := []struct { name string @@ -1428,7 +1423,7 @@ func TestTrustCenterDoc_NotVisible(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(tcOrg.owner.UserCtx, privacy.Allow) create := suite.client.db.TrustCenterDoc.Create(). SetTitle("My Test Document"). @@ -1454,19 +1449,11 @@ func TestTrustCenterDoc_NotVisible(t *testing.T) { assert.Check(t, trustCenterDoc.OriginalFileID == nil, "Original file ID should be nil") assert.Check(t, trustCenterDoc.FileID == nil, "File ID should be nil") assert.Check(t, is.Equal(tc.expectedFinalVisibility, trustCenterDoc.Visibility), "Visibility should be set to NOT_VISIBLE") - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } - - cleanupWatermarkConfigs(t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) }) t.Run("when you clear an existing doc, it should set it to NO_VISIBLE", func(t *testing.T) { - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - upload := uploadFile(t, pdfFilePath) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*upload}) @@ -1478,7 +1465,7 @@ func TestTrustCenterDoc_NotVisible(t *testing.T) { Visibility: &enums.TrustCenterDocumentVisibilityPubliclyVisible, } - createResp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, createInput, *upload) + createResp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, createInput, *upload) assert.NilError(t, err) assert.Assert(t, createResp != nil) @@ -1486,7 +1473,7 @@ func TestTrustCenterDoc_NotVisible(t *testing.T) { assert.Check(t, trustCenterDoc.OriginalFileID != nil, "Original file ID should be set") assert.Check(t, is.Equal(enums.TrustCenterDocumentVisibilityPubliclyVisible, *trustCenterDoc.Visibility)) - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(tcOrg.owner.UserCtx, privacy.Allow) updatedDoc, err := suite.client.db.TrustCenterDoc.UpdateOneID(trustCenterDoc.ID). ClearOriginalFileID(). @@ -1498,22 +1485,23 @@ func TestTrustCenterDoc_NotVisible(t *testing.T) { assert.Check(t, updatedDoc.OriginalFileID == nil, "Original file ID should be nil after clearing") assert.Check(t, updatedDoc.FileID == nil, "File ID should be nil after clearing") assert.Check(t, is.Equal(enums.TrustCenterDocumentVisibilityNotVisible, updatedDoc.Visibility), "Visibility should be automatically set to NOT_VISIBLE when file is cleared") - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) - cleanupWatermarkConfigs(t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) }) + + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterDocWatermarkingEnabledCreation(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := tcOrg.trustCenter - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) allowCtx := privacy.DecisionContext(dbCtx, privacy.Allow) watermarkConfig, err := suite.client.db.TrustCenterWatermarkConfig.Query(). @@ -1570,17 +1558,15 @@ func TestTrustCenterDocWatermarkingEnabledCreation(t *testing.T) { input.WatermarkingEnabled = tc.watermarkingEnabled } - resp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *file) + resp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *file) assert.NilError(t, err) assert.Assert(t, resp != nil) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, resp.CreateTrustCenterDoc.TrustCenterDoc.ID) assert.NilError(t, err) assert.Check(t, is.Equal(tc.expectedWatermarking, dbDoc.WatermarkingEnabled)) assert.Check(t, is.Equal(tc.expectedWatermarkStatus, dbDoc.WatermarkStatus)) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: resp.CreateTrustCenterDoc.TrustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } @@ -1600,33 +1586,32 @@ func TestTrustCenterDocWatermarkingEnabledCreation(t *testing.T) { WatermarkingEnabled: lo.ToPtr(false), } - resp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *file) + resp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *file) assert.NilError(t, err) assert.Assert(t, resp != nil) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, resp.CreateTrustCenterDoc.TrustCenterDoc.ID) assert.NilError(t, err) assert.Check(t, is.Equal(false, dbDoc.WatermarkingEnabled)) assert.Check(t, is.Equal(enums.WatermarkStatusDisabled, dbDoc.WatermarkStatus)) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: resp.CreateTrustCenterDoc.TrustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) - (&Cleanup[*generated.TrustCenterWatermarkConfigDeleteOne]{client: suite.client.db.TrustCenterWatermarkConfig, ID: watermarkConfig.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterDocWatermarkingOverrideGlobalConfig(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := tcOrg.trustCenter - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) allowCtx := privacy.DecisionContext(dbCtx, privacy.Allow) watermarkConfig, err := suite.client.db.TrustCenterWatermarkConfig.Query(). @@ -1684,16 +1669,14 @@ func TestTrustCenterDocWatermarkingOverrideGlobalConfig(t *testing.T) { input.WatermarkingEnabled = tc.watermarkingEnabled } - resp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *file) + resp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *file) assert.NilError(t, err, tc.description) assert.Assert(t, resp != nil) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, resp.CreateTrustCenterDoc.TrustCenterDoc.ID) assert.NilError(t, err) assert.Check(t, is.Equal(tc.expectedWatermarking, dbDoc.WatermarkingEnabled), tc.description) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: resp.CreateTrustCenterDoc.TrustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } }) @@ -1746,30 +1729,31 @@ func TestTrustCenterDocWatermarkingOverrideGlobalConfig(t *testing.T) { input.WatermarkingEnabled = tc.watermarkingEnabled } - resp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, input, *file) + resp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, input, *file) assert.NilError(t, err, tc.description) assert.Assert(t, resp != nil) - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, resp.CreateTrustCenterDoc.TrustCenterDoc.ID) assert.NilError(t, err) assert.Check(t, is.Equal(tc.expectedWatermarking, dbDoc.WatermarkingEnabled), tc.description) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: resp.CreateTrustCenterDoc.TrustCenterDoc.ID}).MustDelete(testUser1.UserCtx, t) }) } }) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + docKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_doc", - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + trustCenter := tcOrg.trustCenter createPDFUpload := uploadFileFunc(t, pdfFilePath) @@ -1783,12 +1767,12 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { WatermarkingEnabled: lo.ToPtr(true), } - createResp, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, createInput, *file) + createResp, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, createInput, *file) assert.NilError(t, err) assert.Assert(t, createResp != nil) docID := createResp.CreateTrustCenterDoc.TrustCenterDoc.ID - dbCtx := setContext(testUser1.UserCtx, suite.client.db) + dbCtx := setContext(tcOrg.owner.UserCtx, suite.client.db) dbDoc, err := suite.client.db.TrustCenterDoc.Get(dbCtx, docID) assert.NilError(t, err) assert.Check(t, is.Equal(true, dbDoc.WatermarkingEnabled)) @@ -1798,7 +1782,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { WatermarkingEnabled: lo.ToPtr(false), } - updateResp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, docID, updateInput, nil, nil) + updateResp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, docID, updateInput, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp != nil) @@ -1812,7 +1796,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { Title: lo.ToPtr("Updated Title"), } - updateResp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, docID, updateInput, nil, nil) + updateResp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, docID, updateInput, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp != nil) assert.Check(t, is.Equal("Updated Title", updateResp.UpdateTrustCenterDoc.TrustCenterDoc.Title)) @@ -1844,7 +1828,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { WatermarkingEnabled: lo.ToPtr(false), } - createResp2, err := suite.client.api.CreateTrustCenterDoc(testUser1.UserCtx, createInput2, *file2) + createResp2, err := suite.client.api.CreateTrustCenterDoc(tcOrg.owner.UserCtx, createInput2, *file2) assert.NilError(t, err) assert.Assert(t, createResp2 != nil) @@ -1858,7 +1842,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { WatermarkingEnabled: lo.ToPtr(true), } - updateResp, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, doc2ID, updateInput, nil, nil) + updateResp, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, doc2ID, updateInput, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp != nil) @@ -1871,7 +1855,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { WatermarkingEnabled: lo.ToPtr(false), } - updateResp2, err := suite.client.api.UpdateTrustCenterDoc(testUser1.UserCtx, doc2ID, updateInput2, nil, nil) + updateResp2, err := suite.client.api.UpdateTrustCenterDoc(tcOrg.owner.UserCtx, doc2ID, updateInput2, nil, nil) assert.NilError(t, err) assert.Assert(t, updateResp2 != nil) @@ -1879,10 +1863,7 @@ func TestTrustCenterDocWatermarkingEnabledPreventReset(t *testing.T) { assert.NilError(t, err) assert.Check(t, is.Equal(true, dbDoc2.WatermarkingEnabled)) assert.Check(t, is.Equal(enums.WatermarkStatusPending, dbDoc2.WatermarkStatus)) - - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: doc2ID}).MustDelete(testUser1.UserCtx, t) }) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: docID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterdomain_test.go b/internal/graphapi/trustcenterdomain_test.go index 97fb6673a2..275ac8903a 100644 --- a/internal/graphapi/trustcenterdomain_test.go +++ b/internal/graphapi/trustcenterdomain_test.go @@ -13,13 +13,14 @@ import ( ) func TestMutationCreateTrustCenterDomain(t *testing.T) { - testUser := suite.userBuilder(t.Context(), t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - mappableDomain := (&MappableDomainBuilder{client: suite.client, Name: testutils.TrustCenterCnameTarget}).MustNew(systemAdminUser.UserCtx, t) + t.Parallel() + + tcOrg := createFreshOrgWithTrustCenter(t) + mappableDomain := (&MappableDomainBuilder{client: suite.client, Name: testutils.TrustCenterCnameTarget}).MustNew(tcOrg.admin.UserCtx, t) t.Run("happy path, do not require TrustCenterID", func(t *testing.T) { domain := gofakeit.DomainName() - resp, err := suite.client.api.CreateTrustCenterDomain(testUser.UserCtx, testclient.CreateTrustCenterDomainInput{ + resp, err := suite.client.api.CreateTrustCenterDomain(tcOrg.owner.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: domain, }) assert.NilError(t, err) @@ -27,23 +28,23 @@ func TestMutationCreateTrustCenterDomain(t *testing.T) { assert.Check(t, is.Equal(domain, resp.CreateTrustCenterDomain.CustomDomain.CnameRecord)) assert.Check(t, resp.CreateTrustCenterDomain.CustomDomain.TrustCenterID != nil) - assert.Check(t, is.Equal(trustCenter.ID, *resp.CreateTrustCenterDomain.CustomDomain.TrustCenterID)) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: resp.CreateTrustCenterDomain.CustomDomain.ID}).MustDelete(testUser.UserCtx, t) + assert.Check(t, is.Equal(tcOrg.trustCenter.ID, *resp.CreateTrustCenterDomain.CustomDomain.TrustCenterID)) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: resp.CreateTrustCenterDomain.CustomDomain.ID}).MustDelete(tcOrg.owner.UserCtx, t) }) t.Run("normalizes cname record input", func(t *testing.T) { inputDomain := "https://Trust.Example.com/path" - resp, err := suite.client.api.CreateTrustCenterDomain(testUser.UserCtx, testclient.CreateTrustCenterDomainInput{ + resp, err := suite.client.api.CreateTrustCenterDomain(tcOrg.owner.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: inputDomain, }) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal("trust.example.com", resp.CreateTrustCenterDomain.CustomDomain.CnameRecord)) - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: resp.CreateTrustCenterDomain.CustomDomain.ID}).MustDelete(testUser.UserCtx, t) + (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: resp.CreateTrustCenterDomain.CustomDomain.ID}).MustDelete(tcOrg.owner.UserCtx, t) }) t.Run("trust center not found", func(t *testing.T) { - _, err := suite.client.api.CreateTrustCenterDomain(testUser.UserCtx, testclient.CreateTrustCenterDomainInput{ + _, err := suite.client.api.CreateTrustCenterDomain(tcOrg.owner.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: gofakeit.DomainName(), TrustCenterID: "non-existent-id", }) @@ -55,20 +56,22 @@ func TestMutationCreateTrustCenterDomain(t *testing.T) { testUserForViewOnly := suite.userBuilder(t.Context(), t) // Add viewOnlyUser to this new organization as a member (view-only) - suite.addUserToOrganization(testUserForViewOnly.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + suite.addUserToOrganization(testUserForViewOnly.UserCtx, t, &sharedViewOnlyUser, enums.RoleMember, tcOrg.organizationID) - _, err := suite.client.api.CreateTrustCenterDomain(viewOnlyUser.UserCtx, testclient.CreateTrustCenterDomainInput{ + _, err := suite.client.api.CreateTrustCenterDomain(sharedViewOnlyUser.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: gofakeit.DomainName(), - TrustCenterID: trustCenter.ID, + TrustCenterID: tcOrg.trustCenter.ID, }) assert.ErrorContains(t, err, notAuthorizedErrorMsg) + + cleanupOrganizationDataWithContext(testUserForViewOnly.UserCtx, t) }) t.Run("user from different organization cannot access trust center", func(t *testing.T) { - _, err := suite.client.api.CreateTrustCenterDomain(testUser2.UserCtx, testclient.CreateTrustCenterDomainInput{ + _, err := suite.client.api.CreateTrustCenterDomain(sharedTestUser2.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: gofakeit.DomainName(), - TrustCenterID: trustCenter.ID, + TrustCenterID: tcOrg.owner.ID, }) assert.ErrorContains(t, err, notFoundErrorMsg) }) @@ -93,25 +96,27 @@ func TestMutationCreateTrustCenterDomain(t *testing.T) { assert.ErrorContains(t, err, "domain already exists for this trust center") // Cleanup - (&Cleanup[*generated.CustomDomainDeleteOne]{client: suite.client.db.CustomDomain, ID: existingDomain.ID}).MustDelete(testUserDomainExists.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter4.ID}).MustDelete(testUserDomainExists.UserCtx, t) + cleanupOrganizationDataWithContext(testUserDomainExists.UserCtx, t) }) - (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, ID: mappableDomain.ID}).MustDelete(systemAdminUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + (&Cleanup[*generated.MappableDomainDeleteOne]{client: suite.client.db.MappableDomain, IDs: []string{mappableDomain.ID}}).MustDelete(sharedSystemAdminUser.UserCtx, t) + } func TestMutationCreateTrustCenterDomainMappableDomainNotExists(t *testing.T) { + t.Parallel() // Create a new user to avoid slug conflicts testUser := suite.userBuilder(t.Context(), t) trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) t.Run("mappable domain does not exist", func(t *testing.T) { - _, err := suite.client.api.CreateTrustCenterDomain(testUser.UserCtx, testclient.CreateTrustCenterDomainInput{ CnameRecord: gofakeit.DomainName(), TrustCenterID: trustCenter.ID, }) assert.ErrorContains(t, err, notFoundErrorMsg) }) + + cleanupOrganizationDataWithContext(testUser.UserCtx, t) } diff --git a/internal/graphapi/trustcenterentity_test.go b/internal/graphapi/trustcenterentity_test.go index d6a6a4fc4f..48884ee7f4 100644 --- a/internal/graphapi/trustcenterentity_test.go +++ b/internal/graphapi/trustcenterentity_test.go @@ -9,19 +9,19 @@ import ( "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" - "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" ) func TestQueryTrustCenterEntity(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) trustCenterEntity := (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -34,32 +34,32 @@ func TestQueryTrustCenterEntity(t *testing.T) { name: "happy path as admin", queryID: trustCenterEntity.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using api token", queryID: trustCenterEntity.ID, - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { name: "happy path, using personal access token", queryID: trustCenterEntity.ID, - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { name: "not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "no access, different org user", queryID: trustCenterEntity.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -80,38 +80,40 @@ func TestQueryTrustCenterEntity(t *testing.T) { assert.Check(t, resp.TrustCenterEntity.TrustCenterID != nil) assert.Check(t, is.Equal(trustCenter.ID, *resp.TrustCenterEntity.TrustCenterID)) assert.Check(t, resp.TrustCenterEntity.EntityTypeID != nil) - entityType, err := suite.client.db.EntityType.Get(testUser1.UserCtx, *resp.TrustCenterEntity.EntityTypeID) + entityType, err := suite.client.db.EntityType.Get(tcOrg.owner.UserCtx, *resp.TrustCenterEntity.EntityTypeID) assert.NilError(t, err) assert.Check(t, is.Equal("customer", entityType.Name)) }) } - (&Cleanup[*generated.TrustCenterEntityDeleteOne]{client: suite.client.db.TrustCenterEntity, ID: trustCenterEntity.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterEntities(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterEntity1 := (&TrustCenterEntityBuilder{ + trustCenter := tcOrg.trustCenter + + (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) - trustCenterEntity2 := (&TrustCenterEntityBuilder{ + }).MustNew(tcOrg.owner.UserCtx, t) + (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) createLogoUpload := logoFileFunc(t) logoFile := createLogoUpload() expectUpload(t, suite.client.mockProvider, []graphql.Upload{*logoFile}) - entityWithFile, err := suite.client.api.CreateTrustCenterEntity(testUser1.UserCtx, testclient.CreateTrustCenterEntityInput{ + entityWithFile, err := suite.client.api.CreateTrustCenterEntity(tcOrg.owner.UserCtx, testclient.CreateTrustCenterEntityInput{ Name: "Entity With File", }, logoFile, nil) - assert.NilError(t, err) + requireNoError(t, err) + assert.Assert(t, entityWithFile != nil) assert.Assert(t, entityWithFile.CreateTrustCenterEntity.TrustCenterEntity.ID != "") assert.Assert(t, entityWithFile.CreateTrustCenterEntity.TrustCenterEntity.LogoFile.ID != "") @@ -125,31 +127,31 @@ func TestQueryTrustCenterEntities(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, expectedResults: 3, }, { name: "happy path, using api token", - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), expectedResults: 3, }, { name: "happy path, using pat", - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), expectedResults: 3, }, { name: "anonymous user can see trust center entities for trust center they have access to", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedResults: 3, }, { name: "another user, no entities should be returned", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedResults: 0, }, } @@ -171,19 +173,12 @@ func TestQueryTrustCenterEntities(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterEntityDeleteOne]{client: suite.client.db.TrustCenterEntity, IDs: []string{trustCenterEntity1.ID, trustCenterEntity2.ID, entityWithFile.CreateTrustCenterEntity.TrustCenterEntity.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationCreateTrustCenterEntity(t *testing.T) { - testUser := suite.userBuilder(t.Context(), t) - apiClient := suite.setupAPITokenClient(testUser.UserCtx, t) - patClient := suite.setupPatClient(testUser, t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) createLogoUpload := logoFileFunc(t) @@ -201,7 +196,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { Name: "Test Entity", }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, full input", @@ -210,7 +205,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { URL: lo.ToPtr("https://example.com"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, with logo file", @@ -220,7 +215,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { }, logoFile: createLogoUpload(), client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using api token", @@ -228,7 +223,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { Name: "API Token Entity", URL: lo.ToPtr("https://example.com"), }, - client: apiClient, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { @@ -237,7 +232,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { Name: "PAT Entity", URL: lo.ToPtr("https://example.com"), }, - client: patClient, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { @@ -246,7 +241,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { Name: "Unauthorized Entity", }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -256,7 +251,7 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { URL: lo.ToPtr("not-a-valid-url"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, expectedErr: invalidInputErrorMsg, }, } @@ -289,22 +284,21 @@ func TestMutationCreateTrustCenterEntity(t *testing.T) { } assert.Check(t, resp.CreateTrustCenterEntity.TrustCenterEntity.EntityTypeID != nil) - - (&Cleanup[*generated.TrustCenterEntityDeleteOne]{client: suite.client.db.TrustCenterEntity, ID: resp.CreateTrustCenterEntity.TrustCenterEntity.ID}).MustDelete(testUser.UserCtx, t) }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationUpdateTrustCenterEntity(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) trustCenterEntity := (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) createLogoUpload := logoFileFunc(t) @@ -320,7 +314,7 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { name: "happy path, minimal input", request: testclient.UpdateTrustCenterEntityInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, full input as admin", @@ -328,7 +322,7 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { URL: lo.ToPtr("https://example.com"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, with logo file", @@ -337,14 +331,14 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { }, logoFile: createLogoUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using api token", request: testclient.UpdateTrustCenterEntityInput{ URL: lo.ToPtr("https://example.com"), }, - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { @@ -352,14 +346,14 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { request: testclient.UpdateTrustCenterEntityInput{ URL: lo.ToPtr("https://example.com"), }, - client: suite.client.apiWithPAT, + client: tcOrg.adminPatClient, ctx: context.Background(), }, { name: "not authorized, view only user", request: testclient.UpdateTrustCenterEntityInput{}, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -368,7 +362,7 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { URL: lo.ToPtr("not-a-valid-url"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: invalidInputErrorMsg, }, } @@ -402,22 +396,22 @@ func TestMutationUpdateTrustCenterEntity(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterEntityDeleteOne]{client: suite.client.db.TrustCenterEntity, ID: trustCenterEntity.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationDeleteTrustCenterEntity(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAPIClients()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) trustCenterEntity1 := (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) trustCenterEntity2 := (&TrustCenterEntityBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -430,26 +424,26 @@ func TestMutationDeleteTrustCenterEntity(t *testing.T) { name: "happy path, delete trustcenter as admin", idToDelete: trustCenterEntity1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, using api token", idToDelete: trustCenterEntity2.ID, - client: suite.client.apiWithToken, + client: tcOrg.adminApiClient, ctx: context.Background(), }, { name: "not found", idToDelete: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "no access, different org user", idToDelete: trustCenterEntity1.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -468,13 +462,12 @@ func TestMutationDeleteTrustCenterEntity(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestTrustCenterEntityHookCustomerEntityType(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) testCases := []struct { name string @@ -489,7 +482,7 @@ func TestTrustCenterEntityHookCustomerEntityType(t *testing.T) { Name: "Test Entity", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "uses existing customer entity type if it exists", @@ -497,7 +490,7 @@ func TestTrustCenterEntityHookCustomerEntityType(t *testing.T) { Name: "Test Entity 2", }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, } @@ -524,5 +517,5 @@ func TestTrustCenterEntityHookCustomerEntityType(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterfaq_test.go b/internal/graphapi/trustcenterfaq_test.go index ca49884b92..66813f4b35 100644 --- a/internal/graphapi/trustcenterfaq_test.go +++ b/internal/graphapi/trustcenterfaq_test.go @@ -8,26 +8,19 @@ import ( "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" - "github.com/theopenlane/core/common/enums" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" ) func TestMutationCreateTrustCenterFAQ(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + tcOrg2 := createFreshOrgWithTrustCenter(t) - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - - note1 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - note2 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - note3 := (&NoteBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + note1 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + note2 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + note3 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) testCases := []struct { name string @@ -45,7 +38,7 @@ func TestMutationCreateTrustCenterFAQ(t *testing.T) { DisplayOrder: lo.ToPtr(int64(1)), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized - view only user cannot create", @@ -54,7 +47,7 @@ func TestMutationCreateTrustCenterFAQ(t *testing.T) { TrustCenterID: &trustCenter.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -64,7 +57,7 @@ func TestMutationCreateTrustCenterFAQ(t *testing.T) { TrustCenterID: &trustCenter.ID, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -74,18 +67,18 @@ func TestMutationCreateTrustCenterFAQ(t *testing.T) { TrustCenterID: lo.ToPtr("non-existent-trust-center-id"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { - name: "note not found", + name: "note not found, invalid ulid", request: testclient.CreateTrustCenterFAQInput{ NoteID: "non-existent-note-id", TrustCenterID: &trustCenter.ID, }, client: suite.client.api, - ctx: testUser.UserCtx, - expectedErr: notFoundErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: invalidInputErrorMsg, }, } @@ -109,21 +102,20 @@ func TestMutationCreateTrustCenterFAQ(t *testing.T) { if tc.request.DisplayOrder != nil { assert.Check(t, is.Equal(*tc.request.DisplayOrder, *resp.CreateTrustCenterFaq.TrustCenterFaq.DisplayOrder)) } - - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: resp.CreateTrustCenterFaq.TrustCenterFaq.ID}).MustDelete(tc.ctx, t) }) } // clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationCreateTrustCenterFAQAsAnonymousUser(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -140,7 +132,7 @@ func TestMutationCreateTrustCenterFAQAsAnonymousUser(t *testing.T) { TrustCenterID: &trustCenter.ID, }, trustCenterID: trustCenter.ID, - organizationID: testUser.OrganizationID, + organizationID: tcOrg.organizationID, client: suite.client.api, expectedErr: "could not identify authenticated user", }, @@ -158,17 +150,18 @@ func TestMutationCreateTrustCenterFAQAsAnonymousUser(t *testing.T) { } // clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterFAQByID(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ TrustCenterID: &trustCenter.ID, ReferenceLink: lo.ToPtr("https://example.com/faq"), DisplayOrder: lo.ToPtr(int64(1)), @@ -179,17 +172,13 @@ func TestQueryTrustCenterFAQByID(t *testing.T) { assert.NilError(t, err) tcFAQ := createResp.CreateTrustCenterFaq.TrustCenterFaq - // create faq for a different org - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - - createResp2, err := suite.client.api.CreateTrustCenterFaq(testUser2.UserCtx, testclient.CreateTrustCenterFAQInput{ + _, err = suite.client.api.CreateTrustCenterFaq(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ TrustCenterID: &trustCenter2.ID, CreateNote: &testclient.CreateNoteInput{ Text: "faq note for trust center 2", }, }) assert.NilError(t, err) - tcFAQ2 := createResp2.CreateTrustCenterFaq.TrustCenterFaq testCases := []struct { name string @@ -202,39 +191,39 @@ func TestQueryTrustCenterFAQByID(t *testing.T) { name: "happy path - get trust center faq", queryID: tcFAQ.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path - view only user can get trust center faq", queryID: tcFAQ.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, }, { name: "happy path - anon user", queryID: tcFAQ.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), }, { name: "not found - different org user cannot access trust center faq", queryID: tcFAQ.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found - different anonymous user cannot access trust center faq", queryID: tcFAQ.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter2.ID, testUser2.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter2.ID, tcOrg2.organizationID), errorMsg: notFoundErrorMsg, }, { name: "not found - non-existent ID", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -255,32 +244,25 @@ func TestQueryTrustCenterFAQByID(t *testing.T) { } // clean up - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationUpdateTrustCenterFAQ(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) + noteOtherOrg := (&NoteBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - noteOtherOrg := (&NoteBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - - createResp2, err := suite.client.api.CreateTrustCenterFaq(testUser2.UserCtx, testclient.CreateTrustCenterFAQInput{ + _, err := suite.client.api.CreateTrustCenterFaq(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: noteOtherOrg.ID, TrustCenterID: &trustCenter2.ID, }) assert.NilError(t, err) - tcFAQ2 := createResp2.CreateTrustCenterFaq.TrustCenterFaq testCases := []struct { name string @@ -293,8 +275,8 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { { name: "happy path - update reference link and display order", setupFunc: func() string { - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note.ID, TrustCenterID: &trustCenter.ID, ReferenceLink: lo.ToPtr("https://example.com/old"), @@ -308,13 +290,13 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { DisplayOrder: lo.ToPtr(int64(5)), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path - clear reference link", setupFunc: func() string { - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note.ID, TrustCenterID: &trustCenter.ID, ReferenceLink: lo.ToPtr("https://example.com/to-clear"), @@ -326,13 +308,13 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { ClearReferenceLink: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized - view only user cannot update", setupFunc: func() string { - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note.ID, TrustCenterID: &trustCenter.ID, }) @@ -343,14 +325,14 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { ReferenceLink: lo.ToPtr("https://example.com/updated"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized - anon user cannot update", setupFunc: func() string { - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note.ID, TrustCenterID: &trustCenter.ID, }) @@ -361,14 +343,14 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { ReferenceLink: lo.ToPtr("https://example.com/updated"), }, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedErr: "could not identify authenticated user", }, { name: "not authorized - different org user cannot update", setupFunc: func() string { - note := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + note := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note.ID, TrustCenterID: &trustCenter.ID, }) @@ -379,8 +361,8 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { ReferenceLink: lo.ToPtr("https://example.com/updated"), }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg2.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "not found - non-existent ID", @@ -389,19 +371,14 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { ReferenceLink: lo.ToPtr("https://example.com/updated"), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } - var createdIDs []string - for _, tc := range testCases { t.Run("Update "+tc.name, func(t *testing.T) { id := tc.setupFunc() - if tc.expectedErr == "" { - createdIDs = append(createdIDs, id) - } resp, err := tc.client.UpdateTrustCenterFaq(tc.ctx, id, tc.request) if tc.expectedErr != "" { @@ -427,47 +404,37 @@ func TestMutationUpdateTrustCenterFAQ(t *testing.T) { } // clean up - if len(createdIDs) > 0 { - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, IDs: createdIDs}).MustDelete(testUser.UserCtx, t) - } - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationDeleteTrustCenterFAQ(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) + note1 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + note2 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - note1 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - note2 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - createResp1, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + createResp1, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note1.ID, TrustCenterID: &trustCenter.ID, }) assert.NilError(t, err) tcFAQ1 := createResp1.CreateTrustCenterFaq.TrustCenterFaq - createResp2, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + createResp2, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note2.ID, TrustCenterID: &trustCenter.ID, }) assert.NilError(t, err) tcFAQ2 := createResp2.CreateTrustCenterFaq.TrustCenterFaq - testUserAnother := suite.userBuilder(context.Background(), t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) - note3 := (&NoteBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter + note3 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) - createResp3, err := suite.client.api.CreateTrustCenterFaq(testUserAnother.UserCtx, testclient.CreateTrustCenterFAQInput{ + createResp3, err := suite.client.api.CreateTrustCenterFaq(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note3.ID, TrustCenterID: &trustCenter2.ID, }) @@ -485,27 +452,27 @@ func TestMutationDeleteTrustCenterFAQ(t *testing.T) { name: "happy path - delete trust center faq", id: tcFAQ1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized - view only user cannot delete", id: tcFAQ2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized - different org user cannot delete", id: tcFAQ3.ID, client: suite.client.api, - ctx: testUser.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "not found - non-existent ID", id: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -528,48 +495,41 @@ func TestMutationDeleteTrustCenterFAQ(t *testing.T) { } // clean up - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ2.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ3.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserAnother.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestQueryTrustCenterFAQs(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter - note1 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - note2 := (&NoteBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + note1 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + note2 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) - createResp1, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + _, err := suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note1.ID, TrustCenterID: &trustCenter.ID, ReferenceLink: lo.ToPtr("https://example.com/faq1"), }) assert.NilError(t, err) - tcFAQ1 := createResp1.CreateTrustCenterFaq.TrustCenterFaq - createResp2, err := suite.client.api.CreateTrustCenterFaq(testUser.UserCtx, testclient.CreateTrustCenterFAQInput{ + _, err = suite.client.api.CreateTrustCenterFaq(tcOrg.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note2.ID, TrustCenterID: &trustCenter.ID, }) assert.NilError(t, err) - tcFAQ2 := createResp2.CreateTrustCenterFaq.TrustCenterFaq - testUserAnother := suite.userBuilder(context.Background(), t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) - note3 := (&NoteBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) + note3 := (&NoteBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) - createResp3, err := suite.client.api.CreateTrustCenterFaq(testUserAnother.UserCtx, testclient.CreateTrustCenterFAQInput{ + _, err = suite.client.api.CreateTrustCenterFaq(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterFAQInput{ NoteID: note3.ID, TrustCenterID: &trustCenter2.ID, }) assert.NilError(t, err) - tcFAQ3 := createResp3.CreateTrustCenterFaq.TrustCenterFaq testCases := []struct { name string @@ -581,31 +541,31 @@ func TestQueryTrustCenterFAQs(t *testing.T) { { name: "get all trust center faqs for user1", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedResults: 2, }, { name: "get all trust center faqs for another user", client: suite.client.api, - ctx: testUserAnother.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedResults: 1, }, { name: "view only user can see trust center faqs", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedResults: 2, }, { name: "anonymous user can see trust center faqs", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedResults: 2, }, { name: "filter by trust center ID", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterFAQWhereInput{ TrustCenterID: &trustCenter.ID, }, @@ -614,7 +574,7 @@ func TestQueryTrustCenterFAQs(t *testing.T) { { name: "filter by reference link", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, where: &testclient.TrustCenterFAQWhereInput{ ReferenceLinkNotNil: lo.ToPtr(true), }, @@ -640,8 +600,6 @@ func TestQueryTrustCenterFAQs(t *testing.T) { } // clean up - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, IDs: []string{tcFAQ1.ID, tcFAQ2.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterFAQDeleteOne]{client: suite.client.db.TrustCenterFAQ, ID: tcFAQ3.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserAnother.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterhelpers.go b/internal/graphapi/trustcenterhelpers.go index 15a27f936b..e110456936 100644 --- a/internal/graphapi/trustcenterhelpers.go +++ b/internal/graphapi/trustcenterhelpers.go @@ -4,6 +4,7 @@ import ( "context" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/graphapi/common" "github.com/theopenlane/core/pkg/logx" "github.com/theopenlane/utils/rout" @@ -14,10 +15,10 @@ import ( // this allows requests to skip providing the trust center ID in a request where it is needed // later for authorization checks. func getTrustCenterID(ctx context.Context, trustCenterID *string, object string) (*string, error) { - if trustCenterID == nil { - // check if the organization has a trust center and set the id - trustCenterID, err := withTransactionalMutation(ctx).TrustCenter.Query().OnlyID(ctx) - if err != nil { + // check if the organization has a trust center and set the id + orgTrustCenterID, err := withTransactionalMutation(ctx).TrustCenter.Query().OnlyID(ctx) + if err != nil { + if trustCenterID == nil { if generated.IsNotFound(err) { return nil, rout.NewMissingRequiredFieldError("trustCenterID") } @@ -25,14 +26,20 @@ func getTrustCenterID(ctx context.Context, trustCenterID *string, object string) return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: object}) } - if trustCenterID == "" { - return nil, rout.NewMissingRequiredFieldError("trustCenterID") - } + logx.FromContext(ctx).Error().Str("provided_trust_center_id", *trustCenterID).Str("org_trust_center_id", orgTrustCenterID).Msg("mismatch between provided id and organization trust center id") + return nil, parseRequestError(ctx, privacy.Deny, common.Action{Action: common.ActionCreate, Object: object}) + } - logx.FromContext(ctx).Debug().Str("trust center id", trustCenterID).Msg("trustCenterID not provided, using organization's trust center") + if trustCenterID == nil && orgTrustCenterID == "" { + return nil, rout.NewMissingRequiredFieldError("trustCenterID") + } - return &trustCenterID, nil + if trustCenterID != nil && orgTrustCenterID != *trustCenterID { + logx.FromContext(ctx).Error().Str("provided_trust_center_id", *trustCenterID).Str("org_trust_center_id", orgTrustCenterID).Msg("mismatch between provided id and organization trust center id") + return nil, privacy.Deny } - return nil, nil + logx.FromContext(ctx).Debug().Str("trust center id", orgTrustCenterID).Msg("trustCenterID not provided, using organization's trust center") + + return &orgTrustCenterID, nil } diff --git a/internal/graphapi/trustcenternda_test.go b/internal/graphapi/trustcenternda_test.go index d266916f8b..648dd40b79 100644 --- a/internal/graphapi/trustcenternda_test.go +++ b/internal/graphapi/trustcenternda_test.go @@ -19,15 +19,15 @@ import ( ) func TestMutationSubmitTrustCenterNDADocAccess(t *testing.T) { - cleanupTrustCenterData(t) + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(testUser1.UserCtx, t) + trustCenterDocProtected := (&TrustCenterDocBuilder{client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected}).MustNew(tcOrg.owner.UserCtx, t) up := uploadFile(t, pdfFilePath) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*up}) - trustCenterNDA, err := suite.client.api.CreateTrustCenterNda(testUser1.UserCtx, testclient.CreateTrustCenterNDAInput{ + trustCenterNDA, err := suite.client.api.CreateTrustCenterNda(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, []*graphql.Upload{up}) @@ -84,7 +84,7 @@ func TestMutationSubmitTrustCenterNDADocAccess(t *testing.T) { assert.Assert(t, getTrustCenterDocResp.TrustCenterDoc.OriginalFile == nil) // Clear any existing jobs - err = suite.client.db.Job.TruncateRiverTables(testUser1.UserCtx) + err = suite.client.db.Job.TruncateRiverTables(tcOrg.owner.UserCtx) assert.NilError(t, err) resp, err := suite.client.api.SubmitTrustCenterNDAResponse(anonCtx, input) @@ -93,7 +93,7 @@ func TestMutationSubmitTrustCenterNDADocAccess(t *testing.T) { assert.Assert(t, resp != nil) // make sure the nda request is marked as signed - ndaRequest, err := suite.client.api.GetTrustCenterNDARequests(testUser1.UserCtx, nil, nil, nil, nil, []*testclient.TrustCenterNDARequestOrder{}, &testclient.TrustCenterNDARequestWhereInput{ + ndaRequest, err := suite.client.api.GetTrustCenterNDARequests(tcOrg.owner.UserCtx, nil, nil, nil, nil, []*testclient.TrustCenterNDARequestOrder{}, &testclient.TrustCenterNDARequestWhereInput{ Email: &email, }) assert.NilError(t, err) @@ -106,15 +106,14 @@ func TestMutationSubmitTrustCenterNDADocAccess(t *testing.T) { assert.NilError(t, err) assert.Assert(t, getTrustCenterDocResp.TrustCenterDoc.OriginalFile != nil) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: trustCenterNDA.CreateTrustCenterNda.Template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: trustCenterDocProtected.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestCreateTrustCenterNDA(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) testCases := []struct { name string ctx context.Context @@ -124,7 +123,7 @@ func TestCreateTrustCenterNDA(t *testing.T) { }{ { name: "happy path", - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, input: testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, @@ -132,7 +131,7 @@ func TestCreateTrustCenterNDA(t *testing.T) { }, { name: "missing upload", - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, input: testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, @@ -140,7 +139,7 @@ func TestCreateTrustCenterNDA(t *testing.T) { }, { name: "Other user cannot create NDA", - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, input: testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, @@ -188,20 +187,25 @@ func TestCreateTrustCenterNDA(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestAnonymousUserCanQueryTrustCenterNDA(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter + + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) input := testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, } + uploadFiles := []string{pdfFilePath} uploads := []*graphql.Upload{} expectUploads := []graphql.Upload{} + for _, file := range uploadFiles { up := uploadFile(t, file) expectUploads = append(expectUploads, *up) @@ -212,7 +216,7 @@ func TestAnonymousUserCanQueryTrustCenterNDA(t *testing.T) { expectUpload(t, suite.client.mockProvider, expectUploads) } - resp, err := suite.client.api.CreateTrustCenterNda(testUser1.UserCtx, input, uploads) + resp, err := suite.client.api.CreateTrustCenterNda(tcOrg.owner.UserCtx, input, uploads) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -221,40 +225,41 @@ func TestAnonymousUserCanQueryTrustCenterNDA(t *testing.T) { // expect an upload and a delete since the upload will be rolled back on error expectUpload(t, suite.client.mockProvider, expectUploads) expectDelete(t, suite.client.mockProvider, expectUploads) - _, err = suite.client.api.CreateTrustCenterNda(testUser1.UserCtx, input, uploads) + _, err = suite.client.api.CreateTrustCenterNda(tcOrg.owner.UserCtx, input, uploads) assert.ErrorContains(t, err, "template already exists") // check an anonymous user for this trust center can query the NDA - queryResp, err := suite.client.api.GetAllTemplates(createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID)) + queryResp, err := suite.client.api.GetAllTemplates(createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID)) assert.NilError(t, err) assert.Assert(t, queryResp != nil) assert.Check(t, len(queryResp.Templates.Edges) == 1) assert.Check(t, queryResp.Templates.Edges[0].Node.ID == resp.CreateTrustCenterNda.Template.ID) // ... and that an anonymous user for a different trust center cannot query the NDA - queryResp2, err := suite.client.api.GetAllTemplates(createAnonymousTrustCenterContext(trustCenter2.ID, testUser2.OrganizationID)) + queryResp2, err := suite.client.api.GetAllTemplates(createAnonymousTrustCenterContext(trustCenter2.ID, tcOrg2.organizationID)) assert.NilError(t, err) assert.Assert(t, queryResp2 != nil) assert.Check(t, len(queryResp2.Templates.Edges) == 0) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: resp.CreateTrustCenterNda.Template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestSubmitTrustCenterNDAResponse(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter + + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) up := uploadFile(t, pdfFilePath) - expectUpload(t, suite.client.mockProvider, []graphql.Upload{*up}) // the happy path triggers attestNDADocument which uploads the attested PDF expectAttestedUpload(t, suite.client.mockProvider) - trustCenterNDA, err := suite.client.api.CreateTrustCenterNda(testUser1.UserCtx, testclient.CreateTrustCenterNDAInput{ + trustCenterNDA, err := suite.client.api.CreateTrustCenterNda(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, []*graphql.Upload{up}) @@ -424,24 +429,23 @@ func TestSubmitTrustCenterNDAResponse(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) - (&Cleanup[*generated.DocumentDataDeleteOne]{client: suite.client.db.DocumentData, ID: resp.SubmitTrustCenterNDAResponse.DocumentData.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.DocumentDataDeleteOne]{client: suite.client.db.DocumentData, ID: resp.SubmitTrustCenterNDAResponse.DocumentData.ID}).MustDelete(tcOrg.owner.UserCtx, t) }) } - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: trustCenterNDA.CreateTrustCenterNda.Template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestUpdateTrustCenterNDA(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter up1 := uploadFile(t, pdfFilePath) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*up1}) - createResp, err := suite.client.api.CreateTrustCenterNda(testUser1.UserCtx, testclient.CreateTrustCenterNDAInput{ + createResp, err := suite.client.api.CreateTrustCenterNda(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDAInput{ TrustCenterID: trustCenter.ID, }, []*graphql.Upload{up1}) @@ -454,7 +458,7 @@ func TestUpdateTrustCenterNDA(t *testing.T) { secondUpload := uploadFile(t, logoFilePath) expectUpload(t, suite.client.mockProvider, []graphql.Upload{*secondUpload}) - updateResp, err := suite.client.api.UpdateTrustCenterNda(testUser1.UserCtx, trustCenter.ID, []*graphql.Upload{secondUpload}) + updateResp, err := suite.client.api.UpdateTrustCenterNda(tcOrg.owner.UserCtx, trustCenter.ID, []*graphql.Upload{secondUpload}) assert.NilError(t, err) assert.Assert(t, updateResp != nil) @@ -464,6 +468,5 @@ func TestUpdateTrustCenterNDA(t *testing.T) { newFileID := updateResp.UpdateTrustCenterNda.Template.Files.Edges[0].Node.ID assert.Check(t, newFileID != fileID) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: createResp.CreateTrustCenterNda.Template.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterndarequest_test.go b/internal/graphapi/trustcenterndarequest_test.go index 5efcffd3e2..344211a82f 100644 --- a/internal/graphapi/trustcenterndarequest_test.go +++ b/internal/graphapi/trustcenterndarequest_test.go @@ -14,30 +14,18 @@ import ( "gotest.tools/v3/assert" "github.com/theopenlane/core/common/enums" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" "github.com/theopenlane/core/internal/httpserve/authmanager" ) func TestMutationCreateTrustCenterNDARequest(t *testing.T) { - cleanupTrustCenterData(t) - trustCenterNoApproval := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenterNoApproval := tcOrg.trustCenter - ndaTemplate1 := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenterNoApproval.ID, - }).MustNew(testUser1.UserCtx, t) - - trustCenterWithApproval := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - - ndaTemplate2 := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenterWithApproval.ID, - }).MustNew(testUser2.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t, withNDATemplate(), withAllUserTypes()) + trustCenterWithApproval := tcOrg2.trustCenter - _, err := suite.client.api.UpdateTrustCenter(testUser2.UserCtx, trustCenterWithApproval.ID, testclient.UpdateTrustCenterInput{ + _, err := suite.client.api.UpdateTrustCenter(tcOrg2.admin.UserCtx, trustCenterWithApproval.ID, testclient.UpdateTrustCenterInput{ UpdateTrustCenterSetting: &testclient.UpdateTrustCenterSettingInput{ NdaApprovalRequired: lo.ToPtr(true), }, @@ -85,7 +73,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - no approval required, status should be REQUESTED", input: noApprovalRequiredRequest, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusRequested, expectEmailSent: ndaEmail, }, @@ -93,7 +81,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - resend request with no approval required, status should be REQUESTED", input: noApprovalRequiredRequest, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusRequested, expectEmailSent: ndaEmail, setStatus: &enums.TrustCenterNDARequestStatusSigned, @@ -102,7 +90,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - approval required, status should be NEEDS_APPROVAL, set to approved", input: emailApprovedRequest, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusNeedsApproval, expectEmailSent: "", // no email because not approved yet setStatus: &enums.TrustCenterNDARequestStatusApproved, @@ -112,7 +100,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - sign after approval", input: emailApprovedRequest, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.admin.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusApproved, expectEmailSent: ndaEmail, setStatus: &enums.TrustCenterNDARequestStatusSigned, @@ -121,7 +109,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - re-request after approval", input: emailApprovedRequest, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.superAdmin.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusSigned, expectEmailSent: authEmail, // no email because already signed and not updating in the request here @@ -130,7 +118,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { name: "happy path - approval required, status should be NEEDS_APPROVAL, set to declined for next test", input: emailDeclinedRequest, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusNeedsApproval, expectEmailSent: "", // no email because not approved yet setStatus: &enums.TrustCenterNDARequestStatusDeclined, @@ -147,7 +135,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { TrustCenterID: &trustCenterNoApproval.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedStatus: enums.TrustCenterNDARequestStatusRequested, expectEmailSent: ndaEmail, }, @@ -160,7 +148,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { TrustCenterID: &trustCenterNoApproval.ID, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -172,7 +160,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { TrustCenterID: &trustCenterWithApproval.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -184,7 +172,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { TrustCenterID: &trustCenterNoApproval.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "validator failed", }, { @@ -196,7 +184,7 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { TrustCenterID: &trustCenterNoApproval.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "first_name", }, } @@ -294,32 +282,16 @@ func TestMutationCreateTrustCenterNDARequest(t *testing.T) { }) } - reqCleanupOrg1 = lo.Uniq(reqCleanupOrg1) - reqCleanupOrg2 = lo.Uniq(reqCleanupOrg2) - - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, IDs: reqCleanupOrg1}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, IDs: reqCleanupOrg2}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate1.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterNoApproval.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenterWithApproval.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestQueryTrustCenterNDARequest(t *testing.T) { - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate(), withAllUserTypes()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser.UserCtx, t) - - ndaRequest, err := suite.client.api.CreateTrustCenterNDARequest(testUser.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaRequest, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -338,26 +310,26 @@ func TestQueryTrustCenterNDARequest(t *testing.T) { name: "happy path", queryID: ndaRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, view only user", queryID: ndaRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, }, { name: "not found, different org", queryID: ndaRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found, invalid id", queryID: ulids.New().String(), client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -376,28 +348,15 @@ func TestQueryTrustCenterNDARequest(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: ndaRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterNDARequests(t *testing.T) { - cleanupTrustCenterData(t) - testUser := suite.userBuilder(context.Background(), t) - om := (&OrgMemberBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter - viewOnlyUserCtx := auth.NewTestContextWithOrgID(om.UserID, testUser.OrganizationID) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser.UserCtx, t) - - ndaRequest1, err := suite.client.api.CreateTrustCenterNDARequest(testUser.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + _, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -405,7 +364,7 @@ func TestQueryTrustCenterNDARequests(t *testing.T) { }) assert.NilError(t, err) - ndaRequest2, err := suite.client.api.CreateTrustCenterNDARequest(testUser.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + _, err = suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -422,19 +381,19 @@ func TestQueryTrustCenterNDARequests(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, expectCount: 2, }, { name: "happy path, view only user", client: suite.client.api, - ctx: viewOnlyUserCtx, + ctx: tcOrg.member.UserCtx, expectCount: 2, }, { name: "different org, no results", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectCount: 0, }, } @@ -448,30 +407,21 @@ func TestQueryTrustCenterNDARequests(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: ndaRequest1.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: ndaRequest2.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) - - _, err := suite.client.api.UpdateTrustCenter(testUser1.UserCtx, trustCenter.ID, testclient.UpdateTrustCenterInput{ + _, err := suite.client.api.UpdateTrustCenter(tcOrg.owner.UserCtx, trustCenter.ID, testclient.UpdateTrustCenterInput{ UpdateTrustCenterSetting: &testclient.UpdateTrustCenterSettingInput{ NdaApprovalRequired: lo.ToPtr(true), }, }) assert.NilError(t, err) - ndaRequest, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaRequest, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -494,7 +444,7 @@ func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { FirstName: lo.ToPtr("UpdatedFirstName"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectEmailSent: false, }, { @@ -503,7 +453,7 @@ func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { Status: lo.ToPtr(enums.TrustCenterNDARequestStatusApproved), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, expectEmailSent: true, }, { @@ -512,7 +462,7 @@ func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { FirstName: lo.ToPtr("ShouldNotUpdate"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, expectEmailSent: false, }, @@ -522,8 +472,8 @@ func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { FirstName: lo.ToPtr("ShouldNotUpdate"), }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: sharedTestUser2.UserCtx, + expectedErr: notFoundErrorMsg, expectEmailSent: false, }, } @@ -570,30 +520,30 @@ func TestMutationUpdateTrustCenterNDARequest(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: ndaRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationCreateTrustCenterNDARequestAsAnonymousUser(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - otherTrustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter + + tcOrg2 := createFreshOrgWithTrustCenter(t, withNDATemplate()) + otherTrustCenter := tcOrg2.trustCenter - ndaFile := (&FileBuilder{client: suite.client, Name: "nda.pdf"}).MustNew(testUser1.UserCtx, t) + ndaFile := (&FileBuilder{client: suite.client, Name: "nda.pdf"}).MustNew(tcOrg.owner.UserCtx, t) ndaTemplate := (&TemplateBuilder{ client: suite.client, Kind: enums.TemplateKindTrustCenterNda, TrustCenterID: trustCenter.ID, FileIDs: []string{ndaFile.ID}, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) otherNdaTemplate := (&TemplateBuilder{ client: suite.client, Kind: enums.TemplateKindTrustCenterNda, TrustCenterID: otherTrustCenter.ID, - }).MustNew(testUser2.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) anonEmail := gofakeit.Email() anonCtx, anonUser := createAnonymousTrustCenterContextWithEmail(trustCenter.ID, trustCenter.OwnerID, anonEmail) @@ -694,7 +644,7 @@ func TestMutationCreateTrustCenterNDARequestAsAnonymousUser(t *testing.T) { // now sign the nda to ensure status is set correctly _, err = suite.client.api.SubmitTrustCenterNDAResponse(anonCtx, testclient.SubmitTrustCenterNDAResponseInput{ - TemplateID: ndaTemplate.ID, + TemplateID: *tcOrg.ndaTemplateID, Response: map[string]any{ "signatory_info": map[string]any{ "email": anonUser.SubjectEmail, @@ -717,30 +667,21 @@ func TestMutationCreateTrustCenterNDARequestAsAnonymousUser(t *testing.T) { assert.NilError(t, err) assert.Equal(t, enums.TrustCenterNDARequestStatusSigned, *updatedReq.TrustCenterNDARequest.Status) } - - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: resp.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser1.UserCtx, t) }) } - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: otherNdaTemplate.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: otherTrustCenter.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter email := gofakeit.Email() - originalRequest, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + originalRequest, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: email, @@ -749,7 +690,7 @@ func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { assert.NilError(t, err) t.Run("duplicate email returns existing request with REQUESTED status", func(t *testing.T) { - resp, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + resp, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: email, @@ -760,12 +701,12 @@ func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { }) t.Run("duplicate email returns existing request with NEEDS_APPROVAL status", func(t *testing.T) { - _, err := suite.client.api.UpdateTrustCenterNDARequest(testUser1.UserCtx, originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ + _, err := suite.client.api.UpdateTrustCenterNDARequest(tcOrg.owner.UserCtx, originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ Status: lo.ToPtr(enums.TrustCenterNDARequestStatusNeedsApproval), }) assert.NilError(t, err) - resp, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + resp, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: email, @@ -776,12 +717,12 @@ func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { }) t.Run("duplicate email returns existing request with APPROVED status", func(t *testing.T) { - _, err := suite.client.api.UpdateTrustCenterNDARequest(testUser1.UserCtx, originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ + _, err := suite.client.api.UpdateTrustCenterNDARequest(tcOrg.owner.UserCtx, originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ Status: lo.ToPtr(enums.TrustCenterNDARequestStatusApproved), }) assert.NilError(t, err) - resp, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + resp, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: email, @@ -792,7 +733,7 @@ func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { }) t.Run("different email creates new request", func(t *testing.T) { - resp, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + resp, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -800,26 +741,17 @@ func TestMutationCreateTrustCenterNDARequestDuplicateEmail(t *testing.T) { }) assert.NilError(t, err) assert.Assert(t, originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID != resp.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID) - - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: resp.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser1.UserCtx, t) }) - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: originalRequest.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationDeleteTrustCenterNDARequest(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate(), withAllUserTypes()) + trustCenter := tcOrg.trustCenter - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) - - ndaRequest1, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaRequest1, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -827,7 +759,7 @@ func TestMutationDeleteTrustCenterNDARequest(t *testing.T) { }) assert.NilError(t, err) - ndaRequest2, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaRequest2, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -835,7 +767,7 @@ func TestMutationDeleteTrustCenterNDARequest(t *testing.T) { }) assert.NilError(t, err) - ndaRequest3, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + _, err = suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -854,40 +786,40 @@ func TestMutationDeleteTrustCenterNDARequest(t *testing.T) { name: "member cannot delete", idToDelete: ndaRequest1.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "different org cannot delete", idToDelete: ndaRequest1.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: sharedTestUser2.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "admin can delete", idToDelete: ndaRequest1.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { - name: "owner can delete", + name: "super admin can delete", idToDelete: ndaRequest2.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "already deleted, not found", idToDelete: ndaRequest1.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "invalid id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -906,20 +838,12 @@ func TestMutationDeleteTrustCenterNDARequest(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, ID: ndaRequest3.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationRequestNewTrustCenterToken(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter ndaSigned := testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), @@ -942,21 +866,21 @@ func TestMutationRequestNewTrustCenterToken(t *testing.T) { TrustCenterID: &trustCenter.ID, } - ndaRequestSigned, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, ndaSigned) + ndaRequestSigned, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaSigned) assert.NilError(t, err) - ndaRequestRequested, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, ndaRequested) + _, err = suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaRequested) assert.NilError(t, err) - ndaRequestNeedsApproval, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, ndaNeedsApproval) + ndaRequestNeedsApproval, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaNeedsApproval) assert.NilError(t, err) - _, err = suite.client.api.UpdateTrustCenterNDARequest(testUser1.UserCtx, ndaRequestSigned.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ + _, err = suite.client.api.UpdateTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaRequestSigned.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ Status: lo.ToPtr(enums.TrustCenterNDARequestStatusSigned), }) assert.NilError(t, err) - _, err = suite.client.api.UpdateTrustCenterNDARequest(testUser1.UserCtx, ndaRequestNeedsApproval.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ + _, err = suite.client.api.UpdateTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaRequestNeedsApproval.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, testclient.UpdateTrustCenterNDARequestInput{ Status: lo.ToPtr(enums.TrustCenterNDARequestStatusNeedsApproval), }) assert.NilError(t, err) @@ -1006,7 +930,7 @@ func TestMutationRequestNewTrustCenterToken(t *testing.T) { name: "not anonymous context, error", email: gofakeit.Email(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, } @@ -1048,30 +972,22 @@ func TestMutationRequestNewTrustCenterToken(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterNDARequestDeleteOne]{client: suite.client.db.TrustCenterNDARequest, IDs: []string{ndaRequestSigned.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID, ndaRequestRequested.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID}}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationRevokeNDARequestsRemovesDocAccess(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter protectedDoc := (&TrustCenterDocBuilder{ client: suite.client, TrustCenterID: trustCenter.ID, Visibility: enums.TrustCenterDocumentVisibilityProtected, - }).MustNew(testUser1.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // create two NDA requests - ndaReq1, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaReq1, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -1079,7 +995,7 @@ func TestMutationRevokeNDARequestsRemovesDocAccess(t *testing.T) { }) assert.NilError(t, err) - ndaReq2, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + ndaReq2, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -1113,7 +1029,7 @@ func TestMutationRevokeNDARequestsRemovesDocAccess(t *testing.T) { Relation: "nda_signed", }) - _, err := suite.client.db.Authz.WriteTupleKeys(testUser1.UserCtx, []fgax.TupleKey{tuple}, nil) + _, err := suite.client.db.Authz.WriteTupleKeys(tcOrg.owner.UserCtx, []fgax.TupleKey{tuple}, nil) assert.NilError(t, err) } @@ -1125,7 +1041,7 @@ func TestMutationRevokeNDARequestsRemovesDocAccess(t *testing.T) { } // now we are revoking the NDA requests - revokeResp, err := suite.client.api.DeleteBulkTrustCenterNDARequest(testUser1.UserCtx, ndaReqIDs) + revokeResp, err := suite.client.api.DeleteBulkTrustCenterNDARequest(tcOrg.owner.UserCtx, ndaReqIDs) assert.NilError(t, err) assert.Equal(t, len(ndaReqIDs), len(revokeResp.DeleteBulkTrustCenterNDARequest.DeletedIDs)) @@ -1138,24 +1054,17 @@ func TestMutationRevokeNDARequestsRemovesDocAccess(t *testing.T) { // verify the NDA requests are actually deleted for _, id := range ndaReqIDs { - _, err = suite.client.api.GetTrustCenterNDARequestByID(testUser1.UserCtx, id) + _, err = suite.client.api.GetTrustCenterNDARequestByID(tcOrg.owner.UserCtx, id) assert.ErrorContains(t, err, notFoundErrorMsg) } - (&Cleanup[*generated.TrustCenterDocDeleteOne]{client: suite.client.db.TrustCenterDoc, ID: protectedDoc.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: ndaTemplate.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationBulkDeleteTrustCenterNDARequest(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - _ = (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - }).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withNDATemplate()) + trustCenter := tcOrg.trustCenter count := 5 // members cannot bulk delete anymore @@ -1163,7 +1072,7 @@ func TestMutationBulkDeleteTrustCenterNDARequest(t *testing.T) { ids := make([]string, 0, count) for range count { - resp, err := suite.client.api.CreateTrustCenterNDARequest(testUser1.UserCtx, testclient.CreateTrustCenterNDARequestInput{ + resp, err := suite.client.api.CreateTrustCenterNDARequest(tcOrg.owner.UserCtx, testclient.CreateTrustCenterNDARequestInput{ FirstName: gofakeit.FirstName(), LastName: gofakeit.LastName(), Email: gofakeit.Email(), @@ -1174,9 +1083,9 @@ func TestMutationBulkDeleteTrustCenterNDARequest(t *testing.T) { ids = append(ids, resp.CreateTrustCenterNDARequest.TrustCenterNDARequest.ID) } - resp, err := suite.client.api.DeleteBulkTrustCenterNDARequest(viewOnlyUser.UserCtx, ids) + resp, err := suite.client.api.DeleteBulkTrustCenterNDARequest(tcOrg.member.UserCtx, ids) assert.NilError(t, err) assert.Equal(t, expectedDeletedItems, len(resp.DeleteBulkTrustCenterNDARequest.DeletedIDs)) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcentersetting_test.go b/internal/graphapi/trustcentersetting_test.go index d474732086..de9e1dcdd5 100644 --- a/internal/graphapi/trustcentersetting_test.go +++ b/internal/graphapi/trustcentersetting_test.go @@ -12,7 +12,6 @@ import ( "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/common/jobspec" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" ) @@ -20,20 +19,19 @@ import ( // Note: Trust center settings are created automatically when a trust center is created (both live and preview). // This test verifies that we can create a deleted setting again after deletion. func TestCreateTrustCenterSetting(t *testing.T) { + t.Parallel() // Test 1: happy path - recreate a deleted live setting t.Run("Create happy path - recreate deleted live setting", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID // Delete the live setting - _, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, settingID) + _, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.owner.UserCtx, settingID) assert.NilError(t, err) // Recreate the setting - resp, err := suite.client.api.CreateTrustCenterSetting(testUser1.UserCtx, testclient.CreateTrustCenterSettingInput{ - TrustCenterID: &trustCenter.ID, + resp, err := suite.client.api.CreateTrustCenterSetting(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSettingInput{ + TrustCenterID: &tcOrg.trustCenter.ID, Title: lo.ToPtr("Test Setting"), Overview: lo.ToPtr("Test Overview"), PrimaryColor: lo.ToPtr("#FF0000"), @@ -43,32 +41,25 @@ func TestCreateTrustCenterSetting(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, resp.CreateTrustCenterSetting.TrustCenterSetting.ID != "") - assert.Check(t, is.Equal(trustCenter.ID, *resp.CreateTrustCenterSetting.TrustCenterSetting.TrustCenterID)) + assert.Check(t, is.Equal(tcOrg.trustCenter.ID, *resp.CreateTrustCenterSetting.TrustCenterSetting.TrustCenterID)) assert.Check(t, is.Equal("Test Setting", *resp.CreateTrustCenterSetting.TrustCenterSetting.Title)) assert.Check(t, is.Equal("#FF0000", *resp.CreateTrustCenterSetting.TrustCenterSetting.PrimaryColor)) // Clean up - (&Cleanup[*generated.TrustCenterSettingDeleteOne]{ - client: suite.client.db.TrustCenterSetting, - ID: resp.CreateTrustCenterSetting.TrustCenterSetting.ID, - }).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 2: happy path - recreate with all color fields t.Run("Create happy path - recreate with all color fields", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID // Delete the live setting - _, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, settingID) + _, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.owner.UserCtx, settingID) assert.NilError(t, err) // Recreate with all color fields - resp, err := suite.client.api.CreateTrustCenterSetting(testUser1.UserCtx, testclient.CreateTrustCenterSettingInput{ - TrustCenterID: &trustCenter.ID, + resp, err := suite.client.api.CreateTrustCenterSetting(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSettingInput{ Title: lo.ToPtr("Full Color Setting"), PrimaryColor: lo.ToPtr("#FF0000"), ForegroundColor: lo.ToPtr("#000000"), @@ -85,31 +76,24 @@ func TestCreateTrustCenterSetting(t *testing.T) { assert.Check(t, is.Equal("#000000", *resp.CreateTrustCenterSetting.TrustCenterSetting.ForegroundColor)) // Clean up - (&Cleanup[*generated.TrustCenterSettingDeleteOne]{ - client: suite.client.db.TrustCenterSetting, - ID: resp.CreateTrustCenterSetting.TrustCenterSetting.ID, - }).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 3: happy path - recreate with theme mode t.Run("Create happy path - recreate with theme mode", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID // Delete the live setting - _, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, settingID) + _, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.owner.UserCtx, settingID) assert.NilError(t, err) // Recreate with theme mode - resp, err := suite.client.api.CreateTrustCenterSetting(testUser1.UserCtx, testclient.CreateTrustCenterSettingInput{ - TrustCenterID: &trustCenter.ID, - Title: lo.ToPtr("Theme Setting"), - ThemeMode: lo.ToPtr(enums.TrustCenterThemeModeAdvanced), - Font: lo.ToPtr("Arial, sans-serif"), - Environment: lo.ToPtr(enums.TrustCenterEnvironmentLive), + resp, err := suite.client.api.CreateTrustCenterSetting(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSettingInput{ + Title: lo.ToPtr("Theme Setting"), + ThemeMode: lo.ToPtr(enums.TrustCenterThemeModeAdvanced), + Font: lo.ToPtr("Arial, sans-serif"), + Environment: lo.ToPtr(enums.TrustCenterEnvironmentLive), }, nil, nil, nil, nil) assert.NilError(t, err) @@ -117,42 +101,36 @@ func TestCreateTrustCenterSetting(t *testing.T) { assert.Check(t, is.Equal(enums.TrustCenterThemeModeAdvanced, *resp.CreateTrustCenterSetting.TrustCenterSetting.ThemeMode)) // Clean up - (&Cleanup[*generated.TrustCenterSettingDeleteOne]{ - client: suite.client.db.TrustCenterSetting, - ID: resp.CreateTrustCenterSetting.TrustCenterSetting.ID, - }).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 4: not authorized - view only user cannot create t.Run("Create not authorized - view only user", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID // Delete the live setting - _, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, settingID) + _, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.owner.UserCtx, settingID) assert.NilError(t, err) // Try to recreate as view only user - _, err = suite.client.api.CreateTrustCenterSetting(viewOnlyUser.UserCtx, testclient.CreateTrustCenterSettingInput{ - TrustCenterID: &trustCenter.ID, - Title: lo.ToPtr("Unauthorized"), - Environment: lo.ToPtr(enums.TrustCenterEnvironmentLive), + _, err = suite.client.api.CreateTrustCenterSetting(tcOrg.member.UserCtx, testclient.CreateTrustCenterSettingInput{ + Title: lo.ToPtr("Unauthorized"), + Environment: lo.ToPtr(enums.TrustCenterEnvironmentLive), }, nil, nil, nil, nil) assert.ErrorContains(t, err, notAuthorizedErrorMsg) // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) } // TestQueryTrustCenterSetting tests the trustCenterSetting query func TestQueryTrustCenterSetting(t *testing.T) { - cleanupTrustCenterData(t) - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter testCases := []struct { name string @@ -165,19 +143,19 @@ func TestQueryTrustCenterSetting(t *testing.T) { name: "happy path - query trust center setting by ID", settingID: trustCenter.Edges.Setting.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path - query trust center preview setting by ID", settingID: trustCenter.Edges.PreviewSetting.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "trust center setting not found", settingID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -198,15 +176,15 @@ func TestQueryTrustCenterSetting(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } // TestUpdateTrustCenterSetting tests the updateTrustCenterSetting mutation func TestUpdateTrustCenterSetting(t *testing.T) { - cleanupTrustCenterData(t) + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) testCases := []struct { name string @@ -224,7 +202,7 @@ func TestUpdateTrustCenterSetting(t *testing.T) { Title: lo.ToPtr("Updated Title"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path - update title of preview setting", @@ -233,7 +211,7 @@ func TestUpdateTrustCenterSetting(t *testing.T) { Title: lo.ToPtr("Updated Title Preview"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, expectJob: true, // updating preview setting should enqueue a job to create preview domain }, { @@ -246,7 +224,7 @@ func TestUpdateTrustCenterSetting(t *testing.T) { ForegroundColor: lo.ToPtr("#111111"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - update theme mode", @@ -255,7 +233,7 @@ func TestUpdateTrustCenterSetting(t *testing.T) { ThemeMode: lo.ToPtr(enums.TrustCenterThemeModeEasy), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized - view only user", @@ -264,18 +242,19 @@ func TestUpdateTrustCenterSetting(t *testing.T) { Title: lo.ToPtr("Unauthorized"), }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized - different org user", settingID: trustCenter.Edges.Setting.ID, input: testclient.UpdateTrustCenterSettingInput{ - Title: lo.ToPtr("Unauthorized"), + TrustCenterID: &tcOrg.trustCenter.ID, + Title: lo.ToPtr("Unauthorized"), }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg2.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "trust center setting not found", @@ -284,7 +263,7 @@ func TestUpdateTrustCenterSetting(t *testing.T) { Title: lo.ToPtr("Not Found"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -337,63 +316,61 @@ func TestUpdateTrustCenterSetting(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } // TestDeleteTrustCenterSetting tests the deleteTrustCenterSetting mutation func TestDeleteTrustCenterSetting(t *testing.T) { + t.Parallel() // Test 1: happy path - delete trust center setting t.Run("Delete happy path - delete trust center setting", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID - resp, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, settingID) + resp, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.owner.UserCtx, settingID) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(settingID, resp.DeleteTrustCenterSetting.DeletedID)) // Verify the setting is deleted - _, err = suite.client.api.GetTrustCenterSettingByID(testUser1.UserCtx, settingID) + _, err = suite.client.api.GetTrustCenterSettingByID(tcOrg.owner.UserCtx, settingID) assert.ErrorContains(t, err, notFoundErrorMsg) // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 2: not authorized - view only user t.Run("Delete not authorized - view only user", func(t *testing.T) { - cleanupTrustCenterData(t) + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID - - _, err := suite.client.api.DeleteTrustCenterSetting(viewOnlyUser.UserCtx, settingID) + _, err := suite.client.api.DeleteTrustCenterSetting(tcOrg.member.UserCtx, settingID) assert.ErrorContains(t, err, notAuthorizedErrorMsg) // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 3: not authorized - different org user t.Run("Delete not authorized - different org user", func(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - settingID := trustCenter.Edges.Setting.ID + tcOrg := createFreshOrgWithTrustCenter(t) + settingID := tcOrg.trustCenter.Edges.Setting.ID - _, err := suite.client.api.DeleteTrustCenterSetting(testUser2.UserCtx, settingID) - assert.ErrorContains(t, err, notAuthorizedErrorMsg) + _, err := suite.client.api.DeleteTrustCenterSetting(sharedTestUser2.UserCtx, settingID) + assert.ErrorContains(t, err, notFoundErrorMsg) // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) }) // Test 4: trust center setting not found t.Run("Delete trust center setting not found", func(t *testing.T) { - _, err := suite.client.api.DeleteTrustCenterSetting(testUser1.UserCtx, "non-existent-id") + localTestUser := suite.seedFreshOrgUsers(t) // create new org with no trust center + _, err := suite.client.api.DeleteTrustCenterSetting(localTestUser.owner.UserCtx, "non-existent-id") assert.ErrorContains(t, err, notFoundErrorMsg) + + cleanupOrganizationDataWithContext(localTestUser.owner.UserCtx, t) }) } diff --git a/internal/graphapi/trustcentersubprocessor_test.go b/internal/graphapi/trustcentersubprocessor_test.go index a9a18fd7ab..0d10474427 100644 --- a/internal/graphapi/trustcentersubprocessor_test.go +++ b/internal/graphapi/trustcentersubprocessor_test.go @@ -7,35 +7,26 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/brianvoe/gofakeit/v7" "github.com/samber/lo" - "github.com/theopenlane/core/common/enums" - "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/graphapi/testclient" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { - // Create test data - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) - - // Create test data - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) // Create subprocessors for testing - subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -52,7 +43,7 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { Countries: []string{"US", "CA"}, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized - view only user cannot create trust center subprocessor", @@ -63,7 +54,7 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { Countries: []string{"US"}, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -75,7 +66,7 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { Countries: []string{"US"}, }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -87,7 +78,7 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { Countries: []string{"US"}, }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { @@ -99,8 +90,8 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { Countries: []string{"US"}, }, client: suite.client.api, - ctx: testUser.UserCtx, - expectedErr: notFoundErrorMsg, + ctx: tcOrg.owner.UserCtx, + expectedErr: invalidInputErrorMsg, }, } @@ -125,33 +116,26 @@ func TestMutationCreateTrustCenterSubprocessor(t *testing.T) { // Verify subprocessor details are included assert.Check(t, resp.CreateTrustCenterSubprocessor.TrustCenterSubprocessor.Subprocessor.Name != "") - - // Clean up - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: resp.CreateTrustCenterSubprocessor.TrustCenterSubprocessor.ID}).MustDelete(tc.ctx, t) }) } // Clean up test data - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor1.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationCreateTrustCenterSubprocessorAsAnonymousUser(t *testing.T) { - // create new test users - testUser := suite.userBuilder(context.Background(), t) - - // Create a trust center for testing - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter // Create a subprocessor for testing - subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.admin.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) testCases := []struct { name string @@ -170,7 +154,7 @@ func TestMutationCreateTrustCenterSubprocessorAsAnonymousUser(t *testing.T) { Countries: []string{"US"}, }, trustCenterID: trustCenter.ID, - organizationID: testUser.OrganizationID, + organizationID: tcOrg.owner.OrganizationID, client: suite.client.api, expectedErr: "could not identify authenticated user", }, @@ -189,26 +173,23 @@ func TestMutationCreateTrustCenterSubprocessorAsAnonymousUser(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(testUser.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterSubprocessorByID(t *testing.T) { - // Create test data - testUser := suite.userBuilder(context.Background(), t) - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + subprocessor := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Create a trust center subprocessor using GraphQL mutation - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.admin.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -218,22 +199,23 @@ func TestQueryTrustCenterSubprocessorByID(t *testing.T) { tcSubprocessor := createResp.CreateTrustCenterSubprocessor.TrustCenterSubprocessor // Create another trust center subprocessor for different org - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter + + subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) kind2 := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser2.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) - createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(testUser2.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + _, err = suite.client.api.CreateTrustCenterSubprocessor(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor2.ID, TrustCenterID: &trustCenter2.ID, TrustCenterSubprocessorKindName: &kind2.Name, Countries: []string{"EU"}, }) assert.NilError(t, err) - tcSubprocessor2 := createResp2.CreateTrustCenterSubprocessor.TrustCenterSubprocessor testCases := []struct { name string @@ -246,39 +228,39 @@ func TestQueryTrustCenterSubprocessorByID(t *testing.T) { name: "happy path - get trust center subprocessor", queryID: tcSubprocessor.ID, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - view only user can get trust center subprocessor", queryID: tcSubprocessor.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, }, { name: "happy path - anon user", queryID: tcSubprocessor.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), }, { name: "not found - different org user cannot access trust center subprocessor", queryID: tcSubprocessor.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: tcOrg2.owner.UserCtx, errorMsg: notFoundErrorMsg, }, { name: "not found - different anonymous user cannot access trust center subprocessor", queryID: tcSubprocessor.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter2.ID, testUser2.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter2.ID, tcOrg2.organizationID), errorMsg: notFoundErrorMsg, }, { name: "not found - non-existent ID", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, errorMsg: notFoundErrorMsg, }, } @@ -301,60 +283,52 @@ func TestQueryTrustCenterSubprocessorByID(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor2.ID}).MustDelete(testUser2.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { + t.Parallel() // Create test data - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) - - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter // Create test data - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor4 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor5 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor6 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + subprocessor4 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.admin.UserCtx, t) + subprocessor5 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + subprocessor6 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.superAdmin.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Create another trust center subprocessor for different org - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) - subprocessorOtherOrg := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser2.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter2 := tcOrg2.trustCenter + + subprocessorOtherOrg := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg2.admin.UserCtx, t) kind2 := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser2.UserCtx, t) + }).MustNew(tcOrg2.superAdmin.UserCtx, t) - createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(testUser2.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + _, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessorOtherOrg.ID, TrustCenterID: &trustCenter2.ID, TrustCenterSubprocessorKindName: &kind2.Name, Countries: []string{"EU"}, }) assert.NilError(t, err) - tcSubprocessor2 := createResp2.CreateTrustCenterSubprocessor.TrustCenterSubprocessor newKind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.admin.UserCtx, t) newCountries := []string{"US", "CA", "EU"} testCases := []struct { @@ -368,7 +342,7 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { { name: "happy path - update kind and countries", setupFunc: func() string { - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor1.ID, TrustCenterSubprocessorKindName: &kind.Name, Countries: []string{"US"}, @@ -381,12 +355,12 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { Countries: newCountries, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path - append countries", setupFunc: func() string { - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor4.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -399,12 +373,12 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { AppendCountries: []string{"MX"}, }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path - clear countries", setupFunc: func() string { - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor5.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -417,12 +391,12 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { ClearCountries: lo.ToPtr(true), }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "not authorized - view only user cannot update", setupFunc: func() string { - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor6.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -435,14 +409,14 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { TrustCenterSubprocessorKindName: &newKind.Name, }, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized - anon user cannot update", setupFunc: func() string { - subprocessoranon := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + subprocessoranon := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessoranon.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -455,15 +429,15 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { TrustCenterSubprocessorKindName: &newKind.Name, }, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedErr: "could not identify authenticated user", }, { name: "not authorized - different org user cannot update", setupFunc: func() string { // Create a separate subprocessor for this test to avoid conflicts - subprocessor7 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - createResp, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + subprocessor7 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + createResp, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor7.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -476,8 +450,8 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { TrustCenterSubprocessorKindName: &newKind.Name, }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg2.owner.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "not found - non-existent ID", @@ -486,7 +460,7 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { TrustCenterSubprocessorKindName: &newKind.Name, }, client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -523,38 +497,27 @@ func TestMutationUpdateTrustCenterSubprocessor(t *testing.T) { }) } - // Clean up created trust center subprocessors - if len(createdIDs) > 0 { - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, IDs: createdIDs}).MustDelete(testUser.UserCtx, t) - } - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUser2.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessor2.ID, subprocessor3.ID, subprocessor4.ID, subprocessor5.ID, subprocessor6.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessorOtherOrg.ID}).MustDelete(testUser2.UserCtx, t) + // Clean up created org + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestMutationDeleteTrustCenterSubprocessor(t *testing.T) { + t.Parallel() // Create test data - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) - - adminUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &adminUser, enums.RoleAdmin, testUser.OrganizationID) + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) + subprocessor1 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) + subprocessor2 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg.owner.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) // Create trust center subprocessors to delete - createResp1, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp1, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor1.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -563,7 +526,7 @@ func TestMutationDeleteTrustCenterSubprocessor(t *testing.T) { assert.NilError(t, err) tcSubprocessor1 := createResp1.CreateTrustCenterSubprocessor.TrustCenterSubprocessor - createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor2.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -573,16 +536,16 @@ func TestMutationDeleteTrustCenterSubprocessor(t *testing.T) { tcSubprocessor2 := createResp2.CreateTrustCenterSubprocessor.TrustCenterSubprocessor // Create another trust center subprocessor for different org - testUserAnother := suite.userBuilder(context.Background(), t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) - subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter + subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) kindAnother := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUserAnother.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) - createResp3, err := suite.client.api.CreateTrustCenterSubprocessor(testUserAnother.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp3, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor3.ID, TrustCenterID: &trustCenter2.ID, TrustCenterSubprocessorKindName: &kindAnother.Name, @@ -602,27 +565,27 @@ func TestMutationDeleteTrustCenterSubprocessor(t *testing.T) { name: "happy path - delete trust center subprocessor", id: tcSubprocessor1.ID, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized - view only user cannot delete", id: tcSubprocessor2.ID, client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedErr: notAuthorizedErrorMsg, }, { name: "not authorized - different org user cannot delete", id: tcSubprocessor3.ID, client: suite.client.api, - ctx: testUser.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: tcOrg.admin.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "not found - non-existent ID", id: "non-existent-id", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -646,35 +609,29 @@ func TestMutationDeleteTrustCenterSubprocessor(t *testing.T) { } // Clean up remaining data - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor2.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor3.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessor2.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(testUserAnother.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } func TestQueryTrustCenterSubprocessors(t *testing.T) { + t.Parallel() // Create test data - testUser := suite.userBuilder(context.Background(), t) - - viewOnlyUser := suite.userBuilder(context.Background(), t) - suite.addUserToOrganization(testUser.UserCtx, t, &viewOnlyUser, enums.RoleMember, testUser.OrganizationID) + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser.UserCtx, t) - subprocessor1 := (&SubprocessorBuilder{client: suite.client, Description: gofakeit.Sentence()}).MustNew(testUser.UserCtx, t) + subprocessor1 := (&SubprocessorBuilder{client: suite.client, Description: gofakeit.Sentence()}).MustNew(tcOrg.owner.UserCtx, t) kind := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUser.UserCtx, t) + }).MustNew(tcOrg.owner.UserCtx, t) createLogoUpload := logoFileFunc(t) logoFile := createLogoUpload() expectUpload(t, suite.client.mockProvider, []graphql.Upload{*logoFile}) - subprocessorWithFile, err := suite.client.api.CreateSubprocessor(testUser.UserCtx, testclient.CreateSubprocessorInput{ + subprocessorWithFile, err := suite.client.api.CreateSubprocessor(tcOrg.owner.UserCtx, testclient.CreateSubprocessorInput{ Name: "Subprocessor With File", Description: lo.ToPtr("A subprocessor with a logo file"), }, logoFile, nil) @@ -684,16 +641,15 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { assert.Assert(t, subprocessorWithFile.CreateSubprocessor.Subprocessor.LogoFile.ID != "") // Create trust center subprocessors - createResp1, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + _, err = suite.client.api.CreateTrustCenterSubprocessor(tcOrg.admin.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor1.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, Countries: []string{"US"}, }) assert.NilError(t, err) - tcSubprocessor1 := createResp1.CreateTrustCenterSubprocessor.TrustCenterSubprocessor - createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(testUser.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + createResp2, err := suite.client.api.CreateTrustCenterSubprocessor(tcOrg.superAdmin.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessorWithFile.CreateSubprocessor.Subprocessor.ID, TrustCenterID: &trustCenter.ID, TrustCenterSubprocessorKindName: &kind.Name, @@ -703,23 +659,23 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { tcSubprocessor2 := createResp2.CreateTrustCenterSubprocessor.TrustCenterSubprocessor // Create another trust center subprocessor for different org - testUserAnother := suite.userBuilder(context.Background(), t) - trustCenter2 := (&TrustCenterBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) - subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(testUserAnother.UserCtx, t) + tcOrg2 := createFreshOrgWithTrustCenter(t) + trustCenter2 := tcOrg2.trustCenter + + subprocessor3 := (&SubprocessorBuilder{client: suite.client}).MustNew(tcOrg2.owner.UserCtx, t) kindAnother := (&CustomTypeEnumBuilder{ client: suite.client, ObjectType: "trust_center_subprocessor", - }).MustNew(testUserAnother.UserCtx, t) + }).MustNew(tcOrg2.owner.UserCtx, t) - createResp3, err := suite.client.api.CreateTrustCenterSubprocessor(testUserAnother.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ + _, err = suite.client.api.CreateTrustCenterSubprocessor(tcOrg2.owner.UserCtx, testclient.CreateTrustCenterSubprocessorInput{ SubprocessorID: subprocessor3.ID, TrustCenterID: &trustCenter2.ID, TrustCenterSubprocessorKindName: &kindAnother.Name, Countries: []string{"EU"}, }) assert.NilError(t, err) - tcSubprocessor3 := createResp3.CreateTrustCenterSubprocessor.TrustCenterSubprocessor testCases := []struct { name string @@ -731,31 +687,31 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { { name: "get all trust center subprocessors for user1", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, expectedResults: 2, }, { name: "get all trust center subprocessors for user2", client: suite.client.api, - ctx: testUserAnother.UserCtx, + ctx: tcOrg2.admin.UserCtx, expectedResults: 1, }, { name: "view only user can see trust center subprocessors", client: suite.client.api, - ctx: viewOnlyUser.UserCtx, + ctx: tcOrg.member.UserCtx, expectedResults: 2, }, { name: "anonymous user can see trust center subprocessors", client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedResults: 2, }, { name: "filter by kind name", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, where: &testclient.TrustCenterSubprocessorWhereInput{ TrustCenterSubprocessorKindName: &kind.Name, }, @@ -764,7 +720,7 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { { name: "filter by trust center ID", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, where: &testclient.TrustCenterSubprocessorWhereInput{ TrustCenterID: &trustCenter.ID, }, @@ -773,7 +729,7 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { { name: "filter by non-existent kind name", client: suite.client.api, - ctx: testUser.UserCtx, + ctx: tcOrg.admin.UserCtx, where: &testclient.TrustCenterSubprocessorWhereInput{ TrustCenterSubprocessorKindName: lo.ToPtr("Non-existent"), }, @@ -811,10 +767,6 @@ func TestQueryTrustCenterSubprocessors(t *testing.T) { } // Clean up - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, IDs: []string{tcSubprocessor1.ID, tcSubprocessor2.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterSubprocessorDeleteOne]{client: suite.client.db.TrustCenterSubprocessor, ID: tcSubprocessor3.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter2.ID}).MustDelete(testUserAnother.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, IDs: []string{subprocessor1.ID, subprocessorWithFile.CreateSubprocessor.Subprocessor.ID}}).MustDelete(testUser.UserCtx, t) - (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor3.ID}).MustDelete(testUserAnother.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg2.owner.UserCtx, t) } diff --git a/internal/graphapi/trustcenterwatermarkconfig.resolvers.go b/internal/graphapi/trustcenterwatermarkconfig.resolvers.go index d4fba7df4a..830923e811 100644 --- a/internal/graphapi/trustcenterwatermarkconfig.resolvers.go +++ b/internal/graphapi/trustcenterwatermarkconfig.resolvers.go @@ -17,20 +17,18 @@ import ( // CreateTrustCenterWatermarkConfig is the resolver for the createTrustCenterWatermarkConfig field. func (r *mutationResolver) CreateTrustCenterWatermarkConfig(ctx context.Context, input generated.CreateTrustCenterWatermarkConfigInput, watermarkFile *graphql.Upload, watermarkFileMetadata *model.FileMetadataInput) (*model.TrustCenterWatermarkConfigCreatePayload, error) { - if input.TrustCenterID == nil { - var err error - input.TrustCenterID, err = getTrustCenterID(ctx, input.TrustCenterID, "trustcenterwatermarkconfig") - if err != nil { - return nil, err - } - - // set the input in the graphql context - // this isn't a required field, but its required by the access checks - // so we need to set it early - gCtx := graphql.GetFieldContext(ctx) - gCtx.Args["input"] = input + var err error + input.TrustCenterID, err = getTrustCenterID(ctx, input.TrustCenterID, "trustcenterwatermarkconfig") + if err != nil { + return nil, err } + // set the input in the graphql context + // this isn't a required field, but its required by the access checks + // so we need to set it early + gCtx := graphql.GetFieldContext(ctx) + gCtx.Args["input"] = input + res, err := withTransactionalMutation(ctx).TrustCenterWatermarkConfig.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "trustcenterwatermarkconfig"}) diff --git a/internal/graphapi/trustcenterwatermarkconfig_test.go b/internal/graphapi/trustcenterwatermarkconfig_test.go index cd1ea22aff..c68a0bc322 100644 --- a/internal/graphapi/trustcenterwatermarkconfig_test.go +++ b/internal/graphapi/trustcenterwatermarkconfig_test.go @@ -17,19 +17,19 @@ import ( ) func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t, withAllUserTypes()) + trustCenter := tcOrg.trustCenter // delete the auto created watermark config for the trust center // so we can test creating a new one - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(tcOrg.owner.UserCtx, privacy.Allow) trustCenterWatermarkConfig, err := suite.client.db.TrustCenterWatermarkConfig.Query(). Where(trustcenterwatermarkconfig.TrustCenterID(trustCenter.ID)). Only(allowCtx) assert.NilError(t, err) - (&Cleanup[*generated.TrustCenterWatermarkConfigDeleteOne]{client: suite.client.db.TrustCenterWatermarkConfig, ID: trustCenterWatermarkConfig.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.TrustCenterWatermarkConfigDeleteOne]{client: suite.client.db.TrustCenterWatermarkConfig, ID: trustCenterWatermarkConfig.ID}).MustDelete(tcOrg.owner.UserCtx, t) createImageUpload := logoFileFunc(t) testCases := []struct { @@ -46,7 +46,7 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { Text: lo.ToPtr("Test Text"), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, minimal, logo", @@ -55,7 +55,7 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { }, watermarkFile: createImageUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.superAdmin.UserCtx, }, { name: "happy path, all fields as admin", @@ -69,7 +69,7 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { Font: &enums.FontHelvetica, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized", @@ -78,8 +78,8 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { Text: lo.ToPtr("Test Text"), }, client: suite.client.api, - ctx: testUser2.UserCtx, - expectedErr: notAuthorizedErrorMsg, + ctx: sharedTestUser2.UserCtx, + expectedErr: notFoundErrorMsg, }, { name: "missing required field, trust center id, no trust center found for org", @@ -87,7 +87,7 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { Text: lo.ToPtr("Test Text"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: "trustCenterID is required", }, { @@ -96,7 +96,7 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { TrustCenterID: &trustCenter.ID, }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: "text_or_logo_id_not_null", }, } @@ -153,15 +153,15 @@ func TestMutationCreateTrustCenterWatermarkConfig(t *testing.T) { }) } - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestQueryTrustCenterWatermarkConfig(t *testing.T) { - cleanupTrustCenterData(t) - - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(tcOrg.owner.UserCtx, privacy.Allow) watermarkConfig, err := suite.client.db.TrustCenterWatermarkConfig.Query(). Where(trustcenterwatermarkconfig.TrustCenterID(trustCenter.ID)). Only(allowCtx) @@ -179,28 +179,28 @@ func TestQueryTrustCenterWatermarkConfig(t *testing.T) { name: "happy path", queryID: watermarkConfig.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.admin.UserCtx, expectedErr: "", }, { name: "not found", queryID: "non-existent-id", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "not authorized", queryID: watermarkConfig.ID, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, { name: "anonymous user cannot access trust center watermark config", queryID: watermarkConfig.ID, client: suite.client.api, - ctx: createAnonymousTrustCenterContext(trustCenter.ID, testUser1.OrganizationID), + ctx: createAnonymousTrustCenterContext(trustCenter.ID, tcOrg.organizationID), expectedErr: notFoundErrorMsg, }, } @@ -220,16 +220,15 @@ func TestQueryTrustCenterWatermarkConfig(t *testing.T) { assert.Check(t, is.Equal(tc.queryID, resp.TrustCenterWatermarkConfig.ID)) }) } - (&Cleanup[*generated.TrustCenterWatermarkConfigDeleteOne]{client: suite.client.db.TrustCenterWatermarkConfig, ID: watermarkConfig.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { - cleanupTrustCenterData(t) + t.Parallel() + tcOrg := createFreshOrgWithTrustCenter(t) + trustCenter := tcOrg.trustCenter - trustCenter := (&TrustCenterBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - - allowCtx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + allowCtx := privacy.DecisionContext(tcOrg.owner.UserCtx, privacy.Allow) watermarkConfig, err := suite.client.db.TrustCenterWatermarkConfig.Query(). Where(trustcenterwatermarkconfig.TrustCenterID(trustCenter.ID)). Only(allowCtx) @@ -251,7 +250,7 @@ func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { Text: lo.ToPtr("Updated Text"), }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "happy path, update logo", @@ -260,7 +259,7 @@ func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { }, watermarkFile: createImageUpload(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: tcOrg.owner.UserCtx, }, { name: "happy path, update all fields as admin", @@ -273,7 +272,7 @@ func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { Font: &enums.FontHelvetica, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: tcOrg.admin.UserCtx, }, { name: "not authorized", @@ -281,7 +280,7 @@ func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { Text: lo.ToPtr("Updated Text"), }, client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, expectedErr: notFoundErrorMsg, }, } @@ -307,6 +306,6 @@ func TestMutationUpdateTrustCenterWatermarkConfig(t *testing.T) { assert.Check(t, is.Equal(watermarkConfig.ID, resp.UpdateTrustCenterWatermarkConfig.TrustCenterWatermarkConfig.ID)) }) } - (&Cleanup[*generated.TrustCenterWatermarkConfigDeleteOne]{client: suite.client.db.TrustCenterWatermarkConfig, ID: watermarkConfig.ID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TrustCenterDeleteOne]{client: suite.client.db.TrustCenter, ID: trustCenter.ID}).MustDelete(testUser1.UserCtx, t) + + cleanupOrganizationDataWithContext(tcOrg.owner.UserCtx, t) } diff --git a/internal/graphapi/user_test.go b/internal/graphapi/user_test.go index 958d83251c..77b879e27e 100644 --- a/internal/graphapi/user_test.go +++ b/internal/graphapi/user_test.go @@ -1,7 +1,6 @@ package graphapi_test import ( - "context" "testing" "github.com/99designs/gqlgen/graphql" @@ -13,7 +12,6 @@ import ( auth "github.com/theopenlane/iam/auth" - "github.com/theopenlane/core/common/enums" ent "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/privacy" "github.com/theopenlane/core/internal/graphapi/testclient" @@ -28,12 +26,12 @@ func TestQueryUser(t *testing.T) { }{ { name: "happy path user", - queryID: testUser1.ID, - expected: testUser1.UserInfo, + queryID: sharedTestUser1.ID, + expected: sharedTestUser1.UserInfo, }, { name: "valid user, but no auth", - queryID: testUser2.ID, + queryID: sharedTestUser2.ID, errorMsg: "user not found", }, { @@ -45,7 +43,7 @@ func TestQueryUser(t *testing.T) { for _, tc := range testCases { t.Run("Get "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.GetUserByID(testUser1.UserCtx, tc.queryID) + resp, err := suite.client.api.GetUserByID(sharedTestUser1.UserCtx, tc.queryID) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -65,7 +63,7 @@ func TestQueryUser(t *testing.T) { func TestQueryUsers(t *testing.T) { t.Run("Get Users", func(t *testing.T) { - resp, err := suite.client.api.GetAllUsers(testUser1.UserCtx) + resp, err := suite.client.api.GetAllUsers(sharedTestUser1.UserCtx) assert.NilError(t, err) assert.Assert(t, resp != nil) @@ -75,7 +73,7 @@ func TestQueryUsers(t *testing.T) { assert.Check(t, is.Len(resp.Users.Edges, 1)) // setup valid user context - reqCtx := testUser1.UserCtx + reqCtx := sharedTestUser1.UserCtx resp, err = suite.client.api.GetAllUsers(reqCtx) @@ -90,9 +88,9 @@ func TestQueryUsers(t *testing.T) { user2Found := false for _, o := range resp.Users.Edges { - if o.Node.ID == testUser1.ID { + if o.Node.ID == sharedTestUser1.ID { user1Found = true - } else if o.Node.ID == testUser2.ID { + } else if o.Node.ID == sharedTestUser2.ID { user2Found = true } } @@ -128,7 +126,7 @@ func TestMutationCreateUser(t *testing.T) { for _, tc := range testCases { t.Run("Create "+tc.name, func(t *testing.T) { - resp, err := suite.client.api.CreateUser(testUser1.UserCtx, tc.userInput, tc.avatarFile, nil) + resp, err := suite.client.api.CreateUser(sharedTestUser1.UserCtx, tc.userInput, tc.avatarFile, nil) if tc.errorMsg != "" { assert.ErrorContains(t, err, tc.errorMsg) @@ -155,7 +153,7 @@ func TestMutationCreateUser(t *testing.T) { // default org will always be the personal org when the user is first created personalOrgID := resp.CreateUser.User.Setting.DefaultOrg.ID - org, err := suite.client.api.GetOrganizationByID(testUser1.UserCtx, personalOrgID) + org, err := suite.client.api.GetOrganizationByID(sharedTestUser1.UserCtx, personalOrgID) assert.NilError(t, err) assert.Check(t, is.Equal(personalOrgID, org.Organization.ID)) assert.Check(t, *org.Organization.PersonalOrg) @@ -170,7 +168,7 @@ func TestMutationUpdateUser(t *testing.T) { displayNameUpdate := gofakeit.LetterN(40) nameUpdateLong := gofakeit.LetterN(200) - user := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + user := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) orgID := user.Edges.Setting.Edges.DefaultOrg.ID @@ -312,7 +310,7 @@ func TestMutationUpdateUser(t *testing.T) { func TestMutationDeleteUser(t *testing.T) { // bypass auth on object creation - ctx := privacy.DecisionContext(testUser1.UserCtx, privacy.Allow) + ctx := privacy.DecisionContext(sharedTestUser1.UserCtx, privacy.Allow) user := (&UserBuilder{client: suite.client}).MustNew(ctx, t) @@ -373,29 +371,19 @@ func TestMutationDeleteUser(t *testing.T) { } func TestMutationDeleteUser_OrgOwnerCannotBeDeleted(t *testing.T) { - orgUser := suite.userBuilder(context.Background(), t) + t.Parallel() + localTestOrg := suite.seedFreshOrgUsers(t) - org := (&OrganizationBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) - - newMember := (&UserBuilder{client: suite.client}).MustNew(orgUser.UserCtx, t) - - orgCtx := auth.NewTestContextWithOrgID(orgUser.ID, org.ID) - - _, err := suite.client.api.AddUserToOrgWithRole(orgCtx, testclient.CreateOrgMembershipInput{ - UserID: newMember.ID, - Role: &enums.RoleOwner, - }) - assert.NilError(t, err) - - deleteCtx := auth.NewTestContextWithOrgID(newMember.ID, org.ID) - - _, err = suite.client.api.DeleteUser(deleteCtx, newMember.ID) + _, err := suite.client.api.DeleteUser(localTestOrg.owner.UserCtx, localTestOrg.owner.ID) assert.ErrorContains(t, err, "organization owner cannot be deleted") + + // cleanup + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) } func TestMutationUserCascadeDelete(t *testing.T) { - user := (&UserBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + user := (&UserBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) reqCtx := auth.NewTestContextWithOrgID(user.ID, user.Edges.Setting.Edges.DefaultOrg.ID) diff --git a/internal/graphapi/usersetting_test.go b/internal/graphapi/usersetting_test.go index 354e795e4f..06ed91b59e 100644 --- a/internal/graphapi/usersetting_test.go +++ b/internal/graphapi/usersetting_test.go @@ -14,7 +14,7 @@ import ( func TestQueryUserSetting(t *testing.T) { // setup user context - reqCtx := testUser1.UserCtx + reqCtx := sharedTestUser1.UserCtx user2 := (&UserBuilder{client: suite.client}).MustNew(reqCtx, t) user2Setting, err := user2.Setting(reqCtx) @@ -87,7 +87,7 @@ func TestQueryUserSetting(t *testing.T) { func TestQueryUserSettings(t *testing.T) { // setup user context - reqCtx := testUser1.UserCtx + reqCtx := sharedTestUser1.UserCtx user1 := (&UserBuilder{client: suite.client}).MustNew(reqCtx, t) user1Setting, err := user1.Setting(reqCtx) diff --git a/internal/graphapi/vendorscoring_test.go b/internal/graphapi/vendorscoring_test.go index 232b0a2efa..d6c0e29278 100644 --- a/internal/graphapi/vendorscoring_test.go +++ b/internal/graphapi/vendorscoring_test.go @@ -15,6 +15,8 @@ import ( ) func TestVendorScoringEntityManualRiskFieldsPersistWithoutScores(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -41,15 +43,12 @@ func TestVendorScoringEntityManualRiskFieldsPersistWithoutScores(t *testing.T) { assert.Check(t, is.Equal(manualRiskScore, *entityResp.Entity.RiskScore)) assert.Check(t, is.Equal(manualRiskRating, *entityResp.Entity.RiskRating)) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{ - client: suite.client.db.VendorScoringConfig, - ID: configResp.CreateVendorScoringConfig.VendorScoringConfig.ID, - }).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringEntityManualRiskFieldsOverriddenByScores(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -85,12 +84,12 @@ func TestVendorScoringEntityManualRiskFieldsOverriddenByScores(t *testing.T) { assert.Check(t, is.Equal(6.0, scoreResp.CreateVendorRiskScore.VendorRiskScore.Score)) assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 6, "MEDIUM", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigCustomQuestionRoundTrip(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -165,13 +164,12 @@ func TestVendorScoringConfigCustomQuestionRoundTrip(t *testing.T) { assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 12, "HIGH", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringCustomQuestionOverridesDefaultKey(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -221,13 +219,12 @@ func TestVendorScoringCustomQuestionOverridesDefaultKey(t *testing.T) { assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 15, "HIGH", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorRiskScoreComputedValues(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -286,12 +283,12 @@ func TestVendorRiskScoreComputedValues(t *testing.T) { assert.Assert(t, clearedResp.UpdateVendorRiskScore.VendorRiskScore.Answer == nil) assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 0, "NONE", 0) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorRiskScorePartialSubmissions(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -353,12 +350,12 @@ func TestVendorRiskScorePartialSubmissions(t *testing.T) { assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 9, "MEDIUM", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, IDs: []string{firstScoreID, secondScoreID}}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorRiskScoreAllDefaultQuestions(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -393,12 +390,12 @@ func TestVendorRiskScoreAllDefaultQuestions(t *testing.T) { assert.Check(t, is.Equal(int64(len(models.DefaultVendorScoringQuestions)), *entityResp.Entity.RiskScoreCoverage)) assert.Check(t, is.Equal(int64(expectedTotal), *entityResp.Entity.RiskScore)) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, IDs: scoreIDs}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorRiskScoreDefaultPlusCustomQuestions(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -471,16 +468,12 @@ func TestVendorRiskScoreDefaultPlusCustomQuestions(t *testing.T) { // Aggregate: 15 + 8 = 23, coverage = 2 assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 23, "CRITICAL", 2) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{ - client: suite.client.db.VendorRiskScore, - IDs: []string{defaultResp.CreateVendorRiskScore.VendorRiskScore.ID, customResp.CreateVendorRiskScore.VendorRiskScore.ID}, - }).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorRiskScoreMultipleSubmissionsAggregateAcrossAssessments(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) assessment := (&AssessmentBuilder{client: suite.client}).MustNew(scoringUser.UserCtx, t) @@ -545,21 +538,11 @@ func TestVendorRiskScoreMultipleSubmissionsAggregateAcrossAssessments(t *testing assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 18, "CRITICAL", 2) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{ - client: suite.client.db.VendorRiskScore, - IDs: []string{ - firstScoreResp.CreateVendorRiskScore.VendorRiskScore.ID, - secondScoreResp.CreateVendorRiskScore.VendorRiskScore.ID, - }, - }).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.AssessmentResponseDeleteOne]{client: suite.client.db.AssessmentResponse, IDs: []string{responseOne.ID, responseTwo.ID}}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessment.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: assessment.TemplateID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigScoringModeDefault(t *testing.T) { + t.Parallel() scoringUser := suite.userBuilder(context.Background(), t) configResp, err := suite.client.api.CreateVendorScoringConfig(scoringUser.UserCtx, testclient.CreateVendorScoringConfigInput{ @@ -576,10 +559,12 @@ func TestVendorScoringConfigScoringModeDefault(t *testing.T) { assert.Check(t, is.Len(fetched.VendorScoringConfig.RiskThresholds.Custom, 0)) assert.Check(t, is.Len(fetched.VendorScoringConfig.RiskThresholds.All(), len(models.DefaultRiskThresholds))) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigCustomThresholds(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -635,13 +620,12 @@ func TestVendorScoringConfigCustomThresholds(t *testing.T) { // 4 > 3 (LOW) and <= 11 (MEDIUM), so rating should be MEDIUM assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 4, "MEDIUM", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigManualModeSkipsAggregation(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -708,13 +692,12 @@ func TestVendorScoringConfigManualModeSkipsAggregation(t *testing.T) { assert.Check(t, is.Equal(manualRiskScore, *entityResp2.Entity.RiskScore)) assert.Check(t, is.Equal(manualRiskRating, *entityResp2.Entity.RiskRating)) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigFullQuestionnaireMode(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -761,13 +744,12 @@ func TestVendorScoringConfigFullQuestionnaireMode(t *testing.T) { assert.Check(t, is.Equal(int64(1), *entityResp.Entity.RiskScoreCoverage)) assert.Check(t, is.Equal("CRITICAL", *entityResp.Entity.RiskRating)) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigSwitchModeRecomputes(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -848,13 +830,12 @@ func TestVendorScoringConfigSwitchModeRecomputes(t *testing.T) { // HIGH (4) * MEDIUM (2) = 8; entity should now reflect the computed aggregate assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 8, "MEDIUM", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigThresholdUpdateChangesRating(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) entity := newVendorScoringEntity(scoringUser.UserCtx, t) @@ -907,13 +888,12 @@ func TestVendorScoringConfigThresholdUpdateChangesRating(t *testing.T) { // Score is still 6 but now 6 <= 8 (widened LOW), so rating should be LOW assertEntityRiskState(t, scoringUser.UserCtx, entity.ID, 6, "LOW", 1) - (&Cleanup[*generated.VendorRiskScoreDeleteOne]{client: suite.client.db.VendorRiskScore, ID: scoreResp.CreateVendorRiskScore.VendorRiskScore.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, ID: entity.ID}).MustDelete(scoringUser.UserCtx, t) - (&Cleanup[*generated.EntityTypeDeleteOne]{client: suite.client.db.EntityType, ID: entity.EntityTypeID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func TestVendorScoringConfigCustomKeyGeneration(t *testing.T) { + t.Parallel() + scoringUser := suite.userBuilder(context.Background(), t) // Create config with custom questions that have no CUST- prefix keys — hook should assign them @@ -983,7 +963,7 @@ func TestVendorScoringConfigCustomKeyGeneration(t *testing.T) { assert.Check(t, is.Equal(fetched.VendorScoringConfig.Questions.Custom[i].Key, q.Key)) } - (&Cleanup[*generated.VendorScoringConfigDeleteOne]{client: suite.client.db.VendorScoringConfig, ID: configID}).MustDelete(scoringUser.UserCtx, t) + cleanupOrganizationDataWithContext(scoringUser.UserCtx, t) } func assertEntityRiskState(t *testing.T, ctx context.Context, entityID string, wantRiskScore int64, wantRiskRating string, wantCoverage int64) { diff --git a/internal/graphapi/vulnerability_extended_test.go b/internal/graphapi/vulnerability_extended_test.go index 992b62a0e7..4495cf7502 100644 --- a/internal/graphapi/vulnerability_extended_test.go +++ b/internal/graphapi/vulnerability_extended_test.go @@ -14,6 +14,8 @@ import ( ) func TestResolveVulnerability(t *testing.T) { + t.Parallel() + user := suite.userBuilder(context.Background(), t) ctx := setContext(user.UserCtx, suite.client.db) diff --git a/internal/graphapi/webauthn_test.go b/internal/graphapi/webauthn_test.go index 0d2c2e8358..c9f41dab0b 100644 --- a/internal/graphapi/webauthn_test.go +++ b/internal/graphapi/webauthn_test.go @@ -11,7 +11,7 @@ import ( ) func TestQueryPasskeys(t *testing.T) { - w := (&WebauthnBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + w := (&WebauthnBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -24,7 +24,7 @@ func TestQueryPasskeys(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedCount: 1, }, { @@ -36,7 +36,7 @@ func TestQueryPasskeys(t *testing.T) { { name: "valid user, but no passkeys", client: suite.client.api, - ctx: testUser2.UserCtx, + ctx: sharedTestUser2.UserCtx, }, { name: "no auth", @@ -63,12 +63,12 @@ func TestQueryPasskeys(t *testing.T) { }) } - (&Cleanup[*generated.WebauthnDeleteOne]{client: suite.client.db.Webauthn, ID: w.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.WebauthnDeleteOne]{client: suite.client.db.Webauthn, ID: w.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeletePasskeys(t *testing.T) { - passkey := (&WebauthnBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - secondPasskey := (&WebauthnBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + passkey := (&WebauthnBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + secondPasskey := (&WebauthnBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -82,7 +82,7 @@ func TestMutationDeletePasskeys(t *testing.T) { { name: "happy path user", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, passkeyID: passkey.ID, expectedCount: 1, // we are deleting 1 }, diff --git a/internal/graphapi/workflow_graphql_integration_test.go b/internal/graphapi/workflow_graphql_integration_test.go index 4ae32480dd..3e6c805f61 100644 --- a/internal/graphapi/workflow_graphql_integration_test.go +++ b/internal/graphapi/workflow_graphql_integration_test.go @@ -186,6 +186,7 @@ func TestWorkflowGraphQLUserApproval(t *testing.T) { } func TestWorkflowGraphQLUpdateControlRespectsPermissions(t *testing.T) { + t.Parallel() initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) viewer := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) suite.addUserToOrganization(initiator.UserCtx, t, &viewer, enums.RoleMember, initiator.OrganizationID) @@ -253,6 +254,8 @@ func TestWorkflowGraphQLUpdateControlRespectsPermissions(t *testing.T) { // TestWorkflowGraphQLGroupApproval tests group-based approval workflows through GraphQL API func TestWorkflowGraphQLGroupApproval(t *testing.T) { + t.Parallel() + // Create dedicated test users for workflow testing initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver1 := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -431,6 +434,8 @@ func TestWorkflowGraphQLGroupApproval(t *testing.T) { // TestWorkflowGraphQLMultiStepApproval tests multi-step approval workflows through GraphQL API func TestWorkflowGraphQLMultiStepApproval(t *testing.T) { + t.Parallel() + // Create dedicated test users initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver1 := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -623,6 +628,8 @@ func TestWorkflowGraphQLMultiStepApproval(t *testing.T) { // TestWorkflowGraphQLMyAssignments tests the MyWorkflowAssignments query func TestWorkflowGraphQLMyAssignments(t *testing.T) { + t.Parallel() + // Create dedicated test users initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver1 := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -744,6 +751,8 @@ func TestWorkflowGraphQLMyAssignments(t *testing.T) { // TestWorkflowGraphQLApprovalAuthorization tests that only authorized users can approve/reject assignments func TestWorkflowGraphQLApprovalAuthorization(t *testing.T) { + t.Parallel() + // Create dedicated test users for workflow testing initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -997,6 +1006,8 @@ func TestWorkflowGraphQLApprovalAuthorization(t *testing.T) { // TestWorkflowGraphQLGroupApprovalAuthorization tests authorization for group-targeted assignments func TestWorkflowGraphQLGroupApprovalAuthorization(t *testing.T) { + t.Parallel() + // Create dedicated test users initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) groupMember := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -1281,6 +1292,8 @@ func TestWorkflowGraphQLGroupApprovalAuthorization(t *testing.T) { // TestWorkflowGraphQLObjectRef tests that WorkflowObjectRef is created correctly func TestWorkflowGraphQLObjectRef(t *testing.T) { + t.Parallel() + // Create dedicated test user initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) diff --git a/internal/graphapi/workflow_integration_test.go b/internal/graphapi/workflow_integration_test.go index 36bbb76f9e..80173cef3d 100644 --- a/internal/graphapi/workflow_integration_test.go +++ b/internal/graphapi/workflow_integration_test.go @@ -19,6 +19,8 @@ import ( ) func TestWorkflowIntegrationApproval(t *testing.T) { + t.Parallel() + // Create dedicated test users for workflow testing initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -206,6 +208,8 @@ func TestWorkflowIntegrationApproval(t *testing.T) { } func TestWorkflowIntegrationMultipleApprovers(t *testing.T) { + t.Parallel() + // Create dedicated test users initiator := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) approver1 := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) diff --git a/internal/graphapi/workflow_resolvers_extended_test.go b/internal/graphapi/workflow_resolvers_extended_test.go index 53ba33952a..52cac2ab3f 100644 --- a/internal/graphapi/workflow_resolvers_extended_test.go +++ b/internal/graphapi/workflow_resolvers_extended_test.go @@ -129,6 +129,7 @@ func createWorkflowProposal(t *testing.T, ctx context.Context, ownerID string, i func TestRequestChangesWorkflowAssignment(t *testing.T) { ensureWorkflowEngine(t) + t.Parallel() user := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) ctx := setContext(user.UserCtx, suite.client.db) @@ -179,6 +180,7 @@ func TestRequestChangesWorkflowAssignment(t *testing.T) { func TestReassignWorkflowAssignment(t *testing.T) { ensureWorkflowEngine(t) + t.Parallel() owner := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) newTarget := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -209,6 +211,7 @@ func TestReassignWorkflowAssignment(t *testing.T) { func TestAdminReassignWorkflowAssignment(t *testing.T) { ensureWorkflowEngine(t) + t.Parallel() owner := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) oldTarget := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) @@ -308,6 +311,7 @@ func TestWorkflowProposalSubmitAndWithdraw(t *testing.T) { func TestWorkflowProposalPreview(t *testing.T) { ensureWorkflowEngine(t) + t.Parallel() user := suite.userBuilder(context.Background(), t, models.CatalogBaseModule, models.CatalogComplianceModule) ctx := setContext(user.UserCtx, suite.client.db) diff --git a/internal/graphapi/workflow_validators_test.go b/internal/graphapi/workflow_validators_test.go index b864060ff1..4c3c89f9dc 100644 --- a/internal/graphapi/workflow_validators_test.go +++ b/internal/graphapi/workflow_validators_test.go @@ -14,6 +14,8 @@ import ( ) func TestValidateWorkflowDefinitionInput(t *testing.T) { + t.Parallel() + tests := []struct { name string schemaType string @@ -119,6 +121,8 @@ func TestValidateWorkflowDefinitionInput(t *testing.T) { } func TestValidateReviewActionParams(t *testing.T) { + t.Parallel() + params := workflows.ReviewActionParams{ TargetedActionParams: workflows.TargetedActionParams{ Targets: []workflows.TargetConfig{ @@ -200,6 +204,8 @@ func TestValidateTrigger(t *testing.T) { } func TestValidateApprovalActionParams(t *testing.T) { + t.Parallel() + tests := []struct { name string params json.RawMessage @@ -272,6 +278,8 @@ func TestValidateApprovalActionParams(t *testing.T) { } func TestValidateWebhookActionParams(t *testing.T) { + t.Parallel() + tests := []struct { name string params json.RawMessage @@ -333,6 +341,8 @@ func TestValidateWebhookActionParams(t *testing.T) { } func TestValidateFieldUpdateActionParams(t *testing.T) { + t.Parallel() + tests := []struct { name string params json.RawMessage @@ -439,8 +449,6 @@ func TestValidateIntegrationActionParams(t *testing.T) { } func TestValidateNotificationActionParams(t *testing.T) { - t.Parallel() - tests := []struct { name string params json.RawMessage @@ -478,6 +486,8 @@ func TestValidateNotificationActionParams(t *testing.T) { } func TestValidateTarget(t *testing.T) { + t.Parallel() + tests := []struct { name string target workflows.TargetConfig @@ -535,6 +545,8 @@ func TestValidateTarget(t *testing.T) { } func TestFilterApprovalActions(t *testing.T) { + t.Parallel() + actions := []models.WorkflowAction{ {Key: "approval1", Type: string(enums.WorkflowActionTypeApproval)}, {Key: "webhook1", Type: string(enums.WorkflowActionTypeWebhook)}, @@ -550,6 +562,8 @@ func TestFilterApprovalActions(t *testing.T) { } func TestExtractFieldSetKey(t *testing.T) { + t.Parallel() + tests := []struct { name string action models.WorkflowAction @@ -586,6 +600,8 @@ func TestExtractFieldSetKey(t *testing.T) { } func TestValidateApprovalSubmissionMode(t *testing.T) { + t.Parallel() + tests := []struct { name string mode enums.WorkflowApprovalSubmissionMode @@ -623,6 +639,8 @@ func TestValidateApprovalSubmissionMode(t *testing.T) { } func TestValidateRequiredField(t *testing.T) { + t.Parallel() + tests := []struct { name string required any diff --git a/internal/httpserve/handlers/accountaccess_test.go b/internal/httpserve/handlers/accountaccess_test.go index 20f02a59c9..3b22ffe10b 100644 --- a/internal/httpserve/handlers/accountaccess_test.go +++ b/internal/httpserve/handlers/accountaccess_test.go @@ -12,6 +12,7 @@ import ( models "github.com/theopenlane/core/common/openapi" "github.com/theopenlane/httpsling" + "github.com/theopenlane/utils/ulids" ) func (suite *HandlerTestSuite) TestAccountAccessHandler() { @@ -40,7 +41,7 @@ func (suite *HandlerTestSuite) TestAccountAccessHandler() { { name: "access denied", request: models.AccountAccessRequest{ - ObjectID: "another-org-id", + ObjectID: ulids.New().String(), ObjectType: "organization", Relation: "can_delete", }, diff --git a/internal/httpserve/handlers/integration_types_test.go b/internal/httpserve/handlers/integration_types_test.go index eb420cb4b5..1f4bf01550 100644 --- a/internal/httpserve/handlers/integration_types_test.go +++ b/internal/httpserve/handlers/integration_types_test.go @@ -76,8 +76,6 @@ func TestConfigureIntegrationRequestValidate(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { - t.Parallel() - err := tc.payload.Validate() if tc.wantErr { assert.Error(t, err) @@ -118,8 +116,6 @@ func TestIntegrationAuthStartRequestValidate(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { - t.Parallel() - err := tc.req.Validate() if tc.wantErr { assert.Error(t, err) @@ -183,8 +179,6 @@ func TestVerifyWebhookHMACSHA256(t *testing.T) { for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { - t.Parallel() - req := &http.Request{Header: http.Header{}} if tc.signature != "" { req.Header.Set(integrationWebhookSignatureHeader, tc.signature) diff --git a/internal/httpserve/handlers/tools_test.go b/internal/httpserve/handlers/tools_test.go index edd091ac0f..13c6b083d0 100644 --- a/internal/httpserve/handlers/tools_test.go +++ b/internal/httpserve/handlers/tools_test.go @@ -97,7 +97,7 @@ var ( ) const ( - fgaModelFile = "../../../fga/model/model.fga" + fgaModuleFile = "../../../fga/model/fga.mod" seedStripeSubscriptionID = "sub_test_subscription" ) @@ -151,9 +151,11 @@ func (suite *HandlerTestSuite) SetupSuite() { // setup openFGA container suite.ofgaTF = fgatest.NewFGATestcontainer(context.Background(), - fgatest.WithModelFile(fgaModelFile), + fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), + fgatest.WithSkipParentContextKinds("organization", "user", "system"), + fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) // shared token manager to avoid RSA key generation diff --git a/internal/testutils/client.go b/internal/testutils/client.go index 7ec2d21d77..a7f706593d 100644 --- a/internal/testutils/client.go +++ b/internal/testutils/client.go @@ -173,10 +173,17 @@ func testEchoServer(c *ent.Client, u *objects.Service, includeMiddleware bool) * // createAuthConfig creates a new auth config for testing with the provided client // and local validator func createAuthConfig(c *ent.Client) *auth.Options { - // setup auth middleware + // get keys from the token manager + keys, err := c.TokenManager.Keys() + if err != nil { + panic("failed to get keys from token manager: " + err.Error()) + } + + validator := tokens.NewJWKSValidator(keys, "http://localhost:17608", "http://localhost:17608") + opts := []auth.Option{ auth.WithDBClient(c), - auth.WithValidator(&tokens.MockValidator{}), + auth.WithValidator(validator), } authConfig := auth.NewAuthOptions(opts...) diff --git a/internal/testutils/fga.go b/internal/testutils/fga.go index 7e344de525..5f46ec4075 100644 --- a/internal/testutils/fga.go +++ b/internal/testutils/fga.go @@ -10,5 +10,6 @@ func GetDefaultFGAEnvs() map[string]string { "OPENFGA_MAX_CHECKS_PER_BATCH_CHECK": "100", "OPENFGA_CHECK_ITERATOR_CACHE_ENABLED": "false", "OPENFGA_LIST_OBJECTS_ITERATOR_CACHE_ENABLED": "false", + "OPENFGA_MAX_TYPES_PER_AUTHORIZATION_MODEL": "1000", } } diff --git a/internal/workflows/engine/tools_test.go b/internal/workflows/engine/tools_test.go index 504fe0f94a..8b64eb7e5f 100644 --- a/internal/workflows/engine/tools_test.go +++ b/internal/workflows/engine/tools_test.go @@ -16,6 +16,7 @@ import ( "github.com/stretchr/testify/suite" "github.com/stripe/stripe-go/v84" "github.com/theopenlane/iam/auth" + "github.com/theopenlane/iam/fgax" fgatest "github.com/theopenlane/iam/fgax/testutils" "github.com/theopenlane/iam/sessions" "github.com/theopenlane/riverboat/pkg/riverqueue" @@ -62,7 +63,7 @@ import ( ) const ( - fgaModelFile = "../../../fga/model/model.fga" + fgaModuleFile = "../../../fga/model/fga.mod" seedStripeSubscriptionID = "sub_test_subscription" webhookSecret = "whsec_test_secret" ) @@ -108,9 +109,11 @@ func (s *WorkflowEngineTestSuite) SetupSuite() { // setup openFGA container s.ofgaTF = fgatest.NewFGATestcontainer(s.ctx, - fgatest.WithModelFile(fgaModelFile), + fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), + fgatest.WithSkipParentContextKinds("organization", "user", "system"), + fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) fgaClient, err := s.ofgaTF.NewFgaClient(s.ctx) diff --git a/jsonschema/api-docs.md b/jsonschema/api-docs.md index a24f5c0646..1b858c1b6e 100644 --- a/jsonschema/api-docs.md +++ b/jsonschema/api-docs.md @@ -77,7 +77,12 @@ Config contains the configuration for the core server } }, "authz": { - "credentials": {} + "credentials": {}, + "parentcontextconditions": [ + { + "context": {} + } + ] }, "db": {}, "jobqueue": { @@ -884,13 +889,21 @@ OauthProviderConfig represents the configuration for OAuth providers such as Git |**modulefile**|`string`|path to the fga module file
|no| |[**credentials**](#authzcredentials)|`object`||no| |**maxbatchwritesize**|`integer`|maximum number of writes per batch in a transaction
|no| +|**disableparentcontext**|`boolean`|disables the automatic addition of parent context tuples
|no| +|[**parentcontextskipkinds**](#authzparentcontextskipkinds)|`string[]`||no| +|[**parentcontextconditions**](#authzparentcontextconditions)|`array`||no| **Additional Properties:** not allowed **Example** ```json { - "credentials": {} + "credentials": {}, + "parentcontextconditions": [ + { + "context": {} + } + ] } ``` @@ -909,6 +922,27 @@ OauthProviderConfig represents the configuration for OAuth providers such as Git |**scopes**|`string`|scopes for the openFGA client
|| **Additional Properties:** not allowed + +### authz\.parentcontextskipkinds: array + +**Items** + +**Item Type:** `string` + +### authz\.parentcontextconditions: array + +**Items** + +**Example** + +```json +[ + { + "context": {} + } +] +``` + ## db: object diff --git a/jsonschema/core.config.json b/jsonschema/core.config.json index da324e3b14..6bb56bf2c8 100644 --- a/jsonschema/core.config.json +++ b/jsonschema/core.config.json @@ -8,6 +8,12 @@ }, "type": "array" }, + "[]fgax.ParentContextConditionConfig": { + "items": { + "$ref": "#/$defs/fgax.ParentContextConditionConfig" + }, + "type": "array" + }, "[]ratelimit.RateOption": { "items": { "$ref": "#/$defs/ratelimit.RateOption" @@ -782,6 +788,18 @@ "maxbatchwritesize": { "type": "integer", "description": "maximum number of writes per batch in a transaction" + }, + "disableparentcontext": { + "type": "boolean", + "description": "disables the automatic addition of parent context tuples" + }, + "parentcontextskipkinds": { + "$ref": "#/$defs/[]string", + "description": "entity kind names that should not have parent context tuples added" + }, + "parentcontextconditions": { + "$ref": "#/$defs/[]fgax.ParentContextConditionConfig", + "description": "relationship conditions to apply on parent context tuples per entity kind" } }, "additionalProperties": false, @@ -820,6 +838,24 @@ "additionalProperties": false, "type": "object" }, + "fgax.ParentContextConditionConfig": { + "properties": { + "kind": { + "type": "string", + "description": "entity kind name the condition applies to" + }, + "name": { + "type": "string", + "description": "condition name defined in the authorization model" + }, + "context": { + "$ref": "#/$defs/map[string]interface {}", + "description": "condition context parameters" + } + }, + "additionalProperties": false, + "type": "object" + }, "github.ProviderConfig": { "properties": { "clientid": { @@ -963,6 +999,9 @@ }, "type": "object" }, + "map[string]interface {}": { + "type": "object" + }, "map[string]river.QueueConfig": { "additionalProperties": { "$ref": "#/$defs/river.QueueConfig" diff --git a/pkg/gala/test_helpers_test.go b/pkg/gala/test_helpers_test.go index c07539e478..20bdd24ec8 100644 --- a/pkg/gala/test_helpers_test.go +++ b/pkg/gala/test_helpers_test.go @@ -124,6 +124,7 @@ func NewTestGala(t *testing.T, opts ...TestGalaOption) *TestGalaFixture { dbFixture := testutils.GetTestURI( testutils.WithImage(cfg.image), testutils.WithExpiryMinutes(cfg.expiryMins), + testutils.WithMaxConn(100), //nolint:mnd ) galaApp, err := NewGala(ctx, Config{ From 2213868863c9542a5f1751f9b982166b919dfecf Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 09:15:54 -0600 Subject: [PATCH 02/12] regen after rebase Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- .task/checksum/generate-ent-smart | 2 +- .task/checksum/generate-graphql-smart | 2 +- .task/checksum/generate-openapi-smart | 2 +- cli/go.mod | 2 +- cli/go.sum | 3 +- common/go.mod | 1 + common/go.sum | 3 +- fga/model/generated/crud.fga | 6 - go.mod | 8 +- go.sum | 12 +- internal/ent/authzgenerated/accessmap.go | 4 - .../ent/checksum/.history_schema_checksum | 2 +- internal/ent/checksum/.schema_checksum | 2 +- internal/ent/csvgenerated/csv_generated.go | 719 +- .../ent/generated/actionplan/actionplan.go | 2 + internal/ent/generated/actionplan_create.go | 5 + internal/ent/generated/actionplan_update.go | 10 + .../ent/generated/assessment/assessment.go | 6 +- internal/ent/generated/assessment_create.go | 5 + internal/ent/generated/assessment_update.go | 125 - internal/ent/generated/authz_checks.go | 1 + internal/ent/generated/client.go | 19 - internal/ent/generated/entql.go | 26 - internal/ent/generated/gql_collection.go | 6264 +- internal/ent/generated/gql_edge.go | 1498 +- internal/ent/generated/gql_mutation_input.go | 1818 +- internal/ent/generated/gql_where_input.go | 23 - internal/ent/generated/group.go | 970 +- internal/ent/generated/group/group.go | 1 - .../internalpolicy/internalpolicy.go | 2 + .../ent/generated/internalpolicy_create.go | 5 + .../ent/generated/internalpolicy_update.go | 10 + internal/ent/generated/migrate/schema.go | 650 +- internal/ent/generated/mutation.go | 6832 +- internal/ent/generated/organization.go | 4946 +- .../generated/organization/organization.go | 32 +- internal/ent/generated/organization/where.go | 29 - internal/ent/generated/organization_create.go | 32 - internal/ent/generated/organization_query.go | 15056 ++- internal/ent/generated/organization_update.go | 168 - internal/ent/generated/procedure/procedure.go | 2 + internal/ent/generated/procedure_create.go | 5 + internal/ent/generated/procedure_update.go | 10 + internal/ent/generated/runtime/runtime.go | 182 +- .../assessmenthistory_update.go | 46 - .../integration_mapping_generated.go | 4667 +- internal/graphapi/assessment_test.go | 2 +- .../graphapi/campaign_email_dispatch_test.go | 64 +- internal/graphapi/campaign_scheduled_test.go | 44 +- .../checksum/.history_schema_checksum | 2 +- internal/graphapi/checksum/.schema_checksum | 2 +- .../clientschema/checksum/.schema_checksum | 2 +- internal/graphapi/clientschema/schema.graphql | 40 - internal/graphapi/entity_test.go | 12 +- internal/graphapi/generated/ent.generated.go | 83122 +++++++++------- .../graphapi/generated/root_.generated.go | 4181 +- .../checksum/.history_schema_checksum | 2 +- internal/graphapi/schema/ent.graphql | 40 - .../testclient/checksum/.client_checksum | 2 +- internal/graphapi/testclient/models.go | 1494 +- .../graphapi/trustcenterndarequest_test.go | 15 - .../httpserve/specs/openlane.openapi.json | 30 +- .../httpserve/specs/openlane.openapi.yaml | 20 +- .../operations/ingest_generated.go | 10 +- pkg/objects/storage/utils_test.go | 1 - 65 files changed, 83375 insertions(+), 49925 deletions(-) diff --git a/.task/checksum/generate-ent-smart b/.task/checksum/generate-ent-smart index 1f215d7127..5ea18ac212 100644 --- a/.task/checksum/generate-ent-smart +++ b/.task/checksum/generate-ent-smart @@ -1 +1 @@ -1e7267aa5256ff8b4c9800039c9f0bde +dd2da927942651c3f50a8e1ab9fea045 diff --git a/.task/checksum/generate-graphql-smart b/.task/checksum/generate-graphql-smart index b0b9d80c27..72bc2beb80 100644 --- a/.task/checksum/generate-graphql-smart +++ b/.task/checksum/generate-graphql-smart @@ -1 +1 @@ -e54d7c4e359cb93c54182ce7d2a5cf5a +b15d09676260341056d596c1738c02d6 diff --git a/.task/checksum/generate-openapi-smart b/.task/checksum/generate-openapi-smart index 91ff64ca3d..a5e99c453f 100644 --- a/.task/checksum/generate-openapi-smart +++ b/.task/checksum/generate-openapi-smart @@ -1 +1 @@ -30a02216e08e66d20acf513f1022d1b +381fa11d6a440adc3c8edbd9f3b6311c diff --git a/cli/go.mod b/cli/go.mod index dc0b134691..a8e0b2d387 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -21,7 +21,7 @@ require ( github.com/theopenlane/core/common v1.0.21 github.com/theopenlane/go-client v0.10.0 github.com/theopenlane/httpsling v0.3.0 - github.com/theopenlane/iam v0.29.0 + github.com/theopenlane/iam v0.30.0 github.com/theopenlane/utils v0.7.0 golang.org/x/oauth2 v0.36.0 golang.org/x/term v0.43.0 diff --git a/cli/go.sum b/cli/go.sum index 381766253a..ad6d6905e0 100644 --- a/cli/go.sum +++ b/cli/go.sum @@ -194,8 +194,7 @@ github.com/theopenlane/go-client v0.10.0 h1:gBEOEWXM3nP7VlXPcmgA/0RPWcvSz1XzFBwA github.com/theopenlane/go-client v0.10.0/go.mod h1:usNDyObWwEJmNph2vAlsYfnx1q6jxXMwOKC6kQAesFo= github.com/theopenlane/httpsling v0.3.0 h1:Bad0dGdqCqAB8UVDyVo+YCevzRvGHhmkK22F7T3pXtY= github.com/theopenlane/httpsling v0.3.0/go.mod h1:iJc3XRLYTFIpfCnPpLZVMBP0xsWIPAb7ozARtQoclAE= -github.com/theopenlane/iam v0.29.0 h1:mmN5ZC5wfKHiMm69XpTfcqZl0IPMCFTEZuGHI7j2u4I= -github.com/theopenlane/iam v0.29.0/go.mod h1:WIWrlNu6gBNrEVNCtdAmGX7xrnv4+J2xPl0Frjw94rE= +github.com/theopenlane/iam v0.30.0 h1:rZcJQVfNUfxss1shF+uinF2vo7UZl9rqEcG6yl5ayRI= github.com/theopenlane/utils v0.7.0 h1:tSN9PBC8Ywn2As3TDW/1TAfWsVsodrccec40oAhiZgo= github.com/theopenlane/utils v0.7.0/go.mod h1:7U9CDoVzCAFWw/JygR5ZhCKGwhHBnuJpK3Jgh1m59+w= github.com/tinylib/msgp v1.6.4 h1:mOwYbyYDLPj35mkA2BjjYejgJk9BuHxDdvRnb6v2ZcQ= diff --git a/common/go.mod b/common/go.mod index 199d2e4f0b..86a20565e6 100644 --- a/common/go.mod +++ b/common/go.mod @@ -29,6 +29,7 @@ require ( github.com/agnivade/levenshtein v1.2.1 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/bmatcuk/doublestar v1.3.4 // indirect + github.com/brianvoe/gofakeit/v7 v7.15.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fxamacker/cbor/v2 v2.9.2 // indirect diff --git a/common/go.sum b/common/go.sum index 04dfff7690..a6ebf37f3c 100644 --- a/common/go.sum +++ b/common/go.sum @@ -22,8 +22,7 @@ github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0= github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= -github.com/brianvoe/gofakeit/v7 v7.14.1 h1:a7fe3fonbj0cW3wgl5VwIKfZtiH9C3cLnwcIXWT7sow= -github.com/brianvoe/gofakeit/v7 v7.14.1/go.mod h1:QXuPeBw164PJCzCUZVmgpgHJ3Llj49jSLVkKPMtxtxA= +github.com/brianvoe/gofakeit/v7 v7.15.0 h1:kGLYAWN8tnmxq2PelKVK6zwpM7kMxdz9SGPH31mFkNs= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/fga/model/generated/crud.fga b/fga/model/generated/crud.fga index 56af1a23c6..436cd45706 100644 --- a/fga/model/generated/crud.fga +++ b/fga/model/generated/crud.fga @@ -105,12 +105,6 @@ extend type organization define discussion_creator: [group#member] define can_create_discussion: can_edit or can_edit_discussion or discussion_creator or auditor - define can_view_email_branding: [service, user, group#member] or can_edit_email_branding or can_manage_campaigns or full_access - define can_edit_email_branding: [service, user, group#member] or can_delete_email_branding or can_manage_campaigns or full_access - define can_delete_email_branding: [service, user, group#member] or can_manage_campaigns or full_access - define email_branding_creator: [group#member] - define can_create_email_branding: can_edit or can_edit_email_branding or email_branding_creator or can_manage_campaigns - define can_view_email_template: [service, user, group#member] or can_edit_email_template or can_manage_campaigns or full_access define can_edit_email_template: [service, user, group#member] or can_delete_email_template or can_manage_campaigns or full_access define can_delete_email_template: [service, user, group#member] or can_manage_campaigns or full_access diff --git a/go.mod b/go.mod index 2a855ba2d4..32471786c0 100644 --- a/go.mod +++ b/go.mod @@ -104,12 +104,12 @@ require ( github.com/theopenlane/go-client v0.10.0 github.com/theopenlane/gqlgen-plugins v0.14.7 github.com/theopenlane/httpsling v0.3.0 - github.com/theopenlane/iam v0.29.0 + github.com/theopenlane/iam v0.30.0 github.com/theopenlane/newman v0.4.0 github.com/theopenlane/riverboat v0.8.8 github.com/theopenlane/utils v0.7.0 github.com/tmc/langchaingo v0.1.14 - github.com/urfave/cli/v3 v3.8.0 + github.com/urfave/cli/v3 v3.9.0 github.com/vektah/gqlparser/v2 v2.5.33 github.com/xeipuuv/gojsonschema v1.2.0 github.com/yuin/goldmark v1.8.2 @@ -122,7 +122,7 @@ require ( golang.org/x/sync v0.20.0 golang.org/x/text v0.37.0 golang.org/x/tools v0.45.0 - google.golang.org/api v0.278.0 + google.golang.org/api v0.279.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools/v3 v3.5.2 ) @@ -357,7 +357,7 @@ require ( github.com/opencontainers/image-spec v1.1.1 // indirect github.com/opencontainers/runc v1.3.3 // indirect github.com/openfga/api/proto v0.0.0-20260319214821-f153694bfc20 // indirect - github.com/openfga/language/pkg/go v0.2.1 // indirect + github.com/openfga/language/pkg/go v0.2.1 github.com/openfga/openfga v1.15.1 // indirect github.com/ory/dockertest v3.3.5+incompatible // indirect github.com/pelletier/go-toml/v2 v2.3.1 // indirect diff --git a/go.sum b/go.sum index d19197d3c1..c709e9b9c5 100644 --- a/go.sum +++ b/go.sum @@ -742,8 +742,8 @@ github.com/theopenlane/gqlgen-plugins v0.14.7 h1:B9I6tpgevch3xQfV3qqRTpxHIlJvwtX github.com/theopenlane/gqlgen-plugins v0.14.7/go.mod h1:fUjo1cVKEAPLhtRrH+iJtrfivCNp+GxVSB/UJgVBDuA= github.com/theopenlane/httpsling v0.3.0 h1:Bad0dGdqCqAB8UVDyVo+YCevzRvGHhmkK22F7T3pXtY= github.com/theopenlane/httpsling v0.3.0/go.mod h1:iJc3XRLYTFIpfCnPpLZVMBP0xsWIPAb7ozARtQoclAE= -github.com/theopenlane/iam v0.29.0 h1:mmN5ZC5wfKHiMm69XpTfcqZl0IPMCFTEZuGHI7j2u4I= -github.com/theopenlane/iam v0.29.0/go.mod h1:WIWrlNu6gBNrEVNCtdAmGX7xrnv4+J2xPl0Frjw94rE= +github.com/theopenlane/iam v0.30.0 h1:rZcJQVfNUfxss1shF+uinF2vo7UZl9rqEcG6yl5ayRI= +github.com/theopenlane/iam v0.30.0/go.mod h1:slggeX0cWMUakfYz0RwSZfnz5kOcKdii18sek4SfMEQ= github.com/theopenlane/newman v0.4.0 h1:HiYMASHH3WD63M5GIwYFokf81Gq8lZ0Q/D5eget73x4= github.com/theopenlane/newman v0.4.0/go.mod h1:KqTNABh60+NafNhmTvFvFXYYeDl78n+BFZrkhdm60Fo= github.com/theopenlane/oscalot v0.1.0 h1:ExYiMU4Q1ezbGq77sxkgahmfmc46L+2NqB39fg0HXjU= @@ -773,8 +773,8 @@ github.com/tmc/langchaingo v0.1.14 h1:o1qWBPigAIuFvrG6cjTFo0cZPFEZ47ZqpOYMjM15yZ github.com/tmc/langchaingo v0.1.14/go.mod h1:aKKYXYoqhIDEv7WKdpnnCLRaqXic69cX9MnDUk72378= github.com/ugorji/go/codec v1.3.0 h1:Qd2W2sQawAfG8XSvzwhBeoGq71zXOC/Q1E9y/wUcsUA= github.com/ugorji/go/codec v1.3.0/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4= -github.com/urfave/cli/v3 v3.8.0 h1:XqKPrm0q4P0q5JpoclYoCAv0/MIvH/jZ2umzuf8pNTI= -github.com/urfave/cli/v3 v3.8.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso= +github.com/urfave/cli/v3 v3.9.0 h1:AV9lIiPv3ukYnxunaCUsHnEozptYmDN2F0+yWqLMn/c= +github.com/urfave/cli/v3 v3.9.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fastjson v1.6.10 h1:/yjJg8jaVQdYR3arGxPE2X5z89xrlhS0eGXdv+ADTh4= @@ -970,8 +970,8 @@ golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhS golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/api v0.278.0 h1:W7jiRvRi53VYFfZ/HoZjQBtJk7gOFbHD8ot1RzVZU6E= -google.golang.org/api v0.278.0/go.mod h1:B9TqLBwJqVjp1mtt7WeoQwWRwvu/400y5lETOql+giQ= +google.golang.org/api v0.279.0 h1:hsx2M2OaRcaKtVYK6vXEUnQvdjnend7ZYES+lYaot74= +google.golang.org/api v0.279.0/go.mod h1:B9TqLBwJqVjp1mtt7WeoQwWRwvu/400y5lETOql+giQ= google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgnawEVsOn6OFsnpyxNPRY9QV01dNB0= google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:L43LFes82YgSonw6iTXTxXUX1OlULt4AQtkik4ULL/I= google.golang.org/genproto/googleapis/api v0.0.0-20260504160031-60b97b32f348 h1:U8orV30l6KpDsi9dxU0CoJZGbjS8EEpw+6ba+XwGPQA= diff --git a/internal/ent/authzgenerated/accessmap.go b/internal/ent/authzgenerated/accessmap.go index 3bc749cce7..56fa934a7c 100644 --- a/internal/ent/authzgenerated/accessmap.go +++ b/internal/ent/authzgenerated/accessmap.go @@ -2412,10 +2412,6 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { ObjectType: "group", SkipEditCheck: true, CheckViewAccess: true, -}, "email_branding_creators": { - ObjectType: "group", - SkipEditCheck: true, - CheckViewAccess: true, }, "email_template_creators": { ObjectType: "group", SkipEditCheck: true, diff --git a/internal/ent/checksum/.history_schema_checksum b/internal/ent/checksum/.history_schema_checksum index f2499aec37..68da817a0b 100644 --- a/internal/ent/checksum/.history_schema_checksum +++ b/internal/ent/checksum/.history_schema_checksum @@ -1 +1 @@ -9157dc0850a0ed4e05605fa101a09727c18f691e67f3b55bfa7090ff20533623 \ No newline at end of file +afe8c80797d72c335c2dca2d43ea7cab793fbffb577bb138ebedd669e8bd719c \ No newline at end of file diff --git a/internal/ent/checksum/.schema_checksum b/internal/ent/checksum/.schema_checksum index b7dac5cb9c..b75b217031 100644 --- a/internal/ent/checksum/.schema_checksum +++ b/internal/ent/checksum/.schema_checksum @@ -1 +1 @@ -8f3ba98df8dc40eafd3cb1dc6d333e93d11ad425e468888b9f066bba639e1668 \ No newline at end of file +08fedf127788c5f20145458684e85153a53cfe1cf89d69406bb72c1e304dab66 \ No newline at end of file diff --git a/internal/ent/csvgenerated/csv_generated.go b/internal/ent/csvgenerated/csv_generated.go index 84b8641235..2cf7a90131 100644 --- a/internal/ent/csvgenerated/csv_generated.go +++ b/internal/ent/csvgenerated/csv_generated.go @@ -7,7 +7,6 @@ import ( "strings" "github.com/theopenlane/core/internal/ent/generated" - "github.com/theopenlane/core/internal/ent/generated/predicate" "github.com/theopenlane/core/internal/ent/generated/actionplan" "github.com/theopenlane/core/internal/ent/generated/asset" "github.com/theopenlane/core/internal/ent/generated/control" @@ -17,6 +16,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/identityholder" "github.com/theopenlane/core/internal/ent/generated/internalpolicy" "github.com/theopenlane/core/internal/ent/generated/platform" + "github.com/theopenlane/core/internal/ent/generated/predicate" "github.com/theopenlane/core/internal/ent/generated/procedure" "github.com/theopenlane/core/internal/ent/generated/risk" "github.com/theopenlane/core/internal/ent/generated/subcontrol" @@ -845,8 +845,7 @@ type CSVSchemaInfo struct { var CSVReferenceRegistry = map[string]CSVSchemaInfo{ "APIToken": { SchemaName: "APIToken", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "ActionPlan": { SchemaName: "ActionPlan", @@ -1013,8 +1012,7 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "Contact": { SchemaName: "Contact", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Control": { SchemaName: "Control", @@ -1087,28 +1085,23 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "ControlImplementation": { SchemaName: "ControlImplementation", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "ControlObjective": { SchemaName: "ControlObjective", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "CustomDomain": { SchemaName: "CustomDomain", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "CustomTypeEnum": { SchemaName: "CustomTypeEnum", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "DNSVerification": { SchemaName: "DNSVerification", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "DirectoryAccount": { SchemaName: "DirectoryAccount", @@ -1125,33 +1118,27 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "DirectoryGroup": { SchemaName: "DirectoryGroup", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "DirectoryMembership": { SchemaName: "DirectoryMembership", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "DirectorySyncRun": { SchemaName: "DirectorySyncRun", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Discussion": { SchemaName: "Discussion", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "DocumentData": { SchemaName: "DocumentData", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "EmailTemplate": { SchemaName: "EmailTemplate", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Entity": { SchemaName: "Entity", @@ -1192,13 +1179,11 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "EntityType": { SchemaName: "EntityType", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Event": { SchemaName: "Event", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Evidence": { SchemaName: "Evidence", @@ -1215,43 +1200,35 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "Export": { SchemaName: "Export", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "File": { SchemaName: "File", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Finding": { SchemaName: "Finding", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "FindingControl": { SchemaName: "FindingControl", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Group": { SchemaName: "Group", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "GroupMembership": { SchemaName: "GroupMembership", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "GroupSetting": { SchemaName: "GroupSetting", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Hush": { SchemaName: "Hush", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "IdentityHolder": { SchemaName: "IdentityHolder", @@ -1321,88 +1298,71 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "Invite": { SchemaName: "Invite", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "JobResult": { SchemaName: "JobResult", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "JobRunner": { SchemaName: "JobRunner", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "JobRunnerRegistrationToken": { SchemaName: "JobRunnerRegistrationToken", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "JobRunnerToken": { SchemaName: "JobRunnerToken", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "JobTemplate": { SchemaName: "JobTemplate", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "MappableDomain": { SchemaName: "MappableDomain", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "MappedControl": { SchemaName: "MappedControl", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Narrative": { SchemaName: "Narrative", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Notification": { SchemaName: "Notification", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "NotificationPreference": { SchemaName: "NotificationPreference", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "NotificationTemplate": { SchemaName: "NotificationTemplate", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Onboarding": { SchemaName: "Onboarding", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "OrgMembership": { SchemaName: "OrgMembership", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Organization": { SchemaName: "Organization", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "OrganizationSetting": { SchemaName: "OrganizationSetting", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "PersonalAccessToken": { SchemaName: "PersonalAccessToken", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Platform": { SchemaName: "Platform", @@ -1565,8 +1525,7 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "ProgramMembership": { SchemaName: "ProgramMembership", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Remediation": { SchemaName: "Remediation", @@ -1673,8 +1632,7 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "SLADefinition": { SchemaName: "SLADefinition", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Scan": { SchemaName: "Scan", @@ -1752,13 +1710,11 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "ScheduledJobRun": { SchemaName: "ScheduledJobRun", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Standard": { SchemaName: "Standard", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Subcontrol": { SchemaName: "Subcontrol", @@ -1831,28 +1787,23 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "Subprocessor": { SchemaName: "Subprocessor", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Subscriber": { SchemaName: "Subscriber", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "SystemDetail": { SchemaName: "SystemDetail", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TFASetting": { SchemaName: "TFASetting", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TagDefinition": { SchemaName: "TagDefinition", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Task": { SchemaName: "Task", @@ -1885,63 +1836,51 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "Template": { SchemaName: "Template", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenter": { SchemaName: "TrustCenter", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterCompliance": { SchemaName: "TrustCenterCompliance", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterDoc": { SchemaName: "TrustCenterDoc", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterEntity": { SchemaName: "TrustCenterEntity", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterFAQ": { SchemaName: "TrustCenterFAQ", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterNDARequest": { SchemaName: "TrustCenterNDARequest", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterSetting": { SchemaName: "TrustCenterSetting", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterSubprocessor": { SchemaName: "TrustCenterSubprocessor", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "TrustCenterWatermarkConfig": { SchemaName: "TrustCenterWatermarkConfig", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "User": { SchemaName: "User", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "UserSetting": { SchemaName: "UserSetting", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "VendorRiskScore": { SchemaName: "VendorRiskScore", @@ -1958,8 +1897,7 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "VendorScoringConfig": { SchemaName: "VendorScoringConfig", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, "Vulnerability": { SchemaName: "Vulnerability", @@ -1976,8 +1914,7 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, "WorkflowDefinition": { SchemaName: "WorkflowDefinition", - Rules: []CSVReferenceRule{ - }, + Rules: []CSVReferenceRule{}, }, } @@ -2008,7 +1945,7 @@ func (APITokenCSVInput) CSVInputWrapper() {} // APITokenCSVUpdateInput wraps UpdateAPITokenInput with CSV reference columns for bulk updates. type APITokenCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateAPITokenInput } @@ -2017,10 +1954,10 @@ func (APITokenCSVUpdateInput) CSVInputWrapper() {} // ActionPlanCSVInput wraps CreateActionPlanInput with CSV reference columns. type ActionPlanCSVInput struct { - Input generated.CreateActionPlanInput - ApproverGroupName string `csv:"ApproverGroupName"` - ControlRefCodes []string `csv:"ControlRefCodes"` - DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` + Input generated.CreateActionPlanInput + ApproverGroupName string `csv:"ApproverGroupName"` + ControlRefCodes []string `csv:"ControlRefCodes"` + DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } // CSVInputWrapper marks ActionPlanCSVInput for CSV header preprocessing. @@ -2029,11 +1966,11 @@ func (ActionPlanCSVInput) CSVInputWrapper() {} // ActionPlanCSVUpdateInput wraps UpdateActionPlanInput with CSV reference columns for bulk updates. type ActionPlanCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateActionPlanInput - ApproverGroupName string `csv:"ApproverGroupName"` - ControlRefCodes []string `csv:"ControlRefCodes"` - DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` + ID string `csv:"ID"` + Input generated.UpdateActionPlanInput + ApproverGroupName string `csv:"ApproverGroupName"` + ControlRefCodes []string `csv:"ControlRefCodes"` + DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } // CSVInputWrapper marks ActionPlanCSVUpdateInput for CSV header preprocessing. @@ -2041,7 +1978,7 @@ func (ActionPlanCSVUpdateInput) CSVInputWrapper() {} // AssessmentCSVInput wraps CreateAssessmentInput with CSV reference columns. type AssessmentCSVInput struct { - Input generated.CreateAssessmentInput + Input generated.CreateAssessmentInput AssessmentTemplateRef string `csv:"AssessmentTemplateRef"` } @@ -2051,8 +1988,8 @@ func (AssessmentCSVInput) CSVInputWrapper() {} // AssessmentCSVUpdateInput wraps UpdateAssessmentInput with CSV reference columns for bulk updates. type AssessmentCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateAssessmentInput + ID string `csv:"ID"` + Input generated.UpdateAssessmentInput AssessmentTemplateRef string `csv:"AssessmentTemplateRef"` } @@ -2061,9 +1998,9 @@ func (AssessmentCSVUpdateInput) CSVInputWrapper() {} // AssessmentResponseCSVInput wraps CreateAssessmentResponseInput with CSV reference columns. type AssessmentResponseCSVInput struct { - Input generated.CreateAssessmentResponseInput + Input generated.CreateAssessmentResponseInput AssessmentIdentityHolderEmail string `csv:"AssessmentIdentityHolderEmail"` - AssessmentResponseEntityName string `csv:"AssessmentResponseEntityName"` + AssessmentResponseEntityName string `csv:"AssessmentResponseEntityName"` } // CSVInputWrapper marks AssessmentResponseCSVInput for CSV header preprocessing. @@ -2071,10 +2008,10 @@ func (AssessmentResponseCSVInput) CSVInputWrapper() {} // AssetCSVInput wraps CreateAssetInput with CSV reference columns. type AssetCSVInput struct { - Input generated.CreateAssetInput + Input generated.CreateAssetInput InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - SourcePlatformName string `csv:"SourcePlatformName"` + SourcePlatformName string `csv:"SourcePlatformName"` } // CSVInputWrapper marks AssetCSVInput for CSV header preprocessing. @@ -2083,11 +2020,11 @@ func (AssetCSVInput) CSVInputWrapper() {} // AssetCSVUpdateInput wraps UpdateAssetInput with CSV reference columns for bulk updates. type AssetCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateAssetInput + ID string `csv:"ID"` + Input generated.UpdateAssetInput InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - SourcePlatformName string `csv:"SourcePlatformName"` + SourcePlatformName string `csv:"SourcePlatformName"` } // CSVInputWrapper marks AssetCSVUpdateInput for CSV header preprocessing. @@ -2095,9 +2032,9 @@ func (AssetCSVUpdateInput) CSVInputWrapper() {} // CampaignCSVInput wraps CreateCampaignInput with CSV reference columns. type CampaignCSVInput struct { - Input generated.CreateCampaignInput - CampaignEntityName string `csv:"CampaignEntityName"` - CampaignTemplateRef string `csv:"CampaignTemplateRef"` + Input generated.CreateCampaignInput + CampaignEntityName string `csv:"CampaignEntityName"` + CampaignTemplateRef string `csv:"CampaignTemplateRef"` InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` } @@ -2108,10 +2045,10 @@ func (CampaignCSVInput) CSVInputWrapper() {} // CampaignCSVUpdateInput wraps UpdateCampaignInput with CSV reference columns for bulk updates. type CampaignCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateCampaignInput - CampaignEntityName string `csv:"CampaignEntityName"` - CampaignTemplateRef string `csv:"CampaignTemplateRef"` + ID string `csv:"ID"` + Input generated.UpdateCampaignInput + CampaignEntityName string `csv:"CampaignEntityName"` + CampaignTemplateRef string `csv:"CampaignTemplateRef"` InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` } @@ -2121,7 +2058,7 @@ func (CampaignCSVUpdateInput) CSVInputWrapper() {} // CampaignTargetCSVInput wraps CreateCampaignTargetInput with CSV reference columns. type CampaignTargetCSVInput struct { - Input generated.CreateCampaignTargetInput + Input generated.CreateCampaignTargetInput CampaignTargetGroupName string `csv:"CampaignTargetGroupName"` CampaignTargetUserEmail string `csv:"CampaignTargetUserEmail"` } @@ -2132,8 +2069,8 @@ func (CampaignTargetCSVInput) CSVInputWrapper() {} // CampaignTargetCSVUpdateInput wraps UpdateCampaignTargetInput with CSV reference columns for bulk updates. type CampaignTargetCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateCampaignTargetInput + ID string `csv:"ID"` + Input generated.UpdateCampaignTargetInput CampaignTargetGroupName string `csv:"CampaignTargetGroupName"` CampaignTargetUserEmail string `csv:"CampaignTargetUserEmail"` } @@ -2143,7 +2080,7 @@ func (CampaignTargetCSVUpdateInput) CSVInputWrapper() {} // CheckResultCSVInput wraps CreateCheckResultInput with CSV reference columns. type CheckResultCSVInput struct { - Input generated.CreateCheckResultInput + Input generated.CreateCheckResultInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -2153,8 +2090,8 @@ func (CheckResultCSVInput) CSVInputWrapper() {} // CheckResultCSVUpdateInput wraps UpdateCheckResultInput with CSV reference columns for bulk updates. type CheckResultCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateCheckResultInput + ID string `csv:"ID"` + Input generated.UpdateCheckResultInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -2172,7 +2109,7 @@ func (ContactCSVInput) CSVInputWrapper() {} // ContactCSVUpdateInput wraps UpdateContactInput with CSV reference columns for bulk updates. type ContactCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateContactInput } @@ -2181,15 +2118,15 @@ func (ContactCSVUpdateInput) CSVInputWrapper() {} // ControlCSVInput wraps CreateControlInput with CSV reference columns. type ControlCSVInput struct { - Input generated.CreateControlInput - ActionPlanNames []string `csv:"ActionPlanNames"` - ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` - ControlObjectiveNames []string `csv:"ControlObjectiveNames"` - ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` - PolicyNames []string `csv:"PolicyNames"` - ProcedureNames []string `csv:"ProcedureNames"` - ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` - RiskNames []string `csv:"RiskNames"` + Input generated.CreateControlInput + ActionPlanNames []string `csv:"ActionPlanNames"` + ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` + ControlObjectiveNames []string `csv:"ControlObjectiveNames"` + ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` + PolicyNames []string `csv:"PolicyNames"` + ProcedureNames []string `csv:"ProcedureNames"` + ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` + RiskNames []string `csv:"RiskNames"` } // CSVInputWrapper marks ControlCSVInput for CSV header preprocessing. @@ -2198,16 +2135,16 @@ func (ControlCSVInput) CSVInputWrapper() {} // ControlCSVUpdateInput wraps UpdateControlInput with CSV reference columns for bulk updates. type ControlCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateControlInput - ActionPlanNames []string `csv:"ActionPlanNames"` - ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` - ControlObjectiveNames []string `csv:"ControlObjectiveNames"` - ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` - PolicyNames []string `csv:"PolicyNames"` - ProcedureNames []string `csv:"ProcedureNames"` - ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` - RiskNames []string `csv:"RiskNames"` + ID string `csv:"ID"` + Input generated.UpdateControlInput + ActionPlanNames []string `csv:"ActionPlanNames"` + ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` + ControlObjectiveNames []string `csv:"ControlObjectiveNames"` + ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` + PolicyNames []string `csv:"PolicyNames"` + ProcedureNames []string `csv:"ProcedureNames"` + ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` + RiskNames []string `csv:"RiskNames"` } // CSVInputWrapper marks ControlCSVUpdateInput for CSV header preprocessing. @@ -2224,7 +2161,7 @@ func (ControlImplementationCSVInput) CSVInputWrapper() {} // ControlImplementationCSVUpdateInput wraps UpdateControlImplementationInput with CSV reference columns for bulk updates. type ControlImplementationCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateControlImplementationInput } @@ -2242,7 +2179,7 @@ func (ControlObjectiveCSVInput) CSVInputWrapper() {} // ControlObjectiveCSVUpdateInput wraps UpdateControlObjectiveInput with CSV reference columns for bulk updates. type ControlObjectiveCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateControlObjectiveInput } @@ -2260,7 +2197,7 @@ func (CustomDomainCSVInput) CSVInputWrapper() {} // CustomDomainCSVUpdateInput wraps UpdateCustomDomainInput with CSV reference columns for bulk updates. type CustomDomainCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateCustomDomainInput } @@ -2278,7 +2215,7 @@ func (CustomTypeEnumCSVInput) CSVInputWrapper() {} // CustomTypeEnumCSVUpdateInput wraps UpdateCustomTypeEnumInput with CSV reference columns for bulk updates. type CustomTypeEnumCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateCustomTypeEnumInput } @@ -2296,7 +2233,7 @@ func (DNSVerificationCSVInput) CSVInputWrapper() {} // DNSVerificationCSVUpdateInput wraps UpdateDNSVerificationInput with CSV reference columns for bulk updates. type DNSVerificationCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDNSVerificationInput } @@ -2305,7 +2242,7 @@ func (DNSVerificationCSVUpdateInput) CSVInputWrapper() {} // DirectoryAccountCSVInput wraps CreateDirectoryAccountInput with CSV reference columns. type DirectoryAccountCSVInput struct { - Input generated.CreateDirectoryAccountInput + Input generated.CreateDirectoryAccountInput DirectoryAccountIdentityHolderEmail string `csv:"DirectoryAccountIdentityHolderEmail"` } @@ -2315,8 +2252,8 @@ func (DirectoryAccountCSVInput) CSVInputWrapper() {} // DirectoryAccountCSVUpdateInput wraps UpdateDirectoryAccountInput with CSV reference columns for bulk updates. type DirectoryAccountCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateDirectoryAccountInput + ID string `csv:"ID"` + Input generated.UpdateDirectoryAccountInput DirectoryAccountIdentityHolderEmail string `csv:"DirectoryAccountIdentityHolderEmail"` } @@ -2334,7 +2271,7 @@ func (DirectoryGroupCSVInput) CSVInputWrapper() {} // DirectoryGroupCSVUpdateInput wraps UpdateDirectoryGroupInput with CSV reference columns for bulk updates. type DirectoryGroupCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDirectoryGroupInput } @@ -2352,7 +2289,7 @@ func (DirectoryMembershipCSVInput) CSVInputWrapper() {} // DirectoryMembershipCSVUpdateInput wraps UpdateDirectoryMembershipInput with CSV reference columns for bulk updates. type DirectoryMembershipCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDirectoryMembershipInput } @@ -2370,7 +2307,7 @@ func (DirectorySyncRunCSVInput) CSVInputWrapper() {} // DirectorySyncRunCSVUpdateInput wraps UpdateDirectorySyncRunInput with CSV reference columns for bulk updates. type DirectorySyncRunCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDirectorySyncRunInput } @@ -2388,7 +2325,7 @@ func (DiscussionCSVInput) CSVInputWrapper() {} // DiscussionCSVUpdateInput wraps UpdateDiscussionInput with CSV reference columns for bulk updates. type DiscussionCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDiscussionInput } @@ -2406,7 +2343,7 @@ func (DocumentDataCSVInput) CSVInputWrapper() {} // DocumentDataCSVUpdateInput wraps UpdateDocumentDataInput with CSV reference columns for bulk updates. type DocumentDataCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateDocumentDataInput } @@ -2424,7 +2361,7 @@ func (EmailTemplateCSVInput) CSVInputWrapper() {} // EmailTemplateCSVUpdateInput wraps UpdateEmailTemplateInput with CSV reference columns for bulk updates. type EmailTemplateCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateEmailTemplateInput } @@ -2433,11 +2370,11 @@ func (EmailTemplateCSVUpdateInput) CSVInputWrapper() {} // EntityCSVInput wraps CreateEntityInput with CSV reference columns. type EntityCSVInput struct { - Input generated.CreateEntityInput + Input generated.CreateEntityInput InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - ReviewedByGroupName string `csv:"ReviewedByGroupName"` - ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` + ReviewedByGroupName string `csv:"ReviewedByGroupName"` + ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` } // CSVInputWrapper marks EntityCSVInput for CSV header preprocessing. @@ -2446,12 +2383,12 @@ func (EntityCSVInput) CSVInputWrapper() {} // EntityCSVUpdateInput wraps UpdateEntityInput with CSV reference columns for bulk updates. type EntityCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateEntityInput + ID string `csv:"ID"` + Input generated.UpdateEntityInput InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - ReviewedByGroupName string `csv:"ReviewedByGroupName"` - ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` + ReviewedByGroupName string `csv:"ReviewedByGroupName"` + ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` } // CSVInputWrapper marks EntityCSVUpdateInput for CSV header preprocessing. @@ -2468,7 +2405,7 @@ func (EntityTypeCSVInput) CSVInputWrapper() {} // EntityTypeCSVUpdateInput wraps UpdateEntityTypeInput with CSV reference columns for bulk updates. type EntityTypeCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateEntityTypeInput } @@ -2486,7 +2423,7 @@ func (EventCSVInput) CSVInputWrapper() {} // EventCSVUpdateInput wraps UpdateEventInput with CSV reference columns for bulk updates. type EventCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateEventInput } @@ -2495,7 +2432,7 @@ func (EventCSVUpdateInput) CSVInputWrapper() {} // EvidenceCSVInput wraps CreateEvidenceInput with CSV reference columns. type EvidenceCSVInput struct { - Input generated.CreateEvidenceInput + Input generated.CreateEvidenceInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -2505,8 +2442,8 @@ func (EvidenceCSVInput) CSVInputWrapper() {} // EvidenceCSVUpdateInput wraps UpdateEvidenceInput with CSV reference columns for bulk updates. type EvidenceCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateEvidenceInput + ID string `csv:"ID"` + Input generated.UpdateEvidenceInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -2524,7 +2461,7 @@ func (ExportCSVInput) CSVInputWrapper() {} // ExportCSVUpdateInput wraps UpdateExportInput with CSV reference columns for bulk updates. type ExportCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateExportInput } @@ -2542,7 +2479,7 @@ func (FileCSVInput) CSVInputWrapper() {} // FileCSVUpdateInput wraps UpdateFileInput with CSV reference columns for bulk updates. type FileCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateFileInput } @@ -2560,7 +2497,7 @@ func (FindingCSVInput) CSVInputWrapper() {} // FindingCSVUpdateInput wraps UpdateFindingInput with CSV reference columns for bulk updates. type FindingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateFindingInput } @@ -2578,7 +2515,7 @@ func (FindingControlCSVInput) CSVInputWrapper() {} // FindingControlCSVUpdateInput wraps UpdateFindingControlInput with CSV reference columns for bulk updates. type FindingControlCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateFindingControlInput } @@ -2596,7 +2533,7 @@ func (GroupCSVInput) CSVInputWrapper() {} // GroupCSVUpdateInput wraps UpdateGroupInput with CSV reference columns for bulk updates. type GroupCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateGroupInput } @@ -2614,7 +2551,7 @@ func (GroupMembershipCSVInput) CSVInputWrapper() {} // GroupMembershipCSVUpdateInput wraps UpdateGroupMembershipInput with CSV reference columns for bulk updates. type GroupMembershipCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateGroupMembershipInput } @@ -2632,7 +2569,7 @@ func (GroupSettingCSVInput) CSVInputWrapper() {} // GroupSettingCSVUpdateInput wraps UpdateGroupSettingInput with CSV reference columns for bulk updates. type GroupSettingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateGroupSettingInput } @@ -2650,7 +2587,7 @@ func (HushCSVInput) CSVInputWrapper() {} // HushCSVUpdateInput wraps UpdateHushInput with CSV reference columns for bulk updates. type HushCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateHushInput } @@ -2659,11 +2596,11 @@ func (HushCSVUpdateInput) CSVInputWrapper() {} // IdentityHolderCSVInput wraps CreateIdentityHolderInput with CSV reference columns. type IdentityHolderCSVInput struct { - Input generated.CreateIdentityHolderInput - EmployerEntityName string `csv:"EmployerEntityName"` + Input generated.CreateIdentityHolderInput + EmployerEntityName string `csv:"EmployerEntityName"` IdentityHolderUserEmail string `csv:"IdentityHolderUserEmail"` - InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` - InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` + InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` + InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` } // CSVInputWrapper marks IdentityHolderCSVInput for CSV header preprocessing. @@ -2672,12 +2609,12 @@ func (IdentityHolderCSVInput) CSVInputWrapper() {} // IdentityHolderCSVUpdateInput wraps UpdateIdentityHolderInput with CSV reference columns for bulk updates. type IdentityHolderCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateIdentityHolderInput - EmployerEntityName string `csv:"EmployerEntityName"` + ID string `csv:"ID"` + Input generated.UpdateIdentityHolderInput + EmployerEntityName string `csv:"EmployerEntityName"` IdentityHolderUserEmail string `csv:"IdentityHolderUserEmail"` - InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` - InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` + InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` + InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` } // CSVInputWrapper marks IdentityHolderCSVUpdateInput for CSV header preprocessing. @@ -2685,10 +2622,10 @@ func (IdentityHolderCSVUpdateInput) CSVInputWrapper() {} // InternalPolicyCSVInput wraps CreateInternalPolicyInput with CSV reference columns. type InternalPolicyCSVInput struct { - Input generated.CreateInternalPolicyInput - ApproverGroupName string `csv:"ApproverGroupName"` - ControlRefCodes []string `csv:"ControlRefCodes"` - DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` + Input generated.CreateInternalPolicyInput + ApproverGroupName string `csv:"ApproverGroupName"` + ControlRefCodes []string `csv:"ControlRefCodes"` + DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } // CSVInputWrapper marks InternalPolicyCSVInput for CSV header preprocessing. @@ -2697,11 +2634,11 @@ func (InternalPolicyCSVInput) CSVInputWrapper() {} // InternalPolicyCSVUpdateInput wraps UpdateInternalPolicyInput with CSV reference columns for bulk updates. type InternalPolicyCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateInternalPolicyInput - ApproverGroupName string `csv:"ApproverGroupName"` - ControlRefCodes []string `csv:"ControlRefCodes"` - DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` + ID string `csv:"ID"` + Input generated.UpdateInternalPolicyInput + ApproverGroupName string `csv:"ApproverGroupName"` + ControlRefCodes []string `csv:"ControlRefCodes"` + DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } // CSVInputWrapper marks InternalPolicyCSVUpdateInput for CSV header preprocessing. @@ -2718,7 +2655,7 @@ func (InviteCSVInput) CSVInputWrapper() {} // InviteCSVUpdateInput wraps UpdateInviteInput with CSV reference columns for bulk updates. type InviteCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateInviteInput } @@ -2736,7 +2673,7 @@ func (JobResultCSVInput) CSVInputWrapper() {} // JobResultCSVUpdateInput wraps UpdateJobResultInput with CSV reference columns for bulk updates. type JobResultCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateJobResultInput } @@ -2754,7 +2691,7 @@ func (JobRunnerCSVInput) CSVInputWrapper() {} // JobRunnerCSVUpdateInput wraps UpdateJobRunnerInput with CSV reference columns for bulk updates. type JobRunnerCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateJobRunnerInput } @@ -2772,7 +2709,7 @@ func (JobRunnerRegistrationTokenCSVInput) CSVInputWrapper() {} // JobRunnerRegistrationTokenCSVUpdateInput wraps UpdateJobRunnerRegistrationTokenInput with CSV reference columns for bulk updates. type JobRunnerRegistrationTokenCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateJobRunnerRegistrationTokenInput } @@ -2790,7 +2727,7 @@ func (JobRunnerTokenCSVInput) CSVInputWrapper() {} // JobRunnerTokenCSVUpdateInput wraps UpdateJobRunnerTokenInput with CSV reference columns for bulk updates. type JobRunnerTokenCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateJobRunnerTokenInput } @@ -2808,7 +2745,7 @@ func (JobTemplateCSVInput) CSVInputWrapper() {} // JobTemplateCSVUpdateInput wraps UpdateJobTemplateInput with CSV reference columns for bulk updates. type JobTemplateCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateJobTemplateInput } @@ -2826,7 +2763,7 @@ func (MappableDomainCSVInput) CSVInputWrapper() {} // MappableDomainCSVUpdateInput wraps UpdateMappableDomainInput with CSV reference columns for bulk updates. type MappableDomainCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateMappableDomainInput } @@ -2844,7 +2781,7 @@ func (MappedControlCSVInput) CSVInputWrapper() {} // MappedControlCSVUpdateInput wraps UpdateMappedControlInput with CSV reference columns for bulk updates. type MappedControlCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateMappedControlInput } @@ -2862,7 +2799,7 @@ func (NarrativeCSVInput) CSVInputWrapper() {} // NarrativeCSVUpdateInput wraps UpdateNarrativeInput with CSV reference columns for bulk updates. type NarrativeCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateNarrativeInput } @@ -2880,7 +2817,7 @@ func (NotificationCSVInput) CSVInputWrapper() {} // NotificationCSVUpdateInput wraps UpdateNotificationInput with CSV reference columns for bulk updates. type NotificationCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateNotificationInput } @@ -2898,7 +2835,7 @@ func (NotificationPreferenceCSVInput) CSVInputWrapper() {} // NotificationPreferenceCSVUpdateInput wraps UpdateNotificationPreferenceInput with CSV reference columns for bulk updates. type NotificationPreferenceCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateNotificationPreferenceInput } @@ -2916,7 +2853,7 @@ func (NotificationTemplateCSVInput) CSVInputWrapper() {} // NotificationTemplateCSVUpdateInput wraps UpdateNotificationTemplateInput with CSV reference columns for bulk updates. type NotificationTemplateCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateNotificationTemplateInput } @@ -2942,7 +2879,7 @@ func (OrgMembershipCSVInput) CSVInputWrapper() {} // OrgMembershipCSVUpdateInput wraps UpdateOrgMembershipInput with CSV reference columns for bulk updates. type OrgMembershipCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateOrgMembershipInput } @@ -2960,7 +2897,7 @@ func (OrganizationCSVInput) CSVInputWrapper() {} // OrganizationCSVUpdateInput wraps UpdateOrganizationInput with CSV reference columns for bulk updates. type OrganizationCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateOrganizationInput } @@ -2978,7 +2915,7 @@ func (OrganizationSettingCSVInput) CSVInputWrapper() {} // OrganizationSettingCSVUpdateInput wraps UpdateOrganizationSettingInput with CSV reference columns for bulk updates. type OrganizationSettingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateOrganizationSettingInput } @@ -2996,7 +2933,7 @@ func (PersonalAccessTokenCSVInput) CSVInputWrapper() {} // PersonalAccessTokenCSVUpdateInput wraps UpdatePersonalAccessTokenInput with CSV reference columns for bulk updates. type PersonalAccessTokenCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdatePersonalAccessTokenInput } @@ -3005,21 +2942,21 @@ func (PersonalAccessTokenCSVUpdateInput) CSVInputWrapper() {} // PlatformCSVInput wraps CreatePlatformInput with CSV reference columns. type PlatformCSVInput struct { - Input generated.CreatePlatformInput - BusinessOwnerGroupName string `csv:"BusinessOwnerGroupName"` - BusinessOwnerUserEmail string `csv:"BusinessOwnerUserEmail"` - InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` - InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - OutOfScopeAssetNames []string `csv:"OutOfScopeAssetNames"` - OutOfScopeVendorNames []string `csv:"OutOfScopeVendorNames"` - PlatformOwnerEmail string `csv:"PlatformOwnerEmail"` - SecurityOwnerGroupName string `csv:"SecurityOwnerGroupName"` - SecurityOwnerUserEmail string `csv:"SecurityOwnerUserEmail"` - SourceAssetNames []string `csv:"SourceAssetNames"` - SourceEntityNames []string `csv:"SourceEntityNames"` - SystemDetailNames []string `csv:"SystemDetailNames"` - TechnicalOwnerGroupName string `csv:"TechnicalOwnerGroupName"` - TechnicalOwnerUserEmail string `csv:"TechnicalOwnerUserEmail"` + Input generated.CreatePlatformInput + BusinessOwnerGroupName string `csv:"BusinessOwnerGroupName"` + BusinessOwnerUserEmail string `csv:"BusinessOwnerUserEmail"` + InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` + InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` + OutOfScopeAssetNames []string `csv:"OutOfScopeAssetNames"` + OutOfScopeVendorNames []string `csv:"OutOfScopeVendorNames"` + PlatformOwnerEmail string `csv:"PlatformOwnerEmail"` + SecurityOwnerGroupName string `csv:"SecurityOwnerGroupName"` + SecurityOwnerUserEmail string `csv:"SecurityOwnerUserEmail"` + SourceAssetNames []string `csv:"SourceAssetNames"` + SourceEntityNames []string `csv:"SourceEntityNames"` + SystemDetailNames []string `csv:"SystemDetailNames"` + TechnicalOwnerGroupName string `csv:"TechnicalOwnerGroupName"` + TechnicalOwnerUserEmail string `csv:"TechnicalOwnerUserEmail"` } // CSVInputWrapper marks PlatformCSVInput for CSV header preprocessing. @@ -3028,22 +2965,22 @@ func (PlatformCSVInput) CSVInputWrapper() {} // PlatformCSVUpdateInput wraps UpdatePlatformInput with CSV reference columns for bulk updates. type PlatformCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdatePlatformInput - BusinessOwnerGroupName string `csv:"BusinessOwnerGroupName"` - BusinessOwnerUserEmail string `csv:"BusinessOwnerUserEmail"` - InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` - InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` - OutOfScopeAssetNames []string `csv:"OutOfScopeAssetNames"` - OutOfScopeVendorNames []string `csv:"OutOfScopeVendorNames"` - PlatformOwnerEmail string `csv:"PlatformOwnerEmail"` - SecurityOwnerGroupName string `csv:"SecurityOwnerGroupName"` - SecurityOwnerUserEmail string `csv:"SecurityOwnerUserEmail"` - SourceAssetNames []string `csv:"SourceAssetNames"` - SourceEntityNames []string `csv:"SourceEntityNames"` - SystemDetailNames []string `csv:"SystemDetailNames"` - TechnicalOwnerGroupName string `csv:"TechnicalOwnerGroupName"` - TechnicalOwnerUserEmail string `csv:"TechnicalOwnerUserEmail"` + ID string `csv:"ID"` + Input generated.UpdatePlatformInput + BusinessOwnerGroupName string `csv:"BusinessOwnerGroupName"` + BusinessOwnerUserEmail string `csv:"BusinessOwnerUserEmail"` + InternalOwnerGroupName string `csv:"InternalOwnerGroupName"` + InternalOwnerUserEmail string `csv:"InternalOwnerUserEmail"` + OutOfScopeAssetNames []string `csv:"OutOfScopeAssetNames"` + OutOfScopeVendorNames []string `csv:"OutOfScopeVendorNames"` + PlatformOwnerEmail string `csv:"PlatformOwnerEmail"` + SecurityOwnerGroupName string `csv:"SecurityOwnerGroupName"` + SecurityOwnerUserEmail string `csv:"SecurityOwnerUserEmail"` + SourceAssetNames []string `csv:"SourceAssetNames"` + SourceEntityNames []string `csv:"SourceEntityNames"` + SystemDetailNames []string `csv:"SystemDetailNames"` + TechnicalOwnerGroupName string `csv:"TechnicalOwnerGroupName"` + TechnicalOwnerUserEmail string `csv:"TechnicalOwnerUserEmail"` } // CSVInputWrapper marks PlatformCSVUpdateInput for CSV header preprocessing. @@ -3051,8 +2988,8 @@ func (PlatformCSVUpdateInput) CSVInputWrapper() {} // ProcedureCSVInput wraps CreateProcedureInput with CSV reference columns. type ProcedureCSVInput struct { - Input generated.CreateProcedureInput - ApproverGroupName string `csv:"ApproverGroupName"` + Input generated.CreateProcedureInput + ApproverGroupName string `csv:"ApproverGroupName"` DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } @@ -3062,9 +2999,9 @@ func (ProcedureCSVInput) CSVInputWrapper() {} // ProcedureCSVUpdateInput wraps UpdateProcedureInput with CSV reference columns for bulk updates. type ProcedureCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateProcedureInput - ApproverGroupName string `csv:"ApproverGroupName"` + ID string `csv:"ID"` + Input generated.UpdateProcedureInput + ApproverGroupName string `csv:"ApproverGroupName"` DocumentDelegateGroupName string `csv:"DocumentDelegateGroupName"` } @@ -3073,9 +3010,9 @@ func (ProcedureCSVUpdateInput) CSVInputWrapper() {} // ProgramCSVInput wraps CreateProgramInput with CSV reference columns. type ProgramCSVInput struct { - Input generated.CreateProgramInput - ControlRefCodes []string `csv:"ControlRefCodes"` - ProgramOwnerEmail string `csv:"ProgramOwnerEmail"` + Input generated.CreateProgramInput + ControlRefCodes []string `csv:"ControlRefCodes"` + ProgramOwnerEmail string `csv:"ProgramOwnerEmail"` } // CSVInputWrapper marks ProgramCSVInput for CSV header preprocessing. @@ -3084,10 +3021,10 @@ func (ProgramCSVInput) CSVInputWrapper() {} // ProgramCSVUpdateInput wraps UpdateProgramInput with CSV reference columns for bulk updates. type ProgramCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateProgramInput - ControlRefCodes []string `csv:"ControlRefCodes"` - ProgramOwnerEmail string `csv:"ProgramOwnerEmail"` + ID string `csv:"ID"` + Input generated.UpdateProgramInput + ControlRefCodes []string `csv:"ControlRefCodes"` + ProgramOwnerEmail string `csv:"ProgramOwnerEmail"` } // CSVInputWrapper marks ProgramCSVUpdateInput for CSV header preprocessing. @@ -3104,7 +3041,7 @@ func (ProgramMembershipCSVInput) CSVInputWrapper() {} // ProgramMembershipCSVUpdateInput wraps UpdateProgramMembershipInput with CSV reference columns for bulk updates. type ProgramMembershipCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateProgramMembershipInput } @@ -3113,8 +3050,8 @@ func (ProgramMembershipCSVUpdateInput) CSVInputWrapper() {} // RemediationCSVInput wraps CreateRemediationInput with CSV reference columns. type RemediationCSVInput struct { - Input generated.CreateRemediationInput - ControlRefCodes []string `csv:"ControlRefCodes"` + Input generated.CreateRemediationInput + ControlRefCodes []string `csv:"ControlRefCodes"` SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` } @@ -3124,9 +3061,9 @@ func (RemediationCSVInput) CSVInputWrapper() {} // RemediationCSVUpdateInput wraps UpdateRemediationInput with CSV reference columns for bulk updates. type RemediationCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateRemediationInput - ControlRefCodes []string `csv:"ControlRefCodes"` + ID string `csv:"ID"` + Input generated.UpdateRemediationInput + ControlRefCodes []string `csv:"ControlRefCodes"` SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` } @@ -3135,7 +3072,7 @@ func (RemediationCSVUpdateInput) CSVInputWrapper() {} // ReviewCSVInput wraps CreateReviewInput with CSV reference columns. type ReviewCSVInput struct { - Input generated.CreateReviewInput + Input generated.CreateReviewInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3145,8 +3082,8 @@ func (ReviewCSVInput) CSVInputWrapper() {} // ReviewCSVUpdateInput wraps UpdateReviewInput with CSV reference columns for bulk updates. type ReviewCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateReviewInput + ID string `csv:"ID"` + Input generated.UpdateReviewInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3155,15 +3092,15 @@ func (ReviewCSVUpdateInput) CSVInputWrapper() {} // RiskCSVInput wraps CreateRiskInput with CSV reference columns. type RiskCSVInput struct { - Input generated.CreateRiskInput - ActionPlanNames []string `csv:"ActionPlanNames"` - AssetNames []string `csv:"AssetNames"` - ControlRefCodes []string `csv:"ControlRefCodes"` - EntityNames []string `csv:"EntityNames"` - PlatformNames []string `csv:"PlatformNames"` - RiskDelegateGroupName string `csv:"RiskDelegateGroupName"` - StakeholderGroupName string `csv:"StakeholderGroupName"` - SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` + Input generated.CreateRiskInput + ActionPlanNames []string `csv:"ActionPlanNames"` + AssetNames []string `csv:"AssetNames"` + ControlRefCodes []string `csv:"ControlRefCodes"` + EntityNames []string `csv:"EntityNames"` + PlatformNames []string `csv:"PlatformNames"` + RiskDelegateGroupName string `csv:"RiskDelegateGroupName"` + StakeholderGroupName string `csv:"StakeholderGroupName"` + SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` } // CSVInputWrapper marks RiskCSVInput for CSV header preprocessing. @@ -3172,16 +3109,16 @@ func (RiskCSVInput) CSVInputWrapper() {} // RiskCSVUpdateInput wraps UpdateRiskInput with CSV reference columns for bulk updates. type RiskCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateRiskInput - ActionPlanNames []string `csv:"ActionPlanNames"` - AssetNames []string `csv:"AssetNames"` - ControlRefCodes []string `csv:"ControlRefCodes"` - EntityNames []string `csv:"EntityNames"` - PlatformNames []string `csv:"PlatformNames"` - RiskDelegateGroupName string `csv:"RiskDelegateGroupName"` - StakeholderGroupName string `csv:"StakeholderGroupName"` - SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` + ID string `csv:"ID"` + Input generated.UpdateRiskInput + ActionPlanNames []string `csv:"ActionPlanNames"` + AssetNames []string `csv:"AssetNames"` + ControlRefCodes []string `csv:"ControlRefCodes"` + EntityNames []string `csv:"EntityNames"` + PlatformNames []string `csv:"PlatformNames"` + RiskDelegateGroupName string `csv:"RiskDelegateGroupName"` + StakeholderGroupName string `csv:"StakeholderGroupName"` + SubcontrolRefCodes []string `csv:"SubcontrolRefCodes"` } // CSVInputWrapper marks RiskCSVUpdateInput for CSV header preprocessing. @@ -3198,7 +3135,7 @@ func (SLADefinitionCSVInput) CSVInputWrapper() {} // SLADefinitionCSVUpdateInput wraps UpdateSLADefinitionInput with CSV reference columns for bulk updates. type SLADefinitionCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateSLADefinitionInput } @@ -3207,14 +3144,14 @@ func (SLADefinitionCSVUpdateInput) CSVInputWrapper() {} // ScanCSVInput wraps CreateScanInput with CSV reference columns. type ScanCSVInput struct { - Input generated.CreateScanInput - AssignedToGroupName string `csv:"AssignedToGroupName"` - AssignedToUserEmail string `csv:"AssignedToUserEmail"` + Input generated.CreateScanInput + AssignedToGroupName string `csv:"AssignedToGroupName"` + AssignedToUserEmail string `csv:"AssignedToUserEmail"` GeneratedByPlatformName string `csv:"GeneratedByPlatformName"` - PerformedByGroupName string `csv:"PerformedByGroupName"` - PerformedByUserEmail string `csv:"PerformedByUserEmail"` - ReviewedByGroupName string `csv:"ReviewedByGroupName"` - ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` + PerformedByGroupName string `csv:"PerformedByGroupName"` + PerformedByUserEmail string `csv:"PerformedByUserEmail"` + ReviewedByGroupName string `csv:"ReviewedByGroupName"` + ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` } // CSVInputWrapper marks ScanCSVInput for CSV header preprocessing. @@ -3223,15 +3160,15 @@ func (ScanCSVInput) CSVInputWrapper() {} // ScanCSVUpdateInput wraps UpdateScanInput with CSV reference columns for bulk updates. type ScanCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateScanInput - AssignedToGroupName string `csv:"AssignedToGroupName"` - AssignedToUserEmail string `csv:"AssignedToUserEmail"` + ID string `csv:"ID"` + Input generated.UpdateScanInput + AssignedToGroupName string `csv:"AssignedToGroupName"` + AssignedToUserEmail string `csv:"AssignedToUserEmail"` GeneratedByPlatformName string `csv:"GeneratedByPlatformName"` - PerformedByGroupName string `csv:"PerformedByGroupName"` - PerformedByUserEmail string `csv:"PerformedByUserEmail"` - ReviewedByGroupName string `csv:"ReviewedByGroupName"` - ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` + PerformedByGroupName string `csv:"PerformedByGroupName"` + PerformedByUserEmail string `csv:"PerformedByUserEmail"` + ReviewedByGroupName string `csv:"ReviewedByGroupName"` + ReviewedByUserEmail string `csv:"ReviewedByUserEmail"` } // CSVInputWrapper marks ScanCSVUpdateInput for CSV header preprocessing. @@ -3239,7 +3176,7 @@ func (ScanCSVUpdateInput) CSVInputWrapper() {} // ScheduledJobCSVInput wraps CreateScheduledJobInput with CSV reference columns. type ScheduledJobCSVInput struct { - Input generated.CreateScheduledJobInput + Input generated.CreateScheduledJobInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3249,8 +3186,8 @@ func (ScheduledJobCSVInput) CSVInputWrapper() {} // ScheduledJobCSVUpdateInput wraps UpdateScheduledJobInput with CSV reference columns for bulk updates. type ScheduledJobCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateScheduledJobInput + ID string `csv:"ID"` + Input generated.UpdateScheduledJobInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3268,7 +3205,7 @@ func (ScheduledJobRunCSVInput) CSVInputWrapper() {} // ScheduledJobRunCSVUpdateInput wraps UpdateScheduledJobRunInput with CSV reference columns for bulk updates. type ScheduledJobRunCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateScheduledJobRunInput } @@ -3286,7 +3223,7 @@ func (StandardCSVInput) CSVInputWrapper() {} // StandardCSVUpdateInput wraps UpdateStandardInput with CSV reference columns for bulk updates. type StandardCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateStandardInput } @@ -3295,15 +3232,15 @@ func (StandardCSVUpdateInput) CSVInputWrapper() {} // SubcontrolCSVInput wraps CreateSubcontrolInput with CSV reference columns. type SubcontrolCSVInput struct { - Input generated.CreateSubcontrolInput - ActionPlanNames []string `csv:"ActionPlanNames"` - ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` - ControlObjectiveNames []string `csv:"ControlObjectiveNames"` - ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` - PolicyNames []string `csv:"PolicyNames"` - ProcedureNames []string `csv:"ProcedureNames"` - ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` - RiskNames []string `csv:"RiskNames"` + Input generated.CreateSubcontrolInput + ActionPlanNames []string `csv:"ActionPlanNames"` + ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` + ControlObjectiveNames []string `csv:"ControlObjectiveNames"` + ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` + PolicyNames []string `csv:"PolicyNames"` + ProcedureNames []string `csv:"ProcedureNames"` + ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` + RiskNames []string `csv:"RiskNames"` } // CSVInputWrapper marks SubcontrolCSVInput for CSV header preprocessing. @@ -3312,16 +3249,16 @@ func (SubcontrolCSVInput) CSVInputWrapper() {} // SubcontrolCSVUpdateInput wraps UpdateSubcontrolInput with CSV reference columns for bulk updates. type SubcontrolCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateSubcontrolInput - ActionPlanNames []string `csv:"ActionPlanNames"` - ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` - ControlObjectiveNames []string `csv:"ControlObjectiveNames"` - ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` - PolicyNames []string `csv:"PolicyNames"` - ProcedureNames []string `csv:"ProcedureNames"` - ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` - RiskNames []string `csv:"RiskNames"` + ID string `csv:"ID"` + Input generated.UpdateSubcontrolInput + ActionPlanNames []string `csv:"ActionPlanNames"` + ControlDelegateGroupName string `csv:"ControlDelegateGroupName"` + ControlObjectiveNames []string `csv:"ControlObjectiveNames"` + ControlOwnerGroupName string `csv:"ControlOwnerGroupName"` + PolicyNames []string `csv:"PolicyNames"` + ProcedureNames []string `csv:"ProcedureNames"` + ResponsiblePartyEntityName string `csv:"ResponsiblePartyEntityName"` + RiskNames []string `csv:"RiskNames"` } // CSVInputWrapper marks SubcontrolCSVUpdateInput for CSV header preprocessing. @@ -3338,7 +3275,7 @@ func (SubprocessorCSVInput) CSVInputWrapper() {} // SubprocessorCSVUpdateInput wraps UpdateSubprocessorInput with CSV reference columns for bulk updates. type SubprocessorCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateSubprocessorInput } @@ -3356,7 +3293,7 @@ func (SubscriberCSVInput) CSVInputWrapper() {} // SubscriberCSVUpdateInput wraps UpdateSubscriberInput with CSV reference columns for bulk updates. type SubscriberCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateSubscriberInput } @@ -3374,7 +3311,7 @@ func (SystemDetailCSVInput) CSVInputWrapper() {} // SystemDetailCSVUpdateInput wraps UpdateSystemDetailInput with CSV reference columns for bulk updates. type SystemDetailCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateSystemDetailInput } @@ -3392,7 +3329,7 @@ func (TFASettingCSVInput) CSVInputWrapper() {} // TFASettingCSVUpdateInput wraps UpdateTFASettingInput with CSV reference columns for bulk updates. type TFASettingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTFASettingInput } @@ -3410,7 +3347,7 @@ func (TagDefinitionCSVInput) CSVInputWrapper() {} // TagDefinitionCSVUpdateInput wraps UpdateTagDefinitionInput with CSV reference columns for bulk updates. type TagDefinitionCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTagDefinitionInput } @@ -3419,9 +3356,9 @@ func (TagDefinitionCSVUpdateInput) CSVInputWrapper() {} // TaskCSVInput wraps CreateTaskInput with CSV reference columns. type TaskCSVInput struct { - Input generated.CreateTaskInput - AssigneeEmail string `csv:"AssigneeEmail"` - AssignerEmail string `csv:"AssignerEmail"` + Input generated.CreateTaskInput + AssigneeEmail string `csv:"AssigneeEmail"` + AssignerEmail string `csv:"AssignerEmail"` ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3431,10 +3368,10 @@ func (TaskCSVInput) CSVInputWrapper() {} // TaskCSVUpdateInput wraps UpdateTaskInput with CSV reference columns for bulk updates. type TaskCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateTaskInput - AssigneeEmail string `csv:"AssigneeEmail"` - AssignerEmail string `csv:"AssignerEmail"` + ID string `csv:"ID"` + Input generated.UpdateTaskInput + AssigneeEmail string `csv:"AssigneeEmail"` + AssignerEmail string `csv:"AssignerEmail"` ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3452,7 +3389,7 @@ func (TemplateCSVInput) CSVInputWrapper() {} // TemplateCSVUpdateInput wraps UpdateTemplateInput with CSV reference columns for bulk updates. type TemplateCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTemplateInput } @@ -3470,7 +3407,7 @@ func (TrustCenterCSVInput) CSVInputWrapper() {} // TrustCenterCSVUpdateInput wraps UpdateTrustCenterInput with CSV reference columns for bulk updates. type TrustCenterCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterInput } @@ -3488,7 +3425,7 @@ func (TrustCenterComplianceCSVInput) CSVInputWrapper() {} // TrustCenterComplianceCSVUpdateInput wraps UpdateTrustCenterComplianceInput with CSV reference columns for bulk updates. type TrustCenterComplianceCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterComplianceInput } @@ -3506,7 +3443,7 @@ func (TrustCenterDocCSVInput) CSVInputWrapper() {} // TrustCenterDocCSVUpdateInput wraps UpdateTrustCenterDocInput with CSV reference columns for bulk updates. type TrustCenterDocCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterDocInput } @@ -3524,7 +3461,7 @@ func (TrustCenterEntityCSVInput) CSVInputWrapper() {} // TrustCenterEntityCSVUpdateInput wraps UpdateTrustCenterEntityInput with CSV reference columns for bulk updates. type TrustCenterEntityCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterEntityInput } @@ -3542,7 +3479,7 @@ func (TrustCenterFAQCSVInput) CSVInputWrapper() {} // TrustCenterFAQCSVUpdateInput wraps UpdateTrustCenterFAQInput with CSV reference columns for bulk updates. type TrustCenterFAQCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterFAQInput } @@ -3560,7 +3497,7 @@ func (TrustCenterNDARequestCSVInput) CSVInputWrapper() {} // TrustCenterNDARequestCSVUpdateInput wraps UpdateTrustCenterNDARequestInput with CSV reference columns for bulk updates. type TrustCenterNDARequestCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterNDARequestInput } @@ -3578,7 +3515,7 @@ func (TrustCenterSettingCSVInput) CSVInputWrapper() {} // TrustCenterSettingCSVUpdateInput wraps UpdateTrustCenterSettingInput with CSV reference columns for bulk updates. type TrustCenterSettingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterSettingInput } @@ -3596,7 +3533,7 @@ func (TrustCenterSubprocessorCSVInput) CSVInputWrapper() {} // TrustCenterSubprocessorCSVUpdateInput wraps UpdateTrustCenterSubprocessorInput with CSV reference columns for bulk updates. type TrustCenterSubprocessorCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterSubprocessorInput } @@ -3614,7 +3551,7 @@ func (TrustCenterWatermarkConfigCSVInput) CSVInputWrapper() {} // TrustCenterWatermarkConfigCSVUpdateInput wraps UpdateTrustCenterWatermarkConfigInput with CSV reference columns for bulk updates. type TrustCenterWatermarkConfigCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateTrustCenterWatermarkConfigInput } @@ -3632,7 +3569,7 @@ func (UserCSVInput) CSVInputWrapper() {} // UserCSVUpdateInput wraps UpdateUserInput with CSV reference columns for bulk updates. type UserCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateUserInput } @@ -3650,7 +3587,7 @@ func (UserSettingCSVInput) CSVInputWrapper() {} // UserSettingCSVUpdateInput wraps UpdateUserSettingInput with CSV reference columns for bulk updates. type UserSettingCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateUserSettingInput } @@ -3659,7 +3596,7 @@ func (UserSettingCSVUpdateInput) CSVInputWrapper() {} // VendorRiskScoreCSVInput wraps CreateVendorRiskScoreInput with CSV reference columns. type VendorRiskScoreCSVInput struct { - Input generated.CreateVendorRiskScoreInput + Input generated.CreateVendorRiskScoreInput VendorRiskScoreEntityName string `csv:"VendorRiskScoreEntityName"` } @@ -3669,8 +3606,8 @@ func (VendorRiskScoreCSVInput) CSVInputWrapper() {} // VendorRiskScoreCSVUpdateInput wraps UpdateVendorRiskScoreInput with CSV reference columns for bulk updates. type VendorRiskScoreCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateVendorRiskScoreInput + ID string `csv:"ID"` + Input generated.UpdateVendorRiskScoreInput VendorRiskScoreEntityName string `csv:"VendorRiskScoreEntityName"` } @@ -3688,7 +3625,7 @@ func (VendorScoringConfigCSVInput) CSVInputWrapper() {} // VendorScoringConfigCSVUpdateInput wraps UpdateVendorScoringConfigInput with CSV reference columns for bulk updates. type VendorScoringConfigCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateVendorScoringConfigInput } @@ -3697,7 +3634,7 @@ func (VendorScoringConfigCSVUpdateInput) CSVInputWrapper() {} // VulnerabilityCSVInput wraps CreateVulnerabilityInput with CSV reference columns. type VulnerabilityCSVInput struct { - Input generated.CreateVulnerabilityInput + Input generated.CreateVulnerabilityInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3707,8 +3644,8 @@ func (VulnerabilityCSVInput) CSVInputWrapper() {} // VulnerabilityCSVUpdateInput wraps UpdateVulnerabilityInput with CSV reference columns for bulk updates. type VulnerabilityCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` - Input generated.UpdateVulnerabilityInput + ID string `csv:"ID"` + Input generated.UpdateVulnerabilityInput ControlRefCodes []string `csv:"ControlRefCodes"` } @@ -3726,7 +3663,7 @@ func (WorkflowDefinitionCSVInput) CSVInputWrapper() {} // WorkflowDefinitionCSVUpdateInput wraps UpdateWorkflowDefinitionInput with CSV reference columns for bulk updates. type WorkflowDefinitionCSVUpdateInput struct { // ID is the entity ID to update - ID string `csv:"ID"` + ID string `csv:"ID"` Input generated.UpdateWorkflowDefinitionInput } diff --git a/internal/ent/generated/actionplan/actionplan.go b/internal/ent/generated/actionplan/actionplan.go index b70291c8c1..9f788651f9 100644 --- a/internal/ent/generated/actionplan/actionplan.go +++ b/internal/ent/generated/actionplan/actionplan.go @@ -411,6 +411,8 @@ var ( DefaultImprovementSuggestions []string // DefaultDismissedImprovementSuggestions holds the default value on creation for the "dismissed_improvement_suggestions" field. DefaultDismissedImprovementSuggestions []string + // URLValidator is a validator for the "url" field. It is called by the builders before save. + URLValidator func(string) error // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // DefaultSystemOwned holds the default value on creation for the "system_owned" field. diff --git a/internal/ent/generated/actionplan_create.go b/internal/ent/generated/actionplan_create.go index 137b23e512..9c097ecf36 100644 --- a/internal/ent/generated/actionplan_create.go +++ b/internal/ent/generated/actionplan_create.go @@ -978,6 +978,11 @@ func (_c *ActionPlanCreate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.review_frequency": %w`, err)} } } + if v, ok := _c.mutation.URL(); ok { + if err := actionplan.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.url": %w`, err)} + } + } if v, ok := _c.mutation.OwnerID(); ok { if err := actionplan.OwnerIDValidator(v); err != nil { return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.owner_id": %w`, err)} diff --git a/internal/ent/generated/actionplan_update.go b/internal/ent/generated/actionplan_update.go index a1e31c5500..c02d2fea75 100644 --- a/internal/ent/generated/actionplan_update.go +++ b/internal/ent/generated/actionplan_update.go @@ -1425,6 +1425,11 @@ func (_u *ActionPlanUpdate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := actionplan.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.url": %w`, err)} + } + } if v, ok := _u.mutation.Title(); ok { if err := actionplan.TitleValidator(v); err != nil { return &ValidationError{Name: "title", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.title": %w`, err)} @@ -3926,6 +3931,11 @@ func (_u *ActionPlanUpdateOne) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := actionplan.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.url": %w`, err)} + } + } if v, ok := _u.mutation.Title(); ok { if err := actionplan.TitleValidator(v); err != nil { return &ValidationError{Name: "title", err: fmt.Errorf(`generated: validator failed for field "ActionPlan.title": %w`, err)} diff --git a/internal/ent/generated/assessment/assessment.go b/internal/ent/generated/assessment/assessment.go index 0ef66e4c25..8fae573dd7 100644 --- a/internal/ent/generated/assessment/assessment.go +++ b/internal/ent/generated/assessment/assessment.go @@ -180,8 +180,8 @@ func ValidColumn(column string) bool { // // import _ "github.com/theopenlane/core/internal/ent/generated/runtime" var ( - Hooks [12]ent.Hook - Interceptors [3]ent.Interceptor + Hooks [13]ent.Hook + Interceptors [4]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time @@ -191,6 +191,8 @@ var ( UpdateDefaultUpdatedAt func() time.Time // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string + // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. + OwnerIDValidator func(string) error // DefaultSystemOwned holds the default value on creation for the "system_owned" field. DefaultSystemOwned bool // NameValidator is a validator for the "name" field. It is called by the builders before save. diff --git a/internal/ent/generated/assessment_create.go b/internal/ent/generated/assessment_create.go index b4539e4aef..3a30e30030 100644 --- a/internal/ent/generated/assessment_create.go +++ b/internal/ent/generated/assessment_create.go @@ -438,6 +438,11 @@ func (_c *AssessmentCreate) defaults() error { // check runs all checks and user-defined validators on the builder. func (_c *AssessmentCreate) check() error { + if v, ok := _c.mutation.OwnerID(); ok { + if err := assessment.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "Assessment.owner_id": %w`, err)} + } + } if _, ok := _c.mutation.Name(); !ok { return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Assessment.name"`)} } diff --git a/internal/ent/generated/assessment_update.go b/internal/ent/generated/assessment_update.go index bff71b75ee..e18b2de2d0 100644 --- a/internal/ent/generated/assessment_update.go +++ b/internal/ent/generated/assessment_update.go @@ -17,7 +17,6 @@ import ( "github.com/theopenlane/core/internal/ent/generated/campaign" "github.com/theopenlane/core/internal/ent/generated/group" "github.com/theopenlane/core/internal/ent/generated/identityholder" - "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/platform" "github.com/theopenlane/core/internal/ent/generated/predicate" "github.com/theopenlane/core/internal/ent/generated/template" @@ -129,26 +128,6 @@ func (_u *AssessmentUpdate) ClearTags() *AssessmentUpdate { return _u } -// SetOwnerID sets the "owner_id" field. -func (_u *AssessmentUpdate) SetOwnerID(v string) *AssessmentUpdate { - _u.mutation.SetOwnerID(v) - return _u -} - -// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. -func (_u *AssessmentUpdate) SetNillableOwnerID(v *string) *AssessmentUpdate { - if v != nil { - _u.SetOwnerID(*v) - } - return _u -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (_u *AssessmentUpdate) ClearOwnerID() *AssessmentUpdate { - _u.mutation.ClearOwnerID() - return _u -} - // SetInternalNotes sets the "internal_notes" field. func (_u *AssessmentUpdate) SetInternalNotes(v string) *AssessmentUpdate { _u.mutation.SetInternalNotes(v) @@ -274,11 +253,6 @@ func (_u *AssessmentUpdate) ClearResponseDueDuration() *AssessmentUpdate { return _u } -// SetOwner sets the "owner" edge to the Organization entity. -func (_u *AssessmentUpdate) SetOwner(v *Organization) *AssessmentUpdate { - return _u.SetOwnerID(v.ID) -} - // AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by IDs. func (_u *AssessmentUpdate) AddBlockedGroupIDs(ids ...string) *AssessmentUpdate { _u.mutation.AddBlockedGroupIDs(ids...) @@ -394,12 +368,6 @@ func (_u *AssessmentUpdate) Mutation() *AssessmentMutation { return _u.mutation } -// ClearOwner clears the "owner" edge to the Organization entity. -func (_u *AssessmentUpdate) ClearOwner() *AssessmentUpdate { - _u.mutation.ClearOwner() - return _u -} - // ClearBlockedGroups clears all "blocked_groups" edges to the Group entity. func (_u *AssessmentUpdate) ClearBlockedGroups() *AssessmentUpdate { _u.mutation.ClearBlockedGroups() @@ -703,37 +671,6 @@ func (_u *AssessmentUpdate) sqlSave(ctx context.Context) (_node int, err error) if _u.mutation.ResponseDueDurationCleared() { _spec.ClearField(assessment.FieldResponseDueDuration, field.TypeInt64) } - if _u.mutation.OwnerCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: assessment.OwnerTable, - Columns: []string{assessment.OwnerColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.OwnerIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: assessment.OwnerTable, - Columns: []string{assessment.OwnerColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } if _u.mutation.BlockedGroupsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, @@ -1215,26 +1152,6 @@ func (_u *AssessmentUpdateOne) ClearTags() *AssessmentUpdateOne { return _u } -// SetOwnerID sets the "owner_id" field. -func (_u *AssessmentUpdateOne) SetOwnerID(v string) *AssessmentUpdateOne { - _u.mutation.SetOwnerID(v) - return _u -} - -// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. -func (_u *AssessmentUpdateOne) SetNillableOwnerID(v *string) *AssessmentUpdateOne { - if v != nil { - _u.SetOwnerID(*v) - } - return _u -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (_u *AssessmentUpdateOne) ClearOwnerID() *AssessmentUpdateOne { - _u.mutation.ClearOwnerID() - return _u -} - // SetInternalNotes sets the "internal_notes" field. func (_u *AssessmentUpdateOne) SetInternalNotes(v string) *AssessmentUpdateOne { _u.mutation.SetInternalNotes(v) @@ -1360,11 +1277,6 @@ func (_u *AssessmentUpdateOne) ClearResponseDueDuration() *AssessmentUpdateOne { return _u } -// SetOwner sets the "owner" edge to the Organization entity. -func (_u *AssessmentUpdateOne) SetOwner(v *Organization) *AssessmentUpdateOne { - return _u.SetOwnerID(v.ID) -} - // AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by IDs. func (_u *AssessmentUpdateOne) AddBlockedGroupIDs(ids ...string) *AssessmentUpdateOne { _u.mutation.AddBlockedGroupIDs(ids...) @@ -1480,12 +1392,6 @@ func (_u *AssessmentUpdateOne) Mutation() *AssessmentMutation { return _u.mutation } -// ClearOwner clears the "owner" edge to the Organization entity. -func (_u *AssessmentUpdateOne) ClearOwner() *AssessmentUpdateOne { - _u.mutation.ClearOwner() - return _u -} - // ClearBlockedGroups clears all "blocked_groups" edges to the Group entity. func (_u *AssessmentUpdateOne) ClearBlockedGroups() *AssessmentUpdateOne { _u.mutation.ClearBlockedGroups() @@ -1819,37 +1725,6 @@ func (_u *AssessmentUpdateOne) sqlSave(ctx context.Context) (_node *Assessment, if _u.mutation.ResponseDueDurationCleared() { _spec.ClearField(assessment.FieldResponseDueDuration, field.TypeInt64) } - if _u.mutation.OwnerCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: assessment.OwnerTable, - Columns: []string{assessment.OwnerColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.OwnerIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: assessment.OwnerTable, - Columns: []string{assessment.OwnerColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Assessment - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } if _u.mutation.BlockedGroupsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/generated/authz_checks.go b/internal/ent/generated/authz_checks.go index 8abbf4c40d..4c45c1ce70 100644 --- a/internal/ent/generated/authz_checks.go +++ b/internal/ent/generated/authz_checks.go @@ -7803,6 +7803,7 @@ func (m *TrustCenterSettingMutation) CheckAccessForEdit(ctx context.Context) err input, ok := gInput.(CreateTrustCenterSettingInput) if ok { objectID = *input.TrustCenterID + } // check the id from the args diff --git a/internal/ent/generated/client.go b/internal/ent/generated/client.go index 848fed7fdf..b90fd5b1e5 100644 --- a/internal/ent/generated/client.go +++ b/internal/ent/generated/client.go @@ -20775,25 +20775,6 @@ func (c *OrganizationClient) QueryDiscussionCreators(_m *Organization) *GroupQue return query } -// QueryEmailBrandingCreators queries the email_branding_creators edge of a Organization. -func (c *OrganizationClient) QueryEmailBrandingCreators(_m *Organization) *GroupQuery { - query := (&GroupClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := _m.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailBrandingCreatorsTable, organization.EmailBrandingCreatorsColumn), - ) - schemaConfig := _m.schemaConfig - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.Group - fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) - return fromV, nil - } - return query -} - // QueryEmailTemplateCreators queries the email_template_creators edge of a Organization. func (c *OrganizationClient) QueryEmailTemplateCreators(_m *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() diff --git a/internal/ent/generated/entql.go b/internal/ent/generated/entql.go index 54addc28ea..6637837c05 100644 --- a/internal/ent/generated/entql.go +++ b/internal/ent/generated/entql.go @@ -10914,18 +10914,6 @@ var schemaGraph = func() *sqlgraph.Schema { "Organization", "Group", ) - graph.MustAddE( - "email_branding_creators", - &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - }, - "Organization", - "Group", - ) graph.MustAddE( "email_template_creators", &sqlgraph.EdgeSpec{ @@ -35761,20 +35749,6 @@ func (f *OrganizationFilter) WhereHasDiscussionCreatorsWith(preds ...predicate.G }))) } -// WhereHasEmailBrandingCreators applies a predicate to check if query has an edge email_branding_creators. -func (f *OrganizationFilter) WhereHasEmailBrandingCreators() { - f.Where(entql.HasEdge("email_branding_creators")) -} - -// WhereHasEmailBrandingCreatorsWith applies a predicate to check if query has an edge email_branding_creators with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEmailBrandingCreatorsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("email_branding_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - // WhereHasEmailTemplateCreators applies a predicate to check if query has an edge email_template_creators. func (f *OrganizationFilter) WhereHasEmailTemplateCreators() { f.Where(entql.HasEdge("email_template_creators")) diff --git a/internal/ent/generated/gql_collection.go b/internal/ent/generated/gql_collection.go index feea1bee2a..b11d779a71 100644 --- a/internal/ent/generated/gql_collection.go +++ b/internal/ent/generated/gql_collection.go @@ -44620,7 +44620,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "controlCreators": + case "actionPlanCreators": var ( alias = field.Alias path = append(path, alias) @@ -44648,13 +44648,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_control_creators"` + NodeID string `sql:"organization_action_plan_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ActionPlanCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ActionPlanCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -44673,7 +44673,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ControlCreators) + n := len(nodes[i].Edges.ActionPlanCreators) if nodes[i].Edges.totalCount[0] == nil { nodes[i].Edges.totalCount[0] = make(map[string]int) } @@ -44699,17 +44699,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ControlCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ActionPlanCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlCreators(alias, func(wq *GroupQuery) { + _q.WithNamedActionPlanCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "controlImplementationCreators": + case "apiTokenCreators": var ( alias = field.Alias path = append(path, alias) @@ -44737,13 +44737,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_control_implementation_creators"` + NodeID string `sql:"organization_api_token_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlImplementationCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.APITokenCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlImplementationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.APITokenCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -44762,7 +44762,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ControlImplementationCreators) + n := len(nodes[i].Edges.APITokenCreators) if nodes[i].Edges.totalCount[1] == nil { nodes[i].Edges.totalCount[1] = make(map[string]int) } @@ -44788,17 +44788,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ControlImplementationCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.APITokenCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlImplementationCreators(alias, func(wq *GroupQuery) { + _q.WithNamedAPITokenCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "controlObjectiveCreators": + case "assessmentCreators": var ( alias = field.Alias path = append(path, alias) @@ -44826,13 +44826,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_control_objective_creators"` + NodeID string `sql:"organization_assessment_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlObjectiveCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AssessmentCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlObjectiveCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AssessmentCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -44851,7 +44851,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ControlObjectiveCreators) + n := len(nodes[i].Edges.AssessmentCreators) if nodes[i].Edges.totalCount[2] == nil { nodes[i].Edges.totalCount[2] = make(map[string]int) } @@ -44877,17 +44877,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ControlObjectiveCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AssessmentCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlObjectiveCreators(alias, func(wq *GroupQuery) { + _q.WithNamedAssessmentCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "evidenceCreators": + case "assetCreators": var ( alias = field.Alias path = append(path, alias) @@ -44915,13 +44915,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_evidence_creators"` + NodeID string `sql:"organization_asset_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EvidenceCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AssetCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.EvidenceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AssetCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -44940,7 +44940,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.EvidenceCreators) + n := len(nodes[i].Edges.AssetCreators) if nodes[i].Edges.totalCount[3] == nil { nodes[i].Edges.totalCount[3] = make(map[string]int) } @@ -44966,17 +44966,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.EvidenceCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AssetCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedEvidenceCreators(alias, func(wq *GroupQuery) { + _q.WithNamedAssetCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "assetCreators": + case "campaignCreators": var ( alias = field.Alias path = append(path, alias) @@ -45004,13 +45004,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_asset_creators"` + NodeID string `sql:"organization_campaign_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssetCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CampaignCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.AssetCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CampaignCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45029,7 +45029,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.AssetCreators) + n := len(nodes[i].Edges.CampaignCreators) if nodes[i].Edges.totalCount[4] == nil { nodes[i].Edges.totalCount[4] = make(map[string]int) } @@ -45055,17 +45055,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.AssetCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CampaignCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedAssetCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCampaignCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "findingCreators": + case "campaignTargetCreators": var ( alias = field.Alias path = append(path, alias) @@ -45093,13 +45093,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_finding_creators"` + NodeID string `sql:"organization_campaign_target_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.FindingCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CampaignTargetCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.FindingCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CampaignTargetCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45118,7 +45118,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.FindingCreators) + n := len(nodes[i].Edges.CampaignTargetCreators) if nodes[i].Edges.totalCount[5] == nil { nodes[i].Edges.totalCount[5] = make(map[string]int) } @@ -45144,17 +45144,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.FindingCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CampaignTargetCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedFindingCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCampaignTargetCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "vulnerabilityCreators": + case "checkResultCreators": var ( alias = field.Alias path = append(path, alias) @@ -45182,13 +45182,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_vulnerability_creators"` + NodeID string `sql:"organization_check_result_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.VulnerabilityCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CheckResultCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.VulnerabilityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CheckResultCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45207,7 +45207,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.VulnerabilityCreators) + n := len(nodes[i].Edges.CheckResultCreators) if nodes[i].Edges.totalCount[6] == nil { nodes[i].Edges.totalCount[6] = make(map[string]int) } @@ -45233,17 +45233,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.VulnerabilityCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CheckResultCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedVulnerabilityCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCheckResultCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "groupCreators": + case "contactCreators": var ( alias = field.Alias path = append(path, alias) @@ -45271,13 +45271,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_group_creators"` + NodeID string `sql:"organization_contact_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ContactCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.GroupCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ContactCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45296,7 +45296,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.GroupCreators) + n := len(nodes[i].Edges.ContactCreators) if nodes[i].Edges.totalCount[7] == nil { nodes[i].Edges.totalCount[7] = make(map[string]int) } @@ -45322,17 +45322,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.GroupCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ContactCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedGroupCreators(alias, func(wq *GroupQuery) { + _q.WithNamedContactCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "internalPolicyCreators": + case "controlCreators": var ( alias = field.Alias path = append(path, alias) @@ -45360,13 +45360,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_internal_policy_creators"` + NodeID string `sql:"organization_control_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.InternalPolicyCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ControlCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.InternalPolicyCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45385,7 +45385,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.InternalPolicyCreators) + n := len(nodes[i].Edges.ControlCreators) if nodes[i].Edges.totalCount[8] == nil { nodes[i].Edges.totalCount[8] = make(map[string]int) } @@ -45411,17 +45411,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.InternalPolicyCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ControlCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedInternalPolicyCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "mappedControlCreators": + case "controlImplementationCreators": var ( alias = field.Alias path = append(path, alias) @@ -45449,13 +45449,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_mapped_control_creators"` + NodeID string `sql:"organization_control_implementation_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.MappedControlCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ControlImplementationCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.MappedControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ControlImplementationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45474,7 +45474,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.MappedControlCreators) + n := len(nodes[i].Edges.ControlImplementationCreators) if nodes[i].Edges.totalCount[9] == nil { nodes[i].Edges.totalCount[9] = make(map[string]int) } @@ -45500,17 +45500,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.MappedControlCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ControlImplementationCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedMappedControlCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlImplementationCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "narrativeCreators": + case "controlObjectiveCreators": var ( alias = field.Alias path = append(path, alias) @@ -45538,13 +45538,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_narrative_creators"` + NodeID string `sql:"organization_control_objective_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NarrativeCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ControlObjectiveCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.NarrativeCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ControlObjectiveCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45563,7 +45563,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.NarrativeCreators) + n := len(nodes[i].Edges.ControlObjectiveCreators) if nodes[i].Edges.totalCount[10] == nil { nodes[i].Edges.totalCount[10] = make(map[string]int) } @@ -45589,17 +45589,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.NarrativeCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ControlObjectiveCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNarrativeCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlObjectiveCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "procedureCreators": + case "customTypeEnumCreators": var ( alias = field.Alias path = append(path, alias) @@ -45627,13 +45627,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_procedure_creators"` + NodeID string `sql:"organization_custom_type_enum_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProcedureCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CustomTypeEnumCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ProcedureCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CustomTypeEnumCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45652,7 +45652,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ProcedureCreators) + n := len(nodes[i].Edges.CustomTypeEnumCreators) if nodes[i].Edges.totalCount[11] == nil { nodes[i].Edges.totalCount[11] = make(map[string]int) } @@ -45678,17 +45678,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ProcedureCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CustomTypeEnumCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProcedureCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCustomTypeEnumCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "programCreators": + case "discussionCreators": var ( alias = field.Alias path = append(path, alias) @@ -45716,13 +45716,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_program_creators"` + NodeID string `sql:"organization_discussion_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProgramCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DiscussionCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ProgramCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DiscussionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45741,7 +45741,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ProgramCreators) + n := len(nodes[i].Edges.DiscussionCreators) if nodes[i].Edges.totalCount[12] == nil { nodes[i].Edges.totalCount[12] = make(map[string]int) } @@ -45767,17 +45767,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ProgramCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DiscussionCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDiscussionCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "riskCreators": + case "emailTemplateCreators": var ( alias = field.Alias path = append(path, alias) @@ -45805,13 +45805,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_risk_creators"` + NodeID string `sql:"organization_email_template_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RiskCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EmailTemplateCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.RiskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.EmailTemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45830,7 +45830,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.RiskCreators) + n := len(nodes[i].Edges.EmailTemplateCreators) if nodes[i].Edges.totalCount[13] == nil { nodes[i].Edges.totalCount[13] = make(map[string]int) } @@ -45856,17 +45856,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.RiskCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.EmailTemplateCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEmailTemplateCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "identityHolderCreators": + case "entityCreators": var ( alias = field.Alias path = append(path, alias) @@ -45894,13 +45894,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_identity_holder_creators"` + NodeID string `sql:"organization_entity_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IdentityHolderCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EntityCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.IdentityHolderCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.EntityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -45919,7 +45919,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.IdentityHolderCreators) + n := len(nodes[i].Edges.EntityCreators) if nodes[i].Edges.totalCount[14] == nil { nodes[i].Edges.totalCount[14] = make(map[string]int) } @@ -45945,17 +45945,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.IdentityHolderCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.EntityCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedIdentityHolderCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEntityCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "scheduledJobCreators": + case "entityTypeCreators": var ( alias = field.Alias path = append(path, alias) @@ -45983,13 +45983,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_scheduled_job_creators"` + NodeID string `sql:"organization_entity_type_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScheduledJobCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EntityTypeCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ScheduledJobCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.EntityTypeCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46008,7 +46008,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ScheduledJobCreators) + n := len(nodes[i].Edges.EntityTypeCreators) if nodes[i].Edges.totalCount[15] == nil { nodes[i].Edges.totalCount[15] = make(map[string]int) } @@ -46034,17 +46034,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ScheduledJobCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.EntityTypeCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedScheduledJobCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEntityTypeCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "standardCreators": + case "evidenceCreators": var ( alias = field.Alias path = append(path, alias) @@ -46072,13 +46072,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_standard_creators"` + NodeID string `sql:"organization_evidence_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.StandardCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EvidenceCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.StandardCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.EvidenceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46097,7 +46097,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.StandardCreators) + n := len(nodes[i].Edges.EvidenceCreators) if nodes[i].Edges.totalCount[16] == nil { nodes[i].Edges.totalCount[16] = make(map[string]int) } @@ -46123,17 +46123,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.StandardCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.EvidenceCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedStandardCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEvidenceCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "templateCreators": + case "exportCreators": var ( alias = field.Alias path = append(path, alias) @@ -46161,13 +46161,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_template_creators"` + NodeID string `sql:"organization_export_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TemplateCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ExportCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ExportCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46186,7 +46186,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.TemplateCreators) + n := len(nodes[i].Edges.ExportCreators) if nodes[i].Edges.totalCount[17] == nil { nodes[i].Edges.totalCount[17] = make(map[string]int) } @@ -46212,17 +46212,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TemplateCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ExportCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTemplateCreators(alias, func(wq *GroupQuery) { + _q.WithNamedExportCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "subprocessorCreators": + case "fileCreators": var ( alias = field.Alias path = append(path, alias) @@ -46250,13 +46250,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_subprocessor_creators"` + NodeID string `sql:"organization_file_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubprocessorCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.FileCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.FileCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46275,7 +46275,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.SubprocessorCreators) + n := len(nodes[i].Edges.FileCreators) if nodes[i].Edges.totalCount[18] == nil { nodes[i].Edges.totalCount[18] = make(map[string]int) } @@ -46301,17 +46301,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SubprocessorCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.FileCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSubprocessorCreators(alias, func(wq *GroupQuery) { + _q.WithNamedFileCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterDocCreators": + case "findingCreators": var ( alias = field.Alias path = append(path, alias) @@ -46339,13 +46339,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_trust_center_doc_creators"` + NodeID string `sql:"organization_finding_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterDocCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.FindingCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterDocCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.FindingCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46364,7 +46364,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.TrustCenterDocCreators) + n := len(nodes[i].Edges.FindingCreators) if nodes[i].Edges.totalCount[19] == nil { nodes[i].Edges.totalCount[19] = make(map[string]int) } @@ -46390,17 +46390,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterDocCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.FindingCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterDocCreators(alias, func(wq *GroupQuery) { + _q.WithNamedFindingCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterSubprocessorCreators": + case "groupCreators": var ( alias = field.Alias path = append(path, alias) @@ -46428,13 +46428,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_trust_center_subprocessor_creators"` + NodeID string `sql:"organization_group_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterSubprocessorCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.GroupCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterSubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.GroupCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46453,7 +46453,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.TrustCenterSubprocessorCreators) + n := len(nodes[i].Edges.GroupCreators) if nodes[i].Edges.totalCount[20] == nil { nodes[i].Edges.totalCount[20] = make(map[string]int) } @@ -46479,17 +46479,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterSubprocessorCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.GroupCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterSubprocessorCreators(alias, func(wq *GroupQuery) { + _q.WithNamedGroupCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "actionPlanCreators": + case "identityHolderCreators": var ( alias = field.Alias path = append(path, alias) @@ -46517,13 +46517,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_action_plan_creators"` + NodeID string `sql:"organization_identity_holder_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ActionPlanCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.IdentityHolderCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ActionPlanCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.IdentityHolderCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46542,7 +46542,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.ActionPlanCreators) + n := len(nodes[i].Edges.IdentityHolderCreators) if nodes[i].Edges.totalCount[21] == nil { nodes[i].Edges.totalCount[21] = make(map[string]int) } @@ -46568,42 +46568,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ActionPlanCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.IdentityHolderCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedActionPlanCreators(alias, func(wq *GroupQuery) { + _q.WithNamedIdentityHolderCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "parent": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationClient{config: _q.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err - } - _q.withParent = query - if _, ok := fieldSeen[organization.FieldParentOrganizationID]; !ok { - selectedFields = append(selectedFields, organization.FieldParentOrganizationID) - fieldSeen[organization.FieldParentOrganizationID] = struct{}{} - } - - case "children": + case "integrationCreators": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: _q.config}).Query() + query = (&GroupClient{config: _q.config}).Query() ) - args := newOrganizationPaginateArgs(fieldArgs(ctx, new(OrganizationWhereInput), path...)) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) if err := validateFirstLast(args.first, args.last); err != nil { return fmt.Errorf("validate first and last in path %q: %w", path, err) } - pager, err := newOrganizationPager(args.opts, args.last != nil) + pager, err := newGroupPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -46621,13 +46606,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"parent_organization_id"` + NodeID string `sql:"organization_integration_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ChildrenColumn), ids...)) + s.Where(sql.InValues(s.C(organization.IntegrationCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ChildrenColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.IntegrationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46636,21 +46621,21 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[23] == nil { - nodes[i].Edges.totalCount[23] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { - n := len(nodes[i].Edges.Children) - if nodes[i].Edges.totalCount[23] == nil { - nodes[i].Edges.totalCount[23] = make(map[string]int) + n := len(nodes[i].Edges.IntegrationCreators) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) @@ -46664,7 +46649,5006 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.IntegrationCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedIntegrationCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "integrationWebhookCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_integration_webhook_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationWebhookCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.IntegrationWebhookCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) + } + nodes[i].Edges.totalCount[23][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.IntegrationWebhookCreators) + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) + } + nodes[i].Edges.totalCount[23][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.IntegrationWebhookCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedIntegrationWebhookCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "internalPolicyCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_internal_policy_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.InternalPolicyCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.InternalPolicyCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) + } + nodes[i].Edges.totalCount[24][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.InternalPolicyCreators) + if nodes[i].Edges.totalCount[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) + } + nodes[i].Edges.totalCount[24][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.InternalPolicyCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedInternalPolicyCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "jobRunnerCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_job_runner_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.JobRunnerCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[25] == nil { + nodes[i].Edges.totalCount[25] = make(map[string]int) + } + nodes[i].Edges.totalCount[25][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.JobRunnerCreators) + if nodes[i].Edges.totalCount[25] == nil { + nodes[i].Edges.totalCount[25] = make(map[string]int) + } + nodes[i].Edges.totalCount[25][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.JobRunnerCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedJobRunnerCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "jobRunnerRegistrationTokenCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_job_runner_registration_token_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerRegistrationTokenCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.JobRunnerRegistrationTokenCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) + } + nodes[i].Edges.totalCount[26][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.JobRunnerRegistrationTokenCreators) + if nodes[i].Edges.totalCount[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) + } + nodes[i].Edges.totalCount[26][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.JobRunnerRegistrationTokenCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedJobRunnerRegistrationTokenCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "jobRunnerTokenCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_job_runner_token_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerTokenCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.JobRunnerTokenCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[27] == nil { + nodes[i].Edges.totalCount[27] = make(map[string]int) + } + nodes[i].Edges.totalCount[27][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.JobRunnerTokenCreators) + if nodes[i].Edges.totalCount[27] == nil { + nodes[i].Edges.totalCount[27] = make(map[string]int) + } + nodes[i].Edges.totalCount[27][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.JobRunnerTokenCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedJobRunnerTokenCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "jobTemplateCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_job_template_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobTemplateCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.JobTemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[28] == nil { + nodes[i].Edges.totalCount[28] = make(map[string]int) + } + nodes[i].Edges.totalCount[28][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.JobTemplateCreators) + if nodes[i].Edges.totalCount[28] == nil { + nodes[i].Edges.totalCount[28] = make(map[string]int) + } + nodes[i].Edges.totalCount[28][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.JobTemplateCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedJobTemplateCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "mappedControlCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_mapped_control_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.MappedControlCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.MappedControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[29] == nil { + nodes[i].Edges.totalCount[29] = make(map[string]int) + } + nodes[i].Edges.totalCount[29][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.MappedControlCreators) + if nodes[i].Edges.totalCount[29] == nil { + nodes[i].Edges.totalCount[29] = make(map[string]int) + } + nodes[i].Edges.totalCount[29][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.MappedControlCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedMappedControlCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "narrativeCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_narrative_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NarrativeCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.NarrativeCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[30] == nil { + nodes[i].Edges.totalCount[30] = make(map[string]int) + } + nodes[i].Edges.totalCount[30][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.NarrativeCreators) + if nodes[i].Edges.totalCount[30] == nil { + nodes[i].Edges.totalCount[30] = make(map[string]int) + } + nodes[i].Edges.totalCount[30][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.NarrativeCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedNarrativeCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "noteCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_note_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NoteCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.NoteCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[31] == nil { + nodes[i].Edges.totalCount[31] = make(map[string]int) + } + nodes[i].Edges.totalCount[31][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.NoteCreators) + if nodes[i].Edges.totalCount[31] == nil { + nodes[i].Edges.totalCount[31] = make(map[string]int) + } + nodes[i].Edges.totalCount[31][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.NoteCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedNoteCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "notificationTemplateCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_notification_template_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotificationTemplateCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.NotificationTemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[32] == nil { + nodes[i].Edges.totalCount[32] = make(map[string]int) + } + nodes[i].Edges.totalCount[32][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.NotificationTemplateCreators) + if nodes[i].Edges.totalCount[32] == nil { + nodes[i].Edges.totalCount[32] = make(map[string]int) + } + nodes[i].Edges.totalCount[32][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.NotificationTemplateCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedNotificationTemplateCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "organizationCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_organization_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrganizationCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.OrganizationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[33] == nil { + nodes[i].Edges.totalCount[33] = make(map[string]int) + } + nodes[i].Edges.totalCount[33][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.OrganizationCreators) + if nodes[i].Edges.totalCount[33] == nil { + nodes[i].Edges.totalCount[33] = make(map[string]int) + } + nodes[i].Edges.totalCount[33][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.OrganizationCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedOrganizationCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "platformCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_platform_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.PlatformCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.PlatformCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[34] == nil { + nodes[i].Edges.totalCount[34] = make(map[string]int) + } + nodes[i].Edges.totalCount[34][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.PlatformCreators) + if nodes[i].Edges.totalCount[34] == nil { + nodes[i].Edges.totalCount[34] = make(map[string]int) + } + nodes[i].Edges.totalCount[34][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.PlatformCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedPlatformCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "procedureCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_procedure_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProcedureCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ProcedureCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[35] == nil { + nodes[i].Edges.totalCount[35] = make(map[string]int) + } + nodes[i].Edges.totalCount[35][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ProcedureCreators) + if nodes[i].Edges.totalCount[35] == nil { + nodes[i].Edges.totalCount[35] = make(map[string]int) + } + nodes[i].Edges.totalCount[35][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ProcedureCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedProcedureCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "programCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_program_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProgramCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ProgramCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[36] == nil { + nodes[i].Edges.totalCount[36] = make(map[string]int) + } + nodes[i].Edges.totalCount[36][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ProgramCreators) + if nodes[i].Edges.totalCount[36] == nil { + nodes[i].Edges.totalCount[36] = make(map[string]int) + } + nodes[i].Edges.totalCount[36][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ProgramCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedProgramCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "remediationCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_remediation_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RemediationCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.RemediationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[37] == nil { + nodes[i].Edges.totalCount[37] = make(map[string]int) + } + nodes[i].Edges.totalCount[37][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.RemediationCreators) + if nodes[i].Edges.totalCount[37] == nil { + nodes[i].Edges.totalCount[37] = make(map[string]int) + } + nodes[i].Edges.totalCount[37][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.RemediationCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedRemediationCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "reviewCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_review_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ReviewCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ReviewCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[38] == nil { + nodes[i].Edges.totalCount[38] = make(map[string]int) + } + nodes[i].Edges.totalCount[38][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ReviewCreators) + if nodes[i].Edges.totalCount[38] == nil { + nodes[i].Edges.totalCount[38] = make(map[string]int) + } + nodes[i].Edges.totalCount[38][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ReviewCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedReviewCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "riskCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_risk_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RiskCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.RiskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[39] == nil { + nodes[i].Edges.totalCount[39] = make(map[string]int) + } + nodes[i].Edges.totalCount[39][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.RiskCreators) + if nodes[i].Edges.totalCount[39] == nil { + nodes[i].Edges.totalCount[39] = make(map[string]int) + } + nodes[i].Edges.totalCount[39][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.RiskCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedRiskCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "scanCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_scan_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScanCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ScanCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[40] == nil { + nodes[i].Edges.totalCount[40] = make(map[string]int) + } + nodes[i].Edges.totalCount[40][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ScanCreators) + if nodes[i].Edges.totalCount[40] == nil { + nodes[i].Edges.totalCount[40] = make(map[string]int) + } + nodes[i].Edges.totalCount[40][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ScanCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedScanCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "scheduledJobCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_scheduled_job_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ScheduledJobCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[41] == nil { + nodes[i].Edges.totalCount[41] = make(map[string]int) + } + nodes[i].Edges.totalCount[41][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ScheduledJobCreators) + if nodes[i].Edges.totalCount[41] == nil { + nodes[i].Edges.totalCount[41] = make(map[string]int) + } + nodes[i].Edges.totalCount[41][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ScheduledJobCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedScheduledJobCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "scheduledJobRunCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_scheduled_job_run_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobRunCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.ScheduledJobRunCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[42] == nil { + nodes[i].Edges.totalCount[42] = make(map[string]int) + } + nodes[i].Edges.totalCount[42][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ScheduledJobRunCreators) + if nodes[i].Edges.totalCount[42] == nil { + nodes[i].Edges.totalCount[42] = make(map[string]int) + } + nodes[i].Edges.totalCount[42][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ScheduledJobRunCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedScheduledJobRunCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "standardCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_standard_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.StandardCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.StandardCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[43] == nil { + nodes[i].Edges.totalCount[43] = make(map[string]int) + } + nodes[i].Edges.totalCount[43][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.StandardCreators) + if nodes[i].Edges.totalCount[43] == nil { + nodes[i].Edges.totalCount[43] = make(map[string]int) + } + nodes[i].Edges.totalCount[43][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.StandardCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedStandardCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "subcontrolCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_subcontrol_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubcontrolCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.SubcontrolCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[44] == nil { + nodes[i].Edges.totalCount[44] = make(map[string]int) + } + nodes[i].Edges.totalCount[44][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.SubcontrolCreators) + if nodes[i].Edges.totalCount[44] == nil { + nodes[i].Edges.totalCount[44] = make(map[string]int) + } + nodes[i].Edges.totalCount[44][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.SubcontrolCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedSubcontrolCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "subprocessorCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_subprocessor_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubprocessorCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.SubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[45] == nil { + nodes[i].Edges.totalCount[45] = make(map[string]int) + } + nodes[i].Edges.totalCount[45][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.SubprocessorCreators) + if nodes[i].Edges.totalCount[45] == nil { + nodes[i].Edges.totalCount[45] = make(map[string]int) + } + nodes[i].Edges.totalCount[45][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.SubprocessorCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedSubprocessorCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "subscriberCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_subscriber_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubscriberCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.SubscriberCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[46] == nil { + nodes[i].Edges.totalCount[46] = make(map[string]int) + } + nodes[i].Edges.totalCount[46][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.SubscriberCreators) + if nodes[i].Edges.totalCount[46] == nil { + nodes[i].Edges.totalCount[46] = make(map[string]int) + } + nodes[i].Edges.totalCount[46][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.SubscriberCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedSubscriberCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "systemDetailCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_system_detail_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SystemDetailCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.SystemDetailCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[47] == nil { + nodes[i].Edges.totalCount[47] = make(map[string]int) + } + nodes[i].Edges.totalCount[47][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.SystemDetailCreators) + if nodes[i].Edges.totalCount[47] == nil { + nodes[i].Edges.totalCount[47] = make(map[string]int) + } + nodes[i].Edges.totalCount[47][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.SystemDetailCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedSystemDetailCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "tagDefinitionCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_tag_definition_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TagDefinitionCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TagDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[48] == nil { + nodes[i].Edges.totalCount[48] = make(map[string]int) + } + nodes[i].Edges.totalCount[48][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TagDefinitionCreators) + if nodes[i].Edges.totalCount[48] == nil { + nodes[i].Edges.totalCount[48] = make(map[string]int) + } + nodes[i].Edges.totalCount[48][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TagDefinitionCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTagDefinitionCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "taskCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_task_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TaskCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TaskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[49] == nil { + nodes[i].Edges.totalCount[49] = make(map[string]int) + } + nodes[i].Edges.totalCount[49][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TaskCreators) + if nodes[i].Edges.totalCount[49] == nil { + nodes[i].Edges.totalCount[49] = make(map[string]int) + } + nodes[i].Edges.totalCount[49][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TaskCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTaskCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "templateCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_template_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TemplateCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[50] == nil { + nodes[i].Edges.totalCount[50] = make(map[string]int) + } + nodes[i].Edges.totalCount[50][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TemplateCreators) + if nodes[i].Edges.totalCount[50] == nil { + nodes[i].Edges.totalCount[50] = make(map[string]int) + } + nodes[i].Edges.totalCount[50][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TemplateCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTemplateCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[51] == nil { + nodes[i].Edges.totalCount[51] = make(map[string]int) + } + nodes[i].Edges.totalCount[51][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterCreators) + if nodes[i].Edges.totalCount[51] == nil { + nodes[i].Edges.totalCount[51] = make(map[string]int) + } + nodes[i].Edges.totalCount[51][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterComplianceCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_compliance_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterComplianceCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterComplianceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[52] == nil { + nodes[i].Edges.totalCount[52] = make(map[string]int) + } + nodes[i].Edges.totalCount[52][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterComplianceCreators) + if nodes[i].Edges.totalCount[52] == nil { + nodes[i].Edges.totalCount[52] = make(map[string]int) + } + nodes[i].Edges.totalCount[52][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterComplianceCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterComplianceCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterDocCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_doc_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterDocCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterDocCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[53] == nil { + nodes[i].Edges.totalCount[53] = make(map[string]int) + } + nodes[i].Edges.totalCount[53][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterDocCreators) + if nodes[i].Edges.totalCount[53] == nil { + nodes[i].Edges.totalCount[53] = make(map[string]int) + } + nodes[i].Edges.totalCount[53][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterDocCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterDocCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterEntityCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_entity_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterEntityCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterEntityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[54] == nil { + nodes[i].Edges.totalCount[54] = make(map[string]int) + } + nodes[i].Edges.totalCount[54][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterEntityCreators) + if nodes[i].Edges.totalCount[54] == nil { + nodes[i].Edges.totalCount[54] = make(map[string]int) + } + nodes[i].Edges.totalCount[54][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterEntityCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterEntityCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterFaqCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_faq_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterFaqCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterFaqCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[55] == nil { + nodes[i].Edges.totalCount[55] = make(map[string]int) + } + nodes[i].Edges.totalCount[55][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterFaqCreators) + if nodes[i].Edges.totalCount[55] == nil { + nodes[i].Edges.totalCount[55] = make(map[string]int) + } + nodes[i].Edges.totalCount[55][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterFaqCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterFaqCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterNdaRequestCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_nda_request_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterNdaRequestCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterNdaRequestCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[56] == nil { + nodes[i].Edges.totalCount[56] = make(map[string]int) + } + nodes[i].Edges.totalCount[56][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterNdaRequestCreators) + if nodes[i].Edges.totalCount[56] == nil { + nodes[i].Edges.totalCount[56] = make(map[string]int) + } + nodes[i].Edges.totalCount[56][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterNdaRequestCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterNdaRequestCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterSubprocessorCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_subprocessor_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterSubprocessorCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterSubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[57] == nil { + nodes[i].Edges.totalCount[57] = make(map[string]int) + } + nodes[i].Edges.totalCount[57][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterSubprocessorCreators) + if nodes[i].Edges.totalCount[57] == nil { + nodes[i].Edges.totalCount[57] = make(map[string]int) + } + nodes[i].Edges.totalCount[57][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterSubprocessorCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterSubprocessorCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterWatermarkConfigCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_watermark_config_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterWatermarkConfigCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterWatermarkConfigCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[58] == nil { + nodes[i].Edges.totalCount[58] = make(map[string]int) + } + nodes[i].Edges.totalCount[58][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterWatermarkConfigCreators) + if nodes[i].Edges.totalCount[58] == nil { + nodes[i].Edges.totalCount[58] = make(map[string]int) + } + nodes[i].Edges.totalCount[58][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterWatermarkConfigCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterWatermarkConfigCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "userCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_user_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.UserCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.UserCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[59] == nil { + nodes[i].Edges.totalCount[59] = make(map[string]int) + } + nodes[i].Edges.totalCount[59][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.UserCreators) + if nodes[i].Edges.totalCount[59] == nil { + nodes[i].Edges.totalCount[59] = make(map[string]int) + } + nodes[i].Edges.totalCount[59][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.UserCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedUserCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "userSettingCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_user_setting_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.UserSettingCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.UserSettingCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[60] == nil { + nodes[i].Edges.totalCount[60] = make(map[string]int) + } + nodes[i].Edges.totalCount[60][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.UserSettingCreators) + if nodes[i].Edges.totalCount[60] == nil { + nodes[i].Edges.totalCount[60] = make(map[string]int) + } + nodes[i].Edges.totalCount[60][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.UserSettingCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedUserSettingCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "vendorRiskScoreCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_vendor_risk_score_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VendorRiskScoreCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.VendorRiskScoreCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[61] == nil { + nodes[i].Edges.totalCount[61] = make(map[string]int) + } + nodes[i].Edges.totalCount[61][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.VendorRiskScoreCreators) + if nodes[i].Edges.totalCount[61] == nil { + nodes[i].Edges.totalCount[61] = make(map[string]int) + } + nodes[i].Edges.totalCount[61][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.VendorRiskScoreCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedVendorRiskScoreCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "vulnerabilityCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_vulnerability_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VulnerabilityCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.VulnerabilityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[62] == nil { + nodes[i].Edges.totalCount[62] = make(map[string]int) + } + nodes[i].Edges.totalCount[62][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.VulnerabilityCreators) + if nodes[i].Edges.totalCount[62] == nil { + nodes[i].Edges.totalCount[62] = make(map[string]int) + } + nodes[i].Edges.totalCount[62][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.VulnerabilityCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedVulnerabilityCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowAssignmentCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_assignment_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowAssignmentCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[63] == nil { + nodes[i].Edges.totalCount[63] = make(map[string]int) + } + nodes[i].Edges.totalCount[63][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowAssignmentCreators) + if nodes[i].Edges.totalCount[63] == nil { + nodes[i].Edges.totalCount[63] = make(map[string]int) + } + nodes[i].Edges.totalCount[63][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowAssignmentCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowAssignmentCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowAssignmentTargetCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_assignment_target_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentTargetCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowAssignmentTargetCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[64] == nil { + nodes[i].Edges.totalCount[64] = make(map[string]int) + } + nodes[i].Edges.totalCount[64][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowAssignmentTargetCreators) + if nodes[i].Edges.totalCount[64] == nil { + nodes[i].Edges.totalCount[64] = make(map[string]int) + } + nodes[i].Edges.totalCount[64][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowAssignmentTargetCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowAssignmentTargetCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowDefinitionCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_definition_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowDefinitionCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[65] == nil { + nodes[i].Edges.totalCount[65] = make(map[string]int) + } + nodes[i].Edges.totalCount[65][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowDefinitionCreators) + if nodes[i].Edges.totalCount[65] == nil { + nodes[i].Edges.totalCount[65] = make(map[string]int) + } + nodes[i].Edges.totalCount[65][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowDefinitionCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowDefinitionCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowEventCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_event_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowEventCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowEventCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[66] == nil { + nodes[i].Edges.totalCount[66] = make(map[string]int) + } + nodes[i].Edges.totalCount[66][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowEventCreators) + if nodes[i].Edges.totalCount[66] == nil { + nodes[i].Edges.totalCount[66] = make(map[string]int) + } + nodes[i].Edges.totalCount[66][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowEventCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowEventCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowInstanceCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_instance_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowInstanceCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowInstanceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[67] == nil { + nodes[i].Edges.totalCount[67] = make(map[string]int) + } + nodes[i].Edges.totalCount[67][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowInstanceCreators) + if nodes[i].Edges.totalCount[67] == nil { + nodes[i].Edges.totalCount[67] = make(map[string]int) + } + nodes[i].Edges.totalCount[67][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowInstanceCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowInstanceCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowObjectRefCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_object_ref_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowObjectRefCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowObjectRefCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[68] == nil { + nodes[i].Edges.totalCount[68] = make(map[string]int) + } + nodes[i].Edges.totalCount[68][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowObjectRefCreators) + if nodes[i].Edges.totalCount[68] == nil { + nodes[i].Edges.totalCount[68] = make(map[string]int) + } + nodes[i].Edges.totalCount[68][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowObjectRefCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowObjectRefCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowProposalCreators": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflow_proposal_creators"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowProposalCreatorsColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowProposalCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[69] == nil { + nodes[i].Edges.totalCount[69] = make(map[string]int) + } + nodes[i].Edges.totalCount[69][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowProposalCreators) + if nodes[i].Edges.totalCount[69] == nil { + nodes[i].Edges.totalCount[69] = make(map[string]int) + } + nodes[i].Edges.totalCount[69][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowProposalCreatorsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowProposalCreators(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "campaignsManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_campaigns_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CampaignsManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.CampaignsManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[70] == nil { + nodes[i].Edges.totalCount[70] = make(map[string]int) + } + nodes[i].Edges.totalCount[70][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.CampaignsManager) + if nodes[i].Edges.totalCount[70] == nil { + nodes[i].Edges.totalCount[70] = make(map[string]int) + } + nodes[i].Edges.totalCount[70][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.CampaignsManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedCampaignsManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "complianceManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_compliance_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ComplianceManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.ComplianceManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[71] == nil { + nodes[i].Edges.totalCount[71] = make(map[string]int) + } + nodes[i].Edges.totalCount[71][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.ComplianceManager) + if nodes[i].Edges.totalCount[71] == nil { + nodes[i].Edges.totalCount[71] = make(map[string]int) + } + nodes[i].Edges.totalCount[71][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.ComplianceManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedComplianceManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "groupManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_group_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.GroupManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.GroupManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[72] == nil { + nodes[i].Edges.totalCount[72] = make(map[string]int) + } + nodes[i].Edges.totalCount[72][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.GroupManager) + if nodes[i].Edges.totalCount[72] == nil { + nodes[i].Edges.totalCount[72] = make(map[string]int) + } + nodes[i].Edges.totalCount[72][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.GroupManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedGroupManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "policiesManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_policies_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.PoliciesManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.PoliciesManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[73] == nil { + nodes[i].Edges.totalCount[73] = make(map[string]int) + } + nodes[i].Edges.totalCount[73][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.PoliciesManager) + if nodes[i].Edges.totalCount[73] == nil { + nodes[i].Edges.totalCount[73] = make(map[string]int) + } + nodes[i].Edges.totalCount[73][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.PoliciesManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedPoliciesManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "registryManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_registry_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RegistryManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.RegistryManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[74] == nil { + nodes[i].Edges.totalCount[74] = make(map[string]int) + } + nodes[i].Edges.totalCount[74][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.RegistryManager) + if nodes[i].Edges.totalCount[74] == nil { + nodes[i].Edges.totalCount[74] = make(map[string]int) + } + nodes[i].Edges.totalCount[74][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.RegistryManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedRegistryManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "riskManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_risk_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RiskManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.RiskManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[75] == nil { + nodes[i].Edges.totalCount[75] = make(map[string]int) + } + nodes[i].Edges.totalCount[75][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.RiskManager) + if nodes[i].Edges.totalCount[75] == nil { + nodes[i].Edges.totalCount[75] = make(map[string]int) + } + nodes[i].Edges.totalCount[75][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.RiskManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedRiskManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "trustCenterManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_trust_center_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.TrustCenterManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[76] == nil { + nodes[i].Edges.totalCount[76] = make(map[string]int) + } + nodes[i].Edges.totalCount[76][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.TrustCenterManager) + if nodes[i].Edges.totalCount[76] == nil { + nodes[i].Edges.totalCount[76] = make(map[string]int) + } + nodes[i].Edges.totalCount[76][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.TrustCenterManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedTrustCenterManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "workflowsManager": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newGroupPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"organization_workflows_manager"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowsManagerColumn), ids...)) + }) + if err := query.GroupBy(organization.WorkflowsManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[77] == nil { + nodes[i].Edges.totalCount[77] = make(map[string]int) + } + nodes[i].Edges.totalCount[77][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.WorkflowsManager) + if nodes[i].Edges.totalCount[77] == nil { + nodes[i].Edges.totalCount[77] = make(map[string]int) + } + nodes[i].Edges.totalCount[77][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(organization.WorkflowsManagerColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedWorkflowsManager(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "parent": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + _q.withParent = query + if _, ok := fieldSeen[organization.FieldParentOrganizationID]; !ok { + selectedFields = append(selectedFields, organization.FieldParentOrganizationID) + fieldSeen[organization.FieldParentOrganizationID] = struct{}{} + } + + case "children": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: _q.config}).Query() + ) + args := newOrganizationPaginateArgs(fieldArgs(ctx, new(OrganizationWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newOrganizationPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + _q.loadTotal = append(_q.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"parent_organization_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ChildrenColumn), ids...)) + }) + if err := query.GroupBy(organization.ChildrenColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[79] == nil { + nodes[i].Edges.totalCount[79] = make(map[string]int) + } + nodes[i].Edges.totalCount[79][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.Children) + if nodes[i].Edges.totalCount[79] == nil { + nodes[i].Edges.totalCount[79] = make(map[string]int) + } + nodes[i].Edges.totalCount[79][alias] = n + } + return nil + }) + } + } + if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { + continue + } + if query, err = pager.applyCursors(query, args.after, args.before); err != nil { + return err + } + path = append(path, edgesField, nodeField) + if field := collectedField(ctx, path...); field != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } } @@ -46740,10 +51724,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[25] == nil { - nodes[i].Edges.totalCount[25] = make(map[string]int) + if nodes[i].Edges.totalCount[81] == nil { + nodes[i].Edges.totalCount[81] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[81][alias] = n } return nil }) @@ -46751,10 +51735,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.PersonalAccessTokens) - if nodes[i].Edges.totalCount[25] == nil { - nodes[i].Edges.totalCount[25] = make(map[string]int) + if nodes[i].Edges.totalCount[81] == nil { + nodes[i].Edges.totalCount[81] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[81][alias] = n } return nil }) @@ -46829,10 +51813,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[26] == nil { - nodes[i].Edges.totalCount[26] = make(map[string]int) + if nodes[i].Edges.totalCount[82] == nil { + nodes[i].Edges.totalCount[82] = make(map[string]int) } - nodes[i].Edges.totalCount[26][alias] = n + nodes[i].Edges.totalCount[82][alias] = n } return nil }) @@ -46840,10 +51824,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.APITokens) - if nodes[i].Edges.totalCount[26] == nil { - nodes[i].Edges.totalCount[26] = make(map[string]int) + if nodes[i].Edges.totalCount[82] == nil { + nodes[i].Edges.totalCount[82] = make(map[string]int) } - nodes[i].Edges.totalCount[26][alias] = n + nodes[i].Edges.totalCount[82][alias] = n } return nil }) @@ -46918,10 +51902,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[27] == nil { - nodes[i].Edges.totalCount[27] = make(map[string]int) + if nodes[i].Edges.totalCount[83] == nil { + nodes[i].Edges.totalCount[83] = make(map[string]int) } - nodes[i].Edges.totalCount[27][alias] = n + nodes[i].Edges.totalCount[83][alias] = n } return nil }) @@ -46929,10 +51913,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.EmailTemplates) - if nodes[i].Edges.totalCount[27] == nil { - nodes[i].Edges.totalCount[27] = make(map[string]int) + if nodes[i].Edges.totalCount[83] == nil { + nodes[i].Edges.totalCount[83] = make(map[string]int) } - nodes[i].Edges.totalCount[27][alias] = n + nodes[i].Edges.totalCount[83][alias] = n } return nil }) @@ -47007,10 +51991,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[28] == nil { - nodes[i].Edges.totalCount[28] = make(map[string]int) + if nodes[i].Edges.totalCount[84] == nil { + nodes[i].Edges.totalCount[84] = make(map[string]int) } - nodes[i].Edges.totalCount[28][alias] = n + nodes[i].Edges.totalCount[84][alias] = n } return nil }) @@ -47018,10 +52002,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.NotificationPreferences) - if nodes[i].Edges.totalCount[28] == nil { - nodes[i].Edges.totalCount[28] = make(map[string]int) + if nodes[i].Edges.totalCount[84] == nil { + nodes[i].Edges.totalCount[84] = make(map[string]int) } - nodes[i].Edges.totalCount[28][alias] = n + nodes[i].Edges.totalCount[84][alias] = n } return nil }) @@ -47096,10 +52080,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[29] == nil { - nodes[i].Edges.totalCount[29] = make(map[string]int) + if nodes[i].Edges.totalCount[85] == nil { + nodes[i].Edges.totalCount[85] = make(map[string]int) } - nodes[i].Edges.totalCount[29][alias] = n + nodes[i].Edges.totalCount[85][alias] = n } return nil }) @@ -47107,10 +52091,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.NotificationTemplates) - if nodes[i].Edges.totalCount[29] == nil { - nodes[i].Edges.totalCount[29] = make(map[string]int) + if nodes[i].Edges.totalCount[85] == nil { + nodes[i].Edges.totalCount[85] = make(map[string]int) } - nodes[i].Edges.totalCount[29][alias] = n + nodes[i].Edges.totalCount[85][alias] = n } return nil }) @@ -47189,10 +52173,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[30] == nil { - nodes[i].Edges.totalCount[30] = make(map[string]int) + if nodes[i].Edges.totalCount[86] == nil { + nodes[i].Edges.totalCount[86] = make(map[string]int) } - nodes[i].Edges.totalCount[30][alias] = n + nodes[i].Edges.totalCount[86][alias] = n } return nil }) @@ -47200,10 +52184,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Users) - if nodes[i].Edges.totalCount[30] == nil { - nodes[i].Edges.totalCount[30] = make(map[string]int) + if nodes[i].Edges.totalCount[86] == nil { + nodes[i].Edges.totalCount[86] = make(map[string]int) } - nodes[i].Edges.totalCount[30][alias] = n + nodes[i].Edges.totalCount[86][alias] = n } return nil }) @@ -47282,10 +52266,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[31] == nil { - nodes[i].Edges.totalCount[31] = make(map[string]int) + if nodes[i].Edges.totalCount[87] == nil { + nodes[i].Edges.totalCount[87] = make(map[string]int) } - nodes[i].Edges.totalCount[31][alias] = n + nodes[i].Edges.totalCount[87][alias] = n } return nil }) @@ -47293,10 +52277,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Files) - if nodes[i].Edges.totalCount[31] == nil { - nodes[i].Edges.totalCount[31] = make(map[string]int) + if nodes[i].Edges.totalCount[87] == nil { + nodes[i].Edges.totalCount[87] = make(map[string]int) } - nodes[i].Edges.totalCount[31][alias] = n + nodes[i].Edges.totalCount[87][alias] = n } return nil }) @@ -47375,10 +52359,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[32] == nil { - nodes[i].Edges.totalCount[32] = make(map[string]int) + if nodes[i].Edges.totalCount[88] == nil { + nodes[i].Edges.totalCount[88] = make(map[string]int) } - nodes[i].Edges.totalCount[32][alias] = n + nodes[i].Edges.totalCount[88][alias] = n } return nil }) @@ -47386,10 +52370,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Events) - if nodes[i].Edges.totalCount[32] == nil { - nodes[i].Edges.totalCount[32] = make(map[string]int) + if nodes[i].Edges.totalCount[88] == nil { + nodes[i].Edges.totalCount[88] = make(map[string]int) } - nodes[i].Edges.totalCount[32][alias] = n + nodes[i].Edges.totalCount[88][alias] = n } return nil }) @@ -47464,10 +52448,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[33] == nil { - nodes[i].Edges.totalCount[33] = make(map[string]int) + if nodes[i].Edges.totalCount[89] == nil { + nodes[i].Edges.totalCount[89] = make(map[string]int) } - nodes[i].Edges.totalCount[33][alias] = n + nodes[i].Edges.totalCount[89][alias] = n } return nil }) @@ -47475,10 +52459,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Secrets) - if nodes[i].Edges.totalCount[33] == nil { - nodes[i].Edges.totalCount[33] = make(map[string]int) + if nodes[i].Edges.totalCount[89] == nil { + nodes[i].Edges.totalCount[89] = make(map[string]int) } - nodes[i].Edges.totalCount[33][alias] = n + nodes[i].Edges.totalCount[89][alias] = n } return nil }) @@ -47568,10 +52552,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[35] == nil { - nodes[i].Edges.totalCount[35] = make(map[string]int) + if nodes[i].Edges.totalCount[91] == nil { + nodes[i].Edges.totalCount[91] = make(map[string]int) } - nodes[i].Edges.totalCount[35][alias] = n + nodes[i].Edges.totalCount[91][alias] = n } return nil }) @@ -47579,10 +52563,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Groups) - if nodes[i].Edges.totalCount[35] == nil { - nodes[i].Edges.totalCount[35] = make(map[string]int) + if nodes[i].Edges.totalCount[91] == nil { + nodes[i].Edges.totalCount[91] = make(map[string]int) } - nodes[i].Edges.totalCount[35][alias] = n + nodes[i].Edges.totalCount[91][alias] = n } return nil }) @@ -47657,10 +52641,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[36] == nil { - nodes[i].Edges.totalCount[36] = make(map[string]int) + if nodes[i].Edges.totalCount[92] == nil { + nodes[i].Edges.totalCount[92] = make(map[string]int) } - nodes[i].Edges.totalCount[36][alias] = n + nodes[i].Edges.totalCount[92][alias] = n } return nil }) @@ -47668,10 +52652,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Templates) - if nodes[i].Edges.totalCount[36] == nil { - nodes[i].Edges.totalCount[36] = make(map[string]int) + if nodes[i].Edges.totalCount[92] == nil { + nodes[i].Edges.totalCount[92] = make(map[string]int) } - nodes[i].Edges.totalCount[36][alias] = n + nodes[i].Edges.totalCount[92][alias] = n } return nil }) @@ -47746,10 +52730,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[37] == nil { - nodes[i].Edges.totalCount[37] = make(map[string]int) + if nodes[i].Edges.totalCount[93] == nil { + nodes[i].Edges.totalCount[93] = make(map[string]int) } - nodes[i].Edges.totalCount[37][alias] = n + nodes[i].Edges.totalCount[93][alias] = n } return nil }) @@ -47757,10 +52741,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Integrations) - if nodes[i].Edges.totalCount[37] == nil { - nodes[i].Edges.totalCount[37] = make(map[string]int) + if nodes[i].Edges.totalCount[93] == nil { + nodes[i].Edges.totalCount[93] = make(map[string]int) } - nodes[i].Edges.totalCount[37][alias] = n + nodes[i].Edges.totalCount[93][alias] = n } return nil }) @@ -47835,10 +52819,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[38] == nil { - nodes[i].Edges.totalCount[38] = make(map[string]int) + if nodes[i].Edges.totalCount[94] == nil { + nodes[i].Edges.totalCount[94] = make(map[string]int) } - nodes[i].Edges.totalCount[38][alias] = n + nodes[i].Edges.totalCount[94][alias] = n } return nil }) @@ -47846,10 +52830,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Documents) - if nodes[i].Edges.totalCount[38] == nil { - nodes[i].Edges.totalCount[38] = make(map[string]int) + if nodes[i].Edges.totalCount[94] == nil { + nodes[i].Edges.totalCount[94] = make(map[string]int) } - nodes[i].Edges.totalCount[38][alias] = n + nodes[i].Edges.totalCount[94][alias] = n } return nil }) @@ -47937,10 +52921,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[40] == nil { - nodes[i].Edges.totalCount[40] = make(map[string]int) + if nodes[i].Edges.totalCount[96] == nil { + nodes[i].Edges.totalCount[96] = make(map[string]int) } - nodes[i].Edges.totalCount[40][alias] = n + nodes[i].Edges.totalCount[96][alias] = n } return nil }) @@ -47948,10 +52932,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Invites) - if nodes[i].Edges.totalCount[40] == nil { - nodes[i].Edges.totalCount[40] = make(map[string]int) + if nodes[i].Edges.totalCount[96] == nil { + nodes[i].Edges.totalCount[96] = make(map[string]int) } - nodes[i].Edges.totalCount[40][alias] = n + nodes[i].Edges.totalCount[96][alias] = n } return nil }) @@ -48026,10 +53010,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[41] == nil { - nodes[i].Edges.totalCount[41] = make(map[string]int) + if nodes[i].Edges.totalCount[97] == nil { + nodes[i].Edges.totalCount[97] = make(map[string]int) } - nodes[i].Edges.totalCount[41][alias] = n + nodes[i].Edges.totalCount[97][alias] = n } return nil }) @@ -48037,10 +53021,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Subscribers) - if nodes[i].Edges.totalCount[41] == nil { - nodes[i].Edges.totalCount[41] = make(map[string]int) + if nodes[i].Edges.totalCount[97] == nil { + nodes[i].Edges.totalCount[97] = make(map[string]int) } - nodes[i].Edges.totalCount[41][alias] = n + nodes[i].Edges.totalCount[97][alias] = n } return nil }) @@ -48115,10 +53099,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[42] == nil { - nodes[i].Edges.totalCount[42] = make(map[string]int) + if nodes[i].Edges.totalCount[98] == nil { + nodes[i].Edges.totalCount[98] = make(map[string]int) } - nodes[i].Edges.totalCount[42][alias] = n + nodes[i].Edges.totalCount[98][alias] = n } return nil }) @@ -48126,10 +53110,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Entities) - if nodes[i].Edges.totalCount[42] == nil { - nodes[i].Edges.totalCount[42] = make(map[string]int) + if nodes[i].Edges.totalCount[98] == nil { + nodes[i].Edges.totalCount[98] = make(map[string]int) } - nodes[i].Edges.totalCount[42][alias] = n + nodes[i].Edges.totalCount[98][alias] = n } return nil }) @@ -48204,10 +53188,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[43] == nil { - nodes[i].Edges.totalCount[43] = make(map[string]int) + if nodes[i].Edges.totalCount[99] == nil { + nodes[i].Edges.totalCount[99] = make(map[string]int) } - nodes[i].Edges.totalCount[43][alias] = n + nodes[i].Edges.totalCount[99][alias] = n } return nil }) @@ -48215,10 +53199,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Platforms) - if nodes[i].Edges.totalCount[43] == nil { - nodes[i].Edges.totalCount[43] = make(map[string]int) + if nodes[i].Edges.totalCount[99] == nil { + nodes[i].Edges.totalCount[99] = make(map[string]int) } - nodes[i].Edges.totalCount[43][alias] = n + nodes[i].Edges.totalCount[99][alias] = n } return nil }) @@ -48293,10 +53277,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[44] == nil { - nodes[i].Edges.totalCount[44] = make(map[string]int) + if nodes[i].Edges.totalCount[100] == nil { + nodes[i].Edges.totalCount[100] = make(map[string]int) } - nodes[i].Edges.totalCount[44][alias] = n + nodes[i].Edges.totalCount[100][alias] = n } return nil }) @@ -48304,10 +53288,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.IdentityHolders) - if nodes[i].Edges.totalCount[44] == nil { - nodes[i].Edges.totalCount[44] = make(map[string]int) + if nodes[i].Edges.totalCount[100] == nil { + nodes[i].Edges.totalCount[100] = make(map[string]int) } - nodes[i].Edges.totalCount[44][alias] = n + nodes[i].Edges.totalCount[100][alias] = n } return nil }) @@ -48382,10 +53366,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[45] == nil { - nodes[i].Edges.totalCount[45] = make(map[string]int) + if nodes[i].Edges.totalCount[101] == nil { + nodes[i].Edges.totalCount[101] = make(map[string]int) } - nodes[i].Edges.totalCount[45][alias] = n + nodes[i].Edges.totalCount[101][alias] = n } return nil }) @@ -48393,10 +53377,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Campaigns) - if nodes[i].Edges.totalCount[45] == nil { - nodes[i].Edges.totalCount[45] = make(map[string]int) + if nodes[i].Edges.totalCount[101] == nil { + nodes[i].Edges.totalCount[101] = make(map[string]int) } - nodes[i].Edges.totalCount[45][alias] = n + nodes[i].Edges.totalCount[101][alias] = n } return nil }) @@ -48471,10 +53455,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[46] == nil { - nodes[i].Edges.totalCount[46] = make(map[string]int) + if nodes[i].Edges.totalCount[102] == nil { + nodes[i].Edges.totalCount[102] = make(map[string]int) } - nodes[i].Edges.totalCount[46][alias] = n + nodes[i].Edges.totalCount[102][alias] = n } return nil }) @@ -48482,10 +53466,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.CampaignTargets) - if nodes[i].Edges.totalCount[46] == nil { - nodes[i].Edges.totalCount[46] = make(map[string]int) + if nodes[i].Edges.totalCount[102] == nil { + nodes[i].Edges.totalCount[102] = make(map[string]int) } - nodes[i].Edges.totalCount[46][alias] = n + nodes[i].Edges.totalCount[102][alias] = n } return nil }) @@ -48560,10 +53544,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[47] == nil { - nodes[i].Edges.totalCount[47] = make(map[string]int) + if nodes[i].Edges.totalCount[103] == nil { + nodes[i].Edges.totalCount[103] = make(map[string]int) } - nodes[i].Edges.totalCount[47][alias] = n + nodes[i].Edges.totalCount[103][alias] = n } return nil }) @@ -48571,10 +53555,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.EntityTypes) - if nodes[i].Edges.totalCount[47] == nil { - nodes[i].Edges.totalCount[47] = make(map[string]int) + if nodes[i].Edges.totalCount[103] == nil { + nodes[i].Edges.totalCount[103] = make(map[string]int) } - nodes[i].Edges.totalCount[47][alias] = n + nodes[i].Edges.totalCount[103][alias] = n } return nil }) @@ -48649,10 +53633,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[48] == nil { - nodes[i].Edges.totalCount[48] = make(map[string]int) + if nodes[i].Edges.totalCount[104] == nil { + nodes[i].Edges.totalCount[104] = make(map[string]int) } - nodes[i].Edges.totalCount[48][alias] = n + nodes[i].Edges.totalCount[104][alias] = n } return nil }) @@ -48660,10 +53644,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Contacts) - if nodes[i].Edges.totalCount[48] == nil { - nodes[i].Edges.totalCount[48] = make(map[string]int) + if nodes[i].Edges.totalCount[104] == nil { + nodes[i].Edges.totalCount[104] = make(map[string]int) } - nodes[i].Edges.totalCount[48][alias] = n + nodes[i].Edges.totalCount[104][alias] = n } return nil }) @@ -48738,10 +53722,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[49] == nil { - nodes[i].Edges.totalCount[49] = make(map[string]int) + if nodes[i].Edges.totalCount[105] == nil { + nodes[i].Edges.totalCount[105] = make(map[string]int) } - nodes[i].Edges.totalCount[49][alias] = n + nodes[i].Edges.totalCount[105][alias] = n } return nil }) @@ -48749,10 +53733,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Notes) - if nodes[i].Edges.totalCount[49] == nil { - nodes[i].Edges.totalCount[49] = make(map[string]int) + if nodes[i].Edges.totalCount[105] == nil { + nodes[i].Edges.totalCount[105] = make(map[string]int) } - nodes[i].Edges.totalCount[49][alias] = n + nodes[i].Edges.totalCount[105][alias] = n } return nil }) @@ -48827,10 +53811,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[50] == nil { - nodes[i].Edges.totalCount[50] = make(map[string]int) + if nodes[i].Edges.totalCount[106] == nil { + nodes[i].Edges.totalCount[106] = make(map[string]int) } - nodes[i].Edges.totalCount[50][alias] = n + nodes[i].Edges.totalCount[106][alias] = n } return nil }) @@ -48838,10 +53822,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Tasks) - if nodes[i].Edges.totalCount[50] == nil { - nodes[i].Edges.totalCount[50] = make(map[string]int) + if nodes[i].Edges.totalCount[106] == nil { + nodes[i].Edges.totalCount[106] = make(map[string]int) } - nodes[i].Edges.totalCount[50][alias] = n + nodes[i].Edges.totalCount[106][alias] = n } return nil }) @@ -48916,10 +53900,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[51] == nil { - nodes[i].Edges.totalCount[51] = make(map[string]int) + if nodes[i].Edges.totalCount[107] == nil { + nodes[i].Edges.totalCount[107] = make(map[string]int) } - nodes[i].Edges.totalCount[51][alias] = n + nodes[i].Edges.totalCount[107][alias] = n } return nil }) @@ -48927,10 +53911,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Programs) - if nodes[i].Edges.totalCount[51] == nil { - nodes[i].Edges.totalCount[51] = make(map[string]int) + if nodes[i].Edges.totalCount[107] == nil { + nodes[i].Edges.totalCount[107] = make(map[string]int) } - nodes[i].Edges.totalCount[51][alias] = n + nodes[i].Edges.totalCount[107][alias] = n } return nil }) @@ -49005,10 +53989,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[52] == nil { - nodes[i].Edges.totalCount[52] = make(map[string]int) + if nodes[i].Edges.totalCount[108] == nil { + nodes[i].Edges.totalCount[108] = make(map[string]int) } - nodes[i].Edges.totalCount[52][alias] = n + nodes[i].Edges.totalCount[108][alias] = n } return nil }) @@ -49016,10 +54000,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.SystemDetails) - if nodes[i].Edges.totalCount[52] == nil { - nodes[i].Edges.totalCount[52] = make(map[string]int) + if nodes[i].Edges.totalCount[108] == nil { + nodes[i].Edges.totalCount[108] = make(map[string]int) } - nodes[i].Edges.totalCount[52][alias] = n + nodes[i].Edges.totalCount[108][alias] = n } return nil }) @@ -49094,10 +54078,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[53] == nil { - nodes[i].Edges.totalCount[53] = make(map[string]int) + if nodes[i].Edges.totalCount[109] == nil { + nodes[i].Edges.totalCount[109] = make(map[string]int) } - nodes[i].Edges.totalCount[53][alias] = n + nodes[i].Edges.totalCount[109][alias] = n } return nil }) @@ -49105,10 +54089,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Procedures) - if nodes[i].Edges.totalCount[53] == nil { - nodes[i].Edges.totalCount[53] = make(map[string]int) + if nodes[i].Edges.totalCount[109] == nil { + nodes[i].Edges.totalCount[109] = make(map[string]int) } - nodes[i].Edges.totalCount[53][alias] = n + nodes[i].Edges.totalCount[109][alias] = n } return nil }) @@ -49183,10 +54167,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[54] == nil { - nodes[i].Edges.totalCount[54] = make(map[string]int) + if nodes[i].Edges.totalCount[110] == nil { + nodes[i].Edges.totalCount[110] = make(map[string]int) } - nodes[i].Edges.totalCount[54][alias] = n + nodes[i].Edges.totalCount[110][alias] = n } return nil }) @@ -49194,10 +54178,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.InternalPolicies) - if nodes[i].Edges.totalCount[54] == nil { - nodes[i].Edges.totalCount[54] = make(map[string]int) + if nodes[i].Edges.totalCount[110] == nil { + nodes[i].Edges.totalCount[110] = make(map[string]int) } - nodes[i].Edges.totalCount[54][alias] = n + nodes[i].Edges.totalCount[110][alias] = n } return nil }) @@ -49272,10 +54256,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[55] == nil { - nodes[i].Edges.totalCount[55] = make(map[string]int) + if nodes[i].Edges.totalCount[111] == nil { + nodes[i].Edges.totalCount[111] = make(map[string]int) } - nodes[i].Edges.totalCount[55][alias] = n + nodes[i].Edges.totalCount[111][alias] = n } return nil }) @@ -49283,10 +54267,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Risks) - if nodes[i].Edges.totalCount[55] == nil { - nodes[i].Edges.totalCount[55] = make(map[string]int) + if nodes[i].Edges.totalCount[111] == nil { + nodes[i].Edges.totalCount[111] = make(map[string]int) } - nodes[i].Edges.totalCount[55][alias] = n + nodes[i].Edges.totalCount[111][alias] = n } return nil }) @@ -49361,10 +54345,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[56] == nil { - nodes[i].Edges.totalCount[56] = make(map[string]int) + if nodes[i].Edges.totalCount[112] == nil { + nodes[i].Edges.totalCount[112] = make(map[string]int) } - nodes[i].Edges.totalCount[56][alias] = n + nodes[i].Edges.totalCount[112][alias] = n } return nil }) @@ -49372,10 +54356,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.ControlObjectives) - if nodes[i].Edges.totalCount[56] == nil { - nodes[i].Edges.totalCount[56] = make(map[string]int) + if nodes[i].Edges.totalCount[112] == nil { + nodes[i].Edges.totalCount[112] = make(map[string]int) } - nodes[i].Edges.totalCount[56][alias] = n + nodes[i].Edges.totalCount[112][alias] = n } return nil }) @@ -49450,10 +54434,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[57] == nil { - nodes[i].Edges.totalCount[57] = make(map[string]int) + if nodes[i].Edges.totalCount[113] == nil { + nodes[i].Edges.totalCount[113] = make(map[string]int) } - nodes[i].Edges.totalCount[57][alias] = n + nodes[i].Edges.totalCount[113][alias] = n } return nil }) @@ -49461,10 +54445,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Narratives) - if nodes[i].Edges.totalCount[57] == nil { - nodes[i].Edges.totalCount[57] = make(map[string]int) + if nodes[i].Edges.totalCount[113] == nil { + nodes[i].Edges.totalCount[113] = make(map[string]int) } - nodes[i].Edges.totalCount[57][alias] = n + nodes[i].Edges.totalCount[113][alias] = n } return nil }) @@ -49539,10 +54523,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[58] == nil { - nodes[i].Edges.totalCount[58] = make(map[string]int) + if nodes[i].Edges.totalCount[114] == nil { + nodes[i].Edges.totalCount[114] = make(map[string]int) } - nodes[i].Edges.totalCount[58][alias] = n + nodes[i].Edges.totalCount[114][alias] = n } return nil }) @@ -49550,10 +54534,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Controls) - if nodes[i].Edges.totalCount[58] == nil { - nodes[i].Edges.totalCount[58] = make(map[string]int) + if nodes[i].Edges.totalCount[114] == nil { + nodes[i].Edges.totalCount[114] = make(map[string]int) } - nodes[i].Edges.totalCount[58][alias] = n + nodes[i].Edges.totalCount[114][alias] = n } return nil }) @@ -49628,10 +54612,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[59] == nil { - nodes[i].Edges.totalCount[59] = make(map[string]int) + if nodes[i].Edges.totalCount[115] == nil { + nodes[i].Edges.totalCount[115] = make(map[string]int) } - nodes[i].Edges.totalCount[59][alias] = n + nodes[i].Edges.totalCount[115][alias] = n } return nil }) @@ -49639,10 +54623,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Subcontrols) - if nodes[i].Edges.totalCount[59] == nil { - nodes[i].Edges.totalCount[59] = make(map[string]int) + if nodes[i].Edges.totalCount[115] == nil { + nodes[i].Edges.totalCount[115] = make(map[string]int) } - nodes[i].Edges.totalCount[59][alias] = n + nodes[i].Edges.totalCount[115][alias] = n } return nil }) @@ -49717,10 +54701,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[60] == nil { - nodes[i].Edges.totalCount[60] = make(map[string]int) + if nodes[i].Edges.totalCount[116] == nil { + nodes[i].Edges.totalCount[116] = make(map[string]int) } - nodes[i].Edges.totalCount[60][alias] = n + nodes[i].Edges.totalCount[116][alias] = n } return nil }) @@ -49728,10 +54712,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.ControlImplementations) - if nodes[i].Edges.totalCount[60] == nil { - nodes[i].Edges.totalCount[60] = make(map[string]int) + if nodes[i].Edges.totalCount[116] == nil { + nodes[i].Edges.totalCount[116] = make(map[string]int) } - nodes[i].Edges.totalCount[60][alias] = n + nodes[i].Edges.totalCount[116][alias] = n } return nil }) @@ -49806,10 +54790,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[61] == nil { - nodes[i].Edges.totalCount[61] = make(map[string]int) + if nodes[i].Edges.totalCount[117] == nil { + nodes[i].Edges.totalCount[117] = make(map[string]int) } - nodes[i].Edges.totalCount[61][alias] = n + nodes[i].Edges.totalCount[117][alias] = n } return nil }) @@ -49817,10 +54801,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.MappedControls) - if nodes[i].Edges.totalCount[61] == nil { - nodes[i].Edges.totalCount[61] = make(map[string]int) + if nodes[i].Edges.totalCount[117] == nil { + nodes[i].Edges.totalCount[117] = make(map[string]int) } - nodes[i].Edges.totalCount[61][alias] = n + nodes[i].Edges.totalCount[117][alias] = n } return nil }) @@ -49895,10 +54879,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[62] == nil { - nodes[i].Edges.totalCount[62] = make(map[string]int) + if nodes[i].Edges.totalCount[118] == nil { + nodes[i].Edges.totalCount[118] = make(map[string]int) } - nodes[i].Edges.totalCount[62][alias] = n + nodes[i].Edges.totalCount[118][alias] = n } return nil }) @@ -49906,10 +54890,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Evidence) - if nodes[i].Edges.totalCount[62] == nil { - nodes[i].Edges.totalCount[62] = make(map[string]int) + if nodes[i].Edges.totalCount[118] == nil { + nodes[i].Edges.totalCount[118] = make(map[string]int) } - nodes[i].Edges.totalCount[62][alias] = n + nodes[i].Edges.totalCount[118][alias] = n } return nil }) @@ -49984,10 +54968,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[63] == nil { - nodes[i].Edges.totalCount[63] = make(map[string]int) + if nodes[i].Edges.totalCount[119] == nil { + nodes[i].Edges.totalCount[119] = make(map[string]int) } - nodes[i].Edges.totalCount[63][alias] = n + nodes[i].Edges.totalCount[119][alias] = n } return nil }) @@ -49995,10 +54979,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Standards) - if nodes[i].Edges.totalCount[63] == nil { - nodes[i].Edges.totalCount[63] = make(map[string]int) + if nodes[i].Edges.totalCount[119] == nil { + nodes[i].Edges.totalCount[119] = make(map[string]int) } - nodes[i].Edges.totalCount[63][alias] = n + nodes[i].Edges.totalCount[119][alias] = n } return nil }) @@ -50073,10 +55057,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[64] == nil { - nodes[i].Edges.totalCount[64] = make(map[string]int) + if nodes[i].Edges.totalCount[120] == nil { + nodes[i].Edges.totalCount[120] = make(map[string]int) } - nodes[i].Edges.totalCount[64][alias] = n + nodes[i].Edges.totalCount[120][alias] = n } return nil }) @@ -50084,10 +55068,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.ActionPlans) - if nodes[i].Edges.totalCount[64] == nil { - nodes[i].Edges.totalCount[64] = make(map[string]int) + if nodes[i].Edges.totalCount[120] == nil { + nodes[i].Edges.totalCount[120] = make(map[string]int) } - nodes[i].Edges.totalCount[64][alias] = n + nodes[i].Edges.totalCount[120][alias] = n } return nil }) @@ -50162,10 +55146,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[65] == nil { - nodes[i].Edges.totalCount[65] = make(map[string]int) + if nodes[i].Edges.totalCount[121] == nil { + nodes[i].Edges.totalCount[121] = make(map[string]int) } - nodes[i].Edges.totalCount[65][alias] = n + nodes[i].Edges.totalCount[121][alias] = n } return nil }) @@ -50173,10 +55157,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.CustomDomains) - if nodes[i].Edges.totalCount[65] == nil { - nodes[i].Edges.totalCount[65] = make(map[string]int) + if nodes[i].Edges.totalCount[121] == nil { + nodes[i].Edges.totalCount[121] = make(map[string]int) } - nodes[i].Edges.totalCount[65][alias] = n + nodes[i].Edges.totalCount[121][alias] = n } return nil }) @@ -50251,10 +55235,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[66] == nil { - nodes[i].Edges.totalCount[66] = make(map[string]int) + if nodes[i].Edges.totalCount[122] == nil { + nodes[i].Edges.totalCount[122] = make(map[string]int) } - nodes[i].Edges.totalCount[66][alias] = n + nodes[i].Edges.totalCount[122][alias] = n } return nil }) @@ -50262,10 +55246,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.JobRunners) - if nodes[i].Edges.totalCount[66] == nil { - nodes[i].Edges.totalCount[66] = make(map[string]int) + if nodes[i].Edges.totalCount[122] == nil { + nodes[i].Edges.totalCount[122] = make(map[string]int) } - nodes[i].Edges.totalCount[66][alias] = n + nodes[i].Edges.totalCount[122][alias] = n } return nil }) @@ -50340,10 +55324,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[67] == nil { - nodes[i].Edges.totalCount[67] = make(map[string]int) + if nodes[i].Edges.totalCount[123] == nil { + nodes[i].Edges.totalCount[123] = make(map[string]int) } - nodes[i].Edges.totalCount[67][alias] = n + nodes[i].Edges.totalCount[123][alias] = n } return nil }) @@ -50351,10 +55335,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.JobRunnerTokens) - if nodes[i].Edges.totalCount[67] == nil { - nodes[i].Edges.totalCount[67] = make(map[string]int) + if nodes[i].Edges.totalCount[123] == nil { + nodes[i].Edges.totalCount[123] = make(map[string]int) } - nodes[i].Edges.totalCount[67][alias] = n + nodes[i].Edges.totalCount[123][alias] = n } return nil }) @@ -50429,10 +55413,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[68] == nil { - nodes[i].Edges.totalCount[68] = make(map[string]int) + if nodes[i].Edges.totalCount[124] == nil { + nodes[i].Edges.totalCount[124] = make(map[string]int) } - nodes[i].Edges.totalCount[68][alias] = n + nodes[i].Edges.totalCount[124][alias] = n } return nil }) @@ -50440,10 +55424,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.JobRunnerRegistrationTokens) - if nodes[i].Edges.totalCount[68] == nil { - nodes[i].Edges.totalCount[68] = make(map[string]int) + if nodes[i].Edges.totalCount[124] == nil { + nodes[i].Edges.totalCount[124] = make(map[string]int) } - nodes[i].Edges.totalCount[68][alias] = n + nodes[i].Edges.totalCount[124][alias] = n } return nil }) @@ -50518,10 +55502,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[69] == nil { - nodes[i].Edges.totalCount[69] = make(map[string]int) + if nodes[i].Edges.totalCount[125] == nil { + nodes[i].Edges.totalCount[125] = make(map[string]int) } - nodes[i].Edges.totalCount[69][alias] = n + nodes[i].Edges.totalCount[125][alias] = n } return nil }) @@ -50529,10 +55513,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.DNSVerifications) - if nodes[i].Edges.totalCount[69] == nil { - nodes[i].Edges.totalCount[69] = make(map[string]int) + if nodes[i].Edges.totalCount[125] == nil { + nodes[i].Edges.totalCount[125] = make(map[string]int) } - nodes[i].Edges.totalCount[69][alias] = n + nodes[i].Edges.totalCount[125][alias] = n } return nil }) @@ -50607,10 +55591,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[70] == nil { - nodes[i].Edges.totalCount[70] = make(map[string]int) + if nodes[i].Edges.totalCount[126] == nil { + nodes[i].Edges.totalCount[126] = make(map[string]int) } - nodes[i].Edges.totalCount[70][alias] = n + nodes[i].Edges.totalCount[126][alias] = n } return nil }) @@ -50618,10 +55602,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.JobTemplates) - if nodes[i].Edges.totalCount[70] == nil { - nodes[i].Edges.totalCount[70] = make(map[string]int) + if nodes[i].Edges.totalCount[126] == nil { + nodes[i].Edges.totalCount[126] = make(map[string]int) } - nodes[i].Edges.totalCount[70][alias] = n + nodes[i].Edges.totalCount[126][alias] = n } return nil }) @@ -50696,10 +55680,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[71] == nil { - nodes[i].Edges.totalCount[71] = make(map[string]int) + if nodes[i].Edges.totalCount[127] == nil { + nodes[i].Edges.totalCount[127] = make(map[string]int) } - nodes[i].Edges.totalCount[71][alias] = n + nodes[i].Edges.totalCount[127][alias] = n } return nil }) @@ -50707,10 +55691,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.ScheduledJobs) - if nodes[i].Edges.totalCount[71] == nil { - nodes[i].Edges.totalCount[71] = make(map[string]int) + if nodes[i].Edges.totalCount[127] == nil { + nodes[i].Edges.totalCount[127] = make(map[string]int) } - nodes[i].Edges.totalCount[71][alias] = n + nodes[i].Edges.totalCount[127][alias] = n } return nil }) @@ -50785,10 +55769,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[72] == nil { - nodes[i].Edges.totalCount[72] = make(map[string]int) + if nodes[i].Edges.totalCount[128] == nil { + nodes[i].Edges.totalCount[128] = make(map[string]int) } - nodes[i].Edges.totalCount[72][alias] = n + nodes[i].Edges.totalCount[128][alias] = n } return nil }) @@ -50796,10 +55780,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.JobResults) - if nodes[i].Edges.totalCount[72] == nil { - nodes[i].Edges.totalCount[72] = make(map[string]int) + if nodes[i].Edges.totalCount[128] == nil { + nodes[i].Edges.totalCount[128] = make(map[string]int) } - nodes[i].Edges.totalCount[72][alias] = n + nodes[i].Edges.totalCount[128][alias] = n } return nil }) @@ -50874,10 +55858,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[73] == nil { - nodes[i].Edges.totalCount[73] = make(map[string]int) + if nodes[i].Edges.totalCount[129] == nil { + nodes[i].Edges.totalCount[129] = make(map[string]int) } - nodes[i].Edges.totalCount[73][alias] = n + nodes[i].Edges.totalCount[129][alias] = n } return nil }) @@ -50885,10 +55869,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.ScheduledJobRuns) - if nodes[i].Edges.totalCount[73] == nil { - nodes[i].Edges.totalCount[73] = make(map[string]int) + if nodes[i].Edges.totalCount[129] == nil { + nodes[i].Edges.totalCount[129] = make(map[string]int) } - nodes[i].Edges.totalCount[73][alias] = n + nodes[i].Edges.totalCount[129][alias] = n } return nil }) @@ -50963,10 +55947,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[74] == nil { - nodes[i].Edges.totalCount[74] = make(map[string]int) + if nodes[i].Edges.totalCount[130] == nil { + nodes[i].Edges.totalCount[130] = make(map[string]int) } - nodes[i].Edges.totalCount[74][alias] = n + nodes[i].Edges.totalCount[130][alias] = n } return nil }) @@ -50974,10 +55958,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.TrustCenters) - if nodes[i].Edges.totalCount[74] == nil { - nodes[i].Edges.totalCount[74] = make(map[string]int) + if nodes[i].Edges.totalCount[130] == nil { + nodes[i].Edges.totalCount[130] = make(map[string]int) } - nodes[i].Edges.totalCount[74][alias] = n + nodes[i].Edges.totalCount[130][alias] = n } return nil }) @@ -51052,10 +56036,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[75] == nil { - nodes[i].Edges.totalCount[75] = make(map[string]int) + if nodes[i].Edges.totalCount[131] == nil { + nodes[i].Edges.totalCount[131] = make(map[string]int) } - nodes[i].Edges.totalCount[75][alias] = n + nodes[i].Edges.totalCount[131][alias] = n } return nil }) @@ -51063,10 +56047,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Assets) - if nodes[i].Edges.totalCount[75] == nil { - nodes[i].Edges.totalCount[75] = make(map[string]int) + if nodes[i].Edges.totalCount[131] == nil { + nodes[i].Edges.totalCount[131] = make(map[string]int) } - nodes[i].Edges.totalCount[75][alias] = n + nodes[i].Edges.totalCount[131][alias] = n } return nil }) @@ -51141,10 +56125,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[76] == nil { - nodes[i].Edges.totalCount[76] = make(map[string]int) + if nodes[i].Edges.totalCount[132] == nil { + nodes[i].Edges.totalCount[132] = make(map[string]int) } - nodes[i].Edges.totalCount[76][alias] = n + nodes[i].Edges.totalCount[132][alias] = n } return nil }) @@ -51152,10 +56136,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Scans) - if nodes[i].Edges.totalCount[76] == nil { - nodes[i].Edges.totalCount[76] = make(map[string]int) + if nodes[i].Edges.totalCount[132] == nil { + nodes[i].Edges.totalCount[132] = make(map[string]int) } - nodes[i].Edges.totalCount[76][alias] = n + nodes[i].Edges.totalCount[132][alias] = n } return nil }) @@ -51230,10 +56214,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[77] == nil { - nodes[i].Edges.totalCount[77] = make(map[string]int) + if nodes[i].Edges.totalCount[133] == nil { + nodes[i].Edges.totalCount[133] = make(map[string]int) } - nodes[i].Edges.totalCount[77][alias] = n + nodes[i].Edges.totalCount[133][alias] = n } return nil }) @@ -51241,10 +56225,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.SLADefinitions) - if nodes[i].Edges.totalCount[77] == nil { - nodes[i].Edges.totalCount[77] = make(map[string]int) + if nodes[i].Edges.totalCount[133] == nil { + nodes[i].Edges.totalCount[133] = make(map[string]int) } - nodes[i].Edges.totalCount[77][alias] = n + nodes[i].Edges.totalCount[133][alias] = n } return nil }) @@ -51319,10 +56303,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[78] == nil { - nodes[i].Edges.totalCount[78] = make(map[string]int) + if nodes[i].Edges.totalCount[134] == nil { + nodes[i].Edges.totalCount[134] = make(map[string]int) } - nodes[i].Edges.totalCount[78][alias] = n + nodes[i].Edges.totalCount[134][alias] = n } return nil }) @@ -51330,10 +56314,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Subprocessors) - if nodes[i].Edges.totalCount[78] == nil { - nodes[i].Edges.totalCount[78] = make(map[string]int) + if nodes[i].Edges.totalCount[134] == nil { + nodes[i].Edges.totalCount[134] = make(map[string]int) } - nodes[i].Edges.totalCount[78][alias] = n + nodes[i].Edges.totalCount[134][alias] = n } return nil }) @@ -51408,10 +56392,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[79] == nil { - nodes[i].Edges.totalCount[79] = make(map[string]int) + if nodes[i].Edges.totalCount[135] == nil { + nodes[i].Edges.totalCount[135] = make(map[string]int) } - nodes[i].Edges.totalCount[79][alias] = n + nodes[i].Edges.totalCount[135][alias] = n } return nil }) @@ -51419,10 +56403,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Exports) - if nodes[i].Edges.totalCount[79] == nil { - nodes[i].Edges.totalCount[79] = make(map[string]int) + if nodes[i].Edges.totalCount[135] == nil { + nodes[i].Edges.totalCount[135] = make(map[string]int) } - nodes[i].Edges.totalCount[79][alias] = n + nodes[i].Edges.totalCount[135][alias] = n } return nil }) @@ -51497,10 +56481,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[80] == nil { - nodes[i].Edges.totalCount[80] = make(map[string]int) + if nodes[i].Edges.totalCount[136] == nil { + nodes[i].Edges.totalCount[136] = make(map[string]int) } - nodes[i].Edges.totalCount[80][alias] = n + nodes[i].Edges.totalCount[136][alias] = n } return nil }) @@ -51508,10 +56492,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.TrustCenterWatermarkConfigs) - if nodes[i].Edges.totalCount[80] == nil { - nodes[i].Edges.totalCount[80] = make(map[string]int) + if nodes[i].Edges.totalCount[136] == nil { + nodes[i].Edges.totalCount[136] = make(map[string]int) } - nodes[i].Edges.totalCount[80][alias] = n + nodes[i].Edges.totalCount[136][alias] = n } return nil }) @@ -51586,10 +56570,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[81] == nil { - nodes[i].Edges.totalCount[81] = make(map[string]int) + if nodes[i].Edges.totalCount[137] == nil { + nodes[i].Edges.totalCount[137] = make(map[string]int) } - nodes[i].Edges.totalCount[81][alias] = n + nodes[i].Edges.totalCount[137][alias] = n } return nil }) @@ -51597,10 +56581,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Assessments) - if nodes[i].Edges.totalCount[81] == nil { - nodes[i].Edges.totalCount[81] = make(map[string]int) + if nodes[i].Edges.totalCount[137] == nil { + nodes[i].Edges.totalCount[137] = make(map[string]int) } - nodes[i].Edges.totalCount[81][alias] = n + nodes[i].Edges.totalCount[137][alias] = n } return nil }) @@ -51675,10 +56659,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[82] == nil { - nodes[i].Edges.totalCount[82] = make(map[string]int) + if nodes[i].Edges.totalCount[138] == nil { + nodes[i].Edges.totalCount[138] = make(map[string]int) } - nodes[i].Edges.totalCount[82][alias] = n + nodes[i].Edges.totalCount[138][alias] = n } return nil }) @@ -51686,10 +56670,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.AssessmentResponses) - if nodes[i].Edges.totalCount[82] == nil { - nodes[i].Edges.totalCount[82] = make(map[string]int) + if nodes[i].Edges.totalCount[138] == nil { + nodes[i].Edges.totalCount[138] = make(map[string]int) } - nodes[i].Edges.totalCount[82][alias] = n + nodes[i].Edges.totalCount[138][alias] = n } return nil }) @@ -51764,10 +56748,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[83] == nil { - nodes[i].Edges.totalCount[83] = make(map[string]int) + if nodes[i].Edges.totalCount[139] == nil { + nodes[i].Edges.totalCount[139] = make(map[string]int) } - nodes[i].Edges.totalCount[83][alias] = n + nodes[i].Edges.totalCount[139][alias] = n } return nil }) @@ -51775,10 +56759,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.CustomTypeEnums) - if nodes[i].Edges.totalCount[83] == nil { - nodes[i].Edges.totalCount[83] = make(map[string]int) + if nodes[i].Edges.totalCount[139] == nil { + nodes[i].Edges.totalCount[139] = make(map[string]int) } - nodes[i].Edges.totalCount[83][alias] = n + nodes[i].Edges.totalCount[139][alias] = n } return nil }) @@ -51853,10 +56837,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[84] == nil { - nodes[i].Edges.totalCount[84] = make(map[string]int) + if nodes[i].Edges.totalCount[140] == nil { + nodes[i].Edges.totalCount[140] = make(map[string]int) } - nodes[i].Edges.totalCount[84][alias] = n + nodes[i].Edges.totalCount[140][alias] = n } return nil }) @@ -51864,10 +56848,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.TagDefinitions) - if nodes[i].Edges.totalCount[84] == nil { - nodes[i].Edges.totalCount[84] = make(map[string]int) + if nodes[i].Edges.totalCount[140] == nil { + nodes[i].Edges.totalCount[140] = make(map[string]int) } - nodes[i].Edges.totalCount[84][alias] = n + nodes[i].Edges.totalCount[140][alias] = n } return nil }) @@ -51942,10 +56926,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[85] == nil { - nodes[i].Edges.totalCount[85] = make(map[string]int) + if nodes[i].Edges.totalCount[141] == nil { + nodes[i].Edges.totalCount[141] = make(map[string]int) } - nodes[i].Edges.totalCount[85][alias] = n + nodes[i].Edges.totalCount[141][alias] = n } return nil }) @@ -51953,10 +56937,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Remediations) - if nodes[i].Edges.totalCount[85] == nil { - nodes[i].Edges.totalCount[85] = make(map[string]int) + if nodes[i].Edges.totalCount[141] == nil { + nodes[i].Edges.totalCount[141] = make(map[string]int) } - nodes[i].Edges.totalCount[85][alias] = n + nodes[i].Edges.totalCount[141][alias] = n } return nil }) @@ -52031,10 +57015,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[86] == nil { - nodes[i].Edges.totalCount[86] = make(map[string]int) + if nodes[i].Edges.totalCount[142] == nil { + nodes[i].Edges.totalCount[142] = make(map[string]int) } - nodes[i].Edges.totalCount[86][alias] = n + nodes[i].Edges.totalCount[142][alias] = n } return nil }) @@ -52042,10 +57026,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Findings) - if nodes[i].Edges.totalCount[86] == nil { - nodes[i].Edges.totalCount[86] = make(map[string]int) + if nodes[i].Edges.totalCount[142] == nil { + nodes[i].Edges.totalCount[142] = make(map[string]int) } - nodes[i].Edges.totalCount[86][alias] = n + nodes[i].Edges.totalCount[142][alias] = n } return nil }) @@ -52120,10 +57104,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[87] == nil { - nodes[i].Edges.totalCount[87] = make(map[string]int) + if nodes[i].Edges.totalCount[143] == nil { + nodes[i].Edges.totalCount[143] = make(map[string]int) } - nodes[i].Edges.totalCount[87][alias] = n + nodes[i].Edges.totalCount[143][alias] = n } return nil }) @@ -52131,10 +57115,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Reviews) - if nodes[i].Edges.totalCount[87] == nil { - nodes[i].Edges.totalCount[87] = make(map[string]int) + if nodes[i].Edges.totalCount[143] == nil { + nodes[i].Edges.totalCount[143] = make(map[string]int) } - nodes[i].Edges.totalCount[87][alias] = n + nodes[i].Edges.totalCount[143][alias] = n } return nil }) @@ -52209,10 +57193,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[88] == nil { - nodes[i].Edges.totalCount[88] = make(map[string]int) + if nodes[i].Edges.totalCount[144] == nil { + nodes[i].Edges.totalCount[144] = make(map[string]int) } - nodes[i].Edges.totalCount[88][alias] = n + nodes[i].Edges.totalCount[144][alias] = n } return nil }) @@ -52220,10 +57204,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Vulnerabilities) - if nodes[i].Edges.totalCount[88] == nil { - nodes[i].Edges.totalCount[88] = make(map[string]int) + if nodes[i].Edges.totalCount[144] == nil { + nodes[i].Edges.totalCount[144] = make(map[string]int) } - nodes[i].Edges.totalCount[88][alias] = n + nodes[i].Edges.totalCount[144][alias] = n } return nil }) @@ -52298,10 +57282,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[89] == nil { - nodes[i].Edges.totalCount[89] = make(map[string]int) + if nodes[i].Edges.totalCount[145] == nil { + nodes[i].Edges.totalCount[145] = make(map[string]int) } - nodes[i].Edges.totalCount[89][alias] = n + nodes[i].Edges.totalCount[145][alias] = n } return nil }) @@ -52309,10 +57293,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowDefinitions) - if nodes[i].Edges.totalCount[89] == nil { - nodes[i].Edges.totalCount[89] = make(map[string]int) + if nodes[i].Edges.totalCount[145] == nil { + nodes[i].Edges.totalCount[145] = make(map[string]int) } - nodes[i].Edges.totalCount[89][alias] = n + nodes[i].Edges.totalCount[145][alias] = n } return nil }) @@ -52387,10 +57371,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[90] == nil { - nodes[i].Edges.totalCount[90] = make(map[string]int) + if nodes[i].Edges.totalCount[146] == nil { + nodes[i].Edges.totalCount[146] = make(map[string]int) } - nodes[i].Edges.totalCount[90][alias] = n + nodes[i].Edges.totalCount[146][alias] = n } return nil }) @@ -52398,10 +57382,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowInstances) - if nodes[i].Edges.totalCount[90] == nil { - nodes[i].Edges.totalCount[90] = make(map[string]int) + if nodes[i].Edges.totalCount[146] == nil { + nodes[i].Edges.totalCount[146] = make(map[string]int) } - nodes[i].Edges.totalCount[90][alias] = n + nodes[i].Edges.totalCount[146][alias] = n } return nil }) @@ -52476,10 +57460,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[91] == nil { - nodes[i].Edges.totalCount[91] = make(map[string]int) + if nodes[i].Edges.totalCount[147] == nil { + nodes[i].Edges.totalCount[147] = make(map[string]int) } - nodes[i].Edges.totalCount[91][alias] = n + nodes[i].Edges.totalCount[147][alias] = n } return nil }) @@ -52487,10 +57471,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowEvents) - if nodes[i].Edges.totalCount[91] == nil { - nodes[i].Edges.totalCount[91] = make(map[string]int) + if nodes[i].Edges.totalCount[147] == nil { + nodes[i].Edges.totalCount[147] = make(map[string]int) } - nodes[i].Edges.totalCount[91][alias] = n + nodes[i].Edges.totalCount[147][alias] = n } return nil }) @@ -52565,10 +57549,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[92] == nil { - nodes[i].Edges.totalCount[92] = make(map[string]int) + if nodes[i].Edges.totalCount[148] == nil { + nodes[i].Edges.totalCount[148] = make(map[string]int) } - nodes[i].Edges.totalCount[92][alias] = n + nodes[i].Edges.totalCount[148][alias] = n } return nil }) @@ -52576,10 +57560,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowAssignments) - if nodes[i].Edges.totalCount[92] == nil { - nodes[i].Edges.totalCount[92] = make(map[string]int) + if nodes[i].Edges.totalCount[148] == nil { + nodes[i].Edges.totalCount[148] = make(map[string]int) } - nodes[i].Edges.totalCount[92][alias] = n + nodes[i].Edges.totalCount[148][alias] = n } return nil }) @@ -52654,10 +57638,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[93] == nil { - nodes[i].Edges.totalCount[93] = make(map[string]int) + if nodes[i].Edges.totalCount[149] == nil { + nodes[i].Edges.totalCount[149] = make(map[string]int) } - nodes[i].Edges.totalCount[93][alias] = n + nodes[i].Edges.totalCount[149][alias] = n } return nil }) @@ -52665,10 +57649,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowAssignmentTargets) - if nodes[i].Edges.totalCount[93] == nil { - nodes[i].Edges.totalCount[93] = make(map[string]int) + if nodes[i].Edges.totalCount[149] == nil { + nodes[i].Edges.totalCount[149] = make(map[string]int) } - nodes[i].Edges.totalCount[93][alias] = n + nodes[i].Edges.totalCount[149][alias] = n } return nil }) @@ -52743,10 +57727,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[94] == nil { - nodes[i].Edges.totalCount[94] = make(map[string]int) + if nodes[i].Edges.totalCount[150] == nil { + nodes[i].Edges.totalCount[150] = make(map[string]int) } - nodes[i].Edges.totalCount[94][alias] = n + nodes[i].Edges.totalCount[150][alias] = n } return nil }) @@ -52754,10 +57738,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowObjectRefs) - if nodes[i].Edges.totalCount[94] == nil { - nodes[i].Edges.totalCount[94] = make(map[string]int) + if nodes[i].Edges.totalCount[150] == nil { + nodes[i].Edges.totalCount[150] = make(map[string]int) } - nodes[i].Edges.totalCount[94][alias] = n + nodes[i].Edges.totalCount[150][alias] = n } return nil }) @@ -52832,10 +57816,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[95] == nil { - nodes[i].Edges.totalCount[95] = make(map[string]int) + if nodes[i].Edges.totalCount[151] == nil { + nodes[i].Edges.totalCount[151] = make(map[string]int) } - nodes[i].Edges.totalCount[95][alias] = n + nodes[i].Edges.totalCount[151][alias] = n } return nil }) @@ -52843,10 +57827,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.DirectoryAccounts) - if nodes[i].Edges.totalCount[95] == nil { - nodes[i].Edges.totalCount[95] = make(map[string]int) + if nodes[i].Edges.totalCount[151] == nil { + nodes[i].Edges.totalCount[151] = make(map[string]int) } - nodes[i].Edges.totalCount[95][alias] = n + nodes[i].Edges.totalCount[151][alias] = n } return nil }) @@ -52921,10 +57905,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[96] == nil { - nodes[i].Edges.totalCount[96] = make(map[string]int) + if nodes[i].Edges.totalCount[152] == nil { + nodes[i].Edges.totalCount[152] = make(map[string]int) } - nodes[i].Edges.totalCount[96][alias] = n + nodes[i].Edges.totalCount[152][alias] = n } return nil }) @@ -52932,10 +57916,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.DirectoryGroups) - if nodes[i].Edges.totalCount[96] == nil { - nodes[i].Edges.totalCount[96] = make(map[string]int) + if nodes[i].Edges.totalCount[152] == nil { + nodes[i].Edges.totalCount[152] = make(map[string]int) } - nodes[i].Edges.totalCount[96][alias] = n + nodes[i].Edges.totalCount[152][alias] = n } return nil }) @@ -53010,10 +57994,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[97] == nil { - nodes[i].Edges.totalCount[97] = make(map[string]int) + if nodes[i].Edges.totalCount[153] == nil { + nodes[i].Edges.totalCount[153] = make(map[string]int) } - nodes[i].Edges.totalCount[97][alias] = n + nodes[i].Edges.totalCount[153][alias] = n } return nil }) @@ -53021,10 +58005,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.DirectoryMemberships) - if nodes[i].Edges.totalCount[97] == nil { - nodes[i].Edges.totalCount[97] = make(map[string]int) + if nodes[i].Edges.totalCount[153] == nil { + nodes[i].Edges.totalCount[153] = make(map[string]int) } - nodes[i].Edges.totalCount[97][alias] = n + nodes[i].Edges.totalCount[153][alias] = n } return nil }) @@ -53099,10 +58083,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[98] == nil { - nodes[i].Edges.totalCount[98] = make(map[string]int) + if nodes[i].Edges.totalCount[154] == nil { + nodes[i].Edges.totalCount[154] = make(map[string]int) } - nodes[i].Edges.totalCount[98][alias] = n + nodes[i].Edges.totalCount[154][alias] = n } return nil }) @@ -53110,10 +58094,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.DirectorySyncRuns) - if nodes[i].Edges.totalCount[98] == nil { - nodes[i].Edges.totalCount[98] = make(map[string]int) + if nodes[i].Edges.totalCount[154] == nil { + nodes[i].Edges.totalCount[154] = make(map[string]int) } - nodes[i].Edges.totalCount[98][alias] = n + nodes[i].Edges.totalCount[154][alias] = n } return nil }) @@ -53188,10 +58172,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[99] == nil { - nodes[i].Edges.totalCount[99] = make(map[string]int) + if nodes[i].Edges.totalCount[155] == nil { + nodes[i].Edges.totalCount[155] = make(map[string]int) } - nodes[i].Edges.totalCount[99][alias] = n + nodes[i].Edges.totalCount[155][alias] = n } return nil }) @@ -53199,10 +58183,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Discussions) - if nodes[i].Edges.totalCount[99] == nil { - nodes[i].Edges.totalCount[99] = make(map[string]int) + if nodes[i].Edges.totalCount[155] == nil { + nodes[i].Edges.totalCount[155] = make(map[string]int) } - nodes[i].Edges.totalCount[99][alias] = n + nodes[i].Edges.totalCount[155][alias] = n } return nil }) @@ -53277,10 +58261,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[100] == nil { - nodes[i].Edges.totalCount[100] = make(map[string]int) + if nodes[i].Edges.totalCount[156] == nil { + nodes[i].Edges.totalCount[156] = make(map[string]int) } - nodes[i].Edges.totalCount[100][alias] = n + nodes[i].Edges.totalCount[156][alias] = n } return nil }) @@ -53288,10 +58272,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.VendorScoringConfigs) - if nodes[i].Edges.totalCount[100] == nil { - nodes[i].Edges.totalCount[100] = make(map[string]int) + if nodes[i].Edges.totalCount[156] == nil { + nodes[i].Edges.totalCount[156] = make(map[string]int) } - nodes[i].Edges.totalCount[100][alias] = n + nodes[i].Edges.totalCount[156][alias] = n } return nil }) @@ -53366,10 +58350,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[101] == nil { - nodes[i].Edges.totalCount[101] = make(map[string]int) + if nodes[i].Edges.totalCount[157] == nil { + nodes[i].Edges.totalCount[157] = make(map[string]int) } - nodes[i].Edges.totalCount[101][alias] = n + nodes[i].Edges.totalCount[157][alias] = n } return nil }) @@ -53377,10 +58361,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.VendorRiskScores) - if nodes[i].Edges.totalCount[101] == nil { - nodes[i].Edges.totalCount[101] = make(map[string]int) + if nodes[i].Edges.totalCount[157] == nil { + nodes[i].Edges.totalCount[157] = make(map[string]int) } - nodes[i].Edges.totalCount[101][alias] = n + nodes[i].Edges.totalCount[157][alias] = n } return nil }) @@ -53455,10 +58439,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[102] == nil { - nodes[i].Edges.totalCount[102] = make(map[string]int) + if nodes[i].Edges.totalCount[158] == nil { + nodes[i].Edges.totalCount[158] = make(map[string]int) } - nodes[i].Edges.totalCount[102][alias] = n + nodes[i].Edges.totalCount[158][alias] = n } return nil }) @@ -53466,10 +58450,10 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Organization) error { for i := range nodes { n := len(nodes[i].Edges.Members) - if nodes[i].Edges.totalCount[102] == nil { - nodes[i].Edges.totalCount[102] = make(map[string]int) + if nodes[i].Edges.totalCount[158] == nil { + nodes[i].Edges.totalCount[158] = make(map[string]int) } - nodes[i].Edges.totalCount[102][alias] = n + nodes[i].Edges.totalCount[158][alias] = n } return nil }) diff --git a/internal/ent/generated/gql_edge.go b/internal/ent/generated/gql_edge.go index 8fefc9a7c4..31769eb8b2 100644 --- a/internal/ent/generated/gql_edge.go +++ b/internal/ent/generated/gql_edge.go @@ -8796,6 +8796,174 @@ func (_m *OrgSubscription) Events( return _m.QueryEvents().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Organization) ActionPlanCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[0][alias] + if nodes, err := _m.NamedActionPlanCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryActionPlanCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) APITokenCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[1][alias] + if nodes, err := _m.NamedAPITokenCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAPITokenCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) AssessmentCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[2][alias] + if nodes, err := _m.NamedAssessmentCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAssessmentCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) AssetCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[3][alias] + if nodes, err := _m.NamedAssetCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAssetCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) CampaignCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] + if nodes, err := _m.NamedCampaignCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryCampaignCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) CampaignTargetCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] + if nodes, err := _m.NamedCampaignTargetCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryCampaignTargetCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) CheckResultCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[6][alias] + if nodes, err := _m.NamedCheckResultCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryCheckResultCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ContactCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[7][alias] + if nodes, err := _m.NamedContactCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryContactCreators().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Organization) ControlCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { @@ -8804,8 +8972,974 @@ func (_m *Organization) ControlCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[0][alias] - if nodes, err := _m.NamedControlCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[8][alias] + if nodes, err := _m.NamedControlCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryControlCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ControlImplementationCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[9][alias] + if nodes, err := _m.NamedControlImplementationCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryControlImplementationCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ControlObjectiveCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[10][alias] + if nodes, err := _m.NamedControlObjectiveCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryControlObjectiveCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) CustomTypeEnumCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[11][alias] + if nodes, err := _m.NamedCustomTypeEnumCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryCustomTypeEnumCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) DiscussionCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] + if nodes, err := _m.NamedDiscussionCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryDiscussionCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) EmailTemplateCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] + if nodes, err := _m.NamedEmailTemplateCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryEmailTemplateCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) EntityCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] + if nodes, err := _m.NamedEntityCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryEntityCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) EntityTypeCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] + if nodes, err := _m.NamedEntityTypeCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryEntityTypeCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) EvidenceCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] + if nodes, err := _m.NamedEvidenceCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryEvidenceCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ExportCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] + if nodes, err := _m.NamedExportCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryExportCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) FileCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] + if nodes, err := _m.NamedFileCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryFileCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) FindingCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + if nodes, err := _m.NamedFindingCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryFindingCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) GroupCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] + if nodes, err := _m.NamedGroupCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryGroupCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) IdentityHolderCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] + if nodes, err := _m.NamedIdentityHolderCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryIdentityHolderCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) IntegrationCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] + if nodes, err := _m.NamedIntegrationCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryIntegrationCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) IntegrationWebhookCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] + if nodes, err := _m.NamedIntegrationWebhookCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryIntegrationWebhookCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) InternalPolicyCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[24][alias] + if nodes, err := _m.NamedInternalPolicyCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryInternalPolicyCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) JobRunnerCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + if nodes, err := _m.NamedJobRunnerCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryJobRunnerCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) JobRunnerRegistrationTokenCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] + if nodes, err := _m.NamedJobRunnerRegistrationTokenCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryJobRunnerRegistrationTokenCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) JobRunnerTokenCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] + if nodes, err := _m.NamedJobRunnerTokenCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryJobRunnerTokenCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) JobTemplateCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] + if nodes, err := _m.NamedJobTemplateCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryJobTemplateCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) MappedControlCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] + if nodes, err := _m.NamedMappedControlCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryMappedControlCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) NarrativeCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] + if nodes, err := _m.NamedNarrativeCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryNarrativeCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) NoteCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] + if nodes, err := _m.NamedNoteCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryNoteCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) NotificationTemplateCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] + if nodes, err := _m.NamedNotificationTemplateCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryNotificationTemplateCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) OrganizationCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] + if nodes, err := _m.NamedOrganizationCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryOrganizationCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) PlatformCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[34][alias] + if nodes, err := _m.NamedPlatformCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryPlatformCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ProcedureCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] + if nodes, err := _m.NamedProcedureCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryProcedureCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ProgramCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] + if nodes, err := _m.NamedProgramCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryProgramCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) RemediationCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] + if nodes, err := _m.NamedRemediationCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryRemediationCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ReviewCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] + if nodes, err := _m.NamedReviewCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryReviewCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) RiskCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[39][alias] + if nodes, err := _m.NamedRiskCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryRiskCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ScanCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] + if nodes, err := _m.NamedScanCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryScanCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ScheduledJobCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] + if nodes, err := _m.NamedScheduledJobCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryScheduledJobCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) ScheduledJobRunCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] + if nodes, err := _m.NamedScheduledJobRunCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryScheduledJobRunCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) StandardCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[43][alias] + if nodes, err := _m.NamedStandardCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryStandardCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) SubcontrolCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] + if nodes, err := _m.NamedSubcontrolCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QuerySubcontrolCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) SubprocessorCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] + if nodes, err := _m.NamedSubprocessorCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QuerySubprocessorCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) SubscriberCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[46][alias] + if nodes, err := _m.NamedSubscriberCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QuerySubscriberCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) SystemDetailCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[47][alias] + if nodes, err := _m.NamedSystemDetailCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QuerySystemDetailCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TagDefinitionCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] + if nodes, err := _m.NamedTagDefinitionCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTagDefinitionCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TaskCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] + if nodes, err := _m.NamedTaskCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTaskCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TemplateCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[50][alias] + if nodes, err := _m.NamedTemplateCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTemplateCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TrustCenterCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] + if nodes, err := _m.NamedTrustCenterCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTrustCenterCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TrustCenterComplianceCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] + if nodes, err := _m.NamedTrustCenterComplianceCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTrustCenterComplianceCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TrustCenterDocCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[53][alias] + if nodes, err := _m.NamedTrustCenterDocCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryTrustCenterDocCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) TrustCenterEntityCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[54][alias] + if nodes, err := _m.NamedTrustCenterEntityCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8814,10 +9948,10 @@ func (_m *Organization) ControlCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryControlCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterEntityCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ControlImplementationCreators( +func (_m *Organization) TrustCenterFaqCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8825,8 +9959,8 @@ func (_m *Organization) ControlImplementationCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[1][alias] - if nodes, err := _m.NamedControlImplementationCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[55][alias] + if nodes, err := _m.NamedTrustCenterFaqCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8835,10 +9969,10 @@ func (_m *Organization) ControlImplementationCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryControlImplementationCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterFaqCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ControlObjectiveCreators( +func (_m *Organization) TrustCenterNdaRequestCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8846,8 +9980,8 @@ func (_m *Organization) ControlObjectiveCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[2][alias] - if nodes, err := _m.NamedControlObjectiveCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[56][alias] + if nodes, err := _m.NamedTrustCenterNdaRequestCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8856,10 +9990,10 @@ func (_m *Organization) ControlObjectiveCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryControlObjectiveCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterNdaRequestCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) EvidenceCreators( +func (_m *Organization) TrustCenterSubprocessorCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8867,8 +10001,8 @@ func (_m *Organization) EvidenceCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[3][alias] - if nodes, err := _m.NamedEvidenceCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[57][alias] + if nodes, err := _m.NamedTrustCenterSubprocessorCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8877,10 +10011,10 @@ func (_m *Organization) EvidenceCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryEvidenceCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterSubprocessorCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) AssetCreators( +func (_m *Organization) TrustCenterWatermarkConfigCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8888,8 +10022,8 @@ func (_m *Organization) AssetCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] - if nodes, err := _m.NamedAssetCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[58][alias] + if nodes, err := _m.NamedTrustCenterWatermarkConfigCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8898,10 +10032,10 @@ func (_m *Organization) AssetCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryAssetCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterWatermarkConfigCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) FindingCreators( +func (_m *Organization) UserCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8909,8 +10043,8 @@ func (_m *Organization) FindingCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] - if nodes, err := _m.NamedFindingCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[59][alias] + if nodes, err := _m.NamedUserCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8919,7 +10053,49 @@ func (_m *Organization) FindingCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryFindingCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryUserCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) UserSettingCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[60][alias] + if nodes, err := _m.NamedUserSettingCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryUserSettingCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) VendorRiskScoreCreators( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, +) (*GroupConnection, error) { + opts := []GroupPaginateOption{ + WithGroupOrder(orderBy), + WithGroupFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[61][alias] + if nodes, err := _m.NamedVendorRiskScoreCreators(alias); err == nil || hasTotalCount { + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryVendorRiskScoreCreators().Paginate(ctx, after, first, before, last, opts...) } func (_m *Organization) VulnerabilityCreators( @@ -8930,7 +10106,7 @@ func (_m *Organization) VulnerabilityCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[6][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[62][alias] if nodes, err := _m.NamedVulnerabilityCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -8943,7 +10119,7 @@ func (_m *Organization) VulnerabilityCreators( return _m.QueryVulnerabilityCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) GroupCreators( +func (_m *Organization) WorkflowAssignmentCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8951,8 +10127,8 @@ func (_m *Organization) GroupCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[7][alias] - if nodes, err := _m.NamedGroupCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[63][alias] + if nodes, err := _m.NamedWorkflowAssignmentCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8961,10 +10137,10 @@ func (_m *Organization) GroupCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryGroupCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowAssignmentCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) InternalPolicyCreators( +func (_m *Organization) WorkflowAssignmentTargetCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8972,8 +10148,8 @@ func (_m *Organization) InternalPolicyCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[8][alias] - if nodes, err := _m.NamedInternalPolicyCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[64][alias] + if nodes, err := _m.NamedWorkflowAssignmentTargetCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -8982,10 +10158,10 @@ func (_m *Organization) InternalPolicyCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryInternalPolicyCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowAssignmentTargetCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) MappedControlCreators( +func (_m *Organization) WorkflowDefinitionCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -8993,8 +10169,8 @@ func (_m *Organization) MappedControlCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[9][alias] - if nodes, err := _m.NamedMappedControlCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[65][alias] + if nodes, err := _m.NamedWorkflowDefinitionCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9003,10 +10179,10 @@ func (_m *Organization) MappedControlCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryMappedControlCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowDefinitionCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) NarrativeCreators( +func (_m *Organization) WorkflowEventCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9014,8 +10190,8 @@ func (_m *Organization) NarrativeCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[10][alias] - if nodes, err := _m.NamedNarrativeCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[66][alias] + if nodes, err := _m.NamedWorkflowEventCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9024,10 +10200,10 @@ func (_m *Organization) NarrativeCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryNarrativeCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowEventCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ProcedureCreators( +func (_m *Organization) WorkflowInstanceCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9035,8 +10211,8 @@ func (_m *Organization) ProcedureCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[11][alias] - if nodes, err := _m.NamedProcedureCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[67][alias] + if nodes, err := _m.NamedWorkflowInstanceCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9045,10 +10221,10 @@ func (_m *Organization) ProcedureCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryProcedureCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowInstanceCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ProgramCreators( +func (_m *Organization) WorkflowObjectRefCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9056,8 +10232,8 @@ func (_m *Organization) ProgramCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] - if nodes, err := _m.NamedProgramCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[68][alias] + if nodes, err := _m.NamedWorkflowObjectRefCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9066,10 +10242,10 @@ func (_m *Organization) ProgramCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryProgramCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowObjectRefCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) RiskCreators( +func (_m *Organization) WorkflowProposalCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9077,8 +10253,8 @@ func (_m *Organization) RiskCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] - if nodes, err := _m.NamedRiskCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[69][alias] + if nodes, err := _m.NamedWorkflowProposalCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9087,10 +10263,10 @@ func (_m *Organization) RiskCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryRiskCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowProposalCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) IdentityHolderCreators( +func (_m *Organization) CampaignsManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9098,8 +10274,8 @@ func (_m *Organization) IdentityHolderCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] - if nodes, err := _m.NamedIdentityHolderCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[70][alias] + if nodes, err := _m.NamedCampaignsManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9108,10 +10284,10 @@ func (_m *Organization) IdentityHolderCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryIdentityHolderCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryCampaignsManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ScheduledJobCreators( +func (_m *Organization) ComplianceManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9119,8 +10295,8 @@ func (_m *Organization) ScheduledJobCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] - if nodes, err := _m.NamedScheduledJobCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[71][alias] + if nodes, err := _m.NamedComplianceManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9129,10 +10305,10 @@ func (_m *Organization) ScheduledJobCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryScheduledJobCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryComplianceManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) StandardCreators( +func (_m *Organization) GroupManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9140,8 +10316,8 @@ func (_m *Organization) StandardCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] - if nodes, err := _m.NamedStandardCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[72][alias] + if nodes, err := _m.NamedGroupManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9150,10 +10326,10 @@ func (_m *Organization) StandardCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryStandardCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryGroupManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) TemplateCreators( +func (_m *Organization) PoliciesManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9161,8 +10337,8 @@ func (_m *Organization) TemplateCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] - if nodes, err := _m.NamedTemplateCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[73][alias] + if nodes, err := _m.NamedPoliciesManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9171,10 +10347,10 @@ func (_m *Organization) TemplateCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryTemplateCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryPoliciesManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) SubprocessorCreators( +func (_m *Organization) RegistryManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9182,8 +10358,8 @@ func (_m *Organization) SubprocessorCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] - if nodes, err := _m.NamedSubprocessorCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[74][alias] + if nodes, err := _m.NamedRegistryManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9192,10 +10368,10 @@ func (_m *Organization) SubprocessorCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QuerySubprocessorCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryRegistryManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) TrustCenterDocCreators( +func (_m *Organization) RiskManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9203,8 +10379,8 @@ func (_m *Organization) TrustCenterDocCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] - if nodes, err := _m.NamedTrustCenterDocCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[75][alias] + if nodes, err := _m.NamedRiskManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9213,10 +10389,10 @@ func (_m *Organization) TrustCenterDocCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryTrustCenterDocCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryRiskManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) TrustCenterSubprocessorCreators( +func (_m *Organization) TrustCenterManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9224,8 +10400,8 @@ func (_m *Organization) TrustCenterSubprocessorCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] - if nodes, err := _m.NamedTrustCenterSubprocessorCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[76][alias] + if nodes, err := _m.NamedTrustCenterManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9234,10 +10410,10 @@ func (_m *Organization) TrustCenterSubprocessorCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryTrustCenterSubprocessorCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryTrustCenterManager().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) ActionPlanCreators( +func (_m *Organization) WorkflowsManager( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9245,8 +10421,8 @@ func (_m *Organization) ActionPlanCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] - if nodes, err := _m.NamedActionPlanCreators(alias); err == nil || hasTotalCount { + totalCount, hasTotalCount := _m.Edges.totalCount[77][alias] + if nodes, err := _m.NamedWorkflowsManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { return nil, err @@ -9255,7 +10431,7 @@ func (_m *Organization) ActionPlanCreators( conn.build(nodes, pager, after, first, before, last) return conn, nil } - return _m.QueryActionPlanCreators().Paginate(ctx, after, first, before, last, opts...) + return _m.QueryWorkflowsManager().Paginate(ctx, after, first, before, last, opts...) } func (_m *Organization) Parent(ctx context.Context) (*Organization, error) { @@ -9274,7 +10450,7 @@ func (_m *Organization) Children( WithOrganizationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[79][alias] if nodes, err := _m.NamedChildren(alias); err == nil || hasTotalCount { pager, err := newOrganizationPager(opts, last != nil) if err != nil { @@ -9303,7 +10479,7 @@ func (_m *Organization) PersonalAccessTokens( WithPersonalAccessTokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[81][alias] if nodes, err := _m.NamedPersonalAccessTokens(alias); err == nil || hasTotalCount { pager, err := newPersonalAccessTokenPager(opts, last != nil) if err != nil { @@ -9324,7 +10500,7 @@ func (_m *Organization) APITokens( WithAPITokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[82][alias] if nodes, err := _m.NamedAPITokens(alias); err == nil || hasTotalCount { pager, err := newAPITokenPager(opts, last != nil) if err != nil { @@ -9345,7 +10521,7 @@ func (_m *Organization) EmailTemplates( WithEmailTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[83][alias] if nodes, err := _m.NamedEmailTemplates(alias); err == nil || hasTotalCount { pager, err := newEmailTemplatePager(opts, last != nil) if err != nil { @@ -9366,7 +10542,7 @@ func (_m *Organization) NotificationPreferences( WithNotificationPreferenceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[84][alias] if nodes, err := _m.NamedNotificationPreferences(alias); err == nil || hasTotalCount { pager, err := newNotificationPreferencePager(opts, last != nil) if err != nil { @@ -9387,7 +10563,7 @@ func (_m *Organization) NotificationTemplates( WithNotificationTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[85][alias] if nodes, err := _m.NamedNotificationTemplates(alias); err == nil || hasTotalCount { pager, err := newNotificationTemplatePager(opts, last != nil) if err != nil { @@ -9408,7 +10584,7 @@ func (_m *Organization) Users( WithUserFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[86][alias] if nodes, err := _m.NamedUsers(alias); err == nil || hasTotalCount { pager, err := newUserPager(opts, last != nil) if err != nil { @@ -9429,7 +10605,7 @@ func (_m *Organization) Files( WithFileFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[87][alias] if nodes, err := _m.NamedFiles(alias); err == nil || hasTotalCount { pager, err := newFilePager(opts, last != nil) if err != nil { @@ -9450,7 +10626,7 @@ func (_m *Organization) Events( WithEventFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[88][alias] if nodes, err := _m.NamedEvents(alias); err == nil || hasTotalCount { pager, err := newEventPager(opts, last != nil) if err != nil { @@ -9471,7 +10647,7 @@ func (_m *Organization) Secrets( WithHushFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[89][alias] if nodes, err := _m.NamedSecrets(alias); err == nil || hasTotalCount { pager, err := newHushPager(opts, last != nil) if err != nil { @@ -9500,7 +10676,7 @@ func (_m *Organization) Groups( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[91][alias] if nodes, err := _m.NamedGroups(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9521,7 +10697,7 @@ func (_m *Organization) Templates( WithTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[92][alias] if nodes, err := _m.NamedTemplates(alias); err == nil || hasTotalCount { pager, err := newTemplatePager(opts, last != nil) if err != nil { @@ -9542,7 +10718,7 @@ func (_m *Organization) Integrations( WithIntegrationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[93][alias] if nodes, err := _m.NamedIntegrations(alias); err == nil || hasTotalCount { pager, err := newIntegrationPager(opts, last != nil) if err != nil { @@ -9563,7 +10739,7 @@ func (_m *Organization) Documents( WithDocumentDataFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[94][alias] if nodes, err := _m.NamedDocuments(alias); err == nil || hasTotalCount { pager, err := newDocumentDataPager(opts, last != nil) if err != nil { @@ -9596,7 +10772,7 @@ func (_m *Organization) Invites( WithInviteFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[96][alias] if nodes, err := _m.NamedInvites(alias); err == nil || hasTotalCount { pager, err := newInvitePager(opts, last != nil) if err != nil { @@ -9617,7 +10793,7 @@ func (_m *Organization) Subscribers( WithSubscriberFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[97][alias] if nodes, err := _m.NamedSubscribers(alias); err == nil || hasTotalCount { pager, err := newSubscriberPager(opts, last != nil) if err != nil { @@ -9638,7 +10814,7 @@ func (_m *Organization) Entities( WithEntityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[98][alias] if nodes, err := _m.NamedEntities(alias); err == nil || hasTotalCount { pager, err := newEntityPager(opts, last != nil) if err != nil { @@ -9659,7 +10835,7 @@ func (_m *Organization) Platforms( WithPlatformFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[43][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[99][alias] if nodes, err := _m.NamedPlatforms(alias); err == nil || hasTotalCount { pager, err := newPlatformPager(opts, last != nil) if err != nil { @@ -9680,7 +10856,7 @@ func (_m *Organization) IdentityHolders( WithIdentityHolderFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[100][alias] if nodes, err := _m.NamedIdentityHolders(alias); err == nil || hasTotalCount { pager, err := newIdentityHolderPager(opts, last != nil) if err != nil { @@ -9701,7 +10877,7 @@ func (_m *Organization) Campaigns( WithCampaignFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[101][alias] if nodes, err := _m.NamedCampaigns(alias); err == nil || hasTotalCount { pager, err := newCampaignPager(opts, last != nil) if err != nil { @@ -9722,7 +10898,7 @@ func (_m *Organization) CampaignTargets( WithCampaignTargetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[46][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[102][alias] if nodes, err := _m.NamedCampaignTargets(alias); err == nil || hasTotalCount { pager, err := newCampaignTargetPager(opts, last != nil) if err != nil { @@ -9743,7 +10919,7 @@ func (_m *Organization) EntityTypes( WithEntityTypeFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[47][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[103][alias] if nodes, err := _m.NamedEntityTypes(alias); err == nil || hasTotalCount { pager, err := newEntityTypePager(opts, last != nil) if err != nil { @@ -9764,7 +10940,7 @@ func (_m *Organization) Contacts( WithContactFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[104][alias] if nodes, err := _m.NamedContacts(alias); err == nil || hasTotalCount { pager, err := newContactPager(opts, last != nil) if err != nil { @@ -9785,7 +10961,7 @@ func (_m *Organization) Notes( WithNoteFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[105][alias] if nodes, err := _m.NamedNotes(alias); err == nil || hasTotalCount { pager, err := newNotePager(opts, last != nil) if err != nil { @@ -9806,7 +10982,7 @@ func (_m *Organization) Tasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[50][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[106][alias] if nodes, err := _m.NamedTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -9827,7 +11003,7 @@ func (_m *Organization) Programs( WithProgramFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[107][alias] if nodes, err := _m.NamedPrograms(alias); err == nil || hasTotalCount { pager, err := newProgramPager(opts, last != nil) if err != nil { @@ -9848,7 +11024,7 @@ func (_m *Organization) SystemDetails( WithSystemDetailFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[108][alias] if nodes, err := _m.NamedSystemDetails(alias); err == nil || hasTotalCount { pager, err := newSystemDetailPager(opts, last != nil) if err != nil { @@ -9869,7 +11045,7 @@ func (_m *Organization) Procedures( WithProcedureFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[53][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[109][alias] if nodes, err := _m.NamedProcedures(alias); err == nil || hasTotalCount { pager, err := newProcedurePager(opts, last != nil) if err != nil { @@ -9890,7 +11066,7 @@ func (_m *Organization) InternalPolicies( WithInternalPolicyFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[54][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[110][alias] if nodes, err := _m.NamedInternalPolicies(alias); err == nil || hasTotalCount { pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { @@ -9911,7 +11087,7 @@ func (_m *Organization) Risks( WithRiskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[55][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[111][alias] if nodes, err := _m.NamedRisks(alias); err == nil || hasTotalCount { pager, err := newRiskPager(opts, last != nil) if err != nil { @@ -9932,7 +11108,7 @@ func (_m *Organization) ControlObjectives( WithControlObjectiveFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[56][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[112][alias] if nodes, err := _m.NamedControlObjectives(alias); err == nil || hasTotalCount { pager, err := newControlObjectivePager(opts, last != nil) if err != nil { @@ -9953,7 +11129,7 @@ func (_m *Organization) Narratives( WithNarrativeFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[57][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[113][alias] if nodes, err := _m.NamedNarratives(alias); err == nil || hasTotalCount { pager, err := newNarrativePager(opts, last != nil) if err != nil { @@ -9974,7 +11150,7 @@ func (_m *Organization) Controls( WithControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[58][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[114][alias] if nodes, err := _m.NamedControls(alias); err == nil || hasTotalCount { pager, err := newControlPager(opts, last != nil) if err != nil { @@ -9995,7 +11171,7 @@ func (_m *Organization) Subcontrols( WithSubcontrolFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[59][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[115][alias] if nodes, err := _m.NamedSubcontrols(alias); err == nil || hasTotalCount { pager, err := newSubcontrolPager(opts, last != nil) if err != nil { @@ -10016,7 +11192,7 @@ func (_m *Organization) ControlImplementations( WithControlImplementationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[60][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[116][alias] if nodes, err := _m.NamedControlImplementations(alias); err == nil || hasTotalCount { pager, err := newControlImplementationPager(opts, last != nil) if err != nil { @@ -10037,7 +11213,7 @@ func (_m *Organization) MappedControls( WithMappedControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[61][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[117][alias] if nodes, err := _m.NamedMappedControls(alias); err == nil || hasTotalCount { pager, err := newMappedControlPager(opts, last != nil) if err != nil { @@ -10058,7 +11234,7 @@ func (_m *Organization) Evidence( WithEvidenceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[62][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[118][alias] if nodes, err := _m.NamedEvidence(alias); err == nil || hasTotalCount { pager, err := newEvidencePager(opts, last != nil) if err != nil { @@ -10079,7 +11255,7 @@ func (_m *Organization) Standards( WithStandardFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[63][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[119][alias] if nodes, err := _m.NamedStandards(alias); err == nil || hasTotalCount { pager, err := newStandardPager(opts, last != nil) if err != nil { @@ -10100,7 +11276,7 @@ func (_m *Organization) ActionPlans( WithActionPlanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[64][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[120][alias] if nodes, err := _m.NamedActionPlans(alias); err == nil || hasTotalCount { pager, err := newActionPlanPager(opts, last != nil) if err != nil { @@ -10121,7 +11297,7 @@ func (_m *Organization) CustomDomains( WithCustomDomainFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[65][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[121][alias] if nodes, err := _m.NamedCustomDomains(alias); err == nil || hasTotalCount { pager, err := newCustomDomainPager(opts, last != nil) if err != nil { @@ -10142,7 +11318,7 @@ func (_m *Organization) JobRunners( WithJobRunnerFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[66][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[122][alias] if nodes, err := _m.NamedJobRunners(alias); err == nil || hasTotalCount { pager, err := newJobRunnerPager(opts, last != nil) if err != nil { @@ -10163,7 +11339,7 @@ func (_m *Organization) JobRunnerTokens( WithJobRunnerTokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[67][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[123][alias] if nodes, err := _m.NamedJobRunnerTokens(alias); err == nil || hasTotalCount { pager, err := newJobRunnerTokenPager(opts, last != nil) if err != nil { @@ -10184,7 +11360,7 @@ func (_m *Organization) JobRunnerRegistrationTokens( WithJobRunnerRegistrationTokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[68][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[124][alias] if nodes, err := _m.NamedJobRunnerRegistrationTokens(alias); err == nil || hasTotalCount { pager, err := newJobRunnerRegistrationTokenPager(opts, last != nil) if err != nil { @@ -10205,7 +11381,7 @@ func (_m *Organization) DNSVerifications( WithDNSVerificationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[69][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[125][alias] if nodes, err := _m.NamedDNSVerifications(alias); err == nil || hasTotalCount { pager, err := newDNSVerificationPager(opts, last != nil) if err != nil { @@ -10226,7 +11402,7 @@ func (_m *Organization) JobTemplates( WithJobTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[70][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[126][alias] if nodes, err := _m.NamedJobTemplates(alias); err == nil || hasTotalCount { pager, err := newJobTemplatePager(opts, last != nil) if err != nil { @@ -10247,7 +11423,7 @@ func (_m *Organization) ScheduledJobs( WithScheduledJobFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[71][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[127][alias] if nodes, err := _m.NamedScheduledJobs(alias); err == nil || hasTotalCount { pager, err := newScheduledJobPager(opts, last != nil) if err != nil { @@ -10268,7 +11444,7 @@ func (_m *Organization) JobResults( WithJobResultFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[72][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[128][alias] if nodes, err := _m.NamedJobResults(alias); err == nil || hasTotalCount { pager, err := newJobResultPager(opts, last != nil) if err != nil { @@ -10289,7 +11465,7 @@ func (_m *Organization) ScheduledJobRuns( WithScheduledJobRunFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[73][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[129][alias] if nodes, err := _m.NamedScheduledJobRuns(alias); err == nil || hasTotalCount { pager, err := newScheduledJobRunPager(opts, last != nil) if err != nil { @@ -10310,7 +11486,7 @@ func (_m *Organization) TrustCenters( WithTrustCenterFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[74][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[130][alias] if nodes, err := _m.NamedTrustCenters(alias); err == nil || hasTotalCount { pager, err := newTrustCenterPager(opts, last != nil) if err != nil { @@ -10331,7 +11507,7 @@ func (_m *Organization) Assets( WithAssetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[75][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[131][alias] if nodes, err := _m.NamedAssets(alias); err == nil || hasTotalCount { pager, err := newAssetPager(opts, last != nil) if err != nil { @@ -10352,7 +11528,7 @@ func (_m *Organization) Scans( WithScanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[76][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[132][alias] if nodes, err := _m.NamedScans(alias); err == nil || hasTotalCount { pager, err := newScanPager(opts, last != nil) if err != nil { @@ -10373,7 +11549,7 @@ func (_m *Organization) SLADefinitions( WithSLADefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[77][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[133][alias] if nodes, err := _m.NamedSLADefinitions(alias); err == nil || hasTotalCount { pager, err := newSLADefinitionPager(opts, last != nil) if err != nil { @@ -10394,7 +11570,7 @@ func (_m *Organization) Subprocessors( WithSubprocessorFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[78][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[134][alias] if nodes, err := _m.NamedSubprocessors(alias); err == nil || hasTotalCount { pager, err := newSubprocessorPager(opts, last != nil) if err != nil { @@ -10415,7 +11591,7 @@ func (_m *Organization) Exports( WithExportFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[79][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[135][alias] if nodes, err := _m.NamedExports(alias); err == nil || hasTotalCount { pager, err := newExportPager(opts, last != nil) if err != nil { @@ -10436,7 +11612,7 @@ func (_m *Organization) TrustCenterWatermarkConfigs( WithTrustCenterWatermarkConfigFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[80][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[136][alias] if nodes, err := _m.NamedTrustCenterWatermarkConfigs(alias); err == nil || hasTotalCount { pager, err := newTrustCenterWatermarkConfigPager(opts, last != nil) if err != nil { @@ -10457,7 +11633,7 @@ func (_m *Organization) Assessments( WithAssessmentFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[81][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[137][alias] if nodes, err := _m.NamedAssessments(alias); err == nil || hasTotalCount { pager, err := newAssessmentPager(opts, last != nil) if err != nil { @@ -10478,7 +11654,7 @@ func (_m *Organization) AssessmentResponses( WithAssessmentResponseFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[82][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[138][alias] if nodes, err := _m.NamedAssessmentResponses(alias); err == nil || hasTotalCount { pager, err := newAssessmentResponsePager(opts, last != nil) if err != nil { @@ -10499,7 +11675,7 @@ func (_m *Organization) CustomTypeEnums( WithCustomTypeEnumFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[83][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[139][alias] if nodes, err := _m.NamedCustomTypeEnums(alias); err == nil || hasTotalCount { pager, err := newCustomTypeEnumPager(opts, last != nil) if err != nil { @@ -10520,7 +11696,7 @@ func (_m *Organization) TagDefinitions( WithTagDefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[84][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[140][alias] if nodes, err := _m.NamedTagDefinitions(alias); err == nil || hasTotalCount { pager, err := newTagDefinitionPager(opts, last != nil) if err != nil { @@ -10541,7 +11717,7 @@ func (_m *Organization) Remediations( WithRemediationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[85][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[141][alias] if nodes, err := _m.NamedRemediations(alias); err == nil || hasTotalCount { pager, err := newRemediationPager(opts, last != nil) if err != nil { @@ -10562,7 +11738,7 @@ func (_m *Organization) Findings( WithFindingFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[86][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[142][alias] if nodes, err := _m.NamedFindings(alias); err == nil || hasTotalCount { pager, err := newFindingPager(opts, last != nil) if err != nil { @@ -10583,7 +11759,7 @@ func (_m *Organization) Reviews( WithReviewFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[87][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[143][alias] if nodes, err := _m.NamedReviews(alias); err == nil || hasTotalCount { pager, err := newReviewPager(opts, last != nil) if err != nil { @@ -10604,7 +11780,7 @@ func (_m *Organization) Vulnerabilities( WithVulnerabilityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[88][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[144][alias] if nodes, err := _m.NamedVulnerabilities(alias); err == nil || hasTotalCount { pager, err := newVulnerabilityPager(opts, last != nil) if err != nil { @@ -10625,7 +11801,7 @@ func (_m *Organization) WorkflowDefinitions( WithWorkflowDefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[89][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[145][alias] if nodes, err := _m.NamedWorkflowDefinitions(alias); err == nil || hasTotalCount { pager, err := newWorkflowDefinitionPager(opts, last != nil) if err != nil { @@ -10646,7 +11822,7 @@ func (_m *Organization) WorkflowInstances( WithWorkflowInstanceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[90][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[146][alias] if nodes, err := _m.NamedWorkflowInstances(alias); err == nil || hasTotalCount { pager, err := newWorkflowInstancePager(opts, last != nil) if err != nil { @@ -10667,7 +11843,7 @@ func (_m *Organization) WorkflowEvents( WithWorkflowEventFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[91][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[147][alias] if nodes, err := _m.NamedWorkflowEvents(alias); err == nil || hasTotalCount { pager, err := newWorkflowEventPager(opts, last != nil) if err != nil { @@ -10688,7 +11864,7 @@ func (_m *Organization) WorkflowAssignments( WithWorkflowAssignmentFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[92][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[148][alias] if nodes, err := _m.NamedWorkflowAssignments(alias); err == nil || hasTotalCount { pager, err := newWorkflowAssignmentPager(opts, last != nil) if err != nil { @@ -10709,7 +11885,7 @@ func (_m *Organization) WorkflowAssignmentTargets( WithWorkflowAssignmentTargetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[93][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[149][alias] if nodes, err := _m.NamedWorkflowAssignmentTargets(alias); err == nil || hasTotalCount { pager, err := newWorkflowAssignmentTargetPager(opts, last != nil) if err != nil { @@ -10730,7 +11906,7 @@ func (_m *Organization) WorkflowObjectRefs( WithWorkflowObjectRefFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[94][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[150][alias] if nodes, err := _m.NamedWorkflowObjectRefs(alias); err == nil || hasTotalCount { pager, err := newWorkflowObjectRefPager(opts, last != nil) if err != nil { @@ -10751,7 +11927,7 @@ func (_m *Organization) DirectoryAccounts( WithDirectoryAccountFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[95][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[151][alias] if nodes, err := _m.NamedDirectoryAccounts(alias); err == nil || hasTotalCount { pager, err := newDirectoryAccountPager(opts, last != nil) if err != nil { @@ -10772,7 +11948,7 @@ func (_m *Organization) DirectoryGroups( WithDirectoryGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[96][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[152][alias] if nodes, err := _m.NamedDirectoryGroups(alias); err == nil || hasTotalCount { pager, err := newDirectoryGroupPager(opts, last != nil) if err != nil { @@ -10793,7 +11969,7 @@ func (_m *Organization) DirectoryMemberships( WithDirectoryMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[97][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[153][alias] if nodes, err := _m.NamedDirectoryMemberships(alias); err == nil || hasTotalCount { pager, err := newDirectoryMembershipPager(opts, last != nil) if err != nil { @@ -10814,7 +11990,7 @@ func (_m *Organization) DirectorySyncRuns( WithDirectorySyncRunFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[98][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[154][alias] if nodes, err := _m.NamedDirectorySyncRuns(alias); err == nil || hasTotalCount { pager, err := newDirectorySyncRunPager(opts, last != nil) if err != nil { @@ -10835,7 +12011,7 @@ func (_m *Organization) Discussions( WithDiscussionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[99][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[155][alias] if nodes, err := _m.NamedDiscussions(alias); err == nil || hasTotalCount { pager, err := newDiscussionPager(opts, last != nil) if err != nil { @@ -10856,7 +12032,7 @@ func (_m *Organization) VendorScoringConfigs( WithVendorScoringConfigFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[100][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[156][alias] if nodes, err := _m.NamedVendorScoringConfigs(alias); err == nil || hasTotalCount { pager, err := newVendorScoringConfigPager(opts, last != nil) if err != nil { @@ -10877,7 +12053,7 @@ func (_m *Organization) VendorRiskScores( WithVendorRiskScoreFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[101][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[157][alias] if nodes, err := _m.NamedVendorRiskScores(alias); err == nil || hasTotalCount { pager, err := newVendorRiskScorePager(opts, last != nil) if err != nil { @@ -10898,7 +12074,7 @@ func (_m *Organization) Members( WithOrgMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[102][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[158][alias] if nodes, err := _m.NamedMembers(alias); err == nil || hasTotalCount { pager, err := newOrgMembershipPager(opts, last != nil) if err != nil { diff --git a/internal/ent/generated/gql_mutation_input.go b/internal/ent/generated/gql_mutation_input.go index 5cf8191091..29cdb35f56 100644 --- a/internal/ent/generated/gql_mutation_input.go +++ b/internal/ent/generated/gql_mutation_input.go @@ -979,8 +979,6 @@ type UpdateAssessmentInput struct { Uischema map[string]interface{} ClearResponseDueDuration bool ResponseDueDuration *int64 - ClearOwner bool - OwnerID *string ClearBlockedGroups bool AddBlockedGroupIDs []string RemoveBlockedGroupIDs []string @@ -1050,12 +1048,6 @@ func (i *UpdateAssessmentInput) Mutate(m *AssessmentMutation) { if v := i.ResponseDueDuration; v != nil { m.SetResponseDueDuration(*v) } - if i.ClearOwner { - m.ClearOwner() - } - if v := i.OwnerID; v != nil { - m.SetOwnerID(*v) - } if i.ClearBlockedGroups { m.ClearBlockedGroups() } @@ -15967,114 +15959,170 @@ func (c *OrgMembershipUpdateOne) SetInput(i UpdateOrgMembershipInput) *OrgMember // CreateOrganizationInput represents a mutation input for creating organizations. type CreateOrganizationInput struct { - Tags []string - Name string - DisplayName *string - Description *string - PersonalOrg *bool - AvatarRemoteURL *string - AvatarUpdatedAt *time.Time - DedicatedDb *bool - ControlCreatorIDs []string - ControlImplementationCreatorIDs []string - ControlObjectiveCreatorIDs []string - EvidenceCreatorIDs []string - AssetCreatorIDs []string - FindingCreatorIDs []string - VulnerabilityCreatorIDs []string - GroupCreatorIDs []string - InternalPolicyCreatorIDs []string - MappedControlCreatorIDs []string - NarrativeCreatorIDs []string - ProcedureCreatorIDs []string - ProgramCreatorIDs []string - RiskCreatorIDs []string - IdentityHolderCreatorIDs []string - ScheduledJobCreatorIDs []string - StandardCreatorIDs []string - TemplateCreatorIDs []string - SubprocessorCreatorIDs []string - TrustCenterDocCreatorIDs []string - TrustCenterSubprocessorCreatorIDs []string - ActionPlanCreatorIDs []string - ParentID *string - SettingID *string - PersonalAccessTokenIDs []string - APITokenIDs []string - EmailTemplateIDs []string - NotificationPreferenceIDs []string - NotificationTemplateIDs []string - FileIDs []string - EventIDs []string - SecretIDs []string - AvatarFileID *string - GroupIDs []string - TemplateIDs []string - IntegrationIDs []string - DocumentIDs []string - OrgSubscriptionIDs []string - InviteIDs []string - SubscriberIDs []string - EntityIDs []string - PlatformIDs []string - IdentityHolderIDs []string - CampaignIDs []string - CampaignTargetIDs []string - EntityTypeIDs []string - ContactIDs []string - NoteIDs []string - TaskIDs []string - ProgramIDs []string - SystemDetailIDs []string - ProcedureIDs []string - InternalPolicyIDs []string - RiskIDs []string - ControlObjectiveIDs []string - NarrativeIDs []string - ControlIDs []string - SubcontrolIDs []string - ControlImplementationIDs []string - MappedControlIDs []string - EvidenceIDs []string - StandardIDs []string - ActionPlanIDs []string - CustomDomainIDs []string - JobRunnerIDs []string - JobRunnerTokenIDs []string - JobRunnerRegistrationTokenIDs []string - DNSVerificationIDs []string - JobTemplateIDs []string - ScheduledJobIDs []string - JobResultIDs []string - ScheduledJobRunIDs []string - TrustCenterIDs []string - AssetIDs []string - ScanIDs []string - SLADefinitionIDs []string - SubprocessorIDs []string - ExportIDs []string - TrustCenterWatermarkConfigIDs []string - ImpersonationEventIDs []string - AssessmentIDs []string - AssessmentResponseIDs []string - CustomTypeEnumIDs []string - TagDefinitionIDs []string - RemediationIDs []string - FindingIDs []string - ReviewIDs []string - VulnerabilityIDs []string - WorkflowDefinitionIDs []string - WorkflowInstanceIDs []string - WorkflowEventIDs []string - WorkflowAssignmentIDs []string - WorkflowAssignmentTargetIDs []string - WorkflowObjectRefIDs []string - DirectoryAccountIDs []string - DirectoryGroupIDs []string - DirectorySyncRunIDs []string - DiscussionIDs []string - VendorScoringConfigIDs []string - VendorRiskScoreIDs []string + Tags []string + Name string + DisplayName *string + Description *string + PersonalOrg *bool + AvatarRemoteURL *string + AvatarUpdatedAt *time.Time + DedicatedDb *bool + ActionPlanCreatorIDs []string + APITokenCreatorIDs []string + AssessmentCreatorIDs []string + AssetCreatorIDs []string + CampaignCreatorIDs []string + CampaignTargetCreatorIDs []string + CheckResultCreatorIDs []string + ContactCreatorIDs []string + ControlCreatorIDs []string + ControlImplementationCreatorIDs []string + ControlObjectiveCreatorIDs []string + CustomTypeEnumCreatorIDs []string + DiscussionCreatorIDs []string + EmailTemplateCreatorIDs []string + EntityCreatorIDs []string + EntityTypeCreatorIDs []string + EvidenceCreatorIDs []string + ExportCreatorIDs []string + FileCreatorIDs []string + FindingCreatorIDs []string + GroupCreatorIDs []string + IdentityHolderCreatorIDs []string + IntegrationCreatorIDs []string + IntegrationWebhookCreatorIDs []string + InternalPolicyCreatorIDs []string + JobRunnerCreatorIDs []string + JobRunnerRegistrationTokenCreatorIDs []string + JobRunnerTokenCreatorIDs []string + JobTemplateCreatorIDs []string + MappedControlCreatorIDs []string + NarrativeCreatorIDs []string + NoteCreatorIDs []string + NotificationTemplateCreatorIDs []string + OrganizationCreatorIDs []string + PlatformCreatorIDs []string + ProcedureCreatorIDs []string + ProgramCreatorIDs []string + RemediationCreatorIDs []string + ReviewCreatorIDs []string + RiskCreatorIDs []string + ScanCreatorIDs []string + ScheduledJobCreatorIDs []string + ScheduledJobRunCreatorIDs []string + StandardCreatorIDs []string + SubcontrolCreatorIDs []string + SubprocessorCreatorIDs []string + SubscriberCreatorIDs []string + SystemDetailCreatorIDs []string + TagDefinitionCreatorIDs []string + TaskCreatorIDs []string + TemplateCreatorIDs []string + TrustCenterCreatorIDs []string + TrustCenterComplianceCreatorIDs []string + TrustCenterDocCreatorIDs []string + TrustCenterEntityCreatorIDs []string + TrustCenterFaqCreatorIDs []string + TrustCenterNdaRequestCreatorIDs []string + TrustCenterSubprocessorCreatorIDs []string + TrustCenterWatermarkConfigCreatorIDs []string + UserCreatorIDs []string + UserSettingCreatorIDs []string + VendorRiskScoreCreatorIDs []string + VulnerabilityCreatorIDs []string + WorkflowAssignmentCreatorIDs []string + WorkflowAssignmentTargetCreatorIDs []string + WorkflowDefinitionCreatorIDs []string + WorkflowEventCreatorIDs []string + WorkflowInstanceCreatorIDs []string + WorkflowObjectRefCreatorIDs []string + WorkflowProposalCreatorIDs []string + CampaignsManagerIDs []string + ComplianceManagerIDs []string + GroupManagerIDs []string + PoliciesManagerIDs []string + RegistryManagerIDs []string + RiskManagerIDs []string + TrustCenterManagerIDs []string + WorkflowsManagerIDs []string + ParentID *string + SettingID *string + PersonalAccessTokenIDs []string + APITokenIDs []string + EmailTemplateIDs []string + NotificationPreferenceIDs []string + NotificationTemplateIDs []string + FileIDs []string + EventIDs []string + SecretIDs []string + AvatarFileID *string + GroupIDs []string + TemplateIDs []string + IntegrationIDs []string + DocumentIDs []string + OrgSubscriptionIDs []string + InviteIDs []string + SubscriberIDs []string + EntityIDs []string + PlatformIDs []string + IdentityHolderIDs []string + CampaignIDs []string + CampaignTargetIDs []string + EntityTypeIDs []string + ContactIDs []string + NoteIDs []string + TaskIDs []string + ProgramIDs []string + SystemDetailIDs []string + ProcedureIDs []string + InternalPolicyIDs []string + RiskIDs []string + ControlObjectiveIDs []string + NarrativeIDs []string + ControlIDs []string + SubcontrolIDs []string + ControlImplementationIDs []string + MappedControlIDs []string + EvidenceIDs []string + StandardIDs []string + ActionPlanIDs []string + CustomDomainIDs []string + JobRunnerIDs []string + JobRunnerTokenIDs []string + JobRunnerRegistrationTokenIDs []string + DNSVerificationIDs []string + JobTemplateIDs []string + ScheduledJobIDs []string + JobResultIDs []string + ScheduledJobRunIDs []string + TrustCenterIDs []string + AssetIDs []string + ScanIDs []string + SLADefinitionIDs []string + SubprocessorIDs []string + ExportIDs []string + TrustCenterWatermarkConfigIDs []string + ImpersonationEventIDs []string + AssessmentIDs []string + AssessmentResponseIDs []string + CustomTypeEnumIDs []string + TagDefinitionIDs []string + RemediationIDs []string + FindingIDs []string + ReviewIDs []string + VulnerabilityIDs []string + WorkflowDefinitionIDs []string + WorkflowInstanceIDs []string + WorkflowEventIDs []string + WorkflowAssignmentIDs []string + WorkflowAssignmentTargetIDs []string + WorkflowObjectRefIDs []string + DirectoryAccountIDs []string + DirectoryGroupIDs []string + DirectorySyncRunIDs []string + DiscussionIDs []string + VendorScoringConfigIDs []string + VendorRiskScoreIDs []string } // Mutate applies the CreateOrganizationInput on the OrganizationMutation builder. @@ -16101,6 +16149,30 @@ func (i *CreateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.DedicatedDb; v != nil { m.SetDedicatedDb(*v) } + if v := i.ActionPlanCreatorIDs; len(v) > 0 { + m.AddActionPlanCreatorIDs(v...) + } + if v := i.APITokenCreatorIDs; len(v) > 0 { + m.AddAPITokenCreatorIDs(v...) + } + if v := i.AssessmentCreatorIDs; len(v) > 0 { + m.AddAssessmentCreatorIDs(v...) + } + if v := i.AssetCreatorIDs; len(v) > 0 { + m.AddAssetCreatorIDs(v...) + } + if v := i.CampaignCreatorIDs; len(v) > 0 { + m.AddCampaignCreatorIDs(v...) + } + if v := i.CampaignTargetCreatorIDs; len(v) > 0 { + m.AddCampaignTargetCreatorIDs(v...) + } + if v := i.CheckResultCreatorIDs; len(v) > 0 { + m.AddCheckResultCreatorIDs(v...) + } + if v := i.ContactCreatorIDs; len(v) > 0 { + m.AddContactCreatorIDs(v...) + } if v := i.ControlCreatorIDs; len(v) > 0 { m.AddControlCreatorIDs(v...) } @@ -16110,62 +16182,206 @@ func (i *CreateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.ControlObjectiveCreatorIDs; len(v) > 0 { m.AddControlObjectiveCreatorIDs(v...) } + if v := i.CustomTypeEnumCreatorIDs; len(v) > 0 { + m.AddCustomTypeEnumCreatorIDs(v...) + } + if v := i.DiscussionCreatorIDs; len(v) > 0 { + m.AddDiscussionCreatorIDs(v...) + } + if v := i.EmailTemplateCreatorIDs; len(v) > 0 { + m.AddEmailTemplateCreatorIDs(v...) + } + if v := i.EntityCreatorIDs; len(v) > 0 { + m.AddEntityCreatorIDs(v...) + } + if v := i.EntityTypeCreatorIDs; len(v) > 0 { + m.AddEntityTypeCreatorIDs(v...) + } if v := i.EvidenceCreatorIDs; len(v) > 0 { m.AddEvidenceCreatorIDs(v...) } - if v := i.AssetCreatorIDs; len(v) > 0 { - m.AddAssetCreatorIDs(v...) + if v := i.ExportCreatorIDs; len(v) > 0 { + m.AddExportCreatorIDs(v...) + } + if v := i.FileCreatorIDs; len(v) > 0 { + m.AddFileCreatorIDs(v...) } if v := i.FindingCreatorIDs; len(v) > 0 { m.AddFindingCreatorIDs(v...) } - if v := i.VulnerabilityCreatorIDs; len(v) > 0 { - m.AddVulnerabilityCreatorIDs(v...) - } if v := i.GroupCreatorIDs; len(v) > 0 { m.AddGroupCreatorIDs(v...) } + if v := i.IdentityHolderCreatorIDs; len(v) > 0 { + m.AddIdentityHolderCreatorIDs(v...) + } + if v := i.IntegrationCreatorIDs; len(v) > 0 { + m.AddIntegrationCreatorIDs(v...) + } + if v := i.IntegrationWebhookCreatorIDs; len(v) > 0 { + m.AddIntegrationWebhookCreatorIDs(v...) + } if v := i.InternalPolicyCreatorIDs; len(v) > 0 { m.AddInternalPolicyCreatorIDs(v...) } + if v := i.JobRunnerCreatorIDs; len(v) > 0 { + m.AddJobRunnerCreatorIDs(v...) + } + if v := i.JobRunnerRegistrationTokenCreatorIDs; len(v) > 0 { + m.AddJobRunnerRegistrationTokenCreatorIDs(v...) + } + if v := i.JobRunnerTokenCreatorIDs; len(v) > 0 { + m.AddJobRunnerTokenCreatorIDs(v...) + } + if v := i.JobTemplateCreatorIDs; len(v) > 0 { + m.AddJobTemplateCreatorIDs(v...) + } if v := i.MappedControlCreatorIDs; len(v) > 0 { m.AddMappedControlCreatorIDs(v...) } if v := i.NarrativeCreatorIDs; len(v) > 0 { m.AddNarrativeCreatorIDs(v...) } + if v := i.NoteCreatorIDs; len(v) > 0 { + m.AddNoteCreatorIDs(v...) + } + if v := i.NotificationTemplateCreatorIDs; len(v) > 0 { + m.AddNotificationTemplateCreatorIDs(v...) + } + if v := i.OrganizationCreatorIDs; len(v) > 0 { + m.AddOrganizationCreatorIDs(v...) + } + if v := i.PlatformCreatorIDs; len(v) > 0 { + m.AddPlatformCreatorIDs(v...) + } if v := i.ProcedureCreatorIDs; len(v) > 0 { m.AddProcedureCreatorIDs(v...) } if v := i.ProgramCreatorIDs; len(v) > 0 { m.AddProgramCreatorIDs(v...) } + if v := i.RemediationCreatorIDs; len(v) > 0 { + m.AddRemediationCreatorIDs(v...) + } + if v := i.ReviewCreatorIDs; len(v) > 0 { + m.AddReviewCreatorIDs(v...) + } if v := i.RiskCreatorIDs; len(v) > 0 { m.AddRiskCreatorIDs(v...) } - if v := i.IdentityHolderCreatorIDs; len(v) > 0 { - m.AddIdentityHolderCreatorIDs(v...) + if v := i.ScanCreatorIDs; len(v) > 0 { + m.AddScanCreatorIDs(v...) } if v := i.ScheduledJobCreatorIDs; len(v) > 0 { m.AddScheduledJobCreatorIDs(v...) } + if v := i.ScheduledJobRunCreatorIDs; len(v) > 0 { + m.AddScheduledJobRunCreatorIDs(v...) + } if v := i.StandardCreatorIDs; len(v) > 0 { m.AddStandardCreatorIDs(v...) } - if v := i.TemplateCreatorIDs; len(v) > 0 { - m.AddTemplateCreatorIDs(v...) + if v := i.SubcontrolCreatorIDs; len(v) > 0 { + m.AddSubcontrolCreatorIDs(v...) } if v := i.SubprocessorCreatorIDs; len(v) > 0 { m.AddSubprocessorCreatorIDs(v...) } + if v := i.SubscriberCreatorIDs; len(v) > 0 { + m.AddSubscriberCreatorIDs(v...) + } + if v := i.SystemDetailCreatorIDs; len(v) > 0 { + m.AddSystemDetailCreatorIDs(v...) + } + if v := i.TagDefinitionCreatorIDs; len(v) > 0 { + m.AddTagDefinitionCreatorIDs(v...) + } + if v := i.TaskCreatorIDs; len(v) > 0 { + m.AddTaskCreatorIDs(v...) + } + if v := i.TemplateCreatorIDs; len(v) > 0 { + m.AddTemplateCreatorIDs(v...) + } + if v := i.TrustCenterCreatorIDs; len(v) > 0 { + m.AddTrustCenterCreatorIDs(v...) + } + if v := i.TrustCenterComplianceCreatorIDs; len(v) > 0 { + m.AddTrustCenterComplianceCreatorIDs(v...) + } if v := i.TrustCenterDocCreatorIDs; len(v) > 0 { m.AddTrustCenterDocCreatorIDs(v...) } + if v := i.TrustCenterEntityCreatorIDs; len(v) > 0 { + m.AddTrustCenterEntityCreatorIDs(v...) + } + if v := i.TrustCenterFaqCreatorIDs; len(v) > 0 { + m.AddTrustCenterFaqCreatorIDs(v...) + } + if v := i.TrustCenterNdaRequestCreatorIDs; len(v) > 0 { + m.AddTrustCenterNdaRequestCreatorIDs(v...) + } if v := i.TrustCenterSubprocessorCreatorIDs; len(v) > 0 { m.AddTrustCenterSubprocessorCreatorIDs(v...) } - if v := i.ActionPlanCreatorIDs; len(v) > 0 { - m.AddActionPlanCreatorIDs(v...) + if v := i.TrustCenterWatermarkConfigCreatorIDs; len(v) > 0 { + m.AddTrustCenterWatermarkConfigCreatorIDs(v...) + } + if v := i.UserCreatorIDs; len(v) > 0 { + m.AddUserCreatorIDs(v...) + } + if v := i.UserSettingCreatorIDs; len(v) > 0 { + m.AddUserSettingCreatorIDs(v...) + } + if v := i.VendorRiskScoreCreatorIDs; len(v) > 0 { + m.AddVendorRiskScoreCreatorIDs(v...) + } + if v := i.VulnerabilityCreatorIDs; len(v) > 0 { + m.AddVulnerabilityCreatorIDs(v...) + } + if v := i.WorkflowAssignmentCreatorIDs; len(v) > 0 { + m.AddWorkflowAssignmentCreatorIDs(v...) + } + if v := i.WorkflowAssignmentTargetCreatorIDs; len(v) > 0 { + m.AddWorkflowAssignmentTargetCreatorIDs(v...) + } + if v := i.WorkflowDefinitionCreatorIDs; len(v) > 0 { + m.AddWorkflowDefinitionCreatorIDs(v...) + } + if v := i.WorkflowEventCreatorIDs; len(v) > 0 { + m.AddWorkflowEventCreatorIDs(v...) + } + if v := i.WorkflowInstanceCreatorIDs; len(v) > 0 { + m.AddWorkflowInstanceCreatorIDs(v...) + } + if v := i.WorkflowObjectRefCreatorIDs; len(v) > 0 { + m.AddWorkflowObjectRefCreatorIDs(v...) + } + if v := i.WorkflowProposalCreatorIDs; len(v) > 0 { + m.AddWorkflowProposalCreatorIDs(v...) + } + if v := i.CampaignsManagerIDs; len(v) > 0 { + m.AddCampaignsManagerIDs(v...) + } + if v := i.ComplianceManagerIDs; len(v) > 0 { + m.AddComplianceManagerIDs(v...) + } + if v := i.GroupManagerIDs; len(v) > 0 { + m.AddGroupManagerIDs(v...) + } + if v := i.PoliciesManagerIDs; len(v) > 0 { + m.AddPoliciesManagerIDs(v...) + } + if v := i.RegistryManagerIDs; len(v) > 0 { + m.AddRegistryManagerIDs(v...) + } + if v := i.RiskManagerIDs; len(v) > 0 { + m.AddRiskManagerIDs(v...) + } + if v := i.TrustCenterManagerIDs; len(v) > 0 { + m.AddTrustCenterManagerIDs(v...) + } + if v := i.WorkflowsManagerIDs; len(v) > 0 { + m.AddWorkflowsManagerIDs(v...) } if v := i.ParentID; v != nil { m.SetParentID(*v) @@ -16411,311 +16627,479 @@ func (c *OrganizationCreate) SetInput(i CreateOrganizationInput) *OrganizationCr // UpdateOrganizationInput represents a mutation input for updating organizations. type UpdateOrganizationInput struct { - ClearTags bool - Tags []string - AppendTags []string - DisplayName *string - ClearDescription bool - Description *string - ClearAvatarRemoteURL bool - AvatarRemoteURL *string - ClearAvatarUpdatedAt bool - AvatarUpdatedAt *time.Time - ClearControlCreators bool - AddControlCreatorIDs []string - RemoveControlCreatorIDs []string - ClearControlImplementationCreators bool - AddControlImplementationCreatorIDs []string - RemoveControlImplementationCreatorIDs []string - ClearControlObjectiveCreators bool - AddControlObjectiveCreatorIDs []string - RemoveControlObjectiveCreatorIDs []string - ClearEvidenceCreators bool - AddEvidenceCreatorIDs []string - RemoveEvidenceCreatorIDs []string - ClearAssetCreators bool - AddAssetCreatorIDs []string - RemoveAssetCreatorIDs []string - ClearFindingCreators bool - AddFindingCreatorIDs []string - RemoveFindingCreatorIDs []string - ClearVulnerabilityCreators bool - AddVulnerabilityCreatorIDs []string - RemoveVulnerabilityCreatorIDs []string - ClearGroupCreators bool - AddGroupCreatorIDs []string - RemoveGroupCreatorIDs []string - ClearInternalPolicyCreators bool - AddInternalPolicyCreatorIDs []string - RemoveInternalPolicyCreatorIDs []string - ClearMappedControlCreators bool - AddMappedControlCreatorIDs []string - RemoveMappedControlCreatorIDs []string - ClearNarrativeCreators bool - AddNarrativeCreatorIDs []string - RemoveNarrativeCreatorIDs []string - ClearProcedureCreators bool - AddProcedureCreatorIDs []string - RemoveProcedureCreatorIDs []string - ClearProgramCreators bool - AddProgramCreatorIDs []string - RemoveProgramCreatorIDs []string - ClearRiskCreators bool - AddRiskCreatorIDs []string - RemoveRiskCreatorIDs []string - ClearIdentityHolderCreators bool - AddIdentityHolderCreatorIDs []string - RemoveIdentityHolderCreatorIDs []string - ClearScheduledJobCreators bool - AddScheduledJobCreatorIDs []string - RemoveScheduledJobCreatorIDs []string - ClearStandardCreators bool - AddStandardCreatorIDs []string - RemoveStandardCreatorIDs []string - ClearTemplateCreators bool - AddTemplateCreatorIDs []string - RemoveTemplateCreatorIDs []string - ClearSubprocessorCreators bool - AddSubprocessorCreatorIDs []string - RemoveSubprocessorCreatorIDs []string - ClearTrustCenterDocCreators bool - AddTrustCenterDocCreatorIDs []string - RemoveTrustCenterDocCreatorIDs []string - ClearTrustCenterSubprocessorCreators bool - AddTrustCenterSubprocessorCreatorIDs []string - RemoveTrustCenterSubprocessorCreatorIDs []string - ClearActionPlanCreators bool - AddActionPlanCreatorIDs []string - RemoveActionPlanCreatorIDs []string - ClearSetting bool - SettingID *string - ClearPersonalAccessTokens bool - AddPersonalAccessTokenIDs []string - RemovePersonalAccessTokenIDs []string - ClearAPITokens bool - AddAPITokenIDs []string - RemoveAPITokenIDs []string - ClearEmailTemplates bool - AddEmailTemplateIDs []string - RemoveEmailTemplateIDs []string - ClearNotificationPreferences bool - AddNotificationPreferenceIDs []string - RemoveNotificationPreferenceIDs []string - ClearNotificationTemplates bool - AddNotificationTemplateIDs []string - RemoveNotificationTemplateIDs []string - ClearFiles bool - AddFileIDs []string - RemoveFileIDs []string - ClearEvents bool - AddEventIDs []string - RemoveEventIDs []string - ClearSecrets bool - AddSecretIDs []string - RemoveSecretIDs []string - ClearAvatarFile bool - AvatarFileID *string - ClearGroups bool - AddGroupIDs []string - RemoveGroupIDs []string - ClearTemplates bool - AddTemplateIDs []string - RemoveTemplateIDs []string - ClearIntegrations bool - AddIntegrationIDs []string - RemoveIntegrationIDs []string - ClearDocuments bool - AddDocumentIDs []string - RemoveDocumentIDs []string - ClearOrgSubscriptions bool - AddOrgSubscriptionIDs []string - RemoveOrgSubscriptionIDs []string - ClearInvites bool - AddInviteIDs []string - RemoveInviteIDs []string - ClearSubscribers bool - AddSubscriberIDs []string - RemoveSubscriberIDs []string - ClearEntities bool - AddEntityIDs []string - RemoveEntityIDs []string - ClearPlatforms bool - AddPlatformIDs []string - RemovePlatformIDs []string - ClearIdentityHolders bool - AddIdentityHolderIDs []string - RemoveIdentityHolderIDs []string - ClearCampaigns bool - AddCampaignIDs []string - RemoveCampaignIDs []string - ClearCampaignTargets bool - AddCampaignTargetIDs []string - RemoveCampaignTargetIDs []string - ClearEntityTypes bool - AddEntityTypeIDs []string - RemoveEntityTypeIDs []string - ClearContacts bool - AddContactIDs []string - RemoveContactIDs []string - ClearNotes bool - AddNoteIDs []string - RemoveNoteIDs []string - ClearTasks bool - AddTaskIDs []string - RemoveTaskIDs []string - ClearPrograms bool - AddProgramIDs []string - RemoveProgramIDs []string - ClearSystemDetails bool - AddSystemDetailIDs []string - RemoveSystemDetailIDs []string - ClearProcedures bool - AddProcedureIDs []string - RemoveProcedureIDs []string - ClearInternalPolicies bool - AddInternalPolicyIDs []string - RemoveInternalPolicyIDs []string - ClearRisks bool - AddRiskIDs []string - RemoveRiskIDs []string - ClearControlObjectives bool - AddControlObjectiveIDs []string - RemoveControlObjectiveIDs []string - ClearNarratives bool - AddNarrativeIDs []string - RemoveNarrativeIDs []string - ClearControls bool - AddControlIDs []string - RemoveControlIDs []string - ClearSubcontrols bool - AddSubcontrolIDs []string - RemoveSubcontrolIDs []string - ClearControlImplementations bool - AddControlImplementationIDs []string - RemoveControlImplementationIDs []string - ClearMappedControls bool - AddMappedControlIDs []string - RemoveMappedControlIDs []string - ClearEvidence bool - AddEvidenceIDs []string - RemoveEvidenceIDs []string - ClearStandards bool - AddStandardIDs []string - RemoveStandardIDs []string - ClearActionPlans bool - AddActionPlanIDs []string - RemoveActionPlanIDs []string - ClearCustomDomains bool - AddCustomDomainIDs []string - RemoveCustomDomainIDs []string - ClearJobRunners bool - AddJobRunnerIDs []string - RemoveJobRunnerIDs []string - ClearJobRunnerTokens bool - AddJobRunnerTokenIDs []string - RemoveJobRunnerTokenIDs []string - ClearJobRunnerRegistrationTokens bool - AddJobRunnerRegistrationTokenIDs []string - RemoveJobRunnerRegistrationTokenIDs []string - ClearDNSVerifications bool - AddDNSVerificationIDs []string - RemoveDNSVerificationIDs []string - ClearJobTemplates bool - AddJobTemplateIDs []string - RemoveJobTemplateIDs []string - ClearScheduledJobs bool - AddScheduledJobIDs []string - RemoveScheduledJobIDs []string - ClearJobResults bool - AddJobResultIDs []string - RemoveJobResultIDs []string - ClearScheduledJobRuns bool - AddScheduledJobRunIDs []string - RemoveScheduledJobRunIDs []string - ClearTrustCenters bool - AddTrustCenterIDs []string - RemoveTrustCenterIDs []string - ClearAssets bool - AddAssetIDs []string - RemoveAssetIDs []string - ClearScans bool - AddScanIDs []string - RemoveScanIDs []string - ClearSLADefinitions bool - AddSLADefinitionIDs []string - RemoveSLADefinitionIDs []string - ClearSubprocessors bool - AddSubprocessorIDs []string - RemoveSubprocessorIDs []string - ClearExports bool - AddExportIDs []string - RemoveExportIDs []string - ClearTrustCenterWatermarkConfigs bool - AddTrustCenterWatermarkConfigIDs []string - RemoveTrustCenterWatermarkConfigIDs []string - ClearImpersonationEvents bool - AddImpersonationEventIDs []string - RemoveImpersonationEventIDs []string - ClearAssessments bool - AddAssessmentIDs []string - RemoveAssessmentIDs []string - ClearAssessmentResponses bool - AddAssessmentResponseIDs []string - RemoveAssessmentResponseIDs []string - ClearCustomTypeEnums bool - AddCustomTypeEnumIDs []string - RemoveCustomTypeEnumIDs []string - ClearTagDefinitions bool - AddTagDefinitionIDs []string - RemoveTagDefinitionIDs []string - ClearRemediations bool - AddRemediationIDs []string - RemoveRemediationIDs []string - ClearFindings bool - AddFindingIDs []string - RemoveFindingIDs []string - ClearReviews bool - AddReviewIDs []string - RemoveReviewIDs []string - ClearVulnerabilities bool - AddVulnerabilityIDs []string - RemoveVulnerabilityIDs []string - ClearWorkflowDefinitions bool - AddWorkflowDefinitionIDs []string - RemoveWorkflowDefinitionIDs []string - ClearWorkflowInstances bool - AddWorkflowInstanceIDs []string - RemoveWorkflowInstanceIDs []string - ClearWorkflowEvents bool - AddWorkflowEventIDs []string - RemoveWorkflowEventIDs []string - ClearWorkflowAssignments bool - AddWorkflowAssignmentIDs []string - RemoveWorkflowAssignmentIDs []string - ClearWorkflowAssignmentTargets bool - AddWorkflowAssignmentTargetIDs []string - RemoveWorkflowAssignmentTargetIDs []string - ClearWorkflowObjectRefs bool - AddWorkflowObjectRefIDs []string - RemoveWorkflowObjectRefIDs []string - ClearDirectoryAccounts bool - AddDirectoryAccountIDs []string - RemoveDirectoryAccountIDs []string - ClearDirectoryGroups bool - AddDirectoryGroupIDs []string - RemoveDirectoryGroupIDs []string - ClearDirectorySyncRuns bool - AddDirectorySyncRunIDs []string - RemoveDirectorySyncRunIDs []string - ClearDiscussions bool - AddDiscussionIDs []string - RemoveDiscussionIDs []string - ClearVendorScoringConfigs bool - AddVendorScoringConfigIDs []string - RemoveVendorScoringConfigIDs []string - ClearVendorRiskScores bool - AddVendorRiskScoreIDs []string - RemoveVendorRiskScoreIDs []string + ClearTags bool + Tags []string + AppendTags []string + DisplayName *string + ClearDescription bool + Description *string + ClearAvatarRemoteURL bool + AvatarRemoteURL *string + ClearAvatarUpdatedAt bool + AvatarUpdatedAt *time.Time + ClearActionPlanCreators bool + AddActionPlanCreatorIDs []string + RemoveActionPlanCreatorIDs []string + ClearAPITokenCreators bool + AddAPITokenCreatorIDs []string + RemoveAPITokenCreatorIDs []string + ClearAssessmentCreators bool + AddAssessmentCreatorIDs []string + RemoveAssessmentCreatorIDs []string + ClearAssetCreators bool + AddAssetCreatorIDs []string + RemoveAssetCreatorIDs []string + ClearCampaignCreators bool + AddCampaignCreatorIDs []string + RemoveCampaignCreatorIDs []string + ClearCampaignTargetCreators bool + AddCampaignTargetCreatorIDs []string + RemoveCampaignTargetCreatorIDs []string + ClearCheckResultCreators bool + AddCheckResultCreatorIDs []string + RemoveCheckResultCreatorIDs []string + ClearContactCreators bool + AddContactCreatorIDs []string + RemoveContactCreatorIDs []string + ClearControlCreators bool + AddControlCreatorIDs []string + RemoveControlCreatorIDs []string + ClearControlImplementationCreators bool + AddControlImplementationCreatorIDs []string + RemoveControlImplementationCreatorIDs []string + ClearControlObjectiveCreators bool + AddControlObjectiveCreatorIDs []string + RemoveControlObjectiveCreatorIDs []string + ClearCustomTypeEnumCreators bool + AddCustomTypeEnumCreatorIDs []string + RemoveCustomTypeEnumCreatorIDs []string + ClearDiscussionCreators bool + AddDiscussionCreatorIDs []string + RemoveDiscussionCreatorIDs []string + ClearEmailTemplateCreators bool + AddEmailTemplateCreatorIDs []string + RemoveEmailTemplateCreatorIDs []string + ClearEntityCreators bool + AddEntityCreatorIDs []string + RemoveEntityCreatorIDs []string + ClearEntityTypeCreators bool + AddEntityTypeCreatorIDs []string + RemoveEntityTypeCreatorIDs []string + ClearEvidenceCreators bool + AddEvidenceCreatorIDs []string + RemoveEvidenceCreatorIDs []string + ClearExportCreators bool + AddExportCreatorIDs []string + RemoveExportCreatorIDs []string + ClearFileCreators bool + AddFileCreatorIDs []string + RemoveFileCreatorIDs []string + ClearFindingCreators bool + AddFindingCreatorIDs []string + RemoveFindingCreatorIDs []string + ClearGroupCreators bool + AddGroupCreatorIDs []string + RemoveGroupCreatorIDs []string + ClearIdentityHolderCreators bool + AddIdentityHolderCreatorIDs []string + RemoveIdentityHolderCreatorIDs []string + ClearIntegrationCreators bool + AddIntegrationCreatorIDs []string + RemoveIntegrationCreatorIDs []string + ClearIntegrationWebhookCreators bool + AddIntegrationWebhookCreatorIDs []string + RemoveIntegrationWebhookCreatorIDs []string + ClearInternalPolicyCreators bool + AddInternalPolicyCreatorIDs []string + RemoveInternalPolicyCreatorIDs []string + ClearJobRunnerCreators bool + AddJobRunnerCreatorIDs []string + RemoveJobRunnerCreatorIDs []string + ClearJobRunnerRegistrationTokenCreators bool + AddJobRunnerRegistrationTokenCreatorIDs []string + RemoveJobRunnerRegistrationTokenCreatorIDs []string + ClearJobRunnerTokenCreators bool + AddJobRunnerTokenCreatorIDs []string + RemoveJobRunnerTokenCreatorIDs []string + ClearJobTemplateCreators bool + AddJobTemplateCreatorIDs []string + RemoveJobTemplateCreatorIDs []string + ClearMappedControlCreators bool + AddMappedControlCreatorIDs []string + RemoveMappedControlCreatorIDs []string + ClearNarrativeCreators bool + AddNarrativeCreatorIDs []string + RemoveNarrativeCreatorIDs []string + ClearNoteCreators bool + AddNoteCreatorIDs []string + RemoveNoteCreatorIDs []string + ClearNotificationTemplateCreators bool + AddNotificationTemplateCreatorIDs []string + RemoveNotificationTemplateCreatorIDs []string + ClearOrganizationCreators bool + AddOrganizationCreatorIDs []string + RemoveOrganizationCreatorIDs []string + ClearPlatformCreators bool + AddPlatformCreatorIDs []string + RemovePlatformCreatorIDs []string + ClearProcedureCreators bool + AddProcedureCreatorIDs []string + RemoveProcedureCreatorIDs []string + ClearProgramCreators bool + AddProgramCreatorIDs []string + RemoveProgramCreatorIDs []string + ClearRemediationCreators bool + AddRemediationCreatorIDs []string + RemoveRemediationCreatorIDs []string + ClearReviewCreators bool + AddReviewCreatorIDs []string + RemoveReviewCreatorIDs []string + ClearRiskCreators bool + AddRiskCreatorIDs []string + RemoveRiskCreatorIDs []string + ClearScanCreators bool + AddScanCreatorIDs []string + RemoveScanCreatorIDs []string + ClearScheduledJobCreators bool + AddScheduledJobCreatorIDs []string + RemoveScheduledJobCreatorIDs []string + ClearScheduledJobRunCreators bool + AddScheduledJobRunCreatorIDs []string + RemoveScheduledJobRunCreatorIDs []string + ClearStandardCreators bool + AddStandardCreatorIDs []string + RemoveStandardCreatorIDs []string + ClearSubcontrolCreators bool + AddSubcontrolCreatorIDs []string + RemoveSubcontrolCreatorIDs []string + ClearSubprocessorCreators bool + AddSubprocessorCreatorIDs []string + RemoveSubprocessorCreatorIDs []string + ClearSubscriberCreators bool + AddSubscriberCreatorIDs []string + RemoveSubscriberCreatorIDs []string + ClearSystemDetailCreators bool + AddSystemDetailCreatorIDs []string + RemoveSystemDetailCreatorIDs []string + ClearTagDefinitionCreators bool + AddTagDefinitionCreatorIDs []string + RemoveTagDefinitionCreatorIDs []string + ClearTaskCreators bool + AddTaskCreatorIDs []string + RemoveTaskCreatorIDs []string + ClearTemplateCreators bool + AddTemplateCreatorIDs []string + RemoveTemplateCreatorIDs []string + ClearTrustCenterCreators bool + AddTrustCenterCreatorIDs []string + RemoveTrustCenterCreatorIDs []string + ClearTrustCenterComplianceCreators bool + AddTrustCenterComplianceCreatorIDs []string + RemoveTrustCenterComplianceCreatorIDs []string + ClearTrustCenterDocCreators bool + AddTrustCenterDocCreatorIDs []string + RemoveTrustCenterDocCreatorIDs []string + ClearTrustCenterEntityCreators bool + AddTrustCenterEntityCreatorIDs []string + RemoveTrustCenterEntityCreatorIDs []string + ClearTrustCenterFaqCreators bool + AddTrustCenterFaqCreatorIDs []string + RemoveTrustCenterFaqCreatorIDs []string + ClearTrustCenterNdaRequestCreators bool + AddTrustCenterNdaRequestCreatorIDs []string + RemoveTrustCenterNdaRequestCreatorIDs []string + ClearTrustCenterSubprocessorCreators bool + AddTrustCenterSubprocessorCreatorIDs []string + RemoveTrustCenterSubprocessorCreatorIDs []string + ClearTrustCenterWatermarkConfigCreators bool + AddTrustCenterWatermarkConfigCreatorIDs []string + RemoveTrustCenterWatermarkConfigCreatorIDs []string + ClearUserCreators bool + AddUserCreatorIDs []string + RemoveUserCreatorIDs []string + ClearUserSettingCreators bool + AddUserSettingCreatorIDs []string + RemoveUserSettingCreatorIDs []string + ClearVendorRiskScoreCreators bool + AddVendorRiskScoreCreatorIDs []string + RemoveVendorRiskScoreCreatorIDs []string + ClearVulnerabilityCreators bool + AddVulnerabilityCreatorIDs []string + RemoveVulnerabilityCreatorIDs []string + ClearWorkflowAssignmentCreators bool + AddWorkflowAssignmentCreatorIDs []string + RemoveWorkflowAssignmentCreatorIDs []string + ClearWorkflowAssignmentTargetCreators bool + AddWorkflowAssignmentTargetCreatorIDs []string + RemoveWorkflowAssignmentTargetCreatorIDs []string + ClearWorkflowDefinitionCreators bool + AddWorkflowDefinitionCreatorIDs []string + RemoveWorkflowDefinitionCreatorIDs []string + ClearWorkflowEventCreators bool + AddWorkflowEventCreatorIDs []string + RemoveWorkflowEventCreatorIDs []string + ClearWorkflowInstanceCreators bool + AddWorkflowInstanceCreatorIDs []string + RemoveWorkflowInstanceCreatorIDs []string + ClearWorkflowObjectRefCreators bool + AddWorkflowObjectRefCreatorIDs []string + RemoveWorkflowObjectRefCreatorIDs []string + ClearWorkflowProposalCreators bool + AddWorkflowProposalCreatorIDs []string + RemoveWorkflowProposalCreatorIDs []string + ClearCampaignsManager bool + AddCampaignsManagerIDs []string + RemoveCampaignsManagerIDs []string + ClearComplianceManager bool + AddComplianceManagerIDs []string + RemoveComplianceManagerIDs []string + ClearGroupManager bool + AddGroupManagerIDs []string + RemoveGroupManagerIDs []string + ClearPoliciesManager bool + AddPoliciesManagerIDs []string + RemovePoliciesManagerIDs []string + ClearRegistryManager bool + AddRegistryManagerIDs []string + RemoveRegistryManagerIDs []string + ClearRiskManager bool + AddRiskManagerIDs []string + RemoveRiskManagerIDs []string + ClearTrustCenterManager bool + AddTrustCenterManagerIDs []string + RemoveTrustCenterManagerIDs []string + ClearWorkflowsManager bool + AddWorkflowsManagerIDs []string + RemoveWorkflowsManagerIDs []string + ClearSetting bool + SettingID *string + ClearPersonalAccessTokens bool + AddPersonalAccessTokenIDs []string + RemovePersonalAccessTokenIDs []string + ClearAPITokens bool + AddAPITokenIDs []string + RemoveAPITokenIDs []string + ClearEmailTemplates bool + AddEmailTemplateIDs []string + RemoveEmailTemplateIDs []string + ClearNotificationPreferences bool + AddNotificationPreferenceIDs []string + RemoveNotificationPreferenceIDs []string + ClearNotificationTemplates bool + AddNotificationTemplateIDs []string + RemoveNotificationTemplateIDs []string + ClearFiles bool + AddFileIDs []string + RemoveFileIDs []string + ClearEvents bool + AddEventIDs []string + RemoveEventIDs []string + ClearSecrets bool + AddSecretIDs []string + RemoveSecretIDs []string + ClearAvatarFile bool + AvatarFileID *string + ClearGroups bool + AddGroupIDs []string + RemoveGroupIDs []string + ClearTemplates bool + AddTemplateIDs []string + RemoveTemplateIDs []string + ClearIntegrations bool + AddIntegrationIDs []string + RemoveIntegrationIDs []string + ClearDocuments bool + AddDocumentIDs []string + RemoveDocumentIDs []string + ClearOrgSubscriptions bool + AddOrgSubscriptionIDs []string + RemoveOrgSubscriptionIDs []string + ClearInvites bool + AddInviteIDs []string + RemoveInviteIDs []string + ClearSubscribers bool + AddSubscriberIDs []string + RemoveSubscriberIDs []string + ClearEntities bool + AddEntityIDs []string + RemoveEntityIDs []string + ClearPlatforms bool + AddPlatformIDs []string + RemovePlatformIDs []string + ClearIdentityHolders bool + AddIdentityHolderIDs []string + RemoveIdentityHolderIDs []string + ClearCampaigns bool + AddCampaignIDs []string + RemoveCampaignIDs []string + ClearCampaignTargets bool + AddCampaignTargetIDs []string + RemoveCampaignTargetIDs []string + ClearEntityTypes bool + AddEntityTypeIDs []string + RemoveEntityTypeIDs []string + ClearContacts bool + AddContactIDs []string + RemoveContactIDs []string + ClearNotes bool + AddNoteIDs []string + RemoveNoteIDs []string + ClearTasks bool + AddTaskIDs []string + RemoveTaskIDs []string + ClearPrograms bool + AddProgramIDs []string + RemoveProgramIDs []string + ClearSystemDetails bool + AddSystemDetailIDs []string + RemoveSystemDetailIDs []string + ClearProcedures bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearInternalPolicies bool + AddInternalPolicyIDs []string + RemoveInternalPolicyIDs []string + ClearRisks bool + AddRiskIDs []string + RemoveRiskIDs []string + ClearControlObjectives bool + AddControlObjectiveIDs []string + RemoveControlObjectiveIDs []string + ClearNarratives bool + AddNarrativeIDs []string + RemoveNarrativeIDs []string + ClearControls bool + AddControlIDs []string + RemoveControlIDs []string + ClearSubcontrols bool + AddSubcontrolIDs []string + RemoveSubcontrolIDs []string + ClearControlImplementations bool + AddControlImplementationIDs []string + RemoveControlImplementationIDs []string + ClearMappedControls bool + AddMappedControlIDs []string + RemoveMappedControlIDs []string + ClearEvidence bool + AddEvidenceIDs []string + RemoveEvidenceIDs []string + ClearStandards bool + AddStandardIDs []string + RemoveStandardIDs []string + ClearActionPlans bool + AddActionPlanIDs []string + RemoveActionPlanIDs []string + ClearCustomDomains bool + AddCustomDomainIDs []string + RemoveCustomDomainIDs []string + ClearJobRunners bool + AddJobRunnerIDs []string + RemoveJobRunnerIDs []string + ClearJobRunnerTokens bool + AddJobRunnerTokenIDs []string + RemoveJobRunnerTokenIDs []string + ClearJobRunnerRegistrationTokens bool + AddJobRunnerRegistrationTokenIDs []string + RemoveJobRunnerRegistrationTokenIDs []string + ClearDNSVerifications bool + AddDNSVerificationIDs []string + RemoveDNSVerificationIDs []string + ClearJobTemplates bool + AddJobTemplateIDs []string + RemoveJobTemplateIDs []string + ClearScheduledJobs bool + AddScheduledJobIDs []string + RemoveScheduledJobIDs []string + ClearJobResults bool + AddJobResultIDs []string + RemoveJobResultIDs []string + ClearScheduledJobRuns bool + AddScheduledJobRunIDs []string + RemoveScheduledJobRunIDs []string + ClearTrustCenters bool + AddTrustCenterIDs []string + RemoveTrustCenterIDs []string + ClearAssets bool + AddAssetIDs []string + RemoveAssetIDs []string + ClearScans bool + AddScanIDs []string + RemoveScanIDs []string + ClearSLADefinitions bool + AddSLADefinitionIDs []string + RemoveSLADefinitionIDs []string + ClearSubprocessors bool + AddSubprocessorIDs []string + RemoveSubprocessorIDs []string + ClearExports bool + AddExportIDs []string + RemoveExportIDs []string + ClearTrustCenterWatermarkConfigs bool + AddTrustCenterWatermarkConfigIDs []string + RemoveTrustCenterWatermarkConfigIDs []string + ClearImpersonationEvents bool + AddImpersonationEventIDs []string + RemoveImpersonationEventIDs []string + ClearAssessments bool + AddAssessmentIDs []string + RemoveAssessmentIDs []string + ClearAssessmentResponses bool + AddAssessmentResponseIDs []string + RemoveAssessmentResponseIDs []string + ClearCustomTypeEnums bool + AddCustomTypeEnumIDs []string + RemoveCustomTypeEnumIDs []string + ClearTagDefinitions bool + AddTagDefinitionIDs []string + RemoveTagDefinitionIDs []string + ClearRemediations bool + AddRemediationIDs []string + RemoveRemediationIDs []string + ClearFindings bool + AddFindingIDs []string + RemoveFindingIDs []string + ClearReviews bool + AddReviewIDs []string + RemoveReviewIDs []string + ClearVulnerabilities bool + AddVulnerabilityIDs []string + RemoveVulnerabilityIDs []string + ClearWorkflowDefinitions bool + AddWorkflowDefinitionIDs []string + RemoveWorkflowDefinitionIDs []string + ClearWorkflowInstances bool + AddWorkflowInstanceIDs []string + RemoveWorkflowInstanceIDs []string + ClearWorkflowEvents bool + AddWorkflowEventIDs []string + RemoveWorkflowEventIDs []string + ClearWorkflowAssignments bool + AddWorkflowAssignmentIDs []string + RemoveWorkflowAssignmentIDs []string + ClearWorkflowAssignmentTargets bool + AddWorkflowAssignmentTargetIDs []string + RemoveWorkflowAssignmentTargetIDs []string + ClearWorkflowObjectRefs bool + AddWorkflowObjectRefIDs []string + RemoveWorkflowObjectRefIDs []string + ClearDirectoryAccounts bool + AddDirectoryAccountIDs []string + RemoveDirectoryAccountIDs []string + ClearDirectoryGroups bool + AddDirectoryGroupIDs []string + RemoveDirectoryGroupIDs []string + ClearDirectorySyncRuns bool + AddDirectorySyncRunIDs []string + RemoveDirectorySyncRunIDs []string + ClearDiscussions bool + AddDiscussionIDs []string + RemoveDiscussionIDs []string + ClearVendorScoringConfigs bool + AddVendorScoringConfigIDs []string + RemoveVendorScoringConfigIDs []string + ClearVendorRiskScores bool + AddVendorRiskScoreIDs []string + RemoveVendorRiskScoreIDs []string } // Mutate applies the UpdateOrganizationInput on the OrganizationMutation builder. @@ -16750,6 +17134,78 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.AvatarUpdatedAt; v != nil { m.SetAvatarUpdatedAt(*v) } + if i.ClearActionPlanCreators { + m.ClearActionPlanCreators() + } + if v := i.AddActionPlanCreatorIDs; len(v) > 0 { + m.AddActionPlanCreatorIDs(v...) + } + if v := i.RemoveActionPlanCreatorIDs; len(v) > 0 { + m.RemoveActionPlanCreatorIDs(v...) + } + if i.ClearAPITokenCreators { + m.ClearAPITokenCreators() + } + if v := i.AddAPITokenCreatorIDs; len(v) > 0 { + m.AddAPITokenCreatorIDs(v...) + } + if v := i.RemoveAPITokenCreatorIDs; len(v) > 0 { + m.RemoveAPITokenCreatorIDs(v...) + } + if i.ClearAssessmentCreators { + m.ClearAssessmentCreators() + } + if v := i.AddAssessmentCreatorIDs; len(v) > 0 { + m.AddAssessmentCreatorIDs(v...) + } + if v := i.RemoveAssessmentCreatorIDs; len(v) > 0 { + m.RemoveAssessmentCreatorIDs(v...) + } + if i.ClearAssetCreators { + m.ClearAssetCreators() + } + if v := i.AddAssetCreatorIDs; len(v) > 0 { + m.AddAssetCreatorIDs(v...) + } + if v := i.RemoveAssetCreatorIDs; len(v) > 0 { + m.RemoveAssetCreatorIDs(v...) + } + if i.ClearCampaignCreators { + m.ClearCampaignCreators() + } + if v := i.AddCampaignCreatorIDs; len(v) > 0 { + m.AddCampaignCreatorIDs(v...) + } + if v := i.RemoveCampaignCreatorIDs; len(v) > 0 { + m.RemoveCampaignCreatorIDs(v...) + } + if i.ClearCampaignTargetCreators { + m.ClearCampaignTargetCreators() + } + if v := i.AddCampaignTargetCreatorIDs; len(v) > 0 { + m.AddCampaignTargetCreatorIDs(v...) + } + if v := i.RemoveCampaignTargetCreatorIDs; len(v) > 0 { + m.RemoveCampaignTargetCreatorIDs(v...) + } + if i.ClearCheckResultCreators { + m.ClearCheckResultCreators() + } + if v := i.AddCheckResultCreatorIDs; len(v) > 0 { + m.AddCheckResultCreatorIDs(v...) + } + if v := i.RemoveCheckResultCreatorIDs; len(v) > 0 { + m.RemoveCheckResultCreatorIDs(v...) + } + if i.ClearContactCreators { + m.ClearContactCreators() + } + if v := i.AddContactCreatorIDs; len(v) > 0 { + m.AddContactCreatorIDs(v...) + } + if v := i.RemoveContactCreatorIDs; len(v) > 0 { + m.RemoveContactCreatorIDs(v...) + } if i.ClearControlCreators { m.ClearControlCreators() } @@ -16777,6 +17233,51 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveControlObjectiveCreatorIDs; len(v) > 0 { m.RemoveControlObjectiveCreatorIDs(v...) } + if i.ClearCustomTypeEnumCreators { + m.ClearCustomTypeEnumCreators() + } + if v := i.AddCustomTypeEnumCreatorIDs; len(v) > 0 { + m.AddCustomTypeEnumCreatorIDs(v...) + } + if v := i.RemoveCustomTypeEnumCreatorIDs; len(v) > 0 { + m.RemoveCustomTypeEnumCreatorIDs(v...) + } + if i.ClearDiscussionCreators { + m.ClearDiscussionCreators() + } + if v := i.AddDiscussionCreatorIDs; len(v) > 0 { + m.AddDiscussionCreatorIDs(v...) + } + if v := i.RemoveDiscussionCreatorIDs; len(v) > 0 { + m.RemoveDiscussionCreatorIDs(v...) + } + if i.ClearEmailTemplateCreators { + m.ClearEmailTemplateCreators() + } + if v := i.AddEmailTemplateCreatorIDs; len(v) > 0 { + m.AddEmailTemplateCreatorIDs(v...) + } + if v := i.RemoveEmailTemplateCreatorIDs; len(v) > 0 { + m.RemoveEmailTemplateCreatorIDs(v...) + } + if i.ClearEntityCreators { + m.ClearEntityCreators() + } + if v := i.AddEntityCreatorIDs; len(v) > 0 { + m.AddEntityCreatorIDs(v...) + } + if v := i.RemoveEntityCreatorIDs; len(v) > 0 { + m.RemoveEntityCreatorIDs(v...) + } + if i.ClearEntityTypeCreators { + m.ClearEntityTypeCreators() + } + if v := i.AddEntityTypeCreatorIDs; len(v) > 0 { + m.AddEntityTypeCreatorIDs(v...) + } + if v := i.RemoveEntityTypeCreatorIDs; len(v) > 0 { + m.RemoveEntityTypeCreatorIDs(v...) + } if i.ClearEvidenceCreators { m.ClearEvidenceCreators() } @@ -16786,14 +17287,23 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveEvidenceCreatorIDs; len(v) > 0 { m.RemoveEvidenceCreatorIDs(v...) } - if i.ClearAssetCreators { - m.ClearAssetCreators() + if i.ClearExportCreators { + m.ClearExportCreators() } - if v := i.AddAssetCreatorIDs; len(v) > 0 { - m.AddAssetCreatorIDs(v...) + if v := i.AddExportCreatorIDs; len(v) > 0 { + m.AddExportCreatorIDs(v...) } - if v := i.RemoveAssetCreatorIDs; len(v) > 0 { - m.RemoveAssetCreatorIDs(v...) + if v := i.RemoveExportCreatorIDs; len(v) > 0 { + m.RemoveExportCreatorIDs(v...) + } + if i.ClearFileCreators { + m.ClearFileCreators() + } + if v := i.AddFileCreatorIDs; len(v) > 0 { + m.AddFileCreatorIDs(v...) + } + if v := i.RemoveFileCreatorIDs; len(v) > 0 { + m.RemoveFileCreatorIDs(v...) } if i.ClearFindingCreators { m.ClearFindingCreators() @@ -16804,15 +17314,6 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveFindingCreatorIDs; len(v) > 0 { m.RemoveFindingCreatorIDs(v...) } - if i.ClearVulnerabilityCreators { - m.ClearVulnerabilityCreators() - } - if v := i.AddVulnerabilityCreatorIDs; len(v) > 0 { - m.AddVulnerabilityCreatorIDs(v...) - } - if v := i.RemoveVulnerabilityCreatorIDs; len(v) > 0 { - m.RemoveVulnerabilityCreatorIDs(v...) - } if i.ClearGroupCreators { m.ClearGroupCreators() } @@ -16822,6 +17323,33 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveGroupCreatorIDs; len(v) > 0 { m.RemoveGroupCreatorIDs(v...) } + if i.ClearIdentityHolderCreators { + m.ClearIdentityHolderCreators() + } + if v := i.AddIdentityHolderCreatorIDs; len(v) > 0 { + m.AddIdentityHolderCreatorIDs(v...) + } + if v := i.RemoveIdentityHolderCreatorIDs; len(v) > 0 { + m.RemoveIdentityHolderCreatorIDs(v...) + } + if i.ClearIntegrationCreators { + m.ClearIntegrationCreators() + } + if v := i.AddIntegrationCreatorIDs; len(v) > 0 { + m.AddIntegrationCreatorIDs(v...) + } + if v := i.RemoveIntegrationCreatorIDs; len(v) > 0 { + m.RemoveIntegrationCreatorIDs(v...) + } + if i.ClearIntegrationWebhookCreators { + m.ClearIntegrationWebhookCreators() + } + if v := i.AddIntegrationWebhookCreatorIDs; len(v) > 0 { + m.AddIntegrationWebhookCreatorIDs(v...) + } + if v := i.RemoveIntegrationWebhookCreatorIDs; len(v) > 0 { + m.RemoveIntegrationWebhookCreatorIDs(v...) + } if i.ClearInternalPolicyCreators { m.ClearInternalPolicyCreators() } @@ -16831,6 +17359,42 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveInternalPolicyCreatorIDs; len(v) > 0 { m.RemoveInternalPolicyCreatorIDs(v...) } + if i.ClearJobRunnerCreators { + m.ClearJobRunnerCreators() + } + if v := i.AddJobRunnerCreatorIDs; len(v) > 0 { + m.AddJobRunnerCreatorIDs(v...) + } + if v := i.RemoveJobRunnerCreatorIDs; len(v) > 0 { + m.RemoveJobRunnerCreatorIDs(v...) + } + if i.ClearJobRunnerRegistrationTokenCreators { + m.ClearJobRunnerRegistrationTokenCreators() + } + if v := i.AddJobRunnerRegistrationTokenCreatorIDs; len(v) > 0 { + m.AddJobRunnerRegistrationTokenCreatorIDs(v...) + } + if v := i.RemoveJobRunnerRegistrationTokenCreatorIDs; len(v) > 0 { + m.RemoveJobRunnerRegistrationTokenCreatorIDs(v...) + } + if i.ClearJobRunnerTokenCreators { + m.ClearJobRunnerTokenCreators() + } + if v := i.AddJobRunnerTokenCreatorIDs; len(v) > 0 { + m.AddJobRunnerTokenCreatorIDs(v...) + } + if v := i.RemoveJobRunnerTokenCreatorIDs; len(v) > 0 { + m.RemoveJobRunnerTokenCreatorIDs(v...) + } + if i.ClearJobTemplateCreators { + m.ClearJobTemplateCreators() + } + if v := i.AddJobTemplateCreatorIDs; len(v) > 0 { + m.AddJobTemplateCreatorIDs(v...) + } + if v := i.RemoveJobTemplateCreatorIDs; len(v) > 0 { + m.RemoveJobTemplateCreatorIDs(v...) + } if i.ClearMappedControlCreators { m.ClearMappedControlCreators() } @@ -16849,6 +17413,42 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveNarrativeCreatorIDs; len(v) > 0 { m.RemoveNarrativeCreatorIDs(v...) } + if i.ClearNoteCreators { + m.ClearNoteCreators() + } + if v := i.AddNoteCreatorIDs; len(v) > 0 { + m.AddNoteCreatorIDs(v...) + } + if v := i.RemoveNoteCreatorIDs; len(v) > 0 { + m.RemoveNoteCreatorIDs(v...) + } + if i.ClearNotificationTemplateCreators { + m.ClearNotificationTemplateCreators() + } + if v := i.AddNotificationTemplateCreatorIDs; len(v) > 0 { + m.AddNotificationTemplateCreatorIDs(v...) + } + if v := i.RemoveNotificationTemplateCreatorIDs; len(v) > 0 { + m.RemoveNotificationTemplateCreatorIDs(v...) + } + if i.ClearOrganizationCreators { + m.ClearOrganizationCreators() + } + if v := i.AddOrganizationCreatorIDs; len(v) > 0 { + m.AddOrganizationCreatorIDs(v...) + } + if v := i.RemoveOrganizationCreatorIDs; len(v) > 0 { + m.RemoveOrganizationCreatorIDs(v...) + } + if i.ClearPlatformCreators { + m.ClearPlatformCreators() + } + if v := i.AddPlatformCreatorIDs; len(v) > 0 { + m.AddPlatformCreatorIDs(v...) + } + if v := i.RemovePlatformCreatorIDs; len(v) > 0 { + m.RemovePlatformCreatorIDs(v...) + } if i.ClearProcedureCreators { m.ClearProcedureCreators() } @@ -16867,6 +17467,24 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveProgramCreatorIDs; len(v) > 0 { m.RemoveProgramCreatorIDs(v...) } + if i.ClearRemediationCreators { + m.ClearRemediationCreators() + } + if v := i.AddRemediationCreatorIDs; len(v) > 0 { + m.AddRemediationCreatorIDs(v...) + } + if v := i.RemoveRemediationCreatorIDs; len(v) > 0 { + m.RemoveRemediationCreatorIDs(v...) + } + if i.ClearReviewCreators { + m.ClearReviewCreators() + } + if v := i.AddReviewCreatorIDs; len(v) > 0 { + m.AddReviewCreatorIDs(v...) + } + if v := i.RemoveReviewCreatorIDs; len(v) > 0 { + m.RemoveReviewCreatorIDs(v...) + } if i.ClearRiskCreators { m.ClearRiskCreators() } @@ -16876,14 +17494,14 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveRiskCreatorIDs; len(v) > 0 { m.RemoveRiskCreatorIDs(v...) } - if i.ClearIdentityHolderCreators { - m.ClearIdentityHolderCreators() + if i.ClearScanCreators { + m.ClearScanCreators() } - if v := i.AddIdentityHolderCreatorIDs; len(v) > 0 { - m.AddIdentityHolderCreatorIDs(v...) + if v := i.AddScanCreatorIDs; len(v) > 0 { + m.AddScanCreatorIDs(v...) } - if v := i.RemoveIdentityHolderCreatorIDs; len(v) > 0 { - m.RemoveIdentityHolderCreatorIDs(v...) + if v := i.RemoveScanCreatorIDs; len(v) > 0 { + m.RemoveScanCreatorIDs(v...) } if i.ClearScheduledJobCreators { m.ClearScheduledJobCreators() @@ -16894,6 +17512,15 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveScheduledJobCreatorIDs; len(v) > 0 { m.RemoveScheduledJobCreatorIDs(v...) } + if i.ClearScheduledJobRunCreators { + m.ClearScheduledJobRunCreators() + } + if v := i.AddScheduledJobRunCreatorIDs; len(v) > 0 { + m.AddScheduledJobRunCreatorIDs(v...) + } + if v := i.RemoveScheduledJobRunCreatorIDs; len(v) > 0 { + m.RemoveScheduledJobRunCreatorIDs(v...) + } if i.ClearStandardCreators { m.ClearStandardCreators() } @@ -16903,14 +17530,14 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveStandardCreatorIDs; len(v) > 0 { m.RemoveStandardCreatorIDs(v...) } - if i.ClearTemplateCreators { - m.ClearTemplateCreators() + if i.ClearSubcontrolCreators { + m.ClearSubcontrolCreators() } - if v := i.AddTemplateCreatorIDs; len(v) > 0 { - m.AddTemplateCreatorIDs(v...) + if v := i.AddSubcontrolCreatorIDs; len(v) > 0 { + m.AddSubcontrolCreatorIDs(v...) } - if v := i.RemoveTemplateCreatorIDs; len(v) > 0 { - m.RemoveTemplateCreatorIDs(v...) + if v := i.RemoveSubcontrolCreatorIDs; len(v) > 0 { + m.RemoveSubcontrolCreatorIDs(v...) } if i.ClearSubprocessorCreators { m.ClearSubprocessorCreators() @@ -16921,6 +17548,69 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveSubprocessorCreatorIDs; len(v) > 0 { m.RemoveSubprocessorCreatorIDs(v...) } + if i.ClearSubscriberCreators { + m.ClearSubscriberCreators() + } + if v := i.AddSubscriberCreatorIDs; len(v) > 0 { + m.AddSubscriberCreatorIDs(v...) + } + if v := i.RemoveSubscriberCreatorIDs; len(v) > 0 { + m.RemoveSubscriberCreatorIDs(v...) + } + if i.ClearSystemDetailCreators { + m.ClearSystemDetailCreators() + } + if v := i.AddSystemDetailCreatorIDs; len(v) > 0 { + m.AddSystemDetailCreatorIDs(v...) + } + if v := i.RemoveSystemDetailCreatorIDs; len(v) > 0 { + m.RemoveSystemDetailCreatorIDs(v...) + } + if i.ClearTagDefinitionCreators { + m.ClearTagDefinitionCreators() + } + if v := i.AddTagDefinitionCreatorIDs; len(v) > 0 { + m.AddTagDefinitionCreatorIDs(v...) + } + if v := i.RemoveTagDefinitionCreatorIDs; len(v) > 0 { + m.RemoveTagDefinitionCreatorIDs(v...) + } + if i.ClearTaskCreators { + m.ClearTaskCreators() + } + if v := i.AddTaskCreatorIDs; len(v) > 0 { + m.AddTaskCreatorIDs(v...) + } + if v := i.RemoveTaskCreatorIDs; len(v) > 0 { + m.RemoveTaskCreatorIDs(v...) + } + if i.ClearTemplateCreators { + m.ClearTemplateCreators() + } + if v := i.AddTemplateCreatorIDs; len(v) > 0 { + m.AddTemplateCreatorIDs(v...) + } + if v := i.RemoveTemplateCreatorIDs; len(v) > 0 { + m.RemoveTemplateCreatorIDs(v...) + } + if i.ClearTrustCenterCreators { + m.ClearTrustCenterCreators() + } + if v := i.AddTrustCenterCreatorIDs; len(v) > 0 { + m.AddTrustCenterCreatorIDs(v...) + } + if v := i.RemoveTrustCenterCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterCreatorIDs(v...) + } + if i.ClearTrustCenterComplianceCreators { + m.ClearTrustCenterComplianceCreators() + } + if v := i.AddTrustCenterComplianceCreatorIDs; len(v) > 0 { + m.AddTrustCenterComplianceCreatorIDs(v...) + } + if v := i.RemoveTrustCenterComplianceCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterComplianceCreatorIDs(v...) + } if i.ClearTrustCenterDocCreators { m.ClearTrustCenterDocCreators() } @@ -16930,6 +17620,33 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveTrustCenterDocCreatorIDs; len(v) > 0 { m.RemoveTrustCenterDocCreatorIDs(v...) } + if i.ClearTrustCenterEntityCreators { + m.ClearTrustCenterEntityCreators() + } + if v := i.AddTrustCenterEntityCreatorIDs; len(v) > 0 { + m.AddTrustCenterEntityCreatorIDs(v...) + } + if v := i.RemoveTrustCenterEntityCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterEntityCreatorIDs(v...) + } + if i.ClearTrustCenterFaqCreators { + m.ClearTrustCenterFaqCreators() + } + if v := i.AddTrustCenterFaqCreatorIDs; len(v) > 0 { + m.AddTrustCenterFaqCreatorIDs(v...) + } + if v := i.RemoveTrustCenterFaqCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterFaqCreatorIDs(v...) + } + if i.ClearTrustCenterNdaRequestCreators { + m.ClearTrustCenterNdaRequestCreators() + } + if v := i.AddTrustCenterNdaRequestCreatorIDs; len(v) > 0 { + m.AddTrustCenterNdaRequestCreatorIDs(v...) + } + if v := i.RemoveTrustCenterNdaRequestCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterNdaRequestCreatorIDs(v...) + } if i.ClearTrustCenterSubprocessorCreators { m.ClearTrustCenterSubprocessorCreators() } @@ -16939,14 +17656,185 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveTrustCenterSubprocessorCreatorIDs; len(v) > 0 { m.RemoveTrustCenterSubprocessorCreatorIDs(v...) } - if i.ClearActionPlanCreators { - m.ClearActionPlanCreators() + if i.ClearTrustCenterWatermarkConfigCreators { + m.ClearTrustCenterWatermarkConfigCreators() } - if v := i.AddActionPlanCreatorIDs; len(v) > 0 { - m.AddActionPlanCreatorIDs(v...) + if v := i.AddTrustCenterWatermarkConfigCreatorIDs; len(v) > 0 { + m.AddTrustCenterWatermarkConfigCreatorIDs(v...) } - if v := i.RemoveActionPlanCreatorIDs; len(v) > 0 { - m.RemoveActionPlanCreatorIDs(v...) + if v := i.RemoveTrustCenterWatermarkConfigCreatorIDs; len(v) > 0 { + m.RemoveTrustCenterWatermarkConfigCreatorIDs(v...) + } + if i.ClearUserCreators { + m.ClearUserCreators() + } + if v := i.AddUserCreatorIDs; len(v) > 0 { + m.AddUserCreatorIDs(v...) + } + if v := i.RemoveUserCreatorIDs; len(v) > 0 { + m.RemoveUserCreatorIDs(v...) + } + if i.ClearUserSettingCreators { + m.ClearUserSettingCreators() + } + if v := i.AddUserSettingCreatorIDs; len(v) > 0 { + m.AddUserSettingCreatorIDs(v...) + } + if v := i.RemoveUserSettingCreatorIDs; len(v) > 0 { + m.RemoveUserSettingCreatorIDs(v...) + } + if i.ClearVendorRiskScoreCreators { + m.ClearVendorRiskScoreCreators() + } + if v := i.AddVendorRiskScoreCreatorIDs; len(v) > 0 { + m.AddVendorRiskScoreCreatorIDs(v...) + } + if v := i.RemoveVendorRiskScoreCreatorIDs; len(v) > 0 { + m.RemoveVendorRiskScoreCreatorIDs(v...) + } + if i.ClearVulnerabilityCreators { + m.ClearVulnerabilityCreators() + } + if v := i.AddVulnerabilityCreatorIDs; len(v) > 0 { + m.AddVulnerabilityCreatorIDs(v...) + } + if v := i.RemoveVulnerabilityCreatorIDs; len(v) > 0 { + m.RemoveVulnerabilityCreatorIDs(v...) + } + if i.ClearWorkflowAssignmentCreators { + m.ClearWorkflowAssignmentCreators() + } + if v := i.AddWorkflowAssignmentCreatorIDs; len(v) > 0 { + m.AddWorkflowAssignmentCreatorIDs(v...) + } + if v := i.RemoveWorkflowAssignmentCreatorIDs; len(v) > 0 { + m.RemoveWorkflowAssignmentCreatorIDs(v...) + } + if i.ClearWorkflowAssignmentTargetCreators { + m.ClearWorkflowAssignmentTargetCreators() + } + if v := i.AddWorkflowAssignmentTargetCreatorIDs; len(v) > 0 { + m.AddWorkflowAssignmentTargetCreatorIDs(v...) + } + if v := i.RemoveWorkflowAssignmentTargetCreatorIDs; len(v) > 0 { + m.RemoveWorkflowAssignmentTargetCreatorIDs(v...) + } + if i.ClearWorkflowDefinitionCreators { + m.ClearWorkflowDefinitionCreators() + } + if v := i.AddWorkflowDefinitionCreatorIDs; len(v) > 0 { + m.AddWorkflowDefinitionCreatorIDs(v...) + } + if v := i.RemoveWorkflowDefinitionCreatorIDs; len(v) > 0 { + m.RemoveWorkflowDefinitionCreatorIDs(v...) + } + if i.ClearWorkflowEventCreators { + m.ClearWorkflowEventCreators() + } + if v := i.AddWorkflowEventCreatorIDs; len(v) > 0 { + m.AddWorkflowEventCreatorIDs(v...) + } + if v := i.RemoveWorkflowEventCreatorIDs; len(v) > 0 { + m.RemoveWorkflowEventCreatorIDs(v...) + } + if i.ClearWorkflowInstanceCreators { + m.ClearWorkflowInstanceCreators() + } + if v := i.AddWorkflowInstanceCreatorIDs; len(v) > 0 { + m.AddWorkflowInstanceCreatorIDs(v...) + } + if v := i.RemoveWorkflowInstanceCreatorIDs; len(v) > 0 { + m.RemoveWorkflowInstanceCreatorIDs(v...) + } + if i.ClearWorkflowObjectRefCreators { + m.ClearWorkflowObjectRefCreators() + } + if v := i.AddWorkflowObjectRefCreatorIDs; len(v) > 0 { + m.AddWorkflowObjectRefCreatorIDs(v...) + } + if v := i.RemoveWorkflowObjectRefCreatorIDs; len(v) > 0 { + m.RemoveWorkflowObjectRefCreatorIDs(v...) + } + if i.ClearWorkflowProposalCreators { + m.ClearWorkflowProposalCreators() + } + if v := i.AddWorkflowProposalCreatorIDs; len(v) > 0 { + m.AddWorkflowProposalCreatorIDs(v...) + } + if v := i.RemoveWorkflowProposalCreatorIDs; len(v) > 0 { + m.RemoveWorkflowProposalCreatorIDs(v...) + } + if i.ClearCampaignsManager { + m.ClearCampaignsManager() + } + if v := i.AddCampaignsManagerIDs; len(v) > 0 { + m.AddCampaignsManagerIDs(v...) + } + if v := i.RemoveCampaignsManagerIDs; len(v) > 0 { + m.RemoveCampaignsManagerIDs(v...) + } + if i.ClearComplianceManager { + m.ClearComplianceManager() + } + if v := i.AddComplianceManagerIDs; len(v) > 0 { + m.AddComplianceManagerIDs(v...) + } + if v := i.RemoveComplianceManagerIDs; len(v) > 0 { + m.RemoveComplianceManagerIDs(v...) + } + if i.ClearGroupManager { + m.ClearGroupManager() + } + if v := i.AddGroupManagerIDs; len(v) > 0 { + m.AddGroupManagerIDs(v...) + } + if v := i.RemoveGroupManagerIDs; len(v) > 0 { + m.RemoveGroupManagerIDs(v...) + } + if i.ClearPoliciesManager { + m.ClearPoliciesManager() + } + if v := i.AddPoliciesManagerIDs; len(v) > 0 { + m.AddPoliciesManagerIDs(v...) + } + if v := i.RemovePoliciesManagerIDs; len(v) > 0 { + m.RemovePoliciesManagerIDs(v...) + } + if i.ClearRegistryManager { + m.ClearRegistryManager() + } + if v := i.AddRegistryManagerIDs; len(v) > 0 { + m.AddRegistryManagerIDs(v...) + } + if v := i.RemoveRegistryManagerIDs; len(v) > 0 { + m.RemoveRegistryManagerIDs(v...) + } + if i.ClearRiskManager { + m.ClearRiskManager() + } + if v := i.AddRiskManagerIDs; len(v) > 0 { + m.AddRiskManagerIDs(v...) + } + if v := i.RemoveRiskManagerIDs; len(v) > 0 { + m.RemoveRiskManagerIDs(v...) + } + if i.ClearTrustCenterManager { + m.ClearTrustCenterManager() + } + if v := i.AddTrustCenterManagerIDs; len(v) > 0 { + m.AddTrustCenterManagerIDs(v...) + } + if v := i.RemoveTrustCenterManagerIDs; len(v) > 0 { + m.RemoveTrustCenterManagerIDs(v...) + } + if i.ClearWorkflowsManager { + m.ClearWorkflowsManager() + } + if v := i.AddWorkflowsManagerIDs; len(v) > 0 { + m.AddWorkflowsManagerIDs(v...) + } + if v := i.RemoveWorkflowsManagerIDs; len(v) > 0 { + m.RemoveWorkflowsManagerIDs(v...) } if i.ClearSetting { m.ClearSetting() diff --git a/internal/ent/generated/gql_where_input.go b/internal/ent/generated/gql_where_input.go index e1cd97ddca..c854ccf698 100644 --- a/internal/ent/generated/gql_where_input.go +++ b/internal/ent/generated/gql_where_input.go @@ -69286,10 +69286,6 @@ type OrganizationWhereInput struct { HasDiscussionCreators *bool `json:"hasDiscussionCreators,omitempty"` HasDiscussionCreatorsWith []*GroupWhereInput `json:"hasDiscussionCreatorsWith,omitempty"` - // "email_branding_creators" edge predicates. - HasEmailBrandingCreators *bool `json:"hasEmailBrandingCreators,omitempty"` - HasEmailBrandingCreatorsWith []*GroupWhereInput `json:"hasEmailBrandingCreatorsWith,omitempty"` - // "email_template_creators" edge predicates. HasEmailTemplateCreators *bool `json:"hasEmailTemplateCreators,omitempty"` HasEmailTemplateCreatorsWith []*GroupWhereInput `json:"hasEmailTemplateCreatorsWith,omitempty"` @@ -70597,25 +70593,6 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, organization.HasDiscussionCreatorsWith(with...)) } - if i.HasEmailBrandingCreators != nil { - p := organization.HasEmailBrandingCreators() - if !*i.HasEmailBrandingCreators { - p = organization.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasEmailBrandingCreatorsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasEmailBrandingCreatorsWith)) - with = append(with, group.DeletedAtIsNil()) - for _, w := range i.HasEmailBrandingCreatorsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEmailBrandingCreatorsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEmailBrandingCreatorsWith(with...)) - } if i.HasEmailTemplateCreators != nil { p := organization.HasEmailTemplateCreators() if !*i.HasEmailTemplateCreators { diff --git a/internal/ent/generated/group.go b/internal/ent/generated/group.go index ae89f77c64..cef4f4a327 100644 --- a/internal/ent/generated/group.go +++ b/internal/ent/generated/group.go @@ -69,82 +69,138 @@ type Group struct { ScimGroupMailing *string `json:"scim_group_mailing,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GroupQuery when eager-loading is set. - Edges GroupEdges `json:"edges"` - assessment_blocked_groups *string - assessment_editors *string - assessment_viewers *string - asset_blocked_groups *string - asset_editors *string - asset_viewers *string - check_result_blocked_groups *string - check_result_editors *string - check_result_viewers *string - email_template_blocked_groups *string - email_template_editors *string - email_template_viewers *string - finding_blocked_groups *string - finding_editors *string - finding_viewers *string - identity_holder_blocked_groups *string - identity_holder_editors *string - identity_holder_viewers *string - organization_control_creators *string - organization_control_implementation_creators *string - organization_control_objective_creators *string - organization_evidence_creators *string - organization_asset_creators *string - organization_finding_creators *string - organization_vulnerability_creators *string - organization_group_creators *string - organization_internal_policy_creators *string - organization_mapped_control_creators *string - organization_narrative_creators *string - organization_procedure_creators *string - organization_program_creators *string - organization_risk_creators *string - organization_identity_holder_creators *string - organization_scheduled_job_creators *string - organization_standard_creators *string - organization_template_creators *string - organization_subprocessor_creators *string - organization_trust_center_doc_creators *string - organization_trust_center_subprocessor_creators *string - organization_action_plan_creators *string - remediation_blocked_groups *string - remediation_editors *string - remediation_viewers *string - review_blocked_groups *string - review_editors *string - review_viewers *string - sla_definition_blocked_groups *string - sla_definition_editors *string - sla_definition_viewers *string - trust_center_blocked_groups *string - trust_center_editors *string - trust_center_compliance_blocked_groups *string - trust_center_compliance_editors *string - trust_center_doc_blocked_groups *string - trust_center_doc_editors *string - trust_center_entity_blocked_groups *string - trust_center_entity_editors *string - trust_center_faq_blocked_groups *string - trust_center_faq_editors *string - trust_center_nda_request_blocked_groups *string - trust_center_nda_request_editors *string - trust_center_setting_blocked_groups *string - trust_center_setting_editors *string - trust_center_subprocessor_blocked_groups *string - trust_center_subprocessor_editors *string - trust_center_watermark_config_blocked_groups *string - trust_center_watermark_config_editors *string - vulnerability_blocked_groups *string - vulnerability_editors *string - vulnerability_viewers *string - workflow_definition_blocked_groups *string - workflow_definition_editors *string - workflow_definition_viewers *string - workflow_definition_groups *string - selectValues sql.SelectValues + Edges GroupEdges `json:"edges"` + assessment_blocked_groups *string + assessment_editors *string + assessment_viewers *string + asset_blocked_groups *string + asset_editors *string + asset_viewers *string + check_result_blocked_groups *string + check_result_editors *string + check_result_viewers *string + email_template_blocked_groups *string + email_template_editors *string + email_template_viewers *string + finding_blocked_groups *string + finding_editors *string + finding_viewers *string + identity_holder_blocked_groups *string + identity_holder_editors *string + identity_holder_viewers *string + organization_action_plan_creators *string + organization_api_token_creators *string + organization_assessment_creators *string + organization_asset_creators *string + organization_campaign_creators *string + organization_campaign_target_creators *string + organization_check_result_creators *string + organization_contact_creators *string + organization_control_creators *string + organization_control_implementation_creators *string + organization_control_objective_creators *string + organization_custom_type_enum_creators *string + organization_discussion_creators *string + organization_email_template_creators *string + organization_entity_creators *string + organization_entity_type_creators *string + organization_evidence_creators *string + organization_export_creators *string + organization_file_creators *string + organization_finding_creators *string + organization_group_creators *string + organization_identity_holder_creators *string + organization_integration_creators *string + organization_integration_webhook_creators *string + organization_internal_policy_creators *string + organization_job_runner_creators *string + organization_job_runner_registration_token_creators *string + organization_job_runner_token_creators *string + organization_job_template_creators *string + organization_mapped_control_creators *string + organization_narrative_creators *string + organization_note_creators *string + organization_notification_template_creators *string + organization_organization_creators *string + organization_platform_creators *string + organization_procedure_creators *string + organization_program_creators *string + organization_remediation_creators *string + organization_review_creators *string + organization_risk_creators *string + organization_scan_creators *string + organization_scheduled_job_creators *string + organization_scheduled_job_run_creators *string + organization_standard_creators *string + organization_subcontrol_creators *string + organization_subprocessor_creators *string + organization_subscriber_creators *string + organization_system_detail_creators *string + organization_tag_definition_creators *string + organization_task_creators *string + organization_template_creators *string + organization_trust_center_creators *string + organization_trust_center_compliance_creators *string + organization_trust_center_doc_creators *string + organization_trust_center_entity_creators *string + organization_trust_center_faq_creators *string + organization_trust_center_nda_request_creators *string + organization_trust_center_subprocessor_creators *string + organization_trust_center_watermark_config_creators *string + organization_user_creators *string + organization_user_setting_creators *string + organization_vendor_risk_score_creators *string + organization_vulnerability_creators *string + organization_workflow_assignment_creators *string + organization_workflow_assignment_target_creators *string + organization_workflow_definition_creators *string + organization_workflow_event_creators *string + organization_workflow_instance_creators *string + organization_workflow_object_ref_creators *string + organization_workflow_proposal_creators *string + organization_campaigns_manager *string + organization_compliance_manager *string + organization_group_manager *string + organization_policies_manager *string + organization_registry_manager *string + organization_risk_manager *string + organization_trust_center_manager *string + organization_workflows_manager *string + remediation_blocked_groups *string + remediation_editors *string + remediation_viewers *string + review_blocked_groups *string + review_editors *string + review_viewers *string + sla_definition_blocked_groups *string + sla_definition_editors *string + sla_definition_viewers *string + trust_center_blocked_groups *string + trust_center_editors *string + trust_center_compliance_blocked_groups *string + trust_center_compliance_editors *string + trust_center_doc_blocked_groups *string + trust_center_doc_editors *string + trust_center_entity_blocked_groups *string + trust_center_entity_editors *string + trust_center_faq_blocked_groups *string + trust_center_faq_editors *string + trust_center_nda_request_blocked_groups *string + trust_center_nda_request_editors *string + trust_center_setting_blocked_groups *string + trust_center_setting_editors *string + trust_center_subprocessor_blocked_groups *string + trust_center_subprocessor_editors *string + trust_center_watermark_config_blocked_groups *string + trust_center_watermark_config_editors *string + vulnerability_blocked_groups *string + vulnerability_editors *string + vulnerability_viewers *string + workflow_definition_blocked_groups *string + workflow_definition_editors *string + workflow_definition_viewers *string + workflow_definition_groups *string + selectValues sql.SelectValues } // GroupEdges holds the relations/edges for other nodes in the graph. @@ -809,117 +865,229 @@ func (*Group) scanValues(columns []string) ([]any, error) { values[i] = new(sql.NullString) case group.ForeignKeys[17]: // identity_holder_viewers values[i] = new(sql.NullString) - case group.ForeignKeys[18]: // organization_control_creators + case group.ForeignKeys[18]: // organization_action_plan_creators values[i] = new(sql.NullString) - case group.ForeignKeys[19]: // organization_control_implementation_creators + case group.ForeignKeys[19]: // organization_api_token_creators values[i] = new(sql.NullString) - case group.ForeignKeys[20]: // organization_control_objective_creators + case group.ForeignKeys[20]: // organization_assessment_creators values[i] = new(sql.NullString) - case group.ForeignKeys[21]: // organization_evidence_creators + case group.ForeignKeys[21]: // organization_asset_creators values[i] = new(sql.NullString) - case group.ForeignKeys[22]: // organization_asset_creators + case group.ForeignKeys[22]: // organization_campaign_creators values[i] = new(sql.NullString) - case group.ForeignKeys[23]: // organization_finding_creators + case group.ForeignKeys[23]: // organization_campaign_target_creators values[i] = new(sql.NullString) - case group.ForeignKeys[24]: // organization_vulnerability_creators + case group.ForeignKeys[24]: // organization_check_result_creators values[i] = new(sql.NullString) - case group.ForeignKeys[25]: // organization_group_creators + case group.ForeignKeys[25]: // organization_contact_creators values[i] = new(sql.NullString) - case group.ForeignKeys[26]: // organization_internal_policy_creators + case group.ForeignKeys[26]: // organization_control_creators values[i] = new(sql.NullString) - case group.ForeignKeys[27]: // organization_mapped_control_creators + case group.ForeignKeys[27]: // organization_control_implementation_creators values[i] = new(sql.NullString) - case group.ForeignKeys[28]: // organization_narrative_creators + case group.ForeignKeys[28]: // organization_control_objective_creators values[i] = new(sql.NullString) - case group.ForeignKeys[29]: // organization_procedure_creators + case group.ForeignKeys[29]: // organization_custom_type_enum_creators values[i] = new(sql.NullString) - case group.ForeignKeys[30]: // organization_program_creators + case group.ForeignKeys[30]: // organization_discussion_creators values[i] = new(sql.NullString) - case group.ForeignKeys[31]: // organization_risk_creators + case group.ForeignKeys[31]: // organization_email_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[32]: // organization_identity_holder_creators + case group.ForeignKeys[32]: // organization_entity_creators values[i] = new(sql.NullString) - case group.ForeignKeys[33]: // organization_scheduled_job_creators + case group.ForeignKeys[33]: // organization_entity_type_creators values[i] = new(sql.NullString) - case group.ForeignKeys[34]: // organization_standard_creators + case group.ForeignKeys[34]: // organization_evidence_creators values[i] = new(sql.NullString) - case group.ForeignKeys[35]: // organization_template_creators + case group.ForeignKeys[35]: // organization_export_creators values[i] = new(sql.NullString) - case group.ForeignKeys[36]: // organization_subprocessor_creators + case group.ForeignKeys[36]: // organization_file_creators values[i] = new(sql.NullString) - case group.ForeignKeys[37]: // organization_trust_center_doc_creators + case group.ForeignKeys[37]: // organization_finding_creators values[i] = new(sql.NullString) - case group.ForeignKeys[38]: // organization_trust_center_subprocessor_creators + case group.ForeignKeys[38]: // organization_group_creators values[i] = new(sql.NullString) - case group.ForeignKeys[39]: // organization_action_plan_creators + case group.ForeignKeys[39]: // organization_identity_holder_creators values[i] = new(sql.NullString) - case group.ForeignKeys[40]: // remediation_blocked_groups + case group.ForeignKeys[40]: // organization_integration_creators values[i] = new(sql.NullString) - case group.ForeignKeys[41]: // remediation_editors + case group.ForeignKeys[41]: // organization_integration_webhook_creators values[i] = new(sql.NullString) - case group.ForeignKeys[42]: // remediation_viewers + case group.ForeignKeys[42]: // organization_internal_policy_creators values[i] = new(sql.NullString) - case group.ForeignKeys[43]: // review_blocked_groups + case group.ForeignKeys[43]: // organization_job_runner_creators values[i] = new(sql.NullString) - case group.ForeignKeys[44]: // review_editors + case group.ForeignKeys[44]: // organization_job_runner_registration_token_creators values[i] = new(sql.NullString) - case group.ForeignKeys[45]: // review_viewers + case group.ForeignKeys[45]: // organization_job_runner_token_creators values[i] = new(sql.NullString) - case group.ForeignKeys[46]: // sla_definition_blocked_groups + case group.ForeignKeys[46]: // organization_job_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[47]: // sla_definition_editors + case group.ForeignKeys[47]: // organization_mapped_control_creators values[i] = new(sql.NullString) - case group.ForeignKeys[48]: // sla_definition_viewers + case group.ForeignKeys[48]: // organization_narrative_creators values[i] = new(sql.NullString) - case group.ForeignKeys[49]: // trust_center_blocked_groups + case group.ForeignKeys[49]: // organization_note_creators values[i] = new(sql.NullString) - case group.ForeignKeys[50]: // trust_center_editors + case group.ForeignKeys[50]: // organization_notification_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[51]: // trust_center_compliance_blocked_groups + case group.ForeignKeys[51]: // organization_organization_creators values[i] = new(sql.NullString) - case group.ForeignKeys[52]: // trust_center_compliance_editors + case group.ForeignKeys[52]: // organization_platform_creators values[i] = new(sql.NullString) - case group.ForeignKeys[53]: // trust_center_doc_blocked_groups + case group.ForeignKeys[53]: // organization_procedure_creators values[i] = new(sql.NullString) - case group.ForeignKeys[54]: // trust_center_doc_editors + case group.ForeignKeys[54]: // organization_program_creators values[i] = new(sql.NullString) - case group.ForeignKeys[55]: // trust_center_entity_blocked_groups + case group.ForeignKeys[55]: // organization_remediation_creators values[i] = new(sql.NullString) - case group.ForeignKeys[56]: // trust_center_entity_editors + case group.ForeignKeys[56]: // organization_review_creators values[i] = new(sql.NullString) - case group.ForeignKeys[57]: // trust_center_faq_blocked_groups + case group.ForeignKeys[57]: // organization_risk_creators values[i] = new(sql.NullString) - case group.ForeignKeys[58]: // trust_center_faq_editors + case group.ForeignKeys[58]: // organization_scan_creators values[i] = new(sql.NullString) - case group.ForeignKeys[59]: // trust_center_nda_request_blocked_groups + case group.ForeignKeys[59]: // organization_scheduled_job_creators values[i] = new(sql.NullString) - case group.ForeignKeys[60]: // trust_center_nda_request_editors + case group.ForeignKeys[60]: // organization_scheduled_job_run_creators values[i] = new(sql.NullString) - case group.ForeignKeys[61]: // trust_center_setting_blocked_groups + case group.ForeignKeys[61]: // organization_standard_creators values[i] = new(sql.NullString) - case group.ForeignKeys[62]: // trust_center_setting_editors + case group.ForeignKeys[62]: // organization_subcontrol_creators values[i] = new(sql.NullString) - case group.ForeignKeys[63]: // trust_center_subprocessor_blocked_groups + case group.ForeignKeys[63]: // organization_subprocessor_creators values[i] = new(sql.NullString) - case group.ForeignKeys[64]: // trust_center_subprocessor_editors + case group.ForeignKeys[64]: // organization_subscriber_creators values[i] = new(sql.NullString) - case group.ForeignKeys[65]: // trust_center_watermark_config_blocked_groups + case group.ForeignKeys[65]: // organization_system_detail_creators values[i] = new(sql.NullString) - case group.ForeignKeys[66]: // trust_center_watermark_config_editors + case group.ForeignKeys[66]: // organization_tag_definition_creators values[i] = new(sql.NullString) - case group.ForeignKeys[67]: // vulnerability_blocked_groups + case group.ForeignKeys[67]: // organization_task_creators values[i] = new(sql.NullString) - case group.ForeignKeys[68]: // vulnerability_editors + case group.ForeignKeys[68]: // organization_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[69]: // vulnerability_viewers + case group.ForeignKeys[69]: // organization_trust_center_creators values[i] = new(sql.NullString) - case group.ForeignKeys[70]: // workflow_definition_blocked_groups + case group.ForeignKeys[70]: // organization_trust_center_compliance_creators values[i] = new(sql.NullString) - case group.ForeignKeys[71]: // workflow_definition_editors + case group.ForeignKeys[71]: // organization_trust_center_doc_creators values[i] = new(sql.NullString) - case group.ForeignKeys[72]: // workflow_definition_viewers + case group.ForeignKeys[72]: // organization_trust_center_entity_creators values[i] = new(sql.NullString) - case group.ForeignKeys[73]: // workflow_definition_groups + case group.ForeignKeys[73]: // organization_trust_center_faq_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[74]: // organization_trust_center_nda_request_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[75]: // organization_trust_center_subprocessor_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[76]: // organization_trust_center_watermark_config_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[77]: // organization_user_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[78]: // organization_user_setting_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[79]: // organization_vendor_risk_score_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[80]: // organization_vulnerability_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[81]: // organization_workflow_assignment_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[82]: // organization_workflow_assignment_target_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[83]: // organization_workflow_definition_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[84]: // organization_workflow_event_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[85]: // organization_workflow_instance_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[86]: // organization_workflow_object_ref_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[87]: // organization_workflow_proposal_creators + values[i] = new(sql.NullString) + case group.ForeignKeys[88]: // organization_campaigns_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[89]: // organization_compliance_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[90]: // organization_group_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[91]: // organization_policies_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[92]: // organization_registry_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[93]: // organization_risk_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[94]: // organization_trust_center_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[95]: // organization_workflows_manager + values[i] = new(sql.NullString) + case group.ForeignKeys[96]: // remediation_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[97]: // remediation_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[98]: // remediation_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[99]: // review_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[100]: // review_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[101]: // review_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[102]: // sla_definition_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[103]: // sla_definition_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[104]: // sla_definition_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[105]: // trust_center_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[106]: // trust_center_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[107]: // trust_center_compliance_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[108]: // trust_center_compliance_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[109]: // trust_center_doc_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[110]: // trust_center_doc_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[111]: // trust_center_entity_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[112]: // trust_center_entity_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[113]: // trust_center_faq_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[114]: // trust_center_faq_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[115]: // trust_center_nda_request_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[116]: // trust_center_nda_request_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[117]: // trust_center_setting_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[118]: // trust_center_setting_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[119]: // trust_center_subprocessor_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[120]: // trust_center_subprocessor_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[121]: // trust_center_watermark_config_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[122]: // trust_center_watermark_config_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[123]: // vulnerability_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[124]: // vulnerability_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[125]: // vulnerability_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[126]: // workflow_definition_blocked_groups + values[i] = new(sql.NullString) + case group.ForeignKeys[127]: // workflow_definition_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[128]: // workflow_definition_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[129]: // workflow_definition_groups values[i] = new(sql.NullString) default: values[i] = new(sql.UnknownType) @@ -1217,391 +1385,783 @@ func (_m *Group) assignValues(columns []string, values []any) error { *_m.identity_holder_viewers = value.String } case group.ForeignKeys[18]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_action_plan_creators", values[i]) + } else if value.Valid { + _m.organization_action_plan_creators = new(string) + *_m.organization_action_plan_creators = value.String + } + case group.ForeignKeys[19]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_api_token_creators", values[i]) + } else if value.Valid { + _m.organization_api_token_creators = new(string) + *_m.organization_api_token_creators = value.String + } + case group.ForeignKeys[20]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_assessment_creators", values[i]) + } else if value.Valid { + _m.organization_assessment_creators = new(string) + *_m.organization_assessment_creators = value.String + } + case group.ForeignKeys[21]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_asset_creators", values[i]) + } else if value.Valid { + _m.organization_asset_creators = new(string) + *_m.organization_asset_creators = value.String + } + case group.ForeignKeys[22]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_campaign_creators", values[i]) + } else if value.Valid { + _m.organization_campaign_creators = new(string) + *_m.organization_campaign_creators = value.String + } + case group.ForeignKeys[23]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_campaign_target_creators", values[i]) + } else if value.Valid { + _m.organization_campaign_target_creators = new(string) + *_m.organization_campaign_target_creators = value.String + } + case group.ForeignKeys[24]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_check_result_creators", values[i]) + } else if value.Valid { + _m.organization_check_result_creators = new(string) + *_m.organization_check_result_creators = value.String + } + case group.ForeignKeys[25]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_contact_creators", values[i]) + } else if value.Valid { + _m.organization_contact_creators = new(string) + *_m.organization_contact_creators = value.String + } + case group.ForeignKeys[26]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_control_creators", values[i]) } else if value.Valid { _m.organization_control_creators = new(string) *_m.organization_control_creators = value.String } - case group.ForeignKeys[19]: + case group.ForeignKeys[27]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_control_implementation_creators", values[i]) } else if value.Valid { _m.organization_control_implementation_creators = new(string) *_m.organization_control_implementation_creators = value.String } - case group.ForeignKeys[20]: + case group.ForeignKeys[28]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_control_objective_creators", values[i]) } else if value.Valid { _m.organization_control_objective_creators = new(string) *_m.organization_control_objective_creators = value.String } - case group.ForeignKeys[21]: + case group.ForeignKeys[29]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_custom_type_enum_creators", values[i]) + } else if value.Valid { + _m.organization_custom_type_enum_creators = new(string) + *_m.organization_custom_type_enum_creators = value.String + } + case group.ForeignKeys[30]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_discussion_creators", values[i]) + } else if value.Valid { + _m.organization_discussion_creators = new(string) + *_m.organization_discussion_creators = value.String + } + case group.ForeignKeys[31]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_email_template_creators", values[i]) + } else if value.Valid { + _m.organization_email_template_creators = new(string) + *_m.organization_email_template_creators = value.String + } + case group.ForeignKeys[32]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_entity_creators", values[i]) + } else if value.Valid { + _m.organization_entity_creators = new(string) + *_m.organization_entity_creators = value.String + } + case group.ForeignKeys[33]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_entity_type_creators", values[i]) + } else if value.Valid { + _m.organization_entity_type_creators = new(string) + *_m.organization_entity_type_creators = value.String + } + case group.ForeignKeys[34]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_evidence_creators", values[i]) } else if value.Valid { _m.organization_evidence_creators = new(string) *_m.organization_evidence_creators = value.String } - case group.ForeignKeys[22]: + case group.ForeignKeys[35]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_asset_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_export_creators", values[i]) } else if value.Valid { - _m.organization_asset_creators = new(string) - *_m.organization_asset_creators = value.String + _m.organization_export_creators = new(string) + *_m.organization_export_creators = value.String } - case group.ForeignKeys[23]: + case group.ForeignKeys[36]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_finding_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_file_creators", values[i]) } else if value.Valid { - _m.organization_finding_creators = new(string) - *_m.organization_finding_creators = value.String + _m.organization_file_creators = new(string) + *_m.organization_file_creators = value.String } - case group.ForeignKeys[24]: + case group.ForeignKeys[37]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_vulnerability_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_finding_creators", values[i]) } else if value.Valid { - _m.organization_vulnerability_creators = new(string) - *_m.organization_vulnerability_creators = value.String + _m.organization_finding_creators = new(string) + *_m.organization_finding_creators = value.String } - case group.ForeignKeys[25]: + case group.ForeignKeys[38]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_group_creators", values[i]) } else if value.Valid { _m.organization_group_creators = new(string) *_m.organization_group_creators = value.String } - case group.ForeignKeys[26]: + case group.ForeignKeys[39]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_identity_holder_creators", values[i]) + } else if value.Valid { + _m.organization_identity_holder_creators = new(string) + *_m.organization_identity_holder_creators = value.String + } + case group.ForeignKeys[40]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_integration_creators", values[i]) + } else if value.Valid { + _m.organization_integration_creators = new(string) + *_m.organization_integration_creators = value.String + } + case group.ForeignKeys[41]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_integration_webhook_creators", values[i]) + } else if value.Valid { + _m.organization_integration_webhook_creators = new(string) + *_m.organization_integration_webhook_creators = value.String + } + case group.ForeignKeys[42]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_internal_policy_creators", values[i]) } else if value.Valid { _m.organization_internal_policy_creators = new(string) *_m.organization_internal_policy_creators = value.String } - case group.ForeignKeys[27]: + case group.ForeignKeys[43]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_job_runner_creators", values[i]) + } else if value.Valid { + _m.organization_job_runner_creators = new(string) + *_m.organization_job_runner_creators = value.String + } + case group.ForeignKeys[44]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_job_runner_registration_token_creators", values[i]) + } else if value.Valid { + _m.organization_job_runner_registration_token_creators = new(string) + *_m.organization_job_runner_registration_token_creators = value.String + } + case group.ForeignKeys[45]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_job_runner_token_creators", values[i]) + } else if value.Valid { + _m.organization_job_runner_token_creators = new(string) + *_m.organization_job_runner_token_creators = value.String + } + case group.ForeignKeys[46]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_job_template_creators", values[i]) + } else if value.Valid { + _m.organization_job_template_creators = new(string) + *_m.organization_job_template_creators = value.String + } + case group.ForeignKeys[47]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_mapped_control_creators", values[i]) } else if value.Valid { _m.organization_mapped_control_creators = new(string) *_m.organization_mapped_control_creators = value.String } - case group.ForeignKeys[28]: + case group.ForeignKeys[48]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_narrative_creators", values[i]) } else if value.Valid { _m.organization_narrative_creators = new(string) *_m.organization_narrative_creators = value.String } - case group.ForeignKeys[29]: + case group.ForeignKeys[49]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_note_creators", values[i]) + } else if value.Valid { + _m.organization_note_creators = new(string) + *_m.organization_note_creators = value.String + } + case group.ForeignKeys[50]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_notification_template_creators", values[i]) + } else if value.Valid { + _m.organization_notification_template_creators = new(string) + *_m.organization_notification_template_creators = value.String + } + case group.ForeignKeys[51]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_organization_creators", values[i]) + } else if value.Valid { + _m.organization_organization_creators = new(string) + *_m.organization_organization_creators = value.String + } + case group.ForeignKeys[52]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_platform_creators", values[i]) + } else if value.Valid { + _m.organization_platform_creators = new(string) + *_m.organization_platform_creators = value.String + } + case group.ForeignKeys[53]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_procedure_creators", values[i]) } else if value.Valid { _m.organization_procedure_creators = new(string) *_m.organization_procedure_creators = value.String } - case group.ForeignKeys[30]: + case group.ForeignKeys[54]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_program_creators", values[i]) } else if value.Valid { _m.organization_program_creators = new(string) *_m.organization_program_creators = value.String } - case group.ForeignKeys[31]: + case group.ForeignKeys[55]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_remediation_creators", values[i]) + } else if value.Valid { + _m.organization_remediation_creators = new(string) + *_m.organization_remediation_creators = value.String + } + case group.ForeignKeys[56]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_review_creators", values[i]) + } else if value.Valid { + _m.organization_review_creators = new(string) + *_m.organization_review_creators = value.String + } + case group.ForeignKeys[57]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_risk_creators", values[i]) } else if value.Valid { _m.organization_risk_creators = new(string) *_m.organization_risk_creators = value.String } - case group.ForeignKeys[32]: + case group.ForeignKeys[58]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_identity_holder_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_scan_creators", values[i]) } else if value.Valid { - _m.organization_identity_holder_creators = new(string) - *_m.organization_identity_holder_creators = value.String + _m.organization_scan_creators = new(string) + *_m.organization_scan_creators = value.String } - case group.ForeignKeys[33]: + case group.ForeignKeys[59]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_scheduled_job_creators", values[i]) } else if value.Valid { _m.organization_scheduled_job_creators = new(string) *_m.organization_scheduled_job_creators = value.String } - case group.ForeignKeys[34]: + case group.ForeignKeys[60]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_scheduled_job_run_creators", values[i]) + } else if value.Valid { + _m.organization_scheduled_job_run_creators = new(string) + *_m.organization_scheduled_job_run_creators = value.String + } + case group.ForeignKeys[61]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_standard_creators", values[i]) } else if value.Valid { _m.organization_standard_creators = new(string) *_m.organization_standard_creators = value.String } - case group.ForeignKeys[35]: + case group.ForeignKeys[62]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_template_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_subcontrol_creators", values[i]) } else if value.Valid { - _m.organization_template_creators = new(string) - *_m.organization_template_creators = value.String + _m.organization_subcontrol_creators = new(string) + *_m.organization_subcontrol_creators = value.String } - case group.ForeignKeys[36]: + case group.ForeignKeys[63]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_subprocessor_creators", values[i]) } else if value.Valid { _m.organization_subprocessor_creators = new(string) *_m.organization_subprocessor_creators = value.String } - case group.ForeignKeys[37]: + case group.ForeignKeys[64]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_subscriber_creators", values[i]) + } else if value.Valid { + _m.organization_subscriber_creators = new(string) + *_m.organization_subscriber_creators = value.String + } + case group.ForeignKeys[65]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_system_detail_creators", values[i]) + } else if value.Valid { + _m.organization_system_detail_creators = new(string) + *_m.organization_system_detail_creators = value.String + } + case group.ForeignKeys[66]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_tag_definition_creators", values[i]) + } else if value.Valid { + _m.organization_tag_definition_creators = new(string) + *_m.organization_tag_definition_creators = value.String + } + case group.ForeignKeys[67]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_task_creators", values[i]) + } else if value.Valid { + _m.organization_task_creators = new(string) + *_m.organization_task_creators = value.String + } + case group.ForeignKeys[68]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_template_creators", values[i]) + } else if value.Valid { + _m.organization_template_creators = new(string) + *_m.organization_template_creators = value.String + } + case group.ForeignKeys[69]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_creators", values[i]) + } else if value.Valid { + _m.organization_trust_center_creators = new(string) + *_m.organization_trust_center_creators = value.String + } + case group.ForeignKeys[70]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_compliance_creators", values[i]) + } else if value.Valid { + _m.organization_trust_center_compliance_creators = new(string) + *_m.organization_trust_center_compliance_creators = value.String + } + case group.ForeignKeys[71]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_trust_center_doc_creators", values[i]) } else if value.Valid { _m.organization_trust_center_doc_creators = new(string) *_m.organization_trust_center_doc_creators = value.String } - case group.ForeignKeys[38]: + case group.ForeignKeys[72]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_entity_creators", values[i]) + } else if value.Valid { + _m.organization_trust_center_entity_creators = new(string) + *_m.organization_trust_center_entity_creators = value.String + } + case group.ForeignKeys[73]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_faq_creators", values[i]) + } else if value.Valid { + _m.organization_trust_center_faq_creators = new(string) + *_m.organization_trust_center_faq_creators = value.String + } + case group.ForeignKeys[74]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_nda_request_creators", values[i]) + } else if value.Valid { + _m.organization_trust_center_nda_request_creators = new(string) + *_m.organization_trust_center_nda_request_creators = value.String + } + case group.ForeignKeys[75]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_trust_center_subprocessor_creators", values[i]) } else if value.Valid { _m.organization_trust_center_subprocessor_creators = new(string) *_m.organization_trust_center_subprocessor_creators = value.String } - case group.ForeignKeys[39]: + case group.ForeignKeys[76]: if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field organization_action_plan_creators", values[i]) + return fmt.Errorf("unexpected type %T for field organization_trust_center_watermark_config_creators", values[i]) } else if value.Valid { - _m.organization_action_plan_creators = new(string) - *_m.organization_action_plan_creators = value.String + _m.organization_trust_center_watermark_config_creators = new(string) + *_m.organization_trust_center_watermark_config_creators = value.String } - case group.ForeignKeys[40]: + case group.ForeignKeys[77]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_user_creators", values[i]) + } else if value.Valid { + _m.organization_user_creators = new(string) + *_m.organization_user_creators = value.String + } + case group.ForeignKeys[78]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_user_setting_creators", values[i]) + } else if value.Valid { + _m.organization_user_setting_creators = new(string) + *_m.organization_user_setting_creators = value.String + } + case group.ForeignKeys[79]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_vendor_risk_score_creators", values[i]) + } else if value.Valid { + _m.organization_vendor_risk_score_creators = new(string) + *_m.organization_vendor_risk_score_creators = value.String + } + case group.ForeignKeys[80]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_vulnerability_creators", values[i]) + } else if value.Valid { + _m.organization_vulnerability_creators = new(string) + *_m.organization_vulnerability_creators = value.String + } + case group.ForeignKeys[81]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_assignment_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_assignment_creators = new(string) + *_m.organization_workflow_assignment_creators = value.String + } + case group.ForeignKeys[82]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_assignment_target_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_assignment_target_creators = new(string) + *_m.organization_workflow_assignment_target_creators = value.String + } + case group.ForeignKeys[83]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_definition_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_definition_creators = new(string) + *_m.organization_workflow_definition_creators = value.String + } + case group.ForeignKeys[84]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_event_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_event_creators = new(string) + *_m.organization_workflow_event_creators = value.String + } + case group.ForeignKeys[85]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_instance_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_instance_creators = new(string) + *_m.organization_workflow_instance_creators = value.String + } + case group.ForeignKeys[86]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_object_ref_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_object_ref_creators = new(string) + *_m.organization_workflow_object_ref_creators = value.String + } + case group.ForeignKeys[87]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflow_proposal_creators", values[i]) + } else if value.Valid { + _m.organization_workflow_proposal_creators = new(string) + *_m.organization_workflow_proposal_creators = value.String + } + case group.ForeignKeys[88]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_campaigns_manager", values[i]) + } else if value.Valid { + _m.organization_campaigns_manager = new(string) + *_m.organization_campaigns_manager = value.String + } + case group.ForeignKeys[89]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_compliance_manager", values[i]) + } else if value.Valid { + _m.organization_compliance_manager = new(string) + *_m.organization_compliance_manager = value.String + } + case group.ForeignKeys[90]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_group_manager", values[i]) + } else if value.Valid { + _m.organization_group_manager = new(string) + *_m.organization_group_manager = value.String + } + case group.ForeignKeys[91]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_policies_manager", values[i]) + } else if value.Valid { + _m.organization_policies_manager = new(string) + *_m.organization_policies_manager = value.String + } + case group.ForeignKeys[92]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_registry_manager", values[i]) + } else if value.Valid { + _m.organization_registry_manager = new(string) + *_m.organization_registry_manager = value.String + } + case group.ForeignKeys[93]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_risk_manager", values[i]) + } else if value.Valid { + _m.organization_risk_manager = new(string) + *_m.organization_risk_manager = value.String + } + case group.ForeignKeys[94]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_trust_center_manager", values[i]) + } else if value.Valid { + _m.organization_trust_center_manager = new(string) + *_m.organization_trust_center_manager = value.String + } + case group.ForeignKeys[95]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_workflows_manager", values[i]) + } else if value.Valid { + _m.organization_workflows_manager = new(string) + *_m.organization_workflows_manager = value.String + } + case group.ForeignKeys[96]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field remediation_blocked_groups", values[i]) } else if value.Valid { _m.remediation_blocked_groups = new(string) *_m.remediation_blocked_groups = value.String } - case group.ForeignKeys[41]: + case group.ForeignKeys[97]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field remediation_editors", values[i]) } else if value.Valid { _m.remediation_editors = new(string) *_m.remediation_editors = value.String } - case group.ForeignKeys[42]: + case group.ForeignKeys[98]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field remediation_viewers", values[i]) } else if value.Valid { _m.remediation_viewers = new(string) *_m.remediation_viewers = value.String } - case group.ForeignKeys[43]: + case group.ForeignKeys[99]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field review_blocked_groups", values[i]) } else if value.Valid { _m.review_blocked_groups = new(string) *_m.review_blocked_groups = value.String } - case group.ForeignKeys[44]: + case group.ForeignKeys[100]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field review_editors", values[i]) } else if value.Valid { _m.review_editors = new(string) *_m.review_editors = value.String } - case group.ForeignKeys[45]: + case group.ForeignKeys[101]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field review_viewers", values[i]) } else if value.Valid { _m.review_viewers = new(string) *_m.review_viewers = value.String } - case group.ForeignKeys[46]: + case group.ForeignKeys[102]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field sla_definition_blocked_groups", values[i]) } else if value.Valid { _m.sla_definition_blocked_groups = new(string) *_m.sla_definition_blocked_groups = value.String } - case group.ForeignKeys[47]: + case group.ForeignKeys[103]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field sla_definition_editors", values[i]) } else if value.Valid { _m.sla_definition_editors = new(string) *_m.sla_definition_editors = value.String } - case group.ForeignKeys[48]: + case group.ForeignKeys[104]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field sla_definition_viewers", values[i]) } else if value.Valid { _m.sla_definition_viewers = new(string) *_m.sla_definition_viewers = value.String } - case group.ForeignKeys[49]: + case group.ForeignKeys[105]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_blocked_groups = new(string) *_m.trust_center_blocked_groups = value.String } - case group.ForeignKeys[50]: + case group.ForeignKeys[106]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_editors", values[i]) } else if value.Valid { _m.trust_center_editors = new(string) *_m.trust_center_editors = value.String } - case group.ForeignKeys[51]: + case group.ForeignKeys[107]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_compliance_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_compliance_blocked_groups = new(string) *_m.trust_center_compliance_blocked_groups = value.String } - case group.ForeignKeys[52]: + case group.ForeignKeys[108]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_compliance_editors", values[i]) } else if value.Valid { _m.trust_center_compliance_editors = new(string) *_m.trust_center_compliance_editors = value.String } - case group.ForeignKeys[53]: + case group.ForeignKeys[109]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_doc_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_doc_blocked_groups = new(string) *_m.trust_center_doc_blocked_groups = value.String } - case group.ForeignKeys[54]: + case group.ForeignKeys[110]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_doc_editors", values[i]) } else if value.Valid { _m.trust_center_doc_editors = new(string) *_m.trust_center_doc_editors = value.String } - case group.ForeignKeys[55]: + case group.ForeignKeys[111]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_entity_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_entity_blocked_groups = new(string) *_m.trust_center_entity_blocked_groups = value.String } - case group.ForeignKeys[56]: + case group.ForeignKeys[112]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_entity_editors", values[i]) } else if value.Valid { _m.trust_center_entity_editors = new(string) *_m.trust_center_entity_editors = value.String } - case group.ForeignKeys[57]: + case group.ForeignKeys[113]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_faq_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_faq_blocked_groups = new(string) *_m.trust_center_faq_blocked_groups = value.String } - case group.ForeignKeys[58]: + case group.ForeignKeys[114]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_faq_editors", values[i]) } else if value.Valid { _m.trust_center_faq_editors = new(string) *_m.trust_center_faq_editors = value.String } - case group.ForeignKeys[59]: + case group.ForeignKeys[115]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_nda_request_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_nda_request_blocked_groups = new(string) *_m.trust_center_nda_request_blocked_groups = value.String } - case group.ForeignKeys[60]: + case group.ForeignKeys[116]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_nda_request_editors", values[i]) } else if value.Valid { _m.trust_center_nda_request_editors = new(string) *_m.trust_center_nda_request_editors = value.String } - case group.ForeignKeys[61]: + case group.ForeignKeys[117]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_setting_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_setting_blocked_groups = new(string) *_m.trust_center_setting_blocked_groups = value.String } - case group.ForeignKeys[62]: + case group.ForeignKeys[118]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_setting_editors", values[i]) } else if value.Valid { _m.trust_center_setting_editors = new(string) *_m.trust_center_setting_editors = value.String } - case group.ForeignKeys[63]: + case group.ForeignKeys[119]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_subprocessor_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_subprocessor_blocked_groups = new(string) *_m.trust_center_subprocessor_blocked_groups = value.String } - case group.ForeignKeys[64]: + case group.ForeignKeys[120]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_subprocessor_editors", values[i]) } else if value.Valid { _m.trust_center_subprocessor_editors = new(string) *_m.trust_center_subprocessor_editors = value.String } - case group.ForeignKeys[65]: + case group.ForeignKeys[121]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_watermark_config_blocked_groups", values[i]) } else if value.Valid { _m.trust_center_watermark_config_blocked_groups = new(string) *_m.trust_center_watermark_config_blocked_groups = value.String } - case group.ForeignKeys[66]: + case group.ForeignKeys[122]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field trust_center_watermark_config_editors", values[i]) } else if value.Valid { _m.trust_center_watermark_config_editors = new(string) *_m.trust_center_watermark_config_editors = value.String } - case group.ForeignKeys[67]: + case group.ForeignKeys[123]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field vulnerability_blocked_groups", values[i]) } else if value.Valid { _m.vulnerability_blocked_groups = new(string) *_m.vulnerability_blocked_groups = value.String } - case group.ForeignKeys[68]: + case group.ForeignKeys[124]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field vulnerability_editors", values[i]) } else if value.Valid { _m.vulnerability_editors = new(string) *_m.vulnerability_editors = value.String } - case group.ForeignKeys[69]: + case group.ForeignKeys[125]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field vulnerability_viewers", values[i]) } else if value.Valid { _m.vulnerability_viewers = new(string) *_m.vulnerability_viewers = value.String } - case group.ForeignKeys[70]: + case group.ForeignKeys[126]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field workflow_definition_blocked_groups", values[i]) } else if value.Valid { _m.workflow_definition_blocked_groups = new(string) *_m.workflow_definition_blocked_groups = value.String } - case group.ForeignKeys[71]: + case group.ForeignKeys[127]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field workflow_definition_editors", values[i]) } else if value.Valid { _m.workflow_definition_editors = new(string) *_m.workflow_definition_editors = value.String } - case group.ForeignKeys[72]: + case group.ForeignKeys[128]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field workflow_definition_viewers", values[i]) } else if value.Valid { _m.workflow_definition_viewers = new(string) *_m.workflow_definition_viewers = value.String } - case group.ForeignKeys[73]: + case group.ForeignKeys[129]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field workflow_definition_groups", values[i]) } else if value.Valid { diff --git a/internal/ent/generated/group/group.go b/internal/ent/generated/group/group.go index d70494dc0a..77c794354d 100644 --- a/internal/ent/generated/group/group.go +++ b/internal/ent/generated/group/group.go @@ -489,7 +489,6 @@ var ForeignKeys = []string{ "organization_control_objective_creators", "organization_custom_type_enum_creators", "organization_discussion_creators", - "organization_email_branding_creators", "organization_email_template_creators", "organization_entity_creators", "organization_entity_type_creators", diff --git a/internal/ent/generated/internalpolicy/internalpolicy.go b/internal/ent/generated/internalpolicy/internalpolicy.go index 582416536f..bd081f35cf 100644 --- a/internal/ent/generated/internalpolicy/internalpolicy.go +++ b/internal/ent/generated/internalpolicy/internalpolicy.go @@ -453,6 +453,8 @@ var ( DefaultImprovementSuggestions []string // DefaultDismissedImprovementSuggestions holds the default value on creation for the "dismissed_improvement_suggestions" field. DefaultDismissedImprovementSuggestions []string + // URLValidator is a validator for the "url" field. It is called by the builders before save. + URLValidator func(string) error // DefaultWorkflowEligibleMarker holds the default value on creation for the "workflow_eligible_marker" field. DefaultWorkflowEligibleMarker bool // DefaultID holds the default value on creation for the "id" field. diff --git a/internal/ent/generated/internalpolicy_create.go b/internal/ent/generated/internalpolicy_create.go index 4806fe5784..f20bbc0479 100644 --- a/internal/ent/generated/internalpolicy_create.go +++ b/internal/ent/generated/internalpolicy_create.go @@ -999,6 +999,11 @@ func (_c *InternalPolicyCreate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.review_frequency": %w`, err)} } } + if v, ok := _c.mutation.URL(); ok { + if err := internalpolicy.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.url": %w`, err)} + } + } return nil } diff --git a/internal/ent/generated/internalpolicy_update.go b/internal/ent/generated/internalpolicy_update.go index abfd600146..bf20a9167d 100644 --- a/internal/ent/generated/internalpolicy_update.go +++ b/internal/ent/generated/internalpolicy_update.go @@ -1542,6 +1542,11 @@ func (_u *InternalPolicyUpdate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := internalpolicy.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.url": %w`, err)} + } + } return nil } @@ -4390,6 +4395,11 @@ func (_u *InternalPolicyUpdateOne) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := internalpolicy.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "InternalPolicy.url": %w`, err)} + } + } return nil } diff --git a/internal/ent/generated/migrate/schema.go b/internal/ent/generated/migrate/schema.go index e0774d9a0c..e65c402fbe 100644 --- a/internal/ent/generated/migrate/schema.go +++ b/internal/ent/generated/migrate/schema.go @@ -2961,28 +2961,84 @@ var ( {Name: "identity_holder_blocked_groups", Type: field.TypeString, Nullable: true}, {Name: "identity_holder_editors", Type: field.TypeString, Nullable: true}, {Name: "identity_holder_viewers", Type: field.TypeString, Nullable: true}, + {Name: "organization_action_plan_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_api_token_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_assessment_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_asset_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_campaign_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_campaign_target_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_check_result_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_contact_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_control_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_control_implementation_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_control_objective_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_custom_type_enum_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_discussion_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_email_template_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_entity_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_entity_type_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_evidence_creators", Type: field.TypeString, Nullable: true}, - {Name: "organization_asset_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_export_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_file_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_finding_creators", Type: field.TypeString, Nullable: true}, - {Name: "organization_vulnerability_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_group_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_identity_holder_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_integration_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_integration_webhook_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_internal_policy_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_job_runner_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_job_runner_registration_token_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_job_runner_token_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_job_template_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_mapped_control_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_narrative_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_note_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_notification_template_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_organization_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_platform_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_procedure_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_program_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_remediation_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_review_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_risk_creators", Type: field.TypeString, Nullable: true}, - {Name: "organization_identity_holder_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_scan_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_scheduled_job_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_scheduled_job_run_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_standard_creators", Type: field.TypeString, Nullable: true}, - {Name: "organization_template_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_subcontrol_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_subprocessor_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_subscriber_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_system_detail_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_tag_definition_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_task_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_template_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_compliance_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_trust_center_doc_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_entity_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_faq_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_nda_request_creators", Type: field.TypeString, Nullable: true}, {Name: "organization_trust_center_subprocessor_creators", Type: field.TypeString, Nullable: true}, - {Name: "organization_action_plan_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_watermark_config_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_user_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_user_setting_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_vendor_risk_score_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_vulnerability_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_assignment_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_assignment_target_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_definition_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_event_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_instance_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_object_ref_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflow_proposal_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_campaigns_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_compliance_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_group_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_policies_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_registry_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_risk_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_trust_center_manager", Type: field.TypeString, Nullable: true}, + {Name: "organization_workflows_manager", Type: field.TypeString, Nullable: true}, {Name: "owner_id", Type: field.TypeString, Nullable: true}, {Name: "remediation_blocked_groups", Type: field.TypeString, Nullable: true}, {Name: "remediation_editors", Type: field.TypeString, Nullable: true}, @@ -3140,344 +3196,680 @@ var ( OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_creators", + Symbol: "groups_organizations_action_plan_creators", Columns: []*schema.Column{GroupsColumns[41]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_implementation_creators", + Symbol: "groups_organizations_api_token_creators", Columns: []*schema.Column{GroupsColumns[42]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_objective_creators", + Symbol: "groups_organizations_assessment_creators", Columns: []*schema.Column{GroupsColumns[43]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_evidence_creators", + Symbol: "groups_organizations_asset_creators", Columns: []*schema.Column{GroupsColumns[44]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_asset_creators", + Symbol: "groups_organizations_campaign_creators", Columns: []*schema.Column{GroupsColumns[45]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_finding_creators", + Symbol: "groups_organizations_campaign_target_creators", Columns: []*schema.Column{GroupsColumns[46]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_vulnerability_creators", + Symbol: "groups_organizations_check_result_creators", Columns: []*schema.Column{GroupsColumns[47]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_group_creators", + Symbol: "groups_organizations_contact_creators", Columns: []*schema.Column{GroupsColumns[48]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_internal_policy_creators", + Symbol: "groups_organizations_control_creators", Columns: []*schema.Column{GroupsColumns[49]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_mapped_control_creators", + Symbol: "groups_organizations_control_implementation_creators", Columns: []*schema.Column{GroupsColumns[50]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_narrative_creators", + Symbol: "groups_organizations_control_objective_creators", Columns: []*schema.Column{GroupsColumns[51]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_procedure_creators", + Symbol: "groups_organizations_custom_type_enum_creators", Columns: []*schema.Column{GroupsColumns[52]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_program_creators", + Symbol: "groups_organizations_discussion_creators", Columns: []*schema.Column{GroupsColumns[53]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_risk_creators", + Symbol: "groups_organizations_email_template_creators", Columns: []*schema.Column{GroupsColumns[54]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_identity_holder_creators", + Symbol: "groups_organizations_entity_creators", Columns: []*schema.Column{GroupsColumns[55]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_scheduled_job_creators", + Symbol: "groups_organizations_entity_type_creators", Columns: []*schema.Column{GroupsColumns[56]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_standard_creators", + Symbol: "groups_organizations_evidence_creators", Columns: []*schema.Column{GroupsColumns[57]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_template_creators", + Symbol: "groups_organizations_export_creators", Columns: []*schema.Column{GroupsColumns[58]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_subprocessor_creators", + Symbol: "groups_organizations_file_creators", Columns: []*schema.Column{GroupsColumns[59]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_doc_creators", + Symbol: "groups_organizations_finding_creators", Columns: []*schema.Column{GroupsColumns[60]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_subprocessor_creators", + Symbol: "groups_organizations_group_creators", Columns: []*schema.Column{GroupsColumns[61]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_action_plan_creators", + Symbol: "groups_organizations_identity_holder_creators", Columns: []*schema.Column{GroupsColumns[62]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_groups", + Symbol: "groups_organizations_integration_creators", Columns: []*schema.Column{GroupsColumns[63]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_remediations_blocked_groups", + Symbol: "groups_organizations_integration_webhook_creators", Columns: []*schema.Column{GroupsColumns[64]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_internal_policy_creators", + Columns: []*schema.Column{GroupsColumns[65]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_job_runner_creators", + Columns: []*schema.Column{GroupsColumns[66]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_job_runner_registration_token_creators", + Columns: []*schema.Column{GroupsColumns[67]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_job_runner_token_creators", + Columns: []*schema.Column{GroupsColumns[68]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_job_template_creators", + Columns: []*schema.Column{GroupsColumns[69]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_mapped_control_creators", + Columns: []*schema.Column{GroupsColumns[70]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_narrative_creators", + Columns: []*schema.Column{GroupsColumns[71]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_note_creators", + Columns: []*schema.Column{GroupsColumns[72]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_notification_template_creators", + Columns: []*schema.Column{GroupsColumns[73]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_organization_creators", + Columns: []*schema.Column{GroupsColumns[74]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_platform_creators", + Columns: []*schema.Column{GroupsColumns[75]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_procedure_creators", + Columns: []*schema.Column{GroupsColumns[76]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_program_creators", + Columns: []*schema.Column{GroupsColumns[77]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_remediation_creators", + Columns: []*schema.Column{GroupsColumns[78]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_review_creators", + Columns: []*schema.Column{GroupsColumns[79]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_risk_creators", + Columns: []*schema.Column{GroupsColumns[80]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_scan_creators", + Columns: []*schema.Column{GroupsColumns[81]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_scheduled_job_creators", + Columns: []*schema.Column{GroupsColumns[82]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_scheduled_job_run_creators", + Columns: []*schema.Column{GroupsColumns[83]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_standard_creators", + Columns: []*schema.Column{GroupsColumns[84]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_subcontrol_creators", + Columns: []*schema.Column{GroupsColumns[85]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_subprocessor_creators", + Columns: []*schema.Column{GroupsColumns[86]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_subscriber_creators", + Columns: []*schema.Column{GroupsColumns[87]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_system_detail_creators", + Columns: []*schema.Column{GroupsColumns[88]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_tag_definition_creators", + Columns: []*schema.Column{GroupsColumns[89]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_task_creators", + Columns: []*schema.Column{GroupsColumns[90]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_template_creators", + Columns: []*schema.Column{GroupsColumns[91]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_creators", + Columns: []*schema.Column{GroupsColumns[92]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_compliance_creators", + Columns: []*schema.Column{GroupsColumns[93]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_doc_creators", + Columns: []*schema.Column{GroupsColumns[94]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_entity_creators", + Columns: []*schema.Column{GroupsColumns[95]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_faq_creators", + Columns: []*schema.Column{GroupsColumns[96]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_nda_request_creators", + Columns: []*schema.Column{GroupsColumns[97]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_subprocessor_creators", + Columns: []*schema.Column{GroupsColumns[98]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_watermark_config_creators", + Columns: []*schema.Column{GroupsColumns[99]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_user_creators", + Columns: []*schema.Column{GroupsColumns[100]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_user_setting_creators", + Columns: []*schema.Column{GroupsColumns[101]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_vendor_risk_score_creators", + Columns: []*schema.Column{GroupsColumns[102]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_vulnerability_creators", + Columns: []*schema.Column{GroupsColumns[103]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_assignment_creators", + Columns: []*schema.Column{GroupsColumns[104]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_assignment_target_creators", + Columns: []*schema.Column{GroupsColumns[105]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_definition_creators", + Columns: []*schema.Column{GroupsColumns[106]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_event_creators", + Columns: []*schema.Column{GroupsColumns[107]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_instance_creators", + Columns: []*schema.Column{GroupsColumns[108]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_object_ref_creators", + Columns: []*schema.Column{GroupsColumns[109]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflow_proposal_creators", + Columns: []*schema.Column{GroupsColumns[110]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_campaigns_manager", + Columns: []*schema.Column{GroupsColumns[111]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_compliance_manager", + Columns: []*schema.Column{GroupsColumns[112]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_group_manager", + Columns: []*schema.Column{GroupsColumns[113]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_policies_manager", + Columns: []*schema.Column{GroupsColumns[114]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_registry_manager", + Columns: []*schema.Column{GroupsColumns[115]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_risk_manager", + Columns: []*schema.Column{GroupsColumns[116]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_trust_center_manager", + Columns: []*schema.Column{GroupsColumns[117]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_workflows_manager", + Columns: []*schema.Column{GroupsColumns[118]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_groups", + Columns: []*schema.Column{GroupsColumns[119]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_remediations_blocked_groups", + Columns: []*schema.Column{GroupsColumns[120]}, RefColumns: []*schema.Column{RemediationsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_remediations_editors", - Columns: []*schema.Column{GroupsColumns[65]}, + Columns: []*schema.Column{GroupsColumns[121]}, RefColumns: []*schema.Column{RemediationsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_remediations_viewers", - Columns: []*schema.Column{GroupsColumns[66]}, + Columns: []*schema.Column{GroupsColumns[122]}, RefColumns: []*schema.Column{RemediationsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_reviews_blocked_groups", - Columns: []*schema.Column{GroupsColumns[67]}, + Columns: []*schema.Column{GroupsColumns[123]}, RefColumns: []*schema.Column{ReviewsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_reviews_editors", - Columns: []*schema.Column{GroupsColumns[68]}, + Columns: []*schema.Column{GroupsColumns[124]}, RefColumns: []*schema.Column{ReviewsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_reviews_viewers", - Columns: []*schema.Column{GroupsColumns[69]}, + Columns: []*schema.Column{GroupsColumns[125]}, RefColumns: []*schema.Column{ReviewsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_sla_definitions_blocked_groups", - Columns: []*schema.Column{GroupsColumns[70]}, + Columns: []*schema.Column{GroupsColumns[126]}, RefColumns: []*schema.Column{SLADefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_sla_definitions_editors", - Columns: []*schema.Column{GroupsColumns[71]}, + Columns: []*schema.Column{GroupsColumns[127]}, RefColumns: []*schema.Column{SLADefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_sla_definitions_viewers", - Columns: []*schema.Column{GroupsColumns[72]}, + Columns: []*schema.Column{GroupsColumns[128]}, RefColumns: []*schema.Column{SLADefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_centers_blocked_groups", - Columns: []*schema.Column{GroupsColumns[73]}, + Columns: []*schema.Column{GroupsColumns[129]}, RefColumns: []*schema.Column{TrustCentersColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_centers_editors", - Columns: []*schema.Column{GroupsColumns[74]}, + Columns: []*schema.Column{GroupsColumns[130]}, RefColumns: []*schema.Column{TrustCentersColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_compliances_blocked_groups", - Columns: []*schema.Column{GroupsColumns[75]}, + Columns: []*schema.Column{GroupsColumns[131]}, RefColumns: []*schema.Column{TrustCenterCompliancesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_compliances_editors", - Columns: []*schema.Column{GroupsColumns[76]}, + Columns: []*schema.Column{GroupsColumns[132]}, RefColumns: []*schema.Column{TrustCenterCompliancesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_docs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[77]}, + Columns: []*schema.Column{GroupsColumns[133]}, RefColumns: []*schema.Column{TrustCenterDocsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_docs_editors", - Columns: []*schema.Column{GroupsColumns[78]}, + Columns: []*schema.Column{GroupsColumns[134]}, RefColumns: []*schema.Column{TrustCenterDocsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_entities_blocked_groups", - Columns: []*schema.Column{GroupsColumns[79]}, + Columns: []*schema.Column{GroupsColumns[135]}, RefColumns: []*schema.Column{TrustCenterEntitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_entities_editors", - Columns: []*schema.Column{GroupsColumns[80]}, + Columns: []*schema.Column{GroupsColumns[136]}, RefColumns: []*schema.Column{TrustCenterEntitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_faqs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[81]}, + Columns: []*schema.Column{GroupsColumns[137]}, RefColumns: []*schema.Column{TrustCenterFaqsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_faqs_editors", - Columns: []*schema.Column{GroupsColumns[82]}, + Columns: []*schema.Column{GroupsColumns[138]}, RefColumns: []*schema.Column{TrustCenterFaqsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_nda_requests_blocked_groups", - Columns: []*schema.Column{GroupsColumns[83]}, + Columns: []*schema.Column{GroupsColumns[139]}, RefColumns: []*schema.Column{TrustCenterNdaRequestsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_nda_requests_editors", - Columns: []*schema.Column{GroupsColumns[84]}, + Columns: []*schema.Column{GroupsColumns[140]}, RefColumns: []*schema.Column{TrustCenterNdaRequestsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_settings_blocked_groups", - Columns: []*schema.Column{GroupsColumns[85]}, + Columns: []*schema.Column{GroupsColumns[141]}, RefColumns: []*schema.Column{TrustCenterSettingsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_settings_editors", - Columns: []*schema.Column{GroupsColumns[86]}, + Columns: []*schema.Column{GroupsColumns[142]}, RefColumns: []*schema.Column{TrustCenterSettingsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_subprocessors_blocked_groups", - Columns: []*schema.Column{GroupsColumns[87]}, + Columns: []*schema.Column{GroupsColumns[143]}, RefColumns: []*schema.Column{TrustCenterSubprocessorsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_subprocessors_editors", - Columns: []*schema.Column{GroupsColumns[88]}, + Columns: []*schema.Column{GroupsColumns[144]}, RefColumns: []*schema.Column{TrustCenterSubprocessorsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_watermark_configs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[89]}, + Columns: []*schema.Column{GroupsColumns[145]}, RefColumns: []*schema.Column{TrustCenterWatermarkConfigsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_watermark_configs_editors", - Columns: []*schema.Column{GroupsColumns[90]}, + Columns: []*schema.Column{GroupsColumns[146]}, RefColumns: []*schema.Column{TrustCenterWatermarkConfigsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_blocked_groups", - Columns: []*schema.Column{GroupsColumns[91]}, + Columns: []*schema.Column{GroupsColumns[147]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_editors", - Columns: []*schema.Column{GroupsColumns[92]}, + Columns: []*schema.Column{GroupsColumns[148]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_viewers", - Columns: []*schema.Column{GroupsColumns[93]}, + Columns: []*schema.Column{GroupsColumns[149]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_blocked_groups", - Columns: []*schema.Column{GroupsColumns[94]}, + Columns: []*schema.Column{GroupsColumns[150]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_editors", - Columns: []*schema.Column{GroupsColumns[95]}, + Columns: []*schema.Column{GroupsColumns[151]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_viewers", - Columns: []*schema.Column{GroupsColumns[96]}, + Columns: []*schema.Column{GroupsColumns[152]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_groups", - Columns: []*schema.Column{GroupsColumns[97]}, + Columns: []*schema.Column{GroupsColumns[153]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, @@ -3486,12 +3878,12 @@ var ( { Name: "group_display_id_owner_id", Unique: true, - Columns: []*schema.Column{GroupsColumns[7], GroupsColumns[63]}, + Columns: []*schema.Column{GroupsColumns[7], GroupsColumns[119]}, }, { Name: "group_owner_id", Unique: false, - Columns: []*schema.Column{GroupsColumns[63]}, + Columns: []*schema.Column{GroupsColumns[119]}, Annotation: &entsql.IndexAnnotation{ Where: "deleted_at is NULL", }, @@ -3499,7 +3891,7 @@ var ( { Name: "group_name_owner_id", Unique: true, - Columns: []*schema.Column{GroupsColumns[9], GroupsColumns[63]}, + Columns: []*schema.Column{GroupsColumns[9], GroupsColumns[119]}, Annotation: &entsql.IndexAnnotation{ Where: "deleted_at is NULL", }, @@ -5015,7 +5407,7 @@ var ( {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "created_by", Type: field.TypeString, Nullable: true}, {Name: "updated_by", Type: field.TypeString, Nullable: true}, - {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "OWNER"}, Default: "MEMBER"}, + {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "OWNER", "SUPER_ADMIN", "AUDITOR"}, Default: "MEMBER"}, {Name: "organization_id", Type: field.TypeString}, {Name: "user_id", Type: field.TypeString}, } @@ -5898,7 +6290,7 @@ var ( {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "created_by", Type: field.TypeString, Nullable: true}, {Name: "updated_by", Type: field.TypeString, Nullable: true}, - {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER"}, Default: "MEMBER"}, + {Name: "role", Type: field.TypeEnum, Enums: []string{"ADMIN", "MEMBER", "AUDITOR"}, Default: "MEMBER"}, {Name: "program_id", Type: field.TypeString}, {Name: "user_id", Type: field.TypeString}, {Name: "program_membership_org_membership", Type: field.TypeString, Nullable: true}, @@ -14197,40 +14589,96 @@ func init() { GroupsTable.ForeignKeys[39].RefTable = OrganizationsTable GroupsTable.ForeignKeys[40].RefTable = OrganizationsTable GroupsTable.ForeignKeys[41].RefTable = OrganizationsTable - GroupsTable.ForeignKeys[42].RefTable = RemediationsTable - GroupsTable.ForeignKeys[43].RefTable = RemediationsTable - GroupsTable.ForeignKeys[44].RefTable = RemediationsTable - GroupsTable.ForeignKeys[45].RefTable = ReviewsTable - GroupsTable.ForeignKeys[46].RefTable = ReviewsTable - GroupsTable.ForeignKeys[47].RefTable = ReviewsTable - GroupsTable.ForeignKeys[48].RefTable = SLADefinitionsTable - GroupsTable.ForeignKeys[49].RefTable = SLADefinitionsTable - GroupsTable.ForeignKeys[50].RefTable = SLADefinitionsTable - GroupsTable.ForeignKeys[51].RefTable = TrustCentersTable - GroupsTable.ForeignKeys[52].RefTable = TrustCentersTable - GroupsTable.ForeignKeys[53].RefTable = TrustCenterCompliancesTable - GroupsTable.ForeignKeys[54].RefTable = TrustCenterCompliancesTable - GroupsTable.ForeignKeys[55].RefTable = TrustCenterDocsTable - GroupsTable.ForeignKeys[56].RefTable = TrustCenterDocsTable - GroupsTable.ForeignKeys[57].RefTable = TrustCenterEntitiesTable - GroupsTable.ForeignKeys[58].RefTable = TrustCenterEntitiesTable - GroupsTable.ForeignKeys[59].RefTable = TrustCenterFaqsTable - GroupsTable.ForeignKeys[60].RefTable = TrustCenterFaqsTable - GroupsTable.ForeignKeys[61].RefTable = TrustCenterNdaRequestsTable - GroupsTable.ForeignKeys[62].RefTable = TrustCenterNdaRequestsTable - GroupsTable.ForeignKeys[63].RefTable = TrustCenterSettingsTable - GroupsTable.ForeignKeys[64].RefTable = TrustCenterSettingsTable - GroupsTable.ForeignKeys[65].RefTable = TrustCenterSubprocessorsTable - GroupsTable.ForeignKeys[66].RefTable = TrustCenterSubprocessorsTable - GroupsTable.ForeignKeys[67].RefTable = TrustCenterWatermarkConfigsTable - GroupsTable.ForeignKeys[68].RefTable = TrustCenterWatermarkConfigsTable - GroupsTable.ForeignKeys[69].RefTable = VulnerabilitiesTable - GroupsTable.ForeignKeys[70].RefTable = VulnerabilitiesTable - GroupsTable.ForeignKeys[71].RefTable = VulnerabilitiesTable - GroupsTable.ForeignKeys[72].RefTable = WorkflowDefinitionsTable - GroupsTable.ForeignKeys[73].RefTable = WorkflowDefinitionsTable - GroupsTable.ForeignKeys[74].RefTable = WorkflowDefinitionsTable - GroupsTable.ForeignKeys[75].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[42].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[43].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[44].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[45].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[46].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[47].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[48].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[49].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[50].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[51].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[52].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[53].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[54].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[55].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[56].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[57].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[58].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[59].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[60].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[61].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[62].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[63].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[64].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[65].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[66].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[67].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[68].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[69].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[70].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[71].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[72].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[73].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[74].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[75].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[76].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[77].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[78].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[79].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[80].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[81].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[82].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[83].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[84].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[85].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[86].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[87].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[88].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[89].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[90].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[91].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[92].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[93].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[94].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[95].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[96].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[97].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[98].RefTable = RemediationsTable + GroupsTable.ForeignKeys[99].RefTable = RemediationsTable + GroupsTable.ForeignKeys[100].RefTable = RemediationsTable + GroupsTable.ForeignKeys[101].RefTable = ReviewsTable + GroupsTable.ForeignKeys[102].RefTable = ReviewsTable + GroupsTable.ForeignKeys[103].RefTable = ReviewsTable + GroupsTable.ForeignKeys[104].RefTable = SLADefinitionsTable + GroupsTable.ForeignKeys[105].RefTable = SLADefinitionsTable + GroupsTable.ForeignKeys[106].RefTable = SLADefinitionsTable + GroupsTable.ForeignKeys[107].RefTable = TrustCentersTable + GroupsTable.ForeignKeys[108].RefTable = TrustCentersTable + GroupsTable.ForeignKeys[109].RefTable = TrustCenterCompliancesTable + GroupsTable.ForeignKeys[110].RefTable = TrustCenterCompliancesTable + GroupsTable.ForeignKeys[111].RefTable = TrustCenterDocsTable + GroupsTable.ForeignKeys[112].RefTable = TrustCenterDocsTable + GroupsTable.ForeignKeys[113].RefTable = TrustCenterEntitiesTable + GroupsTable.ForeignKeys[114].RefTable = TrustCenterEntitiesTable + GroupsTable.ForeignKeys[115].RefTable = TrustCenterFaqsTable + GroupsTable.ForeignKeys[116].RefTable = TrustCenterFaqsTable + GroupsTable.ForeignKeys[117].RefTable = TrustCenterNdaRequestsTable + GroupsTable.ForeignKeys[118].RefTable = TrustCenterNdaRequestsTable + GroupsTable.ForeignKeys[119].RefTable = TrustCenterSettingsTable + GroupsTable.ForeignKeys[120].RefTable = TrustCenterSettingsTable + GroupsTable.ForeignKeys[121].RefTable = TrustCenterSubprocessorsTable + GroupsTable.ForeignKeys[122].RefTable = TrustCenterSubprocessorsTable + GroupsTable.ForeignKeys[123].RefTable = TrustCenterWatermarkConfigsTable + GroupsTable.ForeignKeys[124].RefTable = TrustCenterWatermarkConfigsTable + GroupsTable.ForeignKeys[125].RefTable = VulnerabilitiesTable + GroupsTable.ForeignKeys[126].RefTable = VulnerabilitiesTable + GroupsTable.ForeignKeys[127].RefTable = VulnerabilitiesTable + GroupsTable.ForeignKeys[128].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[129].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[130].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[131].RefTable = WorkflowDefinitionsTable GroupMembershipsTable.ForeignKeys[0].RefTable = GroupsTable GroupMembershipsTable.ForeignKeys[1].RefTable = UsersTable GroupMembershipsTable.ForeignKeys[2].RefTable = OrgMembershipsTable diff --git a/internal/ent/generated/mutation.go b/internal/ent/generated/mutation.go index 0012dbbd85..01f597a017 100644 --- a/internal/ent/generated/mutation.go +++ b/internal/ent/generated/mutation.go @@ -156026,359 +156026,527 @@ func (m *OrgSubscriptionMutation) ResetEdge(name string) error { // OrganizationMutation represents an operation that mutates the Organization nodes in the graph. type OrganizationMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - name *string - display_name *string - description *string - personal_org *bool - avatar_remote_url *string - avatar_updated_at *time.Time - dedicated_db *bool - stripe_customer_id *string - clearedFields map[string]struct{} - control_creators map[string]struct{} - removedcontrol_creators map[string]struct{} - clearedcontrol_creators bool - control_implementation_creators map[string]struct{} - removedcontrol_implementation_creators map[string]struct{} - clearedcontrol_implementation_creators bool - control_objective_creators map[string]struct{} - removedcontrol_objective_creators map[string]struct{} - clearedcontrol_objective_creators bool - evidence_creators map[string]struct{} - removedevidence_creators map[string]struct{} - clearedevidence_creators bool - asset_creators map[string]struct{} - removedasset_creators map[string]struct{} - clearedasset_creators bool - finding_creators map[string]struct{} - removedfinding_creators map[string]struct{} - clearedfinding_creators bool - vulnerability_creators map[string]struct{} - removedvulnerability_creators map[string]struct{} - clearedvulnerability_creators bool - group_creators map[string]struct{} - removedgroup_creators map[string]struct{} - clearedgroup_creators bool - internal_policy_creators map[string]struct{} - removedinternal_policy_creators map[string]struct{} - clearedinternal_policy_creators bool - mapped_control_creators map[string]struct{} - removedmapped_control_creators map[string]struct{} - clearedmapped_control_creators bool - narrative_creators map[string]struct{} - removednarrative_creators map[string]struct{} - clearednarrative_creators bool - procedure_creators map[string]struct{} - removedprocedure_creators map[string]struct{} - clearedprocedure_creators bool - program_creators map[string]struct{} - removedprogram_creators map[string]struct{} - clearedprogram_creators bool - risk_creators map[string]struct{} - removedrisk_creators map[string]struct{} - clearedrisk_creators bool - identity_holder_creators map[string]struct{} - removedidentity_holder_creators map[string]struct{} - clearedidentity_holder_creators bool - scheduled_job_creators map[string]struct{} - removedscheduled_job_creators map[string]struct{} - clearedscheduled_job_creators bool - standard_creators map[string]struct{} - removedstandard_creators map[string]struct{} - clearedstandard_creators bool - template_creators map[string]struct{} - removedtemplate_creators map[string]struct{} - clearedtemplate_creators bool - subprocessor_creators map[string]struct{} - removedsubprocessor_creators map[string]struct{} - clearedsubprocessor_creators bool - trust_center_doc_creators map[string]struct{} - removedtrust_center_doc_creators map[string]struct{} - clearedtrust_center_doc_creators bool - trust_center_subprocessor_creators map[string]struct{} - removedtrust_center_subprocessor_creators map[string]struct{} - clearedtrust_center_subprocessor_creators bool - action_plan_creators map[string]struct{} - removedaction_plan_creators map[string]struct{} - clearedaction_plan_creators bool - parent *string - clearedparent bool - children map[string]struct{} - removedchildren map[string]struct{} - clearedchildren bool - setting *string - clearedsetting bool - personal_access_tokens map[string]struct{} - removedpersonal_access_tokens map[string]struct{} - clearedpersonal_access_tokens bool - api_tokens map[string]struct{} - removedapi_tokens map[string]struct{} - clearedapi_tokens bool - email_templates map[string]struct{} - removedemail_templates map[string]struct{} - clearedemail_templates bool - integration_webhooks map[string]struct{} - removedintegration_webhooks map[string]struct{} - clearedintegration_webhooks bool - integration_runs map[string]struct{} - removedintegration_runs map[string]struct{} - clearedintegration_runs bool - notification_preferences map[string]struct{} - removednotification_preferences map[string]struct{} - clearednotification_preferences bool - notification_templates map[string]struct{} - removednotification_templates map[string]struct{} - clearednotification_templates bool - users map[string]struct{} - removedusers map[string]struct{} - clearedusers bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - secrets map[string]struct{} - removedsecrets map[string]struct{} - clearedsecrets bool - avatar_file *string - clearedavatar_file bool - groups map[string]struct{} - removedgroups map[string]struct{} - clearedgroups bool - templates map[string]struct{} - removedtemplates map[string]struct{} - clearedtemplates bool - integrations map[string]struct{} - removedintegrations map[string]struct{} - clearedintegrations bool - documents map[string]struct{} - removeddocuments map[string]struct{} - cleareddocuments bool - org_subscriptions map[string]struct{} - removedorg_subscriptions map[string]struct{} - clearedorg_subscriptions bool - org_products map[string]struct{} - removedorg_products map[string]struct{} - clearedorg_products bool - org_prices map[string]struct{} - removedorg_prices map[string]struct{} - clearedorg_prices bool - org_modules map[string]struct{} - removedorg_modules map[string]struct{} - clearedorg_modules bool - invites map[string]struct{} - removedinvites map[string]struct{} - clearedinvites bool - subscribers map[string]struct{} - removedsubscribers map[string]struct{} - clearedsubscribers bool - entities map[string]struct{} - removedentities map[string]struct{} - clearedentities bool - platforms map[string]struct{} - removedplatforms map[string]struct{} - clearedplatforms bool - identity_holders map[string]struct{} - removedidentity_holders map[string]struct{} - clearedidentity_holders bool - campaigns map[string]struct{} - removedcampaigns map[string]struct{} - clearedcampaigns bool - campaign_targets map[string]struct{} - removedcampaign_targets map[string]struct{} - clearedcampaign_targets bool - entity_types map[string]struct{} - removedentity_types map[string]struct{} - clearedentity_types bool - contacts map[string]struct{} - removedcontacts map[string]struct{} - clearedcontacts bool - notes map[string]struct{} - removednotes map[string]struct{} - clearednotes bool - tasks map[string]struct{} - removedtasks map[string]struct{} - clearedtasks bool - programs map[string]struct{} - removedprograms map[string]struct{} - clearedprograms bool - system_details map[string]struct{} - removedsystem_details map[string]struct{} - clearedsystem_details bool - procedures map[string]struct{} - removedprocedures map[string]struct{} - clearedprocedures bool - internal_policies map[string]struct{} - removedinternal_policies map[string]struct{} - clearedinternal_policies bool - risks map[string]struct{} - removedrisks map[string]struct{} - clearedrisks bool - control_objectives map[string]struct{} - removedcontrol_objectives map[string]struct{} - clearedcontrol_objectives bool - narratives map[string]struct{} - removednarratives map[string]struct{} - clearednarratives bool - controls map[string]struct{} - removedcontrols map[string]struct{} - clearedcontrols bool - subcontrols map[string]struct{} - removedsubcontrols map[string]struct{} - clearedsubcontrols bool - control_implementations map[string]struct{} - removedcontrol_implementations map[string]struct{} - clearedcontrol_implementations bool - mapped_controls map[string]struct{} - removedmapped_controls map[string]struct{} - clearedmapped_controls bool - evidence map[string]struct{} - removedevidence map[string]struct{} - clearedevidence bool - standards map[string]struct{} - removedstandards map[string]struct{} - clearedstandards bool - action_plans map[string]struct{} - removedaction_plans map[string]struct{} - clearedaction_plans bool - custom_domains map[string]struct{} - removedcustom_domains map[string]struct{} - clearedcustom_domains bool - job_runners map[string]struct{} - removedjob_runners map[string]struct{} - clearedjob_runners bool - job_runner_tokens map[string]struct{} - removedjob_runner_tokens map[string]struct{} - clearedjob_runner_tokens bool - job_runner_registration_tokens map[string]struct{} - removedjob_runner_registration_tokens map[string]struct{} - clearedjob_runner_registration_tokens bool - dns_verifications map[string]struct{} - removeddns_verifications map[string]struct{} - cleareddns_verifications bool - job_templates map[string]struct{} - removedjob_templates map[string]struct{} - clearedjob_templates bool - scheduled_jobs map[string]struct{} - removedscheduled_jobs map[string]struct{} - clearedscheduled_jobs bool - job_results map[string]struct{} - removedjob_results map[string]struct{} - clearedjob_results bool - scheduled_job_runs map[string]struct{} - removedscheduled_job_runs map[string]struct{} - clearedscheduled_job_runs bool - trust_centers map[string]struct{} - removedtrust_centers map[string]struct{} - clearedtrust_centers bool - assets map[string]struct{} - removedassets map[string]struct{} - clearedassets bool - scans map[string]struct{} - removedscans map[string]struct{} - clearedscans bool - sla_definitions map[string]struct{} - removedsla_definitions map[string]struct{} - clearedsla_definitions bool - subprocessors map[string]struct{} - removedsubprocessors map[string]struct{} - clearedsubprocessors bool - exports map[string]struct{} - removedexports map[string]struct{} - clearedexports bool - trust_center_watermark_configs map[string]struct{} - removedtrust_center_watermark_configs map[string]struct{} - clearedtrust_center_watermark_configs bool - impersonation_events map[string]struct{} - removedimpersonation_events map[string]struct{} - clearedimpersonation_events bool - assessments map[string]struct{} - removedassessments map[string]struct{} - clearedassessments bool - assessment_responses map[string]struct{} - removedassessment_responses map[string]struct{} - clearedassessment_responses bool - custom_type_enums map[string]struct{} - removedcustom_type_enums map[string]struct{} - clearedcustom_type_enums bool - tag_definitions map[string]struct{} - removedtag_definitions map[string]struct{} - clearedtag_definitions bool - remediations map[string]struct{} - removedremediations map[string]struct{} - clearedremediations bool - findings map[string]struct{} - removedfindings map[string]struct{} - clearedfindings bool - reviews map[string]struct{} - removedreviews map[string]struct{} - clearedreviews bool - vulnerabilities map[string]struct{} - removedvulnerabilities map[string]struct{} - clearedvulnerabilities bool - notifications map[string]struct{} - removednotifications map[string]struct{} - clearednotifications bool - workflow_definitions map[string]struct{} - removedworkflow_definitions map[string]struct{} - clearedworkflow_definitions bool - workflow_instances map[string]struct{} - removedworkflow_instances map[string]struct{} - clearedworkflow_instances bool - workflow_events map[string]struct{} - removedworkflow_events map[string]struct{} - clearedworkflow_events bool - workflow_assignments map[string]struct{} - removedworkflow_assignments map[string]struct{} - clearedworkflow_assignments bool - workflow_assignment_targets map[string]struct{} - removedworkflow_assignment_targets map[string]struct{} - clearedworkflow_assignment_targets bool - workflow_object_refs map[string]struct{} - removedworkflow_object_refs map[string]struct{} - clearedworkflow_object_refs bool - workflow_proposals map[string]struct{} - removedworkflow_proposals map[string]struct{} - clearedworkflow_proposals bool - directory_accounts map[string]struct{} - removeddirectory_accounts map[string]struct{} - cleareddirectory_accounts bool - directory_groups map[string]struct{} - removeddirectory_groups map[string]struct{} - cleareddirectory_groups bool - directory_memberships map[string]struct{} - removeddirectory_memberships map[string]struct{} - cleareddirectory_memberships bool - directory_sync_runs map[string]struct{} - removeddirectory_sync_runs map[string]struct{} - cleareddirectory_sync_runs bool - discussions map[string]struct{} - removeddiscussions map[string]struct{} - cleareddiscussions bool - vendor_scoring_configs map[string]struct{} - removedvendor_scoring_configs map[string]struct{} - clearedvendor_scoring_configs bool - vendor_risk_scores map[string]struct{} - removedvendor_risk_scores map[string]struct{} - clearedvendor_risk_scores bool - members map[string]struct{} - removedmembers map[string]struct{} - clearedmembers bool - done bool - oldValue func(context.Context) (*Organization, error) - predicates []predicate.Organization + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + name *string + display_name *string + description *string + personal_org *bool + avatar_remote_url *string + avatar_updated_at *time.Time + dedicated_db *bool + stripe_customer_id *string + clearedFields map[string]struct{} + action_plan_creators map[string]struct{} + removedaction_plan_creators map[string]struct{} + clearedaction_plan_creators bool + api_token_creators map[string]struct{} + removedapi_token_creators map[string]struct{} + clearedapi_token_creators bool + assessment_creators map[string]struct{} + removedassessment_creators map[string]struct{} + clearedassessment_creators bool + asset_creators map[string]struct{} + removedasset_creators map[string]struct{} + clearedasset_creators bool + campaign_creators map[string]struct{} + removedcampaign_creators map[string]struct{} + clearedcampaign_creators bool + campaign_target_creators map[string]struct{} + removedcampaign_target_creators map[string]struct{} + clearedcampaign_target_creators bool + check_result_creators map[string]struct{} + removedcheck_result_creators map[string]struct{} + clearedcheck_result_creators bool + contact_creators map[string]struct{} + removedcontact_creators map[string]struct{} + clearedcontact_creators bool + control_creators map[string]struct{} + removedcontrol_creators map[string]struct{} + clearedcontrol_creators bool + control_implementation_creators map[string]struct{} + removedcontrol_implementation_creators map[string]struct{} + clearedcontrol_implementation_creators bool + control_objective_creators map[string]struct{} + removedcontrol_objective_creators map[string]struct{} + clearedcontrol_objective_creators bool + custom_type_enum_creators map[string]struct{} + removedcustom_type_enum_creators map[string]struct{} + clearedcustom_type_enum_creators bool + discussion_creators map[string]struct{} + removeddiscussion_creators map[string]struct{} + cleareddiscussion_creators bool + email_template_creators map[string]struct{} + removedemail_template_creators map[string]struct{} + clearedemail_template_creators bool + entity_creators map[string]struct{} + removedentity_creators map[string]struct{} + clearedentity_creators bool + entity_type_creators map[string]struct{} + removedentity_type_creators map[string]struct{} + clearedentity_type_creators bool + evidence_creators map[string]struct{} + removedevidence_creators map[string]struct{} + clearedevidence_creators bool + export_creators map[string]struct{} + removedexport_creators map[string]struct{} + clearedexport_creators bool + file_creators map[string]struct{} + removedfile_creators map[string]struct{} + clearedfile_creators bool + finding_creators map[string]struct{} + removedfinding_creators map[string]struct{} + clearedfinding_creators bool + group_creators map[string]struct{} + removedgroup_creators map[string]struct{} + clearedgroup_creators bool + identity_holder_creators map[string]struct{} + removedidentity_holder_creators map[string]struct{} + clearedidentity_holder_creators bool + integration_creators map[string]struct{} + removedintegration_creators map[string]struct{} + clearedintegration_creators bool + integration_webhook_creators map[string]struct{} + removedintegration_webhook_creators map[string]struct{} + clearedintegration_webhook_creators bool + internal_policy_creators map[string]struct{} + removedinternal_policy_creators map[string]struct{} + clearedinternal_policy_creators bool + job_runner_creators map[string]struct{} + removedjob_runner_creators map[string]struct{} + clearedjob_runner_creators bool + job_runner_registration_token_creators map[string]struct{} + removedjob_runner_registration_token_creators map[string]struct{} + clearedjob_runner_registration_token_creators bool + job_runner_token_creators map[string]struct{} + removedjob_runner_token_creators map[string]struct{} + clearedjob_runner_token_creators bool + job_template_creators map[string]struct{} + removedjob_template_creators map[string]struct{} + clearedjob_template_creators bool + mapped_control_creators map[string]struct{} + removedmapped_control_creators map[string]struct{} + clearedmapped_control_creators bool + narrative_creators map[string]struct{} + removednarrative_creators map[string]struct{} + clearednarrative_creators bool + note_creators map[string]struct{} + removednote_creators map[string]struct{} + clearednote_creators bool + notification_template_creators map[string]struct{} + removednotification_template_creators map[string]struct{} + clearednotification_template_creators bool + organization_creators map[string]struct{} + removedorganization_creators map[string]struct{} + clearedorganization_creators bool + platform_creators map[string]struct{} + removedplatform_creators map[string]struct{} + clearedplatform_creators bool + procedure_creators map[string]struct{} + removedprocedure_creators map[string]struct{} + clearedprocedure_creators bool + program_creators map[string]struct{} + removedprogram_creators map[string]struct{} + clearedprogram_creators bool + remediation_creators map[string]struct{} + removedremediation_creators map[string]struct{} + clearedremediation_creators bool + review_creators map[string]struct{} + removedreview_creators map[string]struct{} + clearedreview_creators bool + risk_creators map[string]struct{} + removedrisk_creators map[string]struct{} + clearedrisk_creators bool + scan_creators map[string]struct{} + removedscan_creators map[string]struct{} + clearedscan_creators bool + scheduled_job_creators map[string]struct{} + removedscheduled_job_creators map[string]struct{} + clearedscheduled_job_creators bool + scheduled_job_run_creators map[string]struct{} + removedscheduled_job_run_creators map[string]struct{} + clearedscheduled_job_run_creators bool + standard_creators map[string]struct{} + removedstandard_creators map[string]struct{} + clearedstandard_creators bool + subcontrol_creators map[string]struct{} + removedsubcontrol_creators map[string]struct{} + clearedsubcontrol_creators bool + subprocessor_creators map[string]struct{} + removedsubprocessor_creators map[string]struct{} + clearedsubprocessor_creators bool + subscriber_creators map[string]struct{} + removedsubscriber_creators map[string]struct{} + clearedsubscriber_creators bool + system_detail_creators map[string]struct{} + removedsystem_detail_creators map[string]struct{} + clearedsystem_detail_creators bool + tag_definition_creators map[string]struct{} + removedtag_definition_creators map[string]struct{} + clearedtag_definition_creators bool + task_creators map[string]struct{} + removedtask_creators map[string]struct{} + clearedtask_creators bool + template_creators map[string]struct{} + removedtemplate_creators map[string]struct{} + clearedtemplate_creators bool + trust_center_creators map[string]struct{} + removedtrust_center_creators map[string]struct{} + clearedtrust_center_creators bool + trust_center_compliance_creators map[string]struct{} + removedtrust_center_compliance_creators map[string]struct{} + clearedtrust_center_compliance_creators bool + trust_center_doc_creators map[string]struct{} + removedtrust_center_doc_creators map[string]struct{} + clearedtrust_center_doc_creators bool + trust_center_entity_creators map[string]struct{} + removedtrust_center_entity_creators map[string]struct{} + clearedtrust_center_entity_creators bool + trust_center_faq_creators map[string]struct{} + removedtrust_center_faq_creators map[string]struct{} + clearedtrust_center_faq_creators bool + trust_center_nda_request_creators map[string]struct{} + removedtrust_center_nda_request_creators map[string]struct{} + clearedtrust_center_nda_request_creators bool + trust_center_subprocessor_creators map[string]struct{} + removedtrust_center_subprocessor_creators map[string]struct{} + clearedtrust_center_subprocessor_creators bool + trust_center_watermark_config_creators map[string]struct{} + removedtrust_center_watermark_config_creators map[string]struct{} + clearedtrust_center_watermark_config_creators bool + user_creators map[string]struct{} + removeduser_creators map[string]struct{} + cleareduser_creators bool + user_setting_creators map[string]struct{} + removeduser_setting_creators map[string]struct{} + cleareduser_setting_creators bool + vendor_risk_score_creators map[string]struct{} + removedvendor_risk_score_creators map[string]struct{} + clearedvendor_risk_score_creators bool + vulnerability_creators map[string]struct{} + removedvulnerability_creators map[string]struct{} + clearedvulnerability_creators bool + workflow_assignment_creators map[string]struct{} + removedworkflow_assignment_creators map[string]struct{} + clearedworkflow_assignment_creators bool + workflow_assignment_target_creators map[string]struct{} + removedworkflow_assignment_target_creators map[string]struct{} + clearedworkflow_assignment_target_creators bool + workflow_definition_creators map[string]struct{} + removedworkflow_definition_creators map[string]struct{} + clearedworkflow_definition_creators bool + workflow_event_creators map[string]struct{} + removedworkflow_event_creators map[string]struct{} + clearedworkflow_event_creators bool + workflow_instance_creators map[string]struct{} + removedworkflow_instance_creators map[string]struct{} + clearedworkflow_instance_creators bool + workflow_object_ref_creators map[string]struct{} + removedworkflow_object_ref_creators map[string]struct{} + clearedworkflow_object_ref_creators bool + workflow_proposal_creators map[string]struct{} + removedworkflow_proposal_creators map[string]struct{} + clearedworkflow_proposal_creators bool + campaigns_manager map[string]struct{} + removedcampaigns_manager map[string]struct{} + clearedcampaigns_manager bool + compliance_manager map[string]struct{} + removedcompliance_manager map[string]struct{} + clearedcompliance_manager bool + group_manager map[string]struct{} + removedgroup_manager map[string]struct{} + clearedgroup_manager bool + policies_manager map[string]struct{} + removedpolicies_manager map[string]struct{} + clearedpolicies_manager bool + registry_manager map[string]struct{} + removedregistry_manager map[string]struct{} + clearedregistry_manager bool + risk_manager map[string]struct{} + removedrisk_manager map[string]struct{} + clearedrisk_manager bool + trust_center_manager map[string]struct{} + removedtrust_center_manager map[string]struct{} + clearedtrust_center_manager bool + workflows_manager map[string]struct{} + removedworkflows_manager map[string]struct{} + clearedworkflows_manager bool + parent *string + clearedparent bool + children map[string]struct{} + removedchildren map[string]struct{} + clearedchildren bool + setting *string + clearedsetting bool + personal_access_tokens map[string]struct{} + removedpersonal_access_tokens map[string]struct{} + clearedpersonal_access_tokens bool + api_tokens map[string]struct{} + removedapi_tokens map[string]struct{} + clearedapi_tokens bool + email_templates map[string]struct{} + removedemail_templates map[string]struct{} + clearedemail_templates bool + integration_webhooks map[string]struct{} + removedintegration_webhooks map[string]struct{} + clearedintegration_webhooks bool + integration_runs map[string]struct{} + removedintegration_runs map[string]struct{} + clearedintegration_runs bool + notification_preferences map[string]struct{} + removednotification_preferences map[string]struct{} + clearednotification_preferences bool + notification_templates map[string]struct{} + removednotification_templates map[string]struct{} + clearednotification_templates bool + users map[string]struct{} + removedusers map[string]struct{} + clearedusers bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + secrets map[string]struct{} + removedsecrets map[string]struct{} + clearedsecrets bool + avatar_file *string + clearedavatar_file bool + groups map[string]struct{} + removedgroups map[string]struct{} + clearedgroups bool + templates map[string]struct{} + removedtemplates map[string]struct{} + clearedtemplates bool + integrations map[string]struct{} + removedintegrations map[string]struct{} + clearedintegrations bool + documents map[string]struct{} + removeddocuments map[string]struct{} + cleareddocuments bool + org_subscriptions map[string]struct{} + removedorg_subscriptions map[string]struct{} + clearedorg_subscriptions bool + org_products map[string]struct{} + removedorg_products map[string]struct{} + clearedorg_products bool + org_prices map[string]struct{} + removedorg_prices map[string]struct{} + clearedorg_prices bool + org_modules map[string]struct{} + removedorg_modules map[string]struct{} + clearedorg_modules bool + invites map[string]struct{} + removedinvites map[string]struct{} + clearedinvites bool + subscribers map[string]struct{} + removedsubscribers map[string]struct{} + clearedsubscribers bool + entities map[string]struct{} + removedentities map[string]struct{} + clearedentities bool + platforms map[string]struct{} + removedplatforms map[string]struct{} + clearedplatforms bool + identity_holders map[string]struct{} + removedidentity_holders map[string]struct{} + clearedidentity_holders bool + campaigns map[string]struct{} + removedcampaigns map[string]struct{} + clearedcampaigns bool + campaign_targets map[string]struct{} + removedcampaign_targets map[string]struct{} + clearedcampaign_targets bool + entity_types map[string]struct{} + removedentity_types map[string]struct{} + clearedentity_types bool + contacts map[string]struct{} + removedcontacts map[string]struct{} + clearedcontacts bool + notes map[string]struct{} + removednotes map[string]struct{} + clearednotes bool + tasks map[string]struct{} + removedtasks map[string]struct{} + clearedtasks bool + programs map[string]struct{} + removedprograms map[string]struct{} + clearedprograms bool + system_details map[string]struct{} + removedsystem_details map[string]struct{} + clearedsystem_details bool + procedures map[string]struct{} + removedprocedures map[string]struct{} + clearedprocedures bool + internal_policies map[string]struct{} + removedinternal_policies map[string]struct{} + clearedinternal_policies bool + risks map[string]struct{} + removedrisks map[string]struct{} + clearedrisks bool + control_objectives map[string]struct{} + removedcontrol_objectives map[string]struct{} + clearedcontrol_objectives bool + narratives map[string]struct{} + removednarratives map[string]struct{} + clearednarratives bool + controls map[string]struct{} + removedcontrols map[string]struct{} + clearedcontrols bool + subcontrols map[string]struct{} + removedsubcontrols map[string]struct{} + clearedsubcontrols bool + control_implementations map[string]struct{} + removedcontrol_implementations map[string]struct{} + clearedcontrol_implementations bool + mapped_controls map[string]struct{} + removedmapped_controls map[string]struct{} + clearedmapped_controls bool + evidence map[string]struct{} + removedevidence map[string]struct{} + clearedevidence bool + standards map[string]struct{} + removedstandards map[string]struct{} + clearedstandards bool + action_plans map[string]struct{} + removedaction_plans map[string]struct{} + clearedaction_plans bool + custom_domains map[string]struct{} + removedcustom_domains map[string]struct{} + clearedcustom_domains bool + job_runners map[string]struct{} + removedjob_runners map[string]struct{} + clearedjob_runners bool + job_runner_tokens map[string]struct{} + removedjob_runner_tokens map[string]struct{} + clearedjob_runner_tokens bool + job_runner_registration_tokens map[string]struct{} + removedjob_runner_registration_tokens map[string]struct{} + clearedjob_runner_registration_tokens bool + dns_verifications map[string]struct{} + removeddns_verifications map[string]struct{} + cleareddns_verifications bool + job_templates map[string]struct{} + removedjob_templates map[string]struct{} + clearedjob_templates bool + scheduled_jobs map[string]struct{} + removedscheduled_jobs map[string]struct{} + clearedscheduled_jobs bool + job_results map[string]struct{} + removedjob_results map[string]struct{} + clearedjob_results bool + scheduled_job_runs map[string]struct{} + removedscheduled_job_runs map[string]struct{} + clearedscheduled_job_runs bool + trust_centers map[string]struct{} + removedtrust_centers map[string]struct{} + clearedtrust_centers bool + assets map[string]struct{} + removedassets map[string]struct{} + clearedassets bool + scans map[string]struct{} + removedscans map[string]struct{} + clearedscans bool + sla_definitions map[string]struct{} + removedsla_definitions map[string]struct{} + clearedsla_definitions bool + subprocessors map[string]struct{} + removedsubprocessors map[string]struct{} + clearedsubprocessors bool + exports map[string]struct{} + removedexports map[string]struct{} + clearedexports bool + trust_center_watermark_configs map[string]struct{} + removedtrust_center_watermark_configs map[string]struct{} + clearedtrust_center_watermark_configs bool + impersonation_events map[string]struct{} + removedimpersonation_events map[string]struct{} + clearedimpersonation_events bool + assessments map[string]struct{} + removedassessments map[string]struct{} + clearedassessments bool + assessment_responses map[string]struct{} + removedassessment_responses map[string]struct{} + clearedassessment_responses bool + custom_type_enums map[string]struct{} + removedcustom_type_enums map[string]struct{} + clearedcustom_type_enums bool + tag_definitions map[string]struct{} + removedtag_definitions map[string]struct{} + clearedtag_definitions bool + remediations map[string]struct{} + removedremediations map[string]struct{} + clearedremediations bool + findings map[string]struct{} + removedfindings map[string]struct{} + clearedfindings bool + reviews map[string]struct{} + removedreviews map[string]struct{} + clearedreviews bool + vulnerabilities map[string]struct{} + removedvulnerabilities map[string]struct{} + clearedvulnerabilities bool + notifications map[string]struct{} + removednotifications map[string]struct{} + clearednotifications bool + workflow_definitions map[string]struct{} + removedworkflow_definitions map[string]struct{} + clearedworkflow_definitions bool + workflow_instances map[string]struct{} + removedworkflow_instances map[string]struct{} + clearedworkflow_instances bool + workflow_events map[string]struct{} + removedworkflow_events map[string]struct{} + clearedworkflow_events bool + workflow_assignments map[string]struct{} + removedworkflow_assignments map[string]struct{} + clearedworkflow_assignments bool + workflow_assignment_targets map[string]struct{} + removedworkflow_assignment_targets map[string]struct{} + clearedworkflow_assignment_targets bool + workflow_object_refs map[string]struct{} + removedworkflow_object_refs map[string]struct{} + clearedworkflow_object_refs bool + workflow_proposals map[string]struct{} + removedworkflow_proposals map[string]struct{} + clearedworkflow_proposals bool + directory_accounts map[string]struct{} + removeddirectory_accounts map[string]struct{} + cleareddirectory_accounts bool + directory_groups map[string]struct{} + removeddirectory_groups map[string]struct{} + cleareddirectory_groups bool + directory_memberships map[string]struct{} + removeddirectory_memberships map[string]struct{} + cleareddirectory_memberships bool + directory_sync_runs map[string]struct{} + removeddirectory_sync_runs map[string]struct{} + cleareddirectory_sync_runs bool + discussions map[string]struct{} + removeddiscussions map[string]struct{} + cleareddiscussions bool + vendor_scoring_configs map[string]struct{} + removedvendor_scoring_configs map[string]struct{} + clearedvendor_scoring_configs bool + vendor_risk_scores map[string]struct{} + removedvendor_risk_scores map[string]struct{} + clearedvendor_risk_scores bool + members map[string]struct{} + removedmembers map[string]struct{} + clearedmembers bool + done bool + oldValue func(context.Context) (*Organization, error) + predicates []predicate.Organization } var _ ent.Mutation = (*OrganizationMutation)(nil) @@ -157295,220 +157463,166 @@ func (m *OrganizationMutation) ResetStripeCustomerID() { delete(m.clearedFields, organization.FieldStripeCustomerID) } -// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddControlCreatorIDs(ids ...string) { - if m.control_creators == nil { - m.control_creators = make(map[string]struct{}) - } - for i := range ids { - m.control_creators[ids[i]] = struct{}{} - } -} - -// ClearControlCreators clears the "control_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearControlCreators() { - m.clearedcontrol_creators = true -} - -// ControlCreatorsCleared reports if the "control_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ControlCreatorsCleared() bool { - return m.clearedcontrol_creators -} - -// RemoveControlCreatorIDs removes the "control_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveControlCreatorIDs(ids ...string) { - if m.removedcontrol_creators == nil { - m.removedcontrol_creators = make(map[string]struct{}) - } - for i := range ids { - delete(m.control_creators, ids[i]) - m.removedcontrol_creators[ids[i]] = struct{}{} - } -} - -// RemovedControlCreators returns the removed IDs of the "control_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedControlCreatorsIDs() (ids []string) { - for id := range m.removedcontrol_creators { - ids = append(ids, id) - } - return -} - -// ControlCreatorsIDs returns the "control_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ControlCreatorsIDs() (ids []string) { - for id := range m.control_creators { - ids = append(ids, id) - } - return -} - -// ResetControlCreators resets all changes to the "control_creators" edge. -func (m *OrganizationMutation) ResetControlCreators() { - m.control_creators = nil - m.clearedcontrol_creators = false - m.removedcontrol_creators = nil -} - -// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddControlImplementationCreatorIDs(ids ...string) { - if m.control_implementation_creators == nil { - m.control_implementation_creators = make(map[string]struct{}) +// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddActionPlanCreatorIDs(ids ...string) { + if m.action_plan_creators == nil { + m.action_plan_creators = make(map[string]struct{}) } for i := range ids { - m.control_implementation_creators[ids[i]] = struct{}{} + m.action_plan_creators[ids[i]] = struct{}{} } } -// ClearControlImplementationCreators clears the "control_implementation_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearControlImplementationCreators() { - m.clearedcontrol_implementation_creators = true +// ClearActionPlanCreators clears the "action_plan_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearActionPlanCreators() { + m.clearedaction_plan_creators = true } -// ControlImplementationCreatorsCleared reports if the "control_implementation_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ControlImplementationCreatorsCleared() bool { - return m.clearedcontrol_implementation_creators +// ActionPlanCreatorsCleared reports if the "action_plan_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ActionPlanCreatorsCleared() bool { + return m.clearedaction_plan_creators } -// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveControlImplementationCreatorIDs(ids ...string) { - if m.removedcontrol_implementation_creators == nil { - m.removedcontrol_implementation_creators = make(map[string]struct{}) +// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveActionPlanCreatorIDs(ids ...string) { + if m.removedaction_plan_creators == nil { + m.removedaction_plan_creators = make(map[string]struct{}) } for i := range ids { - delete(m.control_implementation_creators, ids[i]) - m.removedcontrol_implementation_creators[ids[i]] = struct{}{} + delete(m.action_plan_creators, ids[i]) + m.removedaction_plan_creators[ids[i]] = struct{}{} } } -// RemovedControlImplementationCreators returns the removed IDs of the "control_implementation_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedControlImplementationCreatorsIDs() (ids []string) { - for id := range m.removedcontrol_implementation_creators { +// RemovedActionPlanCreators returns the removed IDs of the "action_plan_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedActionPlanCreatorsIDs() (ids []string) { + for id := range m.removedaction_plan_creators { ids = append(ids, id) } return } -// ControlImplementationCreatorsIDs returns the "control_implementation_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ControlImplementationCreatorsIDs() (ids []string) { - for id := range m.control_implementation_creators { +// ActionPlanCreatorsIDs returns the "action_plan_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ActionPlanCreatorsIDs() (ids []string) { + for id := range m.action_plan_creators { ids = append(ids, id) } return } -// ResetControlImplementationCreators resets all changes to the "control_implementation_creators" edge. -func (m *OrganizationMutation) ResetControlImplementationCreators() { - m.control_implementation_creators = nil - m.clearedcontrol_implementation_creators = false - m.removedcontrol_implementation_creators = nil +// ResetActionPlanCreators resets all changes to the "action_plan_creators" edge. +func (m *OrganizationMutation) ResetActionPlanCreators() { + m.action_plan_creators = nil + m.clearedaction_plan_creators = false + m.removedaction_plan_creators = nil } -// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddControlObjectiveCreatorIDs(ids ...string) { - if m.control_objective_creators == nil { - m.control_objective_creators = make(map[string]struct{}) +// AddAPITokenCreatorIDs adds the "api_token_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddAPITokenCreatorIDs(ids ...string) { + if m.api_token_creators == nil { + m.api_token_creators = make(map[string]struct{}) } for i := range ids { - m.control_objective_creators[ids[i]] = struct{}{} + m.api_token_creators[ids[i]] = struct{}{} } } -// ClearControlObjectiveCreators clears the "control_objective_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearControlObjectiveCreators() { - m.clearedcontrol_objective_creators = true +// ClearAPITokenCreators clears the "api_token_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearAPITokenCreators() { + m.clearedapi_token_creators = true } -// ControlObjectiveCreatorsCleared reports if the "control_objective_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ControlObjectiveCreatorsCleared() bool { - return m.clearedcontrol_objective_creators +// APITokenCreatorsCleared reports if the "api_token_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) APITokenCreatorsCleared() bool { + return m.clearedapi_token_creators } -// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveControlObjectiveCreatorIDs(ids ...string) { - if m.removedcontrol_objective_creators == nil { - m.removedcontrol_objective_creators = make(map[string]struct{}) +// RemoveAPITokenCreatorIDs removes the "api_token_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveAPITokenCreatorIDs(ids ...string) { + if m.removedapi_token_creators == nil { + m.removedapi_token_creators = make(map[string]struct{}) } for i := range ids { - delete(m.control_objective_creators, ids[i]) - m.removedcontrol_objective_creators[ids[i]] = struct{}{} + delete(m.api_token_creators, ids[i]) + m.removedapi_token_creators[ids[i]] = struct{}{} } } -// RemovedControlObjectiveCreators returns the removed IDs of the "control_objective_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedControlObjectiveCreatorsIDs() (ids []string) { - for id := range m.removedcontrol_objective_creators { +// RemovedAPITokenCreators returns the removed IDs of the "api_token_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedAPITokenCreatorsIDs() (ids []string) { + for id := range m.removedapi_token_creators { ids = append(ids, id) } return } -// ControlObjectiveCreatorsIDs returns the "control_objective_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ControlObjectiveCreatorsIDs() (ids []string) { - for id := range m.control_objective_creators { +// APITokenCreatorsIDs returns the "api_token_creators" edge IDs in the mutation. +func (m *OrganizationMutation) APITokenCreatorsIDs() (ids []string) { + for id := range m.api_token_creators { ids = append(ids, id) } return } -// ResetControlObjectiveCreators resets all changes to the "control_objective_creators" edge. -func (m *OrganizationMutation) ResetControlObjectiveCreators() { - m.control_objective_creators = nil - m.clearedcontrol_objective_creators = false - m.removedcontrol_objective_creators = nil +// ResetAPITokenCreators resets all changes to the "api_token_creators" edge. +func (m *OrganizationMutation) ResetAPITokenCreators() { + m.api_token_creators = nil + m.clearedapi_token_creators = false + m.removedapi_token_creators = nil } -// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddEvidenceCreatorIDs(ids ...string) { - if m.evidence_creators == nil { - m.evidence_creators = make(map[string]struct{}) +// AddAssessmentCreatorIDs adds the "assessment_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddAssessmentCreatorIDs(ids ...string) { + if m.assessment_creators == nil { + m.assessment_creators = make(map[string]struct{}) } for i := range ids { - m.evidence_creators[ids[i]] = struct{}{} + m.assessment_creators[ids[i]] = struct{}{} } } -// ClearEvidenceCreators clears the "evidence_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearEvidenceCreators() { - m.clearedevidence_creators = true +// ClearAssessmentCreators clears the "assessment_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearAssessmentCreators() { + m.clearedassessment_creators = true } -// EvidenceCreatorsCleared reports if the "evidence_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) EvidenceCreatorsCleared() bool { - return m.clearedevidence_creators +// AssessmentCreatorsCleared reports if the "assessment_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) AssessmentCreatorsCleared() bool { + return m.clearedassessment_creators } -// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveEvidenceCreatorIDs(ids ...string) { - if m.removedevidence_creators == nil { - m.removedevidence_creators = make(map[string]struct{}) +// RemoveAssessmentCreatorIDs removes the "assessment_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveAssessmentCreatorIDs(ids ...string) { + if m.removedassessment_creators == nil { + m.removedassessment_creators = make(map[string]struct{}) } for i := range ids { - delete(m.evidence_creators, ids[i]) - m.removedevidence_creators[ids[i]] = struct{}{} + delete(m.assessment_creators, ids[i]) + m.removedassessment_creators[ids[i]] = struct{}{} } } -// RemovedEvidenceCreators returns the removed IDs of the "evidence_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedEvidenceCreatorsIDs() (ids []string) { - for id := range m.removedevidence_creators { +// RemovedAssessmentCreators returns the removed IDs of the "assessment_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedAssessmentCreatorsIDs() (ids []string) { + for id := range m.removedassessment_creators { ids = append(ids, id) } return } -// EvidenceCreatorsIDs returns the "evidence_creators" edge IDs in the mutation. -func (m *OrganizationMutation) EvidenceCreatorsIDs() (ids []string) { - for id := range m.evidence_creators { +// AssessmentCreatorsIDs returns the "assessment_creators" edge IDs in the mutation. +func (m *OrganizationMutation) AssessmentCreatorsIDs() (ids []string) { + for id := range m.assessment_creators { ids = append(ids, id) } return } -// ResetEvidenceCreators resets all changes to the "evidence_creators" edge. -func (m *OrganizationMutation) ResetEvidenceCreators() { - m.evidence_creators = nil - m.clearedevidence_creators = false - m.removedevidence_creators = nil +// ResetAssessmentCreators resets all changes to the "assessment_creators" edge. +func (m *OrganizationMutation) ResetAssessmentCreators() { + m.assessment_creators = nil + m.clearedassessment_creators = false + m.removedassessment_creators = nil } // AddAssetCreatorIDs adds the "asset_creators" edge to the Group entity by ids. @@ -157565,58 +157679,3136 @@ func (m *OrganizationMutation) ResetAssetCreators() { m.removedasset_creators = nil } -// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddFindingCreatorIDs(ids ...string) { - if m.finding_creators == nil { - m.finding_creators = make(map[string]struct{}) +// AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddCampaignCreatorIDs(ids ...string) { + if m.campaign_creators == nil { + m.campaign_creators = make(map[string]struct{}) } for i := range ids { - m.finding_creators[ids[i]] = struct{}{} + m.campaign_creators[ids[i]] = struct{}{} } } -// ClearFindingCreators clears the "finding_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearFindingCreators() { - m.clearedfinding_creators = true +// ClearCampaignCreators clears the "campaign_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearCampaignCreators() { + m.clearedcampaign_creators = true } -// FindingCreatorsCleared reports if the "finding_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) FindingCreatorsCleared() bool { - return m.clearedfinding_creators +// CampaignCreatorsCleared reports if the "campaign_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) CampaignCreatorsCleared() bool { + return m.clearedcampaign_creators } -// RemoveFindingCreatorIDs removes the "finding_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveFindingCreatorIDs(ids ...string) { - if m.removedfinding_creators == nil { - m.removedfinding_creators = make(map[string]struct{}) +// RemoveCampaignCreatorIDs removes the "campaign_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveCampaignCreatorIDs(ids ...string) { + if m.removedcampaign_creators == nil { + m.removedcampaign_creators = make(map[string]struct{}) } for i := range ids { - delete(m.finding_creators, ids[i]) - m.removedfinding_creators[ids[i]] = struct{}{} + delete(m.campaign_creators, ids[i]) + m.removedcampaign_creators[ids[i]] = struct{}{} } } -// RemovedFindingCreators returns the removed IDs of the "finding_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedFindingCreatorsIDs() (ids []string) { - for id := range m.removedfinding_creators { +// RemovedCampaignCreators returns the removed IDs of the "campaign_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedCampaignCreatorsIDs() (ids []string) { + for id := range m.removedcampaign_creators { ids = append(ids, id) } return } -// FindingCreatorsIDs returns the "finding_creators" edge IDs in the mutation. -func (m *OrganizationMutation) FindingCreatorsIDs() (ids []string) { - for id := range m.finding_creators { +// CampaignCreatorsIDs returns the "campaign_creators" edge IDs in the mutation. +func (m *OrganizationMutation) CampaignCreatorsIDs() (ids []string) { + for id := range m.campaign_creators { ids = append(ids, id) } return } -// ResetFindingCreators resets all changes to the "finding_creators" edge. -func (m *OrganizationMutation) ResetFindingCreators() { - m.finding_creators = nil - m.clearedfinding_creators = false - m.removedfinding_creators = nil +// ResetCampaignCreators resets all changes to the "campaign_creators" edge. +func (m *OrganizationMutation) ResetCampaignCreators() { + m.campaign_creators = nil + m.clearedcampaign_creators = false + m.removedcampaign_creators = nil +} + +// AddCampaignTargetCreatorIDs adds the "campaign_target_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddCampaignTargetCreatorIDs(ids ...string) { + if m.campaign_target_creators == nil { + m.campaign_target_creators = make(map[string]struct{}) + } + for i := range ids { + m.campaign_target_creators[ids[i]] = struct{}{} + } +} + +// ClearCampaignTargetCreators clears the "campaign_target_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearCampaignTargetCreators() { + m.clearedcampaign_target_creators = true +} + +// CampaignTargetCreatorsCleared reports if the "campaign_target_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) CampaignTargetCreatorsCleared() bool { + return m.clearedcampaign_target_creators +} + +// RemoveCampaignTargetCreatorIDs removes the "campaign_target_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveCampaignTargetCreatorIDs(ids ...string) { + if m.removedcampaign_target_creators == nil { + m.removedcampaign_target_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.campaign_target_creators, ids[i]) + m.removedcampaign_target_creators[ids[i]] = struct{}{} + } +} + +// RemovedCampaignTargetCreators returns the removed IDs of the "campaign_target_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedCampaignTargetCreatorsIDs() (ids []string) { + for id := range m.removedcampaign_target_creators { + ids = append(ids, id) + } + return +} + +// CampaignTargetCreatorsIDs returns the "campaign_target_creators" edge IDs in the mutation. +func (m *OrganizationMutation) CampaignTargetCreatorsIDs() (ids []string) { + for id := range m.campaign_target_creators { + ids = append(ids, id) + } + return +} + +// ResetCampaignTargetCreators resets all changes to the "campaign_target_creators" edge. +func (m *OrganizationMutation) ResetCampaignTargetCreators() { + m.campaign_target_creators = nil + m.clearedcampaign_target_creators = false + m.removedcampaign_target_creators = nil +} + +// AddCheckResultCreatorIDs adds the "check_result_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddCheckResultCreatorIDs(ids ...string) { + if m.check_result_creators == nil { + m.check_result_creators = make(map[string]struct{}) + } + for i := range ids { + m.check_result_creators[ids[i]] = struct{}{} + } +} + +// ClearCheckResultCreators clears the "check_result_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearCheckResultCreators() { + m.clearedcheck_result_creators = true +} + +// CheckResultCreatorsCleared reports if the "check_result_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) CheckResultCreatorsCleared() bool { + return m.clearedcheck_result_creators +} + +// RemoveCheckResultCreatorIDs removes the "check_result_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveCheckResultCreatorIDs(ids ...string) { + if m.removedcheck_result_creators == nil { + m.removedcheck_result_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.check_result_creators, ids[i]) + m.removedcheck_result_creators[ids[i]] = struct{}{} + } +} + +// RemovedCheckResultCreators returns the removed IDs of the "check_result_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedCheckResultCreatorsIDs() (ids []string) { + for id := range m.removedcheck_result_creators { + ids = append(ids, id) + } + return +} + +// CheckResultCreatorsIDs returns the "check_result_creators" edge IDs in the mutation. +func (m *OrganizationMutation) CheckResultCreatorsIDs() (ids []string) { + for id := range m.check_result_creators { + ids = append(ids, id) + } + return +} + +// ResetCheckResultCreators resets all changes to the "check_result_creators" edge. +func (m *OrganizationMutation) ResetCheckResultCreators() { + m.check_result_creators = nil + m.clearedcheck_result_creators = false + m.removedcheck_result_creators = nil +} + +// AddContactCreatorIDs adds the "contact_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddContactCreatorIDs(ids ...string) { + if m.contact_creators == nil { + m.contact_creators = make(map[string]struct{}) + } + for i := range ids { + m.contact_creators[ids[i]] = struct{}{} + } +} + +// ClearContactCreators clears the "contact_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearContactCreators() { + m.clearedcontact_creators = true +} + +// ContactCreatorsCleared reports if the "contact_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ContactCreatorsCleared() bool { + return m.clearedcontact_creators +} + +// RemoveContactCreatorIDs removes the "contact_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveContactCreatorIDs(ids ...string) { + if m.removedcontact_creators == nil { + m.removedcontact_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.contact_creators, ids[i]) + m.removedcontact_creators[ids[i]] = struct{}{} + } +} + +// RemovedContactCreators returns the removed IDs of the "contact_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedContactCreatorsIDs() (ids []string) { + for id := range m.removedcontact_creators { + ids = append(ids, id) + } + return +} + +// ContactCreatorsIDs returns the "contact_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ContactCreatorsIDs() (ids []string) { + for id := range m.contact_creators { + ids = append(ids, id) + } + return +} + +// ResetContactCreators resets all changes to the "contact_creators" edge. +func (m *OrganizationMutation) ResetContactCreators() { + m.contact_creators = nil + m.clearedcontact_creators = false + m.removedcontact_creators = nil +} + +// AddControlCreatorIDs adds the "control_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddControlCreatorIDs(ids ...string) { + if m.control_creators == nil { + m.control_creators = make(map[string]struct{}) + } + for i := range ids { + m.control_creators[ids[i]] = struct{}{} + } +} + +// ClearControlCreators clears the "control_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearControlCreators() { + m.clearedcontrol_creators = true +} + +// ControlCreatorsCleared reports if the "control_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ControlCreatorsCleared() bool { + return m.clearedcontrol_creators +} + +// RemoveControlCreatorIDs removes the "control_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveControlCreatorIDs(ids ...string) { + if m.removedcontrol_creators == nil { + m.removedcontrol_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.control_creators, ids[i]) + m.removedcontrol_creators[ids[i]] = struct{}{} + } +} + +// RemovedControlCreators returns the removed IDs of the "control_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedControlCreatorsIDs() (ids []string) { + for id := range m.removedcontrol_creators { + ids = append(ids, id) + } + return +} + +// ControlCreatorsIDs returns the "control_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ControlCreatorsIDs() (ids []string) { + for id := range m.control_creators { + ids = append(ids, id) + } + return +} + +// ResetControlCreators resets all changes to the "control_creators" edge. +func (m *OrganizationMutation) ResetControlCreators() { + m.control_creators = nil + m.clearedcontrol_creators = false + m.removedcontrol_creators = nil +} + +// AddControlImplementationCreatorIDs adds the "control_implementation_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddControlImplementationCreatorIDs(ids ...string) { + if m.control_implementation_creators == nil { + m.control_implementation_creators = make(map[string]struct{}) + } + for i := range ids { + m.control_implementation_creators[ids[i]] = struct{}{} + } +} + +// ClearControlImplementationCreators clears the "control_implementation_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearControlImplementationCreators() { + m.clearedcontrol_implementation_creators = true +} + +// ControlImplementationCreatorsCleared reports if the "control_implementation_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ControlImplementationCreatorsCleared() bool { + return m.clearedcontrol_implementation_creators +} + +// RemoveControlImplementationCreatorIDs removes the "control_implementation_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveControlImplementationCreatorIDs(ids ...string) { + if m.removedcontrol_implementation_creators == nil { + m.removedcontrol_implementation_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.control_implementation_creators, ids[i]) + m.removedcontrol_implementation_creators[ids[i]] = struct{}{} + } +} + +// RemovedControlImplementationCreators returns the removed IDs of the "control_implementation_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedControlImplementationCreatorsIDs() (ids []string) { + for id := range m.removedcontrol_implementation_creators { + ids = append(ids, id) + } + return +} + +// ControlImplementationCreatorsIDs returns the "control_implementation_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ControlImplementationCreatorsIDs() (ids []string) { + for id := range m.control_implementation_creators { + ids = append(ids, id) + } + return +} + +// ResetControlImplementationCreators resets all changes to the "control_implementation_creators" edge. +func (m *OrganizationMutation) ResetControlImplementationCreators() { + m.control_implementation_creators = nil + m.clearedcontrol_implementation_creators = false + m.removedcontrol_implementation_creators = nil +} + +// AddControlObjectiveCreatorIDs adds the "control_objective_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddControlObjectiveCreatorIDs(ids ...string) { + if m.control_objective_creators == nil { + m.control_objective_creators = make(map[string]struct{}) + } + for i := range ids { + m.control_objective_creators[ids[i]] = struct{}{} + } +} + +// ClearControlObjectiveCreators clears the "control_objective_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearControlObjectiveCreators() { + m.clearedcontrol_objective_creators = true +} + +// ControlObjectiveCreatorsCleared reports if the "control_objective_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ControlObjectiveCreatorsCleared() bool { + return m.clearedcontrol_objective_creators +} + +// RemoveControlObjectiveCreatorIDs removes the "control_objective_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveControlObjectiveCreatorIDs(ids ...string) { + if m.removedcontrol_objective_creators == nil { + m.removedcontrol_objective_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.control_objective_creators, ids[i]) + m.removedcontrol_objective_creators[ids[i]] = struct{}{} + } +} + +// RemovedControlObjectiveCreators returns the removed IDs of the "control_objective_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedControlObjectiveCreatorsIDs() (ids []string) { + for id := range m.removedcontrol_objective_creators { + ids = append(ids, id) + } + return +} + +// ControlObjectiveCreatorsIDs returns the "control_objective_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ControlObjectiveCreatorsIDs() (ids []string) { + for id := range m.control_objective_creators { + ids = append(ids, id) + } + return +} + +// ResetControlObjectiveCreators resets all changes to the "control_objective_creators" edge. +func (m *OrganizationMutation) ResetControlObjectiveCreators() { + m.control_objective_creators = nil + m.clearedcontrol_objective_creators = false + m.removedcontrol_objective_creators = nil +} + +// AddCustomTypeEnumCreatorIDs adds the "custom_type_enum_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddCustomTypeEnumCreatorIDs(ids ...string) { + if m.custom_type_enum_creators == nil { + m.custom_type_enum_creators = make(map[string]struct{}) + } + for i := range ids { + m.custom_type_enum_creators[ids[i]] = struct{}{} + } +} + +// ClearCustomTypeEnumCreators clears the "custom_type_enum_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearCustomTypeEnumCreators() { + m.clearedcustom_type_enum_creators = true +} + +// CustomTypeEnumCreatorsCleared reports if the "custom_type_enum_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) CustomTypeEnumCreatorsCleared() bool { + return m.clearedcustom_type_enum_creators +} + +// RemoveCustomTypeEnumCreatorIDs removes the "custom_type_enum_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveCustomTypeEnumCreatorIDs(ids ...string) { + if m.removedcustom_type_enum_creators == nil { + m.removedcustom_type_enum_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.custom_type_enum_creators, ids[i]) + m.removedcustom_type_enum_creators[ids[i]] = struct{}{} + } +} + +// RemovedCustomTypeEnumCreators returns the removed IDs of the "custom_type_enum_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedCustomTypeEnumCreatorsIDs() (ids []string) { + for id := range m.removedcustom_type_enum_creators { + ids = append(ids, id) + } + return +} + +// CustomTypeEnumCreatorsIDs returns the "custom_type_enum_creators" edge IDs in the mutation. +func (m *OrganizationMutation) CustomTypeEnumCreatorsIDs() (ids []string) { + for id := range m.custom_type_enum_creators { + ids = append(ids, id) + } + return +} + +// ResetCustomTypeEnumCreators resets all changes to the "custom_type_enum_creators" edge. +func (m *OrganizationMutation) ResetCustomTypeEnumCreators() { + m.custom_type_enum_creators = nil + m.clearedcustom_type_enum_creators = false + m.removedcustom_type_enum_creators = nil +} + +// AddDiscussionCreatorIDs adds the "discussion_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddDiscussionCreatorIDs(ids ...string) { + if m.discussion_creators == nil { + m.discussion_creators = make(map[string]struct{}) + } + for i := range ids { + m.discussion_creators[ids[i]] = struct{}{} + } +} + +// ClearDiscussionCreators clears the "discussion_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearDiscussionCreators() { + m.cleareddiscussion_creators = true +} + +// DiscussionCreatorsCleared reports if the "discussion_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) DiscussionCreatorsCleared() bool { + return m.cleareddiscussion_creators +} + +// RemoveDiscussionCreatorIDs removes the "discussion_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveDiscussionCreatorIDs(ids ...string) { + if m.removeddiscussion_creators == nil { + m.removeddiscussion_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.discussion_creators, ids[i]) + m.removeddiscussion_creators[ids[i]] = struct{}{} + } +} + +// RemovedDiscussionCreators returns the removed IDs of the "discussion_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedDiscussionCreatorsIDs() (ids []string) { + for id := range m.removeddiscussion_creators { + ids = append(ids, id) + } + return +} + +// DiscussionCreatorsIDs returns the "discussion_creators" edge IDs in the mutation. +func (m *OrganizationMutation) DiscussionCreatorsIDs() (ids []string) { + for id := range m.discussion_creators { + ids = append(ids, id) + } + return +} + +// ResetDiscussionCreators resets all changes to the "discussion_creators" edge. +func (m *OrganizationMutation) ResetDiscussionCreators() { + m.discussion_creators = nil + m.cleareddiscussion_creators = false + m.removeddiscussion_creators = nil +} + +// AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddEmailTemplateCreatorIDs(ids ...string) { + if m.email_template_creators == nil { + m.email_template_creators = make(map[string]struct{}) + } + for i := range ids { + m.email_template_creators[ids[i]] = struct{}{} + } +} + +// ClearEmailTemplateCreators clears the "email_template_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearEmailTemplateCreators() { + m.clearedemail_template_creators = true +} + +// EmailTemplateCreatorsCleared reports if the "email_template_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) EmailTemplateCreatorsCleared() bool { + return m.clearedemail_template_creators +} + +// RemoveEmailTemplateCreatorIDs removes the "email_template_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveEmailTemplateCreatorIDs(ids ...string) { + if m.removedemail_template_creators == nil { + m.removedemail_template_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.email_template_creators, ids[i]) + m.removedemail_template_creators[ids[i]] = struct{}{} + } +} + +// RemovedEmailTemplateCreators returns the removed IDs of the "email_template_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedEmailTemplateCreatorsIDs() (ids []string) { + for id := range m.removedemail_template_creators { + ids = append(ids, id) + } + return +} + +// EmailTemplateCreatorsIDs returns the "email_template_creators" edge IDs in the mutation. +func (m *OrganizationMutation) EmailTemplateCreatorsIDs() (ids []string) { + for id := range m.email_template_creators { + ids = append(ids, id) + } + return +} + +// ResetEmailTemplateCreators resets all changes to the "email_template_creators" edge. +func (m *OrganizationMutation) ResetEmailTemplateCreators() { + m.email_template_creators = nil + m.clearedemail_template_creators = false + m.removedemail_template_creators = nil +} + +// AddEntityCreatorIDs adds the "entity_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddEntityCreatorIDs(ids ...string) { + if m.entity_creators == nil { + m.entity_creators = make(map[string]struct{}) + } + for i := range ids { + m.entity_creators[ids[i]] = struct{}{} + } +} + +// ClearEntityCreators clears the "entity_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearEntityCreators() { + m.clearedentity_creators = true +} + +// EntityCreatorsCleared reports if the "entity_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) EntityCreatorsCleared() bool { + return m.clearedentity_creators +} + +// RemoveEntityCreatorIDs removes the "entity_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveEntityCreatorIDs(ids ...string) { + if m.removedentity_creators == nil { + m.removedentity_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.entity_creators, ids[i]) + m.removedentity_creators[ids[i]] = struct{}{} + } +} + +// RemovedEntityCreators returns the removed IDs of the "entity_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedEntityCreatorsIDs() (ids []string) { + for id := range m.removedentity_creators { + ids = append(ids, id) + } + return +} + +// EntityCreatorsIDs returns the "entity_creators" edge IDs in the mutation. +func (m *OrganizationMutation) EntityCreatorsIDs() (ids []string) { + for id := range m.entity_creators { + ids = append(ids, id) + } + return +} + +// ResetEntityCreators resets all changes to the "entity_creators" edge. +func (m *OrganizationMutation) ResetEntityCreators() { + m.entity_creators = nil + m.clearedentity_creators = false + m.removedentity_creators = nil +} + +// AddEntityTypeCreatorIDs adds the "entity_type_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddEntityTypeCreatorIDs(ids ...string) { + if m.entity_type_creators == nil { + m.entity_type_creators = make(map[string]struct{}) + } + for i := range ids { + m.entity_type_creators[ids[i]] = struct{}{} + } +} + +// ClearEntityTypeCreators clears the "entity_type_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearEntityTypeCreators() { + m.clearedentity_type_creators = true +} + +// EntityTypeCreatorsCleared reports if the "entity_type_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) EntityTypeCreatorsCleared() bool { + return m.clearedentity_type_creators +} + +// RemoveEntityTypeCreatorIDs removes the "entity_type_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveEntityTypeCreatorIDs(ids ...string) { + if m.removedentity_type_creators == nil { + m.removedentity_type_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.entity_type_creators, ids[i]) + m.removedentity_type_creators[ids[i]] = struct{}{} + } +} + +// RemovedEntityTypeCreators returns the removed IDs of the "entity_type_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedEntityTypeCreatorsIDs() (ids []string) { + for id := range m.removedentity_type_creators { + ids = append(ids, id) + } + return +} + +// EntityTypeCreatorsIDs returns the "entity_type_creators" edge IDs in the mutation. +func (m *OrganizationMutation) EntityTypeCreatorsIDs() (ids []string) { + for id := range m.entity_type_creators { + ids = append(ids, id) + } + return +} + +// ResetEntityTypeCreators resets all changes to the "entity_type_creators" edge. +func (m *OrganizationMutation) ResetEntityTypeCreators() { + m.entity_type_creators = nil + m.clearedentity_type_creators = false + m.removedentity_type_creators = nil +} + +// AddEvidenceCreatorIDs adds the "evidence_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddEvidenceCreatorIDs(ids ...string) { + if m.evidence_creators == nil { + m.evidence_creators = make(map[string]struct{}) + } + for i := range ids { + m.evidence_creators[ids[i]] = struct{}{} + } +} + +// ClearEvidenceCreators clears the "evidence_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearEvidenceCreators() { + m.clearedevidence_creators = true +} + +// EvidenceCreatorsCleared reports if the "evidence_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) EvidenceCreatorsCleared() bool { + return m.clearedevidence_creators +} + +// RemoveEvidenceCreatorIDs removes the "evidence_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveEvidenceCreatorIDs(ids ...string) { + if m.removedevidence_creators == nil { + m.removedevidence_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.evidence_creators, ids[i]) + m.removedevidence_creators[ids[i]] = struct{}{} + } +} + +// RemovedEvidenceCreators returns the removed IDs of the "evidence_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedEvidenceCreatorsIDs() (ids []string) { + for id := range m.removedevidence_creators { + ids = append(ids, id) + } + return +} + +// EvidenceCreatorsIDs returns the "evidence_creators" edge IDs in the mutation. +func (m *OrganizationMutation) EvidenceCreatorsIDs() (ids []string) { + for id := range m.evidence_creators { + ids = append(ids, id) + } + return +} + +// ResetEvidenceCreators resets all changes to the "evidence_creators" edge. +func (m *OrganizationMutation) ResetEvidenceCreators() { + m.evidence_creators = nil + m.clearedevidence_creators = false + m.removedevidence_creators = nil +} + +// AddExportCreatorIDs adds the "export_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddExportCreatorIDs(ids ...string) { + if m.export_creators == nil { + m.export_creators = make(map[string]struct{}) + } + for i := range ids { + m.export_creators[ids[i]] = struct{}{} + } +} + +// ClearExportCreators clears the "export_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearExportCreators() { + m.clearedexport_creators = true +} + +// ExportCreatorsCleared reports if the "export_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ExportCreatorsCleared() bool { + return m.clearedexport_creators +} + +// RemoveExportCreatorIDs removes the "export_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveExportCreatorIDs(ids ...string) { + if m.removedexport_creators == nil { + m.removedexport_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.export_creators, ids[i]) + m.removedexport_creators[ids[i]] = struct{}{} + } +} + +// RemovedExportCreators returns the removed IDs of the "export_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedExportCreatorsIDs() (ids []string) { + for id := range m.removedexport_creators { + ids = append(ids, id) + } + return +} + +// ExportCreatorsIDs returns the "export_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ExportCreatorsIDs() (ids []string) { + for id := range m.export_creators { + ids = append(ids, id) + } + return +} + +// ResetExportCreators resets all changes to the "export_creators" edge. +func (m *OrganizationMutation) ResetExportCreators() { + m.export_creators = nil + m.clearedexport_creators = false + m.removedexport_creators = nil +} + +// AddFileCreatorIDs adds the "file_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddFileCreatorIDs(ids ...string) { + if m.file_creators == nil { + m.file_creators = make(map[string]struct{}) + } + for i := range ids { + m.file_creators[ids[i]] = struct{}{} + } +} + +// ClearFileCreators clears the "file_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearFileCreators() { + m.clearedfile_creators = true +} + +// FileCreatorsCleared reports if the "file_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) FileCreatorsCleared() bool { + return m.clearedfile_creators +} + +// RemoveFileCreatorIDs removes the "file_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveFileCreatorIDs(ids ...string) { + if m.removedfile_creators == nil { + m.removedfile_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.file_creators, ids[i]) + m.removedfile_creators[ids[i]] = struct{}{} + } +} + +// RemovedFileCreators returns the removed IDs of the "file_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedFileCreatorsIDs() (ids []string) { + for id := range m.removedfile_creators { + ids = append(ids, id) + } + return +} + +// FileCreatorsIDs returns the "file_creators" edge IDs in the mutation. +func (m *OrganizationMutation) FileCreatorsIDs() (ids []string) { + for id := range m.file_creators { + ids = append(ids, id) + } + return +} + +// ResetFileCreators resets all changes to the "file_creators" edge. +func (m *OrganizationMutation) ResetFileCreators() { + m.file_creators = nil + m.clearedfile_creators = false + m.removedfile_creators = nil +} + +// AddFindingCreatorIDs adds the "finding_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddFindingCreatorIDs(ids ...string) { + if m.finding_creators == nil { + m.finding_creators = make(map[string]struct{}) + } + for i := range ids { + m.finding_creators[ids[i]] = struct{}{} + } +} + +// ClearFindingCreators clears the "finding_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearFindingCreators() { + m.clearedfinding_creators = true +} + +// FindingCreatorsCleared reports if the "finding_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) FindingCreatorsCleared() bool { + return m.clearedfinding_creators +} + +// RemoveFindingCreatorIDs removes the "finding_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveFindingCreatorIDs(ids ...string) { + if m.removedfinding_creators == nil { + m.removedfinding_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.finding_creators, ids[i]) + m.removedfinding_creators[ids[i]] = struct{}{} + } +} + +// RemovedFindingCreators returns the removed IDs of the "finding_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedFindingCreatorsIDs() (ids []string) { + for id := range m.removedfinding_creators { + ids = append(ids, id) + } + return +} + +// FindingCreatorsIDs returns the "finding_creators" edge IDs in the mutation. +func (m *OrganizationMutation) FindingCreatorsIDs() (ids []string) { + for id := range m.finding_creators { + ids = append(ids, id) + } + return +} + +// ResetFindingCreators resets all changes to the "finding_creators" edge. +func (m *OrganizationMutation) ResetFindingCreators() { + m.finding_creators = nil + m.clearedfinding_creators = false + m.removedfinding_creators = nil +} + +// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddGroupCreatorIDs(ids ...string) { + if m.group_creators == nil { + m.group_creators = make(map[string]struct{}) + } + for i := range ids { + m.group_creators[ids[i]] = struct{}{} + } +} + +// ClearGroupCreators clears the "group_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearGroupCreators() { + m.clearedgroup_creators = true +} + +// GroupCreatorsCleared reports if the "group_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) GroupCreatorsCleared() bool { + return m.clearedgroup_creators +} + +// RemoveGroupCreatorIDs removes the "group_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveGroupCreatorIDs(ids ...string) { + if m.removedgroup_creators == nil { + m.removedgroup_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.group_creators, ids[i]) + m.removedgroup_creators[ids[i]] = struct{}{} + } +} + +// RemovedGroupCreators returns the removed IDs of the "group_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedGroupCreatorsIDs() (ids []string) { + for id := range m.removedgroup_creators { + ids = append(ids, id) + } + return +} + +// GroupCreatorsIDs returns the "group_creators" edge IDs in the mutation. +func (m *OrganizationMutation) GroupCreatorsIDs() (ids []string) { + for id := range m.group_creators { + ids = append(ids, id) + } + return +} + +// ResetGroupCreators resets all changes to the "group_creators" edge. +func (m *OrganizationMutation) ResetGroupCreators() { + m.group_creators = nil + m.clearedgroup_creators = false + m.removedgroup_creators = nil +} + +// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddIdentityHolderCreatorIDs(ids ...string) { + if m.identity_holder_creators == nil { + m.identity_holder_creators = make(map[string]struct{}) + } + for i := range ids { + m.identity_holder_creators[ids[i]] = struct{}{} + } +} + +// ClearIdentityHolderCreators clears the "identity_holder_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearIdentityHolderCreators() { + m.clearedidentity_holder_creators = true +} + +// IdentityHolderCreatorsCleared reports if the "identity_holder_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) IdentityHolderCreatorsCleared() bool { + return m.clearedidentity_holder_creators +} + +// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveIdentityHolderCreatorIDs(ids ...string) { + if m.removedidentity_holder_creators == nil { + m.removedidentity_holder_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.identity_holder_creators, ids[i]) + m.removedidentity_holder_creators[ids[i]] = struct{}{} + } +} + +// RemovedIdentityHolderCreators returns the removed IDs of the "identity_holder_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedIdentityHolderCreatorsIDs() (ids []string) { + for id := range m.removedidentity_holder_creators { + ids = append(ids, id) + } + return +} + +// IdentityHolderCreatorsIDs returns the "identity_holder_creators" edge IDs in the mutation. +func (m *OrganizationMutation) IdentityHolderCreatorsIDs() (ids []string) { + for id := range m.identity_holder_creators { + ids = append(ids, id) + } + return +} + +// ResetIdentityHolderCreators resets all changes to the "identity_holder_creators" edge. +func (m *OrganizationMutation) ResetIdentityHolderCreators() { + m.identity_holder_creators = nil + m.clearedidentity_holder_creators = false + m.removedidentity_holder_creators = nil +} + +// AddIntegrationCreatorIDs adds the "integration_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddIntegrationCreatorIDs(ids ...string) { + if m.integration_creators == nil { + m.integration_creators = make(map[string]struct{}) + } + for i := range ids { + m.integration_creators[ids[i]] = struct{}{} + } +} + +// ClearIntegrationCreators clears the "integration_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearIntegrationCreators() { + m.clearedintegration_creators = true +} + +// IntegrationCreatorsCleared reports if the "integration_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) IntegrationCreatorsCleared() bool { + return m.clearedintegration_creators +} + +// RemoveIntegrationCreatorIDs removes the "integration_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveIntegrationCreatorIDs(ids ...string) { + if m.removedintegration_creators == nil { + m.removedintegration_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.integration_creators, ids[i]) + m.removedintegration_creators[ids[i]] = struct{}{} + } +} + +// RemovedIntegrationCreators returns the removed IDs of the "integration_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedIntegrationCreatorsIDs() (ids []string) { + for id := range m.removedintegration_creators { + ids = append(ids, id) + } + return +} + +// IntegrationCreatorsIDs returns the "integration_creators" edge IDs in the mutation. +func (m *OrganizationMutation) IntegrationCreatorsIDs() (ids []string) { + for id := range m.integration_creators { + ids = append(ids, id) + } + return +} + +// ResetIntegrationCreators resets all changes to the "integration_creators" edge. +func (m *OrganizationMutation) ResetIntegrationCreators() { + m.integration_creators = nil + m.clearedintegration_creators = false + m.removedintegration_creators = nil +} + +// AddIntegrationWebhookCreatorIDs adds the "integration_webhook_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddIntegrationWebhookCreatorIDs(ids ...string) { + if m.integration_webhook_creators == nil { + m.integration_webhook_creators = make(map[string]struct{}) + } + for i := range ids { + m.integration_webhook_creators[ids[i]] = struct{}{} + } +} + +// ClearIntegrationWebhookCreators clears the "integration_webhook_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearIntegrationWebhookCreators() { + m.clearedintegration_webhook_creators = true +} + +// IntegrationWebhookCreatorsCleared reports if the "integration_webhook_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) IntegrationWebhookCreatorsCleared() bool { + return m.clearedintegration_webhook_creators +} + +// RemoveIntegrationWebhookCreatorIDs removes the "integration_webhook_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveIntegrationWebhookCreatorIDs(ids ...string) { + if m.removedintegration_webhook_creators == nil { + m.removedintegration_webhook_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.integration_webhook_creators, ids[i]) + m.removedintegration_webhook_creators[ids[i]] = struct{}{} + } +} + +// RemovedIntegrationWebhookCreators returns the removed IDs of the "integration_webhook_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedIntegrationWebhookCreatorsIDs() (ids []string) { + for id := range m.removedintegration_webhook_creators { + ids = append(ids, id) + } + return +} + +// IntegrationWebhookCreatorsIDs returns the "integration_webhook_creators" edge IDs in the mutation. +func (m *OrganizationMutation) IntegrationWebhookCreatorsIDs() (ids []string) { + for id := range m.integration_webhook_creators { + ids = append(ids, id) + } + return +} + +// ResetIntegrationWebhookCreators resets all changes to the "integration_webhook_creators" edge. +func (m *OrganizationMutation) ResetIntegrationWebhookCreators() { + m.integration_webhook_creators = nil + m.clearedintegration_webhook_creators = false + m.removedintegration_webhook_creators = nil +} + +// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddInternalPolicyCreatorIDs(ids ...string) { + if m.internal_policy_creators == nil { + m.internal_policy_creators = make(map[string]struct{}) + } + for i := range ids { + m.internal_policy_creators[ids[i]] = struct{}{} + } +} + +// ClearInternalPolicyCreators clears the "internal_policy_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearInternalPolicyCreators() { + m.clearedinternal_policy_creators = true +} + +// InternalPolicyCreatorsCleared reports if the "internal_policy_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) InternalPolicyCreatorsCleared() bool { + return m.clearedinternal_policy_creators +} + +// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveInternalPolicyCreatorIDs(ids ...string) { + if m.removedinternal_policy_creators == nil { + m.removedinternal_policy_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.internal_policy_creators, ids[i]) + m.removedinternal_policy_creators[ids[i]] = struct{}{} + } +} + +// RemovedInternalPolicyCreators returns the removed IDs of the "internal_policy_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedInternalPolicyCreatorsIDs() (ids []string) { + for id := range m.removedinternal_policy_creators { + ids = append(ids, id) + } + return +} + +// InternalPolicyCreatorsIDs returns the "internal_policy_creators" edge IDs in the mutation. +func (m *OrganizationMutation) InternalPolicyCreatorsIDs() (ids []string) { + for id := range m.internal_policy_creators { + ids = append(ids, id) + } + return +} + +// ResetInternalPolicyCreators resets all changes to the "internal_policy_creators" edge. +func (m *OrganizationMutation) ResetInternalPolicyCreators() { + m.internal_policy_creators = nil + m.clearedinternal_policy_creators = false + m.removedinternal_policy_creators = nil +} + +// AddJobRunnerCreatorIDs adds the "job_runner_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddJobRunnerCreatorIDs(ids ...string) { + if m.job_runner_creators == nil { + m.job_runner_creators = make(map[string]struct{}) + } + for i := range ids { + m.job_runner_creators[ids[i]] = struct{}{} + } +} + +// ClearJobRunnerCreators clears the "job_runner_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearJobRunnerCreators() { + m.clearedjob_runner_creators = true +} + +// JobRunnerCreatorsCleared reports if the "job_runner_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) JobRunnerCreatorsCleared() bool { + return m.clearedjob_runner_creators +} + +// RemoveJobRunnerCreatorIDs removes the "job_runner_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveJobRunnerCreatorIDs(ids ...string) { + if m.removedjob_runner_creators == nil { + m.removedjob_runner_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.job_runner_creators, ids[i]) + m.removedjob_runner_creators[ids[i]] = struct{}{} + } +} + +// RemovedJobRunnerCreators returns the removed IDs of the "job_runner_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedJobRunnerCreatorsIDs() (ids []string) { + for id := range m.removedjob_runner_creators { + ids = append(ids, id) + } + return +} + +// JobRunnerCreatorsIDs returns the "job_runner_creators" edge IDs in the mutation. +func (m *OrganizationMutation) JobRunnerCreatorsIDs() (ids []string) { + for id := range m.job_runner_creators { + ids = append(ids, id) + } + return +} + +// ResetJobRunnerCreators resets all changes to the "job_runner_creators" edge. +func (m *OrganizationMutation) ResetJobRunnerCreators() { + m.job_runner_creators = nil + m.clearedjob_runner_creators = false + m.removedjob_runner_creators = nil +} + +// AddJobRunnerRegistrationTokenCreatorIDs adds the "job_runner_registration_token_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddJobRunnerRegistrationTokenCreatorIDs(ids ...string) { + if m.job_runner_registration_token_creators == nil { + m.job_runner_registration_token_creators = make(map[string]struct{}) + } + for i := range ids { + m.job_runner_registration_token_creators[ids[i]] = struct{}{} + } +} + +// ClearJobRunnerRegistrationTokenCreators clears the "job_runner_registration_token_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearJobRunnerRegistrationTokenCreators() { + m.clearedjob_runner_registration_token_creators = true +} + +// JobRunnerRegistrationTokenCreatorsCleared reports if the "job_runner_registration_token_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) JobRunnerRegistrationTokenCreatorsCleared() bool { + return m.clearedjob_runner_registration_token_creators +} + +// RemoveJobRunnerRegistrationTokenCreatorIDs removes the "job_runner_registration_token_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveJobRunnerRegistrationTokenCreatorIDs(ids ...string) { + if m.removedjob_runner_registration_token_creators == nil { + m.removedjob_runner_registration_token_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.job_runner_registration_token_creators, ids[i]) + m.removedjob_runner_registration_token_creators[ids[i]] = struct{}{} + } +} + +// RemovedJobRunnerRegistrationTokenCreators returns the removed IDs of the "job_runner_registration_token_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedJobRunnerRegistrationTokenCreatorsIDs() (ids []string) { + for id := range m.removedjob_runner_registration_token_creators { + ids = append(ids, id) + } + return +} + +// JobRunnerRegistrationTokenCreatorsIDs returns the "job_runner_registration_token_creators" edge IDs in the mutation. +func (m *OrganizationMutation) JobRunnerRegistrationTokenCreatorsIDs() (ids []string) { + for id := range m.job_runner_registration_token_creators { + ids = append(ids, id) + } + return +} + +// ResetJobRunnerRegistrationTokenCreators resets all changes to the "job_runner_registration_token_creators" edge. +func (m *OrganizationMutation) ResetJobRunnerRegistrationTokenCreators() { + m.job_runner_registration_token_creators = nil + m.clearedjob_runner_registration_token_creators = false + m.removedjob_runner_registration_token_creators = nil +} + +// AddJobRunnerTokenCreatorIDs adds the "job_runner_token_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddJobRunnerTokenCreatorIDs(ids ...string) { + if m.job_runner_token_creators == nil { + m.job_runner_token_creators = make(map[string]struct{}) + } + for i := range ids { + m.job_runner_token_creators[ids[i]] = struct{}{} + } +} + +// ClearJobRunnerTokenCreators clears the "job_runner_token_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearJobRunnerTokenCreators() { + m.clearedjob_runner_token_creators = true +} + +// JobRunnerTokenCreatorsCleared reports if the "job_runner_token_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) JobRunnerTokenCreatorsCleared() bool { + return m.clearedjob_runner_token_creators +} + +// RemoveJobRunnerTokenCreatorIDs removes the "job_runner_token_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveJobRunnerTokenCreatorIDs(ids ...string) { + if m.removedjob_runner_token_creators == nil { + m.removedjob_runner_token_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.job_runner_token_creators, ids[i]) + m.removedjob_runner_token_creators[ids[i]] = struct{}{} + } +} + +// RemovedJobRunnerTokenCreators returns the removed IDs of the "job_runner_token_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedJobRunnerTokenCreatorsIDs() (ids []string) { + for id := range m.removedjob_runner_token_creators { + ids = append(ids, id) + } + return +} + +// JobRunnerTokenCreatorsIDs returns the "job_runner_token_creators" edge IDs in the mutation. +func (m *OrganizationMutation) JobRunnerTokenCreatorsIDs() (ids []string) { + for id := range m.job_runner_token_creators { + ids = append(ids, id) + } + return +} + +// ResetJobRunnerTokenCreators resets all changes to the "job_runner_token_creators" edge. +func (m *OrganizationMutation) ResetJobRunnerTokenCreators() { + m.job_runner_token_creators = nil + m.clearedjob_runner_token_creators = false + m.removedjob_runner_token_creators = nil +} + +// AddJobTemplateCreatorIDs adds the "job_template_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddJobTemplateCreatorIDs(ids ...string) { + if m.job_template_creators == nil { + m.job_template_creators = make(map[string]struct{}) + } + for i := range ids { + m.job_template_creators[ids[i]] = struct{}{} + } +} + +// ClearJobTemplateCreators clears the "job_template_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearJobTemplateCreators() { + m.clearedjob_template_creators = true +} + +// JobTemplateCreatorsCleared reports if the "job_template_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) JobTemplateCreatorsCleared() bool { + return m.clearedjob_template_creators +} + +// RemoveJobTemplateCreatorIDs removes the "job_template_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveJobTemplateCreatorIDs(ids ...string) { + if m.removedjob_template_creators == nil { + m.removedjob_template_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.job_template_creators, ids[i]) + m.removedjob_template_creators[ids[i]] = struct{}{} + } +} + +// RemovedJobTemplateCreators returns the removed IDs of the "job_template_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedJobTemplateCreatorsIDs() (ids []string) { + for id := range m.removedjob_template_creators { + ids = append(ids, id) + } + return +} + +// JobTemplateCreatorsIDs returns the "job_template_creators" edge IDs in the mutation. +func (m *OrganizationMutation) JobTemplateCreatorsIDs() (ids []string) { + for id := range m.job_template_creators { + ids = append(ids, id) + } + return +} + +// ResetJobTemplateCreators resets all changes to the "job_template_creators" edge. +func (m *OrganizationMutation) ResetJobTemplateCreators() { + m.job_template_creators = nil + m.clearedjob_template_creators = false + m.removedjob_template_creators = nil +} + +// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddMappedControlCreatorIDs(ids ...string) { + if m.mapped_control_creators == nil { + m.mapped_control_creators = make(map[string]struct{}) + } + for i := range ids { + m.mapped_control_creators[ids[i]] = struct{}{} + } +} + +// ClearMappedControlCreators clears the "mapped_control_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearMappedControlCreators() { + m.clearedmapped_control_creators = true +} + +// MappedControlCreatorsCleared reports if the "mapped_control_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) MappedControlCreatorsCleared() bool { + return m.clearedmapped_control_creators +} + +// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveMappedControlCreatorIDs(ids ...string) { + if m.removedmapped_control_creators == nil { + m.removedmapped_control_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.mapped_control_creators, ids[i]) + m.removedmapped_control_creators[ids[i]] = struct{}{} + } +} + +// RemovedMappedControlCreators returns the removed IDs of the "mapped_control_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedMappedControlCreatorsIDs() (ids []string) { + for id := range m.removedmapped_control_creators { + ids = append(ids, id) + } + return +} + +// MappedControlCreatorsIDs returns the "mapped_control_creators" edge IDs in the mutation. +func (m *OrganizationMutation) MappedControlCreatorsIDs() (ids []string) { + for id := range m.mapped_control_creators { + ids = append(ids, id) + } + return +} + +// ResetMappedControlCreators resets all changes to the "mapped_control_creators" edge. +func (m *OrganizationMutation) ResetMappedControlCreators() { + m.mapped_control_creators = nil + m.clearedmapped_control_creators = false + m.removedmapped_control_creators = nil +} + +// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddNarrativeCreatorIDs(ids ...string) { + if m.narrative_creators == nil { + m.narrative_creators = make(map[string]struct{}) + } + for i := range ids { + m.narrative_creators[ids[i]] = struct{}{} + } +} + +// ClearNarrativeCreators clears the "narrative_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearNarrativeCreators() { + m.clearednarrative_creators = true +} + +// NarrativeCreatorsCleared reports if the "narrative_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) NarrativeCreatorsCleared() bool { + return m.clearednarrative_creators +} + +// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveNarrativeCreatorIDs(ids ...string) { + if m.removednarrative_creators == nil { + m.removednarrative_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.narrative_creators, ids[i]) + m.removednarrative_creators[ids[i]] = struct{}{} + } +} + +// RemovedNarrativeCreators returns the removed IDs of the "narrative_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedNarrativeCreatorsIDs() (ids []string) { + for id := range m.removednarrative_creators { + ids = append(ids, id) + } + return +} + +// NarrativeCreatorsIDs returns the "narrative_creators" edge IDs in the mutation. +func (m *OrganizationMutation) NarrativeCreatorsIDs() (ids []string) { + for id := range m.narrative_creators { + ids = append(ids, id) + } + return +} + +// ResetNarrativeCreators resets all changes to the "narrative_creators" edge. +func (m *OrganizationMutation) ResetNarrativeCreators() { + m.narrative_creators = nil + m.clearednarrative_creators = false + m.removednarrative_creators = nil +} + +// AddNoteCreatorIDs adds the "note_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddNoteCreatorIDs(ids ...string) { + if m.note_creators == nil { + m.note_creators = make(map[string]struct{}) + } + for i := range ids { + m.note_creators[ids[i]] = struct{}{} + } +} + +// ClearNoteCreators clears the "note_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearNoteCreators() { + m.clearednote_creators = true +} + +// NoteCreatorsCleared reports if the "note_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) NoteCreatorsCleared() bool { + return m.clearednote_creators +} + +// RemoveNoteCreatorIDs removes the "note_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveNoteCreatorIDs(ids ...string) { + if m.removednote_creators == nil { + m.removednote_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.note_creators, ids[i]) + m.removednote_creators[ids[i]] = struct{}{} + } +} + +// RemovedNoteCreators returns the removed IDs of the "note_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedNoteCreatorsIDs() (ids []string) { + for id := range m.removednote_creators { + ids = append(ids, id) + } + return +} + +// NoteCreatorsIDs returns the "note_creators" edge IDs in the mutation. +func (m *OrganizationMutation) NoteCreatorsIDs() (ids []string) { + for id := range m.note_creators { + ids = append(ids, id) + } + return +} + +// ResetNoteCreators resets all changes to the "note_creators" edge. +func (m *OrganizationMutation) ResetNoteCreators() { + m.note_creators = nil + m.clearednote_creators = false + m.removednote_creators = nil +} + +// AddNotificationTemplateCreatorIDs adds the "notification_template_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddNotificationTemplateCreatorIDs(ids ...string) { + if m.notification_template_creators == nil { + m.notification_template_creators = make(map[string]struct{}) + } + for i := range ids { + m.notification_template_creators[ids[i]] = struct{}{} + } +} + +// ClearNotificationTemplateCreators clears the "notification_template_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearNotificationTemplateCreators() { + m.clearednotification_template_creators = true +} + +// NotificationTemplateCreatorsCleared reports if the "notification_template_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) NotificationTemplateCreatorsCleared() bool { + return m.clearednotification_template_creators +} + +// RemoveNotificationTemplateCreatorIDs removes the "notification_template_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveNotificationTemplateCreatorIDs(ids ...string) { + if m.removednotification_template_creators == nil { + m.removednotification_template_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.notification_template_creators, ids[i]) + m.removednotification_template_creators[ids[i]] = struct{}{} + } +} + +// RemovedNotificationTemplateCreators returns the removed IDs of the "notification_template_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedNotificationTemplateCreatorsIDs() (ids []string) { + for id := range m.removednotification_template_creators { + ids = append(ids, id) + } + return +} + +// NotificationTemplateCreatorsIDs returns the "notification_template_creators" edge IDs in the mutation. +func (m *OrganizationMutation) NotificationTemplateCreatorsIDs() (ids []string) { + for id := range m.notification_template_creators { + ids = append(ids, id) + } + return +} + +// ResetNotificationTemplateCreators resets all changes to the "notification_template_creators" edge. +func (m *OrganizationMutation) ResetNotificationTemplateCreators() { + m.notification_template_creators = nil + m.clearednotification_template_creators = false + m.removednotification_template_creators = nil +} + +// AddOrganizationCreatorIDs adds the "organization_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddOrganizationCreatorIDs(ids ...string) { + if m.organization_creators == nil { + m.organization_creators = make(map[string]struct{}) + } + for i := range ids { + m.organization_creators[ids[i]] = struct{}{} + } +} + +// ClearOrganizationCreators clears the "organization_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearOrganizationCreators() { + m.clearedorganization_creators = true +} + +// OrganizationCreatorsCleared reports if the "organization_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) OrganizationCreatorsCleared() bool { + return m.clearedorganization_creators +} + +// RemoveOrganizationCreatorIDs removes the "organization_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveOrganizationCreatorIDs(ids ...string) { + if m.removedorganization_creators == nil { + m.removedorganization_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.organization_creators, ids[i]) + m.removedorganization_creators[ids[i]] = struct{}{} + } +} + +// RemovedOrganizationCreators returns the removed IDs of the "organization_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedOrganizationCreatorsIDs() (ids []string) { + for id := range m.removedorganization_creators { + ids = append(ids, id) + } + return +} + +// OrganizationCreatorsIDs returns the "organization_creators" edge IDs in the mutation. +func (m *OrganizationMutation) OrganizationCreatorsIDs() (ids []string) { + for id := range m.organization_creators { + ids = append(ids, id) + } + return +} + +// ResetOrganizationCreators resets all changes to the "organization_creators" edge. +func (m *OrganizationMutation) ResetOrganizationCreators() { + m.organization_creators = nil + m.clearedorganization_creators = false + m.removedorganization_creators = nil +} + +// AddPlatformCreatorIDs adds the "platform_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddPlatformCreatorIDs(ids ...string) { + if m.platform_creators == nil { + m.platform_creators = make(map[string]struct{}) + } + for i := range ids { + m.platform_creators[ids[i]] = struct{}{} + } +} + +// ClearPlatformCreators clears the "platform_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearPlatformCreators() { + m.clearedplatform_creators = true +} + +// PlatformCreatorsCleared reports if the "platform_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) PlatformCreatorsCleared() bool { + return m.clearedplatform_creators +} + +// RemovePlatformCreatorIDs removes the "platform_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemovePlatformCreatorIDs(ids ...string) { + if m.removedplatform_creators == nil { + m.removedplatform_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.platform_creators, ids[i]) + m.removedplatform_creators[ids[i]] = struct{}{} + } +} + +// RemovedPlatformCreators returns the removed IDs of the "platform_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedPlatformCreatorsIDs() (ids []string) { + for id := range m.removedplatform_creators { + ids = append(ids, id) + } + return +} + +// PlatformCreatorsIDs returns the "platform_creators" edge IDs in the mutation. +func (m *OrganizationMutation) PlatformCreatorsIDs() (ids []string) { + for id := range m.platform_creators { + ids = append(ids, id) + } + return +} + +// ResetPlatformCreators resets all changes to the "platform_creators" edge. +func (m *OrganizationMutation) ResetPlatformCreators() { + m.platform_creators = nil + m.clearedplatform_creators = false + m.removedplatform_creators = nil +} + +// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddProcedureCreatorIDs(ids ...string) { + if m.procedure_creators == nil { + m.procedure_creators = make(map[string]struct{}) + } + for i := range ids { + m.procedure_creators[ids[i]] = struct{}{} + } +} + +// ClearProcedureCreators clears the "procedure_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearProcedureCreators() { + m.clearedprocedure_creators = true +} + +// ProcedureCreatorsCleared reports if the "procedure_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ProcedureCreatorsCleared() bool { + return m.clearedprocedure_creators +} + +// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveProcedureCreatorIDs(ids ...string) { + if m.removedprocedure_creators == nil { + m.removedprocedure_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.procedure_creators, ids[i]) + m.removedprocedure_creators[ids[i]] = struct{}{} + } +} + +// RemovedProcedureCreators returns the removed IDs of the "procedure_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedProcedureCreatorsIDs() (ids []string) { + for id := range m.removedprocedure_creators { + ids = append(ids, id) + } + return +} + +// ProcedureCreatorsIDs returns the "procedure_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ProcedureCreatorsIDs() (ids []string) { + for id := range m.procedure_creators { + ids = append(ids, id) + } + return +} + +// ResetProcedureCreators resets all changes to the "procedure_creators" edge. +func (m *OrganizationMutation) ResetProcedureCreators() { + m.procedure_creators = nil + m.clearedprocedure_creators = false + m.removedprocedure_creators = nil +} + +// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddProgramCreatorIDs(ids ...string) { + if m.program_creators == nil { + m.program_creators = make(map[string]struct{}) + } + for i := range ids { + m.program_creators[ids[i]] = struct{}{} + } +} + +// ClearProgramCreators clears the "program_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearProgramCreators() { + m.clearedprogram_creators = true +} + +// ProgramCreatorsCleared reports if the "program_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ProgramCreatorsCleared() bool { + return m.clearedprogram_creators +} + +// RemoveProgramCreatorIDs removes the "program_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveProgramCreatorIDs(ids ...string) { + if m.removedprogram_creators == nil { + m.removedprogram_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.program_creators, ids[i]) + m.removedprogram_creators[ids[i]] = struct{}{} + } +} + +// RemovedProgramCreators returns the removed IDs of the "program_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedProgramCreatorsIDs() (ids []string) { + for id := range m.removedprogram_creators { + ids = append(ids, id) + } + return +} + +// ProgramCreatorsIDs returns the "program_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ProgramCreatorsIDs() (ids []string) { + for id := range m.program_creators { + ids = append(ids, id) + } + return +} + +// ResetProgramCreators resets all changes to the "program_creators" edge. +func (m *OrganizationMutation) ResetProgramCreators() { + m.program_creators = nil + m.clearedprogram_creators = false + m.removedprogram_creators = nil +} + +// AddRemediationCreatorIDs adds the "remediation_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddRemediationCreatorIDs(ids ...string) { + if m.remediation_creators == nil { + m.remediation_creators = make(map[string]struct{}) + } + for i := range ids { + m.remediation_creators[ids[i]] = struct{}{} + } +} + +// ClearRemediationCreators clears the "remediation_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearRemediationCreators() { + m.clearedremediation_creators = true +} + +// RemediationCreatorsCleared reports if the "remediation_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) RemediationCreatorsCleared() bool { + return m.clearedremediation_creators +} + +// RemoveRemediationCreatorIDs removes the "remediation_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveRemediationCreatorIDs(ids ...string) { + if m.removedremediation_creators == nil { + m.removedremediation_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.remediation_creators, ids[i]) + m.removedremediation_creators[ids[i]] = struct{}{} + } +} + +// RemovedRemediationCreators returns the removed IDs of the "remediation_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedRemediationCreatorsIDs() (ids []string) { + for id := range m.removedremediation_creators { + ids = append(ids, id) + } + return +} + +// RemediationCreatorsIDs returns the "remediation_creators" edge IDs in the mutation. +func (m *OrganizationMutation) RemediationCreatorsIDs() (ids []string) { + for id := range m.remediation_creators { + ids = append(ids, id) + } + return +} + +// ResetRemediationCreators resets all changes to the "remediation_creators" edge. +func (m *OrganizationMutation) ResetRemediationCreators() { + m.remediation_creators = nil + m.clearedremediation_creators = false + m.removedremediation_creators = nil +} + +// AddReviewCreatorIDs adds the "review_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddReviewCreatorIDs(ids ...string) { + if m.review_creators == nil { + m.review_creators = make(map[string]struct{}) + } + for i := range ids { + m.review_creators[ids[i]] = struct{}{} + } +} + +// ClearReviewCreators clears the "review_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearReviewCreators() { + m.clearedreview_creators = true +} + +// ReviewCreatorsCleared reports if the "review_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ReviewCreatorsCleared() bool { + return m.clearedreview_creators +} + +// RemoveReviewCreatorIDs removes the "review_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveReviewCreatorIDs(ids ...string) { + if m.removedreview_creators == nil { + m.removedreview_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.review_creators, ids[i]) + m.removedreview_creators[ids[i]] = struct{}{} + } +} + +// RemovedReviewCreators returns the removed IDs of the "review_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedReviewCreatorsIDs() (ids []string) { + for id := range m.removedreview_creators { + ids = append(ids, id) + } + return +} + +// ReviewCreatorsIDs returns the "review_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ReviewCreatorsIDs() (ids []string) { + for id := range m.review_creators { + ids = append(ids, id) + } + return +} + +// ResetReviewCreators resets all changes to the "review_creators" edge. +func (m *OrganizationMutation) ResetReviewCreators() { + m.review_creators = nil + m.clearedreview_creators = false + m.removedreview_creators = nil +} + +// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddRiskCreatorIDs(ids ...string) { + if m.risk_creators == nil { + m.risk_creators = make(map[string]struct{}) + } + for i := range ids { + m.risk_creators[ids[i]] = struct{}{} + } +} + +// ClearRiskCreators clears the "risk_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearRiskCreators() { + m.clearedrisk_creators = true +} + +// RiskCreatorsCleared reports if the "risk_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) RiskCreatorsCleared() bool { + return m.clearedrisk_creators +} + +// RemoveRiskCreatorIDs removes the "risk_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveRiskCreatorIDs(ids ...string) { + if m.removedrisk_creators == nil { + m.removedrisk_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.risk_creators, ids[i]) + m.removedrisk_creators[ids[i]] = struct{}{} + } +} + +// RemovedRiskCreators returns the removed IDs of the "risk_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedRiskCreatorsIDs() (ids []string) { + for id := range m.removedrisk_creators { + ids = append(ids, id) + } + return +} + +// RiskCreatorsIDs returns the "risk_creators" edge IDs in the mutation. +func (m *OrganizationMutation) RiskCreatorsIDs() (ids []string) { + for id := range m.risk_creators { + ids = append(ids, id) + } + return +} + +// ResetRiskCreators resets all changes to the "risk_creators" edge. +func (m *OrganizationMutation) ResetRiskCreators() { + m.risk_creators = nil + m.clearedrisk_creators = false + m.removedrisk_creators = nil +} + +// AddScanCreatorIDs adds the "scan_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddScanCreatorIDs(ids ...string) { + if m.scan_creators == nil { + m.scan_creators = make(map[string]struct{}) + } + for i := range ids { + m.scan_creators[ids[i]] = struct{}{} + } +} + +// ClearScanCreators clears the "scan_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearScanCreators() { + m.clearedscan_creators = true +} + +// ScanCreatorsCleared reports if the "scan_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ScanCreatorsCleared() bool { + return m.clearedscan_creators +} + +// RemoveScanCreatorIDs removes the "scan_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveScanCreatorIDs(ids ...string) { + if m.removedscan_creators == nil { + m.removedscan_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.scan_creators, ids[i]) + m.removedscan_creators[ids[i]] = struct{}{} + } +} + +// RemovedScanCreators returns the removed IDs of the "scan_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedScanCreatorsIDs() (ids []string) { + for id := range m.removedscan_creators { + ids = append(ids, id) + } + return +} + +// ScanCreatorsIDs returns the "scan_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ScanCreatorsIDs() (ids []string) { + for id := range m.scan_creators { + ids = append(ids, id) + } + return +} + +// ResetScanCreators resets all changes to the "scan_creators" edge. +func (m *OrganizationMutation) ResetScanCreators() { + m.scan_creators = nil + m.clearedscan_creators = false + m.removedscan_creators = nil +} + +// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddScheduledJobCreatorIDs(ids ...string) { + if m.scheduled_job_creators == nil { + m.scheduled_job_creators = make(map[string]struct{}) + } + for i := range ids { + m.scheduled_job_creators[ids[i]] = struct{}{} + } +} + +// ClearScheduledJobCreators clears the "scheduled_job_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearScheduledJobCreators() { + m.clearedscheduled_job_creators = true +} + +// ScheduledJobCreatorsCleared reports if the "scheduled_job_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ScheduledJobCreatorsCleared() bool { + return m.clearedscheduled_job_creators +} + +// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveScheduledJobCreatorIDs(ids ...string) { + if m.removedscheduled_job_creators == nil { + m.removedscheduled_job_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.scheduled_job_creators, ids[i]) + m.removedscheduled_job_creators[ids[i]] = struct{}{} + } +} + +// RemovedScheduledJobCreators returns the removed IDs of the "scheduled_job_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedScheduledJobCreatorsIDs() (ids []string) { + for id := range m.removedscheduled_job_creators { + ids = append(ids, id) + } + return +} + +// ScheduledJobCreatorsIDs returns the "scheduled_job_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ScheduledJobCreatorsIDs() (ids []string) { + for id := range m.scheduled_job_creators { + ids = append(ids, id) + } + return +} + +// ResetScheduledJobCreators resets all changes to the "scheduled_job_creators" edge. +func (m *OrganizationMutation) ResetScheduledJobCreators() { + m.scheduled_job_creators = nil + m.clearedscheduled_job_creators = false + m.removedscheduled_job_creators = nil +} + +// AddScheduledJobRunCreatorIDs adds the "scheduled_job_run_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddScheduledJobRunCreatorIDs(ids ...string) { + if m.scheduled_job_run_creators == nil { + m.scheduled_job_run_creators = make(map[string]struct{}) + } + for i := range ids { + m.scheduled_job_run_creators[ids[i]] = struct{}{} + } +} + +// ClearScheduledJobRunCreators clears the "scheduled_job_run_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearScheduledJobRunCreators() { + m.clearedscheduled_job_run_creators = true +} + +// ScheduledJobRunCreatorsCleared reports if the "scheduled_job_run_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) ScheduledJobRunCreatorsCleared() bool { + return m.clearedscheduled_job_run_creators +} + +// RemoveScheduledJobRunCreatorIDs removes the "scheduled_job_run_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveScheduledJobRunCreatorIDs(ids ...string) { + if m.removedscheduled_job_run_creators == nil { + m.removedscheduled_job_run_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.scheduled_job_run_creators, ids[i]) + m.removedscheduled_job_run_creators[ids[i]] = struct{}{} + } +} + +// RemovedScheduledJobRunCreators returns the removed IDs of the "scheduled_job_run_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedScheduledJobRunCreatorsIDs() (ids []string) { + for id := range m.removedscheduled_job_run_creators { + ids = append(ids, id) + } + return +} + +// ScheduledJobRunCreatorsIDs returns the "scheduled_job_run_creators" edge IDs in the mutation. +func (m *OrganizationMutation) ScheduledJobRunCreatorsIDs() (ids []string) { + for id := range m.scheduled_job_run_creators { + ids = append(ids, id) + } + return +} + +// ResetScheduledJobRunCreators resets all changes to the "scheduled_job_run_creators" edge. +func (m *OrganizationMutation) ResetScheduledJobRunCreators() { + m.scheduled_job_run_creators = nil + m.clearedscheduled_job_run_creators = false + m.removedscheduled_job_run_creators = nil +} + +// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddStandardCreatorIDs(ids ...string) { + if m.standard_creators == nil { + m.standard_creators = make(map[string]struct{}) + } + for i := range ids { + m.standard_creators[ids[i]] = struct{}{} + } +} + +// ClearStandardCreators clears the "standard_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearStandardCreators() { + m.clearedstandard_creators = true +} + +// StandardCreatorsCleared reports if the "standard_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) StandardCreatorsCleared() bool { + return m.clearedstandard_creators +} + +// RemoveStandardCreatorIDs removes the "standard_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveStandardCreatorIDs(ids ...string) { + if m.removedstandard_creators == nil { + m.removedstandard_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.standard_creators, ids[i]) + m.removedstandard_creators[ids[i]] = struct{}{} + } +} + +// RemovedStandardCreators returns the removed IDs of the "standard_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedStandardCreatorsIDs() (ids []string) { + for id := range m.removedstandard_creators { + ids = append(ids, id) + } + return +} + +// StandardCreatorsIDs returns the "standard_creators" edge IDs in the mutation. +func (m *OrganizationMutation) StandardCreatorsIDs() (ids []string) { + for id := range m.standard_creators { + ids = append(ids, id) + } + return +} + +// ResetStandardCreators resets all changes to the "standard_creators" edge. +func (m *OrganizationMutation) ResetStandardCreators() { + m.standard_creators = nil + m.clearedstandard_creators = false + m.removedstandard_creators = nil +} + +// AddSubcontrolCreatorIDs adds the "subcontrol_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddSubcontrolCreatorIDs(ids ...string) { + if m.subcontrol_creators == nil { + m.subcontrol_creators = make(map[string]struct{}) + } + for i := range ids { + m.subcontrol_creators[ids[i]] = struct{}{} + } +} + +// ClearSubcontrolCreators clears the "subcontrol_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearSubcontrolCreators() { + m.clearedsubcontrol_creators = true +} + +// SubcontrolCreatorsCleared reports if the "subcontrol_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) SubcontrolCreatorsCleared() bool { + return m.clearedsubcontrol_creators +} + +// RemoveSubcontrolCreatorIDs removes the "subcontrol_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveSubcontrolCreatorIDs(ids ...string) { + if m.removedsubcontrol_creators == nil { + m.removedsubcontrol_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.subcontrol_creators, ids[i]) + m.removedsubcontrol_creators[ids[i]] = struct{}{} + } +} + +// RemovedSubcontrolCreators returns the removed IDs of the "subcontrol_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedSubcontrolCreatorsIDs() (ids []string) { + for id := range m.removedsubcontrol_creators { + ids = append(ids, id) + } + return +} + +// SubcontrolCreatorsIDs returns the "subcontrol_creators" edge IDs in the mutation. +func (m *OrganizationMutation) SubcontrolCreatorsIDs() (ids []string) { + for id := range m.subcontrol_creators { + ids = append(ids, id) + } + return +} + +// ResetSubcontrolCreators resets all changes to the "subcontrol_creators" edge. +func (m *OrganizationMutation) ResetSubcontrolCreators() { + m.subcontrol_creators = nil + m.clearedsubcontrol_creators = false + m.removedsubcontrol_creators = nil +} + +// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddSubprocessorCreatorIDs(ids ...string) { + if m.subprocessor_creators == nil { + m.subprocessor_creators = make(map[string]struct{}) + } + for i := range ids { + m.subprocessor_creators[ids[i]] = struct{}{} + } +} + +// ClearSubprocessorCreators clears the "subprocessor_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearSubprocessorCreators() { + m.clearedsubprocessor_creators = true +} + +// SubprocessorCreatorsCleared reports if the "subprocessor_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) SubprocessorCreatorsCleared() bool { + return m.clearedsubprocessor_creators +} + +// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveSubprocessorCreatorIDs(ids ...string) { + if m.removedsubprocessor_creators == nil { + m.removedsubprocessor_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.subprocessor_creators, ids[i]) + m.removedsubprocessor_creators[ids[i]] = struct{}{} + } +} + +// RemovedSubprocessorCreators returns the removed IDs of the "subprocessor_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedSubprocessorCreatorsIDs() (ids []string) { + for id := range m.removedsubprocessor_creators { + ids = append(ids, id) + } + return +} + +// SubprocessorCreatorsIDs returns the "subprocessor_creators" edge IDs in the mutation. +func (m *OrganizationMutation) SubprocessorCreatorsIDs() (ids []string) { + for id := range m.subprocessor_creators { + ids = append(ids, id) + } + return +} + +// ResetSubprocessorCreators resets all changes to the "subprocessor_creators" edge. +func (m *OrganizationMutation) ResetSubprocessorCreators() { + m.subprocessor_creators = nil + m.clearedsubprocessor_creators = false + m.removedsubprocessor_creators = nil +} + +// AddSubscriberCreatorIDs adds the "subscriber_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddSubscriberCreatorIDs(ids ...string) { + if m.subscriber_creators == nil { + m.subscriber_creators = make(map[string]struct{}) + } + for i := range ids { + m.subscriber_creators[ids[i]] = struct{}{} + } +} + +// ClearSubscriberCreators clears the "subscriber_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearSubscriberCreators() { + m.clearedsubscriber_creators = true +} + +// SubscriberCreatorsCleared reports if the "subscriber_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) SubscriberCreatorsCleared() bool { + return m.clearedsubscriber_creators +} + +// RemoveSubscriberCreatorIDs removes the "subscriber_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveSubscriberCreatorIDs(ids ...string) { + if m.removedsubscriber_creators == nil { + m.removedsubscriber_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.subscriber_creators, ids[i]) + m.removedsubscriber_creators[ids[i]] = struct{}{} + } +} + +// RemovedSubscriberCreators returns the removed IDs of the "subscriber_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedSubscriberCreatorsIDs() (ids []string) { + for id := range m.removedsubscriber_creators { + ids = append(ids, id) + } + return +} + +// SubscriberCreatorsIDs returns the "subscriber_creators" edge IDs in the mutation. +func (m *OrganizationMutation) SubscriberCreatorsIDs() (ids []string) { + for id := range m.subscriber_creators { + ids = append(ids, id) + } + return +} + +// ResetSubscriberCreators resets all changes to the "subscriber_creators" edge. +func (m *OrganizationMutation) ResetSubscriberCreators() { + m.subscriber_creators = nil + m.clearedsubscriber_creators = false + m.removedsubscriber_creators = nil +} + +// AddSystemDetailCreatorIDs adds the "system_detail_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddSystemDetailCreatorIDs(ids ...string) { + if m.system_detail_creators == nil { + m.system_detail_creators = make(map[string]struct{}) + } + for i := range ids { + m.system_detail_creators[ids[i]] = struct{}{} + } +} + +// ClearSystemDetailCreators clears the "system_detail_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearSystemDetailCreators() { + m.clearedsystem_detail_creators = true +} + +// SystemDetailCreatorsCleared reports if the "system_detail_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) SystemDetailCreatorsCleared() bool { + return m.clearedsystem_detail_creators +} + +// RemoveSystemDetailCreatorIDs removes the "system_detail_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveSystemDetailCreatorIDs(ids ...string) { + if m.removedsystem_detail_creators == nil { + m.removedsystem_detail_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.system_detail_creators, ids[i]) + m.removedsystem_detail_creators[ids[i]] = struct{}{} + } +} + +// RemovedSystemDetailCreators returns the removed IDs of the "system_detail_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedSystemDetailCreatorsIDs() (ids []string) { + for id := range m.removedsystem_detail_creators { + ids = append(ids, id) + } + return +} + +// SystemDetailCreatorsIDs returns the "system_detail_creators" edge IDs in the mutation. +func (m *OrganizationMutation) SystemDetailCreatorsIDs() (ids []string) { + for id := range m.system_detail_creators { + ids = append(ids, id) + } + return +} + +// ResetSystemDetailCreators resets all changes to the "system_detail_creators" edge. +func (m *OrganizationMutation) ResetSystemDetailCreators() { + m.system_detail_creators = nil + m.clearedsystem_detail_creators = false + m.removedsystem_detail_creators = nil +} + +// AddTagDefinitionCreatorIDs adds the "tag_definition_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTagDefinitionCreatorIDs(ids ...string) { + if m.tag_definition_creators == nil { + m.tag_definition_creators = make(map[string]struct{}) + } + for i := range ids { + m.tag_definition_creators[ids[i]] = struct{}{} + } +} + +// ClearTagDefinitionCreators clears the "tag_definition_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTagDefinitionCreators() { + m.clearedtag_definition_creators = true +} + +// TagDefinitionCreatorsCleared reports if the "tag_definition_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TagDefinitionCreatorsCleared() bool { + return m.clearedtag_definition_creators +} + +// RemoveTagDefinitionCreatorIDs removes the "tag_definition_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTagDefinitionCreatorIDs(ids ...string) { + if m.removedtag_definition_creators == nil { + m.removedtag_definition_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.tag_definition_creators, ids[i]) + m.removedtag_definition_creators[ids[i]] = struct{}{} + } +} + +// RemovedTagDefinitionCreators returns the removed IDs of the "tag_definition_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTagDefinitionCreatorsIDs() (ids []string) { + for id := range m.removedtag_definition_creators { + ids = append(ids, id) + } + return +} + +// TagDefinitionCreatorsIDs returns the "tag_definition_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TagDefinitionCreatorsIDs() (ids []string) { + for id := range m.tag_definition_creators { + ids = append(ids, id) + } + return +} + +// ResetTagDefinitionCreators resets all changes to the "tag_definition_creators" edge. +func (m *OrganizationMutation) ResetTagDefinitionCreators() { + m.tag_definition_creators = nil + m.clearedtag_definition_creators = false + m.removedtag_definition_creators = nil +} + +// AddTaskCreatorIDs adds the "task_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTaskCreatorIDs(ids ...string) { + if m.task_creators == nil { + m.task_creators = make(map[string]struct{}) + } + for i := range ids { + m.task_creators[ids[i]] = struct{}{} + } +} + +// ClearTaskCreators clears the "task_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTaskCreators() { + m.clearedtask_creators = true +} + +// TaskCreatorsCleared reports if the "task_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TaskCreatorsCleared() bool { + return m.clearedtask_creators +} + +// RemoveTaskCreatorIDs removes the "task_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTaskCreatorIDs(ids ...string) { + if m.removedtask_creators == nil { + m.removedtask_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.task_creators, ids[i]) + m.removedtask_creators[ids[i]] = struct{}{} + } +} + +// RemovedTaskCreators returns the removed IDs of the "task_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTaskCreatorsIDs() (ids []string) { + for id := range m.removedtask_creators { + ids = append(ids, id) + } + return +} + +// TaskCreatorsIDs returns the "task_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TaskCreatorsIDs() (ids []string) { + for id := range m.task_creators { + ids = append(ids, id) + } + return +} + +// ResetTaskCreators resets all changes to the "task_creators" edge. +func (m *OrganizationMutation) ResetTaskCreators() { + m.task_creators = nil + m.clearedtask_creators = false + m.removedtask_creators = nil +} + +// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTemplateCreatorIDs(ids ...string) { + if m.template_creators == nil { + m.template_creators = make(map[string]struct{}) + } + for i := range ids { + m.template_creators[ids[i]] = struct{}{} + } +} + +// ClearTemplateCreators clears the "template_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTemplateCreators() { + m.clearedtemplate_creators = true +} + +// TemplateCreatorsCleared reports if the "template_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TemplateCreatorsCleared() bool { + return m.clearedtemplate_creators +} + +// RemoveTemplateCreatorIDs removes the "template_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTemplateCreatorIDs(ids ...string) { + if m.removedtemplate_creators == nil { + m.removedtemplate_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.template_creators, ids[i]) + m.removedtemplate_creators[ids[i]] = struct{}{} + } +} + +// RemovedTemplateCreators returns the removed IDs of the "template_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTemplateCreatorsIDs() (ids []string) { + for id := range m.removedtemplate_creators { + ids = append(ids, id) + } + return +} + +// TemplateCreatorsIDs returns the "template_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TemplateCreatorsIDs() (ids []string) { + for id := range m.template_creators { + ids = append(ids, id) + } + return +} + +// ResetTemplateCreators resets all changes to the "template_creators" edge. +func (m *OrganizationMutation) ResetTemplateCreators() { + m.template_creators = nil + m.clearedtemplate_creators = false + m.removedtemplate_creators = nil +} + +// AddTrustCenterCreatorIDs adds the "trust_center_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterCreatorIDs(ids ...string) { + if m.trust_center_creators == nil { + m.trust_center_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterCreators clears the "trust_center_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterCreators() { + m.clearedtrust_center_creators = true +} + +// TrustCenterCreatorsCleared reports if the "trust_center_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterCreatorsCleared() bool { + return m.clearedtrust_center_creators +} + +// RemoveTrustCenterCreatorIDs removes the "trust_center_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterCreatorIDs(ids ...string) { + if m.removedtrust_center_creators == nil { + m.removedtrust_center_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_creators, ids[i]) + m.removedtrust_center_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterCreators returns the removed IDs of the "trust_center_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterCreatorsIDs returns the "trust_center_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterCreatorsIDs() (ids []string) { + for id := range m.trust_center_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterCreators resets all changes to the "trust_center_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterCreators() { + m.trust_center_creators = nil + m.clearedtrust_center_creators = false + m.removedtrust_center_creators = nil +} + +// AddTrustCenterComplianceCreatorIDs adds the "trust_center_compliance_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterComplianceCreatorIDs(ids ...string) { + if m.trust_center_compliance_creators == nil { + m.trust_center_compliance_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_compliance_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterComplianceCreators clears the "trust_center_compliance_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterComplianceCreators() { + m.clearedtrust_center_compliance_creators = true +} + +// TrustCenterComplianceCreatorsCleared reports if the "trust_center_compliance_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterComplianceCreatorsCleared() bool { + return m.clearedtrust_center_compliance_creators +} + +// RemoveTrustCenterComplianceCreatorIDs removes the "trust_center_compliance_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterComplianceCreatorIDs(ids ...string) { + if m.removedtrust_center_compliance_creators == nil { + m.removedtrust_center_compliance_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_compliance_creators, ids[i]) + m.removedtrust_center_compliance_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterComplianceCreators returns the removed IDs of the "trust_center_compliance_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterComplianceCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_compliance_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterComplianceCreatorsIDs returns the "trust_center_compliance_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterComplianceCreatorsIDs() (ids []string) { + for id := range m.trust_center_compliance_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterComplianceCreators resets all changes to the "trust_center_compliance_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterComplianceCreators() { + m.trust_center_compliance_creators = nil + m.clearedtrust_center_compliance_creators = false + m.removedtrust_center_compliance_creators = nil +} + +// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterDocCreatorIDs(ids ...string) { + if m.trust_center_doc_creators == nil { + m.trust_center_doc_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_doc_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterDocCreators clears the "trust_center_doc_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterDocCreators() { + m.clearedtrust_center_doc_creators = true +} + +// TrustCenterDocCreatorsCleared reports if the "trust_center_doc_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterDocCreatorsCleared() bool { + return m.clearedtrust_center_doc_creators +} + +// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterDocCreatorIDs(ids ...string) { + if m.removedtrust_center_doc_creators == nil { + m.removedtrust_center_doc_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_doc_creators, ids[i]) + m.removedtrust_center_doc_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterDocCreators returns the removed IDs of the "trust_center_doc_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterDocCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_doc_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterDocCreatorsIDs returns the "trust_center_doc_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterDocCreatorsIDs() (ids []string) { + for id := range m.trust_center_doc_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterDocCreators resets all changes to the "trust_center_doc_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterDocCreators() { + m.trust_center_doc_creators = nil + m.clearedtrust_center_doc_creators = false + m.removedtrust_center_doc_creators = nil +} + +// AddTrustCenterEntityCreatorIDs adds the "trust_center_entity_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterEntityCreatorIDs(ids ...string) { + if m.trust_center_entity_creators == nil { + m.trust_center_entity_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_entity_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterEntityCreators clears the "trust_center_entity_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterEntityCreators() { + m.clearedtrust_center_entity_creators = true +} + +// TrustCenterEntityCreatorsCleared reports if the "trust_center_entity_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterEntityCreatorsCleared() bool { + return m.clearedtrust_center_entity_creators +} + +// RemoveTrustCenterEntityCreatorIDs removes the "trust_center_entity_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterEntityCreatorIDs(ids ...string) { + if m.removedtrust_center_entity_creators == nil { + m.removedtrust_center_entity_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_entity_creators, ids[i]) + m.removedtrust_center_entity_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterEntityCreators returns the removed IDs of the "trust_center_entity_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterEntityCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_entity_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterEntityCreatorsIDs returns the "trust_center_entity_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterEntityCreatorsIDs() (ids []string) { + for id := range m.trust_center_entity_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterEntityCreators resets all changes to the "trust_center_entity_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterEntityCreators() { + m.trust_center_entity_creators = nil + m.clearedtrust_center_entity_creators = false + m.removedtrust_center_entity_creators = nil +} + +// AddTrustCenterFaqCreatorIDs adds the "trust_center_faq_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterFaqCreatorIDs(ids ...string) { + if m.trust_center_faq_creators == nil { + m.trust_center_faq_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_faq_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterFaqCreators clears the "trust_center_faq_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterFaqCreators() { + m.clearedtrust_center_faq_creators = true +} + +// TrustCenterFaqCreatorsCleared reports if the "trust_center_faq_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterFaqCreatorsCleared() bool { + return m.clearedtrust_center_faq_creators +} + +// RemoveTrustCenterFaqCreatorIDs removes the "trust_center_faq_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterFaqCreatorIDs(ids ...string) { + if m.removedtrust_center_faq_creators == nil { + m.removedtrust_center_faq_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_faq_creators, ids[i]) + m.removedtrust_center_faq_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterFaqCreators returns the removed IDs of the "trust_center_faq_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterFaqCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_faq_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterFaqCreatorsIDs returns the "trust_center_faq_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterFaqCreatorsIDs() (ids []string) { + for id := range m.trust_center_faq_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterFaqCreators resets all changes to the "trust_center_faq_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterFaqCreators() { + m.trust_center_faq_creators = nil + m.clearedtrust_center_faq_creators = false + m.removedtrust_center_faq_creators = nil +} + +// AddTrustCenterNdaRequestCreatorIDs adds the "trust_center_nda_request_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterNdaRequestCreatorIDs(ids ...string) { + if m.trust_center_nda_request_creators == nil { + m.trust_center_nda_request_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_nda_request_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterNdaRequestCreators clears the "trust_center_nda_request_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterNdaRequestCreators() { + m.clearedtrust_center_nda_request_creators = true +} + +// TrustCenterNdaRequestCreatorsCleared reports if the "trust_center_nda_request_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterNdaRequestCreatorsCleared() bool { + return m.clearedtrust_center_nda_request_creators +} + +// RemoveTrustCenterNdaRequestCreatorIDs removes the "trust_center_nda_request_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterNdaRequestCreatorIDs(ids ...string) { + if m.removedtrust_center_nda_request_creators == nil { + m.removedtrust_center_nda_request_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_nda_request_creators, ids[i]) + m.removedtrust_center_nda_request_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterNdaRequestCreators returns the removed IDs of the "trust_center_nda_request_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterNdaRequestCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_nda_request_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterNdaRequestCreatorsIDs returns the "trust_center_nda_request_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterNdaRequestCreatorsIDs() (ids []string) { + for id := range m.trust_center_nda_request_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterNdaRequestCreators resets all changes to the "trust_center_nda_request_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterNdaRequestCreators() { + m.trust_center_nda_request_creators = nil + m.clearedtrust_center_nda_request_creators = false + m.removedtrust_center_nda_request_creators = nil +} + +// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterSubprocessorCreatorIDs(ids ...string) { + if m.trust_center_subprocessor_creators == nil { + m.trust_center_subprocessor_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_subprocessor_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterSubprocessorCreators clears the "trust_center_subprocessor_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterSubprocessorCreators() { + m.clearedtrust_center_subprocessor_creators = true +} + +// TrustCenterSubprocessorCreatorsCleared reports if the "trust_center_subprocessor_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterSubprocessorCreatorsCleared() bool { + return m.clearedtrust_center_subprocessor_creators +} + +// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) { + if m.removedtrust_center_subprocessor_creators == nil { + m.removedtrust_center_subprocessor_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_subprocessor_creators, ids[i]) + m.removedtrust_center_subprocessor_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterSubprocessorCreators returns the removed IDs of the "trust_center_subprocessor_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterSubprocessorCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_subprocessor_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterSubprocessorCreatorsIDs returns the "trust_center_subprocessor_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterSubprocessorCreatorsIDs() (ids []string) { + for id := range m.trust_center_subprocessor_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterSubprocessorCreators resets all changes to the "trust_center_subprocessor_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterSubprocessorCreators() { + m.trust_center_subprocessor_creators = nil + m.clearedtrust_center_subprocessor_creators = false + m.removedtrust_center_subprocessor_creators = nil +} + +// AddTrustCenterWatermarkConfigCreatorIDs adds the "trust_center_watermark_config_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterWatermarkConfigCreatorIDs(ids ...string) { + if m.trust_center_watermark_config_creators == nil { + m.trust_center_watermark_config_creators = make(map[string]struct{}) + } + for i := range ids { + m.trust_center_watermark_config_creators[ids[i]] = struct{}{} + } +} + +// ClearTrustCenterWatermarkConfigCreators clears the "trust_center_watermark_config_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterWatermarkConfigCreators() { + m.clearedtrust_center_watermark_config_creators = true +} + +// TrustCenterWatermarkConfigCreatorsCleared reports if the "trust_center_watermark_config_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterWatermarkConfigCreatorsCleared() bool { + return m.clearedtrust_center_watermark_config_creators +} + +// RemoveTrustCenterWatermarkConfigCreatorIDs removes the "trust_center_watermark_config_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterWatermarkConfigCreatorIDs(ids ...string) { + if m.removedtrust_center_watermark_config_creators == nil { + m.removedtrust_center_watermark_config_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.trust_center_watermark_config_creators, ids[i]) + m.removedtrust_center_watermark_config_creators[ids[i]] = struct{}{} + } +} + +// RemovedTrustCenterWatermarkConfigCreators returns the removed IDs of the "trust_center_watermark_config_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterWatermarkConfigCreatorsIDs() (ids []string) { + for id := range m.removedtrust_center_watermark_config_creators { + ids = append(ids, id) + } + return +} + +// TrustCenterWatermarkConfigCreatorsIDs returns the "trust_center_watermark_config_creators" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterWatermarkConfigCreatorsIDs() (ids []string) { + for id := range m.trust_center_watermark_config_creators { + ids = append(ids, id) + } + return +} + +// ResetTrustCenterWatermarkConfigCreators resets all changes to the "trust_center_watermark_config_creators" edge. +func (m *OrganizationMutation) ResetTrustCenterWatermarkConfigCreators() { + m.trust_center_watermark_config_creators = nil + m.clearedtrust_center_watermark_config_creators = false + m.removedtrust_center_watermark_config_creators = nil +} + +// AddUserCreatorIDs adds the "user_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddUserCreatorIDs(ids ...string) { + if m.user_creators == nil { + m.user_creators = make(map[string]struct{}) + } + for i := range ids { + m.user_creators[ids[i]] = struct{}{} + } +} + +// ClearUserCreators clears the "user_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearUserCreators() { + m.cleareduser_creators = true +} + +// UserCreatorsCleared reports if the "user_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) UserCreatorsCleared() bool { + return m.cleareduser_creators +} + +// RemoveUserCreatorIDs removes the "user_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveUserCreatorIDs(ids ...string) { + if m.removeduser_creators == nil { + m.removeduser_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.user_creators, ids[i]) + m.removeduser_creators[ids[i]] = struct{}{} + } +} + +// RemovedUserCreators returns the removed IDs of the "user_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedUserCreatorsIDs() (ids []string) { + for id := range m.removeduser_creators { + ids = append(ids, id) + } + return +} + +// UserCreatorsIDs returns the "user_creators" edge IDs in the mutation. +func (m *OrganizationMutation) UserCreatorsIDs() (ids []string) { + for id := range m.user_creators { + ids = append(ids, id) + } + return +} + +// ResetUserCreators resets all changes to the "user_creators" edge. +func (m *OrganizationMutation) ResetUserCreators() { + m.user_creators = nil + m.cleareduser_creators = false + m.removeduser_creators = nil +} + +// AddUserSettingCreatorIDs adds the "user_setting_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddUserSettingCreatorIDs(ids ...string) { + if m.user_setting_creators == nil { + m.user_setting_creators = make(map[string]struct{}) + } + for i := range ids { + m.user_setting_creators[ids[i]] = struct{}{} + } +} + +// ClearUserSettingCreators clears the "user_setting_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearUserSettingCreators() { + m.cleareduser_setting_creators = true +} + +// UserSettingCreatorsCleared reports if the "user_setting_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) UserSettingCreatorsCleared() bool { + return m.cleareduser_setting_creators +} + +// RemoveUserSettingCreatorIDs removes the "user_setting_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveUserSettingCreatorIDs(ids ...string) { + if m.removeduser_setting_creators == nil { + m.removeduser_setting_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.user_setting_creators, ids[i]) + m.removeduser_setting_creators[ids[i]] = struct{}{} + } +} + +// RemovedUserSettingCreators returns the removed IDs of the "user_setting_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedUserSettingCreatorsIDs() (ids []string) { + for id := range m.removeduser_setting_creators { + ids = append(ids, id) + } + return +} + +// UserSettingCreatorsIDs returns the "user_setting_creators" edge IDs in the mutation. +func (m *OrganizationMutation) UserSettingCreatorsIDs() (ids []string) { + for id := range m.user_setting_creators { + ids = append(ids, id) + } + return +} + +// ResetUserSettingCreators resets all changes to the "user_setting_creators" edge. +func (m *OrganizationMutation) ResetUserSettingCreators() { + m.user_setting_creators = nil + m.cleareduser_setting_creators = false + m.removeduser_setting_creators = nil +} + +// AddVendorRiskScoreCreatorIDs adds the "vendor_risk_score_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddVendorRiskScoreCreatorIDs(ids ...string) { + if m.vendor_risk_score_creators == nil { + m.vendor_risk_score_creators = make(map[string]struct{}) + } + for i := range ids { + m.vendor_risk_score_creators[ids[i]] = struct{}{} + } +} + +// ClearVendorRiskScoreCreators clears the "vendor_risk_score_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearVendorRiskScoreCreators() { + m.clearedvendor_risk_score_creators = true +} + +// VendorRiskScoreCreatorsCleared reports if the "vendor_risk_score_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) VendorRiskScoreCreatorsCleared() bool { + return m.clearedvendor_risk_score_creators +} + +// RemoveVendorRiskScoreCreatorIDs removes the "vendor_risk_score_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveVendorRiskScoreCreatorIDs(ids ...string) { + if m.removedvendor_risk_score_creators == nil { + m.removedvendor_risk_score_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.vendor_risk_score_creators, ids[i]) + m.removedvendor_risk_score_creators[ids[i]] = struct{}{} + } +} + +// RemovedVendorRiskScoreCreators returns the removed IDs of the "vendor_risk_score_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedVendorRiskScoreCreatorsIDs() (ids []string) { + for id := range m.removedvendor_risk_score_creators { + ids = append(ids, id) + } + return +} + +// VendorRiskScoreCreatorsIDs returns the "vendor_risk_score_creators" edge IDs in the mutation. +func (m *OrganizationMutation) VendorRiskScoreCreatorsIDs() (ids []string) { + for id := range m.vendor_risk_score_creators { + ids = append(ids, id) + } + return +} + +// ResetVendorRiskScoreCreators resets all changes to the "vendor_risk_score_creators" edge. +func (m *OrganizationMutation) ResetVendorRiskScoreCreators() { + m.vendor_risk_score_creators = nil + m.clearedvendor_risk_score_creators = false + m.removedvendor_risk_score_creators = nil } // AddVulnerabilityCreatorIDs adds the "vulnerability_creators" edge to the Group entity by ids. @@ -157673,814 +160865,814 @@ func (m *OrganizationMutation) ResetVulnerabilityCreators() { m.removedvulnerability_creators = nil } -// AddGroupCreatorIDs adds the "group_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddGroupCreatorIDs(ids ...string) { - if m.group_creators == nil { - m.group_creators = make(map[string]struct{}) +// AddWorkflowAssignmentCreatorIDs adds the "workflow_assignment_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowAssignmentCreatorIDs(ids ...string) { + if m.workflow_assignment_creators == nil { + m.workflow_assignment_creators = make(map[string]struct{}) } for i := range ids { - m.group_creators[ids[i]] = struct{}{} + m.workflow_assignment_creators[ids[i]] = struct{}{} } } -// ClearGroupCreators clears the "group_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearGroupCreators() { - m.clearedgroup_creators = true +// ClearWorkflowAssignmentCreators clears the "workflow_assignment_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowAssignmentCreators() { + m.clearedworkflow_assignment_creators = true } -// GroupCreatorsCleared reports if the "group_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) GroupCreatorsCleared() bool { - return m.clearedgroup_creators +// WorkflowAssignmentCreatorsCleared reports if the "workflow_assignment_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowAssignmentCreatorsCleared() bool { + return m.clearedworkflow_assignment_creators } -// RemoveGroupCreatorIDs removes the "group_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveGroupCreatorIDs(ids ...string) { - if m.removedgroup_creators == nil { - m.removedgroup_creators = make(map[string]struct{}) +// RemoveWorkflowAssignmentCreatorIDs removes the "workflow_assignment_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowAssignmentCreatorIDs(ids ...string) { + if m.removedworkflow_assignment_creators == nil { + m.removedworkflow_assignment_creators = make(map[string]struct{}) } for i := range ids { - delete(m.group_creators, ids[i]) - m.removedgroup_creators[ids[i]] = struct{}{} + delete(m.workflow_assignment_creators, ids[i]) + m.removedworkflow_assignment_creators[ids[i]] = struct{}{} } } -// RemovedGroupCreators returns the removed IDs of the "group_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedGroupCreatorsIDs() (ids []string) { - for id := range m.removedgroup_creators { +// RemovedWorkflowAssignmentCreators returns the removed IDs of the "workflow_assignment_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowAssignmentCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_assignment_creators { ids = append(ids, id) } return } -// GroupCreatorsIDs returns the "group_creators" edge IDs in the mutation. -func (m *OrganizationMutation) GroupCreatorsIDs() (ids []string) { - for id := range m.group_creators { +// WorkflowAssignmentCreatorsIDs returns the "workflow_assignment_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowAssignmentCreatorsIDs() (ids []string) { + for id := range m.workflow_assignment_creators { ids = append(ids, id) } return } -// ResetGroupCreators resets all changes to the "group_creators" edge. -func (m *OrganizationMutation) ResetGroupCreators() { - m.group_creators = nil - m.clearedgroup_creators = false - m.removedgroup_creators = nil +// ResetWorkflowAssignmentCreators resets all changes to the "workflow_assignment_creators" edge. +func (m *OrganizationMutation) ResetWorkflowAssignmentCreators() { + m.workflow_assignment_creators = nil + m.clearedworkflow_assignment_creators = false + m.removedworkflow_assignment_creators = nil } -// AddInternalPolicyCreatorIDs adds the "internal_policy_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddInternalPolicyCreatorIDs(ids ...string) { - if m.internal_policy_creators == nil { - m.internal_policy_creators = make(map[string]struct{}) +// AddWorkflowAssignmentTargetCreatorIDs adds the "workflow_assignment_target_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowAssignmentTargetCreatorIDs(ids ...string) { + if m.workflow_assignment_target_creators == nil { + m.workflow_assignment_target_creators = make(map[string]struct{}) } for i := range ids { - m.internal_policy_creators[ids[i]] = struct{}{} + m.workflow_assignment_target_creators[ids[i]] = struct{}{} } } -// ClearInternalPolicyCreators clears the "internal_policy_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearInternalPolicyCreators() { - m.clearedinternal_policy_creators = true +// ClearWorkflowAssignmentTargetCreators clears the "workflow_assignment_target_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowAssignmentTargetCreators() { + m.clearedworkflow_assignment_target_creators = true } -// InternalPolicyCreatorsCleared reports if the "internal_policy_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) InternalPolicyCreatorsCleared() bool { - return m.clearedinternal_policy_creators +// WorkflowAssignmentTargetCreatorsCleared reports if the "workflow_assignment_target_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowAssignmentTargetCreatorsCleared() bool { + return m.clearedworkflow_assignment_target_creators } -// RemoveInternalPolicyCreatorIDs removes the "internal_policy_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveInternalPolicyCreatorIDs(ids ...string) { - if m.removedinternal_policy_creators == nil { - m.removedinternal_policy_creators = make(map[string]struct{}) +// RemoveWorkflowAssignmentTargetCreatorIDs removes the "workflow_assignment_target_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowAssignmentTargetCreatorIDs(ids ...string) { + if m.removedworkflow_assignment_target_creators == nil { + m.removedworkflow_assignment_target_creators = make(map[string]struct{}) } for i := range ids { - delete(m.internal_policy_creators, ids[i]) - m.removedinternal_policy_creators[ids[i]] = struct{}{} + delete(m.workflow_assignment_target_creators, ids[i]) + m.removedworkflow_assignment_target_creators[ids[i]] = struct{}{} } } -// RemovedInternalPolicyCreators returns the removed IDs of the "internal_policy_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedInternalPolicyCreatorsIDs() (ids []string) { - for id := range m.removedinternal_policy_creators { +// RemovedWorkflowAssignmentTargetCreators returns the removed IDs of the "workflow_assignment_target_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowAssignmentTargetCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_assignment_target_creators { ids = append(ids, id) } return } -// InternalPolicyCreatorsIDs returns the "internal_policy_creators" edge IDs in the mutation. -func (m *OrganizationMutation) InternalPolicyCreatorsIDs() (ids []string) { - for id := range m.internal_policy_creators { +// WorkflowAssignmentTargetCreatorsIDs returns the "workflow_assignment_target_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowAssignmentTargetCreatorsIDs() (ids []string) { + for id := range m.workflow_assignment_target_creators { ids = append(ids, id) } return } -// ResetInternalPolicyCreators resets all changes to the "internal_policy_creators" edge. -func (m *OrganizationMutation) ResetInternalPolicyCreators() { - m.internal_policy_creators = nil - m.clearedinternal_policy_creators = false - m.removedinternal_policy_creators = nil +// ResetWorkflowAssignmentTargetCreators resets all changes to the "workflow_assignment_target_creators" edge. +func (m *OrganizationMutation) ResetWorkflowAssignmentTargetCreators() { + m.workflow_assignment_target_creators = nil + m.clearedworkflow_assignment_target_creators = false + m.removedworkflow_assignment_target_creators = nil } -// AddMappedControlCreatorIDs adds the "mapped_control_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddMappedControlCreatorIDs(ids ...string) { - if m.mapped_control_creators == nil { - m.mapped_control_creators = make(map[string]struct{}) +// AddWorkflowDefinitionCreatorIDs adds the "workflow_definition_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowDefinitionCreatorIDs(ids ...string) { + if m.workflow_definition_creators == nil { + m.workflow_definition_creators = make(map[string]struct{}) } for i := range ids { - m.mapped_control_creators[ids[i]] = struct{}{} + m.workflow_definition_creators[ids[i]] = struct{}{} } } -// ClearMappedControlCreators clears the "mapped_control_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearMappedControlCreators() { - m.clearedmapped_control_creators = true +// ClearWorkflowDefinitionCreators clears the "workflow_definition_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowDefinitionCreators() { + m.clearedworkflow_definition_creators = true } -// MappedControlCreatorsCleared reports if the "mapped_control_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) MappedControlCreatorsCleared() bool { - return m.clearedmapped_control_creators +// WorkflowDefinitionCreatorsCleared reports if the "workflow_definition_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowDefinitionCreatorsCleared() bool { + return m.clearedworkflow_definition_creators } -// RemoveMappedControlCreatorIDs removes the "mapped_control_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveMappedControlCreatorIDs(ids ...string) { - if m.removedmapped_control_creators == nil { - m.removedmapped_control_creators = make(map[string]struct{}) +// RemoveWorkflowDefinitionCreatorIDs removes the "workflow_definition_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowDefinitionCreatorIDs(ids ...string) { + if m.removedworkflow_definition_creators == nil { + m.removedworkflow_definition_creators = make(map[string]struct{}) } for i := range ids { - delete(m.mapped_control_creators, ids[i]) - m.removedmapped_control_creators[ids[i]] = struct{}{} + delete(m.workflow_definition_creators, ids[i]) + m.removedworkflow_definition_creators[ids[i]] = struct{}{} } } -// RemovedMappedControlCreators returns the removed IDs of the "mapped_control_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedMappedControlCreatorsIDs() (ids []string) { - for id := range m.removedmapped_control_creators { +// RemovedWorkflowDefinitionCreators returns the removed IDs of the "workflow_definition_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowDefinitionCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_definition_creators { ids = append(ids, id) } return } -// MappedControlCreatorsIDs returns the "mapped_control_creators" edge IDs in the mutation. -func (m *OrganizationMutation) MappedControlCreatorsIDs() (ids []string) { - for id := range m.mapped_control_creators { +// WorkflowDefinitionCreatorsIDs returns the "workflow_definition_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowDefinitionCreatorsIDs() (ids []string) { + for id := range m.workflow_definition_creators { ids = append(ids, id) } return } -// ResetMappedControlCreators resets all changes to the "mapped_control_creators" edge. -func (m *OrganizationMutation) ResetMappedControlCreators() { - m.mapped_control_creators = nil - m.clearedmapped_control_creators = false - m.removedmapped_control_creators = nil +// ResetWorkflowDefinitionCreators resets all changes to the "workflow_definition_creators" edge. +func (m *OrganizationMutation) ResetWorkflowDefinitionCreators() { + m.workflow_definition_creators = nil + m.clearedworkflow_definition_creators = false + m.removedworkflow_definition_creators = nil } -// AddNarrativeCreatorIDs adds the "narrative_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddNarrativeCreatorIDs(ids ...string) { - if m.narrative_creators == nil { - m.narrative_creators = make(map[string]struct{}) +// AddWorkflowEventCreatorIDs adds the "workflow_event_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowEventCreatorIDs(ids ...string) { + if m.workflow_event_creators == nil { + m.workflow_event_creators = make(map[string]struct{}) } for i := range ids { - m.narrative_creators[ids[i]] = struct{}{} + m.workflow_event_creators[ids[i]] = struct{}{} } } -// ClearNarrativeCreators clears the "narrative_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearNarrativeCreators() { - m.clearednarrative_creators = true +// ClearWorkflowEventCreators clears the "workflow_event_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowEventCreators() { + m.clearedworkflow_event_creators = true } -// NarrativeCreatorsCleared reports if the "narrative_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) NarrativeCreatorsCleared() bool { - return m.clearednarrative_creators +// WorkflowEventCreatorsCleared reports if the "workflow_event_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowEventCreatorsCleared() bool { + return m.clearedworkflow_event_creators } -// RemoveNarrativeCreatorIDs removes the "narrative_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveNarrativeCreatorIDs(ids ...string) { - if m.removednarrative_creators == nil { - m.removednarrative_creators = make(map[string]struct{}) +// RemoveWorkflowEventCreatorIDs removes the "workflow_event_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowEventCreatorIDs(ids ...string) { + if m.removedworkflow_event_creators == nil { + m.removedworkflow_event_creators = make(map[string]struct{}) } for i := range ids { - delete(m.narrative_creators, ids[i]) - m.removednarrative_creators[ids[i]] = struct{}{} + delete(m.workflow_event_creators, ids[i]) + m.removedworkflow_event_creators[ids[i]] = struct{}{} } } -// RemovedNarrativeCreators returns the removed IDs of the "narrative_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedNarrativeCreatorsIDs() (ids []string) { - for id := range m.removednarrative_creators { +// RemovedWorkflowEventCreators returns the removed IDs of the "workflow_event_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowEventCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_event_creators { ids = append(ids, id) } return } -// NarrativeCreatorsIDs returns the "narrative_creators" edge IDs in the mutation. -func (m *OrganizationMutation) NarrativeCreatorsIDs() (ids []string) { - for id := range m.narrative_creators { +// WorkflowEventCreatorsIDs returns the "workflow_event_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowEventCreatorsIDs() (ids []string) { + for id := range m.workflow_event_creators { ids = append(ids, id) } return } -// ResetNarrativeCreators resets all changes to the "narrative_creators" edge. -func (m *OrganizationMutation) ResetNarrativeCreators() { - m.narrative_creators = nil - m.clearednarrative_creators = false - m.removednarrative_creators = nil +// ResetWorkflowEventCreators resets all changes to the "workflow_event_creators" edge. +func (m *OrganizationMutation) ResetWorkflowEventCreators() { + m.workflow_event_creators = nil + m.clearedworkflow_event_creators = false + m.removedworkflow_event_creators = nil } -// AddProcedureCreatorIDs adds the "procedure_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddProcedureCreatorIDs(ids ...string) { - if m.procedure_creators == nil { - m.procedure_creators = make(map[string]struct{}) +// AddWorkflowInstanceCreatorIDs adds the "workflow_instance_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowInstanceCreatorIDs(ids ...string) { + if m.workflow_instance_creators == nil { + m.workflow_instance_creators = make(map[string]struct{}) } for i := range ids { - m.procedure_creators[ids[i]] = struct{}{} + m.workflow_instance_creators[ids[i]] = struct{}{} } } -// ClearProcedureCreators clears the "procedure_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearProcedureCreators() { - m.clearedprocedure_creators = true +// ClearWorkflowInstanceCreators clears the "workflow_instance_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowInstanceCreators() { + m.clearedworkflow_instance_creators = true } -// ProcedureCreatorsCleared reports if the "procedure_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ProcedureCreatorsCleared() bool { - return m.clearedprocedure_creators +// WorkflowInstanceCreatorsCleared reports if the "workflow_instance_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowInstanceCreatorsCleared() bool { + return m.clearedworkflow_instance_creators } -// RemoveProcedureCreatorIDs removes the "procedure_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveProcedureCreatorIDs(ids ...string) { - if m.removedprocedure_creators == nil { - m.removedprocedure_creators = make(map[string]struct{}) +// RemoveWorkflowInstanceCreatorIDs removes the "workflow_instance_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowInstanceCreatorIDs(ids ...string) { + if m.removedworkflow_instance_creators == nil { + m.removedworkflow_instance_creators = make(map[string]struct{}) } for i := range ids { - delete(m.procedure_creators, ids[i]) - m.removedprocedure_creators[ids[i]] = struct{}{} + delete(m.workflow_instance_creators, ids[i]) + m.removedworkflow_instance_creators[ids[i]] = struct{}{} } } -// RemovedProcedureCreators returns the removed IDs of the "procedure_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedProcedureCreatorsIDs() (ids []string) { - for id := range m.removedprocedure_creators { +// RemovedWorkflowInstanceCreators returns the removed IDs of the "workflow_instance_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowInstanceCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_instance_creators { ids = append(ids, id) } return } -// ProcedureCreatorsIDs returns the "procedure_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ProcedureCreatorsIDs() (ids []string) { - for id := range m.procedure_creators { +// WorkflowInstanceCreatorsIDs returns the "workflow_instance_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowInstanceCreatorsIDs() (ids []string) { + for id := range m.workflow_instance_creators { ids = append(ids, id) } return } -// ResetProcedureCreators resets all changes to the "procedure_creators" edge. -func (m *OrganizationMutation) ResetProcedureCreators() { - m.procedure_creators = nil - m.clearedprocedure_creators = false - m.removedprocedure_creators = nil +// ResetWorkflowInstanceCreators resets all changes to the "workflow_instance_creators" edge. +func (m *OrganizationMutation) ResetWorkflowInstanceCreators() { + m.workflow_instance_creators = nil + m.clearedworkflow_instance_creators = false + m.removedworkflow_instance_creators = nil } -// AddProgramCreatorIDs adds the "program_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddProgramCreatorIDs(ids ...string) { - if m.program_creators == nil { - m.program_creators = make(map[string]struct{}) +// AddWorkflowObjectRefCreatorIDs adds the "workflow_object_ref_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowObjectRefCreatorIDs(ids ...string) { + if m.workflow_object_ref_creators == nil { + m.workflow_object_ref_creators = make(map[string]struct{}) } for i := range ids { - m.program_creators[ids[i]] = struct{}{} + m.workflow_object_ref_creators[ids[i]] = struct{}{} } } -// ClearProgramCreators clears the "program_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearProgramCreators() { - m.clearedprogram_creators = true +// ClearWorkflowObjectRefCreators clears the "workflow_object_ref_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowObjectRefCreators() { + m.clearedworkflow_object_ref_creators = true } -// ProgramCreatorsCleared reports if the "program_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ProgramCreatorsCleared() bool { - return m.clearedprogram_creators +// WorkflowObjectRefCreatorsCleared reports if the "workflow_object_ref_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowObjectRefCreatorsCleared() bool { + return m.clearedworkflow_object_ref_creators } -// RemoveProgramCreatorIDs removes the "program_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveProgramCreatorIDs(ids ...string) { - if m.removedprogram_creators == nil { - m.removedprogram_creators = make(map[string]struct{}) +// RemoveWorkflowObjectRefCreatorIDs removes the "workflow_object_ref_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowObjectRefCreatorIDs(ids ...string) { + if m.removedworkflow_object_ref_creators == nil { + m.removedworkflow_object_ref_creators = make(map[string]struct{}) } for i := range ids { - delete(m.program_creators, ids[i]) - m.removedprogram_creators[ids[i]] = struct{}{} + delete(m.workflow_object_ref_creators, ids[i]) + m.removedworkflow_object_ref_creators[ids[i]] = struct{}{} } } -// RemovedProgramCreators returns the removed IDs of the "program_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedProgramCreatorsIDs() (ids []string) { - for id := range m.removedprogram_creators { +// RemovedWorkflowObjectRefCreators returns the removed IDs of the "workflow_object_ref_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowObjectRefCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_object_ref_creators { ids = append(ids, id) } return } -// ProgramCreatorsIDs returns the "program_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ProgramCreatorsIDs() (ids []string) { - for id := range m.program_creators { +// WorkflowObjectRefCreatorsIDs returns the "workflow_object_ref_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowObjectRefCreatorsIDs() (ids []string) { + for id := range m.workflow_object_ref_creators { ids = append(ids, id) } return } -// ResetProgramCreators resets all changes to the "program_creators" edge. -func (m *OrganizationMutation) ResetProgramCreators() { - m.program_creators = nil - m.clearedprogram_creators = false - m.removedprogram_creators = nil +// ResetWorkflowObjectRefCreators resets all changes to the "workflow_object_ref_creators" edge. +func (m *OrganizationMutation) ResetWorkflowObjectRefCreators() { + m.workflow_object_ref_creators = nil + m.clearedworkflow_object_ref_creators = false + m.removedworkflow_object_ref_creators = nil } -// AddRiskCreatorIDs adds the "risk_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddRiskCreatorIDs(ids ...string) { - if m.risk_creators == nil { - m.risk_creators = make(map[string]struct{}) +// AddWorkflowProposalCreatorIDs adds the "workflow_proposal_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowProposalCreatorIDs(ids ...string) { + if m.workflow_proposal_creators == nil { + m.workflow_proposal_creators = make(map[string]struct{}) } for i := range ids { - m.risk_creators[ids[i]] = struct{}{} + m.workflow_proposal_creators[ids[i]] = struct{}{} } } -// ClearRiskCreators clears the "risk_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearRiskCreators() { - m.clearedrisk_creators = true +// ClearWorkflowProposalCreators clears the "workflow_proposal_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowProposalCreators() { + m.clearedworkflow_proposal_creators = true } -// RiskCreatorsCleared reports if the "risk_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) RiskCreatorsCleared() bool { - return m.clearedrisk_creators +// WorkflowProposalCreatorsCleared reports if the "workflow_proposal_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowProposalCreatorsCleared() bool { + return m.clearedworkflow_proposal_creators } -// RemoveRiskCreatorIDs removes the "risk_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveRiskCreatorIDs(ids ...string) { - if m.removedrisk_creators == nil { - m.removedrisk_creators = make(map[string]struct{}) +// RemoveWorkflowProposalCreatorIDs removes the "workflow_proposal_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowProposalCreatorIDs(ids ...string) { + if m.removedworkflow_proposal_creators == nil { + m.removedworkflow_proposal_creators = make(map[string]struct{}) } for i := range ids { - delete(m.risk_creators, ids[i]) - m.removedrisk_creators[ids[i]] = struct{}{} + delete(m.workflow_proposal_creators, ids[i]) + m.removedworkflow_proposal_creators[ids[i]] = struct{}{} } } -// RemovedRiskCreators returns the removed IDs of the "risk_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedRiskCreatorsIDs() (ids []string) { - for id := range m.removedrisk_creators { +// RemovedWorkflowProposalCreators returns the removed IDs of the "workflow_proposal_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowProposalCreatorsIDs() (ids []string) { + for id := range m.removedworkflow_proposal_creators { ids = append(ids, id) } return } -// RiskCreatorsIDs returns the "risk_creators" edge IDs in the mutation. -func (m *OrganizationMutation) RiskCreatorsIDs() (ids []string) { - for id := range m.risk_creators { +// WorkflowProposalCreatorsIDs returns the "workflow_proposal_creators" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowProposalCreatorsIDs() (ids []string) { + for id := range m.workflow_proposal_creators { ids = append(ids, id) } return } -// ResetRiskCreators resets all changes to the "risk_creators" edge. -func (m *OrganizationMutation) ResetRiskCreators() { - m.risk_creators = nil - m.clearedrisk_creators = false - m.removedrisk_creators = nil +// ResetWorkflowProposalCreators resets all changes to the "workflow_proposal_creators" edge. +func (m *OrganizationMutation) ResetWorkflowProposalCreators() { + m.workflow_proposal_creators = nil + m.clearedworkflow_proposal_creators = false + m.removedworkflow_proposal_creators = nil } -// AddIdentityHolderCreatorIDs adds the "identity_holder_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddIdentityHolderCreatorIDs(ids ...string) { - if m.identity_holder_creators == nil { - m.identity_holder_creators = make(map[string]struct{}) +// AddCampaignsManagerIDs adds the "campaigns_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddCampaignsManagerIDs(ids ...string) { + if m.campaigns_manager == nil { + m.campaigns_manager = make(map[string]struct{}) } for i := range ids { - m.identity_holder_creators[ids[i]] = struct{}{} + m.campaigns_manager[ids[i]] = struct{}{} } } -// ClearIdentityHolderCreators clears the "identity_holder_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearIdentityHolderCreators() { - m.clearedidentity_holder_creators = true +// ClearCampaignsManager clears the "campaigns_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearCampaignsManager() { + m.clearedcampaigns_manager = true } -// IdentityHolderCreatorsCleared reports if the "identity_holder_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) IdentityHolderCreatorsCleared() bool { - return m.clearedidentity_holder_creators +// CampaignsManagerCleared reports if the "campaigns_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) CampaignsManagerCleared() bool { + return m.clearedcampaigns_manager } -// RemoveIdentityHolderCreatorIDs removes the "identity_holder_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveIdentityHolderCreatorIDs(ids ...string) { - if m.removedidentity_holder_creators == nil { - m.removedidentity_holder_creators = make(map[string]struct{}) +// RemoveCampaignsManagerIDs removes the "campaigns_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveCampaignsManagerIDs(ids ...string) { + if m.removedcampaigns_manager == nil { + m.removedcampaigns_manager = make(map[string]struct{}) } for i := range ids { - delete(m.identity_holder_creators, ids[i]) - m.removedidentity_holder_creators[ids[i]] = struct{}{} + delete(m.campaigns_manager, ids[i]) + m.removedcampaigns_manager[ids[i]] = struct{}{} } } -// RemovedIdentityHolderCreators returns the removed IDs of the "identity_holder_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedIdentityHolderCreatorsIDs() (ids []string) { - for id := range m.removedidentity_holder_creators { +// RemovedCampaignsManager returns the removed IDs of the "campaigns_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedCampaignsManagerIDs() (ids []string) { + for id := range m.removedcampaigns_manager { ids = append(ids, id) } return } -// IdentityHolderCreatorsIDs returns the "identity_holder_creators" edge IDs in the mutation. -func (m *OrganizationMutation) IdentityHolderCreatorsIDs() (ids []string) { - for id := range m.identity_holder_creators { +// CampaignsManagerIDs returns the "campaigns_manager" edge IDs in the mutation. +func (m *OrganizationMutation) CampaignsManagerIDs() (ids []string) { + for id := range m.campaigns_manager { ids = append(ids, id) } return } -// ResetIdentityHolderCreators resets all changes to the "identity_holder_creators" edge. -func (m *OrganizationMutation) ResetIdentityHolderCreators() { - m.identity_holder_creators = nil - m.clearedidentity_holder_creators = false - m.removedidentity_holder_creators = nil +// ResetCampaignsManager resets all changes to the "campaigns_manager" edge. +func (m *OrganizationMutation) ResetCampaignsManager() { + m.campaigns_manager = nil + m.clearedcampaigns_manager = false + m.removedcampaigns_manager = nil } -// AddScheduledJobCreatorIDs adds the "scheduled_job_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddScheduledJobCreatorIDs(ids ...string) { - if m.scheduled_job_creators == nil { - m.scheduled_job_creators = make(map[string]struct{}) +// AddComplianceManagerIDs adds the "compliance_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddComplianceManagerIDs(ids ...string) { + if m.compliance_manager == nil { + m.compliance_manager = make(map[string]struct{}) } for i := range ids { - m.scheduled_job_creators[ids[i]] = struct{}{} + m.compliance_manager[ids[i]] = struct{}{} } } -// ClearScheduledJobCreators clears the "scheduled_job_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearScheduledJobCreators() { - m.clearedscheduled_job_creators = true +// ClearComplianceManager clears the "compliance_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearComplianceManager() { + m.clearedcompliance_manager = true } -// ScheduledJobCreatorsCleared reports if the "scheduled_job_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ScheduledJobCreatorsCleared() bool { - return m.clearedscheduled_job_creators +// ComplianceManagerCleared reports if the "compliance_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) ComplianceManagerCleared() bool { + return m.clearedcompliance_manager } -// RemoveScheduledJobCreatorIDs removes the "scheduled_job_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveScheduledJobCreatorIDs(ids ...string) { - if m.removedscheduled_job_creators == nil { - m.removedscheduled_job_creators = make(map[string]struct{}) +// RemoveComplianceManagerIDs removes the "compliance_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveComplianceManagerIDs(ids ...string) { + if m.removedcompliance_manager == nil { + m.removedcompliance_manager = make(map[string]struct{}) } for i := range ids { - delete(m.scheduled_job_creators, ids[i]) - m.removedscheduled_job_creators[ids[i]] = struct{}{} + delete(m.compliance_manager, ids[i]) + m.removedcompliance_manager[ids[i]] = struct{}{} } } -// RemovedScheduledJobCreators returns the removed IDs of the "scheduled_job_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedScheduledJobCreatorsIDs() (ids []string) { - for id := range m.removedscheduled_job_creators { +// RemovedComplianceManager returns the removed IDs of the "compliance_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedComplianceManagerIDs() (ids []string) { + for id := range m.removedcompliance_manager { ids = append(ids, id) } return } -// ScheduledJobCreatorsIDs returns the "scheduled_job_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ScheduledJobCreatorsIDs() (ids []string) { - for id := range m.scheduled_job_creators { +// ComplianceManagerIDs returns the "compliance_manager" edge IDs in the mutation. +func (m *OrganizationMutation) ComplianceManagerIDs() (ids []string) { + for id := range m.compliance_manager { ids = append(ids, id) - } - return -} - -// ResetScheduledJobCreators resets all changes to the "scheduled_job_creators" edge. -func (m *OrganizationMutation) ResetScheduledJobCreators() { - m.scheduled_job_creators = nil - m.clearedscheduled_job_creators = false - m.removedscheduled_job_creators = nil + } + return } -// AddStandardCreatorIDs adds the "standard_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddStandardCreatorIDs(ids ...string) { - if m.standard_creators == nil { - m.standard_creators = make(map[string]struct{}) +// ResetComplianceManager resets all changes to the "compliance_manager" edge. +func (m *OrganizationMutation) ResetComplianceManager() { + m.compliance_manager = nil + m.clearedcompliance_manager = false + m.removedcompliance_manager = nil +} + +// AddGroupManagerIDs adds the "group_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddGroupManagerIDs(ids ...string) { + if m.group_manager == nil { + m.group_manager = make(map[string]struct{}) } for i := range ids { - m.standard_creators[ids[i]] = struct{}{} + m.group_manager[ids[i]] = struct{}{} } } -// ClearStandardCreators clears the "standard_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearStandardCreators() { - m.clearedstandard_creators = true +// ClearGroupManager clears the "group_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearGroupManager() { + m.clearedgroup_manager = true } -// StandardCreatorsCleared reports if the "standard_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) StandardCreatorsCleared() bool { - return m.clearedstandard_creators +// GroupManagerCleared reports if the "group_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) GroupManagerCleared() bool { + return m.clearedgroup_manager } -// RemoveStandardCreatorIDs removes the "standard_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveStandardCreatorIDs(ids ...string) { - if m.removedstandard_creators == nil { - m.removedstandard_creators = make(map[string]struct{}) +// RemoveGroupManagerIDs removes the "group_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveGroupManagerIDs(ids ...string) { + if m.removedgroup_manager == nil { + m.removedgroup_manager = make(map[string]struct{}) } for i := range ids { - delete(m.standard_creators, ids[i]) - m.removedstandard_creators[ids[i]] = struct{}{} + delete(m.group_manager, ids[i]) + m.removedgroup_manager[ids[i]] = struct{}{} } } -// RemovedStandardCreators returns the removed IDs of the "standard_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedStandardCreatorsIDs() (ids []string) { - for id := range m.removedstandard_creators { +// RemovedGroupManager returns the removed IDs of the "group_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedGroupManagerIDs() (ids []string) { + for id := range m.removedgroup_manager { ids = append(ids, id) } return } -// StandardCreatorsIDs returns the "standard_creators" edge IDs in the mutation. -func (m *OrganizationMutation) StandardCreatorsIDs() (ids []string) { - for id := range m.standard_creators { +// GroupManagerIDs returns the "group_manager" edge IDs in the mutation. +func (m *OrganizationMutation) GroupManagerIDs() (ids []string) { + for id := range m.group_manager { ids = append(ids, id) } return } -// ResetStandardCreators resets all changes to the "standard_creators" edge. -func (m *OrganizationMutation) ResetStandardCreators() { - m.standard_creators = nil - m.clearedstandard_creators = false - m.removedstandard_creators = nil +// ResetGroupManager resets all changes to the "group_manager" edge. +func (m *OrganizationMutation) ResetGroupManager() { + m.group_manager = nil + m.clearedgroup_manager = false + m.removedgroup_manager = nil } -// AddTemplateCreatorIDs adds the "template_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddTemplateCreatorIDs(ids ...string) { - if m.template_creators == nil { - m.template_creators = make(map[string]struct{}) +// AddPoliciesManagerIDs adds the "policies_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddPoliciesManagerIDs(ids ...string) { + if m.policies_manager == nil { + m.policies_manager = make(map[string]struct{}) } for i := range ids { - m.template_creators[ids[i]] = struct{}{} + m.policies_manager[ids[i]] = struct{}{} } } -// ClearTemplateCreators clears the "template_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearTemplateCreators() { - m.clearedtemplate_creators = true +// ClearPoliciesManager clears the "policies_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearPoliciesManager() { + m.clearedpolicies_manager = true } -// TemplateCreatorsCleared reports if the "template_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) TemplateCreatorsCleared() bool { - return m.clearedtemplate_creators +// PoliciesManagerCleared reports if the "policies_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) PoliciesManagerCleared() bool { + return m.clearedpolicies_manager } -// RemoveTemplateCreatorIDs removes the "template_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveTemplateCreatorIDs(ids ...string) { - if m.removedtemplate_creators == nil { - m.removedtemplate_creators = make(map[string]struct{}) +// RemovePoliciesManagerIDs removes the "policies_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemovePoliciesManagerIDs(ids ...string) { + if m.removedpolicies_manager == nil { + m.removedpolicies_manager = make(map[string]struct{}) } for i := range ids { - delete(m.template_creators, ids[i]) - m.removedtemplate_creators[ids[i]] = struct{}{} + delete(m.policies_manager, ids[i]) + m.removedpolicies_manager[ids[i]] = struct{}{} } } -// RemovedTemplateCreators returns the removed IDs of the "template_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedTemplateCreatorsIDs() (ids []string) { - for id := range m.removedtemplate_creators { +// RemovedPoliciesManager returns the removed IDs of the "policies_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedPoliciesManagerIDs() (ids []string) { + for id := range m.removedpolicies_manager { ids = append(ids, id) } return } -// TemplateCreatorsIDs returns the "template_creators" edge IDs in the mutation. -func (m *OrganizationMutation) TemplateCreatorsIDs() (ids []string) { - for id := range m.template_creators { +// PoliciesManagerIDs returns the "policies_manager" edge IDs in the mutation. +func (m *OrganizationMutation) PoliciesManagerIDs() (ids []string) { + for id := range m.policies_manager { ids = append(ids, id) } return } -// ResetTemplateCreators resets all changes to the "template_creators" edge. -func (m *OrganizationMutation) ResetTemplateCreators() { - m.template_creators = nil - m.clearedtemplate_creators = false - m.removedtemplate_creators = nil +// ResetPoliciesManager resets all changes to the "policies_manager" edge. +func (m *OrganizationMutation) ResetPoliciesManager() { + m.policies_manager = nil + m.clearedpolicies_manager = false + m.removedpolicies_manager = nil } -// AddSubprocessorCreatorIDs adds the "subprocessor_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddSubprocessorCreatorIDs(ids ...string) { - if m.subprocessor_creators == nil { - m.subprocessor_creators = make(map[string]struct{}) +// AddRegistryManagerIDs adds the "registry_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddRegistryManagerIDs(ids ...string) { + if m.registry_manager == nil { + m.registry_manager = make(map[string]struct{}) } for i := range ids { - m.subprocessor_creators[ids[i]] = struct{}{} + m.registry_manager[ids[i]] = struct{}{} } } -// ClearSubprocessorCreators clears the "subprocessor_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearSubprocessorCreators() { - m.clearedsubprocessor_creators = true +// ClearRegistryManager clears the "registry_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearRegistryManager() { + m.clearedregistry_manager = true } -// SubprocessorCreatorsCleared reports if the "subprocessor_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) SubprocessorCreatorsCleared() bool { - return m.clearedsubprocessor_creators +// RegistryManagerCleared reports if the "registry_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) RegistryManagerCleared() bool { + return m.clearedregistry_manager } -// RemoveSubprocessorCreatorIDs removes the "subprocessor_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveSubprocessorCreatorIDs(ids ...string) { - if m.removedsubprocessor_creators == nil { - m.removedsubprocessor_creators = make(map[string]struct{}) +// RemoveRegistryManagerIDs removes the "registry_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveRegistryManagerIDs(ids ...string) { + if m.removedregistry_manager == nil { + m.removedregistry_manager = make(map[string]struct{}) } for i := range ids { - delete(m.subprocessor_creators, ids[i]) - m.removedsubprocessor_creators[ids[i]] = struct{}{} + delete(m.registry_manager, ids[i]) + m.removedregistry_manager[ids[i]] = struct{}{} } } -// RemovedSubprocessorCreators returns the removed IDs of the "subprocessor_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedSubprocessorCreatorsIDs() (ids []string) { - for id := range m.removedsubprocessor_creators { +// RemovedRegistryManager returns the removed IDs of the "registry_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedRegistryManagerIDs() (ids []string) { + for id := range m.removedregistry_manager { ids = append(ids, id) } return } -// SubprocessorCreatorsIDs returns the "subprocessor_creators" edge IDs in the mutation. -func (m *OrganizationMutation) SubprocessorCreatorsIDs() (ids []string) { - for id := range m.subprocessor_creators { +// RegistryManagerIDs returns the "registry_manager" edge IDs in the mutation. +func (m *OrganizationMutation) RegistryManagerIDs() (ids []string) { + for id := range m.registry_manager { ids = append(ids, id) } return } -// ResetSubprocessorCreators resets all changes to the "subprocessor_creators" edge. -func (m *OrganizationMutation) ResetSubprocessorCreators() { - m.subprocessor_creators = nil - m.clearedsubprocessor_creators = false - m.removedsubprocessor_creators = nil +// ResetRegistryManager resets all changes to the "registry_manager" edge. +func (m *OrganizationMutation) ResetRegistryManager() { + m.registry_manager = nil + m.clearedregistry_manager = false + m.removedregistry_manager = nil } -// AddTrustCenterDocCreatorIDs adds the "trust_center_doc_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddTrustCenterDocCreatorIDs(ids ...string) { - if m.trust_center_doc_creators == nil { - m.trust_center_doc_creators = make(map[string]struct{}) +// AddRiskManagerIDs adds the "risk_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddRiskManagerIDs(ids ...string) { + if m.risk_manager == nil { + m.risk_manager = make(map[string]struct{}) } for i := range ids { - m.trust_center_doc_creators[ids[i]] = struct{}{} + m.risk_manager[ids[i]] = struct{}{} } } -// ClearTrustCenterDocCreators clears the "trust_center_doc_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearTrustCenterDocCreators() { - m.clearedtrust_center_doc_creators = true +// ClearRiskManager clears the "risk_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearRiskManager() { + m.clearedrisk_manager = true } -// TrustCenterDocCreatorsCleared reports if the "trust_center_doc_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) TrustCenterDocCreatorsCleared() bool { - return m.clearedtrust_center_doc_creators +// RiskManagerCleared reports if the "risk_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) RiskManagerCleared() bool { + return m.clearedrisk_manager } -// RemoveTrustCenterDocCreatorIDs removes the "trust_center_doc_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveTrustCenterDocCreatorIDs(ids ...string) { - if m.removedtrust_center_doc_creators == nil { - m.removedtrust_center_doc_creators = make(map[string]struct{}) +// RemoveRiskManagerIDs removes the "risk_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveRiskManagerIDs(ids ...string) { + if m.removedrisk_manager == nil { + m.removedrisk_manager = make(map[string]struct{}) } for i := range ids { - delete(m.trust_center_doc_creators, ids[i]) - m.removedtrust_center_doc_creators[ids[i]] = struct{}{} + delete(m.risk_manager, ids[i]) + m.removedrisk_manager[ids[i]] = struct{}{} } } -// RemovedTrustCenterDocCreators returns the removed IDs of the "trust_center_doc_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedTrustCenterDocCreatorsIDs() (ids []string) { - for id := range m.removedtrust_center_doc_creators { +// RemovedRiskManager returns the removed IDs of the "risk_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedRiskManagerIDs() (ids []string) { + for id := range m.removedrisk_manager { ids = append(ids, id) } return } -// TrustCenterDocCreatorsIDs returns the "trust_center_doc_creators" edge IDs in the mutation. -func (m *OrganizationMutation) TrustCenterDocCreatorsIDs() (ids []string) { - for id := range m.trust_center_doc_creators { +// RiskManagerIDs returns the "risk_manager" edge IDs in the mutation. +func (m *OrganizationMutation) RiskManagerIDs() (ids []string) { + for id := range m.risk_manager { ids = append(ids, id) } return } -// ResetTrustCenterDocCreators resets all changes to the "trust_center_doc_creators" edge. -func (m *OrganizationMutation) ResetTrustCenterDocCreators() { - m.trust_center_doc_creators = nil - m.clearedtrust_center_doc_creators = false - m.removedtrust_center_doc_creators = nil +// ResetRiskManager resets all changes to the "risk_manager" edge. +func (m *OrganizationMutation) ResetRiskManager() { + m.risk_manager = nil + m.clearedrisk_manager = false + m.removedrisk_manager = nil } -// AddTrustCenterSubprocessorCreatorIDs adds the "trust_center_subprocessor_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddTrustCenterSubprocessorCreatorIDs(ids ...string) { - if m.trust_center_subprocessor_creators == nil { - m.trust_center_subprocessor_creators = make(map[string]struct{}) +// AddTrustCenterManagerIDs adds the "trust_center_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddTrustCenterManagerIDs(ids ...string) { + if m.trust_center_manager == nil { + m.trust_center_manager = make(map[string]struct{}) } for i := range ids { - m.trust_center_subprocessor_creators[ids[i]] = struct{}{} + m.trust_center_manager[ids[i]] = struct{}{} } } -// ClearTrustCenterSubprocessorCreators clears the "trust_center_subprocessor_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearTrustCenterSubprocessorCreators() { - m.clearedtrust_center_subprocessor_creators = true +// ClearTrustCenterManager clears the "trust_center_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearTrustCenterManager() { + m.clearedtrust_center_manager = true } -// TrustCenterSubprocessorCreatorsCleared reports if the "trust_center_subprocessor_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) TrustCenterSubprocessorCreatorsCleared() bool { - return m.clearedtrust_center_subprocessor_creators +// TrustCenterManagerCleared reports if the "trust_center_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) TrustCenterManagerCleared() bool { + return m.clearedtrust_center_manager } -// RemoveTrustCenterSubprocessorCreatorIDs removes the "trust_center_subprocessor_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveTrustCenterSubprocessorCreatorIDs(ids ...string) { - if m.removedtrust_center_subprocessor_creators == nil { - m.removedtrust_center_subprocessor_creators = make(map[string]struct{}) +// RemoveTrustCenterManagerIDs removes the "trust_center_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveTrustCenterManagerIDs(ids ...string) { + if m.removedtrust_center_manager == nil { + m.removedtrust_center_manager = make(map[string]struct{}) } for i := range ids { - delete(m.trust_center_subprocessor_creators, ids[i]) - m.removedtrust_center_subprocessor_creators[ids[i]] = struct{}{} + delete(m.trust_center_manager, ids[i]) + m.removedtrust_center_manager[ids[i]] = struct{}{} } } -// RemovedTrustCenterSubprocessorCreators returns the removed IDs of the "trust_center_subprocessor_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedTrustCenterSubprocessorCreatorsIDs() (ids []string) { - for id := range m.removedtrust_center_subprocessor_creators { +// RemovedTrustCenterManager returns the removed IDs of the "trust_center_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedTrustCenterManagerIDs() (ids []string) { + for id := range m.removedtrust_center_manager { ids = append(ids, id) } return } -// TrustCenterSubprocessorCreatorsIDs returns the "trust_center_subprocessor_creators" edge IDs in the mutation. -func (m *OrganizationMutation) TrustCenterSubprocessorCreatorsIDs() (ids []string) { - for id := range m.trust_center_subprocessor_creators { +// TrustCenterManagerIDs returns the "trust_center_manager" edge IDs in the mutation. +func (m *OrganizationMutation) TrustCenterManagerIDs() (ids []string) { + for id := range m.trust_center_manager { ids = append(ids, id) } return } -// ResetTrustCenterSubprocessorCreators resets all changes to the "trust_center_subprocessor_creators" edge. -func (m *OrganizationMutation) ResetTrustCenterSubprocessorCreators() { - m.trust_center_subprocessor_creators = nil - m.clearedtrust_center_subprocessor_creators = false - m.removedtrust_center_subprocessor_creators = nil +// ResetTrustCenterManager resets all changes to the "trust_center_manager" edge. +func (m *OrganizationMutation) ResetTrustCenterManager() { + m.trust_center_manager = nil + m.clearedtrust_center_manager = false + m.removedtrust_center_manager = nil } -// AddActionPlanCreatorIDs adds the "action_plan_creators" edge to the Group entity by ids. -func (m *OrganizationMutation) AddActionPlanCreatorIDs(ids ...string) { - if m.action_plan_creators == nil { - m.action_plan_creators = make(map[string]struct{}) +// AddWorkflowsManagerIDs adds the "workflows_manager" edge to the Group entity by ids. +func (m *OrganizationMutation) AddWorkflowsManagerIDs(ids ...string) { + if m.workflows_manager == nil { + m.workflows_manager = make(map[string]struct{}) } for i := range ids { - m.action_plan_creators[ids[i]] = struct{}{} + m.workflows_manager[ids[i]] = struct{}{} } } -// ClearActionPlanCreators clears the "action_plan_creators" edge to the Group entity. -func (m *OrganizationMutation) ClearActionPlanCreators() { - m.clearedaction_plan_creators = true +// ClearWorkflowsManager clears the "workflows_manager" edge to the Group entity. +func (m *OrganizationMutation) ClearWorkflowsManager() { + m.clearedworkflows_manager = true } -// ActionPlanCreatorsCleared reports if the "action_plan_creators" edge to the Group entity was cleared. -func (m *OrganizationMutation) ActionPlanCreatorsCleared() bool { - return m.clearedaction_plan_creators +// WorkflowsManagerCleared reports if the "workflows_manager" edge to the Group entity was cleared. +func (m *OrganizationMutation) WorkflowsManagerCleared() bool { + return m.clearedworkflows_manager } -// RemoveActionPlanCreatorIDs removes the "action_plan_creators" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveActionPlanCreatorIDs(ids ...string) { - if m.removedaction_plan_creators == nil { - m.removedaction_plan_creators = make(map[string]struct{}) +// RemoveWorkflowsManagerIDs removes the "workflows_manager" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveWorkflowsManagerIDs(ids ...string) { + if m.removedworkflows_manager == nil { + m.removedworkflows_manager = make(map[string]struct{}) } for i := range ids { - delete(m.action_plan_creators, ids[i]) - m.removedaction_plan_creators[ids[i]] = struct{}{} + delete(m.workflows_manager, ids[i]) + m.removedworkflows_manager[ids[i]] = struct{}{} } } -// RemovedActionPlanCreators returns the removed IDs of the "action_plan_creators" edge to the Group entity. -func (m *OrganizationMutation) RemovedActionPlanCreatorsIDs() (ids []string) { - for id := range m.removedaction_plan_creators { +// RemovedWorkflowsManager returns the removed IDs of the "workflows_manager" edge to the Group entity. +func (m *OrganizationMutation) RemovedWorkflowsManagerIDs() (ids []string) { + for id := range m.removedworkflows_manager { ids = append(ids, id) } return } -// ActionPlanCreatorsIDs returns the "action_plan_creators" edge IDs in the mutation. -func (m *OrganizationMutation) ActionPlanCreatorsIDs() (ids []string) { - for id := range m.action_plan_creators { +// WorkflowsManagerIDs returns the "workflows_manager" edge IDs in the mutation. +func (m *OrganizationMutation) WorkflowsManagerIDs() (ids []string) { + for id := range m.workflows_manager { ids = append(ids, id) } return } -// ResetActionPlanCreators resets all changes to the "action_plan_creators" edge. -func (m *OrganizationMutation) ResetActionPlanCreators() { - m.action_plan_creators = nil - m.clearedaction_plan_creators = false - m.removedaction_plan_creators = nil +// ResetWorkflowsManager resets all changes to the "workflows_manager" edge. +func (m *OrganizationMutation) ResetWorkflowsManager() { + m.workflows_manager = nil + m.clearedworkflows_manager = false + m.removedworkflows_manager = nil } // SetParentID sets the "parent" edge to the Organization entity by id. @@ -163738,7 +166930,31 @@ func (m *OrganizationMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *OrganizationMutation) AddedEdges() []string { - edges := make([]string, 0, 111) + edges := make([]string, 0, 167) + if m.action_plan_creators != nil { + edges = append(edges, organization.EdgeActionPlanCreators) + } + if m.api_token_creators != nil { + edges = append(edges, organization.EdgeAPITokenCreators) + } + if m.assessment_creators != nil { + edges = append(edges, organization.EdgeAssessmentCreators) + } + if m.asset_creators != nil { + edges = append(edges, organization.EdgeAssetCreators) + } + if m.campaign_creators != nil { + edges = append(edges, organization.EdgeCampaignCreators) + } + if m.campaign_target_creators != nil { + edges = append(edges, organization.EdgeCampaignTargetCreators) + } + if m.check_result_creators != nil { + edges = append(edges, organization.EdgeCheckResultCreators) + } + if m.contact_creators != nil { + edges = append(edges, organization.EdgeContactCreators) + } if m.control_creators != nil { edges = append(edges, organization.EdgeControlCreators) } @@ -163748,62 +166964,206 @@ func (m *OrganizationMutation) AddedEdges() []string { if m.control_objective_creators != nil { edges = append(edges, organization.EdgeControlObjectiveCreators) } + if m.custom_type_enum_creators != nil { + edges = append(edges, organization.EdgeCustomTypeEnumCreators) + } + if m.discussion_creators != nil { + edges = append(edges, organization.EdgeDiscussionCreators) + } + if m.email_template_creators != nil { + edges = append(edges, organization.EdgeEmailTemplateCreators) + } + if m.entity_creators != nil { + edges = append(edges, organization.EdgeEntityCreators) + } + if m.entity_type_creators != nil { + edges = append(edges, organization.EdgeEntityTypeCreators) + } if m.evidence_creators != nil { edges = append(edges, organization.EdgeEvidenceCreators) } - if m.asset_creators != nil { - edges = append(edges, organization.EdgeAssetCreators) + if m.export_creators != nil { + edges = append(edges, organization.EdgeExportCreators) + } + if m.file_creators != nil { + edges = append(edges, organization.EdgeFileCreators) } if m.finding_creators != nil { edges = append(edges, organization.EdgeFindingCreators) } - if m.vulnerability_creators != nil { - edges = append(edges, organization.EdgeVulnerabilityCreators) - } if m.group_creators != nil { edges = append(edges, organization.EdgeGroupCreators) } + if m.identity_holder_creators != nil { + edges = append(edges, organization.EdgeIdentityHolderCreators) + } + if m.integration_creators != nil { + edges = append(edges, organization.EdgeIntegrationCreators) + } + if m.integration_webhook_creators != nil { + edges = append(edges, organization.EdgeIntegrationWebhookCreators) + } if m.internal_policy_creators != nil { edges = append(edges, organization.EdgeInternalPolicyCreators) } + if m.job_runner_creators != nil { + edges = append(edges, organization.EdgeJobRunnerCreators) + } + if m.job_runner_registration_token_creators != nil { + edges = append(edges, organization.EdgeJobRunnerRegistrationTokenCreators) + } + if m.job_runner_token_creators != nil { + edges = append(edges, organization.EdgeJobRunnerTokenCreators) + } + if m.job_template_creators != nil { + edges = append(edges, organization.EdgeJobTemplateCreators) + } if m.mapped_control_creators != nil { edges = append(edges, organization.EdgeMappedControlCreators) } if m.narrative_creators != nil { edges = append(edges, organization.EdgeNarrativeCreators) } + if m.note_creators != nil { + edges = append(edges, organization.EdgeNoteCreators) + } + if m.notification_template_creators != nil { + edges = append(edges, organization.EdgeNotificationTemplateCreators) + } + if m.organization_creators != nil { + edges = append(edges, organization.EdgeOrganizationCreators) + } + if m.platform_creators != nil { + edges = append(edges, organization.EdgePlatformCreators) + } if m.procedure_creators != nil { edges = append(edges, organization.EdgeProcedureCreators) } if m.program_creators != nil { edges = append(edges, organization.EdgeProgramCreators) } - if m.risk_creators != nil { - edges = append(edges, organization.EdgeRiskCreators) + if m.remediation_creators != nil { + edges = append(edges, organization.EdgeRemediationCreators) + } + if m.review_creators != nil { + edges = append(edges, organization.EdgeReviewCreators) + } + if m.risk_creators != nil { + edges = append(edges, organization.EdgeRiskCreators) + } + if m.scan_creators != nil { + edges = append(edges, organization.EdgeScanCreators) + } + if m.scheduled_job_creators != nil { + edges = append(edges, organization.EdgeScheduledJobCreators) + } + if m.scheduled_job_run_creators != nil { + edges = append(edges, organization.EdgeScheduledJobRunCreators) + } + if m.standard_creators != nil { + edges = append(edges, organization.EdgeStandardCreators) + } + if m.subcontrol_creators != nil { + edges = append(edges, organization.EdgeSubcontrolCreators) + } + if m.subprocessor_creators != nil { + edges = append(edges, organization.EdgeSubprocessorCreators) + } + if m.subscriber_creators != nil { + edges = append(edges, organization.EdgeSubscriberCreators) + } + if m.system_detail_creators != nil { + edges = append(edges, organization.EdgeSystemDetailCreators) + } + if m.tag_definition_creators != nil { + edges = append(edges, organization.EdgeTagDefinitionCreators) + } + if m.task_creators != nil { + edges = append(edges, organization.EdgeTaskCreators) + } + if m.template_creators != nil { + edges = append(edges, organization.EdgeTemplateCreators) + } + if m.trust_center_creators != nil { + edges = append(edges, organization.EdgeTrustCenterCreators) + } + if m.trust_center_compliance_creators != nil { + edges = append(edges, organization.EdgeTrustCenterComplianceCreators) + } + if m.trust_center_doc_creators != nil { + edges = append(edges, organization.EdgeTrustCenterDocCreators) + } + if m.trust_center_entity_creators != nil { + edges = append(edges, organization.EdgeTrustCenterEntityCreators) + } + if m.trust_center_faq_creators != nil { + edges = append(edges, organization.EdgeTrustCenterFaqCreators) + } + if m.trust_center_nda_request_creators != nil { + edges = append(edges, organization.EdgeTrustCenterNdaRequestCreators) + } + if m.trust_center_subprocessor_creators != nil { + edges = append(edges, organization.EdgeTrustCenterSubprocessorCreators) + } + if m.trust_center_watermark_config_creators != nil { + edges = append(edges, organization.EdgeTrustCenterWatermarkConfigCreators) + } + if m.user_creators != nil { + edges = append(edges, organization.EdgeUserCreators) + } + if m.user_setting_creators != nil { + edges = append(edges, organization.EdgeUserSettingCreators) + } + if m.vendor_risk_score_creators != nil { + edges = append(edges, organization.EdgeVendorRiskScoreCreators) + } + if m.vulnerability_creators != nil { + edges = append(edges, organization.EdgeVulnerabilityCreators) + } + if m.workflow_assignment_creators != nil { + edges = append(edges, organization.EdgeWorkflowAssignmentCreators) + } + if m.workflow_assignment_target_creators != nil { + edges = append(edges, organization.EdgeWorkflowAssignmentTargetCreators) + } + if m.workflow_definition_creators != nil { + edges = append(edges, organization.EdgeWorkflowDefinitionCreators) + } + if m.workflow_event_creators != nil { + edges = append(edges, organization.EdgeWorkflowEventCreators) + } + if m.workflow_instance_creators != nil { + edges = append(edges, organization.EdgeWorkflowInstanceCreators) + } + if m.workflow_object_ref_creators != nil { + edges = append(edges, organization.EdgeWorkflowObjectRefCreators) + } + if m.workflow_proposal_creators != nil { + edges = append(edges, organization.EdgeWorkflowProposalCreators) } - if m.identity_holder_creators != nil { - edges = append(edges, organization.EdgeIdentityHolderCreators) + if m.campaigns_manager != nil { + edges = append(edges, organization.EdgeCampaignsManager) } - if m.scheduled_job_creators != nil { - edges = append(edges, organization.EdgeScheduledJobCreators) + if m.compliance_manager != nil { + edges = append(edges, organization.EdgeComplianceManager) } - if m.standard_creators != nil { - edges = append(edges, organization.EdgeStandardCreators) + if m.group_manager != nil { + edges = append(edges, organization.EdgeGroupManager) } - if m.template_creators != nil { - edges = append(edges, organization.EdgeTemplateCreators) + if m.policies_manager != nil { + edges = append(edges, organization.EdgePoliciesManager) } - if m.subprocessor_creators != nil { - edges = append(edges, organization.EdgeSubprocessorCreators) + if m.registry_manager != nil { + edges = append(edges, organization.EdgeRegistryManager) } - if m.trust_center_doc_creators != nil { - edges = append(edges, organization.EdgeTrustCenterDocCreators) + if m.risk_manager != nil { + edges = append(edges, organization.EdgeRiskManager) } - if m.trust_center_subprocessor_creators != nil { - edges = append(edges, organization.EdgeTrustCenterSubprocessorCreators) + if m.trust_center_manager != nil { + edges = append(edges, organization.EdgeTrustCenterManager) } - if m.action_plan_creators != nil { - edges = append(edges, organization.EdgeActionPlanCreators) + if m.workflows_manager != nil { + edges = append(edges, organization.EdgeWorkflowsManager) } if m.parent != nil { edges = append(edges, organization.EdgeParent) @@ -164079,6 +167439,54 @@ func (m *OrganizationMutation) AddedEdges() []string { // name in this mutation. func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { switch name { + case organization.EdgeActionPlanCreators: + ids := make([]ent.Value, 0, len(m.action_plan_creators)) + for id := range m.action_plan_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAPITokenCreators: + ids := make([]ent.Value, 0, len(m.api_token_creators)) + for id := range m.api_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAssessmentCreators: + ids := make([]ent.Value, 0, len(m.assessment_creators)) + for id := range m.assessment_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAssetCreators: + ids := make([]ent.Value, 0, len(m.asset_creators)) + for id := range m.asset_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCampaignCreators: + ids := make([]ent.Value, 0, len(m.campaign_creators)) + for id := range m.campaign_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCampaignTargetCreators: + ids := make([]ent.Value, 0, len(m.campaign_target_creators)) + for id := range m.campaign_target_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCheckResultCreators: + ids := make([]ent.Value, 0, len(m.check_result_creators)) + for id := range m.check_result_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeContactCreators: + ids := make([]ent.Value, 0, len(m.contact_creators)) + for id := range m.contact_creators { + ids = append(ids, id) + } + return ids case organization.EdgeControlCreators: ids := make([]ent.Value, 0, len(m.control_creators)) for id := range m.control_creators { @@ -164097,27 +167505,57 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeCustomTypeEnumCreators: + ids := make([]ent.Value, 0, len(m.custom_type_enum_creators)) + for id := range m.custom_type_enum_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeDiscussionCreators: + ids := make([]ent.Value, 0, len(m.discussion_creators)) + for id := range m.discussion_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEmailTemplateCreators: + ids := make([]ent.Value, 0, len(m.email_template_creators)) + for id := range m.email_template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEntityCreators: + ids := make([]ent.Value, 0, len(m.entity_creators)) + for id := range m.entity_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEntityTypeCreators: + ids := make([]ent.Value, 0, len(m.entity_type_creators)) + for id := range m.entity_type_creators { + ids = append(ids, id) + } + return ids case organization.EdgeEvidenceCreators: ids := make([]ent.Value, 0, len(m.evidence_creators)) for id := range m.evidence_creators { ids = append(ids, id) } return ids - case organization.EdgeAssetCreators: - ids := make([]ent.Value, 0, len(m.asset_creators)) - for id := range m.asset_creators { + case organization.EdgeExportCreators: + ids := make([]ent.Value, 0, len(m.export_creators)) + for id := range m.export_creators { ids = append(ids, id) } return ids - case organization.EdgeFindingCreators: - ids := make([]ent.Value, 0, len(m.finding_creators)) - for id := range m.finding_creators { + case organization.EdgeFileCreators: + ids := make([]ent.Value, 0, len(m.file_creators)) + for id := range m.file_creators { ids = append(ids, id) } return ids - case organization.EdgeVulnerabilityCreators: - ids := make([]ent.Value, 0, len(m.vulnerability_creators)) - for id := range m.vulnerability_creators { + case organization.EdgeFindingCreators: + ids := make([]ent.Value, 0, len(m.finding_creators)) + for id := range m.finding_creators { ids = append(ids, id) } return ids @@ -164127,12 +167565,54 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeIdentityHolderCreators: + ids := make([]ent.Value, 0, len(m.identity_holder_creators)) + for id := range m.identity_holder_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrationCreators: + ids := make([]ent.Value, 0, len(m.integration_creators)) + for id := range m.integration_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrationWebhookCreators: + ids := make([]ent.Value, 0, len(m.integration_webhook_creators)) + for id := range m.integration_webhook_creators { + ids = append(ids, id) + } + return ids case organization.EdgeInternalPolicyCreators: ids := make([]ent.Value, 0, len(m.internal_policy_creators)) for id := range m.internal_policy_creators { ids = append(ids, id) } return ids + case organization.EdgeJobRunnerCreators: + ids := make([]ent.Value, 0, len(m.job_runner_creators)) + for id := range m.job_runner_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobRunnerRegistrationTokenCreators: + ids := make([]ent.Value, 0, len(m.job_runner_registration_token_creators)) + for id := range m.job_runner_registration_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobRunnerTokenCreators: + ids := make([]ent.Value, 0, len(m.job_runner_token_creators)) + for id := range m.job_runner_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobTemplateCreators: + ids := make([]ent.Value, 0, len(m.job_template_creators)) + for id := range m.job_template_creators { + ids = append(ids, id) + } + return ids case organization.EdgeMappedControlCreators: ids := make([]ent.Value, 0, len(m.mapped_control_creators)) for id := range m.mapped_control_creators { @@ -164145,6 +167625,30 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeNoteCreators: + ids := make([]ent.Value, 0, len(m.note_creators)) + for id := range m.note_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeNotificationTemplateCreators: + ids := make([]ent.Value, 0, len(m.notification_template_creators)) + for id := range m.notification_template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeOrganizationCreators: + ids := make([]ent.Value, 0, len(m.organization_creators)) + for id := range m.organization_creators { + ids = append(ids, id) + } + return ids + case organization.EdgePlatformCreators: + ids := make([]ent.Value, 0, len(m.platform_creators)) + for id := range m.platform_creators { + ids = append(ids, id) + } + return ids case organization.EdgeProcedureCreators: ids := make([]ent.Value, 0, len(m.procedure_creators)) for id := range m.procedure_creators { @@ -164157,15 +167661,27 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeRemediationCreators: + ids := make([]ent.Value, 0, len(m.remediation_creators)) + for id := range m.remediation_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeReviewCreators: + ids := make([]ent.Value, 0, len(m.review_creators)) + for id := range m.review_creators { + ids = append(ids, id) + } + return ids case organization.EdgeRiskCreators: ids := make([]ent.Value, 0, len(m.risk_creators)) for id := range m.risk_creators { ids = append(ids, id) } return ids - case organization.EdgeIdentityHolderCreators: - ids := make([]ent.Value, 0, len(m.identity_holder_creators)) - for id := range m.identity_holder_creators { + case organization.EdgeScanCreators: + ids := make([]ent.Value, 0, len(m.scan_creators)) + for id := range m.scan_creators { ids = append(ids, id) } return ids @@ -164175,15 +167691,21 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeScheduledJobRunCreators: + ids := make([]ent.Value, 0, len(m.scheduled_job_run_creators)) + for id := range m.scheduled_job_run_creators { + ids = append(ids, id) + } + return ids case organization.EdgeStandardCreators: ids := make([]ent.Value, 0, len(m.standard_creators)) for id := range m.standard_creators { ids = append(ids, id) } return ids - case organization.EdgeTemplateCreators: - ids := make([]ent.Value, 0, len(m.template_creators)) - for id := range m.template_creators { + case organization.EdgeSubcontrolCreators: + ids := make([]ent.Value, 0, len(m.subcontrol_creators)) + for id := range m.subcontrol_creators { ids = append(ids, id) } return ids @@ -164193,21 +167715,195 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeSubscriberCreators: + ids := make([]ent.Value, 0, len(m.subscriber_creators)) + for id := range m.subscriber_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeSystemDetailCreators: + ids := make([]ent.Value, 0, len(m.system_detail_creators)) + for id := range m.system_detail_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTagDefinitionCreators: + ids := make([]ent.Value, 0, len(m.tag_definition_creators)) + for id := range m.tag_definition_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTaskCreators: + ids := make([]ent.Value, 0, len(m.task_creators)) + for id := range m.task_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTemplateCreators: + ids := make([]ent.Value, 0, len(m.template_creators)) + for id := range m.template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterCreators: + ids := make([]ent.Value, 0, len(m.trust_center_creators)) + for id := range m.trust_center_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterComplianceCreators: + ids := make([]ent.Value, 0, len(m.trust_center_compliance_creators)) + for id := range m.trust_center_compliance_creators { + ids = append(ids, id) + } + return ids case organization.EdgeTrustCenterDocCreators: ids := make([]ent.Value, 0, len(m.trust_center_doc_creators)) for id := range m.trust_center_doc_creators { ids = append(ids, id) } return ids + case organization.EdgeTrustCenterEntityCreators: + ids := make([]ent.Value, 0, len(m.trust_center_entity_creators)) + for id := range m.trust_center_entity_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterFaqCreators: + ids := make([]ent.Value, 0, len(m.trust_center_faq_creators)) + for id := range m.trust_center_faq_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterNdaRequestCreators: + ids := make([]ent.Value, 0, len(m.trust_center_nda_request_creators)) + for id := range m.trust_center_nda_request_creators { + ids = append(ids, id) + } + return ids case organization.EdgeTrustCenterSubprocessorCreators: ids := make([]ent.Value, 0, len(m.trust_center_subprocessor_creators)) for id := range m.trust_center_subprocessor_creators { ids = append(ids, id) } return ids - case organization.EdgeActionPlanCreators: - ids := make([]ent.Value, 0, len(m.action_plan_creators)) - for id := range m.action_plan_creators { + case organization.EdgeTrustCenterWatermarkConfigCreators: + ids := make([]ent.Value, 0, len(m.trust_center_watermark_config_creators)) + for id := range m.trust_center_watermark_config_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeUserCreators: + ids := make([]ent.Value, 0, len(m.user_creators)) + for id := range m.user_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeUserSettingCreators: + ids := make([]ent.Value, 0, len(m.user_setting_creators)) + for id := range m.user_setting_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeVendorRiskScoreCreators: + ids := make([]ent.Value, 0, len(m.vendor_risk_score_creators)) + for id := range m.vendor_risk_score_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeVulnerabilityCreators: + ids := make([]ent.Value, 0, len(m.vulnerability_creators)) + for id := range m.vulnerability_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowAssignmentCreators: + ids := make([]ent.Value, 0, len(m.workflow_assignment_creators)) + for id := range m.workflow_assignment_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowAssignmentTargetCreators: + ids := make([]ent.Value, 0, len(m.workflow_assignment_target_creators)) + for id := range m.workflow_assignment_target_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowDefinitionCreators: + ids := make([]ent.Value, 0, len(m.workflow_definition_creators)) + for id := range m.workflow_definition_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowEventCreators: + ids := make([]ent.Value, 0, len(m.workflow_event_creators)) + for id := range m.workflow_event_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowInstanceCreators: + ids := make([]ent.Value, 0, len(m.workflow_instance_creators)) + for id := range m.workflow_instance_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowObjectRefCreators: + ids := make([]ent.Value, 0, len(m.workflow_object_ref_creators)) + for id := range m.workflow_object_ref_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowProposalCreators: + ids := make([]ent.Value, 0, len(m.workflow_proposal_creators)) + for id := range m.workflow_proposal_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCampaignsManager: + ids := make([]ent.Value, 0, len(m.campaigns_manager)) + for id := range m.campaigns_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeComplianceManager: + ids := make([]ent.Value, 0, len(m.compliance_manager)) + for id := range m.compliance_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeGroupManager: + ids := make([]ent.Value, 0, len(m.group_manager)) + for id := range m.group_manager { + ids = append(ids, id) + } + return ids + case organization.EdgePoliciesManager: + ids := make([]ent.Value, 0, len(m.policies_manager)) + for id := range m.policies_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeRegistryManager: + ids := make([]ent.Value, 0, len(m.registry_manager)) + for id := range m.registry_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeRiskManager: + ids := make([]ent.Value, 0, len(m.risk_manager)) + for id := range m.risk_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterManager: + ids := make([]ent.Value, 0, len(m.trust_center_manager)) + for id := range m.trust_center_manager { + ids = append(ids, id) + } + return ids + case organization.EdgeWorkflowsManager: + ids := make([]ent.Value, 0, len(m.workflows_manager)) + for id := range m.workflows_manager { ids = append(ids, id) } return ids @@ -164745,7 +168441,31 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *OrganizationMutation) RemovedEdges() []string { - edges := make([]string, 0, 111) + edges := make([]string, 0, 167) + if m.removedaction_plan_creators != nil { + edges = append(edges, organization.EdgeActionPlanCreators) + } + if m.removedapi_token_creators != nil { + edges = append(edges, organization.EdgeAPITokenCreators) + } + if m.removedassessment_creators != nil { + edges = append(edges, organization.EdgeAssessmentCreators) + } + if m.removedasset_creators != nil { + edges = append(edges, organization.EdgeAssetCreators) + } + if m.removedcampaign_creators != nil { + edges = append(edges, organization.EdgeCampaignCreators) + } + if m.removedcampaign_target_creators != nil { + edges = append(edges, organization.EdgeCampaignTargetCreators) + } + if m.removedcheck_result_creators != nil { + edges = append(edges, organization.EdgeCheckResultCreators) + } + if m.removedcontact_creators != nil { + edges = append(edges, organization.EdgeContactCreators) + } if m.removedcontrol_creators != nil { edges = append(edges, organization.EdgeControlCreators) } @@ -164755,23 +168475,59 @@ func (m *OrganizationMutation) RemovedEdges() []string { if m.removedcontrol_objective_creators != nil { edges = append(edges, organization.EdgeControlObjectiveCreators) } + if m.removedcustom_type_enum_creators != nil { + edges = append(edges, organization.EdgeCustomTypeEnumCreators) + } + if m.removeddiscussion_creators != nil { + edges = append(edges, organization.EdgeDiscussionCreators) + } + if m.removedemail_template_creators != nil { + edges = append(edges, organization.EdgeEmailTemplateCreators) + } + if m.removedentity_creators != nil { + edges = append(edges, organization.EdgeEntityCreators) + } + if m.removedentity_type_creators != nil { + edges = append(edges, organization.EdgeEntityTypeCreators) + } if m.removedevidence_creators != nil { edges = append(edges, organization.EdgeEvidenceCreators) } - if m.removedasset_creators != nil { - edges = append(edges, organization.EdgeAssetCreators) + if m.removedexport_creators != nil { + edges = append(edges, organization.EdgeExportCreators) + } + if m.removedfile_creators != nil { + edges = append(edges, organization.EdgeFileCreators) } if m.removedfinding_creators != nil { edges = append(edges, organization.EdgeFindingCreators) } - if m.removedvulnerability_creators != nil { - edges = append(edges, organization.EdgeVulnerabilityCreators) - } if m.removedgroup_creators != nil { edges = append(edges, organization.EdgeGroupCreators) } - if m.removedinternal_policy_creators != nil { - edges = append(edges, organization.EdgeInternalPolicyCreators) + if m.removedidentity_holder_creators != nil { + edges = append(edges, organization.EdgeIdentityHolderCreators) + } + if m.removedintegration_creators != nil { + edges = append(edges, organization.EdgeIntegrationCreators) + } + if m.removedintegration_webhook_creators != nil { + edges = append(edges, organization.EdgeIntegrationWebhookCreators) + } + if m.removedinternal_policy_creators != nil { + edges = append(edges, organization.EdgeInternalPolicyCreators) + } + if m.removedjob_runner_creators != nil { + edges = append(edges, organization.EdgeJobRunnerCreators) + } + if m.removedjob_runner_registration_token_creators != nil { + edges = append(edges, organization.EdgeJobRunnerRegistrationTokenCreators) + } + if m.removedjob_runner_token_creators != nil { + edges = append(edges, organization.EdgeJobRunnerTokenCreators) + } + if m.removedjob_template_creators != nil { + edges = append(edges, organization.EdgeJobTemplateCreators) } if m.removedmapped_control_creators != nil { edges = append(edges, organization.EdgeMappedControlCreators) @@ -164779,38 +168535,146 @@ func (m *OrganizationMutation) RemovedEdges() []string { if m.removednarrative_creators != nil { edges = append(edges, organization.EdgeNarrativeCreators) } + if m.removednote_creators != nil { + edges = append(edges, organization.EdgeNoteCreators) + } + if m.removednotification_template_creators != nil { + edges = append(edges, organization.EdgeNotificationTemplateCreators) + } + if m.removedorganization_creators != nil { + edges = append(edges, organization.EdgeOrganizationCreators) + } + if m.removedplatform_creators != nil { + edges = append(edges, organization.EdgePlatformCreators) + } if m.removedprocedure_creators != nil { edges = append(edges, organization.EdgeProcedureCreators) } if m.removedprogram_creators != nil { edges = append(edges, organization.EdgeProgramCreators) } + if m.removedremediation_creators != nil { + edges = append(edges, organization.EdgeRemediationCreators) + } + if m.removedreview_creators != nil { + edges = append(edges, organization.EdgeReviewCreators) + } if m.removedrisk_creators != nil { edges = append(edges, organization.EdgeRiskCreators) } - if m.removedidentity_holder_creators != nil { - edges = append(edges, organization.EdgeIdentityHolderCreators) + if m.removedscan_creators != nil { + edges = append(edges, organization.EdgeScanCreators) } if m.removedscheduled_job_creators != nil { edges = append(edges, organization.EdgeScheduledJobCreators) } + if m.removedscheduled_job_run_creators != nil { + edges = append(edges, organization.EdgeScheduledJobRunCreators) + } if m.removedstandard_creators != nil { edges = append(edges, organization.EdgeStandardCreators) } - if m.removedtemplate_creators != nil { - edges = append(edges, organization.EdgeTemplateCreators) + if m.removedsubcontrol_creators != nil { + edges = append(edges, organization.EdgeSubcontrolCreators) } if m.removedsubprocessor_creators != nil { edges = append(edges, organization.EdgeSubprocessorCreators) } + if m.removedsubscriber_creators != nil { + edges = append(edges, organization.EdgeSubscriberCreators) + } + if m.removedsystem_detail_creators != nil { + edges = append(edges, organization.EdgeSystemDetailCreators) + } + if m.removedtag_definition_creators != nil { + edges = append(edges, organization.EdgeTagDefinitionCreators) + } + if m.removedtask_creators != nil { + edges = append(edges, organization.EdgeTaskCreators) + } + if m.removedtemplate_creators != nil { + edges = append(edges, organization.EdgeTemplateCreators) + } + if m.removedtrust_center_creators != nil { + edges = append(edges, organization.EdgeTrustCenterCreators) + } + if m.removedtrust_center_compliance_creators != nil { + edges = append(edges, organization.EdgeTrustCenterComplianceCreators) + } if m.removedtrust_center_doc_creators != nil { edges = append(edges, organization.EdgeTrustCenterDocCreators) } + if m.removedtrust_center_entity_creators != nil { + edges = append(edges, organization.EdgeTrustCenterEntityCreators) + } + if m.removedtrust_center_faq_creators != nil { + edges = append(edges, organization.EdgeTrustCenterFaqCreators) + } + if m.removedtrust_center_nda_request_creators != nil { + edges = append(edges, organization.EdgeTrustCenterNdaRequestCreators) + } if m.removedtrust_center_subprocessor_creators != nil { edges = append(edges, organization.EdgeTrustCenterSubprocessorCreators) } - if m.removedaction_plan_creators != nil { - edges = append(edges, organization.EdgeActionPlanCreators) + if m.removedtrust_center_watermark_config_creators != nil { + edges = append(edges, organization.EdgeTrustCenterWatermarkConfigCreators) + } + if m.removeduser_creators != nil { + edges = append(edges, organization.EdgeUserCreators) + } + if m.removeduser_setting_creators != nil { + edges = append(edges, organization.EdgeUserSettingCreators) + } + if m.removedvendor_risk_score_creators != nil { + edges = append(edges, organization.EdgeVendorRiskScoreCreators) + } + if m.removedvulnerability_creators != nil { + edges = append(edges, organization.EdgeVulnerabilityCreators) + } + if m.removedworkflow_assignment_creators != nil { + edges = append(edges, organization.EdgeWorkflowAssignmentCreators) + } + if m.removedworkflow_assignment_target_creators != nil { + edges = append(edges, organization.EdgeWorkflowAssignmentTargetCreators) + } + if m.removedworkflow_definition_creators != nil { + edges = append(edges, organization.EdgeWorkflowDefinitionCreators) + } + if m.removedworkflow_event_creators != nil { + edges = append(edges, organization.EdgeWorkflowEventCreators) + } + if m.removedworkflow_instance_creators != nil { + edges = append(edges, organization.EdgeWorkflowInstanceCreators) + } + if m.removedworkflow_object_ref_creators != nil { + edges = append(edges, organization.EdgeWorkflowObjectRefCreators) + } + if m.removedworkflow_proposal_creators != nil { + edges = append(edges, organization.EdgeWorkflowProposalCreators) + } + if m.removedcampaigns_manager != nil { + edges = append(edges, organization.EdgeCampaignsManager) + } + if m.removedcompliance_manager != nil { + edges = append(edges, organization.EdgeComplianceManager) + } + if m.removedgroup_manager != nil { + edges = append(edges, organization.EdgeGroupManager) + } + if m.removedpolicies_manager != nil { + edges = append(edges, organization.EdgePoliciesManager) + } + if m.removedregistry_manager != nil { + edges = append(edges, organization.EdgeRegistryManager) + } + if m.removedrisk_manager != nil { + edges = append(edges, organization.EdgeRiskManager) + } + if m.removedtrust_center_manager != nil { + edges = append(edges, organization.EdgeTrustCenterManager) + } + if m.removedworkflows_manager != nil { + edges = append(edges, organization.EdgeWorkflowsManager) } if m.removedchildren != nil { edges = append(edges, organization.EdgeChildren) @@ -165077,39 +168941,375 @@ func (m *OrganizationMutation) RemovedEdges() []string { // the given name in this mutation. func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { switch name { + case organization.EdgeActionPlanCreators: + ids := make([]ent.Value, 0, len(m.removedaction_plan_creators)) + for id := range m.removedaction_plan_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAPITokenCreators: + ids := make([]ent.Value, 0, len(m.removedapi_token_creators)) + for id := range m.removedapi_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAssessmentCreators: + ids := make([]ent.Value, 0, len(m.removedassessment_creators)) + for id := range m.removedassessment_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAssetCreators: + ids := make([]ent.Value, 0, len(m.removedasset_creators)) + for id := range m.removedasset_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCampaignCreators: + ids := make([]ent.Value, 0, len(m.removedcampaign_creators)) + for id := range m.removedcampaign_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCampaignTargetCreators: + ids := make([]ent.Value, 0, len(m.removedcampaign_target_creators)) + for id := range m.removedcampaign_target_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCheckResultCreators: + ids := make([]ent.Value, 0, len(m.removedcheck_result_creators)) + for id := range m.removedcheck_result_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeContactCreators: + ids := make([]ent.Value, 0, len(m.removedcontact_creators)) + for id := range m.removedcontact_creators { + ids = append(ids, id) + } + return ids case organization.EdgeControlCreators: ids := make([]ent.Value, 0, len(m.removedcontrol_creators)) for id := range m.removedcontrol_creators { ids = append(ids, id) } return ids - case organization.EdgeControlImplementationCreators: - ids := make([]ent.Value, 0, len(m.removedcontrol_implementation_creators)) - for id := range m.removedcontrol_implementation_creators { + case organization.EdgeControlImplementationCreators: + ids := make([]ent.Value, 0, len(m.removedcontrol_implementation_creators)) + for id := range m.removedcontrol_implementation_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeControlObjectiveCreators: + ids := make([]ent.Value, 0, len(m.removedcontrol_objective_creators)) + for id := range m.removedcontrol_objective_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeCustomTypeEnumCreators: + ids := make([]ent.Value, 0, len(m.removedcustom_type_enum_creators)) + for id := range m.removedcustom_type_enum_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeDiscussionCreators: + ids := make([]ent.Value, 0, len(m.removeddiscussion_creators)) + for id := range m.removeddiscussion_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEmailTemplateCreators: + ids := make([]ent.Value, 0, len(m.removedemail_template_creators)) + for id := range m.removedemail_template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEntityCreators: + ids := make([]ent.Value, 0, len(m.removedentity_creators)) + for id := range m.removedentity_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEntityTypeCreators: + ids := make([]ent.Value, 0, len(m.removedentity_type_creators)) + for id := range m.removedentity_type_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeEvidenceCreators: + ids := make([]ent.Value, 0, len(m.removedevidence_creators)) + for id := range m.removedevidence_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeExportCreators: + ids := make([]ent.Value, 0, len(m.removedexport_creators)) + for id := range m.removedexport_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeFileCreators: + ids := make([]ent.Value, 0, len(m.removedfile_creators)) + for id := range m.removedfile_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeFindingCreators: + ids := make([]ent.Value, 0, len(m.removedfinding_creators)) + for id := range m.removedfinding_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeGroupCreators: + ids := make([]ent.Value, 0, len(m.removedgroup_creators)) + for id := range m.removedgroup_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeIdentityHolderCreators: + ids := make([]ent.Value, 0, len(m.removedidentity_holder_creators)) + for id := range m.removedidentity_holder_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrationCreators: + ids := make([]ent.Value, 0, len(m.removedintegration_creators)) + for id := range m.removedintegration_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrationWebhookCreators: + ids := make([]ent.Value, 0, len(m.removedintegration_webhook_creators)) + for id := range m.removedintegration_webhook_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeInternalPolicyCreators: + ids := make([]ent.Value, 0, len(m.removedinternal_policy_creators)) + for id := range m.removedinternal_policy_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobRunnerCreators: + ids := make([]ent.Value, 0, len(m.removedjob_runner_creators)) + for id := range m.removedjob_runner_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobRunnerRegistrationTokenCreators: + ids := make([]ent.Value, 0, len(m.removedjob_runner_registration_token_creators)) + for id := range m.removedjob_runner_registration_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobRunnerTokenCreators: + ids := make([]ent.Value, 0, len(m.removedjob_runner_token_creators)) + for id := range m.removedjob_runner_token_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeJobTemplateCreators: + ids := make([]ent.Value, 0, len(m.removedjob_template_creators)) + for id := range m.removedjob_template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeMappedControlCreators: + ids := make([]ent.Value, 0, len(m.removedmapped_control_creators)) + for id := range m.removedmapped_control_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeNarrativeCreators: + ids := make([]ent.Value, 0, len(m.removednarrative_creators)) + for id := range m.removednarrative_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeNoteCreators: + ids := make([]ent.Value, 0, len(m.removednote_creators)) + for id := range m.removednote_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeNotificationTemplateCreators: + ids := make([]ent.Value, 0, len(m.removednotification_template_creators)) + for id := range m.removednotification_template_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeOrganizationCreators: + ids := make([]ent.Value, 0, len(m.removedorganization_creators)) + for id := range m.removedorganization_creators { + ids = append(ids, id) + } + return ids + case organization.EdgePlatformCreators: + ids := make([]ent.Value, 0, len(m.removedplatform_creators)) + for id := range m.removedplatform_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeProcedureCreators: + ids := make([]ent.Value, 0, len(m.removedprocedure_creators)) + for id := range m.removedprocedure_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeProgramCreators: + ids := make([]ent.Value, 0, len(m.removedprogram_creators)) + for id := range m.removedprogram_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeRemediationCreators: + ids := make([]ent.Value, 0, len(m.removedremediation_creators)) + for id := range m.removedremediation_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeReviewCreators: + ids := make([]ent.Value, 0, len(m.removedreview_creators)) + for id := range m.removedreview_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeRiskCreators: + ids := make([]ent.Value, 0, len(m.removedrisk_creators)) + for id := range m.removedrisk_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeScanCreators: + ids := make([]ent.Value, 0, len(m.removedscan_creators)) + for id := range m.removedscan_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeScheduledJobCreators: + ids := make([]ent.Value, 0, len(m.removedscheduled_job_creators)) + for id := range m.removedscheduled_job_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeScheduledJobRunCreators: + ids := make([]ent.Value, 0, len(m.removedscheduled_job_run_creators)) + for id := range m.removedscheduled_job_run_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeStandardCreators: + ids := make([]ent.Value, 0, len(m.removedstandard_creators)) + for id := range m.removedstandard_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeSubcontrolCreators: + ids := make([]ent.Value, 0, len(m.removedsubcontrol_creators)) + for id := range m.removedsubcontrol_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeSubprocessorCreators: + ids := make([]ent.Value, 0, len(m.removedsubprocessor_creators)) + for id := range m.removedsubprocessor_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeSubscriberCreators: + ids := make([]ent.Value, 0, len(m.removedsubscriber_creators)) + for id := range m.removedsubscriber_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeSystemDetailCreators: + ids := make([]ent.Value, 0, len(m.removedsystem_detail_creators)) + for id := range m.removedsystem_detail_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTagDefinitionCreators: + ids := make([]ent.Value, 0, len(m.removedtag_definition_creators)) + for id := range m.removedtag_definition_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTaskCreators: + ids := make([]ent.Value, 0, len(m.removedtask_creators)) + for id := range m.removedtask_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTemplateCreators: + ids := make([]ent.Value, 0, len(m.removedtemplate_creators)) + for id := range m.removedtemplate_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_creators)) + for id := range m.removedtrust_center_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterComplianceCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_compliance_creators)) + for id := range m.removedtrust_center_compliance_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterDocCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_doc_creators)) + for id := range m.removedtrust_center_doc_creators { ids = append(ids, id) } return ids - case organization.EdgeControlObjectiveCreators: - ids := make([]ent.Value, 0, len(m.removedcontrol_objective_creators)) - for id := range m.removedcontrol_objective_creators { + case organization.EdgeTrustCenterEntityCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_entity_creators)) + for id := range m.removedtrust_center_entity_creators { ids = append(ids, id) } return ids - case organization.EdgeEvidenceCreators: - ids := make([]ent.Value, 0, len(m.removedevidence_creators)) - for id := range m.removedevidence_creators { + case organization.EdgeTrustCenterFaqCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_faq_creators)) + for id := range m.removedtrust_center_faq_creators { ids = append(ids, id) } return ids - case organization.EdgeAssetCreators: - ids := make([]ent.Value, 0, len(m.removedasset_creators)) - for id := range m.removedasset_creators { + case organization.EdgeTrustCenterNdaRequestCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_nda_request_creators)) + for id := range m.removedtrust_center_nda_request_creators { ids = append(ids, id) } return ids - case organization.EdgeFindingCreators: - ids := make([]ent.Value, 0, len(m.removedfinding_creators)) - for id := range m.removedfinding_creators { + case organization.EdgeTrustCenterSubprocessorCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_subprocessor_creators)) + for id := range m.removedtrust_center_subprocessor_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeTrustCenterWatermarkConfigCreators: + ids := make([]ent.Value, 0, len(m.removedtrust_center_watermark_config_creators)) + for id := range m.removedtrust_center_watermark_config_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeUserCreators: + ids := make([]ent.Value, 0, len(m.removeduser_creators)) + for id := range m.removeduser_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeUserSettingCreators: + ids := make([]ent.Value, 0, len(m.removeduser_setting_creators)) + for id := range m.removeduser_setting_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeVendorRiskScoreCreators: + ids := make([]ent.Value, 0, len(m.removedvendor_risk_score_creators)) + for id := range m.removedvendor_risk_score_creators { ids = append(ids, id) } return ids @@ -165119,93 +169319,93 @@ func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids - case organization.EdgeGroupCreators: - ids := make([]ent.Value, 0, len(m.removedgroup_creators)) - for id := range m.removedgroup_creators { + case organization.EdgeWorkflowAssignmentCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_assignment_creators)) + for id := range m.removedworkflow_assignment_creators { ids = append(ids, id) } return ids - case organization.EdgeInternalPolicyCreators: - ids := make([]ent.Value, 0, len(m.removedinternal_policy_creators)) - for id := range m.removedinternal_policy_creators { + case organization.EdgeWorkflowAssignmentTargetCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_assignment_target_creators)) + for id := range m.removedworkflow_assignment_target_creators { ids = append(ids, id) } return ids - case organization.EdgeMappedControlCreators: - ids := make([]ent.Value, 0, len(m.removedmapped_control_creators)) - for id := range m.removedmapped_control_creators { + case organization.EdgeWorkflowDefinitionCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_definition_creators)) + for id := range m.removedworkflow_definition_creators { ids = append(ids, id) } return ids - case organization.EdgeNarrativeCreators: - ids := make([]ent.Value, 0, len(m.removednarrative_creators)) - for id := range m.removednarrative_creators { + case organization.EdgeWorkflowEventCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_event_creators)) + for id := range m.removedworkflow_event_creators { ids = append(ids, id) } return ids - case organization.EdgeProcedureCreators: - ids := make([]ent.Value, 0, len(m.removedprocedure_creators)) - for id := range m.removedprocedure_creators { + case organization.EdgeWorkflowInstanceCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_instance_creators)) + for id := range m.removedworkflow_instance_creators { ids = append(ids, id) } return ids - case organization.EdgeProgramCreators: - ids := make([]ent.Value, 0, len(m.removedprogram_creators)) - for id := range m.removedprogram_creators { + case organization.EdgeWorkflowObjectRefCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_object_ref_creators)) + for id := range m.removedworkflow_object_ref_creators { ids = append(ids, id) } return ids - case organization.EdgeRiskCreators: - ids := make([]ent.Value, 0, len(m.removedrisk_creators)) - for id := range m.removedrisk_creators { + case organization.EdgeWorkflowProposalCreators: + ids := make([]ent.Value, 0, len(m.removedworkflow_proposal_creators)) + for id := range m.removedworkflow_proposal_creators { ids = append(ids, id) } return ids - case organization.EdgeIdentityHolderCreators: - ids := make([]ent.Value, 0, len(m.removedidentity_holder_creators)) - for id := range m.removedidentity_holder_creators { + case organization.EdgeCampaignsManager: + ids := make([]ent.Value, 0, len(m.removedcampaigns_manager)) + for id := range m.removedcampaigns_manager { ids = append(ids, id) } return ids - case organization.EdgeScheduledJobCreators: - ids := make([]ent.Value, 0, len(m.removedscheduled_job_creators)) - for id := range m.removedscheduled_job_creators { + case organization.EdgeComplianceManager: + ids := make([]ent.Value, 0, len(m.removedcompliance_manager)) + for id := range m.removedcompliance_manager { ids = append(ids, id) } return ids - case organization.EdgeStandardCreators: - ids := make([]ent.Value, 0, len(m.removedstandard_creators)) - for id := range m.removedstandard_creators { + case organization.EdgeGroupManager: + ids := make([]ent.Value, 0, len(m.removedgroup_manager)) + for id := range m.removedgroup_manager { ids = append(ids, id) } return ids - case organization.EdgeTemplateCreators: - ids := make([]ent.Value, 0, len(m.removedtemplate_creators)) - for id := range m.removedtemplate_creators { + case organization.EdgePoliciesManager: + ids := make([]ent.Value, 0, len(m.removedpolicies_manager)) + for id := range m.removedpolicies_manager { ids = append(ids, id) } return ids - case organization.EdgeSubprocessorCreators: - ids := make([]ent.Value, 0, len(m.removedsubprocessor_creators)) - for id := range m.removedsubprocessor_creators { + case organization.EdgeRegistryManager: + ids := make([]ent.Value, 0, len(m.removedregistry_manager)) + for id := range m.removedregistry_manager { ids = append(ids, id) } return ids - case organization.EdgeTrustCenterDocCreators: - ids := make([]ent.Value, 0, len(m.removedtrust_center_doc_creators)) - for id := range m.removedtrust_center_doc_creators { + case organization.EdgeRiskManager: + ids := make([]ent.Value, 0, len(m.removedrisk_manager)) + for id := range m.removedrisk_manager { ids = append(ids, id) } return ids - case organization.EdgeTrustCenterSubprocessorCreators: - ids := make([]ent.Value, 0, len(m.removedtrust_center_subprocessor_creators)) - for id := range m.removedtrust_center_subprocessor_creators { + case organization.EdgeTrustCenterManager: + ids := make([]ent.Value, 0, len(m.removedtrust_center_manager)) + for id := range m.removedtrust_center_manager { ids = append(ids, id) } return ids - case organization.EdgeActionPlanCreators: - ids := make([]ent.Value, 0, len(m.removedaction_plan_creators)) - for id := range m.removedaction_plan_creators { + case organization.EdgeWorkflowsManager: + ids := make([]ent.Value, 0, len(m.removedworkflows_manager)) + for id := range m.removedworkflows_manager { ids = append(ids, id) } return ids @@ -165731,7 +169931,31 @@ func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *OrganizationMutation) ClearedEdges() []string { - edges := make([]string, 0, 111) + edges := make([]string, 0, 167) + if m.clearedaction_plan_creators { + edges = append(edges, organization.EdgeActionPlanCreators) + } + if m.clearedapi_token_creators { + edges = append(edges, organization.EdgeAPITokenCreators) + } + if m.clearedassessment_creators { + edges = append(edges, organization.EdgeAssessmentCreators) + } + if m.clearedasset_creators { + edges = append(edges, organization.EdgeAssetCreators) + } + if m.clearedcampaign_creators { + edges = append(edges, organization.EdgeCampaignCreators) + } + if m.clearedcampaign_target_creators { + edges = append(edges, organization.EdgeCampaignTargetCreators) + } + if m.clearedcheck_result_creators { + edges = append(edges, organization.EdgeCheckResultCreators) + } + if m.clearedcontact_creators { + edges = append(edges, organization.EdgeContactCreators) + } if m.clearedcontrol_creators { edges = append(edges, organization.EdgeControlCreators) } @@ -165741,62 +169965,206 @@ func (m *OrganizationMutation) ClearedEdges() []string { if m.clearedcontrol_objective_creators { edges = append(edges, organization.EdgeControlObjectiveCreators) } + if m.clearedcustom_type_enum_creators { + edges = append(edges, organization.EdgeCustomTypeEnumCreators) + } + if m.cleareddiscussion_creators { + edges = append(edges, organization.EdgeDiscussionCreators) + } + if m.clearedemail_template_creators { + edges = append(edges, organization.EdgeEmailTemplateCreators) + } + if m.clearedentity_creators { + edges = append(edges, organization.EdgeEntityCreators) + } + if m.clearedentity_type_creators { + edges = append(edges, organization.EdgeEntityTypeCreators) + } if m.clearedevidence_creators { edges = append(edges, organization.EdgeEvidenceCreators) } - if m.clearedasset_creators { - edges = append(edges, organization.EdgeAssetCreators) + if m.clearedexport_creators { + edges = append(edges, organization.EdgeExportCreators) + } + if m.clearedfile_creators { + edges = append(edges, organization.EdgeFileCreators) } if m.clearedfinding_creators { edges = append(edges, organization.EdgeFindingCreators) } - if m.clearedvulnerability_creators { - edges = append(edges, organization.EdgeVulnerabilityCreators) - } if m.clearedgroup_creators { edges = append(edges, organization.EdgeGroupCreators) } + if m.clearedidentity_holder_creators { + edges = append(edges, organization.EdgeIdentityHolderCreators) + } + if m.clearedintegration_creators { + edges = append(edges, organization.EdgeIntegrationCreators) + } + if m.clearedintegration_webhook_creators { + edges = append(edges, organization.EdgeIntegrationWebhookCreators) + } if m.clearedinternal_policy_creators { edges = append(edges, organization.EdgeInternalPolicyCreators) } + if m.clearedjob_runner_creators { + edges = append(edges, organization.EdgeJobRunnerCreators) + } + if m.clearedjob_runner_registration_token_creators { + edges = append(edges, organization.EdgeJobRunnerRegistrationTokenCreators) + } + if m.clearedjob_runner_token_creators { + edges = append(edges, organization.EdgeJobRunnerTokenCreators) + } + if m.clearedjob_template_creators { + edges = append(edges, organization.EdgeJobTemplateCreators) + } if m.clearedmapped_control_creators { edges = append(edges, organization.EdgeMappedControlCreators) } if m.clearednarrative_creators { edges = append(edges, organization.EdgeNarrativeCreators) } + if m.clearednote_creators { + edges = append(edges, organization.EdgeNoteCreators) + } + if m.clearednotification_template_creators { + edges = append(edges, organization.EdgeNotificationTemplateCreators) + } + if m.clearedorganization_creators { + edges = append(edges, organization.EdgeOrganizationCreators) + } + if m.clearedplatform_creators { + edges = append(edges, organization.EdgePlatformCreators) + } if m.clearedprocedure_creators { edges = append(edges, organization.EdgeProcedureCreators) } if m.clearedprogram_creators { edges = append(edges, organization.EdgeProgramCreators) } + if m.clearedremediation_creators { + edges = append(edges, organization.EdgeRemediationCreators) + } + if m.clearedreview_creators { + edges = append(edges, organization.EdgeReviewCreators) + } if m.clearedrisk_creators { edges = append(edges, organization.EdgeRiskCreators) } - if m.clearedidentity_holder_creators { - edges = append(edges, organization.EdgeIdentityHolderCreators) + if m.clearedscan_creators { + edges = append(edges, organization.EdgeScanCreators) } if m.clearedscheduled_job_creators { edges = append(edges, organization.EdgeScheduledJobCreators) } + if m.clearedscheduled_job_run_creators { + edges = append(edges, organization.EdgeScheduledJobRunCreators) + } if m.clearedstandard_creators { edges = append(edges, organization.EdgeStandardCreators) } - if m.clearedtemplate_creators { - edges = append(edges, organization.EdgeTemplateCreators) + if m.clearedsubcontrol_creators { + edges = append(edges, organization.EdgeSubcontrolCreators) } if m.clearedsubprocessor_creators { edges = append(edges, organization.EdgeSubprocessorCreators) } + if m.clearedsubscriber_creators { + edges = append(edges, organization.EdgeSubscriberCreators) + } + if m.clearedsystem_detail_creators { + edges = append(edges, organization.EdgeSystemDetailCreators) + } + if m.clearedtag_definition_creators { + edges = append(edges, organization.EdgeTagDefinitionCreators) + } + if m.clearedtask_creators { + edges = append(edges, organization.EdgeTaskCreators) + } + if m.clearedtemplate_creators { + edges = append(edges, organization.EdgeTemplateCreators) + } + if m.clearedtrust_center_creators { + edges = append(edges, organization.EdgeTrustCenterCreators) + } + if m.clearedtrust_center_compliance_creators { + edges = append(edges, organization.EdgeTrustCenterComplianceCreators) + } if m.clearedtrust_center_doc_creators { edges = append(edges, organization.EdgeTrustCenterDocCreators) } + if m.clearedtrust_center_entity_creators { + edges = append(edges, organization.EdgeTrustCenterEntityCreators) + } + if m.clearedtrust_center_faq_creators { + edges = append(edges, organization.EdgeTrustCenterFaqCreators) + } + if m.clearedtrust_center_nda_request_creators { + edges = append(edges, organization.EdgeTrustCenterNdaRequestCreators) + } if m.clearedtrust_center_subprocessor_creators { edges = append(edges, organization.EdgeTrustCenterSubprocessorCreators) } - if m.clearedaction_plan_creators { - edges = append(edges, organization.EdgeActionPlanCreators) + if m.clearedtrust_center_watermark_config_creators { + edges = append(edges, organization.EdgeTrustCenterWatermarkConfigCreators) + } + if m.cleareduser_creators { + edges = append(edges, organization.EdgeUserCreators) + } + if m.cleareduser_setting_creators { + edges = append(edges, organization.EdgeUserSettingCreators) + } + if m.clearedvendor_risk_score_creators { + edges = append(edges, organization.EdgeVendorRiskScoreCreators) + } + if m.clearedvulnerability_creators { + edges = append(edges, organization.EdgeVulnerabilityCreators) + } + if m.clearedworkflow_assignment_creators { + edges = append(edges, organization.EdgeWorkflowAssignmentCreators) + } + if m.clearedworkflow_assignment_target_creators { + edges = append(edges, organization.EdgeWorkflowAssignmentTargetCreators) + } + if m.clearedworkflow_definition_creators { + edges = append(edges, organization.EdgeWorkflowDefinitionCreators) + } + if m.clearedworkflow_event_creators { + edges = append(edges, organization.EdgeWorkflowEventCreators) + } + if m.clearedworkflow_instance_creators { + edges = append(edges, organization.EdgeWorkflowInstanceCreators) + } + if m.clearedworkflow_object_ref_creators { + edges = append(edges, organization.EdgeWorkflowObjectRefCreators) + } + if m.clearedworkflow_proposal_creators { + edges = append(edges, organization.EdgeWorkflowProposalCreators) + } + if m.clearedcampaigns_manager { + edges = append(edges, organization.EdgeCampaignsManager) + } + if m.clearedcompliance_manager { + edges = append(edges, organization.EdgeComplianceManager) + } + if m.clearedgroup_manager { + edges = append(edges, organization.EdgeGroupManager) + } + if m.clearedpolicies_manager { + edges = append(edges, organization.EdgePoliciesManager) + } + if m.clearedregistry_manager { + edges = append(edges, organization.EdgeRegistryManager) + } + if m.clearedrisk_manager { + edges = append(edges, organization.EdgeRiskManager) + } + if m.clearedtrust_center_manager { + edges = append(edges, organization.EdgeTrustCenterManager) + } + if m.clearedworkflows_manager { + edges = append(edges, organization.EdgeWorkflowsManager) } if m.clearedparent { edges = append(edges, organization.EdgeParent) @@ -166072,50 +170440,162 @@ func (m *OrganizationMutation) ClearedEdges() []string { // was cleared in this mutation. func (m *OrganizationMutation) EdgeCleared(name string) bool { switch name { + case organization.EdgeActionPlanCreators: + return m.clearedaction_plan_creators + case organization.EdgeAPITokenCreators: + return m.clearedapi_token_creators + case organization.EdgeAssessmentCreators: + return m.clearedassessment_creators + case organization.EdgeAssetCreators: + return m.clearedasset_creators + case organization.EdgeCampaignCreators: + return m.clearedcampaign_creators + case organization.EdgeCampaignTargetCreators: + return m.clearedcampaign_target_creators + case organization.EdgeCheckResultCreators: + return m.clearedcheck_result_creators + case organization.EdgeContactCreators: + return m.clearedcontact_creators case organization.EdgeControlCreators: return m.clearedcontrol_creators case organization.EdgeControlImplementationCreators: return m.clearedcontrol_implementation_creators case organization.EdgeControlObjectiveCreators: return m.clearedcontrol_objective_creators + case organization.EdgeCustomTypeEnumCreators: + return m.clearedcustom_type_enum_creators + case organization.EdgeDiscussionCreators: + return m.cleareddiscussion_creators + case organization.EdgeEmailTemplateCreators: + return m.clearedemail_template_creators + case organization.EdgeEntityCreators: + return m.clearedentity_creators + case organization.EdgeEntityTypeCreators: + return m.clearedentity_type_creators case organization.EdgeEvidenceCreators: return m.clearedevidence_creators - case organization.EdgeAssetCreators: - return m.clearedasset_creators + case organization.EdgeExportCreators: + return m.clearedexport_creators + case organization.EdgeFileCreators: + return m.clearedfile_creators case organization.EdgeFindingCreators: return m.clearedfinding_creators - case organization.EdgeVulnerabilityCreators: - return m.clearedvulnerability_creators case organization.EdgeGroupCreators: return m.clearedgroup_creators + case organization.EdgeIdentityHolderCreators: + return m.clearedidentity_holder_creators + case organization.EdgeIntegrationCreators: + return m.clearedintegration_creators + case organization.EdgeIntegrationWebhookCreators: + return m.clearedintegration_webhook_creators case organization.EdgeInternalPolicyCreators: return m.clearedinternal_policy_creators + case organization.EdgeJobRunnerCreators: + return m.clearedjob_runner_creators + case organization.EdgeJobRunnerRegistrationTokenCreators: + return m.clearedjob_runner_registration_token_creators + case organization.EdgeJobRunnerTokenCreators: + return m.clearedjob_runner_token_creators + case organization.EdgeJobTemplateCreators: + return m.clearedjob_template_creators case organization.EdgeMappedControlCreators: return m.clearedmapped_control_creators case organization.EdgeNarrativeCreators: return m.clearednarrative_creators + case organization.EdgeNoteCreators: + return m.clearednote_creators + case organization.EdgeNotificationTemplateCreators: + return m.clearednotification_template_creators + case organization.EdgeOrganizationCreators: + return m.clearedorganization_creators + case organization.EdgePlatformCreators: + return m.clearedplatform_creators case organization.EdgeProcedureCreators: return m.clearedprocedure_creators case organization.EdgeProgramCreators: return m.clearedprogram_creators + case organization.EdgeRemediationCreators: + return m.clearedremediation_creators + case organization.EdgeReviewCreators: + return m.clearedreview_creators case organization.EdgeRiskCreators: return m.clearedrisk_creators - case organization.EdgeIdentityHolderCreators: - return m.clearedidentity_holder_creators + case organization.EdgeScanCreators: + return m.clearedscan_creators case organization.EdgeScheduledJobCreators: return m.clearedscheduled_job_creators + case organization.EdgeScheduledJobRunCreators: + return m.clearedscheduled_job_run_creators case organization.EdgeStandardCreators: return m.clearedstandard_creators - case organization.EdgeTemplateCreators: - return m.clearedtemplate_creators + case organization.EdgeSubcontrolCreators: + return m.clearedsubcontrol_creators case organization.EdgeSubprocessorCreators: return m.clearedsubprocessor_creators + case organization.EdgeSubscriberCreators: + return m.clearedsubscriber_creators + case organization.EdgeSystemDetailCreators: + return m.clearedsystem_detail_creators + case organization.EdgeTagDefinitionCreators: + return m.clearedtag_definition_creators + case organization.EdgeTaskCreators: + return m.clearedtask_creators + case organization.EdgeTemplateCreators: + return m.clearedtemplate_creators + case organization.EdgeTrustCenterCreators: + return m.clearedtrust_center_creators + case organization.EdgeTrustCenterComplianceCreators: + return m.clearedtrust_center_compliance_creators case organization.EdgeTrustCenterDocCreators: return m.clearedtrust_center_doc_creators + case organization.EdgeTrustCenterEntityCreators: + return m.clearedtrust_center_entity_creators + case organization.EdgeTrustCenterFaqCreators: + return m.clearedtrust_center_faq_creators + case organization.EdgeTrustCenterNdaRequestCreators: + return m.clearedtrust_center_nda_request_creators case organization.EdgeTrustCenterSubprocessorCreators: return m.clearedtrust_center_subprocessor_creators - case organization.EdgeActionPlanCreators: - return m.clearedaction_plan_creators + case organization.EdgeTrustCenterWatermarkConfigCreators: + return m.clearedtrust_center_watermark_config_creators + case organization.EdgeUserCreators: + return m.cleareduser_creators + case organization.EdgeUserSettingCreators: + return m.cleareduser_setting_creators + case organization.EdgeVendorRiskScoreCreators: + return m.clearedvendor_risk_score_creators + case organization.EdgeVulnerabilityCreators: + return m.clearedvulnerability_creators + case organization.EdgeWorkflowAssignmentCreators: + return m.clearedworkflow_assignment_creators + case organization.EdgeWorkflowAssignmentTargetCreators: + return m.clearedworkflow_assignment_target_creators + case organization.EdgeWorkflowDefinitionCreators: + return m.clearedworkflow_definition_creators + case organization.EdgeWorkflowEventCreators: + return m.clearedworkflow_event_creators + case organization.EdgeWorkflowInstanceCreators: + return m.clearedworkflow_instance_creators + case organization.EdgeWorkflowObjectRefCreators: + return m.clearedworkflow_object_ref_creators + case organization.EdgeWorkflowProposalCreators: + return m.clearedworkflow_proposal_creators + case organization.EdgeCampaignsManager: + return m.clearedcampaigns_manager + case organization.EdgeComplianceManager: + return m.clearedcompliance_manager + case organization.EdgeGroupManager: + return m.clearedgroup_manager + case organization.EdgePoliciesManager: + return m.clearedpolicies_manager + case organization.EdgeRegistryManager: + return m.clearedregistry_manager + case organization.EdgeRiskManager: + return m.clearedrisk_manager + case organization.EdgeTrustCenterManager: + return m.clearedtrust_center_manager + case organization.EdgeWorkflowsManager: + return m.clearedworkflows_manager case organization.EdgeParent: return m.clearedparent case organization.EdgeChildren: @@ -166319,6 +170799,30 @@ func (m *OrganizationMutation) ClearEdge(name string) error { // It returns an error if the edge is not defined in the schema. func (m *OrganizationMutation) ResetEdge(name string) error { switch name { + case organization.EdgeActionPlanCreators: + m.ResetActionPlanCreators() + return nil + case organization.EdgeAPITokenCreators: + m.ResetAPITokenCreators() + return nil + case organization.EdgeAssessmentCreators: + m.ResetAssessmentCreators() + return nil + case organization.EdgeAssetCreators: + m.ResetAssetCreators() + return nil + case organization.EdgeCampaignCreators: + m.ResetCampaignCreators() + return nil + case organization.EdgeCampaignTargetCreators: + m.ResetCampaignTargetCreators() + return nil + case organization.EdgeCheckResultCreators: + m.ResetCheckResultCreators() + return nil + case organization.EdgeContactCreators: + m.ResetContactCreators() + return nil case organization.EdgeControlCreators: m.ResetControlCreators() return nil @@ -166328,62 +170832,206 @@ func (m *OrganizationMutation) ResetEdge(name string) error { case organization.EdgeControlObjectiveCreators: m.ResetControlObjectiveCreators() return nil + case organization.EdgeCustomTypeEnumCreators: + m.ResetCustomTypeEnumCreators() + return nil + case organization.EdgeDiscussionCreators: + m.ResetDiscussionCreators() + return nil + case organization.EdgeEmailTemplateCreators: + m.ResetEmailTemplateCreators() + return nil + case organization.EdgeEntityCreators: + m.ResetEntityCreators() + return nil + case organization.EdgeEntityTypeCreators: + m.ResetEntityTypeCreators() + return nil case organization.EdgeEvidenceCreators: m.ResetEvidenceCreators() return nil - case organization.EdgeAssetCreators: - m.ResetAssetCreators() + case organization.EdgeExportCreators: + m.ResetExportCreators() + return nil + case organization.EdgeFileCreators: + m.ResetFileCreators() return nil case organization.EdgeFindingCreators: m.ResetFindingCreators() return nil - case organization.EdgeVulnerabilityCreators: - m.ResetVulnerabilityCreators() - return nil case organization.EdgeGroupCreators: m.ResetGroupCreators() return nil + case organization.EdgeIdentityHolderCreators: + m.ResetIdentityHolderCreators() + return nil + case organization.EdgeIntegrationCreators: + m.ResetIntegrationCreators() + return nil + case organization.EdgeIntegrationWebhookCreators: + m.ResetIntegrationWebhookCreators() + return nil case organization.EdgeInternalPolicyCreators: m.ResetInternalPolicyCreators() return nil + case organization.EdgeJobRunnerCreators: + m.ResetJobRunnerCreators() + return nil + case organization.EdgeJobRunnerRegistrationTokenCreators: + m.ResetJobRunnerRegistrationTokenCreators() + return nil + case organization.EdgeJobRunnerTokenCreators: + m.ResetJobRunnerTokenCreators() + return nil + case organization.EdgeJobTemplateCreators: + m.ResetJobTemplateCreators() + return nil case organization.EdgeMappedControlCreators: m.ResetMappedControlCreators() return nil case organization.EdgeNarrativeCreators: m.ResetNarrativeCreators() return nil + case organization.EdgeNoteCreators: + m.ResetNoteCreators() + return nil + case organization.EdgeNotificationTemplateCreators: + m.ResetNotificationTemplateCreators() + return nil + case organization.EdgeOrganizationCreators: + m.ResetOrganizationCreators() + return nil + case organization.EdgePlatformCreators: + m.ResetPlatformCreators() + return nil case organization.EdgeProcedureCreators: m.ResetProcedureCreators() return nil case organization.EdgeProgramCreators: m.ResetProgramCreators() return nil + case organization.EdgeRemediationCreators: + m.ResetRemediationCreators() + return nil + case organization.EdgeReviewCreators: + m.ResetReviewCreators() + return nil case organization.EdgeRiskCreators: m.ResetRiskCreators() return nil - case organization.EdgeIdentityHolderCreators: - m.ResetIdentityHolderCreators() + case organization.EdgeScanCreators: + m.ResetScanCreators() return nil case organization.EdgeScheduledJobCreators: m.ResetScheduledJobCreators() return nil + case organization.EdgeScheduledJobRunCreators: + m.ResetScheduledJobRunCreators() + return nil case organization.EdgeStandardCreators: m.ResetStandardCreators() return nil - case organization.EdgeTemplateCreators: - m.ResetTemplateCreators() + case organization.EdgeSubcontrolCreators: + m.ResetSubcontrolCreators() return nil case organization.EdgeSubprocessorCreators: m.ResetSubprocessorCreators() return nil + case organization.EdgeSubscriberCreators: + m.ResetSubscriberCreators() + return nil + case organization.EdgeSystemDetailCreators: + m.ResetSystemDetailCreators() + return nil + case organization.EdgeTagDefinitionCreators: + m.ResetTagDefinitionCreators() + return nil + case organization.EdgeTaskCreators: + m.ResetTaskCreators() + return nil + case organization.EdgeTemplateCreators: + m.ResetTemplateCreators() + return nil + case organization.EdgeTrustCenterCreators: + m.ResetTrustCenterCreators() + return nil + case organization.EdgeTrustCenterComplianceCreators: + m.ResetTrustCenterComplianceCreators() + return nil case organization.EdgeTrustCenterDocCreators: m.ResetTrustCenterDocCreators() return nil + case organization.EdgeTrustCenterEntityCreators: + m.ResetTrustCenterEntityCreators() + return nil + case organization.EdgeTrustCenterFaqCreators: + m.ResetTrustCenterFaqCreators() + return nil + case organization.EdgeTrustCenterNdaRequestCreators: + m.ResetTrustCenterNdaRequestCreators() + return nil case organization.EdgeTrustCenterSubprocessorCreators: m.ResetTrustCenterSubprocessorCreators() return nil - case organization.EdgeActionPlanCreators: - m.ResetActionPlanCreators() + case organization.EdgeTrustCenterWatermarkConfigCreators: + m.ResetTrustCenterWatermarkConfigCreators() + return nil + case organization.EdgeUserCreators: + m.ResetUserCreators() + return nil + case organization.EdgeUserSettingCreators: + m.ResetUserSettingCreators() + return nil + case organization.EdgeVendorRiskScoreCreators: + m.ResetVendorRiskScoreCreators() + return nil + case organization.EdgeVulnerabilityCreators: + m.ResetVulnerabilityCreators() + return nil + case organization.EdgeWorkflowAssignmentCreators: + m.ResetWorkflowAssignmentCreators() + return nil + case organization.EdgeWorkflowAssignmentTargetCreators: + m.ResetWorkflowAssignmentTargetCreators() + return nil + case organization.EdgeWorkflowDefinitionCreators: + m.ResetWorkflowDefinitionCreators() + return nil + case organization.EdgeWorkflowEventCreators: + m.ResetWorkflowEventCreators() + return nil + case organization.EdgeWorkflowInstanceCreators: + m.ResetWorkflowInstanceCreators() + return nil + case organization.EdgeWorkflowObjectRefCreators: + m.ResetWorkflowObjectRefCreators() + return nil + case organization.EdgeWorkflowProposalCreators: + m.ResetWorkflowProposalCreators() + return nil + case organization.EdgeCampaignsManager: + m.ResetCampaignsManager() + return nil + case organization.EdgeComplianceManager: + m.ResetComplianceManager() + return nil + case organization.EdgeGroupManager: + m.ResetGroupManager() + return nil + case organization.EdgePoliciesManager: + m.ResetPoliciesManager() + return nil + case organization.EdgeRegistryManager: + m.ResetRegistryManager() + return nil + case organization.EdgeRiskManager: + m.ResetRiskManager() + return nil + case organization.EdgeTrustCenterManager: + m.ResetTrustCenterManager() + return nil + case organization.EdgeWorkflowsManager: + m.ResetWorkflowsManager() return nil case organization.EdgeParent: m.ResetParent() diff --git a/internal/ent/generated/organization.go b/internal/ent/generated/organization.go index 6948f19db3..7253f3e509 100644 --- a/internal/ent/generated/organization.go +++ b/internal/ent/generated/organization.go @@ -62,50 +62,162 @@ type Organization struct { // OrganizationEdges holds the relations/edges for other nodes in the graph. type OrganizationEdges struct { + // groups that are allowed to create action_plans + ActionPlanCreators []*Group `json:"action_plan_creators,omitempty"` + // groups that are allowed to create api_tokens + APITokenCreators []*Group `json:"api_token_creators,omitempty"` + // groups that are allowed to create assessments + AssessmentCreators []*Group `json:"assessment_creators,omitempty"` + // groups that are allowed to create assets + AssetCreators []*Group `json:"asset_creators,omitempty"` + // groups that are allowed to create campaigns + CampaignCreators []*Group `json:"campaign_creators,omitempty"` + // groups that are allowed to create campaign_targets + CampaignTargetCreators []*Group `json:"campaign_target_creators,omitempty"` + // groups that are allowed to create check_results + CheckResultCreators []*Group `json:"check_result_creators,omitempty"` + // groups that are allowed to create contacts + ContactCreators []*Group `json:"contact_creators,omitempty"` // groups that are allowed to create controls ControlCreators []*Group `json:"control_creators,omitempty"` // groups that are allowed to create control_implementations ControlImplementationCreators []*Group `json:"control_implementation_creators,omitempty"` // groups that are allowed to create control_objectives ControlObjectiveCreators []*Group `json:"control_objective_creators,omitempty"` + // groups that are allowed to create custom_type_enums + CustomTypeEnumCreators []*Group `json:"custom_type_enum_creators,omitempty"` + // groups that are allowed to create discussions + DiscussionCreators []*Group `json:"discussion_creators,omitempty"` + // groups that are allowed to create email_templates + EmailTemplateCreators []*Group `json:"email_template_creators,omitempty"` + // groups that are allowed to create entitys + EntityCreators []*Group `json:"entity_creators,omitempty"` + // groups that are allowed to create entity_types + EntityTypeCreators []*Group `json:"entity_type_creators,omitempty"` // groups that are allowed to create evidences EvidenceCreators []*Group `json:"evidence_creators,omitempty"` - // groups that are allowed to create assets - AssetCreators []*Group `json:"asset_creators,omitempty"` + // groups that are allowed to create exports + ExportCreators []*Group `json:"export_creators,omitempty"` + // groups that are allowed to create files + FileCreators []*Group `json:"file_creators,omitempty"` // groups that are allowed to create findings FindingCreators []*Group `json:"finding_creators,omitempty"` - // groups that are allowed to create vulnerabilitys - VulnerabilityCreators []*Group `json:"vulnerability_creators,omitempty"` // groups that are allowed to create groups GroupCreators []*Group `json:"group_creators,omitempty"` + // groups that are allowed to create identity_holders + IdentityHolderCreators []*Group `json:"identity_holder_creators,omitempty"` + // groups that are allowed to create integrations + IntegrationCreators []*Group `json:"integration_creators,omitempty"` + // groups that are allowed to create integration_webhooks + IntegrationWebhookCreators []*Group `json:"integration_webhook_creators,omitempty"` // groups that are allowed to create internal_policys InternalPolicyCreators []*Group `json:"internal_policy_creators,omitempty"` + // groups that are allowed to create job_runners + JobRunnerCreators []*Group `json:"job_runner_creators,omitempty"` + // groups that are allowed to create job_runner_registration_tokens + JobRunnerRegistrationTokenCreators []*Group `json:"job_runner_registration_token_creators,omitempty"` + // groups that are allowed to create job_runner_tokens + JobRunnerTokenCreators []*Group `json:"job_runner_token_creators,omitempty"` + // groups that are allowed to create job_templates + JobTemplateCreators []*Group `json:"job_template_creators,omitempty"` // groups that are allowed to create mapped_controls MappedControlCreators []*Group `json:"mapped_control_creators,omitempty"` // groups that are allowed to create narratives NarrativeCreators []*Group `json:"narrative_creators,omitempty"` + // groups that are allowed to create notes + NoteCreators []*Group `json:"note_creators,omitempty"` + // groups that are allowed to create notification_templates + NotificationTemplateCreators []*Group `json:"notification_template_creators,omitempty"` + // groups that are allowed to create organizations + OrganizationCreators []*Group `json:"organization_creators,omitempty"` + // groups that are allowed to create platforms + PlatformCreators []*Group `json:"platform_creators,omitempty"` // groups that are allowed to create procedures ProcedureCreators []*Group `json:"procedure_creators,omitempty"` // groups that are allowed to create programs ProgramCreators []*Group `json:"program_creators,omitempty"` + // groups that are allowed to create remediations + RemediationCreators []*Group `json:"remediation_creators,omitempty"` + // groups that are allowed to create reviews + ReviewCreators []*Group `json:"review_creators,omitempty"` // groups that are allowed to create risks RiskCreators []*Group `json:"risk_creators,omitempty"` - // groups that are allowed to create identity_holders - IdentityHolderCreators []*Group `json:"identity_holder_creators,omitempty"` + // groups that are allowed to create scans + ScanCreators []*Group `json:"scan_creators,omitempty"` // groups that are allowed to create scheduled_jobs ScheduledJobCreators []*Group `json:"scheduled_job_creators,omitempty"` + // groups that are allowed to create scheduled_job_runs + ScheduledJobRunCreators []*Group `json:"scheduled_job_run_creators,omitempty"` // groups that are allowed to create standards StandardCreators []*Group `json:"standard_creators,omitempty"` - // groups that are allowed to create templates - TemplateCreators []*Group `json:"template_creators,omitempty"` + // groups that are allowed to create subcontrols + SubcontrolCreators []*Group `json:"subcontrol_creators,omitempty"` // groups that are allowed to create subprocessors SubprocessorCreators []*Group `json:"subprocessor_creators,omitempty"` + // groups that are allowed to create subscribers + SubscriberCreators []*Group `json:"subscriber_creators,omitempty"` + // groups that are allowed to create system_details + SystemDetailCreators []*Group `json:"system_detail_creators,omitempty"` + // groups that are allowed to create tag_definitions + TagDefinitionCreators []*Group `json:"tag_definition_creators,omitempty"` + // groups that are allowed to create tasks + TaskCreators []*Group `json:"task_creators,omitempty"` + // groups that are allowed to create templates + TemplateCreators []*Group `json:"template_creators,omitempty"` + // groups that are allowed to create trust_centers + TrustCenterCreators []*Group `json:"trust_center_creators,omitempty"` + // groups that are allowed to create trust_center_compliances + TrustCenterComplianceCreators []*Group `json:"trust_center_compliance_creators,omitempty"` // groups that are allowed to create trust_center_docs TrustCenterDocCreators []*Group `json:"trust_center_doc_creators,omitempty"` + // groups that are allowed to create trust_center_entitys + TrustCenterEntityCreators []*Group `json:"trust_center_entity_creators,omitempty"` + // groups that are allowed to create trust_center_faqs + TrustCenterFaqCreators []*Group `json:"trust_center_faq_creators,omitempty"` + // groups that are allowed to create trust_center_nda_requests + TrustCenterNdaRequestCreators []*Group `json:"trust_center_nda_request_creators,omitempty"` // groups that are allowed to create trust_center_subprocessors TrustCenterSubprocessorCreators []*Group `json:"trust_center_subprocessor_creators,omitempty"` - // groups that are allowed to create action_plans - ActionPlanCreators []*Group `json:"action_plan_creators,omitempty"` + // groups that are allowed to create trust_center_watermark_configs + TrustCenterWatermarkConfigCreators []*Group `json:"trust_center_watermark_config_creators,omitempty"` + // groups that are allowed to create users + UserCreators []*Group `json:"user_creators,omitempty"` + // groups that are allowed to create user_settings + UserSettingCreators []*Group `json:"user_setting_creators,omitempty"` + // groups that are allowed to create vendor_risk_scores + VendorRiskScoreCreators []*Group `json:"vendor_risk_score_creators,omitempty"` + // groups that are allowed to create vulnerabilitys + VulnerabilityCreators []*Group `json:"vulnerability_creators,omitempty"` + // groups that are allowed to create workflow_assignments + WorkflowAssignmentCreators []*Group `json:"workflow_assignment_creators,omitempty"` + // groups that are allowed to create workflow_assignment_targets + WorkflowAssignmentTargetCreators []*Group `json:"workflow_assignment_target_creators,omitempty"` + // groups that are allowed to create workflow_definitions + WorkflowDefinitionCreators []*Group `json:"workflow_definition_creators,omitempty"` + // groups that are allowed to create workflow_events + WorkflowEventCreators []*Group `json:"workflow_event_creators,omitempty"` + // groups that are allowed to create workflow_instances + WorkflowInstanceCreators []*Group `json:"workflow_instance_creators,omitempty"` + // groups that are allowed to create workflow_object_refs + WorkflowObjectRefCreators []*Group `json:"workflow_object_ref_creators,omitempty"` + // groups that are allowed to create workflow_proposals + WorkflowProposalCreators []*Group `json:"workflow_proposal_creators,omitempty"` + // groups that are allowed to manage campaigns features + CampaignsManager []*Group `json:"campaigns_manager,omitempty"` + // groups that are allowed to manage compliance features + ComplianceManager []*Group `json:"compliance_manager,omitempty"` + // groups that are allowed to manage group features + GroupManager []*Group `json:"group_manager,omitempty"` + // groups that are allowed to manage policies features + PoliciesManager []*Group `json:"policies_manager,omitempty"` + // groups that are allowed to manage registry features + RegistryManager []*Group `json:"registry_manager,omitempty"` + // groups that are allowed to manage risk features + RiskManager []*Group `json:"risk_manager,omitempty"` + // groups that are allowed to manage trust_center features + TrustCenterManager []*Group `json:"trust_center_manager,omitempty"` + // groups that are allowed to manage workflows features + WorkflowsManager []*Group `json:"workflows_manager,omitempty"` // Parent holds the value of the parent edge. Parent *Organization `json:"parent,omitempty"` // Children holds the value of the children edge. @@ -286,2061 +398,4245 @@ type OrganizationEdges struct { Members []*OrgMembership `json:"members,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [111]bool + loadedTypes [167]bool // totalCount holds the count of the edges above. - totalCount [103]map[string]int - - namedControlCreators map[string][]*Group - namedControlImplementationCreators map[string][]*Group - namedControlObjectiveCreators map[string][]*Group - namedEvidenceCreators map[string][]*Group - namedAssetCreators map[string][]*Group - namedFindingCreators map[string][]*Group - namedVulnerabilityCreators map[string][]*Group - namedGroupCreators map[string][]*Group - namedInternalPolicyCreators map[string][]*Group - namedMappedControlCreators map[string][]*Group - namedNarrativeCreators map[string][]*Group - namedProcedureCreators map[string][]*Group - namedProgramCreators map[string][]*Group - namedRiskCreators map[string][]*Group - namedIdentityHolderCreators map[string][]*Group - namedScheduledJobCreators map[string][]*Group - namedStandardCreators map[string][]*Group - namedTemplateCreators map[string][]*Group - namedSubprocessorCreators map[string][]*Group - namedTrustCenterDocCreators map[string][]*Group - namedTrustCenterSubprocessorCreators map[string][]*Group - namedActionPlanCreators map[string][]*Group - namedChildren map[string][]*Organization - namedPersonalAccessTokens map[string][]*PersonalAccessToken - namedAPITokens map[string][]*APIToken - namedEmailTemplates map[string][]*EmailTemplate - namedIntegrationWebhooks map[string][]*IntegrationWebhook - namedIntegrationRuns map[string][]*IntegrationRun - namedNotificationPreferences map[string][]*NotificationPreference - namedNotificationTemplates map[string][]*NotificationTemplate - namedUsers map[string][]*User - namedFiles map[string][]*File - namedEvents map[string][]*Event - namedSecrets map[string][]*Hush - namedGroups map[string][]*Group - namedTemplates map[string][]*Template - namedIntegrations map[string][]*Integration - namedDocuments map[string][]*DocumentData - namedOrgSubscriptions map[string][]*OrgSubscription - namedOrgProducts map[string][]*OrgProduct - namedOrgPrices map[string][]*OrgPrice - namedOrgModules map[string][]*OrgModule - namedInvites map[string][]*Invite - namedSubscribers map[string][]*Subscriber - namedEntities map[string][]*Entity - namedPlatforms map[string][]*Platform - namedIdentityHolders map[string][]*IdentityHolder - namedCampaigns map[string][]*Campaign - namedCampaignTargets map[string][]*CampaignTarget - namedEntityTypes map[string][]*EntityType - namedContacts map[string][]*Contact - namedNotes map[string][]*Note - namedTasks map[string][]*Task - namedPrograms map[string][]*Program - namedSystemDetails map[string][]*SystemDetail - namedProcedures map[string][]*Procedure - namedInternalPolicies map[string][]*InternalPolicy - namedRisks map[string][]*Risk - namedControlObjectives map[string][]*ControlObjective - namedNarratives map[string][]*Narrative - namedControls map[string][]*Control - namedSubcontrols map[string][]*Subcontrol - namedControlImplementations map[string][]*ControlImplementation - namedMappedControls map[string][]*MappedControl - namedEvidence map[string][]*Evidence - namedStandards map[string][]*Standard - namedActionPlans map[string][]*ActionPlan - namedCustomDomains map[string][]*CustomDomain - namedJobRunners map[string][]*JobRunner - namedJobRunnerTokens map[string][]*JobRunnerToken - namedJobRunnerRegistrationTokens map[string][]*JobRunnerRegistrationToken - namedDNSVerifications map[string][]*DNSVerification - namedJobTemplates map[string][]*JobTemplate - namedScheduledJobs map[string][]*ScheduledJob - namedJobResults map[string][]*JobResult - namedScheduledJobRuns map[string][]*ScheduledJobRun - namedTrustCenters map[string][]*TrustCenter - namedAssets map[string][]*Asset - namedScans map[string][]*Scan - namedSLADefinitions map[string][]*SLADefinition - namedSubprocessors map[string][]*Subprocessor - namedExports map[string][]*Export - namedTrustCenterWatermarkConfigs map[string][]*TrustCenterWatermarkConfig - namedImpersonationEvents map[string][]*ImpersonationEvent - namedAssessments map[string][]*Assessment - namedAssessmentResponses map[string][]*AssessmentResponse - namedCustomTypeEnums map[string][]*CustomTypeEnum - namedTagDefinitions map[string][]*TagDefinition - namedRemediations map[string][]*Remediation - namedFindings map[string][]*Finding - namedReviews map[string][]*Review - namedVulnerabilities map[string][]*Vulnerability - namedNotifications map[string][]*Notification - namedWorkflowDefinitions map[string][]*WorkflowDefinition - namedWorkflowInstances map[string][]*WorkflowInstance - namedWorkflowEvents map[string][]*WorkflowEvent - namedWorkflowAssignments map[string][]*WorkflowAssignment - namedWorkflowAssignmentTargets map[string][]*WorkflowAssignmentTarget - namedWorkflowObjectRefs map[string][]*WorkflowObjectRef - namedWorkflowProposals map[string][]*WorkflowProposal - namedDirectoryAccounts map[string][]*DirectoryAccount - namedDirectoryGroups map[string][]*DirectoryGroup - namedDirectoryMemberships map[string][]*DirectoryMembership - namedDirectorySyncRuns map[string][]*DirectorySyncRun - namedDiscussions map[string][]*Discussion - namedVendorScoringConfigs map[string][]*VendorScoringConfig - namedVendorRiskScores map[string][]*VendorRiskScore - namedMembers map[string][]*OrgMembership + totalCount [159]map[string]int + + namedActionPlanCreators map[string][]*Group + namedAPITokenCreators map[string][]*Group + namedAssessmentCreators map[string][]*Group + namedAssetCreators map[string][]*Group + namedCampaignCreators map[string][]*Group + namedCampaignTargetCreators map[string][]*Group + namedCheckResultCreators map[string][]*Group + namedContactCreators map[string][]*Group + namedControlCreators map[string][]*Group + namedControlImplementationCreators map[string][]*Group + namedControlObjectiveCreators map[string][]*Group + namedCustomTypeEnumCreators map[string][]*Group + namedDiscussionCreators map[string][]*Group + namedEmailTemplateCreators map[string][]*Group + namedEntityCreators map[string][]*Group + namedEntityTypeCreators map[string][]*Group + namedEvidenceCreators map[string][]*Group + namedExportCreators map[string][]*Group + namedFileCreators map[string][]*Group + namedFindingCreators map[string][]*Group + namedGroupCreators map[string][]*Group + namedIdentityHolderCreators map[string][]*Group + namedIntegrationCreators map[string][]*Group + namedIntegrationWebhookCreators map[string][]*Group + namedInternalPolicyCreators map[string][]*Group + namedJobRunnerCreators map[string][]*Group + namedJobRunnerRegistrationTokenCreators map[string][]*Group + namedJobRunnerTokenCreators map[string][]*Group + namedJobTemplateCreators map[string][]*Group + namedMappedControlCreators map[string][]*Group + namedNarrativeCreators map[string][]*Group + namedNoteCreators map[string][]*Group + namedNotificationTemplateCreators map[string][]*Group + namedOrganizationCreators map[string][]*Group + namedPlatformCreators map[string][]*Group + namedProcedureCreators map[string][]*Group + namedProgramCreators map[string][]*Group + namedRemediationCreators map[string][]*Group + namedReviewCreators map[string][]*Group + namedRiskCreators map[string][]*Group + namedScanCreators map[string][]*Group + namedScheduledJobCreators map[string][]*Group + namedScheduledJobRunCreators map[string][]*Group + namedStandardCreators map[string][]*Group + namedSubcontrolCreators map[string][]*Group + namedSubprocessorCreators map[string][]*Group + namedSubscriberCreators map[string][]*Group + namedSystemDetailCreators map[string][]*Group + namedTagDefinitionCreators map[string][]*Group + namedTaskCreators map[string][]*Group + namedTemplateCreators map[string][]*Group + namedTrustCenterCreators map[string][]*Group + namedTrustCenterComplianceCreators map[string][]*Group + namedTrustCenterDocCreators map[string][]*Group + namedTrustCenterEntityCreators map[string][]*Group + namedTrustCenterFaqCreators map[string][]*Group + namedTrustCenterNdaRequestCreators map[string][]*Group + namedTrustCenterSubprocessorCreators map[string][]*Group + namedTrustCenterWatermarkConfigCreators map[string][]*Group + namedUserCreators map[string][]*Group + namedUserSettingCreators map[string][]*Group + namedVendorRiskScoreCreators map[string][]*Group + namedVulnerabilityCreators map[string][]*Group + namedWorkflowAssignmentCreators map[string][]*Group + namedWorkflowAssignmentTargetCreators map[string][]*Group + namedWorkflowDefinitionCreators map[string][]*Group + namedWorkflowEventCreators map[string][]*Group + namedWorkflowInstanceCreators map[string][]*Group + namedWorkflowObjectRefCreators map[string][]*Group + namedWorkflowProposalCreators map[string][]*Group + namedCampaignsManager map[string][]*Group + namedComplianceManager map[string][]*Group + namedGroupManager map[string][]*Group + namedPoliciesManager map[string][]*Group + namedRegistryManager map[string][]*Group + namedRiskManager map[string][]*Group + namedTrustCenterManager map[string][]*Group + namedWorkflowsManager map[string][]*Group + namedChildren map[string][]*Organization + namedPersonalAccessTokens map[string][]*PersonalAccessToken + namedAPITokens map[string][]*APIToken + namedEmailTemplates map[string][]*EmailTemplate + namedIntegrationWebhooks map[string][]*IntegrationWebhook + namedIntegrationRuns map[string][]*IntegrationRun + namedNotificationPreferences map[string][]*NotificationPreference + namedNotificationTemplates map[string][]*NotificationTemplate + namedUsers map[string][]*User + namedFiles map[string][]*File + namedEvents map[string][]*Event + namedSecrets map[string][]*Hush + namedGroups map[string][]*Group + namedTemplates map[string][]*Template + namedIntegrations map[string][]*Integration + namedDocuments map[string][]*DocumentData + namedOrgSubscriptions map[string][]*OrgSubscription + namedOrgProducts map[string][]*OrgProduct + namedOrgPrices map[string][]*OrgPrice + namedOrgModules map[string][]*OrgModule + namedInvites map[string][]*Invite + namedSubscribers map[string][]*Subscriber + namedEntities map[string][]*Entity + namedPlatforms map[string][]*Platform + namedIdentityHolders map[string][]*IdentityHolder + namedCampaigns map[string][]*Campaign + namedCampaignTargets map[string][]*CampaignTarget + namedEntityTypes map[string][]*EntityType + namedContacts map[string][]*Contact + namedNotes map[string][]*Note + namedTasks map[string][]*Task + namedPrograms map[string][]*Program + namedSystemDetails map[string][]*SystemDetail + namedProcedures map[string][]*Procedure + namedInternalPolicies map[string][]*InternalPolicy + namedRisks map[string][]*Risk + namedControlObjectives map[string][]*ControlObjective + namedNarratives map[string][]*Narrative + namedControls map[string][]*Control + namedSubcontrols map[string][]*Subcontrol + namedControlImplementations map[string][]*ControlImplementation + namedMappedControls map[string][]*MappedControl + namedEvidence map[string][]*Evidence + namedStandards map[string][]*Standard + namedActionPlans map[string][]*ActionPlan + namedCustomDomains map[string][]*CustomDomain + namedJobRunners map[string][]*JobRunner + namedJobRunnerTokens map[string][]*JobRunnerToken + namedJobRunnerRegistrationTokens map[string][]*JobRunnerRegistrationToken + namedDNSVerifications map[string][]*DNSVerification + namedJobTemplates map[string][]*JobTemplate + namedScheduledJobs map[string][]*ScheduledJob + namedJobResults map[string][]*JobResult + namedScheduledJobRuns map[string][]*ScheduledJobRun + namedTrustCenters map[string][]*TrustCenter + namedAssets map[string][]*Asset + namedScans map[string][]*Scan + namedSLADefinitions map[string][]*SLADefinition + namedSubprocessors map[string][]*Subprocessor + namedExports map[string][]*Export + namedTrustCenterWatermarkConfigs map[string][]*TrustCenterWatermarkConfig + namedImpersonationEvents map[string][]*ImpersonationEvent + namedAssessments map[string][]*Assessment + namedAssessmentResponses map[string][]*AssessmentResponse + namedCustomTypeEnums map[string][]*CustomTypeEnum + namedTagDefinitions map[string][]*TagDefinition + namedRemediations map[string][]*Remediation + namedFindings map[string][]*Finding + namedReviews map[string][]*Review + namedVulnerabilities map[string][]*Vulnerability + namedNotifications map[string][]*Notification + namedWorkflowDefinitions map[string][]*WorkflowDefinition + namedWorkflowInstances map[string][]*WorkflowInstance + namedWorkflowEvents map[string][]*WorkflowEvent + namedWorkflowAssignments map[string][]*WorkflowAssignment + namedWorkflowAssignmentTargets map[string][]*WorkflowAssignmentTarget + namedWorkflowObjectRefs map[string][]*WorkflowObjectRef + namedWorkflowProposals map[string][]*WorkflowProposal + namedDirectoryAccounts map[string][]*DirectoryAccount + namedDirectoryGroups map[string][]*DirectoryGroup + namedDirectoryMemberships map[string][]*DirectoryMembership + namedDirectorySyncRuns map[string][]*DirectorySyncRun + namedDiscussions map[string][]*Discussion + namedVendorScoringConfigs map[string][]*VendorScoringConfig + namedVendorRiskScores map[string][]*VendorRiskScore + namedMembers map[string][]*OrgMembership } -// ControlCreatorsOrErr returns the ControlCreators value or an error if the edge +// ActionPlanCreatorsOrErr returns the ActionPlanCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ActionPlanCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[0] { - return e.ControlCreators, nil + return e.ActionPlanCreators, nil } - return nil, &NotLoadedError{edge: "control_creators"} + return nil, &NotLoadedError{edge: "action_plan_creators"} } -// ControlImplementationCreatorsOrErr returns the ControlImplementationCreators value or an error if the edge +// APITokenCreatorsOrErr returns the APITokenCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlImplementationCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) APITokenCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[1] { - return e.ControlImplementationCreators, nil + return e.APITokenCreators, nil } - return nil, &NotLoadedError{edge: "control_implementation_creators"} + return nil, &NotLoadedError{edge: "api_token_creators"} } -// ControlObjectiveCreatorsOrErr returns the ControlObjectiveCreators value or an error if the edge +// AssessmentCreatorsOrErr returns the AssessmentCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlObjectiveCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) AssessmentCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[2] { - return e.ControlObjectiveCreators, nil + return e.AssessmentCreators, nil } - return nil, &NotLoadedError{edge: "control_objective_creators"} + return nil, &NotLoadedError{edge: "assessment_creators"} } -// EvidenceCreatorsOrErr returns the EvidenceCreators value or an error if the edge +// AssetCreatorsOrErr returns the AssetCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EvidenceCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) AssetCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[3] { - return e.EvidenceCreators, nil + return e.AssetCreators, nil } - return nil, &NotLoadedError{edge: "evidence_creators"} + return nil, &NotLoadedError{edge: "asset_creators"} } -// AssetCreatorsOrErr returns the AssetCreators value or an error if the edge +// CampaignCreatorsOrErr returns the CampaignCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) AssetCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) CampaignCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[4] { - return e.AssetCreators, nil + return e.CampaignCreators, nil } - return nil, &NotLoadedError{edge: "asset_creators"} + return nil, &NotLoadedError{edge: "campaign_creators"} } -// FindingCreatorsOrErr returns the FindingCreators value or an error if the edge +// CampaignTargetCreatorsOrErr returns the CampaignTargetCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) FindingCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) CampaignTargetCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[5] { - return e.FindingCreators, nil + return e.CampaignTargetCreators, nil } - return nil, &NotLoadedError{edge: "finding_creators"} + return nil, &NotLoadedError{edge: "campaign_target_creators"} } -// VulnerabilityCreatorsOrErr returns the VulnerabilityCreators value or an error if the edge +// CheckResultCreatorsOrErr returns the CheckResultCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) VulnerabilityCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) CheckResultCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[6] { - return e.VulnerabilityCreators, nil + return e.CheckResultCreators, nil } - return nil, &NotLoadedError{edge: "vulnerability_creators"} + return nil, &NotLoadedError{edge: "check_result_creators"} } -// GroupCreatorsOrErr returns the GroupCreators value or an error if the edge +// ContactCreatorsOrErr returns the ContactCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) GroupCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ContactCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[7] { - return e.GroupCreators, nil + return e.ContactCreators, nil } - return nil, &NotLoadedError{edge: "group_creators"} + return nil, &NotLoadedError{edge: "contact_creators"} } -// InternalPolicyCreatorsOrErr returns the InternalPolicyCreators value or an error if the edge +// ControlCreatorsOrErr returns the ControlCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) InternalPolicyCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ControlCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[8] { - return e.InternalPolicyCreators, nil + return e.ControlCreators, nil } - return nil, &NotLoadedError{edge: "internal_policy_creators"} + return nil, &NotLoadedError{edge: "control_creators"} } -// MappedControlCreatorsOrErr returns the MappedControlCreators value or an error if the edge +// ControlImplementationCreatorsOrErr returns the ControlImplementationCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) MappedControlCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ControlImplementationCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[9] { - return e.MappedControlCreators, nil + return e.ControlImplementationCreators, nil } - return nil, &NotLoadedError{edge: "mapped_control_creators"} + return nil, &NotLoadedError{edge: "control_implementation_creators"} } -// NarrativeCreatorsOrErr returns the NarrativeCreators value or an error if the edge +// ControlObjectiveCreatorsOrErr returns the ControlObjectiveCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NarrativeCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ControlObjectiveCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[10] { - return e.NarrativeCreators, nil + return e.ControlObjectiveCreators, nil } - return nil, &NotLoadedError{edge: "narrative_creators"} + return nil, &NotLoadedError{edge: "control_objective_creators"} } -// ProcedureCreatorsOrErr returns the ProcedureCreators value or an error if the edge +// CustomTypeEnumCreatorsOrErr returns the CustomTypeEnumCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ProcedureCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) CustomTypeEnumCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[11] { - return e.ProcedureCreators, nil + return e.CustomTypeEnumCreators, nil } - return nil, &NotLoadedError{edge: "procedure_creators"} + return nil, &NotLoadedError{edge: "custom_type_enum_creators"} } -// ProgramCreatorsOrErr returns the ProgramCreators value or an error if the edge +// DiscussionCreatorsOrErr returns the DiscussionCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ProgramCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) DiscussionCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[12] { - return e.ProgramCreators, nil + return e.DiscussionCreators, nil } - return nil, &NotLoadedError{edge: "program_creators"} + return nil, &NotLoadedError{edge: "discussion_creators"} } -// RiskCreatorsOrErr returns the RiskCreators value or an error if the edge +// EmailTemplateCreatorsOrErr returns the EmailTemplateCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) RiskCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) EmailTemplateCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[13] { - return e.RiskCreators, nil + return e.EmailTemplateCreators, nil } - return nil, &NotLoadedError{edge: "risk_creators"} + return nil, &NotLoadedError{edge: "email_template_creators"} } -// IdentityHolderCreatorsOrErr returns the IdentityHolderCreators value or an error if the edge +// EntityCreatorsOrErr returns the EntityCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) IdentityHolderCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) EntityCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[14] { - return e.IdentityHolderCreators, nil + return e.EntityCreators, nil } - return nil, &NotLoadedError{edge: "identity_holder_creators"} + return nil, &NotLoadedError{edge: "entity_creators"} } -// ScheduledJobCreatorsOrErr returns the ScheduledJobCreators value or an error if the edge +// EntityTypeCreatorsOrErr returns the EntityTypeCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ScheduledJobCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) EntityTypeCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[15] { - return e.ScheduledJobCreators, nil + return e.EntityTypeCreators, nil } - return nil, &NotLoadedError{edge: "scheduled_job_creators"} + return nil, &NotLoadedError{edge: "entity_type_creators"} } -// StandardCreatorsOrErr returns the StandardCreators value or an error if the edge +// EvidenceCreatorsOrErr returns the EvidenceCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) StandardCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) EvidenceCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[16] { - return e.StandardCreators, nil + return e.EvidenceCreators, nil } - return nil, &NotLoadedError{edge: "standard_creators"} + return nil, &NotLoadedError{edge: "evidence_creators"} } -// TemplateCreatorsOrErr returns the TemplateCreators value or an error if the edge +// ExportCreatorsOrErr returns the ExportCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TemplateCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) ExportCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[17] { - return e.TemplateCreators, nil + return e.ExportCreators, nil } - return nil, &NotLoadedError{edge: "template_creators"} + return nil, &NotLoadedError{edge: "export_creators"} } -// SubprocessorCreatorsOrErr returns the SubprocessorCreators value or an error if the edge +// FileCreatorsOrErr returns the FileCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SubprocessorCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) FileCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[18] { - return e.SubprocessorCreators, nil + return e.FileCreators, nil } - return nil, &NotLoadedError{edge: "subprocessor_creators"} + return nil, &NotLoadedError{edge: "file_creators"} } -// TrustCenterDocCreatorsOrErr returns the TrustCenterDocCreators value or an error if the edge +// FindingCreatorsOrErr returns the FindingCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TrustCenterDocCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) FindingCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[19] { - return e.TrustCenterDocCreators, nil + return e.FindingCreators, nil } - return nil, &NotLoadedError{edge: "trust_center_doc_creators"} + return nil, &NotLoadedError{edge: "finding_creators"} } -// TrustCenterSubprocessorCreatorsOrErr returns the TrustCenterSubprocessorCreators value or an error if the edge +// GroupCreatorsOrErr returns the GroupCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TrustCenterSubprocessorCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) GroupCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[20] { - return e.TrustCenterSubprocessorCreators, nil + return e.GroupCreators, nil } - return nil, &NotLoadedError{edge: "trust_center_subprocessor_creators"} + return nil, &NotLoadedError{edge: "group_creators"} } -// ActionPlanCreatorsOrErr returns the ActionPlanCreators value or an error if the edge +// IdentityHolderCreatorsOrErr returns the IdentityHolderCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ActionPlanCreatorsOrErr() ([]*Group, error) { +func (e OrganizationEdges) IdentityHolderCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[21] { - return e.ActionPlanCreators, nil + return e.IdentityHolderCreators, nil } - return nil, &NotLoadedError{edge: "action_plan_creators"} + return nil, &NotLoadedError{edge: "identity_holder_creators"} } -// ParentOrErr returns the Parent value or an error if the edge -// was not loaded in eager-loading, or loaded but was not found. -func (e OrganizationEdges) ParentOrErr() (*Organization, error) { - if e.Parent != nil { - return e.Parent, nil - } else if e.loadedTypes[22] { - return nil, &NotFoundError{label: organization.Label} +// IntegrationCreatorsOrErr returns the IntegrationCreators value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) IntegrationCreatorsOrErr() ([]*Group, error) { + if e.loadedTypes[22] { + return e.IntegrationCreators, nil } - return nil, &NotLoadedError{edge: "parent"} + return nil, &NotLoadedError{edge: "integration_creators"} } -// ChildrenOrErr returns the Children value or an error if the edge +// IntegrationWebhookCreatorsOrErr returns the IntegrationWebhookCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error) { +func (e OrganizationEdges) IntegrationWebhookCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[23] { - return e.Children, nil + return e.IntegrationWebhookCreators, nil } - return nil, &NotLoadedError{edge: "children"} + return nil, &NotLoadedError{edge: "integration_webhook_creators"} } -// SettingOrErr returns the Setting value or an error if the edge -// was not loaded in eager-loading, or loaded but was not found. -func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error) { - if e.Setting != nil { - return e.Setting, nil - } else if e.loadedTypes[24] { - return nil, &NotFoundError{label: organizationsetting.Label} +// InternalPolicyCreatorsOrErr returns the InternalPolicyCreators value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) InternalPolicyCreatorsOrErr() ([]*Group, error) { + if e.loadedTypes[24] { + return e.InternalPolicyCreators, nil } - return nil, &NotLoadedError{edge: "setting"} + return nil, &NotLoadedError{edge: "internal_policy_creators"} } -// PersonalAccessTokensOrErr returns the PersonalAccessTokens value or an error if the edge +// JobRunnerCreatorsOrErr returns the JobRunnerCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error) { +func (e OrganizationEdges) JobRunnerCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[25] { - return e.PersonalAccessTokens, nil + return e.JobRunnerCreators, nil } - return nil, &NotLoadedError{edge: "personal_access_tokens"} + return nil, &NotLoadedError{edge: "job_runner_creators"} } -// APITokensOrErr returns the APITokens value or an error if the edge +// JobRunnerRegistrationTokenCreatorsOrErr returns the JobRunnerRegistrationTokenCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error) { +func (e OrganizationEdges) JobRunnerRegistrationTokenCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[26] { - return e.APITokens, nil + return e.JobRunnerRegistrationTokenCreators, nil } - return nil, &NotLoadedError{edge: "api_tokens"} + return nil, &NotLoadedError{edge: "job_runner_registration_token_creators"} } -// EmailTemplatesOrErr returns the EmailTemplates value or an error if the edge +// JobRunnerTokenCreatorsOrErr returns the JobRunnerTokenCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EmailTemplatesOrErr() ([]*EmailTemplate, error) { +func (e OrganizationEdges) JobRunnerTokenCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[27] { - return e.EmailTemplates, nil + return e.JobRunnerTokenCreators, nil } - return nil, &NotLoadedError{edge: "email_templates"} + return nil, &NotLoadedError{edge: "job_runner_token_creators"} } -// IntegrationWebhooksOrErr returns the IntegrationWebhooks value or an error if the edge +// JobTemplateCreatorsOrErr returns the JobTemplateCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) IntegrationWebhooksOrErr() ([]*IntegrationWebhook, error) { +func (e OrganizationEdges) JobTemplateCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[28] { - return e.IntegrationWebhooks, nil + return e.JobTemplateCreators, nil } - return nil, &NotLoadedError{edge: "integration_webhooks"} + return nil, &NotLoadedError{edge: "job_template_creators"} } -// IntegrationRunsOrErr returns the IntegrationRuns value or an error if the edge +// MappedControlCreatorsOrErr returns the MappedControlCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) IntegrationRunsOrErr() ([]*IntegrationRun, error) { +func (e OrganizationEdges) MappedControlCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[29] { - return e.IntegrationRuns, nil + return e.MappedControlCreators, nil } - return nil, &NotLoadedError{edge: "integration_runs"} + return nil, &NotLoadedError{edge: "mapped_control_creators"} } -// NotificationPreferencesOrErr returns the NotificationPreferences value or an error if the edge +// NarrativeCreatorsOrErr returns the NarrativeCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NotificationPreferencesOrErr() ([]*NotificationPreference, error) { +func (e OrganizationEdges) NarrativeCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[30] { - return e.NotificationPreferences, nil + return e.NarrativeCreators, nil } - return nil, &NotLoadedError{edge: "notification_preferences"} + return nil, &NotLoadedError{edge: "narrative_creators"} } -// NotificationTemplatesOrErr returns the NotificationTemplates value or an error if the edge +// NoteCreatorsOrErr returns the NoteCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NotificationTemplatesOrErr() ([]*NotificationTemplate, error) { +func (e OrganizationEdges) NoteCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[31] { - return e.NotificationTemplates, nil + return e.NoteCreators, nil } - return nil, &NotLoadedError{edge: "notification_templates"} + return nil, &NotLoadedError{edge: "note_creators"} } -// UsersOrErr returns the Users value or an error if the edge +// NotificationTemplateCreatorsOrErr returns the NotificationTemplateCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) UsersOrErr() ([]*User, error) { +func (e OrganizationEdges) NotificationTemplateCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[32] { - return e.Users, nil + return e.NotificationTemplateCreators, nil } - return nil, &NotLoadedError{edge: "users"} + return nil, &NotLoadedError{edge: "notification_template_creators"} } -// FilesOrErr returns the Files value or an error if the edge +// OrganizationCreatorsOrErr returns the OrganizationCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) FilesOrErr() ([]*File, error) { +func (e OrganizationEdges) OrganizationCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[33] { - return e.Files, nil + return e.OrganizationCreators, nil } - return nil, &NotLoadedError{edge: "files"} + return nil, &NotLoadedError{edge: "organization_creators"} } -// EventsOrErr returns the Events value or an error if the edge +// PlatformCreatorsOrErr returns the PlatformCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EventsOrErr() ([]*Event, error) { +func (e OrganizationEdges) PlatformCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[34] { - return e.Events, nil + return e.PlatformCreators, nil } - return nil, &NotLoadedError{edge: "events"} + return nil, &NotLoadedError{edge: "platform_creators"} } -// SecretsOrErr returns the Secrets value or an error if the edge +// ProcedureCreatorsOrErr returns the ProcedureCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SecretsOrErr() ([]*Hush, error) { +func (e OrganizationEdges) ProcedureCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[35] { - return e.Secrets, nil + return e.ProcedureCreators, nil } - return nil, &NotLoadedError{edge: "secrets"} + return nil, &NotLoadedError{edge: "procedure_creators"} } -// AvatarFileOrErr returns the AvatarFile value or an error if the edge -// was not loaded in eager-loading, or loaded but was not found. -func (e OrganizationEdges) AvatarFileOrErr() (*File, error) { - if e.AvatarFile != nil { - return e.AvatarFile, nil - } else if e.loadedTypes[36] { - return nil, &NotFoundError{label: file.Label} +// ProgramCreatorsOrErr returns the ProgramCreators value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ProgramCreatorsOrErr() ([]*Group, error) { + if e.loadedTypes[36] { + return e.ProgramCreators, nil } - return nil, &NotLoadedError{edge: "avatar_file"} + return nil, &NotLoadedError{edge: "program_creators"} } -// GroupsOrErr returns the Groups value or an error if the edge +// RemediationCreatorsOrErr returns the RemediationCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) GroupsOrErr() ([]*Group, error) { +func (e OrganizationEdges) RemediationCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[37] { - return e.Groups, nil + return e.RemediationCreators, nil } - return nil, &NotLoadedError{edge: "groups"} + return nil, &NotLoadedError{edge: "remediation_creators"} } -// TemplatesOrErr returns the Templates value or an error if the edge +// ReviewCreatorsOrErr returns the ReviewCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TemplatesOrErr() ([]*Template, error) { +func (e OrganizationEdges) ReviewCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[38] { - return e.Templates, nil + return e.ReviewCreators, nil } - return nil, &NotLoadedError{edge: "templates"} + return nil, &NotLoadedError{edge: "review_creators"} } -// IntegrationsOrErr returns the Integrations value or an error if the edge +// RiskCreatorsOrErr returns the RiskCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error) { +func (e OrganizationEdges) RiskCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[39] { - return e.Integrations, nil + return e.RiskCreators, nil } - return nil, &NotLoadedError{edge: "integrations"} + return nil, &NotLoadedError{edge: "risk_creators"} } -// DocumentsOrErr returns the Documents value or an error if the edge +// ScanCreatorsOrErr returns the ScanCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DocumentsOrErr() ([]*DocumentData, error) { +func (e OrganizationEdges) ScanCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[40] { - return e.Documents, nil + return e.ScanCreators, nil } - return nil, &NotLoadedError{edge: "documents"} + return nil, &NotLoadedError{edge: "scan_creators"} } -// OrgSubscriptionsOrErr returns the OrgSubscriptions value or an error if the edge +// ScheduledJobCreatorsOrErr returns the ScheduledJobCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) OrgSubscriptionsOrErr() ([]*OrgSubscription, error) { +func (e OrganizationEdges) ScheduledJobCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[41] { - return e.OrgSubscriptions, nil + return e.ScheduledJobCreators, nil } - return nil, &NotLoadedError{edge: "org_subscriptions"} + return nil, &NotLoadedError{edge: "scheduled_job_creators"} } -// OrgProductsOrErr returns the OrgProducts value or an error if the edge +// ScheduledJobRunCreatorsOrErr returns the ScheduledJobRunCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) OrgProductsOrErr() ([]*OrgProduct, error) { +func (e OrganizationEdges) ScheduledJobRunCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[42] { - return e.OrgProducts, nil + return e.ScheduledJobRunCreators, nil } - return nil, &NotLoadedError{edge: "org_products"} + return nil, &NotLoadedError{edge: "scheduled_job_run_creators"} } -// OrgPricesOrErr returns the OrgPrices value or an error if the edge +// StandardCreatorsOrErr returns the StandardCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) OrgPricesOrErr() ([]*OrgPrice, error) { +func (e OrganizationEdges) StandardCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[43] { - return e.OrgPrices, nil + return e.StandardCreators, nil } - return nil, &NotLoadedError{edge: "org_prices"} + return nil, &NotLoadedError{edge: "standard_creators"} } -// OrgModulesOrErr returns the OrgModules value or an error if the edge +// SubcontrolCreatorsOrErr returns the SubcontrolCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) OrgModulesOrErr() ([]*OrgModule, error) { +func (e OrganizationEdges) SubcontrolCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[44] { - return e.OrgModules, nil + return e.SubcontrolCreators, nil } - return nil, &NotLoadedError{edge: "org_modules"} + return nil, &NotLoadedError{edge: "subcontrol_creators"} } -// InvitesOrErr returns the Invites value or an error if the edge +// SubprocessorCreatorsOrErr returns the SubprocessorCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) InvitesOrErr() ([]*Invite, error) { +func (e OrganizationEdges) SubprocessorCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[45] { - return e.Invites, nil + return e.SubprocessorCreators, nil } - return nil, &NotLoadedError{edge: "invites"} + return nil, &NotLoadedError{edge: "subprocessor_creators"} } -// SubscribersOrErr returns the Subscribers value or an error if the edge +// SubscriberCreatorsOrErr returns the SubscriberCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SubscribersOrErr() ([]*Subscriber, error) { +func (e OrganizationEdges) SubscriberCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[46] { - return e.Subscribers, nil + return e.SubscriberCreators, nil } - return nil, &NotLoadedError{edge: "subscribers"} + return nil, &NotLoadedError{edge: "subscriber_creators"} } -// EntitiesOrErr returns the Entities value or an error if the edge +// SystemDetailCreatorsOrErr returns the SystemDetailCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EntitiesOrErr() ([]*Entity, error) { +func (e OrganizationEdges) SystemDetailCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[47] { - return e.Entities, nil + return e.SystemDetailCreators, nil } - return nil, &NotLoadedError{edge: "entities"} + return nil, &NotLoadedError{edge: "system_detail_creators"} } -// PlatformsOrErr returns the Platforms value or an error if the edge +// TagDefinitionCreatorsOrErr returns the TagDefinitionCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) PlatformsOrErr() ([]*Platform, error) { +func (e OrganizationEdges) TagDefinitionCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[48] { - return e.Platforms, nil + return e.TagDefinitionCreators, nil } - return nil, &NotLoadedError{edge: "platforms"} + return nil, &NotLoadedError{edge: "tag_definition_creators"} } -// IdentityHoldersOrErr returns the IdentityHolders value or an error if the edge +// TaskCreatorsOrErr returns the TaskCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) IdentityHoldersOrErr() ([]*IdentityHolder, error) { +func (e OrganizationEdges) TaskCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[49] { - return e.IdentityHolders, nil + return e.TaskCreators, nil } - return nil, &NotLoadedError{edge: "identity_holders"} + return nil, &NotLoadedError{edge: "task_creators"} } -// CampaignsOrErr returns the Campaigns value or an error if the edge +// TemplateCreatorsOrErr returns the TemplateCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) CampaignsOrErr() ([]*Campaign, error) { +func (e OrganizationEdges) TemplateCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[50] { - return e.Campaigns, nil + return e.TemplateCreators, nil } - return nil, &NotLoadedError{edge: "campaigns"} + return nil, &NotLoadedError{edge: "template_creators"} } -// CampaignTargetsOrErr returns the CampaignTargets value or an error if the edge +// TrustCenterCreatorsOrErr returns the TrustCenterCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { +func (e OrganizationEdges) TrustCenterCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[51] { - return e.CampaignTargets, nil + return e.TrustCenterCreators, nil } - return nil, &NotLoadedError{edge: "campaign_targets"} + return nil, &NotLoadedError{edge: "trust_center_creators"} } -// EntityTypesOrErr returns the EntityTypes value or an error if the edge +// TrustCenterComplianceCreatorsOrErr returns the TrustCenterComplianceCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EntityTypesOrErr() ([]*EntityType, error) { +func (e OrganizationEdges) TrustCenterComplianceCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[52] { - return e.EntityTypes, nil + return e.TrustCenterComplianceCreators, nil } - return nil, &NotLoadedError{edge: "entity_types"} + return nil, &NotLoadedError{edge: "trust_center_compliance_creators"} } -// ContactsOrErr returns the Contacts value or an error if the edge +// TrustCenterDocCreatorsOrErr returns the TrustCenterDocCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ContactsOrErr() ([]*Contact, error) { +func (e OrganizationEdges) TrustCenterDocCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[53] { - return e.Contacts, nil + return e.TrustCenterDocCreators, nil } - return nil, &NotLoadedError{edge: "contacts"} + return nil, &NotLoadedError{edge: "trust_center_doc_creators"} } -// NotesOrErr returns the Notes value or an error if the edge +// TrustCenterEntityCreatorsOrErr returns the TrustCenterEntityCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NotesOrErr() ([]*Note, error) { +func (e OrganizationEdges) TrustCenterEntityCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[54] { - return e.Notes, nil + return e.TrustCenterEntityCreators, nil } - return nil, &NotLoadedError{edge: "notes"} + return nil, &NotLoadedError{edge: "trust_center_entity_creators"} } -// TasksOrErr returns the Tasks value or an error if the edge +// TrustCenterFaqCreatorsOrErr returns the TrustCenterFaqCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TasksOrErr() ([]*Task, error) { +func (e OrganizationEdges) TrustCenterFaqCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[55] { - return e.Tasks, nil + return e.TrustCenterFaqCreators, nil } - return nil, &NotLoadedError{edge: "tasks"} + return nil, &NotLoadedError{edge: "trust_center_faq_creators"} } -// ProgramsOrErr returns the Programs value or an error if the edge +// TrustCenterNdaRequestCreatorsOrErr returns the TrustCenterNdaRequestCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ProgramsOrErr() ([]*Program, error) { +func (e OrganizationEdges) TrustCenterNdaRequestCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[56] { - return e.Programs, nil + return e.TrustCenterNdaRequestCreators, nil } - return nil, &NotLoadedError{edge: "programs"} + return nil, &NotLoadedError{edge: "trust_center_nda_request_creators"} } -// SystemDetailsOrErr returns the SystemDetails value or an error if the edge +// TrustCenterSubprocessorCreatorsOrErr returns the TrustCenterSubprocessorCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SystemDetailsOrErr() ([]*SystemDetail, error) { +func (e OrganizationEdges) TrustCenterSubprocessorCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[57] { - return e.SystemDetails, nil + return e.TrustCenterSubprocessorCreators, nil } - return nil, &NotLoadedError{edge: "system_details"} + return nil, &NotLoadedError{edge: "trust_center_subprocessor_creators"} } -// ProceduresOrErr returns the Procedures value or an error if the edge +// TrustCenterWatermarkConfigCreatorsOrErr returns the TrustCenterWatermarkConfigCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ProceduresOrErr() ([]*Procedure, error) { +func (e OrganizationEdges) TrustCenterWatermarkConfigCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[58] { - return e.Procedures, nil + return e.TrustCenterWatermarkConfigCreators, nil } - return nil, &NotLoadedError{edge: "procedures"} + return nil, &NotLoadedError{edge: "trust_center_watermark_config_creators"} } -// InternalPoliciesOrErr returns the InternalPolicies value or an error if the edge +// UserCreatorsOrErr returns the UserCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) InternalPoliciesOrErr() ([]*InternalPolicy, error) { +func (e OrganizationEdges) UserCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[59] { - return e.InternalPolicies, nil + return e.UserCreators, nil } - return nil, &NotLoadedError{edge: "internal_policies"} + return nil, &NotLoadedError{edge: "user_creators"} } -// RisksOrErr returns the Risks value or an error if the edge +// UserSettingCreatorsOrErr returns the UserSettingCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) RisksOrErr() ([]*Risk, error) { +func (e OrganizationEdges) UserSettingCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[60] { - return e.Risks, nil + return e.UserSettingCreators, nil } - return nil, &NotLoadedError{edge: "risks"} + return nil, &NotLoadedError{edge: "user_setting_creators"} } -// ControlObjectivesOrErr returns the ControlObjectives value or an error if the edge +// VendorRiskScoreCreatorsOrErr returns the VendorRiskScoreCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlObjectivesOrErr() ([]*ControlObjective, error) { +func (e OrganizationEdges) VendorRiskScoreCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[61] { - return e.ControlObjectives, nil + return e.VendorRiskScoreCreators, nil } - return nil, &NotLoadedError{edge: "control_objectives"} + return nil, &NotLoadedError{edge: "vendor_risk_score_creators"} } -// NarrativesOrErr returns the Narratives value or an error if the edge +// VulnerabilityCreatorsOrErr returns the VulnerabilityCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NarrativesOrErr() ([]*Narrative, error) { +func (e OrganizationEdges) VulnerabilityCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[62] { - return e.Narratives, nil + return e.VulnerabilityCreators, nil } - return nil, &NotLoadedError{edge: "narratives"} + return nil, &NotLoadedError{edge: "vulnerability_creators"} } -// ControlsOrErr returns the Controls value or an error if the edge +// WorkflowAssignmentCreatorsOrErr returns the WorkflowAssignmentCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlsOrErr() ([]*Control, error) { +func (e OrganizationEdges) WorkflowAssignmentCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[63] { - return e.Controls, nil + return e.WorkflowAssignmentCreators, nil } - return nil, &NotLoadedError{edge: "controls"} + return nil, &NotLoadedError{edge: "workflow_assignment_creators"} } -// SubcontrolsOrErr returns the Subcontrols value or an error if the edge +// WorkflowAssignmentTargetCreatorsOrErr returns the WorkflowAssignmentTargetCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { +func (e OrganizationEdges) WorkflowAssignmentTargetCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[64] { - return e.Subcontrols, nil + return e.WorkflowAssignmentTargetCreators, nil } - return nil, &NotLoadedError{edge: "subcontrols"} + return nil, &NotLoadedError{edge: "workflow_assignment_target_creators"} } -// ControlImplementationsOrErr returns the ControlImplementations value or an error if the edge +// WorkflowDefinitionCreatorsOrErr returns the WorkflowDefinitionCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ControlImplementationsOrErr() ([]*ControlImplementation, error) { +func (e OrganizationEdges) WorkflowDefinitionCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[65] { - return e.ControlImplementations, nil + return e.WorkflowDefinitionCreators, nil } - return nil, &NotLoadedError{edge: "control_implementations"} + return nil, &NotLoadedError{edge: "workflow_definition_creators"} } -// MappedControlsOrErr returns the MappedControls value or an error if the edge +// WorkflowEventCreatorsOrErr returns the WorkflowEventCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) MappedControlsOrErr() ([]*MappedControl, error) { +func (e OrganizationEdges) WorkflowEventCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[66] { - return e.MappedControls, nil + return e.WorkflowEventCreators, nil } - return nil, &NotLoadedError{edge: "mapped_controls"} + return nil, &NotLoadedError{edge: "workflow_event_creators"} } -// EvidenceOrErr returns the Evidence value or an error if the edge +// WorkflowInstanceCreatorsOrErr returns the WorkflowInstanceCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) EvidenceOrErr() ([]*Evidence, error) { +func (e OrganizationEdges) WorkflowInstanceCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[67] { - return e.Evidence, nil + return e.WorkflowInstanceCreators, nil } - return nil, &NotLoadedError{edge: "evidence"} + return nil, &NotLoadedError{edge: "workflow_instance_creators"} } -// StandardsOrErr returns the Standards value or an error if the edge +// WorkflowObjectRefCreatorsOrErr returns the WorkflowObjectRefCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) StandardsOrErr() ([]*Standard, error) { +func (e OrganizationEdges) WorkflowObjectRefCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[68] { - return e.Standards, nil + return e.WorkflowObjectRefCreators, nil } - return nil, &NotLoadedError{edge: "standards"} + return nil, &NotLoadedError{edge: "workflow_object_ref_creators"} } -// ActionPlansOrErr returns the ActionPlans value or an error if the edge +// WorkflowProposalCreatorsOrErr returns the WorkflowProposalCreators value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ActionPlansOrErr() ([]*ActionPlan, error) { +func (e OrganizationEdges) WorkflowProposalCreatorsOrErr() ([]*Group, error) { if e.loadedTypes[69] { - return e.ActionPlans, nil + return e.WorkflowProposalCreators, nil } - return nil, &NotLoadedError{edge: "action_plans"} + return nil, &NotLoadedError{edge: "workflow_proposal_creators"} } -// CustomDomainsOrErr returns the CustomDomains value or an error if the edge +// CampaignsManagerOrErr returns the CampaignsManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) CustomDomainsOrErr() ([]*CustomDomain, error) { +func (e OrganizationEdges) CampaignsManagerOrErr() ([]*Group, error) { if e.loadedTypes[70] { - return e.CustomDomains, nil + return e.CampaignsManager, nil } - return nil, &NotLoadedError{edge: "custom_domains"} + return nil, &NotLoadedError{edge: "campaigns_manager"} } -// JobRunnersOrErr returns the JobRunners value or an error if the edge +// ComplianceManagerOrErr returns the ComplianceManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) JobRunnersOrErr() ([]*JobRunner, error) { +func (e OrganizationEdges) ComplianceManagerOrErr() ([]*Group, error) { if e.loadedTypes[71] { - return e.JobRunners, nil + return e.ComplianceManager, nil } - return nil, &NotLoadedError{edge: "job_runners"} + return nil, &NotLoadedError{edge: "compliance_manager"} } -// JobRunnerTokensOrErr returns the JobRunnerTokens value or an error if the edge +// GroupManagerOrErr returns the GroupManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) JobRunnerTokensOrErr() ([]*JobRunnerToken, error) { +func (e OrganizationEdges) GroupManagerOrErr() ([]*Group, error) { if e.loadedTypes[72] { - return e.JobRunnerTokens, nil + return e.GroupManager, nil } - return nil, &NotLoadedError{edge: "job_runner_tokens"} + return nil, &NotLoadedError{edge: "group_manager"} } -// JobRunnerRegistrationTokensOrErr returns the JobRunnerRegistrationTokens value or an error if the edge +// PoliciesManagerOrErr returns the PoliciesManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) JobRunnerRegistrationTokensOrErr() ([]*JobRunnerRegistrationToken, error) { +func (e OrganizationEdges) PoliciesManagerOrErr() ([]*Group, error) { if e.loadedTypes[73] { - return e.JobRunnerRegistrationTokens, nil + return e.PoliciesManager, nil } - return nil, &NotLoadedError{edge: "job_runner_registration_tokens"} + return nil, &NotLoadedError{edge: "policies_manager"} } -// DNSVerificationsOrErr returns the DNSVerifications value or an error if the edge +// RegistryManagerOrErr returns the RegistryManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DNSVerificationsOrErr() ([]*DNSVerification, error) { +func (e OrganizationEdges) RegistryManagerOrErr() ([]*Group, error) { if e.loadedTypes[74] { - return e.DNSVerifications, nil + return e.RegistryManager, nil } - return nil, &NotLoadedError{edge: "dns_verifications"} + return nil, &NotLoadedError{edge: "registry_manager"} } -// JobTemplatesOrErr returns the JobTemplates value or an error if the edge +// RiskManagerOrErr returns the RiskManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) JobTemplatesOrErr() ([]*JobTemplate, error) { +func (e OrganizationEdges) RiskManagerOrErr() ([]*Group, error) { if e.loadedTypes[75] { - return e.JobTemplates, nil + return e.RiskManager, nil } - return nil, &NotLoadedError{edge: "job_templates"} + return nil, &NotLoadedError{edge: "risk_manager"} } -// ScheduledJobsOrErr returns the ScheduledJobs value or an error if the edge +// TrustCenterManagerOrErr returns the TrustCenterManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ScheduledJobsOrErr() ([]*ScheduledJob, error) { +func (e OrganizationEdges) TrustCenterManagerOrErr() ([]*Group, error) { if e.loadedTypes[76] { - return e.ScheduledJobs, nil + return e.TrustCenterManager, nil } - return nil, &NotLoadedError{edge: "scheduled_jobs"} + return nil, &NotLoadedError{edge: "trust_center_manager"} } -// JobResultsOrErr returns the JobResults value or an error if the edge +// WorkflowsManagerOrErr returns the WorkflowsManager value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) JobResultsOrErr() ([]*JobResult, error) { +func (e OrganizationEdges) WorkflowsManagerOrErr() ([]*Group, error) { if e.loadedTypes[77] { - return e.JobResults, nil + return e.WorkflowsManager, nil } - return nil, &NotLoadedError{edge: "job_results"} + return nil, &NotLoadedError{edge: "workflows_manager"} } -// ScheduledJobRunsOrErr returns the ScheduledJobRuns value or an error if the edge -// was not loaded in eager-loading. -func (e OrganizationEdges) ScheduledJobRunsOrErr() ([]*ScheduledJobRun, error) { - if e.loadedTypes[78] { - return e.ScheduledJobRuns, nil +// ParentOrErr returns the Parent value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e OrganizationEdges) ParentOrErr() (*Organization, error) { + if e.Parent != nil { + return e.Parent, nil + } else if e.loadedTypes[78] { + return nil, &NotFoundError{label: organization.Label} } - return nil, &NotLoadedError{edge: "scheduled_job_runs"} + return nil, &NotLoadedError{edge: "parent"} } -// TrustCentersOrErr returns the TrustCenters value or an error if the edge +// ChildrenOrErr returns the Children value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TrustCentersOrErr() ([]*TrustCenter, error) { +func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error) { if e.loadedTypes[79] { - return e.TrustCenters, nil + return e.Children, nil } - return nil, &NotLoadedError{edge: "trust_centers"} + return nil, &NotLoadedError{edge: "children"} } -// AssetsOrErr returns the Assets value or an error if the edge -// was not loaded in eager-loading. -func (e OrganizationEdges) AssetsOrErr() ([]*Asset, error) { - if e.loadedTypes[80] { - return e.Assets, nil +// SettingOrErr returns the Setting value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error) { + if e.Setting != nil { + return e.Setting, nil + } else if e.loadedTypes[80] { + return nil, &NotFoundError{label: organizationsetting.Label} } - return nil, &NotLoadedError{edge: "assets"} + return nil, &NotLoadedError{edge: "setting"} } -// ScansOrErr returns the Scans value or an error if the edge +// PersonalAccessTokensOrErr returns the PersonalAccessTokens value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ScansOrErr() ([]*Scan, error) { +func (e OrganizationEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error) { if e.loadedTypes[81] { - return e.Scans, nil + return e.PersonalAccessTokens, nil } - return nil, &NotLoadedError{edge: "scans"} + return nil, &NotLoadedError{edge: "personal_access_tokens"} } -// SLADefinitionsOrErr returns the SLADefinitions value or an error if the edge +// APITokensOrErr returns the APITokens value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SLADefinitionsOrErr() ([]*SLADefinition, error) { +func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error) { if e.loadedTypes[82] { - return e.SLADefinitions, nil + return e.APITokens, nil } - return nil, &NotLoadedError{edge: "sla_definitions"} + return nil, &NotLoadedError{edge: "api_tokens"} } -// SubprocessorsOrErr returns the Subprocessors value or an error if the edge +// EmailTemplatesOrErr returns the EmailTemplates value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) SubprocessorsOrErr() ([]*Subprocessor, error) { +func (e OrganizationEdges) EmailTemplatesOrErr() ([]*EmailTemplate, error) { if e.loadedTypes[83] { - return e.Subprocessors, nil + return e.EmailTemplates, nil } - return nil, &NotLoadedError{edge: "subprocessors"} + return nil, &NotLoadedError{edge: "email_templates"} } -// ExportsOrErr returns the Exports value or an error if the edge +// IntegrationWebhooksOrErr returns the IntegrationWebhooks value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ExportsOrErr() ([]*Export, error) { +func (e OrganizationEdges) IntegrationWebhooksOrErr() ([]*IntegrationWebhook, error) { if e.loadedTypes[84] { - return e.Exports, nil + return e.IntegrationWebhooks, nil } - return nil, &NotLoadedError{edge: "exports"} + return nil, &NotLoadedError{edge: "integration_webhooks"} } -// TrustCenterWatermarkConfigsOrErr returns the TrustCenterWatermarkConfigs value or an error if the edge +// IntegrationRunsOrErr returns the IntegrationRuns value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TrustCenterWatermarkConfigsOrErr() ([]*TrustCenterWatermarkConfig, error) { +func (e OrganizationEdges) IntegrationRunsOrErr() ([]*IntegrationRun, error) { if e.loadedTypes[85] { - return e.TrustCenterWatermarkConfigs, nil + return e.IntegrationRuns, nil } - return nil, &NotLoadedError{edge: "trust_center_watermark_configs"} + return nil, &NotLoadedError{edge: "integration_runs"} } -// ImpersonationEventsOrErr returns the ImpersonationEvents value or an error if the edge +// NotificationPreferencesOrErr returns the NotificationPreferences value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ImpersonationEventsOrErr() ([]*ImpersonationEvent, error) { +func (e OrganizationEdges) NotificationPreferencesOrErr() ([]*NotificationPreference, error) { if e.loadedTypes[86] { - return e.ImpersonationEvents, nil + return e.NotificationPreferences, nil } - return nil, &NotLoadedError{edge: "impersonation_events"} + return nil, &NotLoadedError{edge: "notification_preferences"} } -// AssessmentsOrErr returns the Assessments value or an error if the edge +// NotificationTemplatesOrErr returns the NotificationTemplates value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) AssessmentsOrErr() ([]*Assessment, error) { +func (e OrganizationEdges) NotificationTemplatesOrErr() ([]*NotificationTemplate, error) { if e.loadedTypes[87] { - return e.Assessments, nil + return e.NotificationTemplates, nil } - return nil, &NotLoadedError{edge: "assessments"} + return nil, &NotLoadedError{edge: "notification_templates"} } -// AssessmentResponsesOrErr returns the AssessmentResponses value or an error if the edge +// UsersOrErr returns the Users value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) AssessmentResponsesOrErr() ([]*AssessmentResponse, error) { +func (e OrganizationEdges) UsersOrErr() ([]*User, error) { if e.loadedTypes[88] { - return e.AssessmentResponses, nil + return e.Users, nil } - return nil, &NotLoadedError{edge: "assessment_responses"} + return nil, &NotLoadedError{edge: "users"} } -// CustomTypeEnumsOrErr returns the CustomTypeEnums value or an error if the edge +// FilesOrErr returns the Files value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) CustomTypeEnumsOrErr() ([]*CustomTypeEnum, error) { +func (e OrganizationEdges) FilesOrErr() ([]*File, error) { if e.loadedTypes[89] { - return e.CustomTypeEnums, nil + return e.Files, nil } - return nil, &NotLoadedError{edge: "custom_type_enums"} + return nil, &NotLoadedError{edge: "files"} } -// TagDefinitionsOrErr returns the TagDefinitions value or an error if the edge +// EventsOrErr returns the Events value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) TagDefinitionsOrErr() ([]*TagDefinition, error) { +func (e OrganizationEdges) EventsOrErr() ([]*Event, error) { if e.loadedTypes[90] { - return e.TagDefinitions, nil + return e.Events, nil } - return nil, &NotLoadedError{edge: "tag_definitions"} + return nil, &NotLoadedError{edge: "events"} } -// RemediationsOrErr returns the Remediations value or an error if the edge +// SecretsOrErr returns the Secrets value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) RemediationsOrErr() ([]*Remediation, error) { +func (e OrganizationEdges) SecretsOrErr() ([]*Hush, error) { if e.loadedTypes[91] { - return e.Remediations, nil + return e.Secrets, nil } - return nil, &NotLoadedError{edge: "remediations"} + return nil, &NotLoadedError{edge: "secrets"} } -// FindingsOrErr returns the Findings value or an error if the edge -// was not loaded in eager-loading. -func (e OrganizationEdges) FindingsOrErr() ([]*Finding, error) { - if e.loadedTypes[92] { - return e.Findings, nil +// AvatarFileOrErr returns the AvatarFile value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e OrganizationEdges) AvatarFileOrErr() (*File, error) { + if e.AvatarFile != nil { + return e.AvatarFile, nil + } else if e.loadedTypes[92] { + return nil, &NotFoundError{label: file.Label} } - return nil, &NotLoadedError{edge: "findings"} + return nil, &NotLoadedError{edge: "avatar_file"} } -// ReviewsOrErr returns the Reviews value or an error if the edge +// GroupsOrErr returns the Groups value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) ReviewsOrErr() ([]*Review, error) { +func (e OrganizationEdges) GroupsOrErr() ([]*Group, error) { if e.loadedTypes[93] { - return e.Reviews, nil + return e.Groups, nil } - return nil, &NotLoadedError{edge: "reviews"} + return nil, &NotLoadedError{edge: "groups"} } -// VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge +// TemplatesOrErr returns the Templates value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) VulnerabilitiesOrErr() ([]*Vulnerability, error) { +func (e OrganizationEdges) TemplatesOrErr() ([]*Template, error) { if e.loadedTypes[94] { - return e.Vulnerabilities, nil + return e.Templates, nil } - return nil, &NotLoadedError{edge: "vulnerabilities"} + return nil, &NotLoadedError{edge: "templates"} } -// NotificationsOrErr returns the Notifications value or an error if the edge +// IntegrationsOrErr returns the Integrations value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) NotificationsOrErr() ([]*Notification, error) { +func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error) { if e.loadedTypes[95] { - return e.Notifications, nil + return e.Integrations, nil } - return nil, &NotLoadedError{edge: "notifications"} + return nil, &NotLoadedError{edge: "integrations"} } -// WorkflowDefinitionsOrErr returns the WorkflowDefinitions value or an error if the edge +// DocumentsOrErr returns the Documents value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowDefinitionsOrErr() ([]*WorkflowDefinition, error) { +func (e OrganizationEdges) DocumentsOrErr() ([]*DocumentData, error) { if e.loadedTypes[96] { - return e.WorkflowDefinitions, nil + return e.Documents, nil } - return nil, &NotLoadedError{edge: "workflow_definitions"} + return nil, &NotLoadedError{edge: "documents"} } -// WorkflowInstancesOrErr returns the WorkflowInstances value or an error if the edge +// OrgSubscriptionsOrErr returns the OrgSubscriptions value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowInstancesOrErr() ([]*WorkflowInstance, error) { +func (e OrganizationEdges) OrgSubscriptionsOrErr() ([]*OrgSubscription, error) { if e.loadedTypes[97] { - return e.WorkflowInstances, nil + return e.OrgSubscriptions, nil } - return nil, &NotLoadedError{edge: "workflow_instances"} + return nil, &NotLoadedError{edge: "org_subscriptions"} } -// WorkflowEventsOrErr returns the WorkflowEvents value or an error if the edge +// OrgProductsOrErr returns the OrgProducts value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowEventsOrErr() ([]*WorkflowEvent, error) { +func (e OrganizationEdges) OrgProductsOrErr() ([]*OrgProduct, error) { if e.loadedTypes[98] { - return e.WorkflowEvents, nil + return e.OrgProducts, nil } - return nil, &NotLoadedError{edge: "workflow_events"} + return nil, &NotLoadedError{edge: "org_products"} } -// WorkflowAssignmentsOrErr returns the WorkflowAssignments value or an error if the edge +// OrgPricesOrErr returns the OrgPrices value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowAssignmentsOrErr() ([]*WorkflowAssignment, error) { +func (e OrganizationEdges) OrgPricesOrErr() ([]*OrgPrice, error) { if e.loadedTypes[99] { - return e.WorkflowAssignments, nil + return e.OrgPrices, nil } - return nil, &NotLoadedError{edge: "workflow_assignments"} + return nil, &NotLoadedError{edge: "org_prices"} } -// WorkflowAssignmentTargetsOrErr returns the WorkflowAssignmentTargets value or an error if the edge +// OrgModulesOrErr returns the OrgModules value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowAssignmentTargetsOrErr() ([]*WorkflowAssignmentTarget, error) { +func (e OrganizationEdges) OrgModulesOrErr() ([]*OrgModule, error) { if e.loadedTypes[100] { - return e.WorkflowAssignmentTargets, nil + return e.OrgModules, nil } - return nil, &NotLoadedError{edge: "workflow_assignment_targets"} + return nil, &NotLoadedError{edge: "org_modules"} } -// WorkflowObjectRefsOrErr returns the WorkflowObjectRefs value or an error if the edge +// InvitesOrErr returns the Invites value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, error) { +func (e OrganizationEdges) InvitesOrErr() ([]*Invite, error) { if e.loadedTypes[101] { - return e.WorkflowObjectRefs, nil + return e.Invites, nil } - return nil, &NotLoadedError{edge: "workflow_object_refs"} + return nil, &NotLoadedError{edge: "invites"} } -// WorkflowProposalsOrErr returns the WorkflowProposals value or an error if the edge +// SubscribersOrErr returns the Subscribers value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) WorkflowProposalsOrErr() ([]*WorkflowProposal, error) { +func (e OrganizationEdges) SubscribersOrErr() ([]*Subscriber, error) { if e.loadedTypes[102] { - return e.WorkflowProposals, nil + return e.Subscribers, nil } - return nil, &NotLoadedError{edge: "workflow_proposals"} + return nil, &NotLoadedError{edge: "subscribers"} } -// DirectoryAccountsOrErr returns the DirectoryAccounts value or an error if the edge +// EntitiesOrErr returns the Entities value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DirectoryAccountsOrErr() ([]*DirectoryAccount, error) { +func (e OrganizationEdges) EntitiesOrErr() ([]*Entity, error) { if e.loadedTypes[103] { - return e.DirectoryAccounts, nil + return e.Entities, nil } - return nil, &NotLoadedError{edge: "directory_accounts"} + return nil, &NotLoadedError{edge: "entities"} } -// DirectoryGroupsOrErr returns the DirectoryGroups value or an error if the edge +// PlatformsOrErr returns the Platforms value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DirectoryGroupsOrErr() ([]*DirectoryGroup, error) { +func (e OrganizationEdges) PlatformsOrErr() ([]*Platform, error) { if e.loadedTypes[104] { - return e.DirectoryGroups, nil + return e.Platforms, nil } - return nil, &NotLoadedError{edge: "directory_groups"} + return nil, &NotLoadedError{edge: "platforms"} } -// DirectoryMembershipsOrErr returns the DirectoryMemberships value or an error if the edge +// IdentityHoldersOrErr returns the IdentityHolders value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DirectoryMembershipsOrErr() ([]*DirectoryMembership, error) { +func (e OrganizationEdges) IdentityHoldersOrErr() ([]*IdentityHolder, error) { if e.loadedTypes[105] { - return e.DirectoryMemberships, nil + return e.IdentityHolders, nil } - return nil, &NotLoadedError{edge: "directory_memberships"} + return nil, &NotLoadedError{edge: "identity_holders"} } -// DirectorySyncRunsOrErr returns the DirectorySyncRuns value or an error if the edge +// CampaignsOrErr returns the Campaigns value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DirectorySyncRunsOrErr() ([]*DirectorySyncRun, error) { +func (e OrganizationEdges) CampaignsOrErr() ([]*Campaign, error) { if e.loadedTypes[106] { - return e.DirectorySyncRuns, nil + return e.Campaigns, nil } - return nil, &NotLoadedError{edge: "directory_sync_runs"} + return nil, &NotLoadedError{edge: "campaigns"} } -// DiscussionsOrErr returns the Discussions value or an error if the edge +// CampaignTargetsOrErr returns the CampaignTargets value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) DiscussionsOrErr() ([]*Discussion, error) { +func (e OrganizationEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { if e.loadedTypes[107] { - return e.Discussions, nil + return e.CampaignTargets, nil } - return nil, &NotLoadedError{edge: "discussions"} + return nil, &NotLoadedError{edge: "campaign_targets"} } -// VendorScoringConfigsOrErr returns the VendorScoringConfigs value or an error if the edge +// EntityTypesOrErr returns the EntityTypes value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) VendorScoringConfigsOrErr() ([]*VendorScoringConfig, error) { +func (e OrganizationEdges) EntityTypesOrErr() ([]*EntityType, error) { if e.loadedTypes[108] { - return e.VendorScoringConfigs, nil + return e.EntityTypes, nil } - return nil, &NotLoadedError{edge: "vendor_scoring_configs"} + return nil, &NotLoadedError{edge: "entity_types"} } -// VendorRiskScoresOrErr returns the VendorRiskScores value or an error if the edge +// ContactsOrErr returns the Contacts value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) VendorRiskScoresOrErr() ([]*VendorRiskScore, error) { +func (e OrganizationEdges) ContactsOrErr() ([]*Contact, error) { if e.loadedTypes[109] { - return e.VendorRiskScores, nil + return e.Contacts, nil } - return nil, &NotLoadedError{edge: "vendor_risk_scores"} + return nil, &NotLoadedError{edge: "contacts"} } -// MembersOrErr returns the Members value or an error if the edge +// NotesOrErr returns the Notes value or an error if the edge // was not loaded in eager-loading. -func (e OrganizationEdges) MembersOrErr() ([]*OrgMembership, error) { +func (e OrganizationEdges) NotesOrErr() ([]*Note, error) { if e.loadedTypes[110] { - return e.Members, nil + return e.Notes, nil } - return nil, &NotLoadedError{edge: "members"} + return nil, &NotLoadedError{edge: "notes"} } -// scanValues returns the types for scanning values from sql.Rows. -func (*Organization) scanValues(columns []string) ([]any, error) { - values := make([]any, len(columns)) - for i := range columns { - switch columns[i] { - case organization.FieldTags: - values[i] = new([]byte) - case organization.FieldPersonalOrg, organization.FieldDedicatedDb: - values[i] = new(sql.NullBool) - case organization.FieldID, organization.FieldCreatedBy, organization.FieldUpdatedBy, organization.FieldDeletedBy, organization.FieldName, organization.FieldDisplayName, organization.FieldDescription, organization.FieldParentOrganizationID, organization.FieldAvatarRemoteURL, organization.FieldAvatarLocalFileID, organization.FieldStripeCustomerID: - values[i] = new(sql.NullString) - case organization.FieldCreatedAt, organization.FieldUpdatedAt, organization.FieldDeletedAt, organization.FieldAvatarUpdatedAt: - values[i] = new(sql.NullTime) - default: - values[i] = new(sql.UnknownType) - } +// TasksOrErr returns the Tasks value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) TasksOrErr() ([]*Task, error) { + if e.loadedTypes[111] { + return e.Tasks, nil } - return values, nil + return nil, &NotLoadedError{edge: "tasks"} } -// assignValues assigns the values that were returned from sql.Rows (after scanning) -// to the Organization fields. -func (_m *Organization) assignValues(columns []string, values []any) error { - if m, n := len(values), len(columns); m < n { - return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) +// ProgramsOrErr returns the Programs value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ProgramsOrErr() ([]*Program, error) { + if e.loadedTypes[112] { + return e.Programs, nil } - for i := range columns { - switch columns[i] { - case organization.FieldID: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field id", values[i]) - } else if value.Valid { - _m.ID = value.String - } - case organization.FieldCreatedAt: - if value, ok := values[i].(*sql.NullTime); !ok { - return fmt.Errorf("unexpected type %T for field created_at", values[i]) - } else if value.Valid { - _m.CreatedAt = value.Time - } - case organization.FieldUpdatedAt: - if value, ok := values[i].(*sql.NullTime); !ok { - return fmt.Errorf("unexpected type %T for field updated_at", values[i]) - } else if value.Valid { - _m.UpdatedAt = value.Time - } - case organization.FieldCreatedBy: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field created_by", values[i]) - } else if value.Valid { - _m.CreatedBy = value.String - } - case organization.FieldUpdatedBy: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field updated_by", values[i]) - } else if value.Valid { - _m.UpdatedBy = value.String - } - case organization.FieldDeletedAt: - if value, ok := values[i].(*sql.NullTime); !ok { - return fmt.Errorf("unexpected type %T for field deleted_at", values[i]) - } else if value.Valid { - _m.DeletedAt = value.Time - } - case organization.FieldDeletedBy: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field deleted_by", values[i]) - } else if value.Valid { - _m.DeletedBy = value.String - } - case organization.FieldTags: - if value, ok := values[i].(*[]byte); !ok { - return fmt.Errorf("unexpected type %T for field tags", values[i]) - } else if value != nil && len(*value) > 0 { - if err := json.Unmarshal(*value, &_m.Tags); err != nil { - return fmt.Errorf("unmarshal field tags: %w", err) - } - } - case organization.FieldName: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field name", values[i]) - } else if value.Valid { - _m.Name = value.String - } - case organization.FieldDisplayName: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field display_name", values[i]) - } else if value.Valid { - _m.DisplayName = value.String - } - case organization.FieldDescription: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field description", values[i]) - } else if value.Valid { - _m.Description = value.String - } - case organization.FieldParentOrganizationID: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field parent_organization_id", values[i]) - } else if value.Valid { - _m.ParentOrganizationID = value.String - } - case organization.FieldPersonalOrg: - if value, ok := values[i].(*sql.NullBool); !ok { - return fmt.Errorf("unexpected type %T for field personal_org", values[i]) - } else if value.Valid { - _m.PersonalOrg = value.Bool - } - case organization.FieldAvatarRemoteURL: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field avatar_remote_url", values[i]) - } else if value.Valid { - _m.AvatarRemoteURL = new(string) - *_m.AvatarRemoteURL = value.String - } - case organization.FieldAvatarLocalFileID: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field avatar_local_file_id", values[i]) - } else if value.Valid { - _m.AvatarLocalFileID = new(string) - *_m.AvatarLocalFileID = value.String - } - case organization.FieldAvatarUpdatedAt: - if value, ok := values[i].(*sql.NullTime); !ok { - return fmt.Errorf("unexpected type %T for field avatar_updated_at", values[i]) - } else if value.Valid { - _m.AvatarUpdatedAt = new(time.Time) - *_m.AvatarUpdatedAt = value.Time - } - case organization.FieldDedicatedDb: - if value, ok := values[i].(*sql.NullBool); !ok { - return fmt.Errorf("unexpected type %T for field dedicated_db", values[i]) - } else if value.Valid { - _m.DedicatedDb = value.Bool - } - case organization.FieldStripeCustomerID: - if value, ok := values[i].(*sql.NullString); !ok { - return fmt.Errorf("unexpected type %T for field stripe_customer_id", values[i]) - } else if value.Valid { - _m.StripeCustomerID = new(string) - *_m.StripeCustomerID = value.String - } - default: - _m.selectValues.Set(columns[i], values[i]) - } + return nil, &NotLoadedError{edge: "programs"} +} + +// SystemDetailsOrErr returns the SystemDetails value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) SystemDetailsOrErr() ([]*SystemDetail, error) { + if e.loadedTypes[113] { + return e.SystemDetails, nil } - return nil + return nil, &NotLoadedError{edge: "system_details"} +} + +// ProceduresOrErr returns the Procedures value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ProceduresOrErr() ([]*Procedure, error) { + if e.loadedTypes[114] { + return e.Procedures, nil + } + return nil, &NotLoadedError{edge: "procedures"} +} + +// InternalPoliciesOrErr returns the InternalPolicies value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) InternalPoliciesOrErr() ([]*InternalPolicy, error) { + if e.loadedTypes[115] { + return e.InternalPolicies, nil + } + return nil, &NotLoadedError{edge: "internal_policies"} +} + +// RisksOrErr returns the Risks value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) RisksOrErr() ([]*Risk, error) { + if e.loadedTypes[116] { + return e.Risks, nil + } + return nil, &NotLoadedError{edge: "risks"} +} + +// ControlObjectivesOrErr returns the ControlObjectives value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ControlObjectivesOrErr() ([]*ControlObjective, error) { + if e.loadedTypes[117] { + return e.ControlObjectives, nil + } + return nil, &NotLoadedError{edge: "control_objectives"} +} + +// NarrativesOrErr returns the Narratives value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) NarrativesOrErr() ([]*Narrative, error) { + if e.loadedTypes[118] { + return e.Narratives, nil + } + return nil, &NotLoadedError{edge: "narratives"} +} + +// ControlsOrErr returns the Controls value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ControlsOrErr() ([]*Control, error) { + if e.loadedTypes[119] { + return e.Controls, nil + } + return nil, &NotLoadedError{edge: "controls"} +} + +// SubcontrolsOrErr returns the Subcontrols value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { + if e.loadedTypes[120] { + return e.Subcontrols, nil + } + return nil, &NotLoadedError{edge: "subcontrols"} +} + +// ControlImplementationsOrErr returns the ControlImplementations value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ControlImplementationsOrErr() ([]*ControlImplementation, error) { + if e.loadedTypes[121] { + return e.ControlImplementations, nil + } + return nil, &NotLoadedError{edge: "control_implementations"} +} + +// MappedControlsOrErr returns the MappedControls value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) MappedControlsOrErr() ([]*MappedControl, error) { + if e.loadedTypes[122] { + return e.MappedControls, nil + } + return nil, &NotLoadedError{edge: "mapped_controls"} +} + +// EvidenceOrErr returns the Evidence value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) EvidenceOrErr() ([]*Evidence, error) { + if e.loadedTypes[123] { + return e.Evidence, nil + } + return nil, &NotLoadedError{edge: "evidence"} +} + +// StandardsOrErr returns the Standards value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) StandardsOrErr() ([]*Standard, error) { + if e.loadedTypes[124] { + return e.Standards, nil + } + return nil, &NotLoadedError{edge: "standards"} +} + +// ActionPlansOrErr returns the ActionPlans value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ActionPlansOrErr() ([]*ActionPlan, error) { + if e.loadedTypes[125] { + return e.ActionPlans, nil + } + return nil, &NotLoadedError{edge: "action_plans"} +} + +// CustomDomainsOrErr returns the CustomDomains value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) CustomDomainsOrErr() ([]*CustomDomain, error) { + if e.loadedTypes[126] { + return e.CustomDomains, nil + } + return nil, &NotLoadedError{edge: "custom_domains"} +} + +// JobRunnersOrErr returns the JobRunners value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) JobRunnersOrErr() ([]*JobRunner, error) { + if e.loadedTypes[127] { + return e.JobRunners, nil + } + return nil, &NotLoadedError{edge: "job_runners"} +} + +// JobRunnerTokensOrErr returns the JobRunnerTokens value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) JobRunnerTokensOrErr() ([]*JobRunnerToken, error) { + if e.loadedTypes[128] { + return e.JobRunnerTokens, nil + } + return nil, &NotLoadedError{edge: "job_runner_tokens"} +} + +// JobRunnerRegistrationTokensOrErr returns the JobRunnerRegistrationTokens value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) JobRunnerRegistrationTokensOrErr() ([]*JobRunnerRegistrationToken, error) { + if e.loadedTypes[129] { + return e.JobRunnerRegistrationTokens, nil + } + return nil, &NotLoadedError{edge: "job_runner_registration_tokens"} +} + +// DNSVerificationsOrErr returns the DNSVerifications value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DNSVerificationsOrErr() ([]*DNSVerification, error) { + if e.loadedTypes[130] { + return e.DNSVerifications, nil + } + return nil, &NotLoadedError{edge: "dns_verifications"} +} + +// JobTemplatesOrErr returns the JobTemplates value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) JobTemplatesOrErr() ([]*JobTemplate, error) { + if e.loadedTypes[131] { + return e.JobTemplates, nil + } + return nil, &NotLoadedError{edge: "job_templates"} +} + +// ScheduledJobsOrErr returns the ScheduledJobs value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ScheduledJobsOrErr() ([]*ScheduledJob, error) { + if e.loadedTypes[132] { + return e.ScheduledJobs, nil + } + return nil, &NotLoadedError{edge: "scheduled_jobs"} +} + +// JobResultsOrErr returns the JobResults value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) JobResultsOrErr() ([]*JobResult, error) { + if e.loadedTypes[133] { + return e.JobResults, nil + } + return nil, &NotLoadedError{edge: "job_results"} +} + +// ScheduledJobRunsOrErr returns the ScheduledJobRuns value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ScheduledJobRunsOrErr() ([]*ScheduledJobRun, error) { + if e.loadedTypes[134] { + return e.ScheduledJobRuns, nil + } + return nil, &NotLoadedError{edge: "scheduled_job_runs"} +} + +// TrustCentersOrErr returns the TrustCenters value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) TrustCentersOrErr() ([]*TrustCenter, error) { + if e.loadedTypes[135] { + return e.TrustCenters, nil + } + return nil, &NotLoadedError{edge: "trust_centers"} +} + +// AssetsOrErr returns the Assets value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AssetsOrErr() ([]*Asset, error) { + if e.loadedTypes[136] { + return e.Assets, nil + } + return nil, &NotLoadedError{edge: "assets"} +} + +// ScansOrErr returns the Scans value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ScansOrErr() ([]*Scan, error) { + if e.loadedTypes[137] { + return e.Scans, nil + } + return nil, &NotLoadedError{edge: "scans"} +} + +// SLADefinitionsOrErr returns the SLADefinitions value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) SLADefinitionsOrErr() ([]*SLADefinition, error) { + if e.loadedTypes[138] { + return e.SLADefinitions, nil + } + return nil, &NotLoadedError{edge: "sla_definitions"} +} + +// SubprocessorsOrErr returns the Subprocessors value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) SubprocessorsOrErr() ([]*Subprocessor, error) { + if e.loadedTypes[139] { + return e.Subprocessors, nil + } + return nil, &NotLoadedError{edge: "subprocessors"} +} + +// ExportsOrErr returns the Exports value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ExportsOrErr() ([]*Export, error) { + if e.loadedTypes[140] { + return e.Exports, nil + } + return nil, &NotLoadedError{edge: "exports"} +} + +// TrustCenterWatermarkConfigsOrErr returns the TrustCenterWatermarkConfigs value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) TrustCenterWatermarkConfigsOrErr() ([]*TrustCenterWatermarkConfig, error) { + if e.loadedTypes[141] { + return e.TrustCenterWatermarkConfigs, nil + } + return nil, &NotLoadedError{edge: "trust_center_watermark_configs"} +} + +// ImpersonationEventsOrErr returns the ImpersonationEvents value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ImpersonationEventsOrErr() ([]*ImpersonationEvent, error) { + if e.loadedTypes[142] { + return e.ImpersonationEvents, nil + } + return nil, &NotLoadedError{edge: "impersonation_events"} +} + +// AssessmentsOrErr returns the Assessments value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AssessmentsOrErr() ([]*Assessment, error) { + if e.loadedTypes[143] { + return e.Assessments, nil + } + return nil, &NotLoadedError{edge: "assessments"} +} + +// AssessmentResponsesOrErr returns the AssessmentResponses value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AssessmentResponsesOrErr() ([]*AssessmentResponse, error) { + if e.loadedTypes[144] { + return e.AssessmentResponses, nil + } + return nil, &NotLoadedError{edge: "assessment_responses"} +} + +// CustomTypeEnumsOrErr returns the CustomTypeEnums value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) CustomTypeEnumsOrErr() ([]*CustomTypeEnum, error) { + if e.loadedTypes[145] { + return e.CustomTypeEnums, nil + } + return nil, &NotLoadedError{edge: "custom_type_enums"} +} + +// TagDefinitionsOrErr returns the TagDefinitions value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) TagDefinitionsOrErr() ([]*TagDefinition, error) { + if e.loadedTypes[146] { + return e.TagDefinitions, nil + } + return nil, &NotLoadedError{edge: "tag_definitions"} +} + +// RemediationsOrErr returns the Remediations value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) RemediationsOrErr() ([]*Remediation, error) { + if e.loadedTypes[147] { + return e.Remediations, nil + } + return nil, &NotLoadedError{edge: "remediations"} +} + +// FindingsOrErr returns the Findings value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) FindingsOrErr() ([]*Finding, error) { + if e.loadedTypes[148] { + return e.Findings, nil + } + return nil, &NotLoadedError{edge: "findings"} +} + +// ReviewsOrErr returns the Reviews value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) ReviewsOrErr() ([]*Review, error) { + if e.loadedTypes[149] { + return e.Reviews, nil + } + return nil, &NotLoadedError{edge: "reviews"} +} + +// VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) VulnerabilitiesOrErr() ([]*Vulnerability, error) { + if e.loadedTypes[150] { + return e.Vulnerabilities, nil + } + return nil, &NotLoadedError{edge: "vulnerabilities"} +} + +// NotificationsOrErr returns the Notifications value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) NotificationsOrErr() ([]*Notification, error) { + if e.loadedTypes[151] { + return e.Notifications, nil + } + return nil, &NotLoadedError{edge: "notifications"} +} + +// WorkflowDefinitionsOrErr returns the WorkflowDefinitions value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowDefinitionsOrErr() ([]*WorkflowDefinition, error) { + if e.loadedTypes[152] { + return e.WorkflowDefinitions, nil + } + return nil, &NotLoadedError{edge: "workflow_definitions"} +} + +// WorkflowInstancesOrErr returns the WorkflowInstances value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowInstancesOrErr() ([]*WorkflowInstance, error) { + if e.loadedTypes[153] { + return e.WorkflowInstances, nil + } + return nil, &NotLoadedError{edge: "workflow_instances"} +} + +// WorkflowEventsOrErr returns the WorkflowEvents value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowEventsOrErr() ([]*WorkflowEvent, error) { + if e.loadedTypes[154] { + return e.WorkflowEvents, nil + } + return nil, &NotLoadedError{edge: "workflow_events"} +} + +// WorkflowAssignmentsOrErr returns the WorkflowAssignments value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowAssignmentsOrErr() ([]*WorkflowAssignment, error) { + if e.loadedTypes[155] { + return e.WorkflowAssignments, nil + } + return nil, &NotLoadedError{edge: "workflow_assignments"} +} + +// WorkflowAssignmentTargetsOrErr returns the WorkflowAssignmentTargets value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowAssignmentTargetsOrErr() ([]*WorkflowAssignmentTarget, error) { + if e.loadedTypes[156] { + return e.WorkflowAssignmentTargets, nil + } + return nil, &NotLoadedError{edge: "workflow_assignment_targets"} +} + +// WorkflowObjectRefsOrErr returns the WorkflowObjectRefs value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, error) { + if e.loadedTypes[157] { + return e.WorkflowObjectRefs, nil + } + return nil, &NotLoadedError{edge: "workflow_object_refs"} +} + +// WorkflowProposalsOrErr returns the WorkflowProposals value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) WorkflowProposalsOrErr() ([]*WorkflowProposal, error) { + if e.loadedTypes[158] { + return e.WorkflowProposals, nil + } + return nil, &NotLoadedError{edge: "workflow_proposals"} +} + +// DirectoryAccountsOrErr returns the DirectoryAccounts value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DirectoryAccountsOrErr() ([]*DirectoryAccount, error) { + if e.loadedTypes[159] { + return e.DirectoryAccounts, nil + } + return nil, &NotLoadedError{edge: "directory_accounts"} +} + +// DirectoryGroupsOrErr returns the DirectoryGroups value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DirectoryGroupsOrErr() ([]*DirectoryGroup, error) { + if e.loadedTypes[160] { + return e.DirectoryGroups, nil + } + return nil, &NotLoadedError{edge: "directory_groups"} +} + +// DirectoryMembershipsOrErr returns the DirectoryMemberships value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DirectoryMembershipsOrErr() ([]*DirectoryMembership, error) { + if e.loadedTypes[161] { + return e.DirectoryMemberships, nil + } + return nil, &NotLoadedError{edge: "directory_memberships"} +} + +// DirectorySyncRunsOrErr returns the DirectorySyncRuns value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DirectorySyncRunsOrErr() ([]*DirectorySyncRun, error) { + if e.loadedTypes[162] { + return e.DirectorySyncRuns, nil + } + return nil, &NotLoadedError{edge: "directory_sync_runs"} +} + +// DiscussionsOrErr returns the Discussions value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) DiscussionsOrErr() ([]*Discussion, error) { + if e.loadedTypes[163] { + return e.Discussions, nil + } + return nil, &NotLoadedError{edge: "discussions"} +} + +// VendorScoringConfigsOrErr returns the VendorScoringConfigs value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) VendorScoringConfigsOrErr() ([]*VendorScoringConfig, error) { + if e.loadedTypes[164] { + return e.VendorScoringConfigs, nil + } + return nil, &NotLoadedError{edge: "vendor_scoring_configs"} +} + +// VendorRiskScoresOrErr returns the VendorRiskScores value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) VendorRiskScoresOrErr() ([]*VendorRiskScore, error) { + if e.loadedTypes[165] { + return e.VendorRiskScores, nil + } + return nil, &NotLoadedError{edge: "vendor_risk_scores"} +} + +// MembersOrErr returns the Members value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) MembersOrErr() ([]*OrgMembership, error) { + if e.loadedTypes[166] { + return e.Members, nil + } + return nil, &NotLoadedError{edge: "members"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Organization) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case organization.FieldTags: + values[i] = new([]byte) + case organization.FieldPersonalOrg, organization.FieldDedicatedDb: + values[i] = new(sql.NullBool) + case organization.FieldID, organization.FieldCreatedBy, organization.FieldUpdatedBy, organization.FieldDeletedBy, organization.FieldName, organization.FieldDisplayName, organization.FieldDescription, organization.FieldParentOrganizationID, organization.FieldAvatarRemoteURL, organization.FieldAvatarLocalFileID, organization.FieldStripeCustomerID: + values[i] = new(sql.NullString) + case organization.FieldCreatedAt, organization.FieldUpdatedAt, organization.FieldDeletedAt, organization.FieldAvatarUpdatedAt: + values[i] = new(sql.NullTime) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the Organization fields. +func (_m *Organization) assignValues(columns []string, values []any) error { + if m, n := len(values), len(columns); m < n { + return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) + } + for i := range columns { + switch columns[i] { + case organization.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + _m.ID = value.String + } + case organization.FieldCreatedAt: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field created_at", values[i]) + } else if value.Valid { + _m.CreatedAt = value.Time + } + case organization.FieldUpdatedAt: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field updated_at", values[i]) + } else if value.Valid { + _m.UpdatedAt = value.Time + } + case organization.FieldCreatedBy: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field created_by", values[i]) + } else if value.Valid { + _m.CreatedBy = value.String + } + case organization.FieldUpdatedBy: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field updated_by", values[i]) + } else if value.Valid { + _m.UpdatedBy = value.String + } + case organization.FieldDeletedAt: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field deleted_at", values[i]) + } else if value.Valid { + _m.DeletedAt = value.Time + } + case organization.FieldDeletedBy: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field deleted_by", values[i]) + } else if value.Valid { + _m.DeletedBy = value.String + } + case organization.FieldTags: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field tags", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case organization.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + _m.Name = value.String + } + case organization.FieldDisplayName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field display_name", values[i]) + } else if value.Valid { + _m.DisplayName = value.String + } + case organization.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + _m.Description = value.String + } + case organization.FieldParentOrganizationID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field parent_organization_id", values[i]) + } else if value.Valid { + _m.ParentOrganizationID = value.String + } + case organization.FieldPersonalOrg: + if value, ok := values[i].(*sql.NullBool); !ok { + return fmt.Errorf("unexpected type %T for field personal_org", values[i]) + } else if value.Valid { + _m.PersonalOrg = value.Bool + } + case organization.FieldAvatarRemoteURL: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field avatar_remote_url", values[i]) + } else if value.Valid { + _m.AvatarRemoteURL = new(string) + *_m.AvatarRemoteURL = value.String + } + case organization.FieldAvatarLocalFileID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field avatar_local_file_id", values[i]) + } else if value.Valid { + _m.AvatarLocalFileID = new(string) + *_m.AvatarLocalFileID = value.String + } + case organization.FieldAvatarUpdatedAt: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field avatar_updated_at", values[i]) + } else if value.Valid { + _m.AvatarUpdatedAt = new(time.Time) + *_m.AvatarUpdatedAt = value.Time + } + case organization.FieldDedicatedDb: + if value, ok := values[i].(*sql.NullBool); !ok { + return fmt.Errorf("unexpected type %T for field dedicated_db", values[i]) + } else if value.Valid { + _m.DedicatedDb = value.Bool + } + case organization.FieldStripeCustomerID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field stripe_customer_id", values[i]) + } else if value.Valid { + _m.StripeCustomerID = new(string) + *_m.StripeCustomerID = value.String + } + default: + _m.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Organization. +// This includes values selected through modifiers, order, etc. +func (_m *Organization) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) +} + +// QueryActionPlanCreators queries the "action_plan_creators" edge of the Organization entity. +func (_m *Organization) QueryActionPlanCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryActionPlanCreators(_m) +} + +// QueryAPITokenCreators queries the "api_token_creators" edge of the Organization entity. +func (_m *Organization) QueryAPITokenCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryAPITokenCreators(_m) +} + +// QueryAssessmentCreators queries the "assessment_creators" edge of the Organization entity. +func (_m *Organization) QueryAssessmentCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryAssessmentCreators(_m) +} + +// QueryAssetCreators queries the "asset_creators" edge of the Organization entity. +func (_m *Organization) QueryAssetCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryAssetCreators(_m) +} + +// QueryCampaignCreators queries the "campaign_creators" edge of the Organization entity. +func (_m *Organization) QueryCampaignCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryCampaignCreators(_m) +} + +// QueryCampaignTargetCreators queries the "campaign_target_creators" edge of the Organization entity. +func (_m *Organization) QueryCampaignTargetCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryCampaignTargetCreators(_m) +} + +// QueryCheckResultCreators queries the "check_result_creators" edge of the Organization entity. +func (_m *Organization) QueryCheckResultCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryCheckResultCreators(_m) +} + +// QueryContactCreators queries the "contact_creators" edge of the Organization entity. +func (_m *Organization) QueryContactCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryContactCreators(_m) +} + +// QueryControlCreators queries the "control_creators" edge of the Organization entity. +func (_m *Organization) QueryControlCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryControlCreators(_m) +} + +// QueryControlImplementationCreators queries the "control_implementation_creators" edge of the Organization entity. +func (_m *Organization) QueryControlImplementationCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryControlImplementationCreators(_m) +} + +// QueryControlObjectiveCreators queries the "control_objective_creators" edge of the Organization entity. +func (_m *Organization) QueryControlObjectiveCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryControlObjectiveCreators(_m) +} + +// QueryCustomTypeEnumCreators queries the "custom_type_enum_creators" edge of the Organization entity. +func (_m *Organization) QueryCustomTypeEnumCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryCustomTypeEnumCreators(_m) +} + +// QueryDiscussionCreators queries the "discussion_creators" edge of the Organization entity. +func (_m *Organization) QueryDiscussionCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryDiscussionCreators(_m) +} + +// QueryEmailTemplateCreators queries the "email_template_creators" edge of the Organization entity. +func (_m *Organization) QueryEmailTemplateCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryEmailTemplateCreators(_m) +} + +// QueryEntityCreators queries the "entity_creators" edge of the Organization entity. +func (_m *Organization) QueryEntityCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryEntityCreators(_m) +} + +// QueryEntityTypeCreators queries the "entity_type_creators" edge of the Organization entity. +func (_m *Organization) QueryEntityTypeCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryEntityTypeCreators(_m) +} + +// QueryEvidenceCreators queries the "evidence_creators" edge of the Organization entity. +func (_m *Organization) QueryEvidenceCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryEvidenceCreators(_m) +} + +// QueryExportCreators queries the "export_creators" edge of the Organization entity. +func (_m *Organization) QueryExportCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryExportCreators(_m) +} + +// QueryFileCreators queries the "file_creators" edge of the Organization entity. +func (_m *Organization) QueryFileCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryFileCreators(_m) +} + +// QueryFindingCreators queries the "finding_creators" edge of the Organization entity. +func (_m *Organization) QueryFindingCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryFindingCreators(_m) +} + +// QueryGroupCreators queries the "group_creators" edge of the Organization entity. +func (_m *Organization) QueryGroupCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryGroupCreators(_m) +} + +// QueryIdentityHolderCreators queries the "identity_holder_creators" edge of the Organization entity. +func (_m *Organization) QueryIdentityHolderCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryIdentityHolderCreators(_m) +} + +// QueryIntegrationCreators queries the "integration_creators" edge of the Organization entity. +func (_m *Organization) QueryIntegrationCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryIntegrationCreators(_m) +} + +// QueryIntegrationWebhookCreators queries the "integration_webhook_creators" edge of the Organization entity. +func (_m *Organization) QueryIntegrationWebhookCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryIntegrationWebhookCreators(_m) +} + +// QueryInternalPolicyCreators queries the "internal_policy_creators" edge of the Organization entity. +func (_m *Organization) QueryInternalPolicyCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryInternalPolicyCreators(_m) +} + +// QueryJobRunnerCreators queries the "job_runner_creators" edge of the Organization entity. +func (_m *Organization) QueryJobRunnerCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryJobRunnerCreators(_m) +} + +// QueryJobRunnerRegistrationTokenCreators queries the "job_runner_registration_token_creators" edge of the Organization entity. +func (_m *Organization) QueryJobRunnerRegistrationTokenCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryJobRunnerRegistrationTokenCreators(_m) +} + +// QueryJobRunnerTokenCreators queries the "job_runner_token_creators" edge of the Organization entity. +func (_m *Organization) QueryJobRunnerTokenCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryJobRunnerTokenCreators(_m) +} + +// QueryJobTemplateCreators queries the "job_template_creators" edge of the Organization entity. +func (_m *Organization) QueryJobTemplateCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryJobTemplateCreators(_m) +} + +// QueryMappedControlCreators queries the "mapped_control_creators" edge of the Organization entity. +func (_m *Organization) QueryMappedControlCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryMappedControlCreators(_m) +} + +// QueryNarrativeCreators queries the "narrative_creators" edge of the Organization entity. +func (_m *Organization) QueryNarrativeCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryNarrativeCreators(_m) +} + +// QueryNoteCreators queries the "note_creators" edge of the Organization entity. +func (_m *Organization) QueryNoteCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryNoteCreators(_m) +} + +// QueryNotificationTemplateCreators queries the "notification_template_creators" edge of the Organization entity. +func (_m *Organization) QueryNotificationTemplateCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryNotificationTemplateCreators(_m) +} + +// QueryOrganizationCreators queries the "organization_creators" edge of the Organization entity. +func (_m *Organization) QueryOrganizationCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryOrganizationCreators(_m) +} + +// QueryPlatformCreators queries the "platform_creators" edge of the Organization entity. +func (_m *Organization) QueryPlatformCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryPlatformCreators(_m) +} + +// QueryProcedureCreators queries the "procedure_creators" edge of the Organization entity. +func (_m *Organization) QueryProcedureCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryProcedureCreators(_m) +} + +// QueryProgramCreators queries the "program_creators" edge of the Organization entity. +func (_m *Organization) QueryProgramCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryProgramCreators(_m) +} + +// QueryRemediationCreators queries the "remediation_creators" edge of the Organization entity. +func (_m *Organization) QueryRemediationCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryRemediationCreators(_m) +} + +// QueryReviewCreators queries the "review_creators" edge of the Organization entity. +func (_m *Organization) QueryReviewCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryReviewCreators(_m) +} + +// QueryRiskCreators queries the "risk_creators" edge of the Organization entity. +func (_m *Organization) QueryRiskCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryRiskCreators(_m) +} + +// QueryScanCreators queries the "scan_creators" edge of the Organization entity. +func (_m *Organization) QueryScanCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryScanCreators(_m) +} + +// QueryScheduledJobCreators queries the "scheduled_job_creators" edge of the Organization entity. +func (_m *Organization) QueryScheduledJobCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryScheduledJobCreators(_m) +} + +// QueryScheduledJobRunCreators queries the "scheduled_job_run_creators" edge of the Organization entity. +func (_m *Organization) QueryScheduledJobRunCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryScheduledJobRunCreators(_m) +} + +// QueryStandardCreators queries the "standard_creators" edge of the Organization entity. +func (_m *Organization) QueryStandardCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryStandardCreators(_m) +} + +// QuerySubcontrolCreators queries the "subcontrol_creators" edge of the Organization entity. +func (_m *Organization) QuerySubcontrolCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QuerySubcontrolCreators(_m) +} + +// QuerySubprocessorCreators queries the "subprocessor_creators" edge of the Organization entity. +func (_m *Organization) QuerySubprocessorCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QuerySubprocessorCreators(_m) +} + +// QuerySubscriberCreators queries the "subscriber_creators" edge of the Organization entity. +func (_m *Organization) QuerySubscriberCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QuerySubscriberCreators(_m) +} + +// QuerySystemDetailCreators queries the "system_detail_creators" edge of the Organization entity. +func (_m *Organization) QuerySystemDetailCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QuerySystemDetailCreators(_m) +} + +// QueryTagDefinitionCreators queries the "tag_definition_creators" edge of the Organization entity. +func (_m *Organization) QueryTagDefinitionCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTagDefinitionCreators(_m) +} + +// QueryTaskCreators queries the "task_creators" edge of the Organization entity. +func (_m *Organization) QueryTaskCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTaskCreators(_m) +} + +// QueryTemplateCreators queries the "template_creators" edge of the Organization entity. +func (_m *Organization) QueryTemplateCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTemplateCreators(_m) +} + +// QueryTrustCenterCreators queries the "trust_center_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterCreators(_m) +} + +// QueryTrustCenterComplianceCreators queries the "trust_center_compliance_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterComplianceCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterComplianceCreators(_m) +} + +// QueryTrustCenterDocCreators queries the "trust_center_doc_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterDocCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterDocCreators(_m) +} + +// QueryTrustCenterEntityCreators queries the "trust_center_entity_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterEntityCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterEntityCreators(_m) +} + +// QueryTrustCenterFaqCreators queries the "trust_center_faq_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterFaqCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterFaqCreators(_m) +} + +// QueryTrustCenterNdaRequestCreators queries the "trust_center_nda_request_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterNdaRequestCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterNdaRequestCreators(_m) +} + +// QueryTrustCenterSubprocessorCreators queries the "trust_center_subprocessor_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterSubprocessorCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterSubprocessorCreators(_m) +} + +// QueryTrustCenterWatermarkConfigCreators queries the "trust_center_watermark_config_creators" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterWatermarkConfigCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterWatermarkConfigCreators(_m) +} + +// QueryUserCreators queries the "user_creators" edge of the Organization entity. +func (_m *Organization) QueryUserCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryUserCreators(_m) +} + +// QueryUserSettingCreators queries the "user_setting_creators" edge of the Organization entity. +func (_m *Organization) QueryUserSettingCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryUserSettingCreators(_m) +} + +// QueryVendorRiskScoreCreators queries the "vendor_risk_score_creators" edge of the Organization entity. +func (_m *Organization) QueryVendorRiskScoreCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryVendorRiskScoreCreators(_m) +} + +// QueryVulnerabilityCreators queries the "vulnerability_creators" edge of the Organization entity. +func (_m *Organization) QueryVulnerabilityCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryVulnerabilityCreators(_m) +} + +// QueryWorkflowAssignmentCreators queries the "workflow_assignment_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowAssignmentCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowAssignmentCreators(_m) +} + +// QueryWorkflowAssignmentTargetCreators queries the "workflow_assignment_target_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowAssignmentTargetCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowAssignmentTargetCreators(_m) +} + +// QueryWorkflowDefinitionCreators queries the "workflow_definition_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowDefinitionCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowDefinitionCreators(_m) +} + +// QueryWorkflowEventCreators queries the "workflow_event_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowEventCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowEventCreators(_m) +} + +// QueryWorkflowInstanceCreators queries the "workflow_instance_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowInstanceCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowInstanceCreators(_m) +} + +// QueryWorkflowObjectRefCreators queries the "workflow_object_ref_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowObjectRefCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowObjectRefCreators(_m) +} + +// QueryWorkflowProposalCreators queries the "workflow_proposal_creators" edge of the Organization entity. +func (_m *Organization) QueryWorkflowProposalCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowProposalCreators(_m) +} + +// QueryCampaignsManager queries the "campaigns_manager" edge of the Organization entity. +func (_m *Organization) QueryCampaignsManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryCampaignsManager(_m) +} + +// QueryComplianceManager queries the "compliance_manager" edge of the Organization entity. +func (_m *Organization) QueryComplianceManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryComplianceManager(_m) +} + +// QueryGroupManager queries the "group_manager" edge of the Organization entity. +func (_m *Organization) QueryGroupManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryGroupManager(_m) +} + +// QueryPoliciesManager queries the "policies_manager" edge of the Organization entity. +func (_m *Organization) QueryPoliciesManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryPoliciesManager(_m) +} + +// QueryRegistryManager queries the "registry_manager" edge of the Organization entity. +func (_m *Organization) QueryRegistryManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryRegistryManager(_m) +} + +// QueryRiskManager queries the "risk_manager" edge of the Organization entity. +func (_m *Organization) QueryRiskManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryRiskManager(_m) +} + +// QueryTrustCenterManager queries the "trust_center_manager" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterManager(_m) +} + +// QueryWorkflowsManager queries the "workflows_manager" edge of the Organization entity. +func (_m *Organization) QueryWorkflowsManager() *GroupQuery { + return NewOrganizationClient(_m.config).QueryWorkflowsManager(_m) +} + +// QueryParent queries the "parent" edge of the Organization entity. +func (_m *Organization) QueryParent() *OrganizationQuery { + return NewOrganizationClient(_m.config).QueryParent(_m) +} + +// QueryChildren queries the "children" edge of the Organization entity. +func (_m *Organization) QueryChildren() *OrganizationQuery { + return NewOrganizationClient(_m.config).QueryChildren(_m) +} + +// QuerySetting queries the "setting" edge of the Organization entity. +func (_m *Organization) QuerySetting() *OrganizationSettingQuery { + return NewOrganizationClient(_m.config).QuerySetting(_m) +} + +// QueryPersonalAccessTokens queries the "personal_access_tokens" edge of the Organization entity. +func (_m *Organization) QueryPersonalAccessTokens() *PersonalAccessTokenQuery { + return NewOrganizationClient(_m.config).QueryPersonalAccessTokens(_m) +} + +// QueryAPITokens queries the "api_tokens" edge of the Organization entity. +func (_m *Organization) QueryAPITokens() *APITokenQuery { + return NewOrganizationClient(_m.config).QueryAPITokens(_m) +} + +// QueryEmailTemplates queries the "email_templates" edge of the Organization entity. +func (_m *Organization) QueryEmailTemplates() *EmailTemplateQuery { + return NewOrganizationClient(_m.config).QueryEmailTemplates(_m) +} + +// QueryIntegrationWebhooks queries the "integration_webhooks" edge of the Organization entity. +func (_m *Organization) QueryIntegrationWebhooks() *IntegrationWebhookQuery { + return NewOrganizationClient(_m.config).QueryIntegrationWebhooks(_m) +} + +// QueryIntegrationRuns queries the "integration_runs" edge of the Organization entity. +func (_m *Organization) QueryIntegrationRuns() *IntegrationRunQuery { + return NewOrganizationClient(_m.config).QueryIntegrationRuns(_m) +} + +// QueryNotificationPreferences queries the "notification_preferences" edge of the Organization entity. +func (_m *Organization) QueryNotificationPreferences() *NotificationPreferenceQuery { + return NewOrganizationClient(_m.config).QueryNotificationPreferences(_m) +} + +// QueryNotificationTemplates queries the "notification_templates" edge of the Organization entity. +func (_m *Organization) QueryNotificationTemplates() *NotificationTemplateQuery { + return NewOrganizationClient(_m.config).QueryNotificationTemplates(_m) +} + +// QueryUsers queries the "users" edge of the Organization entity. +func (_m *Organization) QueryUsers() *UserQuery { + return NewOrganizationClient(_m.config).QueryUsers(_m) +} + +// QueryFiles queries the "files" edge of the Organization entity. +func (_m *Organization) QueryFiles() *FileQuery { + return NewOrganizationClient(_m.config).QueryFiles(_m) +} + +// QueryEvents queries the "events" edge of the Organization entity. +func (_m *Organization) QueryEvents() *EventQuery { + return NewOrganizationClient(_m.config).QueryEvents(_m) +} + +// QuerySecrets queries the "secrets" edge of the Organization entity. +func (_m *Organization) QuerySecrets() *HushQuery { + return NewOrganizationClient(_m.config).QuerySecrets(_m) +} + +// QueryAvatarFile queries the "avatar_file" edge of the Organization entity. +func (_m *Organization) QueryAvatarFile() *FileQuery { + return NewOrganizationClient(_m.config).QueryAvatarFile(_m) +} + +// QueryGroups queries the "groups" edge of the Organization entity. +func (_m *Organization) QueryGroups() *GroupQuery { + return NewOrganizationClient(_m.config).QueryGroups(_m) +} + +// QueryTemplates queries the "templates" edge of the Organization entity. +func (_m *Organization) QueryTemplates() *TemplateQuery { + return NewOrganizationClient(_m.config).QueryTemplates(_m) +} + +// QueryIntegrations queries the "integrations" edge of the Organization entity. +func (_m *Organization) QueryIntegrations() *IntegrationQuery { + return NewOrganizationClient(_m.config).QueryIntegrations(_m) +} + +// QueryDocuments queries the "documents" edge of the Organization entity. +func (_m *Organization) QueryDocuments() *DocumentDataQuery { + return NewOrganizationClient(_m.config).QueryDocuments(_m) +} + +// QueryOrgSubscriptions queries the "org_subscriptions" edge of the Organization entity. +func (_m *Organization) QueryOrgSubscriptions() *OrgSubscriptionQuery { + return NewOrganizationClient(_m.config).QueryOrgSubscriptions(_m) +} + +// QueryOrgProducts queries the "org_products" edge of the Organization entity. +func (_m *Organization) QueryOrgProducts() *OrgProductQuery { + return NewOrganizationClient(_m.config).QueryOrgProducts(_m) +} + +// QueryOrgPrices queries the "org_prices" edge of the Organization entity. +func (_m *Organization) QueryOrgPrices() *OrgPriceQuery { + return NewOrganizationClient(_m.config).QueryOrgPrices(_m) +} + +// QueryOrgModules queries the "org_modules" edge of the Organization entity. +func (_m *Organization) QueryOrgModules() *OrgModuleQuery { + return NewOrganizationClient(_m.config).QueryOrgModules(_m) +} + +// QueryInvites queries the "invites" edge of the Organization entity. +func (_m *Organization) QueryInvites() *InviteQuery { + return NewOrganizationClient(_m.config).QueryInvites(_m) +} + +// QuerySubscribers queries the "subscribers" edge of the Organization entity. +func (_m *Organization) QuerySubscribers() *SubscriberQuery { + return NewOrganizationClient(_m.config).QuerySubscribers(_m) +} + +// QueryEntities queries the "entities" edge of the Organization entity. +func (_m *Organization) QueryEntities() *EntityQuery { + return NewOrganizationClient(_m.config).QueryEntities(_m) +} + +// QueryPlatforms queries the "platforms" edge of the Organization entity. +func (_m *Organization) QueryPlatforms() *PlatformQuery { + return NewOrganizationClient(_m.config).QueryPlatforms(_m) +} + +// QueryIdentityHolders queries the "identity_holders" edge of the Organization entity. +func (_m *Organization) QueryIdentityHolders() *IdentityHolderQuery { + return NewOrganizationClient(_m.config).QueryIdentityHolders(_m) +} + +// QueryCampaigns queries the "campaigns" edge of the Organization entity. +func (_m *Organization) QueryCampaigns() *CampaignQuery { + return NewOrganizationClient(_m.config).QueryCampaigns(_m) +} + +// QueryCampaignTargets queries the "campaign_targets" edge of the Organization entity. +func (_m *Organization) QueryCampaignTargets() *CampaignTargetQuery { + return NewOrganizationClient(_m.config).QueryCampaignTargets(_m) +} + +// QueryEntityTypes queries the "entity_types" edge of the Organization entity. +func (_m *Organization) QueryEntityTypes() *EntityTypeQuery { + return NewOrganizationClient(_m.config).QueryEntityTypes(_m) +} + +// QueryContacts queries the "contacts" edge of the Organization entity. +func (_m *Organization) QueryContacts() *ContactQuery { + return NewOrganizationClient(_m.config).QueryContacts(_m) +} + +// QueryNotes queries the "notes" edge of the Organization entity. +func (_m *Organization) QueryNotes() *NoteQuery { + return NewOrganizationClient(_m.config).QueryNotes(_m) +} + +// QueryTasks queries the "tasks" edge of the Organization entity. +func (_m *Organization) QueryTasks() *TaskQuery { + return NewOrganizationClient(_m.config).QueryTasks(_m) +} + +// QueryPrograms queries the "programs" edge of the Organization entity. +func (_m *Organization) QueryPrograms() *ProgramQuery { + return NewOrganizationClient(_m.config).QueryPrograms(_m) +} + +// QuerySystemDetails queries the "system_details" edge of the Organization entity. +func (_m *Organization) QuerySystemDetails() *SystemDetailQuery { + return NewOrganizationClient(_m.config).QuerySystemDetails(_m) +} + +// QueryProcedures queries the "procedures" edge of the Organization entity. +func (_m *Organization) QueryProcedures() *ProcedureQuery { + return NewOrganizationClient(_m.config).QueryProcedures(_m) +} + +// QueryInternalPolicies queries the "internal_policies" edge of the Organization entity. +func (_m *Organization) QueryInternalPolicies() *InternalPolicyQuery { + return NewOrganizationClient(_m.config).QueryInternalPolicies(_m) +} + +// QueryRisks queries the "risks" edge of the Organization entity. +func (_m *Organization) QueryRisks() *RiskQuery { + return NewOrganizationClient(_m.config).QueryRisks(_m) +} + +// QueryControlObjectives queries the "control_objectives" edge of the Organization entity. +func (_m *Organization) QueryControlObjectives() *ControlObjectiveQuery { + return NewOrganizationClient(_m.config).QueryControlObjectives(_m) +} + +// QueryNarratives queries the "narratives" edge of the Organization entity. +func (_m *Organization) QueryNarratives() *NarrativeQuery { + return NewOrganizationClient(_m.config).QueryNarratives(_m) +} + +// QueryControls queries the "controls" edge of the Organization entity. +func (_m *Organization) QueryControls() *ControlQuery { + return NewOrganizationClient(_m.config).QueryControls(_m) +} + +// QuerySubcontrols queries the "subcontrols" edge of the Organization entity. +func (_m *Organization) QuerySubcontrols() *SubcontrolQuery { + return NewOrganizationClient(_m.config).QuerySubcontrols(_m) +} + +// QueryControlImplementations queries the "control_implementations" edge of the Organization entity. +func (_m *Organization) QueryControlImplementations() *ControlImplementationQuery { + return NewOrganizationClient(_m.config).QueryControlImplementations(_m) +} + +// QueryMappedControls queries the "mapped_controls" edge of the Organization entity. +func (_m *Organization) QueryMappedControls() *MappedControlQuery { + return NewOrganizationClient(_m.config).QueryMappedControls(_m) +} + +// QueryEvidence queries the "evidence" edge of the Organization entity. +func (_m *Organization) QueryEvidence() *EvidenceQuery { + return NewOrganizationClient(_m.config).QueryEvidence(_m) +} + +// QueryStandards queries the "standards" edge of the Organization entity. +func (_m *Organization) QueryStandards() *StandardQuery { + return NewOrganizationClient(_m.config).QueryStandards(_m) +} + +// QueryActionPlans queries the "action_plans" edge of the Organization entity. +func (_m *Organization) QueryActionPlans() *ActionPlanQuery { + return NewOrganizationClient(_m.config).QueryActionPlans(_m) +} + +// QueryCustomDomains queries the "custom_domains" edge of the Organization entity. +func (_m *Organization) QueryCustomDomains() *CustomDomainQuery { + return NewOrganizationClient(_m.config).QueryCustomDomains(_m) +} + +// QueryJobRunners queries the "job_runners" edge of the Organization entity. +func (_m *Organization) QueryJobRunners() *JobRunnerQuery { + return NewOrganizationClient(_m.config).QueryJobRunners(_m) +} + +// QueryJobRunnerTokens queries the "job_runner_tokens" edge of the Organization entity. +func (_m *Organization) QueryJobRunnerTokens() *JobRunnerTokenQuery { + return NewOrganizationClient(_m.config).QueryJobRunnerTokens(_m) +} + +// QueryJobRunnerRegistrationTokens queries the "job_runner_registration_tokens" edge of the Organization entity. +func (_m *Organization) QueryJobRunnerRegistrationTokens() *JobRunnerRegistrationTokenQuery { + return NewOrganizationClient(_m.config).QueryJobRunnerRegistrationTokens(_m) +} + +// QueryDNSVerifications queries the "dns_verifications" edge of the Organization entity. +func (_m *Organization) QueryDNSVerifications() *DNSVerificationQuery { + return NewOrganizationClient(_m.config).QueryDNSVerifications(_m) +} + +// QueryJobTemplates queries the "job_templates" edge of the Organization entity. +func (_m *Organization) QueryJobTemplates() *JobTemplateQuery { + return NewOrganizationClient(_m.config).QueryJobTemplates(_m) +} + +// QueryScheduledJobs queries the "scheduled_jobs" edge of the Organization entity. +func (_m *Organization) QueryScheduledJobs() *ScheduledJobQuery { + return NewOrganizationClient(_m.config).QueryScheduledJobs(_m) +} + +// QueryJobResults queries the "job_results" edge of the Organization entity. +func (_m *Organization) QueryJobResults() *JobResultQuery { + return NewOrganizationClient(_m.config).QueryJobResults(_m) +} + +// QueryScheduledJobRuns queries the "scheduled_job_runs" edge of the Organization entity. +func (_m *Organization) QueryScheduledJobRuns() *ScheduledJobRunQuery { + return NewOrganizationClient(_m.config).QueryScheduledJobRuns(_m) +} + +// QueryTrustCenters queries the "trust_centers" edge of the Organization entity. +func (_m *Organization) QueryTrustCenters() *TrustCenterQuery { + return NewOrganizationClient(_m.config).QueryTrustCenters(_m) +} + +// QueryAssets queries the "assets" edge of the Organization entity. +func (_m *Organization) QueryAssets() *AssetQuery { + return NewOrganizationClient(_m.config).QueryAssets(_m) +} + +// QueryScans queries the "scans" edge of the Organization entity. +func (_m *Organization) QueryScans() *ScanQuery { + return NewOrganizationClient(_m.config).QueryScans(_m) +} + +// QuerySLADefinitions queries the "sla_definitions" edge of the Organization entity. +func (_m *Organization) QuerySLADefinitions() *SLADefinitionQuery { + return NewOrganizationClient(_m.config).QuerySLADefinitions(_m) +} + +// QuerySubprocessors queries the "subprocessors" edge of the Organization entity. +func (_m *Organization) QuerySubprocessors() *SubprocessorQuery { + return NewOrganizationClient(_m.config).QuerySubprocessors(_m) +} + +// QueryExports queries the "exports" edge of the Organization entity. +func (_m *Organization) QueryExports() *ExportQuery { + return NewOrganizationClient(_m.config).QueryExports(_m) +} + +// QueryTrustCenterWatermarkConfigs queries the "trust_center_watermark_configs" edge of the Organization entity. +func (_m *Organization) QueryTrustCenterWatermarkConfigs() *TrustCenterWatermarkConfigQuery { + return NewOrganizationClient(_m.config).QueryTrustCenterWatermarkConfigs(_m) +} + +// QueryImpersonationEvents queries the "impersonation_events" edge of the Organization entity. +func (_m *Organization) QueryImpersonationEvents() *ImpersonationEventQuery { + return NewOrganizationClient(_m.config).QueryImpersonationEvents(_m) +} + +// QueryAssessments queries the "assessments" edge of the Organization entity. +func (_m *Organization) QueryAssessments() *AssessmentQuery { + return NewOrganizationClient(_m.config).QueryAssessments(_m) +} + +// QueryAssessmentResponses queries the "assessment_responses" edge of the Organization entity. +func (_m *Organization) QueryAssessmentResponses() *AssessmentResponseQuery { + return NewOrganizationClient(_m.config).QueryAssessmentResponses(_m) +} + +// QueryCustomTypeEnums queries the "custom_type_enums" edge of the Organization entity. +func (_m *Organization) QueryCustomTypeEnums() *CustomTypeEnumQuery { + return NewOrganizationClient(_m.config).QueryCustomTypeEnums(_m) +} + +// QueryTagDefinitions queries the "tag_definitions" edge of the Organization entity. +func (_m *Organization) QueryTagDefinitions() *TagDefinitionQuery { + return NewOrganizationClient(_m.config).QueryTagDefinitions(_m) +} + +// QueryRemediations queries the "remediations" edge of the Organization entity. +func (_m *Organization) QueryRemediations() *RemediationQuery { + return NewOrganizationClient(_m.config).QueryRemediations(_m) +} + +// QueryFindings queries the "findings" edge of the Organization entity. +func (_m *Organization) QueryFindings() *FindingQuery { + return NewOrganizationClient(_m.config).QueryFindings(_m) +} + +// QueryReviews queries the "reviews" edge of the Organization entity. +func (_m *Organization) QueryReviews() *ReviewQuery { + return NewOrganizationClient(_m.config).QueryReviews(_m) +} + +// QueryVulnerabilities queries the "vulnerabilities" edge of the Organization entity. +func (_m *Organization) QueryVulnerabilities() *VulnerabilityQuery { + return NewOrganizationClient(_m.config).QueryVulnerabilities(_m) +} + +// QueryNotifications queries the "notifications" edge of the Organization entity. +func (_m *Organization) QueryNotifications() *NotificationQuery { + return NewOrganizationClient(_m.config).QueryNotifications(_m) +} + +// QueryWorkflowDefinitions queries the "workflow_definitions" edge of the Organization entity. +func (_m *Organization) QueryWorkflowDefinitions() *WorkflowDefinitionQuery { + return NewOrganizationClient(_m.config).QueryWorkflowDefinitions(_m) +} + +// QueryWorkflowInstances queries the "workflow_instances" edge of the Organization entity. +func (_m *Organization) QueryWorkflowInstances() *WorkflowInstanceQuery { + return NewOrganizationClient(_m.config).QueryWorkflowInstances(_m) +} + +// QueryWorkflowEvents queries the "workflow_events" edge of the Organization entity. +func (_m *Organization) QueryWorkflowEvents() *WorkflowEventQuery { + return NewOrganizationClient(_m.config).QueryWorkflowEvents(_m) +} + +// QueryWorkflowAssignments queries the "workflow_assignments" edge of the Organization entity. +func (_m *Organization) QueryWorkflowAssignments() *WorkflowAssignmentQuery { + return NewOrganizationClient(_m.config).QueryWorkflowAssignments(_m) } -// Value returns the ent.Value that was dynamically selected and assigned to the Organization. -// This includes values selected through modifiers, order, etc. -func (_m *Organization) Value(name string) (ent.Value, error) { - return _m.selectValues.Get(name) +// QueryWorkflowAssignmentTargets queries the "workflow_assignment_targets" edge of the Organization entity. +func (_m *Organization) QueryWorkflowAssignmentTargets() *WorkflowAssignmentTargetQuery { + return NewOrganizationClient(_m.config).QueryWorkflowAssignmentTargets(_m) } -// QueryControlCreators queries the "control_creators" edge of the Organization entity. -func (_m *Organization) QueryControlCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryControlCreators(_m) +// QueryWorkflowObjectRefs queries the "workflow_object_refs" edge of the Organization entity. +func (_m *Organization) QueryWorkflowObjectRefs() *WorkflowObjectRefQuery { + return NewOrganizationClient(_m.config).QueryWorkflowObjectRefs(_m) } -// QueryControlImplementationCreators queries the "control_implementation_creators" edge of the Organization entity. -func (_m *Organization) QueryControlImplementationCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryControlImplementationCreators(_m) +// QueryWorkflowProposals queries the "workflow_proposals" edge of the Organization entity. +func (_m *Organization) QueryWorkflowProposals() *WorkflowProposalQuery { + return NewOrganizationClient(_m.config).QueryWorkflowProposals(_m) } -// QueryControlObjectiveCreators queries the "control_objective_creators" edge of the Organization entity. -func (_m *Organization) QueryControlObjectiveCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryControlObjectiveCreators(_m) +// QueryDirectoryAccounts queries the "directory_accounts" edge of the Organization entity. +func (_m *Organization) QueryDirectoryAccounts() *DirectoryAccountQuery { + return NewOrganizationClient(_m.config).QueryDirectoryAccounts(_m) } -// QueryEvidenceCreators queries the "evidence_creators" edge of the Organization entity. -func (_m *Organization) QueryEvidenceCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryEvidenceCreators(_m) +// QueryDirectoryGroups queries the "directory_groups" edge of the Organization entity. +func (_m *Organization) QueryDirectoryGroups() *DirectoryGroupQuery { + return NewOrganizationClient(_m.config).QueryDirectoryGroups(_m) } -// QueryAssetCreators queries the "asset_creators" edge of the Organization entity. -func (_m *Organization) QueryAssetCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryAssetCreators(_m) +// QueryDirectoryMemberships queries the "directory_memberships" edge of the Organization entity. +func (_m *Organization) QueryDirectoryMemberships() *DirectoryMembershipQuery { + return NewOrganizationClient(_m.config).QueryDirectoryMemberships(_m) } -// QueryFindingCreators queries the "finding_creators" edge of the Organization entity. -func (_m *Organization) QueryFindingCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryFindingCreators(_m) +// QueryDirectorySyncRuns queries the "directory_sync_runs" edge of the Organization entity. +func (_m *Organization) QueryDirectorySyncRuns() *DirectorySyncRunQuery { + return NewOrganizationClient(_m.config).QueryDirectorySyncRuns(_m) } -// QueryVulnerabilityCreators queries the "vulnerability_creators" edge of the Organization entity. -func (_m *Organization) QueryVulnerabilityCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryVulnerabilityCreators(_m) +// QueryDiscussions queries the "discussions" edge of the Organization entity. +func (_m *Organization) QueryDiscussions() *DiscussionQuery { + return NewOrganizationClient(_m.config).QueryDiscussions(_m) } -// QueryGroupCreators queries the "group_creators" edge of the Organization entity. -func (_m *Organization) QueryGroupCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryGroupCreators(_m) +// QueryVendorScoringConfigs queries the "vendor_scoring_configs" edge of the Organization entity. +func (_m *Organization) QueryVendorScoringConfigs() *VendorScoringConfigQuery { + return NewOrganizationClient(_m.config).QueryVendorScoringConfigs(_m) } -// QueryInternalPolicyCreators queries the "internal_policy_creators" edge of the Organization entity. -func (_m *Organization) QueryInternalPolicyCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryInternalPolicyCreators(_m) +// QueryVendorRiskScores queries the "vendor_risk_scores" edge of the Organization entity. +func (_m *Organization) QueryVendorRiskScores() *VendorRiskScoreQuery { + return NewOrganizationClient(_m.config).QueryVendorRiskScores(_m) } -// QueryMappedControlCreators queries the "mapped_control_creators" edge of the Organization entity. -func (_m *Organization) QueryMappedControlCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryMappedControlCreators(_m) +// QueryMembers queries the "members" edge of the Organization entity. +func (_m *Organization) QueryMembers() *OrgMembershipQuery { + return NewOrganizationClient(_m.config).QueryMembers(_m) } -// QueryNarrativeCreators queries the "narrative_creators" edge of the Organization entity. -func (_m *Organization) QueryNarrativeCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryNarrativeCreators(_m) +// Update returns a builder for updating this Organization. +// Note that you need to call Organization.Unwrap() before calling this method if this Organization +// was returned from a transaction, and the transaction was committed or rolled back. +func (_m *Organization) Update() *OrganizationUpdateOne { + return NewOrganizationClient(_m.config).UpdateOne(_m) } -// QueryProcedureCreators queries the "procedure_creators" edge of the Organization entity. -func (_m *Organization) QueryProcedureCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryProcedureCreators(_m) +// Unwrap unwraps the Organization entity that was returned from a transaction after it was closed, +// so that all future queries will be executed through the driver which created the transaction. +func (_m *Organization) Unwrap() *Organization { + _tx, ok := _m.config.driver.(*txDriver) + if !ok { + panic("generated: Organization is not a transactional entity") + } + _m.config.driver = _tx.drv + return _m } -// QueryProgramCreators queries the "program_creators" edge of the Organization entity. -func (_m *Organization) QueryProgramCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryProgramCreators(_m) +// String implements the fmt.Stringer. +func (_m *Organization) String() string { + var builder strings.Builder + builder.WriteString("Organization(") + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) + builder.WriteString("created_at=") + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(_m.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(_m.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(_m.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(_m.DeletedBy) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", _m.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(_m.Name) + builder.WriteString(", ") + builder.WriteString("display_name=") + builder.WriteString(_m.DisplayName) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(_m.Description) + builder.WriteString(", ") + builder.WriteString("parent_organization_id=") + builder.WriteString(_m.ParentOrganizationID) + builder.WriteString(", ") + builder.WriteString("personal_org=") + builder.WriteString(fmt.Sprintf("%v", _m.PersonalOrg)) + builder.WriteString(", ") + if v := _m.AvatarRemoteURL; v != nil { + builder.WriteString("avatar_remote_url=") + builder.WriteString(*v) + } + builder.WriteString(", ") + if v := _m.AvatarLocalFileID; v != nil { + builder.WriteString("avatar_local_file_id=") + builder.WriteString(*v) + } + builder.WriteString(", ") + if v := _m.AvatarUpdatedAt; v != nil { + builder.WriteString("avatar_updated_at=") + builder.WriteString(v.Format(time.ANSIC)) + } + builder.WriteString(", ") + builder.WriteString("dedicated_db=") + builder.WriteString(fmt.Sprintf("%v", _m.DedicatedDb)) + builder.WriteString(", ") + if v := _m.StripeCustomerID; v != nil { + builder.WriteString("stripe_customer_id=") + builder.WriteString(*v) + } + builder.WriteByte(')') + return builder.String() } -// QueryRiskCreators queries the "risk_creators" edge of the Organization entity. -func (_m *Organization) QueryRiskCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryRiskCreators(_m) +// NamedActionPlanCreators returns the ActionPlanCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedActionPlanCreators(name string) ([]*Group, error) { + if _m.Edges.namedActionPlanCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedActionPlanCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryIdentityHolderCreators queries the "identity_holder_creators" edge of the Organization entity. -func (_m *Organization) QueryIdentityHolderCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryIdentityHolderCreators(_m) +func (_m *Organization) appendNamedActionPlanCreators(name string, edges ...*Group) { + if _m.Edges.namedActionPlanCreators == nil { + _m.Edges.namedActionPlanCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedActionPlanCreators[name] = []*Group{} + } else { + _m.Edges.namedActionPlanCreators[name] = append(_m.Edges.namedActionPlanCreators[name], edges...) + } } -// QueryScheduledJobCreators queries the "scheduled_job_creators" edge of the Organization entity. -func (_m *Organization) QueryScheduledJobCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryScheduledJobCreators(_m) +// NamedAPITokenCreators returns the APITokenCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAPITokenCreators(name string) ([]*Group, error) { + if _m.Edges.namedAPITokenCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAPITokenCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryStandardCreators queries the "standard_creators" edge of the Organization entity. -func (_m *Organization) QueryStandardCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryStandardCreators(_m) +func (_m *Organization) appendNamedAPITokenCreators(name string, edges ...*Group) { + if _m.Edges.namedAPITokenCreators == nil { + _m.Edges.namedAPITokenCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedAPITokenCreators[name] = []*Group{} + } else { + _m.Edges.namedAPITokenCreators[name] = append(_m.Edges.namedAPITokenCreators[name], edges...) + } } -// QueryTemplateCreators queries the "template_creators" edge of the Organization entity. -func (_m *Organization) QueryTemplateCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryTemplateCreators(_m) +// NamedAssessmentCreators returns the AssessmentCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAssessmentCreators(name string) ([]*Group, error) { + if _m.Edges.namedAssessmentCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAssessmentCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QuerySubprocessorCreators queries the "subprocessor_creators" edge of the Organization entity. -func (_m *Organization) QuerySubprocessorCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QuerySubprocessorCreators(_m) +func (_m *Organization) appendNamedAssessmentCreators(name string, edges ...*Group) { + if _m.Edges.namedAssessmentCreators == nil { + _m.Edges.namedAssessmentCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedAssessmentCreators[name] = []*Group{} + } else { + _m.Edges.namedAssessmentCreators[name] = append(_m.Edges.namedAssessmentCreators[name], edges...) + } +} + +// NamedAssetCreators returns the AssetCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAssetCreators(name string) ([]*Group, error) { + if _m.Edges.namedAssetCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAssetCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedAssetCreators(name string, edges ...*Group) { + if _m.Edges.namedAssetCreators == nil { + _m.Edges.namedAssetCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedAssetCreators[name] = []*Group{} + } else { + _m.Edges.namedAssetCreators[name] = append(_m.Edges.namedAssetCreators[name], edges...) + } +} + +// NamedCampaignCreators returns the CampaignCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedCampaignCreators(name string) ([]*Group, error) { + if _m.Edges.namedCampaignCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedCampaignCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedCampaignCreators(name string, edges ...*Group) { + if _m.Edges.namedCampaignCreators == nil { + _m.Edges.namedCampaignCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedCampaignCreators[name] = []*Group{} + } else { + _m.Edges.namedCampaignCreators[name] = append(_m.Edges.namedCampaignCreators[name], edges...) + } } -// QueryTrustCenterDocCreators queries the "trust_center_doc_creators" edge of the Organization entity. -func (_m *Organization) QueryTrustCenterDocCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryTrustCenterDocCreators(_m) +// NamedCampaignTargetCreators returns the CampaignTargetCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedCampaignTargetCreators(name string) ([]*Group, error) { + if _m.Edges.namedCampaignTargetCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedCampaignTargetCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryTrustCenterSubprocessorCreators queries the "trust_center_subprocessor_creators" edge of the Organization entity. -func (_m *Organization) QueryTrustCenterSubprocessorCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryTrustCenterSubprocessorCreators(_m) +func (_m *Organization) appendNamedCampaignTargetCreators(name string, edges ...*Group) { + if _m.Edges.namedCampaignTargetCreators == nil { + _m.Edges.namedCampaignTargetCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedCampaignTargetCreators[name] = []*Group{} + } else { + _m.Edges.namedCampaignTargetCreators[name] = append(_m.Edges.namedCampaignTargetCreators[name], edges...) + } } -// QueryActionPlanCreators queries the "action_plan_creators" edge of the Organization entity. -func (_m *Organization) QueryActionPlanCreators() *GroupQuery { - return NewOrganizationClient(_m.config).QueryActionPlanCreators(_m) +// NamedCheckResultCreators returns the CheckResultCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedCheckResultCreators(name string) ([]*Group, error) { + if _m.Edges.namedCheckResultCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedCheckResultCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryParent queries the "parent" edge of the Organization entity. -func (_m *Organization) QueryParent() *OrganizationQuery { - return NewOrganizationClient(_m.config).QueryParent(_m) +func (_m *Organization) appendNamedCheckResultCreators(name string, edges ...*Group) { + if _m.Edges.namedCheckResultCreators == nil { + _m.Edges.namedCheckResultCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedCheckResultCreators[name] = []*Group{} + } else { + _m.Edges.namedCheckResultCreators[name] = append(_m.Edges.namedCheckResultCreators[name], edges...) + } } -// QueryChildren queries the "children" edge of the Organization entity. -func (_m *Organization) QueryChildren() *OrganizationQuery { - return NewOrganizationClient(_m.config).QueryChildren(_m) +// NamedContactCreators returns the ContactCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedContactCreators(name string) ([]*Group, error) { + if _m.Edges.namedContactCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedContactCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QuerySetting queries the "setting" edge of the Organization entity. -func (_m *Organization) QuerySetting() *OrganizationSettingQuery { - return NewOrganizationClient(_m.config).QuerySetting(_m) +func (_m *Organization) appendNamedContactCreators(name string, edges ...*Group) { + if _m.Edges.namedContactCreators == nil { + _m.Edges.namedContactCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedContactCreators[name] = []*Group{} + } else { + _m.Edges.namedContactCreators[name] = append(_m.Edges.namedContactCreators[name], edges...) + } } -// QueryPersonalAccessTokens queries the "personal_access_tokens" edge of the Organization entity. -func (_m *Organization) QueryPersonalAccessTokens() *PersonalAccessTokenQuery { - return NewOrganizationClient(_m.config).QueryPersonalAccessTokens(_m) +// NamedControlCreators returns the ControlCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedControlCreators(name string) ([]*Group, error) { + if _m.Edges.namedControlCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedControlCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryAPITokens queries the "api_tokens" edge of the Organization entity. -func (_m *Organization) QueryAPITokens() *APITokenQuery { - return NewOrganizationClient(_m.config).QueryAPITokens(_m) +func (_m *Organization) appendNamedControlCreators(name string, edges ...*Group) { + if _m.Edges.namedControlCreators == nil { + _m.Edges.namedControlCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedControlCreators[name] = []*Group{} + } else { + _m.Edges.namedControlCreators[name] = append(_m.Edges.namedControlCreators[name], edges...) + } } -// QueryEmailTemplates queries the "email_templates" edge of the Organization entity. -func (_m *Organization) QueryEmailTemplates() *EmailTemplateQuery { - return NewOrganizationClient(_m.config).QueryEmailTemplates(_m) +// NamedControlImplementationCreators returns the ControlImplementationCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedControlImplementationCreators(name string) ([]*Group, error) { + if _m.Edges.namedControlImplementationCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedControlImplementationCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryIntegrationWebhooks queries the "integration_webhooks" edge of the Organization entity. -func (_m *Organization) QueryIntegrationWebhooks() *IntegrationWebhookQuery { - return NewOrganizationClient(_m.config).QueryIntegrationWebhooks(_m) +func (_m *Organization) appendNamedControlImplementationCreators(name string, edges ...*Group) { + if _m.Edges.namedControlImplementationCreators == nil { + _m.Edges.namedControlImplementationCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedControlImplementationCreators[name] = []*Group{} + } else { + _m.Edges.namedControlImplementationCreators[name] = append(_m.Edges.namedControlImplementationCreators[name], edges...) + } } -// QueryIntegrationRuns queries the "integration_runs" edge of the Organization entity. -func (_m *Organization) QueryIntegrationRuns() *IntegrationRunQuery { - return NewOrganizationClient(_m.config).QueryIntegrationRuns(_m) +// NamedControlObjectiveCreators returns the ControlObjectiveCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedControlObjectiveCreators(name string) ([]*Group, error) { + if _m.Edges.namedControlObjectiveCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedControlObjectiveCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryNotificationPreferences queries the "notification_preferences" edge of the Organization entity. -func (_m *Organization) QueryNotificationPreferences() *NotificationPreferenceQuery { - return NewOrganizationClient(_m.config).QueryNotificationPreferences(_m) +func (_m *Organization) appendNamedControlObjectiveCreators(name string, edges ...*Group) { + if _m.Edges.namedControlObjectiveCreators == nil { + _m.Edges.namedControlObjectiveCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedControlObjectiveCreators[name] = []*Group{} + } else { + _m.Edges.namedControlObjectiveCreators[name] = append(_m.Edges.namedControlObjectiveCreators[name], edges...) + } } -// QueryNotificationTemplates queries the "notification_templates" edge of the Organization entity. -func (_m *Organization) QueryNotificationTemplates() *NotificationTemplateQuery { - return NewOrganizationClient(_m.config).QueryNotificationTemplates(_m) +// NamedCustomTypeEnumCreators returns the CustomTypeEnumCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedCustomTypeEnumCreators(name string) ([]*Group, error) { + if _m.Edges.namedCustomTypeEnumCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedCustomTypeEnumCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryUsers queries the "users" edge of the Organization entity. -func (_m *Organization) QueryUsers() *UserQuery { - return NewOrganizationClient(_m.config).QueryUsers(_m) +func (_m *Organization) appendNamedCustomTypeEnumCreators(name string, edges ...*Group) { + if _m.Edges.namedCustomTypeEnumCreators == nil { + _m.Edges.namedCustomTypeEnumCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedCustomTypeEnumCreators[name] = []*Group{} + } else { + _m.Edges.namedCustomTypeEnumCreators[name] = append(_m.Edges.namedCustomTypeEnumCreators[name], edges...) + } } -// QueryFiles queries the "files" edge of the Organization entity. -func (_m *Organization) QueryFiles() *FileQuery { - return NewOrganizationClient(_m.config).QueryFiles(_m) +// NamedDiscussionCreators returns the DiscussionCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedDiscussionCreators(name string) ([]*Group, error) { + if _m.Edges.namedDiscussionCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedDiscussionCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryEvents queries the "events" edge of the Organization entity. -func (_m *Organization) QueryEvents() *EventQuery { - return NewOrganizationClient(_m.config).QueryEvents(_m) +func (_m *Organization) appendNamedDiscussionCreators(name string, edges ...*Group) { + if _m.Edges.namedDiscussionCreators == nil { + _m.Edges.namedDiscussionCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedDiscussionCreators[name] = []*Group{} + } else { + _m.Edges.namedDiscussionCreators[name] = append(_m.Edges.namedDiscussionCreators[name], edges...) + } } -// QuerySecrets queries the "secrets" edge of the Organization entity. -func (_m *Organization) QuerySecrets() *HushQuery { - return NewOrganizationClient(_m.config).QuerySecrets(_m) +// NamedEmailTemplateCreators returns the EmailTemplateCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedEmailTemplateCreators(name string) ([]*Group, error) { + if _m.Edges.namedEmailTemplateCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedEmailTemplateCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryAvatarFile queries the "avatar_file" edge of the Organization entity. -func (_m *Organization) QueryAvatarFile() *FileQuery { - return NewOrganizationClient(_m.config).QueryAvatarFile(_m) +func (_m *Organization) appendNamedEmailTemplateCreators(name string, edges ...*Group) { + if _m.Edges.namedEmailTemplateCreators == nil { + _m.Edges.namedEmailTemplateCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedEmailTemplateCreators[name] = []*Group{} + } else { + _m.Edges.namedEmailTemplateCreators[name] = append(_m.Edges.namedEmailTemplateCreators[name], edges...) + } } -// QueryGroups queries the "groups" edge of the Organization entity. -func (_m *Organization) QueryGroups() *GroupQuery { - return NewOrganizationClient(_m.config).QueryGroups(_m) +// NamedEntityCreators returns the EntityCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedEntityCreators(name string) ([]*Group, error) { + if _m.Edges.namedEntityCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedEntityCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryTemplates queries the "templates" edge of the Organization entity. -func (_m *Organization) QueryTemplates() *TemplateQuery { - return NewOrganizationClient(_m.config).QueryTemplates(_m) +func (_m *Organization) appendNamedEntityCreators(name string, edges ...*Group) { + if _m.Edges.namedEntityCreators == nil { + _m.Edges.namedEntityCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedEntityCreators[name] = []*Group{} + } else { + _m.Edges.namedEntityCreators[name] = append(_m.Edges.namedEntityCreators[name], edges...) + } } -// QueryIntegrations queries the "integrations" edge of the Organization entity. -func (_m *Organization) QueryIntegrations() *IntegrationQuery { - return NewOrganizationClient(_m.config).QueryIntegrations(_m) +// NamedEntityTypeCreators returns the EntityTypeCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedEntityTypeCreators(name string) ([]*Group, error) { + if _m.Edges.namedEntityTypeCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedEntityTypeCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryDocuments queries the "documents" edge of the Organization entity. -func (_m *Organization) QueryDocuments() *DocumentDataQuery { - return NewOrganizationClient(_m.config).QueryDocuments(_m) +func (_m *Organization) appendNamedEntityTypeCreators(name string, edges ...*Group) { + if _m.Edges.namedEntityTypeCreators == nil { + _m.Edges.namedEntityTypeCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedEntityTypeCreators[name] = []*Group{} + } else { + _m.Edges.namedEntityTypeCreators[name] = append(_m.Edges.namedEntityTypeCreators[name], edges...) + } } -// QueryOrgSubscriptions queries the "org_subscriptions" edge of the Organization entity. -func (_m *Organization) QueryOrgSubscriptions() *OrgSubscriptionQuery { - return NewOrganizationClient(_m.config).QueryOrgSubscriptions(_m) +// NamedEvidenceCreators returns the EvidenceCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedEvidenceCreators(name string) ([]*Group, error) { + if _m.Edges.namedEvidenceCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedEvidenceCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryOrgProducts queries the "org_products" edge of the Organization entity. -func (_m *Organization) QueryOrgProducts() *OrgProductQuery { - return NewOrganizationClient(_m.config).QueryOrgProducts(_m) +func (_m *Organization) appendNamedEvidenceCreators(name string, edges ...*Group) { + if _m.Edges.namedEvidenceCreators == nil { + _m.Edges.namedEvidenceCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedEvidenceCreators[name] = []*Group{} + } else { + _m.Edges.namedEvidenceCreators[name] = append(_m.Edges.namedEvidenceCreators[name], edges...) + } } -// QueryOrgPrices queries the "org_prices" edge of the Organization entity. -func (_m *Organization) QueryOrgPrices() *OrgPriceQuery { - return NewOrganizationClient(_m.config).QueryOrgPrices(_m) +// NamedExportCreators returns the ExportCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedExportCreators(name string) ([]*Group, error) { + if _m.Edges.namedExportCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedExportCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedExportCreators(name string, edges ...*Group) { + if _m.Edges.namedExportCreators == nil { + _m.Edges.namedExportCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedExportCreators[name] = []*Group{} + } else { + _m.Edges.namedExportCreators[name] = append(_m.Edges.namedExportCreators[name], edges...) + } } -// QueryOrgModules queries the "org_modules" edge of the Organization entity. -func (_m *Organization) QueryOrgModules() *OrgModuleQuery { - return NewOrganizationClient(_m.config).QueryOrgModules(_m) +// NamedFileCreators returns the FileCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedFileCreators(name string) ([]*Group, error) { + if _m.Edges.namedFileCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedFileCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryInvites queries the "invites" edge of the Organization entity. -func (_m *Organization) QueryInvites() *InviteQuery { - return NewOrganizationClient(_m.config).QueryInvites(_m) +func (_m *Organization) appendNamedFileCreators(name string, edges ...*Group) { + if _m.Edges.namedFileCreators == nil { + _m.Edges.namedFileCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedFileCreators[name] = []*Group{} + } else { + _m.Edges.namedFileCreators[name] = append(_m.Edges.namedFileCreators[name], edges...) + } } -// QuerySubscribers queries the "subscribers" edge of the Organization entity. -func (_m *Organization) QuerySubscribers() *SubscriberQuery { - return NewOrganizationClient(_m.config).QuerySubscribers(_m) +// NamedFindingCreators returns the FindingCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedFindingCreators(name string) ([]*Group, error) { + if _m.Edges.namedFindingCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedFindingCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryEntities queries the "entities" edge of the Organization entity. -func (_m *Organization) QueryEntities() *EntityQuery { - return NewOrganizationClient(_m.config).QueryEntities(_m) +func (_m *Organization) appendNamedFindingCreators(name string, edges ...*Group) { + if _m.Edges.namedFindingCreators == nil { + _m.Edges.namedFindingCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedFindingCreators[name] = []*Group{} + } else { + _m.Edges.namedFindingCreators[name] = append(_m.Edges.namedFindingCreators[name], edges...) + } } -// QueryPlatforms queries the "platforms" edge of the Organization entity. -func (_m *Organization) QueryPlatforms() *PlatformQuery { - return NewOrganizationClient(_m.config).QueryPlatforms(_m) +// NamedGroupCreators returns the GroupCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedGroupCreators(name string) ([]*Group, error) { + if _m.Edges.namedGroupCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedGroupCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryIdentityHolders queries the "identity_holders" edge of the Organization entity. -func (_m *Organization) QueryIdentityHolders() *IdentityHolderQuery { - return NewOrganizationClient(_m.config).QueryIdentityHolders(_m) +func (_m *Organization) appendNamedGroupCreators(name string, edges ...*Group) { + if _m.Edges.namedGroupCreators == nil { + _m.Edges.namedGroupCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedGroupCreators[name] = []*Group{} + } else { + _m.Edges.namedGroupCreators[name] = append(_m.Edges.namedGroupCreators[name], edges...) + } } -// QueryCampaigns queries the "campaigns" edge of the Organization entity. -func (_m *Organization) QueryCampaigns() *CampaignQuery { - return NewOrganizationClient(_m.config).QueryCampaigns(_m) +// NamedIdentityHolderCreators returns the IdentityHolderCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedIdentityHolderCreators(name string) ([]*Group, error) { + if _m.Edges.namedIdentityHolderCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedIdentityHolderCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryCampaignTargets queries the "campaign_targets" edge of the Organization entity. -func (_m *Organization) QueryCampaignTargets() *CampaignTargetQuery { - return NewOrganizationClient(_m.config).QueryCampaignTargets(_m) +func (_m *Organization) appendNamedIdentityHolderCreators(name string, edges ...*Group) { + if _m.Edges.namedIdentityHolderCreators == nil { + _m.Edges.namedIdentityHolderCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedIdentityHolderCreators[name] = []*Group{} + } else { + _m.Edges.namedIdentityHolderCreators[name] = append(_m.Edges.namedIdentityHolderCreators[name], edges...) + } } -// QueryEntityTypes queries the "entity_types" edge of the Organization entity. -func (_m *Organization) QueryEntityTypes() *EntityTypeQuery { - return NewOrganizationClient(_m.config).QueryEntityTypes(_m) +// NamedIntegrationCreators returns the IntegrationCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedIntegrationCreators(name string) ([]*Group, error) { + if _m.Edges.namedIntegrationCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedIntegrationCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryContacts queries the "contacts" edge of the Organization entity. -func (_m *Organization) QueryContacts() *ContactQuery { - return NewOrganizationClient(_m.config).QueryContacts(_m) +func (_m *Organization) appendNamedIntegrationCreators(name string, edges ...*Group) { + if _m.Edges.namedIntegrationCreators == nil { + _m.Edges.namedIntegrationCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedIntegrationCreators[name] = []*Group{} + } else { + _m.Edges.namedIntegrationCreators[name] = append(_m.Edges.namedIntegrationCreators[name], edges...) + } } -// QueryNotes queries the "notes" edge of the Organization entity. -func (_m *Organization) QueryNotes() *NoteQuery { - return NewOrganizationClient(_m.config).QueryNotes(_m) +// NamedIntegrationWebhookCreators returns the IntegrationWebhookCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedIntegrationWebhookCreators(name string) ([]*Group, error) { + if _m.Edges.namedIntegrationWebhookCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedIntegrationWebhookCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryTasks queries the "tasks" edge of the Organization entity. -func (_m *Organization) QueryTasks() *TaskQuery { - return NewOrganizationClient(_m.config).QueryTasks(_m) +func (_m *Organization) appendNamedIntegrationWebhookCreators(name string, edges ...*Group) { + if _m.Edges.namedIntegrationWebhookCreators == nil { + _m.Edges.namedIntegrationWebhookCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedIntegrationWebhookCreators[name] = []*Group{} + } else { + _m.Edges.namedIntegrationWebhookCreators[name] = append(_m.Edges.namedIntegrationWebhookCreators[name], edges...) + } } -// QueryPrograms queries the "programs" edge of the Organization entity. -func (_m *Organization) QueryPrograms() *ProgramQuery { - return NewOrganizationClient(_m.config).QueryPrograms(_m) +// NamedInternalPolicyCreators returns the InternalPolicyCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedInternalPolicyCreators(name string) ([]*Group, error) { + if _m.Edges.namedInternalPolicyCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedInternalPolicyCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QuerySystemDetails queries the "system_details" edge of the Organization entity. -func (_m *Organization) QuerySystemDetails() *SystemDetailQuery { - return NewOrganizationClient(_m.config).QuerySystemDetails(_m) +func (_m *Organization) appendNamedInternalPolicyCreators(name string, edges ...*Group) { + if _m.Edges.namedInternalPolicyCreators == nil { + _m.Edges.namedInternalPolicyCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedInternalPolicyCreators[name] = []*Group{} + } else { + _m.Edges.namedInternalPolicyCreators[name] = append(_m.Edges.namedInternalPolicyCreators[name], edges...) + } } -// QueryProcedures queries the "procedures" edge of the Organization entity. -func (_m *Organization) QueryProcedures() *ProcedureQuery { - return NewOrganizationClient(_m.config).QueryProcedures(_m) +// NamedJobRunnerCreators returns the JobRunnerCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedJobRunnerCreators(name string) ([]*Group, error) { + if _m.Edges.namedJobRunnerCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedJobRunnerCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryInternalPolicies queries the "internal_policies" edge of the Organization entity. -func (_m *Organization) QueryInternalPolicies() *InternalPolicyQuery { - return NewOrganizationClient(_m.config).QueryInternalPolicies(_m) +func (_m *Organization) appendNamedJobRunnerCreators(name string, edges ...*Group) { + if _m.Edges.namedJobRunnerCreators == nil { + _m.Edges.namedJobRunnerCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedJobRunnerCreators[name] = []*Group{} + } else { + _m.Edges.namedJobRunnerCreators[name] = append(_m.Edges.namedJobRunnerCreators[name], edges...) + } } -// QueryRisks queries the "risks" edge of the Organization entity. -func (_m *Organization) QueryRisks() *RiskQuery { - return NewOrganizationClient(_m.config).QueryRisks(_m) +// NamedJobRunnerRegistrationTokenCreators returns the JobRunnerRegistrationTokenCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedJobRunnerRegistrationTokenCreators(name string) ([]*Group, error) { + if _m.Edges.namedJobRunnerRegistrationTokenCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedJobRunnerRegistrationTokenCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryControlObjectives queries the "control_objectives" edge of the Organization entity. -func (_m *Organization) QueryControlObjectives() *ControlObjectiveQuery { - return NewOrganizationClient(_m.config).QueryControlObjectives(_m) +func (_m *Organization) appendNamedJobRunnerRegistrationTokenCreators(name string, edges ...*Group) { + if _m.Edges.namedJobRunnerRegistrationTokenCreators == nil { + _m.Edges.namedJobRunnerRegistrationTokenCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedJobRunnerRegistrationTokenCreators[name] = []*Group{} + } else { + _m.Edges.namedJobRunnerRegistrationTokenCreators[name] = append(_m.Edges.namedJobRunnerRegistrationTokenCreators[name], edges...) + } } -// QueryNarratives queries the "narratives" edge of the Organization entity. -func (_m *Organization) QueryNarratives() *NarrativeQuery { - return NewOrganizationClient(_m.config).QueryNarratives(_m) +// NamedJobRunnerTokenCreators returns the JobRunnerTokenCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedJobRunnerTokenCreators(name string) ([]*Group, error) { + if _m.Edges.namedJobRunnerTokenCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedJobRunnerTokenCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryControls queries the "controls" edge of the Organization entity. -func (_m *Organization) QueryControls() *ControlQuery { - return NewOrganizationClient(_m.config).QueryControls(_m) +func (_m *Organization) appendNamedJobRunnerTokenCreators(name string, edges ...*Group) { + if _m.Edges.namedJobRunnerTokenCreators == nil { + _m.Edges.namedJobRunnerTokenCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedJobRunnerTokenCreators[name] = []*Group{} + } else { + _m.Edges.namedJobRunnerTokenCreators[name] = append(_m.Edges.namedJobRunnerTokenCreators[name], edges...) + } } -// QuerySubcontrols queries the "subcontrols" edge of the Organization entity. -func (_m *Organization) QuerySubcontrols() *SubcontrolQuery { - return NewOrganizationClient(_m.config).QuerySubcontrols(_m) +// NamedJobTemplateCreators returns the JobTemplateCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedJobTemplateCreators(name string) ([]*Group, error) { + if _m.Edges.namedJobTemplateCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedJobTemplateCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryControlImplementations queries the "control_implementations" edge of the Organization entity. -func (_m *Organization) QueryControlImplementations() *ControlImplementationQuery { - return NewOrganizationClient(_m.config).QueryControlImplementations(_m) +func (_m *Organization) appendNamedJobTemplateCreators(name string, edges ...*Group) { + if _m.Edges.namedJobTemplateCreators == nil { + _m.Edges.namedJobTemplateCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedJobTemplateCreators[name] = []*Group{} + } else { + _m.Edges.namedJobTemplateCreators[name] = append(_m.Edges.namedJobTemplateCreators[name], edges...) + } } -// QueryMappedControls queries the "mapped_controls" edge of the Organization entity. -func (_m *Organization) QueryMappedControls() *MappedControlQuery { - return NewOrganizationClient(_m.config).QueryMappedControls(_m) +// NamedMappedControlCreators returns the MappedControlCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedMappedControlCreators(name string) ([]*Group, error) { + if _m.Edges.namedMappedControlCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedMappedControlCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryEvidence queries the "evidence" edge of the Organization entity. -func (_m *Organization) QueryEvidence() *EvidenceQuery { - return NewOrganizationClient(_m.config).QueryEvidence(_m) +func (_m *Organization) appendNamedMappedControlCreators(name string, edges ...*Group) { + if _m.Edges.namedMappedControlCreators == nil { + _m.Edges.namedMappedControlCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedMappedControlCreators[name] = []*Group{} + } else { + _m.Edges.namedMappedControlCreators[name] = append(_m.Edges.namedMappedControlCreators[name], edges...) + } +} + +// NamedNarrativeCreators returns the NarrativeCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedNarrativeCreators(name string) ([]*Group, error) { + if _m.Edges.namedNarrativeCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedNarrativeCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryStandards queries the "standards" edge of the Organization entity. -func (_m *Organization) QueryStandards() *StandardQuery { - return NewOrganizationClient(_m.config).QueryStandards(_m) +func (_m *Organization) appendNamedNarrativeCreators(name string, edges ...*Group) { + if _m.Edges.namedNarrativeCreators == nil { + _m.Edges.namedNarrativeCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedNarrativeCreators[name] = []*Group{} + } else { + _m.Edges.namedNarrativeCreators[name] = append(_m.Edges.namedNarrativeCreators[name], edges...) + } } -// QueryActionPlans queries the "action_plans" edge of the Organization entity. -func (_m *Organization) QueryActionPlans() *ActionPlanQuery { - return NewOrganizationClient(_m.config).QueryActionPlans(_m) +// NamedNoteCreators returns the NoteCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedNoteCreators(name string) ([]*Group, error) { + if _m.Edges.namedNoteCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedNoteCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryCustomDomains queries the "custom_domains" edge of the Organization entity. -func (_m *Organization) QueryCustomDomains() *CustomDomainQuery { - return NewOrganizationClient(_m.config).QueryCustomDomains(_m) +func (_m *Organization) appendNamedNoteCreators(name string, edges ...*Group) { + if _m.Edges.namedNoteCreators == nil { + _m.Edges.namedNoteCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedNoteCreators[name] = []*Group{} + } else { + _m.Edges.namedNoteCreators[name] = append(_m.Edges.namedNoteCreators[name], edges...) + } } -// QueryJobRunners queries the "job_runners" edge of the Organization entity. -func (_m *Organization) QueryJobRunners() *JobRunnerQuery { - return NewOrganizationClient(_m.config).QueryJobRunners(_m) +// NamedNotificationTemplateCreators returns the NotificationTemplateCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedNotificationTemplateCreators(name string) ([]*Group, error) { + if _m.Edges.namedNotificationTemplateCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedNotificationTemplateCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryJobRunnerTokens queries the "job_runner_tokens" edge of the Organization entity. -func (_m *Organization) QueryJobRunnerTokens() *JobRunnerTokenQuery { - return NewOrganizationClient(_m.config).QueryJobRunnerTokens(_m) +func (_m *Organization) appendNamedNotificationTemplateCreators(name string, edges ...*Group) { + if _m.Edges.namedNotificationTemplateCreators == nil { + _m.Edges.namedNotificationTemplateCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedNotificationTemplateCreators[name] = []*Group{} + } else { + _m.Edges.namedNotificationTemplateCreators[name] = append(_m.Edges.namedNotificationTemplateCreators[name], edges...) + } } -// QueryJobRunnerRegistrationTokens queries the "job_runner_registration_tokens" edge of the Organization entity. -func (_m *Organization) QueryJobRunnerRegistrationTokens() *JobRunnerRegistrationTokenQuery { - return NewOrganizationClient(_m.config).QueryJobRunnerRegistrationTokens(_m) +// NamedOrganizationCreators returns the OrganizationCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedOrganizationCreators(name string) ([]*Group, error) { + if _m.Edges.namedOrganizationCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedOrganizationCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryDNSVerifications queries the "dns_verifications" edge of the Organization entity. -func (_m *Organization) QueryDNSVerifications() *DNSVerificationQuery { - return NewOrganizationClient(_m.config).QueryDNSVerifications(_m) +func (_m *Organization) appendNamedOrganizationCreators(name string, edges ...*Group) { + if _m.Edges.namedOrganizationCreators == nil { + _m.Edges.namedOrganizationCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedOrganizationCreators[name] = []*Group{} + } else { + _m.Edges.namedOrganizationCreators[name] = append(_m.Edges.namedOrganizationCreators[name], edges...) + } } -// QueryJobTemplates queries the "job_templates" edge of the Organization entity. -func (_m *Organization) QueryJobTemplates() *JobTemplateQuery { - return NewOrganizationClient(_m.config).QueryJobTemplates(_m) +// NamedPlatformCreators returns the PlatformCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedPlatformCreators(name string) ([]*Group, error) { + if _m.Edges.namedPlatformCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedPlatformCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryScheduledJobs queries the "scheduled_jobs" edge of the Organization entity. -func (_m *Organization) QueryScheduledJobs() *ScheduledJobQuery { - return NewOrganizationClient(_m.config).QueryScheduledJobs(_m) +func (_m *Organization) appendNamedPlatformCreators(name string, edges ...*Group) { + if _m.Edges.namedPlatformCreators == nil { + _m.Edges.namedPlatformCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedPlatformCreators[name] = []*Group{} + } else { + _m.Edges.namedPlatformCreators[name] = append(_m.Edges.namedPlatformCreators[name], edges...) + } } -// QueryJobResults queries the "job_results" edge of the Organization entity. -func (_m *Organization) QueryJobResults() *JobResultQuery { - return NewOrganizationClient(_m.config).QueryJobResults(_m) +// NamedProcedureCreators returns the ProcedureCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedProcedureCreators(name string) ([]*Group, error) { + if _m.Edges.namedProcedureCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedProcedureCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryScheduledJobRuns queries the "scheduled_job_runs" edge of the Organization entity. -func (_m *Organization) QueryScheduledJobRuns() *ScheduledJobRunQuery { - return NewOrganizationClient(_m.config).QueryScheduledJobRuns(_m) +func (_m *Organization) appendNamedProcedureCreators(name string, edges ...*Group) { + if _m.Edges.namedProcedureCreators == nil { + _m.Edges.namedProcedureCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedProcedureCreators[name] = []*Group{} + } else { + _m.Edges.namedProcedureCreators[name] = append(_m.Edges.namedProcedureCreators[name], edges...) + } } -// QueryTrustCenters queries the "trust_centers" edge of the Organization entity. -func (_m *Organization) QueryTrustCenters() *TrustCenterQuery { - return NewOrganizationClient(_m.config).QueryTrustCenters(_m) +// NamedProgramCreators returns the ProgramCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedProgramCreators(name string) ([]*Group, error) { + if _m.Edges.namedProgramCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedProgramCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryAssets queries the "assets" edge of the Organization entity. -func (_m *Organization) QueryAssets() *AssetQuery { - return NewOrganizationClient(_m.config).QueryAssets(_m) +func (_m *Organization) appendNamedProgramCreators(name string, edges ...*Group) { + if _m.Edges.namedProgramCreators == nil { + _m.Edges.namedProgramCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedProgramCreators[name] = []*Group{} + } else { + _m.Edges.namedProgramCreators[name] = append(_m.Edges.namedProgramCreators[name], edges...) + } } -// QueryScans queries the "scans" edge of the Organization entity. -func (_m *Organization) QueryScans() *ScanQuery { - return NewOrganizationClient(_m.config).QueryScans(_m) +// NamedRemediationCreators returns the RemediationCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedRemediationCreators(name string) ([]*Group, error) { + if _m.Edges.namedRemediationCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedRemediationCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QuerySLADefinitions queries the "sla_definitions" edge of the Organization entity. -func (_m *Organization) QuerySLADefinitions() *SLADefinitionQuery { - return NewOrganizationClient(_m.config).QuerySLADefinitions(_m) +func (_m *Organization) appendNamedRemediationCreators(name string, edges ...*Group) { + if _m.Edges.namedRemediationCreators == nil { + _m.Edges.namedRemediationCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedRemediationCreators[name] = []*Group{} + } else { + _m.Edges.namedRemediationCreators[name] = append(_m.Edges.namedRemediationCreators[name], edges...) + } } -// QuerySubprocessors queries the "subprocessors" edge of the Organization entity. -func (_m *Organization) QuerySubprocessors() *SubprocessorQuery { - return NewOrganizationClient(_m.config).QuerySubprocessors(_m) +// NamedReviewCreators returns the ReviewCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedReviewCreators(name string) ([]*Group, error) { + if _m.Edges.namedReviewCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedReviewCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryExports queries the "exports" edge of the Organization entity. -func (_m *Organization) QueryExports() *ExportQuery { - return NewOrganizationClient(_m.config).QueryExports(_m) +func (_m *Organization) appendNamedReviewCreators(name string, edges ...*Group) { + if _m.Edges.namedReviewCreators == nil { + _m.Edges.namedReviewCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedReviewCreators[name] = []*Group{} + } else { + _m.Edges.namedReviewCreators[name] = append(_m.Edges.namedReviewCreators[name], edges...) + } } -// QueryTrustCenterWatermarkConfigs queries the "trust_center_watermark_configs" edge of the Organization entity. -func (_m *Organization) QueryTrustCenterWatermarkConfigs() *TrustCenterWatermarkConfigQuery { - return NewOrganizationClient(_m.config).QueryTrustCenterWatermarkConfigs(_m) +// NamedRiskCreators returns the RiskCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedRiskCreators(name string) ([]*Group, error) { + if _m.Edges.namedRiskCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedRiskCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryImpersonationEvents queries the "impersonation_events" edge of the Organization entity. -func (_m *Organization) QueryImpersonationEvents() *ImpersonationEventQuery { - return NewOrganizationClient(_m.config).QueryImpersonationEvents(_m) +func (_m *Organization) appendNamedRiskCreators(name string, edges ...*Group) { + if _m.Edges.namedRiskCreators == nil { + _m.Edges.namedRiskCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedRiskCreators[name] = []*Group{} + } else { + _m.Edges.namedRiskCreators[name] = append(_m.Edges.namedRiskCreators[name], edges...) + } } -// QueryAssessments queries the "assessments" edge of the Organization entity. -func (_m *Organization) QueryAssessments() *AssessmentQuery { - return NewOrganizationClient(_m.config).QueryAssessments(_m) +// NamedScanCreators returns the ScanCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedScanCreators(name string) ([]*Group, error) { + if _m.Edges.namedScanCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedScanCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryAssessmentResponses queries the "assessment_responses" edge of the Organization entity. -func (_m *Organization) QueryAssessmentResponses() *AssessmentResponseQuery { - return NewOrganizationClient(_m.config).QueryAssessmentResponses(_m) +func (_m *Organization) appendNamedScanCreators(name string, edges ...*Group) { + if _m.Edges.namedScanCreators == nil { + _m.Edges.namedScanCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedScanCreators[name] = []*Group{} + } else { + _m.Edges.namedScanCreators[name] = append(_m.Edges.namedScanCreators[name], edges...) + } } -// QueryCustomTypeEnums queries the "custom_type_enums" edge of the Organization entity. -func (_m *Organization) QueryCustomTypeEnums() *CustomTypeEnumQuery { - return NewOrganizationClient(_m.config).QueryCustomTypeEnums(_m) +// NamedScheduledJobCreators returns the ScheduledJobCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedScheduledJobCreators(name string) ([]*Group, error) { + if _m.Edges.namedScheduledJobCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedScheduledJobCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryTagDefinitions queries the "tag_definitions" edge of the Organization entity. -func (_m *Organization) QueryTagDefinitions() *TagDefinitionQuery { - return NewOrganizationClient(_m.config).QueryTagDefinitions(_m) +func (_m *Organization) appendNamedScheduledJobCreators(name string, edges ...*Group) { + if _m.Edges.namedScheduledJobCreators == nil { + _m.Edges.namedScheduledJobCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedScheduledJobCreators[name] = []*Group{} + } else { + _m.Edges.namedScheduledJobCreators[name] = append(_m.Edges.namedScheduledJobCreators[name], edges...) + } } -// QueryRemediations queries the "remediations" edge of the Organization entity. -func (_m *Organization) QueryRemediations() *RemediationQuery { - return NewOrganizationClient(_m.config).QueryRemediations(_m) +// NamedScheduledJobRunCreators returns the ScheduledJobRunCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedScheduledJobRunCreators(name string) ([]*Group, error) { + if _m.Edges.namedScheduledJobRunCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedScheduledJobRunCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryFindings queries the "findings" edge of the Organization entity. -func (_m *Organization) QueryFindings() *FindingQuery { - return NewOrganizationClient(_m.config).QueryFindings(_m) +func (_m *Organization) appendNamedScheduledJobRunCreators(name string, edges ...*Group) { + if _m.Edges.namedScheduledJobRunCreators == nil { + _m.Edges.namedScheduledJobRunCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedScheduledJobRunCreators[name] = []*Group{} + } else { + _m.Edges.namedScheduledJobRunCreators[name] = append(_m.Edges.namedScheduledJobRunCreators[name], edges...) + } } -// QueryReviews queries the "reviews" edge of the Organization entity. -func (_m *Organization) QueryReviews() *ReviewQuery { - return NewOrganizationClient(_m.config).QueryReviews(_m) +// NamedStandardCreators returns the StandardCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedStandardCreators(name string) ([]*Group, error) { + if _m.Edges.namedStandardCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedStandardCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryVulnerabilities queries the "vulnerabilities" edge of the Organization entity. -func (_m *Organization) QueryVulnerabilities() *VulnerabilityQuery { - return NewOrganizationClient(_m.config).QueryVulnerabilities(_m) +func (_m *Organization) appendNamedStandardCreators(name string, edges ...*Group) { + if _m.Edges.namedStandardCreators == nil { + _m.Edges.namedStandardCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedStandardCreators[name] = []*Group{} + } else { + _m.Edges.namedStandardCreators[name] = append(_m.Edges.namedStandardCreators[name], edges...) + } } -// QueryNotifications queries the "notifications" edge of the Organization entity. -func (_m *Organization) QueryNotifications() *NotificationQuery { - return NewOrganizationClient(_m.config).QueryNotifications(_m) +// NamedSubcontrolCreators returns the SubcontrolCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedSubcontrolCreators(name string) ([]*Group, error) { + if _m.Edges.namedSubcontrolCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedSubcontrolCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryWorkflowDefinitions queries the "workflow_definitions" edge of the Organization entity. -func (_m *Organization) QueryWorkflowDefinitions() *WorkflowDefinitionQuery { - return NewOrganizationClient(_m.config).QueryWorkflowDefinitions(_m) +func (_m *Organization) appendNamedSubcontrolCreators(name string, edges ...*Group) { + if _m.Edges.namedSubcontrolCreators == nil { + _m.Edges.namedSubcontrolCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedSubcontrolCreators[name] = []*Group{} + } else { + _m.Edges.namedSubcontrolCreators[name] = append(_m.Edges.namedSubcontrolCreators[name], edges...) + } } -// QueryWorkflowInstances queries the "workflow_instances" edge of the Organization entity. -func (_m *Organization) QueryWorkflowInstances() *WorkflowInstanceQuery { - return NewOrganizationClient(_m.config).QueryWorkflowInstances(_m) +// NamedSubprocessorCreators returns the SubprocessorCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedSubprocessorCreators(name string) ([]*Group, error) { + if _m.Edges.namedSubprocessorCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedSubprocessorCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryWorkflowEvents queries the "workflow_events" edge of the Organization entity. -func (_m *Organization) QueryWorkflowEvents() *WorkflowEventQuery { - return NewOrganizationClient(_m.config).QueryWorkflowEvents(_m) +func (_m *Organization) appendNamedSubprocessorCreators(name string, edges ...*Group) { + if _m.Edges.namedSubprocessorCreators == nil { + _m.Edges.namedSubprocessorCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedSubprocessorCreators[name] = []*Group{} + } else { + _m.Edges.namedSubprocessorCreators[name] = append(_m.Edges.namedSubprocessorCreators[name], edges...) + } } -// QueryWorkflowAssignments queries the "workflow_assignments" edge of the Organization entity. -func (_m *Organization) QueryWorkflowAssignments() *WorkflowAssignmentQuery { - return NewOrganizationClient(_m.config).QueryWorkflowAssignments(_m) +// NamedSubscriberCreators returns the SubscriberCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedSubscriberCreators(name string) ([]*Group, error) { + if _m.Edges.namedSubscriberCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedSubscriberCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryWorkflowAssignmentTargets queries the "workflow_assignment_targets" edge of the Organization entity. -func (_m *Organization) QueryWorkflowAssignmentTargets() *WorkflowAssignmentTargetQuery { - return NewOrganizationClient(_m.config).QueryWorkflowAssignmentTargets(_m) +func (_m *Organization) appendNamedSubscriberCreators(name string, edges ...*Group) { + if _m.Edges.namedSubscriberCreators == nil { + _m.Edges.namedSubscriberCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedSubscriberCreators[name] = []*Group{} + } else { + _m.Edges.namedSubscriberCreators[name] = append(_m.Edges.namedSubscriberCreators[name], edges...) + } } -// QueryWorkflowObjectRefs queries the "workflow_object_refs" edge of the Organization entity. -func (_m *Organization) QueryWorkflowObjectRefs() *WorkflowObjectRefQuery { - return NewOrganizationClient(_m.config).QueryWorkflowObjectRefs(_m) +// NamedSystemDetailCreators returns the SystemDetailCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedSystemDetailCreators(name string) ([]*Group, error) { + if _m.Edges.namedSystemDetailCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedSystemDetailCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryWorkflowProposals queries the "workflow_proposals" edge of the Organization entity. -func (_m *Organization) QueryWorkflowProposals() *WorkflowProposalQuery { - return NewOrganizationClient(_m.config).QueryWorkflowProposals(_m) +func (_m *Organization) appendNamedSystemDetailCreators(name string, edges ...*Group) { + if _m.Edges.namedSystemDetailCreators == nil { + _m.Edges.namedSystemDetailCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedSystemDetailCreators[name] = []*Group{} + } else { + _m.Edges.namedSystemDetailCreators[name] = append(_m.Edges.namedSystemDetailCreators[name], edges...) + } } -// QueryDirectoryAccounts queries the "directory_accounts" edge of the Organization entity. -func (_m *Organization) QueryDirectoryAccounts() *DirectoryAccountQuery { - return NewOrganizationClient(_m.config).QueryDirectoryAccounts(_m) +// NamedTagDefinitionCreators returns the TagDefinitionCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTagDefinitionCreators(name string) ([]*Group, error) { + if _m.Edges.namedTagDefinitionCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTagDefinitionCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryDirectoryGroups queries the "directory_groups" edge of the Organization entity. -func (_m *Organization) QueryDirectoryGroups() *DirectoryGroupQuery { - return NewOrganizationClient(_m.config).QueryDirectoryGroups(_m) +func (_m *Organization) appendNamedTagDefinitionCreators(name string, edges ...*Group) { + if _m.Edges.namedTagDefinitionCreators == nil { + _m.Edges.namedTagDefinitionCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTagDefinitionCreators[name] = []*Group{} + } else { + _m.Edges.namedTagDefinitionCreators[name] = append(_m.Edges.namedTagDefinitionCreators[name], edges...) + } } -// QueryDirectoryMemberships queries the "directory_memberships" edge of the Organization entity. -func (_m *Organization) QueryDirectoryMemberships() *DirectoryMembershipQuery { - return NewOrganizationClient(_m.config).QueryDirectoryMemberships(_m) +// NamedTaskCreators returns the TaskCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTaskCreators(name string) ([]*Group, error) { + if _m.Edges.namedTaskCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTaskCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryDirectorySyncRuns queries the "directory_sync_runs" edge of the Organization entity. -func (_m *Organization) QueryDirectorySyncRuns() *DirectorySyncRunQuery { - return NewOrganizationClient(_m.config).QueryDirectorySyncRuns(_m) +func (_m *Organization) appendNamedTaskCreators(name string, edges ...*Group) { + if _m.Edges.namedTaskCreators == nil { + _m.Edges.namedTaskCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTaskCreators[name] = []*Group{} + } else { + _m.Edges.namedTaskCreators[name] = append(_m.Edges.namedTaskCreators[name], edges...) + } } -// QueryDiscussions queries the "discussions" edge of the Organization entity. -func (_m *Organization) QueryDiscussions() *DiscussionQuery { - return NewOrganizationClient(_m.config).QueryDiscussions(_m) +// NamedTemplateCreators returns the TemplateCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTemplateCreators(name string) ([]*Group, error) { + if _m.Edges.namedTemplateCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTemplateCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryVendorScoringConfigs queries the "vendor_scoring_configs" edge of the Organization entity. -func (_m *Organization) QueryVendorScoringConfigs() *VendorScoringConfigQuery { - return NewOrganizationClient(_m.config).QueryVendorScoringConfigs(_m) +func (_m *Organization) appendNamedTemplateCreators(name string, edges ...*Group) { + if _m.Edges.namedTemplateCreators == nil { + _m.Edges.namedTemplateCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTemplateCreators[name] = []*Group{} + } else { + _m.Edges.namedTemplateCreators[name] = append(_m.Edges.namedTemplateCreators[name], edges...) + } } -// QueryVendorRiskScores queries the "vendor_risk_scores" edge of the Organization entity. -func (_m *Organization) QueryVendorRiskScores() *VendorRiskScoreQuery { - return NewOrganizationClient(_m.config).QueryVendorRiskScores(_m) +// NamedTrustCenterCreators returns the TrustCenterCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTrustCenterCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTrustCenterCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// QueryMembers queries the "members" edge of the Organization entity. -func (_m *Organization) QueryMembers() *OrgMembershipQuery { - return NewOrganizationClient(_m.config).QueryMembers(_m) +func (_m *Organization) appendNamedTrustCenterCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterCreators == nil { + _m.Edges.namedTrustCenterCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTrustCenterCreators[name] = []*Group{} + } else { + _m.Edges.namedTrustCenterCreators[name] = append(_m.Edges.namedTrustCenterCreators[name], edges...) + } } -// Update returns a builder for updating this Organization. -// Note that you need to call Organization.Unwrap() before calling this method if this Organization -// was returned from a transaction, and the transaction was committed or rolled back. -func (_m *Organization) Update() *OrganizationUpdateOne { - return NewOrganizationClient(_m.config).UpdateOne(_m) +// NamedTrustCenterComplianceCreators returns the TrustCenterComplianceCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTrustCenterComplianceCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterComplianceCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTrustCenterComplianceCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// Unwrap unwraps the Organization entity that was returned from a transaction after it was closed, -// so that all future queries will be executed through the driver which created the transaction. -func (_m *Organization) Unwrap() *Organization { - _tx, ok := _m.config.driver.(*txDriver) - if !ok { - panic("generated: Organization is not a transactional entity") +func (_m *Organization) appendNamedTrustCenterComplianceCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterComplianceCreators == nil { + _m.Edges.namedTrustCenterComplianceCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTrustCenterComplianceCreators[name] = []*Group{} + } else { + _m.Edges.namedTrustCenterComplianceCreators[name] = append(_m.Edges.namedTrustCenterComplianceCreators[name], edges...) } - _m.config.driver = _tx.drv - return _m } -// String implements the fmt.Stringer. -func (_m *Organization) String() string { - var builder strings.Builder - builder.WriteString("Organization(") - builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) - builder.WriteString("created_at=") - builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) - builder.WriteString(", ") - builder.WriteString("updated_at=") - builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) - builder.WriteString(", ") - builder.WriteString("created_by=") - builder.WriteString(_m.CreatedBy) - builder.WriteString(", ") - builder.WriteString("updated_by=") - builder.WriteString(_m.UpdatedBy) - builder.WriteString(", ") - builder.WriteString("deleted_at=") - builder.WriteString(_m.DeletedAt.Format(time.ANSIC)) - builder.WriteString(", ") - builder.WriteString("deleted_by=") - builder.WriteString(_m.DeletedBy) - builder.WriteString(", ") - builder.WriteString("tags=") - builder.WriteString(fmt.Sprintf("%v", _m.Tags)) - builder.WriteString(", ") - builder.WriteString("name=") - builder.WriteString(_m.Name) - builder.WriteString(", ") - builder.WriteString("display_name=") - builder.WriteString(_m.DisplayName) - builder.WriteString(", ") - builder.WriteString("description=") - builder.WriteString(_m.Description) - builder.WriteString(", ") - builder.WriteString("parent_organization_id=") - builder.WriteString(_m.ParentOrganizationID) - builder.WriteString(", ") - builder.WriteString("personal_org=") - builder.WriteString(fmt.Sprintf("%v", _m.PersonalOrg)) - builder.WriteString(", ") - if v := _m.AvatarRemoteURL; v != nil { - builder.WriteString("avatar_remote_url=") - builder.WriteString(*v) +// NamedTrustCenterDocCreators returns the TrustCenterDocCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTrustCenterDocCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterDocCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedTrustCenterDocCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} } - builder.WriteString(", ") - if v := _m.AvatarLocalFileID; v != nil { - builder.WriteString("avatar_local_file_id=") - builder.WriteString(*v) + return nodes, nil +} + +func (_m *Organization) appendNamedTrustCenterDocCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterDocCreators == nil { + _m.Edges.namedTrustCenterDocCreators = make(map[string][]*Group) } - builder.WriteString(", ") - if v := _m.AvatarUpdatedAt; v != nil { - builder.WriteString("avatar_updated_at=") - builder.WriteString(v.Format(time.ANSIC)) + if len(edges) == 0 { + _m.Edges.namedTrustCenterDocCreators[name] = []*Group{} + } else { + _m.Edges.namedTrustCenterDocCreators[name] = append(_m.Edges.namedTrustCenterDocCreators[name], edges...) } - builder.WriteString(", ") - builder.WriteString("dedicated_db=") - builder.WriteString(fmt.Sprintf("%v", _m.DedicatedDb)) - builder.WriteString(", ") - if v := _m.StripeCustomerID; v != nil { - builder.WriteString("stripe_customer_id=") - builder.WriteString(*v) +} + +// NamedTrustCenterEntityCreators returns the TrustCenterEntityCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedTrustCenterEntityCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterEntityCreators == nil { + return nil, &NotLoadedError{edge: name} } - builder.WriteByte(')') - return builder.String() + nodes, ok := _m.Edges.namedTrustCenterEntityCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil } -// NamedControlCreators returns the ControlCreators named value or an error if the edge was not +func (_m *Organization) appendNamedTrustCenterEntityCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterEntityCreators == nil { + _m.Edges.namedTrustCenterEntityCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedTrustCenterEntityCreators[name] = []*Group{} + } else { + _m.Edges.namedTrustCenterEntityCreators[name] = append(_m.Edges.namedTrustCenterEntityCreators[name], edges...) + } +} + +// NamedTrustCenterFaqCreators returns the TrustCenterFaqCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedControlCreators(name string) ([]*Group, error) { - if _m.Edges.namedControlCreators == nil { +func (_m *Organization) NamedTrustCenterFaqCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterFaqCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedControlCreators[name] + nodes, ok := _m.Edges.namedTrustCenterFaqCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedControlCreators(name string, edges ...*Group) { - if _m.Edges.namedControlCreators == nil { - _m.Edges.namedControlCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedTrustCenterFaqCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterFaqCreators == nil { + _m.Edges.namedTrustCenterFaqCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedControlCreators[name] = []*Group{} + _m.Edges.namedTrustCenterFaqCreators[name] = []*Group{} } else { - _m.Edges.namedControlCreators[name] = append(_m.Edges.namedControlCreators[name], edges...) + _m.Edges.namedTrustCenterFaqCreators[name] = append(_m.Edges.namedTrustCenterFaqCreators[name], edges...) } } -// NamedControlImplementationCreators returns the ControlImplementationCreators named value or an error if the edge was not +// NamedTrustCenterNdaRequestCreators returns the TrustCenterNdaRequestCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedControlImplementationCreators(name string) ([]*Group, error) { - if _m.Edges.namedControlImplementationCreators == nil { +func (_m *Organization) NamedTrustCenterNdaRequestCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterNdaRequestCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedControlImplementationCreators[name] + nodes, ok := _m.Edges.namedTrustCenterNdaRequestCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedControlImplementationCreators(name string, edges ...*Group) { - if _m.Edges.namedControlImplementationCreators == nil { - _m.Edges.namedControlImplementationCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedTrustCenterNdaRequestCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterNdaRequestCreators == nil { + _m.Edges.namedTrustCenterNdaRequestCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedControlImplementationCreators[name] = []*Group{} + _m.Edges.namedTrustCenterNdaRequestCreators[name] = []*Group{} } else { - _m.Edges.namedControlImplementationCreators[name] = append(_m.Edges.namedControlImplementationCreators[name], edges...) + _m.Edges.namedTrustCenterNdaRequestCreators[name] = append(_m.Edges.namedTrustCenterNdaRequestCreators[name], edges...) } } -// NamedControlObjectiveCreators returns the ControlObjectiveCreators named value or an error if the edge was not +// NamedTrustCenterSubprocessorCreators returns the TrustCenterSubprocessorCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedControlObjectiveCreators(name string) ([]*Group, error) { - if _m.Edges.namedControlObjectiveCreators == nil { +func (_m *Organization) NamedTrustCenterSubprocessorCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterSubprocessorCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedControlObjectiveCreators[name] + nodes, ok := _m.Edges.namedTrustCenterSubprocessorCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedControlObjectiveCreators(name string, edges ...*Group) { - if _m.Edges.namedControlObjectiveCreators == nil { - _m.Edges.namedControlObjectiveCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedTrustCenterSubprocessorCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterSubprocessorCreators == nil { + _m.Edges.namedTrustCenterSubprocessorCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedControlObjectiveCreators[name] = []*Group{} + _m.Edges.namedTrustCenterSubprocessorCreators[name] = []*Group{} } else { - _m.Edges.namedControlObjectiveCreators[name] = append(_m.Edges.namedControlObjectiveCreators[name], edges...) + _m.Edges.namedTrustCenterSubprocessorCreators[name] = append(_m.Edges.namedTrustCenterSubprocessorCreators[name], edges...) } } -// NamedEvidenceCreators returns the EvidenceCreators named value or an error if the edge was not +// NamedTrustCenterWatermarkConfigCreators returns the TrustCenterWatermarkConfigCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedEvidenceCreators(name string) ([]*Group, error) { - if _m.Edges.namedEvidenceCreators == nil { +func (_m *Organization) NamedTrustCenterWatermarkConfigCreators(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterWatermarkConfigCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedEvidenceCreators[name] + nodes, ok := _m.Edges.namedTrustCenterWatermarkConfigCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedEvidenceCreators(name string, edges ...*Group) { - if _m.Edges.namedEvidenceCreators == nil { - _m.Edges.namedEvidenceCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedTrustCenterWatermarkConfigCreators(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterWatermarkConfigCreators == nil { + _m.Edges.namedTrustCenterWatermarkConfigCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedEvidenceCreators[name] = []*Group{} + _m.Edges.namedTrustCenterWatermarkConfigCreators[name] = []*Group{} } else { - _m.Edges.namedEvidenceCreators[name] = append(_m.Edges.namedEvidenceCreators[name], edges...) + _m.Edges.namedTrustCenterWatermarkConfigCreators[name] = append(_m.Edges.namedTrustCenterWatermarkConfigCreators[name], edges...) } } -// NamedAssetCreators returns the AssetCreators named value or an error if the edge was not +// NamedUserCreators returns the UserCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedAssetCreators(name string) ([]*Group, error) { - if _m.Edges.namedAssetCreators == nil { +func (_m *Organization) NamedUserCreators(name string) ([]*Group, error) { + if _m.Edges.namedUserCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedAssetCreators[name] + nodes, ok := _m.Edges.namedUserCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedAssetCreators(name string, edges ...*Group) { - if _m.Edges.namedAssetCreators == nil { - _m.Edges.namedAssetCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedUserCreators(name string, edges ...*Group) { + if _m.Edges.namedUserCreators == nil { + _m.Edges.namedUserCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedAssetCreators[name] = []*Group{} + _m.Edges.namedUserCreators[name] = []*Group{} } else { - _m.Edges.namedAssetCreators[name] = append(_m.Edges.namedAssetCreators[name], edges...) + _m.Edges.namedUserCreators[name] = append(_m.Edges.namedUserCreators[name], edges...) } } -// NamedFindingCreators returns the FindingCreators named value or an error if the edge was not +// NamedUserSettingCreators returns the UserSettingCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedFindingCreators(name string) ([]*Group, error) { - if _m.Edges.namedFindingCreators == nil { +func (_m *Organization) NamedUserSettingCreators(name string) ([]*Group, error) { + if _m.Edges.namedUserSettingCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedFindingCreators[name] + nodes, ok := _m.Edges.namedUserSettingCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedFindingCreators(name string, edges ...*Group) { - if _m.Edges.namedFindingCreators == nil { - _m.Edges.namedFindingCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedUserSettingCreators(name string, edges ...*Group) { + if _m.Edges.namedUserSettingCreators == nil { + _m.Edges.namedUserSettingCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedFindingCreators[name] = []*Group{} + _m.Edges.namedUserSettingCreators[name] = []*Group{} } else { - _m.Edges.namedFindingCreators[name] = append(_m.Edges.namedFindingCreators[name], edges...) + _m.Edges.namedUserSettingCreators[name] = append(_m.Edges.namedUserSettingCreators[name], edges...) + } +} + +// NamedVendorRiskScoreCreators returns the VendorRiskScoreCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedVendorRiskScoreCreators(name string) ([]*Group, error) { + if _m.Edges.namedVendorRiskScoreCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedVendorRiskScoreCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedVendorRiskScoreCreators(name string, edges ...*Group) { + if _m.Edges.namedVendorRiskScoreCreators == nil { + _m.Edges.namedVendorRiskScoreCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedVendorRiskScoreCreators[name] = []*Group{} + } else { + _m.Edges.namedVendorRiskScoreCreators[name] = append(_m.Edges.namedVendorRiskScoreCreators[name], edges...) } } @@ -2368,363 +4664,363 @@ func (_m *Organization) appendNamedVulnerabilityCreators(name string, edges ...* } } -// NamedGroupCreators returns the GroupCreators named value or an error if the edge was not +// NamedWorkflowAssignmentCreators returns the WorkflowAssignmentCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedGroupCreators(name string) ([]*Group, error) { - if _m.Edges.namedGroupCreators == nil { +func (_m *Organization) NamedWorkflowAssignmentCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowAssignmentCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedGroupCreators[name] + nodes, ok := _m.Edges.namedWorkflowAssignmentCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedGroupCreators(name string, edges ...*Group) { - if _m.Edges.namedGroupCreators == nil { - _m.Edges.namedGroupCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowAssignmentCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowAssignmentCreators == nil { + _m.Edges.namedWorkflowAssignmentCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedGroupCreators[name] = []*Group{} + _m.Edges.namedWorkflowAssignmentCreators[name] = []*Group{} } else { - _m.Edges.namedGroupCreators[name] = append(_m.Edges.namedGroupCreators[name], edges...) + _m.Edges.namedWorkflowAssignmentCreators[name] = append(_m.Edges.namedWorkflowAssignmentCreators[name], edges...) } } -// NamedInternalPolicyCreators returns the InternalPolicyCreators named value or an error if the edge was not +// NamedWorkflowAssignmentTargetCreators returns the WorkflowAssignmentTargetCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedInternalPolicyCreators(name string) ([]*Group, error) { - if _m.Edges.namedInternalPolicyCreators == nil { +func (_m *Organization) NamedWorkflowAssignmentTargetCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowAssignmentTargetCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedInternalPolicyCreators[name] + nodes, ok := _m.Edges.namedWorkflowAssignmentTargetCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedInternalPolicyCreators(name string, edges ...*Group) { - if _m.Edges.namedInternalPolicyCreators == nil { - _m.Edges.namedInternalPolicyCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowAssignmentTargetCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowAssignmentTargetCreators == nil { + _m.Edges.namedWorkflowAssignmentTargetCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedInternalPolicyCreators[name] = []*Group{} + _m.Edges.namedWorkflowAssignmentTargetCreators[name] = []*Group{} } else { - _m.Edges.namedInternalPolicyCreators[name] = append(_m.Edges.namedInternalPolicyCreators[name], edges...) + _m.Edges.namedWorkflowAssignmentTargetCreators[name] = append(_m.Edges.namedWorkflowAssignmentTargetCreators[name], edges...) } } -// NamedMappedControlCreators returns the MappedControlCreators named value or an error if the edge was not +// NamedWorkflowDefinitionCreators returns the WorkflowDefinitionCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedMappedControlCreators(name string) ([]*Group, error) { - if _m.Edges.namedMappedControlCreators == nil { +func (_m *Organization) NamedWorkflowDefinitionCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowDefinitionCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedMappedControlCreators[name] + nodes, ok := _m.Edges.namedWorkflowDefinitionCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedMappedControlCreators(name string, edges ...*Group) { - if _m.Edges.namedMappedControlCreators == nil { - _m.Edges.namedMappedControlCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowDefinitionCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowDefinitionCreators == nil { + _m.Edges.namedWorkflowDefinitionCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedMappedControlCreators[name] = []*Group{} + _m.Edges.namedWorkflowDefinitionCreators[name] = []*Group{} } else { - _m.Edges.namedMappedControlCreators[name] = append(_m.Edges.namedMappedControlCreators[name], edges...) + _m.Edges.namedWorkflowDefinitionCreators[name] = append(_m.Edges.namedWorkflowDefinitionCreators[name], edges...) } } -// NamedNarrativeCreators returns the NarrativeCreators named value or an error if the edge was not +// NamedWorkflowEventCreators returns the WorkflowEventCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedNarrativeCreators(name string) ([]*Group, error) { - if _m.Edges.namedNarrativeCreators == nil { +func (_m *Organization) NamedWorkflowEventCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowEventCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedNarrativeCreators[name] + nodes, ok := _m.Edges.namedWorkflowEventCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedNarrativeCreators(name string, edges ...*Group) { - if _m.Edges.namedNarrativeCreators == nil { - _m.Edges.namedNarrativeCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowEventCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowEventCreators == nil { + _m.Edges.namedWorkflowEventCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedNarrativeCreators[name] = []*Group{} + _m.Edges.namedWorkflowEventCreators[name] = []*Group{} } else { - _m.Edges.namedNarrativeCreators[name] = append(_m.Edges.namedNarrativeCreators[name], edges...) + _m.Edges.namedWorkflowEventCreators[name] = append(_m.Edges.namedWorkflowEventCreators[name], edges...) } } -// NamedProcedureCreators returns the ProcedureCreators named value or an error if the edge was not +// NamedWorkflowInstanceCreators returns the WorkflowInstanceCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedProcedureCreators(name string) ([]*Group, error) { - if _m.Edges.namedProcedureCreators == nil { +func (_m *Organization) NamedWorkflowInstanceCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowInstanceCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedProcedureCreators[name] + nodes, ok := _m.Edges.namedWorkflowInstanceCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedProcedureCreators(name string, edges ...*Group) { - if _m.Edges.namedProcedureCreators == nil { - _m.Edges.namedProcedureCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowInstanceCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowInstanceCreators == nil { + _m.Edges.namedWorkflowInstanceCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedProcedureCreators[name] = []*Group{} + _m.Edges.namedWorkflowInstanceCreators[name] = []*Group{} } else { - _m.Edges.namedProcedureCreators[name] = append(_m.Edges.namedProcedureCreators[name], edges...) + _m.Edges.namedWorkflowInstanceCreators[name] = append(_m.Edges.namedWorkflowInstanceCreators[name], edges...) } } -// NamedProgramCreators returns the ProgramCreators named value or an error if the edge was not +// NamedWorkflowObjectRefCreators returns the WorkflowObjectRefCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedProgramCreators(name string) ([]*Group, error) { - if _m.Edges.namedProgramCreators == nil { +func (_m *Organization) NamedWorkflowObjectRefCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowObjectRefCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedProgramCreators[name] + nodes, ok := _m.Edges.namedWorkflowObjectRefCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedProgramCreators(name string, edges ...*Group) { - if _m.Edges.namedProgramCreators == nil { - _m.Edges.namedProgramCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowObjectRefCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowObjectRefCreators == nil { + _m.Edges.namedWorkflowObjectRefCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedProgramCreators[name] = []*Group{} + _m.Edges.namedWorkflowObjectRefCreators[name] = []*Group{} } else { - _m.Edges.namedProgramCreators[name] = append(_m.Edges.namedProgramCreators[name], edges...) + _m.Edges.namedWorkflowObjectRefCreators[name] = append(_m.Edges.namedWorkflowObjectRefCreators[name], edges...) } } -// NamedRiskCreators returns the RiskCreators named value or an error if the edge was not +// NamedWorkflowProposalCreators returns the WorkflowProposalCreators named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedRiskCreators(name string) ([]*Group, error) { - if _m.Edges.namedRiskCreators == nil { +func (_m *Organization) NamedWorkflowProposalCreators(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowProposalCreators == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedRiskCreators[name] + nodes, ok := _m.Edges.namedWorkflowProposalCreators[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedRiskCreators(name string, edges ...*Group) { - if _m.Edges.namedRiskCreators == nil { - _m.Edges.namedRiskCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowProposalCreators(name string, edges ...*Group) { + if _m.Edges.namedWorkflowProposalCreators == nil { + _m.Edges.namedWorkflowProposalCreators = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedRiskCreators[name] = []*Group{} + _m.Edges.namedWorkflowProposalCreators[name] = []*Group{} } else { - _m.Edges.namedRiskCreators[name] = append(_m.Edges.namedRiskCreators[name], edges...) + _m.Edges.namedWorkflowProposalCreators[name] = append(_m.Edges.namedWorkflowProposalCreators[name], edges...) } } -// NamedIdentityHolderCreators returns the IdentityHolderCreators named value or an error if the edge was not +// NamedCampaignsManager returns the CampaignsManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedIdentityHolderCreators(name string) ([]*Group, error) { - if _m.Edges.namedIdentityHolderCreators == nil { +func (_m *Organization) NamedCampaignsManager(name string) ([]*Group, error) { + if _m.Edges.namedCampaignsManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedIdentityHolderCreators[name] + nodes, ok := _m.Edges.namedCampaignsManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedIdentityHolderCreators(name string, edges ...*Group) { - if _m.Edges.namedIdentityHolderCreators == nil { - _m.Edges.namedIdentityHolderCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedCampaignsManager(name string, edges ...*Group) { + if _m.Edges.namedCampaignsManager == nil { + _m.Edges.namedCampaignsManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedIdentityHolderCreators[name] = []*Group{} + _m.Edges.namedCampaignsManager[name] = []*Group{} } else { - _m.Edges.namedIdentityHolderCreators[name] = append(_m.Edges.namedIdentityHolderCreators[name], edges...) + _m.Edges.namedCampaignsManager[name] = append(_m.Edges.namedCampaignsManager[name], edges...) } } -// NamedScheduledJobCreators returns the ScheduledJobCreators named value or an error if the edge was not +// NamedComplianceManager returns the ComplianceManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedScheduledJobCreators(name string) ([]*Group, error) { - if _m.Edges.namedScheduledJobCreators == nil { +func (_m *Organization) NamedComplianceManager(name string) ([]*Group, error) { + if _m.Edges.namedComplianceManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedScheduledJobCreators[name] + nodes, ok := _m.Edges.namedComplianceManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedScheduledJobCreators(name string, edges ...*Group) { - if _m.Edges.namedScheduledJobCreators == nil { - _m.Edges.namedScheduledJobCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedComplianceManager(name string, edges ...*Group) { + if _m.Edges.namedComplianceManager == nil { + _m.Edges.namedComplianceManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedScheduledJobCreators[name] = []*Group{} + _m.Edges.namedComplianceManager[name] = []*Group{} } else { - _m.Edges.namedScheduledJobCreators[name] = append(_m.Edges.namedScheduledJobCreators[name], edges...) + _m.Edges.namedComplianceManager[name] = append(_m.Edges.namedComplianceManager[name], edges...) } } -// NamedStandardCreators returns the StandardCreators named value or an error if the edge was not +// NamedGroupManager returns the GroupManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedStandardCreators(name string) ([]*Group, error) { - if _m.Edges.namedStandardCreators == nil { +func (_m *Organization) NamedGroupManager(name string) ([]*Group, error) { + if _m.Edges.namedGroupManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedStandardCreators[name] + nodes, ok := _m.Edges.namedGroupManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedStandardCreators(name string, edges ...*Group) { - if _m.Edges.namedStandardCreators == nil { - _m.Edges.namedStandardCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedGroupManager(name string, edges ...*Group) { + if _m.Edges.namedGroupManager == nil { + _m.Edges.namedGroupManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedStandardCreators[name] = []*Group{} + _m.Edges.namedGroupManager[name] = []*Group{} } else { - _m.Edges.namedStandardCreators[name] = append(_m.Edges.namedStandardCreators[name], edges...) + _m.Edges.namedGroupManager[name] = append(_m.Edges.namedGroupManager[name], edges...) } } -// NamedTemplateCreators returns the TemplateCreators named value or an error if the edge was not +// NamedPoliciesManager returns the PoliciesManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedTemplateCreators(name string) ([]*Group, error) { - if _m.Edges.namedTemplateCreators == nil { +func (_m *Organization) NamedPoliciesManager(name string) ([]*Group, error) { + if _m.Edges.namedPoliciesManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedTemplateCreators[name] + nodes, ok := _m.Edges.namedPoliciesManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedTemplateCreators(name string, edges ...*Group) { - if _m.Edges.namedTemplateCreators == nil { - _m.Edges.namedTemplateCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedPoliciesManager(name string, edges ...*Group) { + if _m.Edges.namedPoliciesManager == nil { + _m.Edges.namedPoliciesManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedTemplateCreators[name] = []*Group{} + _m.Edges.namedPoliciesManager[name] = []*Group{} } else { - _m.Edges.namedTemplateCreators[name] = append(_m.Edges.namedTemplateCreators[name], edges...) + _m.Edges.namedPoliciesManager[name] = append(_m.Edges.namedPoliciesManager[name], edges...) } } -// NamedSubprocessorCreators returns the SubprocessorCreators named value or an error if the edge was not +// NamedRegistryManager returns the RegistryManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedSubprocessorCreators(name string) ([]*Group, error) { - if _m.Edges.namedSubprocessorCreators == nil { +func (_m *Organization) NamedRegistryManager(name string) ([]*Group, error) { + if _m.Edges.namedRegistryManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedSubprocessorCreators[name] + nodes, ok := _m.Edges.namedRegistryManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedSubprocessorCreators(name string, edges ...*Group) { - if _m.Edges.namedSubprocessorCreators == nil { - _m.Edges.namedSubprocessorCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedRegistryManager(name string, edges ...*Group) { + if _m.Edges.namedRegistryManager == nil { + _m.Edges.namedRegistryManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedSubprocessorCreators[name] = []*Group{} + _m.Edges.namedRegistryManager[name] = []*Group{} } else { - _m.Edges.namedSubprocessorCreators[name] = append(_m.Edges.namedSubprocessorCreators[name], edges...) + _m.Edges.namedRegistryManager[name] = append(_m.Edges.namedRegistryManager[name], edges...) } } -// NamedTrustCenterDocCreators returns the TrustCenterDocCreators named value or an error if the edge was not +// NamedRiskManager returns the RiskManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedTrustCenterDocCreators(name string) ([]*Group, error) { - if _m.Edges.namedTrustCenterDocCreators == nil { +func (_m *Organization) NamedRiskManager(name string) ([]*Group, error) { + if _m.Edges.namedRiskManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedTrustCenterDocCreators[name] + nodes, ok := _m.Edges.namedRiskManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedTrustCenterDocCreators(name string, edges ...*Group) { - if _m.Edges.namedTrustCenterDocCreators == nil { - _m.Edges.namedTrustCenterDocCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedRiskManager(name string, edges ...*Group) { + if _m.Edges.namedRiskManager == nil { + _m.Edges.namedRiskManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedTrustCenterDocCreators[name] = []*Group{} + _m.Edges.namedRiskManager[name] = []*Group{} } else { - _m.Edges.namedTrustCenterDocCreators[name] = append(_m.Edges.namedTrustCenterDocCreators[name], edges...) + _m.Edges.namedRiskManager[name] = append(_m.Edges.namedRiskManager[name], edges...) } } -// NamedTrustCenterSubprocessorCreators returns the TrustCenterSubprocessorCreators named value or an error if the edge was not +// NamedTrustCenterManager returns the TrustCenterManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedTrustCenterSubprocessorCreators(name string) ([]*Group, error) { - if _m.Edges.namedTrustCenterSubprocessorCreators == nil { +func (_m *Organization) NamedTrustCenterManager(name string) ([]*Group, error) { + if _m.Edges.namedTrustCenterManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedTrustCenterSubprocessorCreators[name] + nodes, ok := _m.Edges.namedTrustCenterManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedTrustCenterSubprocessorCreators(name string, edges ...*Group) { - if _m.Edges.namedTrustCenterSubprocessorCreators == nil { - _m.Edges.namedTrustCenterSubprocessorCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedTrustCenterManager(name string, edges ...*Group) { + if _m.Edges.namedTrustCenterManager == nil { + _m.Edges.namedTrustCenterManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedTrustCenterSubprocessorCreators[name] = []*Group{} + _m.Edges.namedTrustCenterManager[name] = []*Group{} } else { - _m.Edges.namedTrustCenterSubprocessorCreators[name] = append(_m.Edges.namedTrustCenterSubprocessorCreators[name], edges...) + _m.Edges.namedTrustCenterManager[name] = append(_m.Edges.namedTrustCenterManager[name], edges...) } } -// NamedActionPlanCreators returns the ActionPlanCreators named value or an error if the edge was not +// NamedWorkflowsManager returns the WorkflowsManager named value or an error if the edge was not // loaded in eager-loading with this name. -func (_m *Organization) NamedActionPlanCreators(name string) ([]*Group, error) { - if _m.Edges.namedActionPlanCreators == nil { +func (_m *Organization) NamedWorkflowsManager(name string) ([]*Group, error) { + if _m.Edges.namedWorkflowsManager == nil { return nil, &NotLoadedError{edge: name} } - nodes, ok := _m.Edges.namedActionPlanCreators[name] + nodes, ok := _m.Edges.namedWorkflowsManager[name] if !ok { return nil, &NotLoadedError{edge: name} } return nodes, nil } -func (_m *Organization) appendNamedActionPlanCreators(name string, edges ...*Group) { - if _m.Edges.namedActionPlanCreators == nil { - _m.Edges.namedActionPlanCreators = make(map[string][]*Group) +func (_m *Organization) appendNamedWorkflowsManager(name string, edges ...*Group) { + if _m.Edges.namedWorkflowsManager == nil { + _m.Edges.namedWorkflowsManager = make(map[string][]*Group) } if len(edges) == 0 { - _m.Edges.namedActionPlanCreators[name] = []*Group{} + _m.Edges.namedWorkflowsManager[name] = []*Group{} } else { - _m.Edges.namedActionPlanCreators[name] = append(_m.Edges.namedActionPlanCreators[name], edges...) + _m.Edges.namedWorkflowsManager[name] = append(_m.Edges.namedWorkflowsManager[name], edges...) } } diff --git a/internal/ent/generated/organization/organization.go b/internal/ent/generated/organization/organization.go index a10c8cd15f..1e428a8d82 100644 --- a/internal/ent/generated/organization/organization.go +++ b/internal/ent/generated/organization/organization.go @@ -75,8 +75,6 @@ const ( EdgeCustomTypeEnumCreators = "custom_type_enum_creators" // EdgeDiscussionCreators holds the string denoting the discussion_creators edge name in mutations. EdgeDiscussionCreators = "discussion_creators" - // EdgeEmailBrandingCreators holds the string denoting the email_branding_creators edge name in mutations. - EdgeEmailBrandingCreators = "email_branding_creators" // EdgeEmailTemplateCreators holds the string denoting the email_template_creators edge name in mutations. EdgeEmailTemplateCreators = "email_template_creators" // EdgeEntityCreators holds the string denoting the entity_creators edge name in mutations. @@ -478,13 +476,6 @@ const ( DiscussionCreatorsInverseTable = "groups" // DiscussionCreatorsColumn is the table column denoting the discussion_creators relation/edge. DiscussionCreatorsColumn = "organization_discussion_creators" - // EmailBrandingCreatorsTable is the table that holds the email_branding_creators relation/edge. - EmailBrandingCreatorsTable = "groups" - // EmailBrandingCreatorsInverseTable is the table name for the Group entity. - // It exists in this package in order to avoid circular dependency with the "group" package. - EmailBrandingCreatorsInverseTable = "groups" - // EmailBrandingCreatorsColumn is the table column denoting the email_branding_creators relation/edge. - EmailBrandingCreatorsColumn = "organization_email_branding_creators" // EmailTemplateCreatorsTable is the table that holds the email_template_creators relation/edge. EmailTemplateCreatorsTable = "groups" // EmailTemplateCreatorsInverseTable is the table name for the Group entity. @@ -1604,7 +1595,7 @@ func ValidColumn(column string) bool { // // import _ "github.com/theopenlane/core/internal/ent/generated/runtime" var ( - Hooks [86]ent.Hook + Hooks [85]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. @@ -1903,20 +1894,6 @@ func ByDiscussionCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOptio } } -// ByEmailBrandingCreatorsCount orders the results by email_branding_creators count. -func ByEmailBrandingCreatorsCount(opts ...sql.OrderTermOption) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborsCount(s, newEmailBrandingCreatorsStep(), opts...) - } -} - -// ByEmailBrandingCreators orders the results by email_branding_creators terms. -func ByEmailBrandingCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { - return func(s *sql.Selector) { - sqlgraph.OrderByNeighborTerms(s, newEmailBrandingCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) - } -} - // ByEmailTemplateCreatorsCount orders the results by email_template_creators count. func ByEmailTemplateCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -4142,13 +4119,6 @@ func newDiscussionCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, DiscussionCreatorsTable, DiscussionCreatorsColumn), ) } -func newEmailBrandingCreatorsStep() *sqlgraph.Step { - return sqlgraph.NewStep( - sqlgraph.From(Table, FieldID), - sqlgraph.To(EmailBrandingCreatorsInverseTable, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, EmailBrandingCreatorsTable, EmailBrandingCreatorsColumn), - ) -} func newEmailTemplateCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/organization/where.go b/internal/ent/generated/organization/where.go index 5d976763b9..41e7128c8a 100644 --- a/internal/ent/generated/organization/where.go +++ b/internal/ent/generated/organization/where.go @@ -1494,35 +1494,6 @@ func HasDiscussionCreatorsWith(preds ...predicate.Group) predicate.Organization }) } -// HasEmailBrandingCreators applies the HasEdge predicate on the "email_branding_creators" edge. -func HasEmailBrandingCreators() predicate.Organization { - return predicate.Organization(func(s *sql.Selector) { - step := sqlgraph.NewStep( - sqlgraph.From(Table, FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, EmailBrandingCreatorsTable, EmailBrandingCreatorsColumn), - ) - schemaConfig := internal.SchemaConfigFromContext(s.Context()) - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.Group - sqlgraph.HasNeighbors(s, step) - }) -} - -// HasEmailBrandingCreatorsWith applies the HasEdge predicate on the "email_branding_creators" edge with a given conditions (other predicates). -func HasEmailBrandingCreatorsWith(preds ...predicate.Group) predicate.Organization { - return predicate.Organization(func(s *sql.Selector) { - step := newEmailBrandingCreatorsStep() - schemaConfig := internal.SchemaConfigFromContext(s.Context()) - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.Group - sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }) - }) -} - // HasEmailTemplateCreators applies the HasEdge predicate on the "email_template_creators" edge. func HasEmailTemplateCreators() predicate.Organization { return predicate.Organization(func(s *sql.Selector) { diff --git a/internal/ent/generated/organization_create.go b/internal/ent/generated/organization_create.go index 878bc1d279..fb9067c31d 100644 --- a/internal/ent/generated/organization_create.go +++ b/internal/ent/generated/organization_create.go @@ -537,21 +537,6 @@ func (_c *OrganizationCreate) AddDiscussionCreators(v ...*Group) *OrganizationCr return _c.AddDiscussionCreatorIDs(ids...) } -// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. -func (_c *OrganizationCreate) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationCreate { - _c.mutation.AddEmailBrandingCreatorIDs(ids...) - return _c -} - -// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. -func (_c *OrganizationCreate) AddEmailBrandingCreators(v ...*Group) *OrganizationCreate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _c.AddEmailBrandingCreatorIDs(ids...) -} - // AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. func (_c *OrganizationCreate) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationCreate { _c.mutation.AddEmailTemplateCreatorIDs(ids...) @@ -3301,23 +3286,6 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } - if nodes := _c.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _c.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges = append(_spec.Edges, edge) - } if nodes := _c.mutation.EmailTemplateCreatorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/generated/organization_query.go b/internal/ent/generated/organization_query.go index e23fd4368a..239a7476da 100644 --- a/internal/ent/generated/organization_query.go +++ b/internal/ent/generated/organization_query.go @@ -109,231 +109,343 @@ import ( // OrganizationQuery is the builder for querying Organization entities. type OrganizationQuery struct { config - ctx *QueryContext - order []organization.OrderOption - inters []Interceptor - predicates []predicate.Organization - withControlCreators *GroupQuery - withControlImplementationCreators *GroupQuery - withControlObjectiveCreators *GroupQuery - withEvidenceCreators *GroupQuery - withAssetCreators *GroupQuery - withFindingCreators *GroupQuery - withVulnerabilityCreators *GroupQuery - withGroupCreators *GroupQuery - withInternalPolicyCreators *GroupQuery - withMappedControlCreators *GroupQuery - withNarrativeCreators *GroupQuery - withProcedureCreators *GroupQuery - withProgramCreators *GroupQuery - withRiskCreators *GroupQuery - withIdentityHolderCreators *GroupQuery - withScheduledJobCreators *GroupQuery - withStandardCreators *GroupQuery - withTemplateCreators *GroupQuery - withSubprocessorCreators *GroupQuery - withTrustCenterDocCreators *GroupQuery - withTrustCenterSubprocessorCreators *GroupQuery - withActionPlanCreators *GroupQuery - withParent *OrganizationQuery - withChildren *OrganizationQuery - withSetting *OrganizationSettingQuery - withPersonalAccessTokens *PersonalAccessTokenQuery - withAPITokens *APITokenQuery - withEmailTemplates *EmailTemplateQuery - withIntegrationWebhooks *IntegrationWebhookQuery - withIntegrationRuns *IntegrationRunQuery - withNotificationPreferences *NotificationPreferenceQuery - withNotificationTemplates *NotificationTemplateQuery - withUsers *UserQuery - withFiles *FileQuery - withEvents *EventQuery - withSecrets *HushQuery - withAvatarFile *FileQuery - withGroups *GroupQuery - withTemplates *TemplateQuery - withIntegrations *IntegrationQuery - withDocuments *DocumentDataQuery - withOrgSubscriptions *OrgSubscriptionQuery - withOrgProducts *OrgProductQuery - withOrgPrices *OrgPriceQuery - withOrgModules *OrgModuleQuery - withInvites *InviteQuery - withSubscribers *SubscriberQuery - withEntities *EntityQuery - withPlatforms *PlatformQuery - withIdentityHolders *IdentityHolderQuery - withCampaigns *CampaignQuery - withCampaignTargets *CampaignTargetQuery - withEntityTypes *EntityTypeQuery - withContacts *ContactQuery - withNotes *NoteQuery - withTasks *TaskQuery - withPrograms *ProgramQuery - withSystemDetails *SystemDetailQuery - withProcedures *ProcedureQuery - withInternalPolicies *InternalPolicyQuery - withRisks *RiskQuery - withControlObjectives *ControlObjectiveQuery - withNarratives *NarrativeQuery - withControls *ControlQuery - withSubcontrols *SubcontrolQuery - withControlImplementations *ControlImplementationQuery - withMappedControls *MappedControlQuery - withEvidence *EvidenceQuery - withStandards *StandardQuery - withActionPlans *ActionPlanQuery - withCustomDomains *CustomDomainQuery - withJobRunners *JobRunnerQuery - withJobRunnerTokens *JobRunnerTokenQuery - withJobRunnerRegistrationTokens *JobRunnerRegistrationTokenQuery - withDNSVerifications *DNSVerificationQuery - withJobTemplates *JobTemplateQuery - withScheduledJobs *ScheduledJobQuery - withJobResults *JobResultQuery - withScheduledJobRuns *ScheduledJobRunQuery - withTrustCenters *TrustCenterQuery - withAssets *AssetQuery - withScans *ScanQuery - withSLADefinitions *SLADefinitionQuery - withSubprocessors *SubprocessorQuery - withExports *ExportQuery - withTrustCenterWatermarkConfigs *TrustCenterWatermarkConfigQuery - withImpersonationEvents *ImpersonationEventQuery - withAssessments *AssessmentQuery - withAssessmentResponses *AssessmentResponseQuery - withCustomTypeEnums *CustomTypeEnumQuery - withTagDefinitions *TagDefinitionQuery - withRemediations *RemediationQuery - withFindings *FindingQuery - withReviews *ReviewQuery - withVulnerabilities *VulnerabilityQuery - withNotifications *NotificationQuery - withWorkflowDefinitions *WorkflowDefinitionQuery - withWorkflowInstances *WorkflowInstanceQuery - withWorkflowEvents *WorkflowEventQuery - withWorkflowAssignments *WorkflowAssignmentQuery - withWorkflowAssignmentTargets *WorkflowAssignmentTargetQuery - withWorkflowObjectRefs *WorkflowObjectRefQuery - withWorkflowProposals *WorkflowProposalQuery - withDirectoryAccounts *DirectoryAccountQuery - withDirectoryGroups *DirectoryGroupQuery - withDirectoryMemberships *DirectoryMembershipQuery - withDirectorySyncRuns *DirectorySyncRunQuery - withDiscussions *DiscussionQuery - withVendorScoringConfigs *VendorScoringConfigQuery - withVendorRiskScores *VendorRiskScoreQuery - withMembers *OrgMembershipQuery - loadTotal []func(context.Context, []*Organization) error - modifiers []func(*sql.Selector) - withNamedControlCreators map[string]*GroupQuery - withNamedControlImplementationCreators map[string]*GroupQuery - withNamedControlObjectiveCreators map[string]*GroupQuery - withNamedEvidenceCreators map[string]*GroupQuery - withNamedAssetCreators map[string]*GroupQuery - withNamedFindingCreators map[string]*GroupQuery - withNamedVulnerabilityCreators map[string]*GroupQuery - withNamedGroupCreators map[string]*GroupQuery - withNamedInternalPolicyCreators map[string]*GroupQuery - withNamedMappedControlCreators map[string]*GroupQuery - withNamedNarrativeCreators map[string]*GroupQuery - withNamedProcedureCreators map[string]*GroupQuery - withNamedProgramCreators map[string]*GroupQuery - withNamedRiskCreators map[string]*GroupQuery - withNamedIdentityHolderCreators map[string]*GroupQuery - withNamedScheduledJobCreators map[string]*GroupQuery - withNamedStandardCreators map[string]*GroupQuery - withNamedTemplateCreators map[string]*GroupQuery - withNamedSubprocessorCreators map[string]*GroupQuery - withNamedTrustCenterDocCreators map[string]*GroupQuery - withNamedTrustCenterSubprocessorCreators map[string]*GroupQuery - withNamedActionPlanCreators map[string]*GroupQuery - withNamedChildren map[string]*OrganizationQuery - withNamedPersonalAccessTokens map[string]*PersonalAccessTokenQuery - withNamedAPITokens map[string]*APITokenQuery - withNamedEmailTemplates map[string]*EmailTemplateQuery - withNamedIntegrationWebhooks map[string]*IntegrationWebhookQuery - withNamedIntegrationRuns map[string]*IntegrationRunQuery - withNamedNotificationPreferences map[string]*NotificationPreferenceQuery - withNamedNotificationTemplates map[string]*NotificationTemplateQuery - withNamedUsers map[string]*UserQuery - withNamedFiles map[string]*FileQuery - withNamedEvents map[string]*EventQuery - withNamedSecrets map[string]*HushQuery - withNamedGroups map[string]*GroupQuery - withNamedTemplates map[string]*TemplateQuery - withNamedIntegrations map[string]*IntegrationQuery - withNamedDocuments map[string]*DocumentDataQuery - withNamedOrgSubscriptions map[string]*OrgSubscriptionQuery - withNamedOrgProducts map[string]*OrgProductQuery - withNamedOrgPrices map[string]*OrgPriceQuery - withNamedOrgModules map[string]*OrgModuleQuery - withNamedInvites map[string]*InviteQuery - withNamedSubscribers map[string]*SubscriberQuery - withNamedEntities map[string]*EntityQuery - withNamedPlatforms map[string]*PlatformQuery - withNamedIdentityHolders map[string]*IdentityHolderQuery - withNamedCampaigns map[string]*CampaignQuery - withNamedCampaignTargets map[string]*CampaignTargetQuery - withNamedEntityTypes map[string]*EntityTypeQuery - withNamedContacts map[string]*ContactQuery - withNamedNotes map[string]*NoteQuery - withNamedTasks map[string]*TaskQuery - withNamedPrograms map[string]*ProgramQuery - withNamedSystemDetails map[string]*SystemDetailQuery - withNamedProcedures map[string]*ProcedureQuery - withNamedInternalPolicies map[string]*InternalPolicyQuery - withNamedRisks map[string]*RiskQuery - withNamedControlObjectives map[string]*ControlObjectiveQuery - withNamedNarratives map[string]*NarrativeQuery - withNamedControls map[string]*ControlQuery - withNamedSubcontrols map[string]*SubcontrolQuery - withNamedControlImplementations map[string]*ControlImplementationQuery - withNamedMappedControls map[string]*MappedControlQuery - withNamedEvidence map[string]*EvidenceQuery - withNamedStandards map[string]*StandardQuery - withNamedActionPlans map[string]*ActionPlanQuery - withNamedCustomDomains map[string]*CustomDomainQuery - withNamedJobRunners map[string]*JobRunnerQuery - withNamedJobRunnerTokens map[string]*JobRunnerTokenQuery - withNamedJobRunnerRegistrationTokens map[string]*JobRunnerRegistrationTokenQuery - withNamedDNSVerifications map[string]*DNSVerificationQuery - withNamedJobTemplates map[string]*JobTemplateQuery - withNamedScheduledJobs map[string]*ScheduledJobQuery - withNamedJobResults map[string]*JobResultQuery - withNamedScheduledJobRuns map[string]*ScheduledJobRunQuery - withNamedTrustCenters map[string]*TrustCenterQuery - withNamedAssets map[string]*AssetQuery - withNamedScans map[string]*ScanQuery - withNamedSLADefinitions map[string]*SLADefinitionQuery - withNamedSubprocessors map[string]*SubprocessorQuery - withNamedExports map[string]*ExportQuery - withNamedTrustCenterWatermarkConfigs map[string]*TrustCenterWatermarkConfigQuery - withNamedImpersonationEvents map[string]*ImpersonationEventQuery - withNamedAssessments map[string]*AssessmentQuery - withNamedAssessmentResponses map[string]*AssessmentResponseQuery - withNamedCustomTypeEnums map[string]*CustomTypeEnumQuery - withNamedTagDefinitions map[string]*TagDefinitionQuery - withNamedRemediations map[string]*RemediationQuery - withNamedFindings map[string]*FindingQuery - withNamedReviews map[string]*ReviewQuery - withNamedVulnerabilities map[string]*VulnerabilityQuery - withNamedNotifications map[string]*NotificationQuery - withNamedWorkflowDefinitions map[string]*WorkflowDefinitionQuery - withNamedWorkflowInstances map[string]*WorkflowInstanceQuery - withNamedWorkflowEvents map[string]*WorkflowEventQuery - withNamedWorkflowAssignments map[string]*WorkflowAssignmentQuery - withNamedWorkflowAssignmentTargets map[string]*WorkflowAssignmentTargetQuery - withNamedWorkflowObjectRefs map[string]*WorkflowObjectRefQuery - withNamedWorkflowProposals map[string]*WorkflowProposalQuery - withNamedDirectoryAccounts map[string]*DirectoryAccountQuery - withNamedDirectoryGroups map[string]*DirectoryGroupQuery - withNamedDirectoryMemberships map[string]*DirectoryMembershipQuery - withNamedDirectorySyncRuns map[string]*DirectorySyncRunQuery - withNamedDiscussions map[string]*DiscussionQuery - withNamedVendorScoringConfigs map[string]*VendorScoringConfigQuery - withNamedVendorRiskScores map[string]*VendorRiskScoreQuery - withNamedMembers map[string]*OrgMembershipQuery + ctx *QueryContext + order []organization.OrderOption + inters []Interceptor + predicates []predicate.Organization + withActionPlanCreators *GroupQuery + withAPITokenCreators *GroupQuery + withAssessmentCreators *GroupQuery + withAssetCreators *GroupQuery + withCampaignCreators *GroupQuery + withCampaignTargetCreators *GroupQuery + withCheckResultCreators *GroupQuery + withContactCreators *GroupQuery + withControlCreators *GroupQuery + withControlImplementationCreators *GroupQuery + withControlObjectiveCreators *GroupQuery + withCustomTypeEnumCreators *GroupQuery + withDiscussionCreators *GroupQuery + withEmailTemplateCreators *GroupQuery + withEntityCreators *GroupQuery + withEntityTypeCreators *GroupQuery + withEvidenceCreators *GroupQuery + withExportCreators *GroupQuery + withFileCreators *GroupQuery + withFindingCreators *GroupQuery + withGroupCreators *GroupQuery + withIdentityHolderCreators *GroupQuery + withIntegrationCreators *GroupQuery + withIntegrationWebhookCreators *GroupQuery + withInternalPolicyCreators *GroupQuery + withJobRunnerCreators *GroupQuery + withJobRunnerRegistrationTokenCreators *GroupQuery + withJobRunnerTokenCreators *GroupQuery + withJobTemplateCreators *GroupQuery + withMappedControlCreators *GroupQuery + withNarrativeCreators *GroupQuery + withNoteCreators *GroupQuery + withNotificationTemplateCreators *GroupQuery + withOrganizationCreators *GroupQuery + withPlatformCreators *GroupQuery + withProcedureCreators *GroupQuery + withProgramCreators *GroupQuery + withRemediationCreators *GroupQuery + withReviewCreators *GroupQuery + withRiskCreators *GroupQuery + withScanCreators *GroupQuery + withScheduledJobCreators *GroupQuery + withScheduledJobRunCreators *GroupQuery + withStandardCreators *GroupQuery + withSubcontrolCreators *GroupQuery + withSubprocessorCreators *GroupQuery + withSubscriberCreators *GroupQuery + withSystemDetailCreators *GroupQuery + withTagDefinitionCreators *GroupQuery + withTaskCreators *GroupQuery + withTemplateCreators *GroupQuery + withTrustCenterCreators *GroupQuery + withTrustCenterComplianceCreators *GroupQuery + withTrustCenterDocCreators *GroupQuery + withTrustCenterEntityCreators *GroupQuery + withTrustCenterFaqCreators *GroupQuery + withTrustCenterNdaRequestCreators *GroupQuery + withTrustCenterSubprocessorCreators *GroupQuery + withTrustCenterWatermarkConfigCreators *GroupQuery + withUserCreators *GroupQuery + withUserSettingCreators *GroupQuery + withVendorRiskScoreCreators *GroupQuery + withVulnerabilityCreators *GroupQuery + withWorkflowAssignmentCreators *GroupQuery + withWorkflowAssignmentTargetCreators *GroupQuery + withWorkflowDefinitionCreators *GroupQuery + withWorkflowEventCreators *GroupQuery + withWorkflowInstanceCreators *GroupQuery + withWorkflowObjectRefCreators *GroupQuery + withWorkflowProposalCreators *GroupQuery + withCampaignsManager *GroupQuery + withComplianceManager *GroupQuery + withGroupManager *GroupQuery + withPoliciesManager *GroupQuery + withRegistryManager *GroupQuery + withRiskManager *GroupQuery + withTrustCenterManager *GroupQuery + withWorkflowsManager *GroupQuery + withParent *OrganizationQuery + withChildren *OrganizationQuery + withSetting *OrganizationSettingQuery + withPersonalAccessTokens *PersonalAccessTokenQuery + withAPITokens *APITokenQuery + withEmailTemplates *EmailTemplateQuery + withIntegrationWebhooks *IntegrationWebhookQuery + withIntegrationRuns *IntegrationRunQuery + withNotificationPreferences *NotificationPreferenceQuery + withNotificationTemplates *NotificationTemplateQuery + withUsers *UserQuery + withFiles *FileQuery + withEvents *EventQuery + withSecrets *HushQuery + withAvatarFile *FileQuery + withGroups *GroupQuery + withTemplates *TemplateQuery + withIntegrations *IntegrationQuery + withDocuments *DocumentDataQuery + withOrgSubscriptions *OrgSubscriptionQuery + withOrgProducts *OrgProductQuery + withOrgPrices *OrgPriceQuery + withOrgModules *OrgModuleQuery + withInvites *InviteQuery + withSubscribers *SubscriberQuery + withEntities *EntityQuery + withPlatforms *PlatformQuery + withIdentityHolders *IdentityHolderQuery + withCampaigns *CampaignQuery + withCampaignTargets *CampaignTargetQuery + withEntityTypes *EntityTypeQuery + withContacts *ContactQuery + withNotes *NoteQuery + withTasks *TaskQuery + withPrograms *ProgramQuery + withSystemDetails *SystemDetailQuery + withProcedures *ProcedureQuery + withInternalPolicies *InternalPolicyQuery + withRisks *RiskQuery + withControlObjectives *ControlObjectiveQuery + withNarratives *NarrativeQuery + withControls *ControlQuery + withSubcontrols *SubcontrolQuery + withControlImplementations *ControlImplementationQuery + withMappedControls *MappedControlQuery + withEvidence *EvidenceQuery + withStandards *StandardQuery + withActionPlans *ActionPlanQuery + withCustomDomains *CustomDomainQuery + withJobRunners *JobRunnerQuery + withJobRunnerTokens *JobRunnerTokenQuery + withJobRunnerRegistrationTokens *JobRunnerRegistrationTokenQuery + withDNSVerifications *DNSVerificationQuery + withJobTemplates *JobTemplateQuery + withScheduledJobs *ScheduledJobQuery + withJobResults *JobResultQuery + withScheduledJobRuns *ScheduledJobRunQuery + withTrustCenters *TrustCenterQuery + withAssets *AssetQuery + withScans *ScanQuery + withSLADefinitions *SLADefinitionQuery + withSubprocessors *SubprocessorQuery + withExports *ExportQuery + withTrustCenterWatermarkConfigs *TrustCenterWatermarkConfigQuery + withImpersonationEvents *ImpersonationEventQuery + withAssessments *AssessmentQuery + withAssessmentResponses *AssessmentResponseQuery + withCustomTypeEnums *CustomTypeEnumQuery + withTagDefinitions *TagDefinitionQuery + withRemediations *RemediationQuery + withFindings *FindingQuery + withReviews *ReviewQuery + withVulnerabilities *VulnerabilityQuery + withNotifications *NotificationQuery + withWorkflowDefinitions *WorkflowDefinitionQuery + withWorkflowInstances *WorkflowInstanceQuery + withWorkflowEvents *WorkflowEventQuery + withWorkflowAssignments *WorkflowAssignmentQuery + withWorkflowAssignmentTargets *WorkflowAssignmentTargetQuery + withWorkflowObjectRefs *WorkflowObjectRefQuery + withWorkflowProposals *WorkflowProposalQuery + withDirectoryAccounts *DirectoryAccountQuery + withDirectoryGroups *DirectoryGroupQuery + withDirectoryMemberships *DirectoryMembershipQuery + withDirectorySyncRuns *DirectorySyncRunQuery + withDiscussions *DiscussionQuery + withVendorScoringConfigs *VendorScoringConfigQuery + withVendorRiskScores *VendorRiskScoreQuery + withMembers *OrgMembershipQuery + loadTotal []func(context.Context, []*Organization) error + modifiers []func(*sql.Selector) + withNamedActionPlanCreators map[string]*GroupQuery + withNamedAPITokenCreators map[string]*GroupQuery + withNamedAssessmentCreators map[string]*GroupQuery + withNamedAssetCreators map[string]*GroupQuery + withNamedCampaignCreators map[string]*GroupQuery + withNamedCampaignTargetCreators map[string]*GroupQuery + withNamedCheckResultCreators map[string]*GroupQuery + withNamedContactCreators map[string]*GroupQuery + withNamedControlCreators map[string]*GroupQuery + withNamedControlImplementationCreators map[string]*GroupQuery + withNamedControlObjectiveCreators map[string]*GroupQuery + withNamedCustomTypeEnumCreators map[string]*GroupQuery + withNamedDiscussionCreators map[string]*GroupQuery + withNamedEmailTemplateCreators map[string]*GroupQuery + withNamedEntityCreators map[string]*GroupQuery + withNamedEntityTypeCreators map[string]*GroupQuery + withNamedEvidenceCreators map[string]*GroupQuery + withNamedExportCreators map[string]*GroupQuery + withNamedFileCreators map[string]*GroupQuery + withNamedFindingCreators map[string]*GroupQuery + withNamedGroupCreators map[string]*GroupQuery + withNamedIdentityHolderCreators map[string]*GroupQuery + withNamedIntegrationCreators map[string]*GroupQuery + withNamedIntegrationWebhookCreators map[string]*GroupQuery + withNamedInternalPolicyCreators map[string]*GroupQuery + withNamedJobRunnerCreators map[string]*GroupQuery + withNamedJobRunnerRegistrationTokenCreators map[string]*GroupQuery + withNamedJobRunnerTokenCreators map[string]*GroupQuery + withNamedJobTemplateCreators map[string]*GroupQuery + withNamedMappedControlCreators map[string]*GroupQuery + withNamedNarrativeCreators map[string]*GroupQuery + withNamedNoteCreators map[string]*GroupQuery + withNamedNotificationTemplateCreators map[string]*GroupQuery + withNamedOrganizationCreators map[string]*GroupQuery + withNamedPlatformCreators map[string]*GroupQuery + withNamedProcedureCreators map[string]*GroupQuery + withNamedProgramCreators map[string]*GroupQuery + withNamedRemediationCreators map[string]*GroupQuery + withNamedReviewCreators map[string]*GroupQuery + withNamedRiskCreators map[string]*GroupQuery + withNamedScanCreators map[string]*GroupQuery + withNamedScheduledJobCreators map[string]*GroupQuery + withNamedScheduledJobRunCreators map[string]*GroupQuery + withNamedStandardCreators map[string]*GroupQuery + withNamedSubcontrolCreators map[string]*GroupQuery + withNamedSubprocessorCreators map[string]*GroupQuery + withNamedSubscriberCreators map[string]*GroupQuery + withNamedSystemDetailCreators map[string]*GroupQuery + withNamedTagDefinitionCreators map[string]*GroupQuery + withNamedTaskCreators map[string]*GroupQuery + withNamedTemplateCreators map[string]*GroupQuery + withNamedTrustCenterCreators map[string]*GroupQuery + withNamedTrustCenterComplianceCreators map[string]*GroupQuery + withNamedTrustCenterDocCreators map[string]*GroupQuery + withNamedTrustCenterEntityCreators map[string]*GroupQuery + withNamedTrustCenterFaqCreators map[string]*GroupQuery + withNamedTrustCenterNdaRequestCreators map[string]*GroupQuery + withNamedTrustCenterSubprocessorCreators map[string]*GroupQuery + withNamedTrustCenterWatermarkConfigCreators map[string]*GroupQuery + withNamedUserCreators map[string]*GroupQuery + withNamedUserSettingCreators map[string]*GroupQuery + withNamedVendorRiskScoreCreators map[string]*GroupQuery + withNamedVulnerabilityCreators map[string]*GroupQuery + withNamedWorkflowAssignmentCreators map[string]*GroupQuery + withNamedWorkflowAssignmentTargetCreators map[string]*GroupQuery + withNamedWorkflowDefinitionCreators map[string]*GroupQuery + withNamedWorkflowEventCreators map[string]*GroupQuery + withNamedWorkflowInstanceCreators map[string]*GroupQuery + withNamedWorkflowObjectRefCreators map[string]*GroupQuery + withNamedWorkflowProposalCreators map[string]*GroupQuery + withNamedCampaignsManager map[string]*GroupQuery + withNamedComplianceManager map[string]*GroupQuery + withNamedGroupManager map[string]*GroupQuery + withNamedPoliciesManager map[string]*GroupQuery + withNamedRegistryManager map[string]*GroupQuery + withNamedRiskManager map[string]*GroupQuery + withNamedTrustCenterManager map[string]*GroupQuery + withNamedWorkflowsManager map[string]*GroupQuery + withNamedChildren map[string]*OrganizationQuery + withNamedPersonalAccessTokens map[string]*PersonalAccessTokenQuery + withNamedAPITokens map[string]*APITokenQuery + withNamedEmailTemplates map[string]*EmailTemplateQuery + withNamedIntegrationWebhooks map[string]*IntegrationWebhookQuery + withNamedIntegrationRuns map[string]*IntegrationRunQuery + withNamedNotificationPreferences map[string]*NotificationPreferenceQuery + withNamedNotificationTemplates map[string]*NotificationTemplateQuery + withNamedUsers map[string]*UserQuery + withNamedFiles map[string]*FileQuery + withNamedEvents map[string]*EventQuery + withNamedSecrets map[string]*HushQuery + withNamedGroups map[string]*GroupQuery + withNamedTemplates map[string]*TemplateQuery + withNamedIntegrations map[string]*IntegrationQuery + withNamedDocuments map[string]*DocumentDataQuery + withNamedOrgSubscriptions map[string]*OrgSubscriptionQuery + withNamedOrgProducts map[string]*OrgProductQuery + withNamedOrgPrices map[string]*OrgPriceQuery + withNamedOrgModules map[string]*OrgModuleQuery + withNamedInvites map[string]*InviteQuery + withNamedSubscribers map[string]*SubscriberQuery + withNamedEntities map[string]*EntityQuery + withNamedPlatforms map[string]*PlatformQuery + withNamedIdentityHolders map[string]*IdentityHolderQuery + withNamedCampaigns map[string]*CampaignQuery + withNamedCampaignTargets map[string]*CampaignTargetQuery + withNamedEntityTypes map[string]*EntityTypeQuery + withNamedContacts map[string]*ContactQuery + withNamedNotes map[string]*NoteQuery + withNamedTasks map[string]*TaskQuery + withNamedPrograms map[string]*ProgramQuery + withNamedSystemDetails map[string]*SystemDetailQuery + withNamedProcedures map[string]*ProcedureQuery + withNamedInternalPolicies map[string]*InternalPolicyQuery + withNamedRisks map[string]*RiskQuery + withNamedControlObjectives map[string]*ControlObjectiveQuery + withNamedNarratives map[string]*NarrativeQuery + withNamedControls map[string]*ControlQuery + withNamedSubcontrols map[string]*SubcontrolQuery + withNamedControlImplementations map[string]*ControlImplementationQuery + withNamedMappedControls map[string]*MappedControlQuery + withNamedEvidence map[string]*EvidenceQuery + withNamedStandards map[string]*StandardQuery + withNamedActionPlans map[string]*ActionPlanQuery + withNamedCustomDomains map[string]*CustomDomainQuery + withNamedJobRunners map[string]*JobRunnerQuery + withNamedJobRunnerTokens map[string]*JobRunnerTokenQuery + withNamedJobRunnerRegistrationTokens map[string]*JobRunnerRegistrationTokenQuery + withNamedDNSVerifications map[string]*DNSVerificationQuery + withNamedJobTemplates map[string]*JobTemplateQuery + withNamedScheduledJobs map[string]*ScheduledJobQuery + withNamedJobResults map[string]*JobResultQuery + withNamedScheduledJobRuns map[string]*ScheduledJobRunQuery + withNamedTrustCenters map[string]*TrustCenterQuery + withNamedAssets map[string]*AssetQuery + withNamedScans map[string]*ScanQuery + withNamedSLADefinitions map[string]*SLADefinitionQuery + withNamedSubprocessors map[string]*SubprocessorQuery + withNamedExports map[string]*ExportQuery + withNamedTrustCenterWatermarkConfigs map[string]*TrustCenterWatermarkConfigQuery + withNamedImpersonationEvents map[string]*ImpersonationEventQuery + withNamedAssessments map[string]*AssessmentQuery + withNamedAssessmentResponses map[string]*AssessmentResponseQuery + withNamedCustomTypeEnums map[string]*CustomTypeEnumQuery + withNamedTagDefinitions map[string]*TagDefinitionQuery + withNamedRemediations map[string]*RemediationQuery + withNamedFindings map[string]*FindingQuery + withNamedReviews map[string]*ReviewQuery + withNamedVulnerabilities map[string]*VulnerabilityQuery + withNamedNotifications map[string]*NotificationQuery + withNamedWorkflowDefinitions map[string]*WorkflowDefinitionQuery + withNamedWorkflowInstances map[string]*WorkflowInstanceQuery + withNamedWorkflowEvents map[string]*WorkflowEventQuery + withNamedWorkflowAssignments map[string]*WorkflowAssignmentQuery + withNamedWorkflowAssignmentTargets map[string]*WorkflowAssignmentTargetQuery + withNamedWorkflowObjectRefs map[string]*WorkflowObjectRefQuery + withNamedWorkflowProposals map[string]*WorkflowProposalQuery + withNamedDirectoryAccounts map[string]*DirectoryAccountQuery + withNamedDirectoryGroups map[string]*DirectoryGroupQuery + withNamedDirectoryMemberships map[string]*DirectoryMembershipQuery + withNamedDirectorySyncRuns map[string]*DirectorySyncRunQuery + withNamedDiscussions map[string]*DiscussionQuery + withNamedVendorScoringConfigs map[string]*VendorScoringConfigQuery + withNamedVendorRiskScores map[string]*VendorRiskScoreQuery + withNamedMembers map[string]*OrgMembershipQuery // intermediate query (i.e. traversal path). sql *sql.Selector path func(context.Context) (*sql.Selector, error) @@ -370,8 +482,8 @@ func (_q *OrganizationQuery) Order(o ...organization.OrderOption) *OrganizationQ return _q } -// QueryControlCreators chains the current query on the "control_creators" edge. -func (_q *OrganizationQuery) QueryControlCreators() *GroupQuery { +// QueryActionPlanCreators chains the current query on the "action_plan_creators" edge. +func (_q *OrganizationQuery) QueryActionPlanCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -384,7 +496,7 @@ func (_q *OrganizationQuery) QueryControlCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlCreatorsTable, organization.ControlCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlanCreatorsTable, organization.ActionPlanCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -395,8 +507,8 @@ func (_q *OrganizationQuery) QueryControlCreators() *GroupQuery { return query } -// QueryControlImplementationCreators chains the current query on the "control_implementation_creators" edge. -func (_q *OrganizationQuery) QueryControlImplementationCreators() *GroupQuery { +// QueryAPITokenCreators chains the current query on the "api_token_creators" edge. +func (_q *OrganizationQuery) QueryAPITokenCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -409,7 +521,7 @@ func (_q *OrganizationQuery) QueryControlImplementationCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlImplementationCreatorsTable, organization.ControlImplementationCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokenCreatorsTable, organization.APITokenCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -420,8 +532,8 @@ func (_q *OrganizationQuery) QueryControlImplementationCreators() *GroupQuery { return query } -// QueryControlObjectiveCreators chains the current query on the "control_objective_creators" edge. -func (_q *OrganizationQuery) QueryControlObjectiveCreators() *GroupQuery { +// QueryAssessmentCreators chains the current query on the "assessment_creators" edge. +func (_q *OrganizationQuery) QueryAssessmentCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -434,7 +546,7 @@ func (_q *OrganizationQuery) QueryControlObjectiveCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlObjectiveCreatorsTable, organization.ControlObjectiveCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentCreatorsTable, organization.AssessmentCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -445,8 +557,8 @@ func (_q *OrganizationQuery) QueryControlObjectiveCreators() *GroupQuery { return query } -// QueryEvidenceCreators chains the current query on the "evidence_creators" edge. -func (_q *OrganizationQuery) QueryEvidenceCreators() *GroupQuery { +// QueryAssetCreators chains the current query on the "asset_creators" edge. +func (_q *OrganizationQuery) QueryAssetCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -459,7 +571,7 @@ func (_q *OrganizationQuery) QueryEvidenceCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceCreatorsTable, organization.EvidenceCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetCreatorsTable, organization.AssetCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -470,8 +582,8 @@ func (_q *OrganizationQuery) QueryEvidenceCreators() *GroupQuery { return query } -// QueryAssetCreators chains the current query on the "asset_creators" edge. -func (_q *OrganizationQuery) QueryAssetCreators() *GroupQuery { +// QueryCampaignCreators chains the current query on the "campaign_creators" edge. +func (_q *OrganizationQuery) QueryCampaignCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -484,7 +596,7 @@ func (_q *OrganizationQuery) QueryAssetCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetCreatorsTable, organization.AssetCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignCreatorsTable, organization.CampaignCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -495,8 +607,8 @@ func (_q *OrganizationQuery) QueryAssetCreators() *GroupQuery { return query } -// QueryFindingCreators chains the current query on the "finding_creators" edge. -func (_q *OrganizationQuery) QueryFindingCreators() *GroupQuery { +// QueryCampaignTargetCreators chains the current query on the "campaign_target_creators" edge. +func (_q *OrganizationQuery) QueryCampaignTargetCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -509,7 +621,7 @@ func (_q *OrganizationQuery) QueryFindingCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingCreatorsTable, organization.FindingCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignTargetCreatorsTable, organization.CampaignTargetCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -520,8 +632,8 @@ func (_q *OrganizationQuery) QueryFindingCreators() *GroupQuery { return query } -// QueryVulnerabilityCreators chains the current query on the "vulnerability_creators" edge. -func (_q *OrganizationQuery) QueryVulnerabilityCreators() *GroupQuery { +// QueryCheckResultCreators chains the current query on the "check_result_creators" edge. +func (_q *OrganizationQuery) QueryCheckResultCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -534,7 +646,7 @@ func (_q *OrganizationQuery) QueryVulnerabilityCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilityCreatorsTable, organization.VulnerabilityCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CheckResultCreatorsTable, organization.CheckResultCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -545,8 +657,8 @@ func (_q *OrganizationQuery) QueryVulnerabilityCreators() *GroupQuery { return query } -// QueryGroupCreators chains the current query on the "group_creators" edge. -func (_q *OrganizationQuery) QueryGroupCreators() *GroupQuery { +// QueryContactCreators chains the current query on the "contact_creators" edge. +func (_q *OrganizationQuery) QueryContactCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -559,7 +671,7 @@ func (_q *OrganizationQuery) QueryGroupCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupCreatorsTable, organization.GroupCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactCreatorsTable, organization.ContactCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -570,8 +682,8 @@ func (_q *OrganizationQuery) QueryGroupCreators() *GroupQuery { return query } -// QueryInternalPolicyCreators chains the current query on the "internal_policy_creators" edge. -func (_q *OrganizationQuery) QueryInternalPolicyCreators() *GroupQuery { +// QueryControlCreators chains the current query on the "control_creators" edge. +func (_q *OrganizationQuery) QueryControlCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -584,7 +696,7 @@ func (_q *OrganizationQuery) QueryInternalPolicyCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPolicyCreatorsTable, organization.InternalPolicyCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlCreatorsTable, organization.ControlCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -595,8 +707,8 @@ func (_q *OrganizationQuery) QueryInternalPolicyCreators() *GroupQuery { return query } -// QueryMappedControlCreators chains the current query on the "mapped_control_creators" edge. -func (_q *OrganizationQuery) QueryMappedControlCreators() *GroupQuery { +// QueryControlImplementationCreators chains the current query on the "control_implementation_creators" edge. +func (_q *OrganizationQuery) QueryControlImplementationCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -609,7 +721,7 @@ func (_q *OrganizationQuery) QueryMappedControlCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlCreatorsTable, organization.MappedControlCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlImplementationCreatorsTable, organization.ControlImplementationCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -620,8 +732,8 @@ func (_q *OrganizationQuery) QueryMappedControlCreators() *GroupQuery { return query } -// QueryNarrativeCreators chains the current query on the "narrative_creators" edge. -func (_q *OrganizationQuery) QueryNarrativeCreators() *GroupQuery { +// QueryControlObjectiveCreators chains the current query on the "control_objective_creators" edge. +func (_q *OrganizationQuery) QueryControlObjectiveCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -634,7 +746,7 @@ func (_q *OrganizationQuery) QueryNarrativeCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativeCreatorsTable, organization.NarrativeCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlObjectiveCreatorsTable, organization.ControlObjectiveCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -645,8 +757,8 @@ func (_q *OrganizationQuery) QueryNarrativeCreators() *GroupQuery { return query } -// QueryProcedureCreators chains the current query on the "procedure_creators" edge. -func (_q *OrganizationQuery) QueryProcedureCreators() *GroupQuery { +// QueryCustomTypeEnumCreators chains the current query on the "custom_type_enum_creators" edge. +func (_q *OrganizationQuery) QueryCustomTypeEnumCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -659,7 +771,7 @@ func (_q *OrganizationQuery) QueryProcedureCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProcedureCreatorsTable, organization.ProcedureCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomTypeEnumCreatorsTable, organization.CustomTypeEnumCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -670,8 +782,8 @@ func (_q *OrganizationQuery) QueryProcedureCreators() *GroupQuery { return query } -// QueryProgramCreators chains the current query on the "program_creators" edge. -func (_q *OrganizationQuery) QueryProgramCreators() *GroupQuery { +// QueryDiscussionCreators chains the current query on the "discussion_creators" edge. +func (_q *OrganizationQuery) QueryDiscussionCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -684,7 +796,7 @@ func (_q *OrganizationQuery) QueryProgramCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramCreatorsTable, organization.ProgramCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DiscussionCreatorsTable, organization.DiscussionCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -695,8 +807,8 @@ func (_q *OrganizationQuery) QueryProgramCreators() *GroupQuery { return query } -// QueryRiskCreators chains the current query on the "risk_creators" edge. -func (_q *OrganizationQuery) QueryRiskCreators() *GroupQuery { +// QueryEmailTemplateCreators chains the current query on the "email_template_creators" edge. +func (_q *OrganizationQuery) QueryEmailTemplateCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -709,7 +821,7 @@ func (_q *OrganizationQuery) QueryRiskCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskCreatorsTable, organization.RiskCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailTemplateCreatorsTable, organization.EmailTemplateCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -720,8 +832,8 @@ func (_q *OrganizationQuery) QueryRiskCreators() *GroupQuery { return query } -// QueryIdentityHolderCreators chains the current query on the "identity_holder_creators" edge. -func (_q *OrganizationQuery) QueryIdentityHolderCreators() *GroupQuery { +// QueryEntityCreators chains the current query on the "entity_creators" edge. +func (_q *OrganizationQuery) QueryEntityCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -734,7 +846,7 @@ func (_q *OrganizationQuery) QueryIdentityHolderCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IdentityHolderCreatorsTable, organization.IdentityHolderCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityCreatorsTable, organization.EntityCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -745,8 +857,8 @@ func (_q *OrganizationQuery) QueryIdentityHolderCreators() *GroupQuery { return query } -// QueryScheduledJobCreators chains the current query on the "scheduled_job_creators" edge. -func (_q *OrganizationQuery) QueryScheduledJobCreators() *GroupQuery { +// QueryEntityTypeCreators chains the current query on the "entity_type_creators" edge. +func (_q *OrganizationQuery) QueryEntityTypeCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -759,7 +871,7 @@ func (_q *OrganizationQuery) QueryScheduledJobCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobCreatorsTable, organization.ScheduledJobCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityTypeCreatorsTable, organization.EntityTypeCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -770,8 +882,8 @@ func (_q *OrganizationQuery) QueryScheduledJobCreators() *GroupQuery { return query } -// QueryStandardCreators chains the current query on the "standard_creators" edge. -func (_q *OrganizationQuery) QueryStandardCreators() *GroupQuery { +// QueryEvidenceCreators chains the current query on the "evidence_creators" edge. +func (_q *OrganizationQuery) QueryEvidenceCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -784,7 +896,7 @@ func (_q *OrganizationQuery) QueryStandardCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardCreatorsTable, organization.StandardCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceCreatorsTable, organization.EvidenceCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -795,8 +907,8 @@ func (_q *OrganizationQuery) QueryStandardCreators() *GroupQuery { return query } -// QueryTemplateCreators chains the current query on the "template_creators" edge. -func (_q *OrganizationQuery) QueryTemplateCreators() *GroupQuery { +// QueryExportCreators chains the current query on the "export_creators" edge. +func (_q *OrganizationQuery) QueryExportCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -809,7 +921,7 @@ func (_q *OrganizationQuery) QueryTemplateCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplateCreatorsTable, organization.TemplateCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ExportCreatorsTable, organization.ExportCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -820,8 +932,8 @@ func (_q *OrganizationQuery) QueryTemplateCreators() *GroupQuery { return query } -// QuerySubprocessorCreators chains the current query on the "subprocessor_creators" edge. -func (_q *OrganizationQuery) QuerySubprocessorCreators() *GroupQuery { +// QueryFileCreators chains the current query on the "file_creators" edge. +func (_q *OrganizationQuery) QueryFileCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -834,7 +946,7 @@ func (_q *OrganizationQuery) QuerySubprocessorCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorCreatorsTable, organization.SubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FileCreatorsTable, organization.FileCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -845,8 +957,8 @@ func (_q *OrganizationQuery) QuerySubprocessorCreators() *GroupQuery { return query } -// QueryTrustCenterDocCreators chains the current query on the "trust_center_doc_creators" edge. -func (_q *OrganizationQuery) QueryTrustCenterDocCreators() *GroupQuery { +// QueryFindingCreators chains the current query on the "finding_creators" edge. +func (_q *OrganizationQuery) QueryFindingCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -859,7 +971,7 @@ func (_q *OrganizationQuery) QueryTrustCenterDocCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterDocCreatorsTable, organization.TrustCenterDocCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingCreatorsTable, organization.FindingCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -870,8 +982,8 @@ func (_q *OrganizationQuery) QueryTrustCenterDocCreators() *GroupQuery { return query } -// QueryTrustCenterSubprocessorCreators chains the current query on the "trust_center_subprocessor_creators" edge. -func (_q *OrganizationQuery) QueryTrustCenterSubprocessorCreators() *GroupQuery { +// QueryGroupCreators chains the current query on the "group_creators" edge. +func (_q *OrganizationQuery) QueryGroupCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -884,7 +996,7 @@ func (_q *OrganizationQuery) QueryTrustCenterSubprocessorCreators() *GroupQuery step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterSubprocessorCreatorsTable, organization.TrustCenterSubprocessorCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupCreatorsTable, organization.GroupCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -895,8 +1007,8 @@ func (_q *OrganizationQuery) QueryTrustCenterSubprocessorCreators() *GroupQuery return query } -// QueryActionPlanCreators chains the current query on the "action_plan_creators" edge. -func (_q *OrganizationQuery) QueryActionPlanCreators() *GroupQuery { +// QueryIdentityHolderCreators chains the current query on the "identity_holder_creators" edge. +func (_q *OrganizationQuery) QueryIdentityHolderCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -909,7 +1021,7 @@ func (_q *OrganizationQuery) QueryActionPlanCreators() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlanCreatorsTable, organization.ActionPlanCreatorsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IdentityHolderCreatorsTable, organization.IdentityHolderCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -920,9 +1032,9 @@ func (_q *OrganizationQuery) QueryActionPlanCreators() *GroupQuery { return query } -// QueryParent chains the current query on the "parent" edge. -func (_q *OrganizationQuery) QueryParent() *OrganizationQuery { - query := (&OrganizationClient{config: _q.config}).Query() +// QueryIntegrationCreators chains the current query on the "integration_creators" edge. +func (_q *OrganizationQuery) QueryIntegrationCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -933,21 +1045,21 @@ func (_q *OrganizationQuery) QueryParent() *OrganizationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, organization.ParentTable, organization.ParentColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationCreatorsTable, organization.IntegrationCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Organization + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryChildren chains the current query on the "children" edge. -func (_q *OrganizationQuery) QueryChildren() *OrganizationQuery { - query := (&OrganizationClient{config: _q.config}).Query() +// QueryIntegrationWebhookCreators chains the current query on the "integration_webhook_creators" edge. +func (_q *OrganizationQuery) QueryIntegrationWebhookCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -958,21 +1070,21 @@ func (_q *OrganizationQuery) QueryChildren() *OrganizationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ChildrenTable, organization.ChildrenColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationWebhookCreatorsTable, organization.IntegrationWebhookCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Organization + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySetting chains the current query on the "setting" edge. -func (_q *OrganizationQuery) QuerySetting() *OrganizationSettingQuery { - query := (&OrganizationSettingClient{config: _q.config}).Query() +// QueryInternalPolicyCreators chains the current query on the "internal_policy_creators" edge. +func (_q *OrganizationQuery) QueryInternalPolicyCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -983,21 +1095,21 @@ func (_q *OrganizationQuery) QuerySetting() *OrganizationSettingQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), - sqlgraph.Edge(sqlgraph.O2O, false, organization.SettingTable, organization.SettingColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPolicyCreatorsTable, organization.InternalPolicyCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrganizationSetting - step.Edge.Schema = schemaConfig.OrganizationSetting + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryPersonalAccessTokens chains the current query on the "personal_access_tokens" edge. -func (_q *OrganizationQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQuery { - query := (&PersonalAccessTokenClient{config: _q.config}).Query() +// QueryJobRunnerCreators chains the current query on the "job_runner_creators" edge. +func (_q *OrganizationQuery) QueryJobRunnerCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1008,21 +1120,21 @@ func (_q *OrganizationQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQue } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.PersonalAccessTokensTable, organization.PersonalAccessTokensPrimaryKey...), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerCreatorsTable, organization.JobRunnerCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.PersonalAccessToken - step.Edge.Schema = schemaConfig.OrganizationPersonalAccessTokens + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryAPITokens chains the current query on the "api_tokens" edge. -func (_q *OrganizationQuery) QueryAPITokens() *APITokenQuery { - query := (&APITokenClient{config: _q.config}).Query() +// QueryJobRunnerRegistrationTokenCreators chains the current query on the "job_runner_registration_token_creators" edge. +func (_q *OrganizationQuery) QueryJobRunnerRegistrationTokenCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1033,21 +1145,21 @@ func (_q *OrganizationQuery) QueryAPITokens() *APITokenQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(apitoken.Table, apitoken.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokensTable, organization.APITokensColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerRegistrationTokenCreatorsTable, organization.JobRunnerRegistrationTokenCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.APIToken - step.Edge.Schema = schemaConfig.APIToken + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryEmailTemplates chains the current query on the "email_templates" edge. -func (_q *OrganizationQuery) QueryEmailTemplates() *EmailTemplateQuery { - query := (&EmailTemplateClient{config: _q.config}).Query() +// QueryJobRunnerTokenCreators chains the current query on the "job_runner_token_creators" edge. +func (_q *OrganizationQuery) QueryJobRunnerTokenCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1058,21 +1170,21 @@ func (_q *OrganizationQuery) QueryEmailTemplates() *EmailTemplateQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(emailtemplate.Table, emailtemplate.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailTemplatesTable, organization.EmailTemplatesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerTokenCreatorsTable, organization.JobRunnerTokenCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.EmailTemplate - step.Edge.Schema = schemaConfig.EmailTemplate + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryIntegrationWebhooks chains the current query on the "integration_webhooks" edge. -func (_q *OrganizationQuery) QueryIntegrationWebhooks() *IntegrationWebhookQuery { - query := (&IntegrationWebhookClient{config: _q.config}).Query() +// QueryJobTemplateCreators chains the current query on the "job_template_creators" edge. +func (_q *OrganizationQuery) QueryJobTemplateCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1083,21 +1195,21 @@ func (_q *OrganizationQuery) QueryIntegrationWebhooks() *IntegrationWebhookQuery } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(integrationwebhook.Table, integrationwebhook.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationWebhooksTable, organization.IntegrationWebhooksColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobTemplateCreatorsTable, organization.JobTemplateCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.IntegrationWebhook - step.Edge.Schema = schemaConfig.IntegrationWebhook + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryIntegrationRuns chains the current query on the "integration_runs" edge. -func (_q *OrganizationQuery) QueryIntegrationRuns() *IntegrationRunQuery { - query := (&IntegrationRunClient{config: _q.config}).Query() +// QueryMappedControlCreators chains the current query on the "mapped_control_creators" edge. +func (_q *OrganizationQuery) QueryMappedControlCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1108,21 +1220,21 @@ func (_q *OrganizationQuery) QueryIntegrationRuns() *IntegrationRunQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(integrationrun.Table, integrationrun.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationRunsTable, organization.IntegrationRunsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlCreatorsTable, organization.MappedControlCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.IntegrationRun - step.Edge.Schema = schemaConfig.IntegrationRun + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryNotificationPreferences chains the current query on the "notification_preferences" edge. -func (_q *OrganizationQuery) QueryNotificationPreferences() *NotificationPreferenceQuery { - query := (&NotificationPreferenceClient{config: _q.config}).Query() +// QueryNarrativeCreators chains the current query on the "narrative_creators" edge. +func (_q *OrganizationQuery) QueryNarrativeCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1133,21 +1245,21 @@ func (_q *OrganizationQuery) QueryNotificationPreferences() *NotificationPrefere } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(notificationpreference.Table, notificationpreference.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationPreferencesTable, organization.NotificationPreferencesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativeCreatorsTable, organization.NarrativeCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.NotificationPreference - step.Edge.Schema = schemaConfig.NotificationPreference + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryNotificationTemplates chains the current query on the "notification_templates" edge. -func (_q *OrganizationQuery) QueryNotificationTemplates() *NotificationTemplateQuery { - query := (&NotificationTemplateClient{config: _q.config}).Query() +// QueryNoteCreators chains the current query on the "note_creators" edge. +func (_q *OrganizationQuery) QueryNoteCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1158,21 +1270,21 @@ func (_q *OrganizationQuery) QueryNotificationTemplates() *NotificationTemplateQ } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(notificationtemplate.Table, notificationtemplate.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationTemplatesTable, organization.NotificationTemplatesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NoteCreatorsTable, organization.NoteCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.NotificationTemplate - step.Edge.Schema = schemaConfig.NotificationTemplate + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryUsers chains the current query on the "users" edge. -func (_q *OrganizationQuery) QueryUsers() *UserQuery { - query := (&UserClient{config: _q.config}).Query() +// QueryNotificationTemplateCreators chains the current query on the "notification_template_creators" edge. +func (_q *OrganizationQuery) QueryNotificationTemplateCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1183,21 +1295,21 @@ func (_q *OrganizationQuery) QueryUsers() *UserQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, organization.UsersTable, organization.UsersPrimaryKey...), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationTemplateCreatorsTable, organization.NotificationTemplateCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.OrgMembership + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryFiles chains the current query on the "files" edge. -func (_q *OrganizationQuery) QueryFiles() *FileQuery { - query := (&FileClient{config: _q.config}).Query() +// QueryOrganizationCreators chains the current query on the "organization_creators" edge. +func (_q *OrganizationQuery) QueryOrganizationCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1208,21 +1320,21 @@ func (_q *OrganizationQuery) QueryFiles() *FileQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.FilesTable, organization.FilesPrimaryKey...), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrganizationCreatorsTable, organization.OrganizationCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.OrganizationFiles + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryEvents chains the current query on the "events" edge. -func (_q *OrganizationQuery) QueryEvents() *EventQuery { - query := (&EventClient{config: _q.config}).Query() +// QueryPlatformCreators chains the current query on the "platform_creators" edge. +func (_q *OrganizationQuery) QueryPlatformCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1233,21 +1345,21 @@ func (_q *OrganizationQuery) QueryEvents() *EventQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.EventsTable, organization.EventsPrimaryKey...), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.PlatformCreatorsTable, organization.PlatformCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.OrganizationEvents + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySecrets chains the current query on the "secrets" edge. -func (_q *OrganizationQuery) QuerySecrets() *HushQuery { - query := (&HushClient{config: _q.config}).Query() +// QueryProcedureCreators chains the current query on the "procedure_creators" edge. +func (_q *OrganizationQuery) QueryProcedureCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1258,21 +1370,21 @@ func (_q *OrganizationQuery) QuerySecrets() *HushQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(hush.Table, hush.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SecretsTable, organization.SecretsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProcedureCreatorsTable, organization.ProcedureCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Hush - step.Edge.Schema = schemaConfig.Hush + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryAvatarFile chains the current query on the "avatar_file" edge. -func (_q *OrganizationQuery) QueryAvatarFile() *FileQuery { - query := (&FileClient{config: _q.config}).Query() +// QueryProgramCreators chains the current query on the "program_creators" edge. +func (_q *OrganizationQuery) QueryProgramCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1283,20 +1395,20 @@ func (_q *OrganizationQuery) QueryAvatarFile() *FileQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, organization.AvatarFileTable, organization.AvatarFileColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramCreatorsTable, organization.ProgramCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.Organization + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryGroups chains the current query on the "groups" edge. -func (_q *OrganizationQuery) QueryGroups() *GroupQuery { +// QueryRemediationCreators chains the current query on the "remediation_creators" edge. +func (_q *OrganizationQuery) QueryRemediationCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { @@ -1309,7 +1421,7 @@ func (_q *OrganizationQuery) QueryGroups() *GroupQuery { step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupsTable, organization.GroupsColumn), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RemediationCreatorsTable, organization.RemediationCreatorsColumn), ) schemaConfig := _q.schemaConfig step.To.Schema = schemaConfig.Group @@ -1320,9 +1432,9 @@ func (_q *OrganizationQuery) QueryGroups() *GroupQuery { return query } -// QueryTemplates chains the current query on the "templates" edge. -func (_q *OrganizationQuery) QueryTemplates() *TemplateQuery { - query := (&TemplateClient{config: _q.config}).Query() +// QueryReviewCreators chains the current query on the "review_creators" edge. +func (_q *OrganizationQuery) QueryReviewCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1333,21 +1445,21 @@ func (_q *OrganizationQuery) QueryTemplates() *TemplateQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(template.Table, template.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplatesTable, organization.TemplatesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ReviewCreatorsTable, organization.ReviewCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Template - step.Edge.Schema = schemaConfig.Template + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryIntegrations chains the current query on the "integrations" edge. -func (_q *OrganizationQuery) QueryIntegrations() *IntegrationQuery { - query := (&IntegrationClient{config: _q.config}).Query() +// QueryRiskCreators chains the current query on the "risk_creators" edge. +func (_q *OrganizationQuery) QueryRiskCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1358,21 +1470,21 @@ func (_q *OrganizationQuery) QueryIntegrations() *IntegrationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationsTable, organization.IntegrationsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskCreatorsTable, organization.RiskCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.Integration + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDocuments chains the current query on the "documents" edge. -func (_q *OrganizationQuery) QueryDocuments() *DocumentDataQuery { - query := (&DocumentDataClient{config: _q.config}).Query() +// QueryScanCreators chains the current query on the "scan_creators" edge. +func (_q *OrganizationQuery) QueryScanCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1383,21 +1495,21 @@ func (_q *OrganizationQuery) QueryDocuments() *DocumentDataQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(documentdata.Table, documentdata.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DocumentsTable, organization.DocumentsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScanCreatorsTable, organization.ScanCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DocumentData - step.Edge.Schema = schemaConfig.DocumentData + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryOrgSubscriptions chains the current query on the "org_subscriptions" edge. -func (_q *OrganizationQuery) QueryOrgSubscriptions() *OrgSubscriptionQuery { - query := (&OrgSubscriptionClient{config: _q.config}).Query() +// QueryScheduledJobCreators chains the current query on the "scheduled_job_creators" edge. +func (_q *OrganizationQuery) QueryScheduledJobCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1408,21 +1520,21 @@ func (_q *OrganizationQuery) QueryOrgSubscriptions() *OrgSubscriptionQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(orgsubscription.Table, orgsubscription.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgSubscriptionsTable, organization.OrgSubscriptionsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobCreatorsTable, organization.ScheduledJobCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrgSubscription - step.Edge.Schema = schemaConfig.OrgSubscription + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryOrgProducts chains the current query on the "org_products" edge. -func (_q *OrganizationQuery) QueryOrgProducts() *OrgProductQuery { - query := (&OrgProductClient{config: _q.config}).Query() +// QueryScheduledJobRunCreators chains the current query on the "scheduled_job_run_creators" edge. +func (_q *OrganizationQuery) QueryScheduledJobRunCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1433,21 +1545,21 @@ func (_q *OrganizationQuery) QueryOrgProducts() *OrgProductQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(orgproduct.Table, orgproduct.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgProductsTable, organization.OrgProductsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobRunCreatorsTable, organization.ScheduledJobRunCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrgProduct - step.Edge.Schema = schemaConfig.OrgProduct + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryOrgPrices chains the current query on the "org_prices" edge. -func (_q *OrganizationQuery) QueryOrgPrices() *OrgPriceQuery { - query := (&OrgPriceClient{config: _q.config}).Query() +// QueryStandardCreators chains the current query on the "standard_creators" edge. +func (_q *OrganizationQuery) QueryStandardCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1458,21 +1570,21 @@ func (_q *OrganizationQuery) QueryOrgPrices() *OrgPriceQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(orgprice.Table, orgprice.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgPricesTable, organization.OrgPricesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardCreatorsTable, organization.StandardCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrgPrice - step.Edge.Schema = schemaConfig.OrgPrice + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryOrgModules chains the current query on the "org_modules" edge. -func (_q *OrganizationQuery) QueryOrgModules() *OrgModuleQuery { - query := (&OrgModuleClient{config: _q.config}).Query() +// QuerySubcontrolCreators chains the current query on the "subcontrol_creators" edge. +func (_q *OrganizationQuery) QuerySubcontrolCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1483,21 +1595,21 @@ func (_q *OrganizationQuery) QueryOrgModules() *OrgModuleQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(orgmodule.Table, orgmodule.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgModulesTable, organization.OrgModulesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubcontrolCreatorsTable, organization.SubcontrolCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrgModule - step.Edge.Schema = schemaConfig.OrgModule + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryInvites chains the current query on the "invites" edge. -func (_q *OrganizationQuery) QueryInvites() *InviteQuery { - query := (&InviteClient{config: _q.config}).Query() +// QuerySubprocessorCreators chains the current query on the "subprocessor_creators" edge. +func (_q *OrganizationQuery) QuerySubprocessorCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1508,21 +1620,21 @@ func (_q *OrganizationQuery) QueryInvites() *InviteQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(invite.Table, invite.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.InvitesTable, organization.InvitesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorCreatorsTable, organization.SubprocessorCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Invite - step.Edge.Schema = schemaConfig.Invite + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySubscribers chains the current query on the "subscribers" edge. -func (_q *OrganizationQuery) QuerySubscribers() *SubscriberQuery { - query := (&SubscriberClient{config: _q.config}).Query() +// QuerySubscriberCreators chains the current query on the "subscriber_creators" edge. +func (_q *OrganizationQuery) QuerySubscriberCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1533,21 +1645,21 @@ func (_q *OrganizationQuery) QuerySubscribers() *SubscriberQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(subscriber.Table, subscriber.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscribersTable, organization.SubscribersColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscriberCreatorsTable, organization.SubscriberCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Subscriber - step.Edge.Schema = schemaConfig.Subscriber + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryEntities chains the current query on the "entities" edge. -func (_q *OrganizationQuery) QueryEntities() *EntityQuery { - query := (&EntityClient{config: _q.config}).Query() +// QuerySystemDetailCreators chains the current query on the "system_detail_creators" edge. +func (_q *OrganizationQuery) QuerySystemDetailCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1558,21 +1670,21 @@ func (_q *OrganizationQuery) QueryEntities() *EntityQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitiesTable, organization.EntitiesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SystemDetailCreatorsTable, organization.SystemDetailCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.Entity + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryPlatforms chains the current query on the "platforms" edge. -func (_q *OrganizationQuery) QueryPlatforms() *PlatformQuery { - query := (&PlatformClient{config: _q.config}).Query() +// QueryTagDefinitionCreators chains the current query on the "tag_definition_creators" edge. +func (_q *OrganizationQuery) QueryTagDefinitionCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1583,21 +1695,21 @@ func (_q *OrganizationQuery) QueryPlatforms() *PlatformQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(platform.Table, platform.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.PlatformsTable, organization.PlatformsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TagDefinitionCreatorsTable, organization.TagDefinitionCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Platform - step.Edge.Schema = schemaConfig.Platform + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryIdentityHolders chains the current query on the "identity_holders" edge. -func (_q *OrganizationQuery) QueryIdentityHolders() *IdentityHolderQuery { - query := (&IdentityHolderClient{config: _q.config}).Query() +// QueryTaskCreators chains the current query on the "task_creators" edge. +func (_q *OrganizationQuery) QueryTaskCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1608,21 +1720,21 @@ func (_q *OrganizationQuery) QueryIdentityHolders() *IdentityHolderQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(identityholder.Table, identityholder.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IdentityHoldersTable, organization.IdentityHoldersColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TaskCreatorsTable, organization.TaskCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.IdentityHolder - step.Edge.Schema = schemaConfig.IdentityHolder + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryCampaigns chains the current query on the "campaigns" edge. -func (_q *OrganizationQuery) QueryCampaigns() *CampaignQuery { - query := (&CampaignClient{config: _q.config}).Query() +// QueryTemplateCreators chains the current query on the "template_creators" edge. +func (_q *OrganizationQuery) QueryTemplateCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1633,21 +1745,21 @@ func (_q *OrganizationQuery) QueryCampaigns() *CampaignQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(campaign.Table, campaign.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignsTable, organization.CampaignsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplateCreatorsTable, organization.TemplateCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Campaign - step.Edge.Schema = schemaConfig.Campaign + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryCampaignTargets chains the current query on the "campaign_targets" edge. -func (_q *OrganizationQuery) QueryCampaignTargets() *CampaignTargetQuery { - query := (&CampaignTargetClient{config: _q.config}).Query() +// QueryTrustCenterCreators chains the current query on the "trust_center_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1658,21 +1770,21 @@ func (_q *OrganizationQuery) QueryCampaignTargets() *CampaignTargetQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(campaigntarget.Table, campaigntarget.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignTargetsTable, organization.CampaignTargetsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterCreatorsTable, organization.TrustCenterCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.CampaignTarget - step.Edge.Schema = schemaConfig.CampaignTarget + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryEntityTypes chains the current query on the "entity_types" edge. -func (_q *OrganizationQuery) QueryEntityTypes() *EntityTypeQuery { - query := (&EntityTypeClient{config: _q.config}).Query() +// QueryTrustCenterComplianceCreators chains the current query on the "trust_center_compliance_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterComplianceCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1683,21 +1795,21 @@ func (_q *OrganizationQuery) QueryEntityTypes() *EntityTypeQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(entitytype.Table, entitytype.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityTypesTable, organization.EntityTypesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterComplianceCreatorsTable, organization.TrustCenterComplianceCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.EntityType - step.Edge.Schema = schemaConfig.EntityType + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryContacts chains the current query on the "contacts" edge. -func (_q *OrganizationQuery) QueryContacts() *ContactQuery { - query := (&ContactClient{config: _q.config}).Query() +// QueryTrustCenterDocCreators chains the current query on the "trust_center_doc_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterDocCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1708,21 +1820,21 @@ func (_q *OrganizationQuery) QueryContacts() *ContactQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(contact.Table, contact.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactsTable, organization.ContactsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterDocCreatorsTable, organization.TrustCenterDocCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Contact - step.Edge.Schema = schemaConfig.Contact + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryNotes chains the current query on the "notes" edge. -func (_q *OrganizationQuery) QueryNotes() *NoteQuery { - query := (&NoteClient{config: _q.config}).Query() +// QueryTrustCenterEntityCreators chains the current query on the "trust_center_entity_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterEntityCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1733,21 +1845,21 @@ func (_q *OrganizationQuery) QueryNotes() *NoteQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(note.Table, note.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NotesTable, organization.NotesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterEntityCreatorsTable, organization.TrustCenterEntityCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Note - step.Edge.Schema = schemaConfig.Note + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryTasks chains the current query on the "tasks" edge. -func (_q *OrganizationQuery) QueryTasks() *TaskQuery { - query := (&TaskClient{config: _q.config}).Query() +// QueryTrustCenterFaqCreators chains the current query on the "trust_center_faq_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterFaqCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1758,21 +1870,21 @@ func (_q *OrganizationQuery) QueryTasks() *TaskQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(task.Table, task.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TasksTable, organization.TasksColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterFaqCreatorsTable, organization.TrustCenterFaqCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Task - step.Edge.Schema = schemaConfig.Task + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryPrograms chains the current query on the "programs" edge. -func (_q *OrganizationQuery) QueryPrograms() *ProgramQuery { - query := (&ProgramClient{config: _q.config}).Query() +// QueryTrustCenterNdaRequestCreators chains the current query on the "trust_center_nda_request_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterNdaRequestCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1783,21 +1895,21 @@ func (_q *OrganizationQuery) QueryPrograms() *ProgramQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(program.Table, program.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramsTable, organization.ProgramsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterNdaRequestCreatorsTable, organization.TrustCenterNdaRequestCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Program - step.Edge.Schema = schemaConfig.Program + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySystemDetails chains the current query on the "system_details" edge. -func (_q *OrganizationQuery) QuerySystemDetails() *SystemDetailQuery { - query := (&SystemDetailClient{config: _q.config}).Query() +// QueryTrustCenterSubprocessorCreators chains the current query on the "trust_center_subprocessor_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterSubprocessorCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1808,21 +1920,21 @@ func (_q *OrganizationQuery) QuerySystemDetails() *SystemDetailQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(systemdetail.Table, systemdetail.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SystemDetailsTable, organization.SystemDetailsColumn), - ) + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterSubprocessorCreatorsTable, organization.TrustCenterSubprocessorCreatorsColumn), + ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.SystemDetail - step.Edge.Schema = schemaConfig.SystemDetail + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryProcedures chains the current query on the "procedures" edge. -func (_q *OrganizationQuery) QueryProcedures() *ProcedureQuery { - query := (&ProcedureClient{config: _q.config}).Query() +// QueryTrustCenterWatermarkConfigCreators chains the current query on the "trust_center_watermark_config_creators" edge. +func (_q *OrganizationQuery) QueryTrustCenterWatermarkConfigCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1833,21 +1945,21 @@ func (_q *OrganizationQuery) QueryProcedures() *ProcedureQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(procedure.Table, procedure.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ProceduresTable, organization.ProceduresColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterWatermarkConfigCreatorsTable, organization.TrustCenterWatermarkConfigCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Procedure - step.Edge.Schema = schemaConfig.Procedure + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryInternalPolicies chains the current query on the "internal_policies" edge. -func (_q *OrganizationQuery) QueryInternalPolicies() *InternalPolicyQuery { - query := (&InternalPolicyClient{config: _q.config}).Query() +// QueryUserCreators chains the current query on the "user_creators" edge. +func (_q *OrganizationQuery) QueryUserCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1858,21 +1970,21 @@ func (_q *OrganizationQuery) QueryInternalPolicies() *InternalPolicyQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPoliciesTable, organization.InternalPoliciesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.UserCreatorsTable, organization.UserCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.InternalPolicy - step.Edge.Schema = schemaConfig.InternalPolicy + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryRisks chains the current query on the "risks" edge. -func (_q *OrganizationQuery) QueryRisks() *RiskQuery { - query := (&RiskClient{config: _q.config}).Query() +// QueryUserSettingCreators chains the current query on the "user_setting_creators" edge. +func (_q *OrganizationQuery) QueryUserSettingCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1883,21 +1995,21 @@ func (_q *OrganizationQuery) QueryRisks() *RiskQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(risk.Table, risk.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.RisksTable, organization.RisksColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.UserSettingCreatorsTable, organization.UserSettingCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Risk - step.Edge.Schema = schemaConfig.Risk + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryControlObjectives chains the current query on the "control_objectives" edge. -func (_q *OrganizationQuery) QueryControlObjectives() *ControlObjectiveQuery { - query := (&ControlObjectiveClient{config: _q.config}).Query() +// QueryVendorRiskScoreCreators chains the current query on the "vendor_risk_score_creators" edge. +func (_q *OrganizationQuery) QueryVendorRiskScoreCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1908,21 +2020,21 @@ func (_q *OrganizationQuery) QueryControlObjectives() *ControlObjectiveQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(controlobjective.Table, controlobjective.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlObjectivesTable, organization.ControlObjectivesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorRiskScoreCreatorsTable, organization.VendorRiskScoreCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ControlObjective - step.Edge.Schema = schemaConfig.ControlObjective + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryNarratives chains the current query on the "narratives" edge. -func (_q *OrganizationQuery) QueryNarratives() *NarrativeQuery { - query := (&NarrativeClient{config: _q.config}).Query() +// QueryVulnerabilityCreators chains the current query on the "vulnerability_creators" edge. +func (_q *OrganizationQuery) QueryVulnerabilityCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1933,21 +2045,21 @@ func (_q *OrganizationQuery) QueryNarratives() *NarrativeQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(narrative.Table, narrative.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativesTable, organization.NarrativesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilityCreatorsTable, organization.VulnerabilityCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Narrative - step.Edge.Schema = schemaConfig.Narrative + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryControls chains the current query on the "controls" edge. -func (_q *OrganizationQuery) QueryControls() *ControlQuery { - query := (&ControlClient{config: _q.config}).Query() +// QueryWorkflowAssignmentCreators chains the current query on the "workflow_assignment_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowAssignmentCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1958,21 +2070,21 @@ func (_q *OrganizationQuery) QueryControls() *ControlQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(control.Table, control.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlsTable, organization.ControlsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentCreatorsTable, organization.WorkflowAssignmentCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Control - step.Edge.Schema = schemaConfig.Control + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySubcontrols chains the current query on the "subcontrols" edge. -func (_q *OrganizationQuery) QuerySubcontrols() *SubcontrolQuery { - query := (&SubcontrolClient{config: _q.config}).Query() +// QueryWorkflowAssignmentTargetCreators chains the current query on the "workflow_assignment_target_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowAssignmentTargetCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -1983,21 +2095,21 @@ func (_q *OrganizationQuery) QuerySubcontrols() *SubcontrolQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(subcontrol.Table, subcontrol.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubcontrolsTable, organization.SubcontrolsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentTargetCreatorsTable, organization.WorkflowAssignmentTargetCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Subcontrol - step.Edge.Schema = schemaConfig.Subcontrol + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryControlImplementations chains the current query on the "control_implementations" edge. -func (_q *OrganizationQuery) QueryControlImplementations() *ControlImplementationQuery { - query := (&ControlImplementationClient{config: _q.config}).Query() +// QueryWorkflowDefinitionCreators chains the current query on the "workflow_definition_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowDefinitionCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2008,21 +2120,21 @@ func (_q *OrganizationQuery) QueryControlImplementations() *ControlImplementatio } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(controlimplementation.Table, controlimplementation.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlImplementationsTable, organization.ControlImplementationsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowDefinitionCreatorsTable, organization.WorkflowDefinitionCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ControlImplementation - step.Edge.Schema = schemaConfig.ControlImplementation + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryMappedControls chains the current query on the "mapped_controls" edge. -func (_q *OrganizationQuery) QueryMappedControls() *MappedControlQuery { - query := (&MappedControlClient{config: _q.config}).Query() +// QueryWorkflowEventCreators chains the current query on the "workflow_event_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowEventCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2033,21 +2145,21 @@ func (_q *OrganizationQuery) QueryMappedControls() *MappedControlQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(mappedcontrol.Table, mappedcontrol.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlsTable, organization.MappedControlsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowEventCreatorsTable, organization.WorkflowEventCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.MappedControl - step.Edge.Schema = schemaConfig.MappedControl + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryEvidence chains the current query on the "evidence" edge. -func (_q *OrganizationQuery) QueryEvidence() *EvidenceQuery { - query := (&EvidenceClient{config: _q.config}).Query() +// QueryWorkflowInstanceCreators chains the current query on the "workflow_instance_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowInstanceCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2058,21 +2170,21 @@ func (_q *OrganizationQuery) QueryEvidence() *EvidenceQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(evidence.Table, evidence.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceTable, organization.EvidenceColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowInstanceCreatorsTable, organization.WorkflowInstanceCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Evidence - step.Edge.Schema = schemaConfig.Evidence + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryStandards chains the current query on the "standards" edge. -func (_q *OrganizationQuery) QueryStandards() *StandardQuery { - query := (&StandardClient{config: _q.config}).Query() +// QueryWorkflowObjectRefCreators chains the current query on the "workflow_object_ref_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowObjectRefCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2083,21 +2195,21 @@ func (_q *OrganizationQuery) QueryStandards() *StandardQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(standard.Table, standard.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardsTable, organization.StandardsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowObjectRefCreatorsTable, organization.WorkflowObjectRefCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Standard - step.Edge.Schema = schemaConfig.Standard + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryActionPlans chains the current query on the "action_plans" edge. -func (_q *OrganizationQuery) QueryActionPlans() *ActionPlanQuery { - query := (&ActionPlanClient{config: _q.config}).Query() +// QueryWorkflowProposalCreators chains the current query on the "workflow_proposal_creators" edge. +func (_q *OrganizationQuery) QueryWorkflowProposalCreators() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2108,21 +2220,21 @@ func (_q *OrganizationQuery) QueryActionPlans() *ActionPlanQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(actionplan.Table, actionplan.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlansTable, organization.ActionPlansColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowProposalCreatorsTable, organization.WorkflowProposalCreatorsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ActionPlan - step.Edge.Schema = schemaConfig.ActionPlan + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryCustomDomains chains the current query on the "custom_domains" edge. -func (_q *OrganizationQuery) QueryCustomDomains() *CustomDomainQuery { - query := (&CustomDomainClient{config: _q.config}).Query() +// QueryCampaignsManager chains the current query on the "campaigns_manager" edge. +func (_q *OrganizationQuery) QueryCampaignsManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2133,21 +2245,21 @@ func (_q *OrganizationQuery) QueryCustomDomains() *CustomDomainQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(customdomain.Table, customdomain.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomDomainsTable, organization.CustomDomainsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignsManagerTable, organization.CampaignsManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.CustomDomain - step.Edge.Schema = schemaConfig.CustomDomain + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryJobRunners chains the current query on the "job_runners" edge. -func (_q *OrganizationQuery) QueryJobRunners() *JobRunnerQuery { - query := (&JobRunnerClient{config: _q.config}).Query() +// QueryComplianceManager chains the current query on the "compliance_manager" edge. +func (_q *OrganizationQuery) QueryComplianceManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2158,21 +2270,21 @@ func (_q *OrganizationQuery) QueryJobRunners() *JobRunnerQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(jobrunner.Table, jobrunner.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnersTable, organization.JobRunnersColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ComplianceManagerTable, organization.ComplianceManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.JobRunner - step.Edge.Schema = schemaConfig.JobRunner + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryJobRunnerTokens chains the current query on the "job_runner_tokens" edge. -func (_q *OrganizationQuery) QueryJobRunnerTokens() *JobRunnerTokenQuery { - query := (&JobRunnerTokenClient{config: _q.config}).Query() +// QueryGroupManager chains the current query on the "group_manager" edge. +func (_q *OrganizationQuery) QueryGroupManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2183,21 +2295,21 @@ func (_q *OrganizationQuery) QueryJobRunnerTokens() *JobRunnerTokenQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(jobrunnertoken.Table, jobrunnertoken.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerTokensTable, organization.JobRunnerTokensColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupManagerTable, organization.GroupManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.JobRunnerToken - step.Edge.Schema = schemaConfig.JobRunnerToken + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryJobRunnerRegistrationTokens chains the current query on the "job_runner_registration_tokens" edge. -func (_q *OrganizationQuery) QueryJobRunnerRegistrationTokens() *JobRunnerRegistrationTokenQuery { - query := (&JobRunnerRegistrationTokenClient{config: _q.config}).Query() +// QueryPoliciesManager chains the current query on the "policies_manager" edge. +func (_q *OrganizationQuery) QueryPoliciesManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2208,21 +2320,21 @@ func (_q *OrganizationQuery) QueryJobRunnerRegistrationTokens() *JobRunnerRegist } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(jobrunnerregistrationtoken.Table, jobrunnerregistrationtoken.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerRegistrationTokensTable, organization.JobRunnerRegistrationTokensColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.PoliciesManagerTable, organization.PoliciesManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.JobRunnerRegistrationToken - step.Edge.Schema = schemaConfig.JobRunnerRegistrationToken + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDNSVerifications chains the current query on the "dns_verifications" edge. -func (_q *OrganizationQuery) QueryDNSVerifications() *DNSVerificationQuery { - query := (&DNSVerificationClient{config: _q.config}).Query() +// QueryRegistryManager chains the current query on the "registry_manager" edge. +func (_q *OrganizationQuery) QueryRegistryManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2233,21 +2345,21 @@ func (_q *OrganizationQuery) QueryDNSVerifications() *DNSVerificationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(dnsverification.Table, dnsverification.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DNSVerificationsTable, organization.DNSVerificationsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RegistryManagerTable, organization.RegistryManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DNSVerification - step.Edge.Schema = schemaConfig.DNSVerification + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryJobTemplates chains the current query on the "job_templates" edge. -func (_q *OrganizationQuery) QueryJobTemplates() *JobTemplateQuery { - query := (&JobTemplateClient{config: _q.config}).Query() +// QueryRiskManager chains the current query on the "risk_manager" edge. +func (_q *OrganizationQuery) QueryRiskManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2258,21 +2370,21 @@ func (_q *OrganizationQuery) QueryJobTemplates() *JobTemplateQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(jobtemplate.Table, jobtemplate.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.JobTemplatesTable, organization.JobTemplatesColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RiskManagerTable, organization.RiskManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.JobTemplate - step.Edge.Schema = schemaConfig.JobTemplate + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryScheduledJobs chains the current query on the "scheduled_jobs" edge. -func (_q *OrganizationQuery) QueryScheduledJobs() *ScheduledJobQuery { - query := (&ScheduledJobClient{config: _q.config}).Query() +// QueryTrustCenterManager chains the current query on the "trust_center_manager" edge. +func (_q *OrganizationQuery) QueryTrustCenterManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2283,21 +2395,21 @@ func (_q *OrganizationQuery) QueryScheduledJobs() *ScheduledJobQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(scheduledjob.Table, scheduledjob.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobsTable, organization.ScheduledJobsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterManagerTable, organization.TrustCenterManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ScheduledJob - step.Edge.Schema = schemaConfig.ScheduledJob + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryJobResults chains the current query on the "job_results" edge. -func (_q *OrganizationQuery) QueryJobResults() *JobResultQuery { - query := (&JobResultClient{config: _q.config}).Query() +// QueryWorkflowsManager chains the current query on the "workflows_manager" edge. +func (_q *OrganizationQuery) QueryWorkflowsManager() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2308,21 +2420,21 @@ func (_q *OrganizationQuery) QueryJobResults() *JobResultQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(jobresult.Table, jobresult.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.JobResultsTable, organization.JobResultsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowsManagerTable, organization.WorkflowsManagerColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.JobResult - step.Edge.Schema = schemaConfig.JobResult + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryScheduledJobRuns chains the current query on the "scheduled_job_runs" edge. -func (_q *OrganizationQuery) QueryScheduledJobRuns() *ScheduledJobRunQuery { - query := (&ScheduledJobRunClient{config: _q.config}).Query() +// QueryParent chains the current query on the "parent" edge. +func (_q *OrganizationQuery) QueryParent() *OrganizationQuery { + query := (&OrganizationClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2333,21 +2445,21 @@ func (_q *OrganizationQuery) QueryScheduledJobRuns() *ScheduledJobRunQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(scheduledjobrun.Table, scheduledjobrun.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobRunsTable, organization.ScheduledJobRunsColumn), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, organization.ParentTable, organization.ParentColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ScheduledJobRun - step.Edge.Schema = schemaConfig.ScheduledJobRun + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Organization fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryTrustCenters chains the current query on the "trust_centers" edge. -func (_q *OrganizationQuery) QueryTrustCenters() *TrustCenterQuery { - query := (&TrustCenterClient{config: _q.config}).Query() +// QueryChildren chains the current query on the "children" edge. +func (_q *OrganizationQuery) QueryChildren() *OrganizationQuery { + query := (&OrganizationClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2358,21 +2470,21 @@ func (_q *OrganizationQuery) QueryTrustCenters() *TrustCenterQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(trustcenter.Table, trustcenter.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCentersTable, organization.TrustCentersColumn), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ChildrenTable, organization.ChildrenColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.TrustCenter - step.Edge.Schema = schemaConfig.TrustCenter + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Organization fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryAssets chains the current query on the "assets" edge. -func (_q *OrganizationQuery) QueryAssets() *AssetQuery { - query := (&AssetClient{config: _q.config}).Query() +// QuerySetting chains the current query on the "setting" edge. +func (_q *OrganizationQuery) QuerySetting() *OrganizationSettingQuery { + query := (&OrganizationSettingClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2383,21 +2495,21 @@ func (_q *OrganizationQuery) QueryAssets() *AssetQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(asset.Table, asset.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetsTable, organization.AssetsColumn), + sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), + sqlgraph.Edge(sqlgraph.O2O, false, organization.SettingTable, organization.SettingColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Asset - step.Edge.Schema = schemaConfig.Asset + step.To.Schema = schemaConfig.OrganizationSetting + step.Edge.Schema = schemaConfig.OrganizationSetting fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryScans chains the current query on the "scans" edge. -func (_q *OrganizationQuery) QueryScans() *ScanQuery { - query := (&ScanClient{config: _q.config}).Query() +// QueryPersonalAccessTokens chains the current query on the "personal_access_tokens" edge. +func (_q *OrganizationQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQuery { + query := (&PersonalAccessTokenClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2408,21 +2520,21 @@ func (_q *OrganizationQuery) QueryScans() *ScanQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(scan.Table, scan.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ScansTable, organization.ScansColumn), + sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.PersonalAccessTokensTable, organization.PersonalAccessTokensPrimaryKey...), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Scan - step.Edge.Schema = schemaConfig.Scan + step.To.Schema = schemaConfig.PersonalAccessToken + step.Edge.Schema = schemaConfig.OrganizationPersonalAccessTokens fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySLADefinitions chains the current query on the "sla_definitions" edge. -func (_q *OrganizationQuery) QuerySLADefinitions() *SLADefinitionQuery { - query := (&SLADefinitionClient{config: _q.config}).Query() +// QueryAPITokens chains the current query on the "api_tokens" edge. +func (_q *OrganizationQuery) QueryAPITokens() *APITokenQuery { + query := (&APITokenClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2433,21 +2545,21 @@ func (_q *OrganizationQuery) QuerySLADefinitions() *SLADefinitionQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(sladefinition.Table, sladefinition.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SLADefinitionsTable, organization.SLADefinitionsColumn), + sqlgraph.To(apitoken.Table, apitoken.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokensTable, organization.APITokensColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.SLADefinition - step.Edge.Schema = schemaConfig.SLADefinition + step.To.Schema = schemaConfig.APIToken + step.Edge.Schema = schemaConfig.APIToken fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QuerySubprocessors chains the current query on the "subprocessors" edge. -func (_q *OrganizationQuery) QuerySubprocessors() *SubprocessorQuery { - query := (&SubprocessorClient{config: _q.config}).Query() +// QueryEmailTemplates chains the current query on the "email_templates" edge. +func (_q *OrganizationQuery) QueryEmailTemplates() *EmailTemplateQuery { + query := (&EmailTemplateClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2458,21 +2570,21 @@ func (_q *OrganizationQuery) QuerySubprocessors() *SubprocessorQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(subprocessor.Table, subprocessor.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorsTable, organization.SubprocessorsColumn), + sqlgraph.To(emailtemplate.Table, emailtemplate.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EmailTemplatesTable, organization.EmailTemplatesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Subprocessor - step.Edge.Schema = schemaConfig.Subprocessor + step.To.Schema = schemaConfig.EmailTemplate + step.Edge.Schema = schemaConfig.EmailTemplate fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryExports chains the current query on the "exports" edge. -func (_q *OrganizationQuery) QueryExports() *ExportQuery { - query := (&ExportClient{config: _q.config}).Query() +// QueryIntegrationWebhooks chains the current query on the "integration_webhooks" edge. +func (_q *OrganizationQuery) QueryIntegrationWebhooks() *IntegrationWebhookQuery { + query := (&IntegrationWebhookClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2483,21 +2595,21 @@ func (_q *OrganizationQuery) QueryExports() *ExportQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(export.Table, export.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ExportsTable, organization.ExportsColumn), + sqlgraph.To(integrationwebhook.Table, integrationwebhook.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationWebhooksTable, organization.IntegrationWebhooksColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Export - step.Edge.Schema = schemaConfig.Export + step.To.Schema = schemaConfig.IntegrationWebhook + step.Edge.Schema = schemaConfig.IntegrationWebhook fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryTrustCenterWatermarkConfigs chains the current query on the "trust_center_watermark_configs" edge. -func (_q *OrganizationQuery) QueryTrustCenterWatermarkConfigs() *TrustCenterWatermarkConfigQuery { - query := (&TrustCenterWatermarkConfigClient{config: _q.config}).Query() +// QueryIntegrationRuns chains the current query on the "integration_runs" edge. +func (_q *OrganizationQuery) QueryIntegrationRuns() *IntegrationRunQuery { + query := (&IntegrationRunClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2508,21 +2620,21 @@ func (_q *OrganizationQuery) QueryTrustCenterWatermarkConfigs() *TrustCenterWate } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(trustcenterwatermarkconfig.Table, trustcenterwatermarkconfig.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterWatermarkConfigsTable, organization.TrustCenterWatermarkConfigsColumn), + sqlgraph.To(integrationrun.Table, integrationrun.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationRunsTable, organization.IntegrationRunsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.TrustCenterWatermarkConfig - step.Edge.Schema = schemaConfig.TrustCenterWatermarkConfig + step.To.Schema = schemaConfig.IntegrationRun + step.Edge.Schema = schemaConfig.IntegrationRun fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryImpersonationEvents chains the current query on the "impersonation_events" edge. -func (_q *OrganizationQuery) QueryImpersonationEvents() *ImpersonationEventQuery { - query := (&ImpersonationEventClient{config: _q.config}).Query() +// QueryNotificationPreferences chains the current query on the "notification_preferences" edge. +func (_q *OrganizationQuery) QueryNotificationPreferences() *NotificationPreferenceQuery { + query := (&NotificationPreferenceClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2533,21 +2645,21 @@ func (_q *OrganizationQuery) QueryImpersonationEvents() *ImpersonationEventQuery } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(impersonationevent.Table, impersonationevent.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ImpersonationEventsTable, organization.ImpersonationEventsColumn), + sqlgraph.To(notificationpreference.Table, notificationpreference.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationPreferencesTable, organization.NotificationPreferencesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.ImpersonationEvent - step.Edge.Schema = schemaConfig.ImpersonationEvent + step.To.Schema = schemaConfig.NotificationPreference + step.Edge.Schema = schemaConfig.NotificationPreference fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryAssessments chains the current query on the "assessments" edge. -func (_q *OrganizationQuery) QueryAssessments() *AssessmentQuery { - query := (&AssessmentClient{config: _q.config}).Query() +// QueryNotificationTemplates chains the current query on the "notification_templates" edge. +func (_q *OrganizationQuery) QueryNotificationTemplates() *NotificationTemplateQuery { + query := (&NotificationTemplateClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2558,21 +2670,21 @@ func (_q *OrganizationQuery) QueryAssessments() *AssessmentQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(assessment.Table, assessment.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentsTable, organization.AssessmentsColumn), + sqlgraph.To(notificationtemplate.Table, notificationtemplate.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationTemplatesTable, organization.NotificationTemplatesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Assessment - step.Edge.Schema = schemaConfig.Assessment + step.To.Schema = schemaConfig.NotificationTemplate + step.Edge.Schema = schemaConfig.NotificationTemplate fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryAssessmentResponses chains the current query on the "assessment_responses" edge. -func (_q *OrganizationQuery) QueryAssessmentResponses() *AssessmentResponseQuery { - query := (&AssessmentResponseClient{config: _q.config}).Query() +// QueryUsers chains the current query on the "users" edge. +func (_q *OrganizationQuery) QueryUsers() *UserQuery { + query := (&UserClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2583,21 +2695,21 @@ func (_q *OrganizationQuery) QueryAssessmentResponses() *AssessmentResponseQuery } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(assessmentresponse.Table, assessmentresponse.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentResponsesTable, organization.AssessmentResponsesColumn), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, organization.UsersTable, organization.UsersPrimaryKey...), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.AssessmentResponse - step.Edge.Schema = schemaConfig.AssessmentResponse + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.OrgMembership fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryCustomTypeEnums chains the current query on the "custom_type_enums" edge. -func (_q *OrganizationQuery) QueryCustomTypeEnums() *CustomTypeEnumQuery { - query := (&CustomTypeEnumClient{config: _q.config}).Query() +// QueryFiles chains the current query on the "files" edge. +func (_q *OrganizationQuery) QueryFiles() *FileQuery { + query := (&FileClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2608,21 +2720,21 @@ func (_q *OrganizationQuery) QueryCustomTypeEnums() *CustomTypeEnumQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(customtypeenum.Table, customtypeenum.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomTypeEnumsTable, organization.CustomTypeEnumsColumn), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.FilesTable, organization.FilesPrimaryKey...), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.CustomTypeEnum - step.Edge.Schema = schemaConfig.CustomTypeEnum + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.OrganizationFiles fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryTagDefinitions chains the current query on the "tag_definitions" edge. -func (_q *OrganizationQuery) QueryTagDefinitions() *TagDefinitionQuery { - query := (&TagDefinitionClient{config: _q.config}).Query() +// QueryEvents chains the current query on the "events" edge. +func (_q *OrganizationQuery) QueryEvents() *EventQuery { + query := (&EventClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2633,21 +2745,21 @@ func (_q *OrganizationQuery) QueryTagDefinitions() *TagDefinitionQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(tagdefinition.Table, tagdefinition.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TagDefinitionsTable, organization.TagDefinitionsColumn), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.EventsTable, organization.EventsPrimaryKey...), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.TagDefinition - step.Edge.Schema = schemaConfig.TagDefinition + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.OrganizationEvents fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryRemediations chains the current query on the "remediations" edge. -func (_q *OrganizationQuery) QueryRemediations() *RemediationQuery { - query := (&RemediationClient{config: _q.config}).Query() +// QuerySecrets chains the current query on the "secrets" edge. +func (_q *OrganizationQuery) QuerySecrets() *HushQuery { + query := (&HushClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2658,21 +2770,21 @@ func (_q *OrganizationQuery) QueryRemediations() *RemediationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(remediation.Table, remediation.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.RemediationsTable, organization.RemediationsColumn), + sqlgraph.To(hush.Table, hush.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SecretsTable, organization.SecretsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Remediation - step.Edge.Schema = schemaConfig.Remediation + step.To.Schema = schemaConfig.Hush + step.Edge.Schema = schemaConfig.Hush fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryFindings chains the current query on the "findings" edge. -func (_q *OrganizationQuery) QueryFindings() *FindingQuery { - query := (&FindingClient{config: _q.config}).Query() +// QueryAvatarFile chains the current query on the "avatar_file" edge. +func (_q *OrganizationQuery) QueryAvatarFile() *FileQuery { + query := (&FileClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2683,21 +2795,21 @@ func (_q *OrganizationQuery) QueryFindings() *FindingQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(finding.Table, finding.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingsTable, organization.FindingsColumn), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, organization.AvatarFileTable, organization.AvatarFileColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Finding - step.Edge.Schema = schemaConfig.Finding + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.Organization fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryReviews chains the current query on the "reviews" edge. -func (_q *OrganizationQuery) QueryReviews() *ReviewQuery { - query := (&ReviewClient{config: _q.config}).Query() +// QueryGroups chains the current query on the "groups" edge. +func (_q *OrganizationQuery) QueryGroups() *GroupQuery { + query := (&GroupClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2708,21 +2820,21 @@ func (_q *OrganizationQuery) QueryReviews() *ReviewQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(review.Table, review.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ReviewsTable, organization.ReviewsColumn), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupsTable, organization.GroupsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Review - step.Edge.Schema = schemaConfig.Review + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryVulnerabilities chains the current query on the "vulnerabilities" edge. -func (_q *OrganizationQuery) QueryVulnerabilities() *VulnerabilityQuery { - query := (&VulnerabilityClient{config: _q.config}).Query() +// QueryTemplates chains the current query on the "templates" edge. +func (_q *OrganizationQuery) QueryTemplates() *TemplateQuery { + query := (&TemplateClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2733,21 +2845,21 @@ func (_q *OrganizationQuery) QueryVulnerabilities() *VulnerabilityQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(vulnerability.Table, vulnerability.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilitiesTable, organization.VulnerabilitiesColumn), + sqlgraph.To(template.Table, template.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplatesTable, organization.TemplatesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Vulnerability - step.Edge.Schema = schemaConfig.Vulnerability + step.To.Schema = schemaConfig.Template + step.Edge.Schema = schemaConfig.Template fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryNotifications chains the current query on the "notifications" edge. -func (_q *OrganizationQuery) QueryNotifications() *NotificationQuery { - query := (&NotificationClient{config: _q.config}).Query() +// QueryIntegrations chains the current query on the "integrations" edge. +func (_q *OrganizationQuery) QueryIntegrations() *IntegrationQuery { + query := (&IntegrationClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2758,21 +2870,21 @@ func (_q *OrganizationQuery) QueryNotifications() *NotificationQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(notification.Table, notification.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationsTable, organization.NotificationsColumn), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationsTable, organization.IntegrationsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Notification - step.Edge.Schema = schemaConfig.Notification + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.Integration fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowDefinitions chains the current query on the "workflow_definitions" edge. -func (_q *OrganizationQuery) QueryWorkflowDefinitions() *WorkflowDefinitionQuery { - query := (&WorkflowDefinitionClient{config: _q.config}).Query() +// QueryDocuments chains the current query on the "documents" edge. +func (_q *OrganizationQuery) QueryDocuments() *DocumentDataQuery { + query := (&DocumentDataClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2783,21 +2895,21 @@ func (_q *OrganizationQuery) QueryWorkflowDefinitions() *WorkflowDefinitionQuery } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowdefinition.Table, workflowdefinition.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowDefinitionsTable, organization.WorkflowDefinitionsColumn), + sqlgraph.To(documentdata.Table, documentdata.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DocumentsTable, organization.DocumentsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowDefinition - step.Edge.Schema = schemaConfig.WorkflowDefinition + step.To.Schema = schemaConfig.DocumentData + step.Edge.Schema = schemaConfig.DocumentData fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowInstances chains the current query on the "workflow_instances" edge. -func (_q *OrganizationQuery) QueryWorkflowInstances() *WorkflowInstanceQuery { - query := (&WorkflowInstanceClient{config: _q.config}).Query() +// QueryOrgSubscriptions chains the current query on the "org_subscriptions" edge. +func (_q *OrganizationQuery) QueryOrgSubscriptions() *OrgSubscriptionQuery { + query := (&OrgSubscriptionClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2808,21 +2920,21 @@ func (_q *OrganizationQuery) QueryWorkflowInstances() *WorkflowInstanceQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowinstance.Table, workflowinstance.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowInstancesTable, organization.WorkflowInstancesColumn), + sqlgraph.To(orgsubscription.Table, orgsubscription.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgSubscriptionsTable, organization.OrgSubscriptionsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowInstance - step.Edge.Schema = schemaConfig.WorkflowInstance + step.To.Schema = schemaConfig.OrgSubscription + step.Edge.Schema = schemaConfig.OrgSubscription fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowEvents chains the current query on the "workflow_events" edge. -func (_q *OrganizationQuery) QueryWorkflowEvents() *WorkflowEventQuery { - query := (&WorkflowEventClient{config: _q.config}).Query() +// QueryOrgProducts chains the current query on the "org_products" edge. +func (_q *OrganizationQuery) QueryOrgProducts() *OrgProductQuery { + query := (&OrgProductClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2833,21 +2945,21 @@ func (_q *OrganizationQuery) QueryWorkflowEvents() *WorkflowEventQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowevent.Table, workflowevent.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowEventsTable, organization.WorkflowEventsColumn), + sqlgraph.To(orgproduct.Table, orgproduct.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgProductsTable, organization.OrgProductsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowEvent - step.Edge.Schema = schemaConfig.WorkflowEvent + step.To.Schema = schemaConfig.OrgProduct + step.Edge.Schema = schemaConfig.OrgProduct fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowAssignments chains the current query on the "workflow_assignments" edge. -func (_q *OrganizationQuery) QueryWorkflowAssignments() *WorkflowAssignmentQuery { - query := (&WorkflowAssignmentClient{config: _q.config}).Query() +// QueryOrgPrices chains the current query on the "org_prices" edge. +func (_q *OrganizationQuery) QueryOrgPrices() *OrgPriceQuery { + query := (&OrgPriceClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2858,21 +2970,21 @@ func (_q *OrganizationQuery) QueryWorkflowAssignments() *WorkflowAssignmentQuery } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowassignment.Table, workflowassignment.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentsTable, organization.WorkflowAssignmentsColumn), + sqlgraph.To(orgprice.Table, orgprice.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgPricesTable, organization.OrgPricesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowAssignment - step.Edge.Schema = schemaConfig.WorkflowAssignment + step.To.Schema = schemaConfig.OrgPrice + step.Edge.Schema = schemaConfig.OrgPrice fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowAssignmentTargets chains the current query on the "workflow_assignment_targets" edge. -func (_q *OrganizationQuery) QueryWorkflowAssignmentTargets() *WorkflowAssignmentTargetQuery { - query := (&WorkflowAssignmentTargetClient{config: _q.config}).Query() +// QueryOrgModules chains the current query on the "org_modules" edge. +func (_q *OrganizationQuery) QueryOrgModules() *OrgModuleQuery { + query := (&OrgModuleClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2883,21 +2995,21 @@ func (_q *OrganizationQuery) QueryWorkflowAssignmentTargets() *WorkflowAssignmen } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowassignmenttarget.Table, workflowassignmenttarget.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentTargetsTable, organization.WorkflowAssignmentTargetsColumn), + sqlgraph.To(orgmodule.Table, orgmodule.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrgModulesTable, organization.OrgModulesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowAssignmentTarget - step.Edge.Schema = schemaConfig.WorkflowAssignmentTarget + step.To.Schema = schemaConfig.OrgModule + step.Edge.Schema = schemaConfig.OrgModule fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowObjectRefs chains the current query on the "workflow_object_refs" edge. -func (_q *OrganizationQuery) QueryWorkflowObjectRefs() *WorkflowObjectRefQuery { - query := (&WorkflowObjectRefClient{config: _q.config}).Query() +// QueryInvites chains the current query on the "invites" edge. +func (_q *OrganizationQuery) QueryInvites() *InviteQuery { + query := (&InviteClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2908,21 +3020,21 @@ func (_q *OrganizationQuery) QueryWorkflowObjectRefs() *WorkflowObjectRefQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowobjectref.Table, workflowobjectref.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowObjectRefsTable, organization.WorkflowObjectRefsColumn), + sqlgraph.To(invite.Table, invite.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.InvitesTable, organization.InvitesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowObjectRef - step.Edge.Schema = schemaConfig.WorkflowObjectRef + step.To.Schema = schemaConfig.Invite + step.Edge.Schema = schemaConfig.Invite fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryWorkflowProposals chains the current query on the "workflow_proposals" edge. -func (_q *OrganizationQuery) QueryWorkflowProposals() *WorkflowProposalQuery { - query := (&WorkflowProposalClient{config: _q.config}).Query() +// QuerySubscribers chains the current query on the "subscribers" edge. +func (_q *OrganizationQuery) QuerySubscribers() *SubscriberQuery { + query := (&SubscriberClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2933,21 +3045,21 @@ func (_q *OrganizationQuery) QueryWorkflowProposals() *WorkflowProposalQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(workflowproposal.Table, workflowproposal.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowProposalsTable, organization.WorkflowProposalsColumn), + sqlgraph.To(subscriber.Table, subscriber.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscribersTable, organization.SubscribersColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.WorkflowProposal - step.Edge.Schema = schemaConfig.WorkflowProposal + step.To.Schema = schemaConfig.Subscriber + step.Edge.Schema = schemaConfig.Subscriber fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDirectoryAccounts chains the current query on the "directory_accounts" edge. -func (_q *OrganizationQuery) QueryDirectoryAccounts() *DirectoryAccountQuery { - query := (&DirectoryAccountClient{config: _q.config}).Query() +// QueryEntities chains the current query on the "entities" edge. +func (_q *OrganizationQuery) QueryEntities() *EntityQuery { + query := (&EntityClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2958,21 +3070,21 @@ func (_q *OrganizationQuery) QueryDirectoryAccounts() *DirectoryAccountQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(directoryaccount.Table, directoryaccount.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryAccountsTable, organization.DirectoryAccountsColumn), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitiesTable, organization.EntitiesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DirectoryAccount - step.Edge.Schema = schemaConfig.DirectoryAccount + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.Entity fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDirectoryGroups chains the current query on the "directory_groups" edge. -func (_q *OrganizationQuery) QueryDirectoryGroups() *DirectoryGroupQuery { - query := (&DirectoryGroupClient{config: _q.config}).Query() +// QueryPlatforms chains the current query on the "platforms" edge. +func (_q *OrganizationQuery) QueryPlatforms() *PlatformQuery { + query := (&PlatformClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -2983,21 +3095,21 @@ func (_q *OrganizationQuery) QueryDirectoryGroups() *DirectoryGroupQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(directorygroup.Table, directorygroup.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryGroupsTable, organization.DirectoryGroupsColumn), + sqlgraph.To(platform.Table, platform.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.PlatformsTable, organization.PlatformsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DirectoryGroup - step.Edge.Schema = schemaConfig.DirectoryGroup + step.To.Schema = schemaConfig.Platform + step.Edge.Schema = schemaConfig.Platform fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDirectoryMemberships chains the current query on the "directory_memberships" edge. -func (_q *OrganizationQuery) QueryDirectoryMemberships() *DirectoryMembershipQuery { - query := (&DirectoryMembershipClient{config: _q.config}).Query() +// QueryIdentityHolders chains the current query on the "identity_holders" edge. +func (_q *OrganizationQuery) QueryIdentityHolders() *IdentityHolderQuery { + query := (&IdentityHolderClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3008,21 +3120,21 @@ func (_q *OrganizationQuery) QueryDirectoryMemberships() *DirectoryMembershipQue } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(directorymembership.Table, directorymembership.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryMembershipsTable, organization.DirectoryMembershipsColumn), + sqlgraph.To(identityholder.Table, identityholder.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IdentityHoldersTable, organization.IdentityHoldersColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DirectoryMembership - step.Edge.Schema = schemaConfig.DirectoryMembership + step.To.Schema = schemaConfig.IdentityHolder + step.Edge.Schema = schemaConfig.IdentityHolder fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDirectorySyncRuns chains the current query on the "directory_sync_runs" edge. -func (_q *OrganizationQuery) QueryDirectorySyncRuns() *DirectorySyncRunQuery { - query := (&DirectorySyncRunClient{config: _q.config}).Query() +// QueryCampaigns chains the current query on the "campaigns" edge. +func (_q *OrganizationQuery) QueryCampaigns() *CampaignQuery { + query := (&CampaignClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3033,21 +3145,21 @@ func (_q *OrganizationQuery) QueryDirectorySyncRuns() *DirectorySyncRunQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(directorysyncrun.Table, directorysyncrun.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectorySyncRunsTable, organization.DirectorySyncRunsColumn), + sqlgraph.To(campaign.Table, campaign.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignsTable, organization.CampaignsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.DirectorySyncRun - step.Edge.Schema = schemaConfig.DirectorySyncRun + step.To.Schema = schemaConfig.Campaign + step.Edge.Schema = schemaConfig.Campaign fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryDiscussions chains the current query on the "discussions" edge. -func (_q *OrganizationQuery) QueryDiscussions() *DiscussionQuery { - query := (&DiscussionClient{config: _q.config}).Query() +// QueryCampaignTargets chains the current query on the "campaign_targets" edge. +func (_q *OrganizationQuery) QueryCampaignTargets() *CampaignTargetQuery { + query := (&CampaignTargetClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3058,21 +3170,21 @@ func (_q *OrganizationQuery) QueryDiscussions() *DiscussionQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(discussion.Table, discussion.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DiscussionsTable, organization.DiscussionsColumn), + sqlgraph.To(campaigntarget.Table, campaigntarget.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CampaignTargetsTable, organization.CampaignTargetsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.Discussion - step.Edge.Schema = schemaConfig.Discussion + step.To.Schema = schemaConfig.CampaignTarget + step.Edge.Schema = schemaConfig.CampaignTarget fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryVendorScoringConfigs chains the current query on the "vendor_scoring_configs" edge. -func (_q *OrganizationQuery) QueryVendorScoringConfigs() *VendorScoringConfigQuery { - query := (&VendorScoringConfigClient{config: _q.config}).Query() +// QueryEntityTypes chains the current query on the "entity_types" edge. +func (_q *OrganizationQuery) QueryEntityTypes() *EntityTypeQuery { + query := (&EntityTypeClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3083,21 +3195,21 @@ func (_q *OrganizationQuery) QueryVendorScoringConfigs() *VendorScoringConfigQue } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(vendorscoringconfig.Table, vendorscoringconfig.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorScoringConfigsTable, organization.VendorScoringConfigsColumn), + sqlgraph.To(entitytype.Table, entitytype.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntityTypesTable, organization.EntityTypesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.VendorScoringConfig - step.Edge.Schema = schemaConfig.VendorScoringConfig + step.To.Schema = schemaConfig.EntityType + step.Edge.Schema = schemaConfig.EntityType fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryVendorRiskScores chains the current query on the "vendor_risk_scores" edge. -func (_q *OrganizationQuery) QueryVendorRiskScores() *VendorRiskScoreQuery { - query := (&VendorRiskScoreClient{config: _q.config}).Query() +// QueryContacts chains the current query on the "contacts" edge. +func (_q *OrganizationQuery) QueryContacts() *ContactQuery { + query := (&ContactClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3108,21 +3220,21 @@ func (_q *OrganizationQuery) QueryVendorRiskScores() *VendorRiskScoreQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(vendorriskscore.Table, vendorriskscore.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorRiskScoresTable, organization.VendorRiskScoresColumn), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactsTable, organization.ContactsColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.VendorRiskScore - step.Edge.Schema = schemaConfig.VendorRiskScore + step.To.Schema = schemaConfig.Contact + step.Edge.Schema = schemaConfig.Contact fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// QueryMembers chains the current query on the "members" edge. -func (_q *OrganizationQuery) QueryMembers() *OrgMembershipQuery { - query := (&OrgMembershipClient{config: _q.config}).Query() +// QueryNotes chains the current query on the "notes" edge. +func (_q *OrganizationQuery) QueryNotes() *NoteQuery { + query := (&NoteClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { if err := _q.prepareQuery(ctx); err != nil { return nil, err @@ -3133,1712 +3245,3840 @@ func (_q *OrganizationQuery) QueryMembers() *OrgMembershipQuery { } step := sqlgraph.NewStep( sqlgraph.From(organization.Table, organization.FieldID, selector), - sqlgraph.To(orgmembership.Table, orgmembership.FieldID), - sqlgraph.Edge(sqlgraph.O2M, true, organization.MembersTable, organization.MembersColumn), + sqlgraph.To(note.Table, note.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotesTable, organization.NotesColumn), ) schemaConfig := _q.schemaConfig - step.To.Schema = schemaConfig.OrgMembership - step.Edge.Schema = schemaConfig.OrgMembership + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Note fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } -// First returns the first Organization entity from the query. -// Returns a *NotFoundError when no Organization was found. -func (_q *OrganizationQuery) First(ctx context.Context) (*Organization, error) { - nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) - if err != nil { - return nil, err - } - if len(nodes) == 0 { - return nil, &NotFoundError{organization.Label} - } - return nodes[0], nil -} - -// FirstX is like First, but panics if an error occurs. -func (_q *OrganizationQuery) FirstX(ctx context.Context) *Organization { - node, err := _q.First(ctx) - if err != nil && !IsNotFound(err) { - panic(err) +// QueryTasks chains the current query on the "tasks" edge. +func (_q *OrganizationQuery) QueryTasks() *TaskQuery { + query := (&TaskClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(task.Table, task.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TasksTable, organization.TasksColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Task + step.Edge.Schema = schemaConfig.Task + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return node + return query } -// FirstID returns the first Organization ID from the query. -// Returns a *NotFoundError when no Organization ID was found. -func (_q *OrganizationQuery) FirstID(ctx context.Context) (id string, err error) { - var ids []string - if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { - return - } - if len(ids) == 0 { - err = &NotFoundError{organization.Label} - return +// QueryPrograms chains the current query on the "programs" edge. +func (_q *OrganizationQuery) QueryPrograms() *ProgramQuery { + query := (&ProgramClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(program.Table, program.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProgramsTable, organization.ProgramsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Program + step.Edge.Schema = schemaConfig.Program + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return ids[0], nil + return query } -// FirstIDX is like FirstID, but panics if an error occurs. -func (_q *OrganizationQuery) FirstIDX(ctx context.Context) string { - id, err := _q.FirstID(ctx) - if err != nil && !IsNotFound(err) { - panic(err) - } - return id -} - -// Only returns a single Organization entity found by the query, ensuring it only returns one. -// Returns a *NotSingularError when more than one Organization entity is found. -// Returns a *NotFoundError when no Organization entities are found. -func (_q *OrganizationQuery) Only(ctx context.Context) (*Organization, error) { - nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) - if err != nil { - return nil, err - } - switch len(nodes) { - case 1: - return nodes[0], nil - case 0: - return nil, &NotFoundError{organization.Label} - default: - return nil, &NotSingularError{organization.Label} +// QuerySystemDetails chains the current query on the "system_details" edge. +func (_q *OrganizationQuery) QuerySystemDetails() *SystemDetailQuery { + query := (&SystemDetailClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(systemdetail.Table, systemdetail.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SystemDetailsTable, organization.SystemDetailsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.SystemDetail + step.Edge.Schema = schemaConfig.SystemDetail + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } + return query } -// OnlyX is like Only, but panics if an error occurs. -func (_q *OrganizationQuery) OnlyX(ctx context.Context) *Organization { - node, err := _q.Only(ctx) - if err != nil { - panic(err) +// QueryProcedures chains the current query on the "procedures" edge. +func (_q *OrganizationQuery) QueryProcedures() *ProcedureQuery { + query := (&ProcedureClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ProceduresTable, organization.ProceduresColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return node + return query } -// OnlyID is like Only, but returns the only Organization ID in the query. -// Returns a *NotSingularError when more than one Organization ID is found. -// Returns a *NotFoundError when no entities are found. -func (_q *OrganizationQuery) OnlyID(ctx context.Context) (id string, err error) { - var ids []string - if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { - return - } - switch len(ids) { - case 1: - id = ids[0] - case 0: - err = &NotFoundError{organization.Label} - default: - err = &NotSingularError{organization.Label} +// QueryInternalPolicies chains the current query on the "internal_policies" edge. +func (_q *OrganizationQuery) QueryInternalPolicies() *InternalPolicyQuery { + query := (&InternalPolicyClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.InternalPoliciesTable, organization.InternalPoliciesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicy + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return + return query } -// OnlyIDX is like OnlyID, but panics if an error occurs. -func (_q *OrganizationQuery) OnlyIDX(ctx context.Context) string { - id, err := _q.OnlyID(ctx) - if err != nil { - panic(err) +// QueryRisks chains the current query on the "risks" edge. +func (_q *OrganizationQuery) QueryRisks() *RiskQuery { + query := (&RiskClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RisksTable, organization.RisksColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.Risk + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return id + return query } -// All executes the query and returns a list of Organizations. -func (_q *OrganizationQuery) All(ctx context.Context) ([]*Organization, error) { - ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) - if err := _q.prepareQuery(ctx); err != nil { - return nil, err +// QueryControlObjectives chains the current query on the "control_objectives" edge. +func (_q *OrganizationQuery) QueryControlObjectives() *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlObjectivesTable, organization.ControlObjectivesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjective + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - qr := querierAll[[]*Organization, *OrganizationQuery]() - return withInterceptors[[]*Organization](ctx, _q, qr, _q.inters) + return query } -// AllX is like All, but panics if an error occurs. -func (_q *OrganizationQuery) AllX(ctx context.Context) []*Organization { - nodes, err := _q.All(ctx) - if err != nil { - panic(err) +// QueryNarratives chains the current query on the "narratives" edge. +func (_q *OrganizationQuery) QueryNarratives() *NarrativeQuery { + query := (&NarrativeClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NarrativesTable, organization.NarrativesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.Narrative + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return nodes + return query } -// IDs executes the query and returns a list of Organization IDs. -func (_q *OrganizationQuery) IDs(ctx context.Context) (ids []string, err error) { - if _q.ctx.Unique == nil && _q.path != nil { - _q.Unique(true) - } - ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) - if err = _q.Select(organization.FieldID).Scan(ctx, &ids); err != nil { - return nil, err +// QueryControls chains the current query on the "controls" edge. +func (_q *OrganizationQuery) QueryControls() *ControlQuery { + query := (&ControlClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlsTable, organization.ControlsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return ids, nil + return query } -// IDsX is like IDs, but panics if an error occurs. -func (_q *OrganizationQuery) IDsX(ctx context.Context) []string { - ids, err := _q.IDs(ctx) - if err != nil { - panic(err) +// QuerySubcontrols chains the current query on the "subcontrols" edge. +func (_q *OrganizationQuery) QuerySubcontrols() *SubcontrolQuery { + query := (&SubcontrolClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubcontrolsTable, organization.SubcontrolsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return ids + return query } -// Count returns the count of the given query. -func (_q *OrganizationQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) - if err := _q.prepareQuery(ctx); err != nil { - return 0, err - } - return withInterceptors[int](ctx, _q, querierCount[*OrganizationQuery](), _q.inters) -} - -// CountX is like Count, but panics if an error occurs. -func (_q *OrganizationQuery) CountX(ctx context.Context) int { - count, err := _q.Count(ctx) - if err != nil { - panic(err) +// QueryControlImplementations chains the current query on the "control_implementations" edge. +func (_q *OrganizationQuery) QueryControlImplementations() *ControlImplementationQuery { + query := (&ControlImplementationClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(controlimplementation.Table, controlimplementation.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ControlImplementationsTable, organization.ControlImplementationsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ControlImplementation + step.Edge.Schema = schemaConfig.ControlImplementation + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return count + return query } -// Exist returns true if the query has elements in the graph. -func (_q *OrganizationQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) - switch _, err := _q.FirstID(ctx); { - case IsNotFound(err): - return false, nil - case err != nil: - return false, fmt.Errorf("generated: check existence: %w", err) - default: - return true, nil +// QueryMappedControls chains the current query on the "mapped_controls" edge. +func (_q *OrganizationQuery) QueryMappedControls() *MappedControlQuery { + query := (&MappedControlClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(mappedcontrol.Table, mappedcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.MappedControlsTable, organization.MappedControlsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.MappedControl + step.Edge.Schema = schemaConfig.MappedControl + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } + return query } -// ExistX is like Exist, but panics if an error occurs. -func (_q *OrganizationQuery) ExistX(ctx context.Context) bool { - exist, err := _q.Exist(ctx) - if err != nil { - panic(err) +// QueryEvidence chains the current query on the "evidence" edge. +func (_q *OrganizationQuery) QueryEvidence() *EvidenceQuery { + query := (&EvidenceClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(evidence.Table, evidence.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EvidenceTable, organization.EvidenceColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Evidence + step.Edge.Schema = schemaConfig.Evidence + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - return exist + return query } -// Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be -// used to prepare common query builders and use them differently after the clone is made. -func (_q *OrganizationQuery) Clone() *OrganizationQuery { - if _q == nil { - return nil - } - return &OrganizationQuery{ - config: _q.config, - ctx: _q.ctx.Clone(), - order: append([]organization.OrderOption{}, _q.order...), - inters: append([]Interceptor{}, _q.inters...), - predicates: append([]predicate.Organization{}, _q.predicates...), - withControlCreators: _q.withControlCreators.Clone(), - withControlImplementationCreators: _q.withControlImplementationCreators.Clone(), - withControlObjectiveCreators: _q.withControlObjectiveCreators.Clone(), - withEvidenceCreators: _q.withEvidenceCreators.Clone(), - withAssetCreators: _q.withAssetCreators.Clone(), - withFindingCreators: _q.withFindingCreators.Clone(), - withVulnerabilityCreators: _q.withVulnerabilityCreators.Clone(), - withGroupCreators: _q.withGroupCreators.Clone(), - withInternalPolicyCreators: _q.withInternalPolicyCreators.Clone(), - withMappedControlCreators: _q.withMappedControlCreators.Clone(), - withNarrativeCreators: _q.withNarrativeCreators.Clone(), - withProcedureCreators: _q.withProcedureCreators.Clone(), - withProgramCreators: _q.withProgramCreators.Clone(), - withRiskCreators: _q.withRiskCreators.Clone(), - withIdentityHolderCreators: _q.withIdentityHolderCreators.Clone(), - withScheduledJobCreators: _q.withScheduledJobCreators.Clone(), - withStandardCreators: _q.withStandardCreators.Clone(), - withTemplateCreators: _q.withTemplateCreators.Clone(), - withSubprocessorCreators: _q.withSubprocessorCreators.Clone(), - withTrustCenterDocCreators: _q.withTrustCenterDocCreators.Clone(), - withTrustCenterSubprocessorCreators: _q.withTrustCenterSubprocessorCreators.Clone(), - withActionPlanCreators: _q.withActionPlanCreators.Clone(), - withParent: _q.withParent.Clone(), - withChildren: _q.withChildren.Clone(), - withSetting: _q.withSetting.Clone(), - withPersonalAccessTokens: _q.withPersonalAccessTokens.Clone(), - withAPITokens: _q.withAPITokens.Clone(), - withEmailTemplates: _q.withEmailTemplates.Clone(), - withIntegrationWebhooks: _q.withIntegrationWebhooks.Clone(), - withIntegrationRuns: _q.withIntegrationRuns.Clone(), - withNotificationPreferences: _q.withNotificationPreferences.Clone(), - withNotificationTemplates: _q.withNotificationTemplates.Clone(), - withUsers: _q.withUsers.Clone(), - withFiles: _q.withFiles.Clone(), - withEvents: _q.withEvents.Clone(), - withSecrets: _q.withSecrets.Clone(), - withAvatarFile: _q.withAvatarFile.Clone(), - withGroups: _q.withGroups.Clone(), - withTemplates: _q.withTemplates.Clone(), - withIntegrations: _q.withIntegrations.Clone(), - withDocuments: _q.withDocuments.Clone(), - withOrgSubscriptions: _q.withOrgSubscriptions.Clone(), - withOrgProducts: _q.withOrgProducts.Clone(), - withOrgPrices: _q.withOrgPrices.Clone(), - withOrgModules: _q.withOrgModules.Clone(), - withInvites: _q.withInvites.Clone(), - withSubscribers: _q.withSubscribers.Clone(), - withEntities: _q.withEntities.Clone(), - withPlatforms: _q.withPlatforms.Clone(), - withIdentityHolders: _q.withIdentityHolders.Clone(), - withCampaigns: _q.withCampaigns.Clone(), - withCampaignTargets: _q.withCampaignTargets.Clone(), - withEntityTypes: _q.withEntityTypes.Clone(), - withContacts: _q.withContacts.Clone(), - withNotes: _q.withNotes.Clone(), - withTasks: _q.withTasks.Clone(), - withPrograms: _q.withPrograms.Clone(), - withSystemDetails: _q.withSystemDetails.Clone(), - withProcedures: _q.withProcedures.Clone(), - withInternalPolicies: _q.withInternalPolicies.Clone(), - withRisks: _q.withRisks.Clone(), - withControlObjectives: _q.withControlObjectives.Clone(), - withNarratives: _q.withNarratives.Clone(), - withControls: _q.withControls.Clone(), - withSubcontrols: _q.withSubcontrols.Clone(), - withControlImplementations: _q.withControlImplementations.Clone(), - withMappedControls: _q.withMappedControls.Clone(), - withEvidence: _q.withEvidence.Clone(), - withStandards: _q.withStandards.Clone(), - withActionPlans: _q.withActionPlans.Clone(), - withCustomDomains: _q.withCustomDomains.Clone(), - withJobRunners: _q.withJobRunners.Clone(), - withJobRunnerTokens: _q.withJobRunnerTokens.Clone(), - withJobRunnerRegistrationTokens: _q.withJobRunnerRegistrationTokens.Clone(), - withDNSVerifications: _q.withDNSVerifications.Clone(), - withJobTemplates: _q.withJobTemplates.Clone(), - withScheduledJobs: _q.withScheduledJobs.Clone(), - withJobResults: _q.withJobResults.Clone(), - withScheduledJobRuns: _q.withScheduledJobRuns.Clone(), - withTrustCenters: _q.withTrustCenters.Clone(), - withAssets: _q.withAssets.Clone(), - withScans: _q.withScans.Clone(), - withSLADefinitions: _q.withSLADefinitions.Clone(), - withSubprocessors: _q.withSubprocessors.Clone(), - withExports: _q.withExports.Clone(), - withTrustCenterWatermarkConfigs: _q.withTrustCenterWatermarkConfigs.Clone(), - withImpersonationEvents: _q.withImpersonationEvents.Clone(), - withAssessments: _q.withAssessments.Clone(), - withAssessmentResponses: _q.withAssessmentResponses.Clone(), - withCustomTypeEnums: _q.withCustomTypeEnums.Clone(), - withTagDefinitions: _q.withTagDefinitions.Clone(), - withRemediations: _q.withRemediations.Clone(), - withFindings: _q.withFindings.Clone(), - withReviews: _q.withReviews.Clone(), - withVulnerabilities: _q.withVulnerabilities.Clone(), - withNotifications: _q.withNotifications.Clone(), - withWorkflowDefinitions: _q.withWorkflowDefinitions.Clone(), - withWorkflowInstances: _q.withWorkflowInstances.Clone(), - withWorkflowEvents: _q.withWorkflowEvents.Clone(), - withWorkflowAssignments: _q.withWorkflowAssignments.Clone(), - withWorkflowAssignmentTargets: _q.withWorkflowAssignmentTargets.Clone(), - withWorkflowObjectRefs: _q.withWorkflowObjectRefs.Clone(), - withWorkflowProposals: _q.withWorkflowProposals.Clone(), - withDirectoryAccounts: _q.withDirectoryAccounts.Clone(), - withDirectoryGroups: _q.withDirectoryGroups.Clone(), - withDirectoryMemberships: _q.withDirectoryMemberships.Clone(), - withDirectorySyncRuns: _q.withDirectorySyncRuns.Clone(), - withDiscussions: _q.withDiscussions.Clone(), - withVendorScoringConfigs: _q.withVendorScoringConfigs.Clone(), - withVendorRiskScores: _q.withVendorRiskScores.Clone(), - withMembers: _q.withMembers.Clone(), - // clone intermediate query. - sql: _q.sql.Clone(), - path: _q.path, - modifiers: append([]func(*sql.Selector){}, _q.modifiers...), +// QueryStandards chains the current query on the "standards" edge. +func (_q *OrganizationQuery) QueryStandards() *StandardQuery { + query := (&StandardClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.StandardsTable, organization.StandardsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.Standard + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } + return query } -// WithControlCreators tells the query-builder to eager-load the nodes that are connected to -// the "control_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControlCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryActionPlans chains the current query on the "action_plans" edge. +func (_q *OrganizationQuery) QueryActionPlans() *ActionPlanQuery { + query := (&ActionPlanClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ActionPlansTable, organization.ActionPlansColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.ActionPlan + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withControlCreators = query - return _q + return query } -// WithControlImplementationCreators tells the query-builder to eager-load the nodes that are connected to -// the "control_implementation_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControlImplementationCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryCustomDomains chains the current query on the "custom_domains" edge. +func (_q *OrganizationQuery) QueryCustomDomains() *CustomDomainQuery { + query := (&CustomDomainClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(customdomain.Table, customdomain.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomDomainsTable, organization.CustomDomainsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.CustomDomain + step.Edge.Schema = schemaConfig.CustomDomain + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withControlImplementationCreators = query - return _q + return query } -// WithControlObjectiveCreators tells the query-builder to eager-load the nodes that are connected to -// the "control_objective_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControlObjectiveCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryJobRunners chains the current query on the "job_runners" edge. +func (_q *OrganizationQuery) QueryJobRunners() *JobRunnerQuery { + query := (&JobRunnerClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(jobrunner.Table, jobrunner.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnersTable, organization.JobRunnersColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.JobRunner + step.Edge.Schema = schemaConfig.JobRunner + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withControlObjectiveCreators = query - return _q + return query } -// WithEvidenceCreators tells the query-builder to eager-load the nodes that are connected to -// the "evidence_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEvidenceCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryJobRunnerTokens chains the current query on the "job_runner_tokens" edge. +func (_q *OrganizationQuery) QueryJobRunnerTokens() *JobRunnerTokenQuery { + query := (&JobRunnerTokenClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(jobrunnertoken.Table, jobrunnertoken.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerTokensTable, organization.JobRunnerTokensColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.JobRunnerToken + step.Edge.Schema = schemaConfig.JobRunnerToken + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withEvidenceCreators = query - return _q + return query } -// WithAssetCreators tells the query-builder to eager-load the nodes that are connected to -// the "asset_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAssetCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withAssetCreators = query - return _q -} - -// WithFindingCreators tells the query-builder to eager-load the nodes that are connected to -// the "finding_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithFindingCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withFindingCreators = query - return _q -} - -// WithVulnerabilityCreators tells the query-builder to eager-load the nodes that are connected to -// the "vulnerability_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithVulnerabilityCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryJobRunnerRegistrationTokens chains the current query on the "job_runner_registration_tokens" edge. +func (_q *OrganizationQuery) QueryJobRunnerRegistrationTokens() *JobRunnerRegistrationTokenQuery { + query := (&JobRunnerRegistrationTokenClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(jobrunnerregistrationtoken.Table, jobrunnerregistrationtoken.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobRunnerRegistrationTokensTable, organization.JobRunnerRegistrationTokensColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.JobRunnerRegistrationToken + step.Edge.Schema = schemaConfig.JobRunnerRegistrationToken + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withVulnerabilityCreators = query - return _q + return query } -// WithGroupCreators tells the query-builder to eager-load the nodes that are connected to -// the "group_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithGroupCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDNSVerifications chains the current query on the "dns_verifications" edge. +func (_q *OrganizationQuery) QueryDNSVerifications() *DNSVerificationQuery { + query := (&DNSVerificationClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(dnsverification.Table, dnsverification.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DNSVerificationsTable, organization.DNSVerificationsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.DNSVerification + step.Edge.Schema = schemaConfig.DNSVerification + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withGroupCreators = query - return _q + return query } -// WithInternalPolicyCreators tells the query-builder to eager-load the nodes that are connected to -// the "internal_policy_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithInternalPolicyCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryJobTemplates chains the current query on the "job_templates" edge. +func (_q *OrganizationQuery) QueryJobTemplates() *JobTemplateQuery { + query := (&JobTemplateClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(jobtemplate.Table, jobtemplate.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobTemplatesTable, organization.JobTemplatesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.JobTemplate + step.Edge.Schema = schemaConfig.JobTemplate + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withInternalPolicyCreators = query - return _q + return query } -// WithMappedControlCreators tells the query-builder to eager-load the nodes that are connected to -// the "mapped_control_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithMappedControlCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryScheduledJobs chains the current query on the "scheduled_jobs" edge. +func (_q *OrganizationQuery) QueryScheduledJobs() *ScheduledJobQuery { + query := (&ScheduledJobClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(scheduledjob.Table, scheduledjob.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobsTable, organization.ScheduledJobsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ScheduledJob + step.Edge.Schema = schemaConfig.ScheduledJob + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withMappedControlCreators = query - return _q + return query } -// WithNarrativeCreators tells the query-builder to eager-load the nodes that are connected to -// the "narrative_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNarrativeCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryJobResults chains the current query on the "job_results" edge. +func (_q *OrganizationQuery) QueryJobResults() *JobResultQuery { + query := (&JobResultClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(jobresult.Table, jobresult.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.JobResultsTable, organization.JobResultsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.JobResult + step.Edge.Schema = schemaConfig.JobResult + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withNarrativeCreators = query - return _q + return query } -// WithProcedureCreators tells the query-builder to eager-load the nodes that are connected to -// the "procedure_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithProcedureCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryScheduledJobRuns chains the current query on the "scheduled_job_runs" edge. +func (_q *OrganizationQuery) QueryScheduledJobRuns() *ScheduledJobRunQuery { + query := (&ScheduledJobRunClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(scheduledjobrun.Table, scheduledjobrun.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScheduledJobRunsTable, organization.ScheduledJobRunsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ScheduledJobRun + step.Edge.Schema = schemaConfig.ScheduledJobRun + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withProcedureCreators = query - return _q + return query } -// WithProgramCreators tells the query-builder to eager-load the nodes that are connected to -// the "program_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithProgramCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryTrustCenters chains the current query on the "trust_centers" edge. +func (_q *OrganizationQuery) QueryTrustCenters() *TrustCenterQuery { + query := (&TrustCenterClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(trustcenter.Table, trustcenter.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCentersTable, organization.TrustCentersColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.TrustCenter + step.Edge.Schema = schemaConfig.TrustCenter + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withProgramCreators = query - return _q + return query } -// WithRiskCreators tells the query-builder to eager-load the nodes that are connected to -// the "risk_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithRiskCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryAssets chains the current query on the "assets" edge. +func (_q *OrganizationQuery) QueryAssets() *AssetQuery { + query := (&AssetClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(asset.Table, asset.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssetsTable, organization.AssetsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Asset + step.Edge.Schema = schemaConfig.Asset + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withRiskCreators = query - return _q + return query } -// WithIdentityHolderCreators tells the query-builder to eager-load the nodes that are connected to -// the "identity_holder_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithIdentityHolderCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withIdentityHolderCreators = query - return _q -} - -// WithScheduledJobCreators tells the query-builder to eager-load the nodes that are connected to -// the "scheduled_job_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithScheduledJobCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryScans chains the current query on the "scans" edge. +func (_q *OrganizationQuery) QueryScans() *ScanQuery { + query := (&ScanClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(scan.Table, scan.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ScansTable, organization.ScansColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Scan + step.Edge.Schema = schemaConfig.Scan + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withScheduledJobCreators = query - return _q + return query } -// WithStandardCreators tells the query-builder to eager-load the nodes that are connected to -// the "standard_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithStandardCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QuerySLADefinitions chains the current query on the "sla_definitions" edge. +func (_q *OrganizationQuery) QuerySLADefinitions() *SLADefinitionQuery { + query := (&SLADefinitionClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(sladefinition.Table, sladefinition.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SLADefinitionsTable, organization.SLADefinitionsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.SLADefinition + step.Edge.Schema = schemaConfig.SLADefinition + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withStandardCreators = query - return _q + return query } -// WithTemplateCreators tells the query-builder to eager-load the nodes that are connected to -// the "template_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTemplateCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QuerySubprocessors chains the current query on the "subprocessors" edge. +func (_q *OrganizationQuery) QuerySubprocessors() *SubprocessorQuery { + query := (&SubprocessorClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(subprocessor.Table, subprocessor.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubprocessorsTable, organization.SubprocessorsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Subprocessor + step.Edge.Schema = schemaConfig.Subprocessor + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withTemplateCreators = query - return _q + return query } -// WithSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to -// the "subprocessor_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSubprocessorCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryExports chains the current query on the "exports" edge. +func (_q *OrganizationQuery) QueryExports() *ExportQuery { + query := (&ExportClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(export.Table, export.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ExportsTable, organization.ExportsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Export + step.Edge.Schema = schemaConfig.Export + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withSubprocessorCreators = query - return _q + return query } -// WithTrustCenterDocCreators tells the query-builder to eager-load the nodes that are connected to -// the "trust_center_doc_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTrustCenterDocCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryTrustCenterWatermarkConfigs chains the current query on the "trust_center_watermark_configs" edge. +func (_q *OrganizationQuery) QueryTrustCenterWatermarkConfigs() *TrustCenterWatermarkConfigQuery { + query := (&TrustCenterWatermarkConfigClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(trustcenterwatermarkconfig.Table, trustcenterwatermarkconfig.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TrustCenterWatermarkConfigsTable, organization.TrustCenterWatermarkConfigsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.TrustCenterWatermarkConfig + step.Edge.Schema = schemaConfig.TrustCenterWatermarkConfig + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withTrustCenterDocCreators = query - return _q + return query } -// WithTrustCenterSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to -// the "trust_center_subprocessor_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTrustCenterSubprocessorCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryImpersonationEvents chains the current query on the "impersonation_events" edge. +func (_q *OrganizationQuery) QueryImpersonationEvents() *ImpersonationEventQuery { + query := (&ImpersonationEventClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(impersonationevent.Table, impersonationevent.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ImpersonationEventsTable, organization.ImpersonationEventsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.ImpersonationEvent + step.Edge.Schema = schemaConfig.ImpersonationEvent + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withTrustCenterSubprocessorCreators = query - return _q + return query } -// WithActionPlanCreators tells the query-builder to eager-load the nodes that are connected to -// the "action_plan_creators" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithActionPlanCreators(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryAssessments chains the current query on the "assessments" edge. +func (_q *OrganizationQuery) QueryAssessments() *AssessmentQuery { + query := (&AssessmentClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(assessment.Table, assessment.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentsTable, organization.AssessmentsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Assessment + step.Edge.Schema = schemaConfig.Assessment + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withActionPlanCreators = query - return _q + return query } -// WithParent tells the query-builder to eager-load the nodes that are connected to -// the "parent" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithParent(opts ...func(*OrganizationQuery)) *OrganizationQuery { - query := (&OrganizationClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryAssessmentResponses chains the current query on the "assessment_responses" edge. +func (_q *OrganizationQuery) QueryAssessmentResponses() *AssessmentResponseQuery { + query := (&AssessmentResponseClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(assessmentresponse.Table, assessmentresponse.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AssessmentResponsesTable, organization.AssessmentResponsesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.AssessmentResponse + step.Edge.Schema = schemaConfig.AssessmentResponse + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withParent = query - return _q + return query } -// WithChildren tells the query-builder to eager-load the nodes that are connected to -// the "children" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithChildren(opts ...func(*OrganizationQuery)) *OrganizationQuery { - query := (&OrganizationClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withChildren = query - return _q -} - -// WithSetting tells the query-builder to eager-load the nodes that are connected to -// the "setting" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSetting(opts ...func(*OrganizationSettingQuery)) *OrganizationQuery { - query := (&OrganizationSettingClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withSetting = query - return _q -} - -// WithPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to -// the "personal_access_tokens" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithPersonalAccessTokens(opts ...func(*PersonalAccessTokenQuery)) *OrganizationQuery { - query := (&PersonalAccessTokenClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryCustomTypeEnums chains the current query on the "custom_type_enums" edge. +func (_q *OrganizationQuery) QueryCustomTypeEnums() *CustomTypeEnumQuery { + query := (&CustomTypeEnumClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(customtypeenum.Table, customtypeenum.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.CustomTypeEnumsTable, organization.CustomTypeEnumsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.CustomTypeEnum + step.Edge.Schema = schemaConfig.CustomTypeEnum + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withPersonalAccessTokens = query - return _q + return query } -// WithAPITokens tells the query-builder to eager-load the nodes that are connected to -// the "api_tokens" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAPITokens(opts ...func(*APITokenQuery)) *OrganizationQuery { - query := (&APITokenClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryTagDefinitions chains the current query on the "tag_definitions" edge. +func (_q *OrganizationQuery) QueryTagDefinitions() *TagDefinitionQuery { + query := (&TagDefinitionClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(tagdefinition.Table, tagdefinition.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TagDefinitionsTable, organization.TagDefinitionsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.TagDefinition + step.Edge.Schema = schemaConfig.TagDefinition + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withAPITokens = query - return _q + return query } -// WithEmailTemplates tells the query-builder to eager-load the nodes that are connected to -// the "email_templates" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEmailTemplates(opts ...func(*EmailTemplateQuery)) *OrganizationQuery { - query := (&EmailTemplateClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryRemediations chains the current query on the "remediations" edge. +func (_q *OrganizationQuery) QueryRemediations() *RemediationQuery { + query := (&RemediationClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(remediation.Table, remediation.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.RemediationsTable, organization.RemediationsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Remediation + step.Edge.Schema = schemaConfig.Remediation + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withEmailTemplates = query - return _q + return query } -// WithIntegrationWebhooks tells the query-builder to eager-load the nodes that are connected to -// the "integration_webhooks" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithIntegrationWebhooks(opts ...func(*IntegrationWebhookQuery)) *OrganizationQuery { - query := (&IntegrationWebhookClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryFindings chains the current query on the "findings" edge. +func (_q *OrganizationQuery) QueryFindings() *FindingQuery { + query := (&FindingClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(finding.Table, finding.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FindingsTable, organization.FindingsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Finding + step.Edge.Schema = schemaConfig.Finding + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withIntegrationWebhooks = query - return _q + return query } -// WithIntegrationRuns tells the query-builder to eager-load the nodes that are connected to -// the "integration_runs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithIntegrationRuns(opts ...func(*IntegrationRunQuery)) *OrganizationQuery { - query := (&IntegrationRunClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryReviews chains the current query on the "reviews" edge. +func (_q *OrganizationQuery) QueryReviews() *ReviewQuery { + query := (&ReviewClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(review.Table, review.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ReviewsTable, organization.ReviewsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Review + step.Edge.Schema = schemaConfig.Review + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withIntegrationRuns = query - return _q + return query } -// WithNotificationPreferences tells the query-builder to eager-load the nodes that are connected to -// the "notification_preferences" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNotificationPreferences(opts ...func(*NotificationPreferenceQuery)) *OrganizationQuery { - query := (&NotificationPreferenceClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryVulnerabilities chains the current query on the "vulnerabilities" edge. +func (_q *OrganizationQuery) QueryVulnerabilities() *VulnerabilityQuery { + query := (&VulnerabilityClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(vulnerability.Table, vulnerability.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VulnerabilitiesTable, organization.VulnerabilitiesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Vulnerability + step.Edge.Schema = schemaConfig.Vulnerability + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withNotificationPreferences = query - return _q + return query } -// WithNotificationTemplates tells the query-builder to eager-load the nodes that are connected to -// the "notification_templates" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNotificationTemplates(opts ...func(*NotificationTemplateQuery)) *OrganizationQuery { - query := (&NotificationTemplateClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryNotifications chains the current query on the "notifications" edge. +func (_q *OrganizationQuery) QueryNotifications() *NotificationQuery { + query := (&NotificationClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(notification.Table, notification.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotificationsTable, organization.NotificationsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Notification + step.Edge.Schema = schemaConfig.Notification + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withNotificationTemplates = query - return _q + return query } -// WithUsers tells the query-builder to eager-load the nodes that are connected to -// the "users" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithUsers(opts ...func(*UserQuery)) *OrganizationQuery { - query := (&UserClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowDefinitions chains the current query on the "workflow_definitions" edge. +func (_q *OrganizationQuery) QueryWorkflowDefinitions() *WorkflowDefinitionQuery { + query := (&WorkflowDefinitionClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowdefinition.Table, workflowdefinition.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowDefinitionsTable, organization.WorkflowDefinitionsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowDefinition + step.Edge.Schema = schemaConfig.WorkflowDefinition + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withUsers = query - return _q + return query } -// WithFiles tells the query-builder to eager-load the nodes that are connected to -// the "files" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithFiles(opts ...func(*FileQuery)) *OrganizationQuery { - query := (&FileClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withFiles = query - return _q -} - -// WithEvents tells the query-builder to eager-load the nodes that are connected to -// the "events" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEvents(opts ...func(*EventQuery)) *OrganizationQuery { - query := (&EventClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowInstances chains the current query on the "workflow_instances" edge. +func (_q *OrganizationQuery) QueryWorkflowInstances() *WorkflowInstanceQuery { + query := (&WorkflowInstanceClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowinstance.Table, workflowinstance.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowInstancesTable, organization.WorkflowInstancesColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowInstance + step.Edge.Schema = schemaConfig.WorkflowInstance + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withEvents = query - return _q + return query } -// WithSecrets tells the query-builder to eager-load the nodes that are connected to -// the "secrets" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSecrets(opts ...func(*HushQuery)) *OrganizationQuery { - query := (&HushClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowEvents chains the current query on the "workflow_events" edge. +func (_q *OrganizationQuery) QueryWorkflowEvents() *WorkflowEventQuery { + query := (&WorkflowEventClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowevent.Table, workflowevent.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowEventsTable, organization.WorkflowEventsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowEvent + step.Edge.Schema = schemaConfig.WorkflowEvent + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withSecrets = query - return _q + return query } -// WithAvatarFile tells the query-builder to eager-load the nodes that are connected to -// the "avatar_file" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAvatarFile(opts ...func(*FileQuery)) *OrganizationQuery { - query := (&FileClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowAssignments chains the current query on the "workflow_assignments" edge. +func (_q *OrganizationQuery) QueryWorkflowAssignments() *WorkflowAssignmentQuery { + query := (&WorkflowAssignmentClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowassignment.Table, workflowassignment.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentsTable, organization.WorkflowAssignmentsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowAssignment + step.Edge.Schema = schemaConfig.WorkflowAssignment + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withAvatarFile = query - return _q + return query } -// WithGroups tells the query-builder to eager-load the nodes that are connected to -// the "groups" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithGroups(opts ...func(*GroupQuery)) *OrganizationQuery { - query := (&GroupClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowAssignmentTargets chains the current query on the "workflow_assignment_targets" edge. +func (_q *OrganizationQuery) QueryWorkflowAssignmentTargets() *WorkflowAssignmentTargetQuery { + query := (&WorkflowAssignmentTargetClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowassignmenttarget.Table, workflowassignmenttarget.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowAssignmentTargetsTable, organization.WorkflowAssignmentTargetsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowAssignmentTarget + step.Edge.Schema = schemaConfig.WorkflowAssignmentTarget + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withGroups = query - return _q + return query } -// WithTemplates tells the query-builder to eager-load the nodes that are connected to -// the "templates" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTemplates(opts ...func(*TemplateQuery)) *OrganizationQuery { - query := (&TemplateClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowObjectRefs chains the current query on the "workflow_object_refs" edge. +func (_q *OrganizationQuery) QueryWorkflowObjectRefs() *WorkflowObjectRefQuery { + query := (&WorkflowObjectRefClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowobjectref.Table, workflowobjectref.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowObjectRefsTable, organization.WorkflowObjectRefsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowObjectRef + step.Edge.Schema = schemaConfig.WorkflowObjectRef + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withTemplates = query - return _q + return query } -// WithIntegrations tells the query-builder to eager-load the nodes that are connected to -// the "integrations" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery { - query := (&IntegrationClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryWorkflowProposals chains the current query on the "workflow_proposals" edge. +func (_q *OrganizationQuery) QueryWorkflowProposals() *WorkflowProposalQuery { + query := (&WorkflowProposalClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(workflowproposal.Table, workflowproposal.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WorkflowProposalsTable, organization.WorkflowProposalsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.WorkflowProposal + step.Edge.Schema = schemaConfig.WorkflowProposal + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withIntegrations = query - return _q + return query } -// WithDocuments tells the query-builder to eager-load the nodes that are connected to -// the "documents" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDocuments(opts ...func(*DocumentDataQuery)) *OrganizationQuery { - query := (&DocumentDataClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDirectoryAccounts chains the current query on the "directory_accounts" edge. +func (_q *OrganizationQuery) QueryDirectoryAccounts() *DirectoryAccountQuery { + query := (&DirectoryAccountClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(directoryaccount.Table, directoryaccount.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryAccountsTable, organization.DirectoryAccountsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.DirectoryAccount + step.Edge.Schema = schemaConfig.DirectoryAccount + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withDocuments = query - return _q + return query } -// WithOrgSubscriptions tells the query-builder to eager-load the nodes that are connected to -// the "org_subscriptions" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithOrgSubscriptions(opts ...func(*OrgSubscriptionQuery)) *OrganizationQuery { - query := (&OrgSubscriptionClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDirectoryGroups chains the current query on the "directory_groups" edge. +func (_q *OrganizationQuery) QueryDirectoryGroups() *DirectoryGroupQuery { + query := (&DirectoryGroupClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(directorygroup.Table, directorygroup.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryGroupsTable, organization.DirectoryGroupsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.DirectoryGroup + step.Edge.Schema = schemaConfig.DirectoryGroup + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withOrgSubscriptions = query - return _q + return query } -// WithOrgProducts tells the query-builder to eager-load the nodes that are connected to -// the "org_products" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithOrgProducts(opts ...func(*OrgProductQuery)) *OrganizationQuery { - query := (&OrgProductClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDirectoryMemberships chains the current query on the "directory_memberships" edge. +func (_q *OrganizationQuery) QueryDirectoryMemberships() *DirectoryMembershipQuery { + query := (&DirectoryMembershipClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(directorymembership.Table, directorymembership.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectoryMembershipsTable, organization.DirectoryMembershipsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.DirectoryMembership + step.Edge.Schema = schemaConfig.DirectoryMembership + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withOrgProducts = query - return _q + return query } -// WithOrgPrices tells the query-builder to eager-load the nodes that are connected to -// the "org_prices" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithOrgPrices(opts ...func(*OrgPriceQuery)) *OrganizationQuery { - query := (&OrgPriceClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDirectorySyncRuns chains the current query on the "directory_sync_runs" edge. +func (_q *OrganizationQuery) QueryDirectorySyncRuns() *DirectorySyncRunQuery { + query := (&DirectorySyncRunClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(directorysyncrun.Table, directorysyncrun.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DirectorySyncRunsTable, organization.DirectorySyncRunsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.DirectorySyncRun + step.Edge.Schema = schemaConfig.DirectorySyncRun + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withOrgPrices = query - return _q + return query } -// WithOrgModules tells the query-builder to eager-load the nodes that are connected to -// the "org_modules" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithOrgModules(opts ...func(*OrgModuleQuery)) *OrganizationQuery { - query := (&OrgModuleClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryDiscussions chains the current query on the "discussions" edge. +func (_q *OrganizationQuery) QueryDiscussions() *DiscussionQuery { + query := (&DiscussionClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(discussion.Table, discussion.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DiscussionsTable, organization.DiscussionsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.Discussion + step.Edge.Schema = schemaConfig.Discussion + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withOrgModules = query - return _q + return query } -// WithInvites tells the query-builder to eager-load the nodes that are connected to -// the "invites" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithInvites(opts ...func(*InviteQuery)) *OrganizationQuery { - query := (&InviteClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryVendorScoringConfigs chains the current query on the "vendor_scoring_configs" edge. +func (_q *OrganizationQuery) QueryVendorScoringConfigs() *VendorScoringConfigQuery { + query := (&VendorScoringConfigClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(vendorscoringconfig.Table, vendorscoringconfig.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorScoringConfigsTable, organization.VendorScoringConfigsColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.VendorScoringConfig + step.Edge.Schema = schemaConfig.VendorScoringConfig + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withInvites = query - return _q + return query } -// WithSubscribers tells the query-builder to eager-load the nodes that are connected to -// the "subscribers" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSubscribers(opts ...func(*SubscriberQuery)) *OrganizationQuery { - query := (&SubscriberClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryVendorRiskScores chains the current query on the "vendor_risk_scores" edge. +func (_q *OrganizationQuery) QueryVendorRiskScores() *VendorRiskScoreQuery { + query := (&VendorRiskScoreClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(vendorriskscore.Table, vendorriskscore.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.VendorRiskScoresTable, organization.VendorRiskScoresColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.VendorRiskScore + step.Edge.Schema = schemaConfig.VendorRiskScore + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withSubscribers = query - return _q + return query } -// WithEntities tells the query-builder to eager-load the nodes that are connected to -// the "entities" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEntities(opts ...func(*EntityQuery)) *OrganizationQuery { - query := (&EntityClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// QueryMembers chains the current query on the "members" edge. +func (_q *OrganizationQuery) QueryMembers() *OrgMembershipQuery { + query := (&OrgMembershipClient{config: _q.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, selector), + sqlgraph.To(orgmembership.Table, orgmembership.FieldID), + sqlgraph.Edge(sqlgraph.O2M, true, organization.MembersTable, organization.MembersColumn), + ) + schemaConfig := _q.schemaConfig + step.To.Schema = schemaConfig.OrgMembership + step.Edge.Schema = schemaConfig.OrgMembership + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil } - _q.withEntities = query - return _q + return query } -// WithPlatforms tells the query-builder to eager-load the nodes that are connected to -// the "platforms" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithPlatforms(opts ...func(*PlatformQuery)) *OrganizationQuery { - query := (&PlatformClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// First returns the first Organization entity from the query. +// Returns a *NotFoundError when no Organization was found. +func (_q *OrganizationQuery) First(ctx context.Context) (*Organization, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err } - _q.withPlatforms = query - return _q -} - -// WithIdentityHolders tells the query-builder to eager-load the nodes that are connected to -// the "identity_holders" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithIdentityHolders(opts ...func(*IdentityHolderQuery)) *OrganizationQuery { - query := (&IdentityHolderClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) + if len(nodes) == 0 { + return nil, &NotFoundError{organization.Label} } - _q.withIdentityHolders = query - return _q + return nodes[0], nil } -// WithCampaigns tells the query-builder to eager-load the nodes that are connected to -// the "campaigns" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithCampaigns(opts ...func(*CampaignQuery)) *OrganizationQuery { - query := (&CampaignClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// FirstX is like First, but panics if an error occurs. +func (_q *OrganizationQuery) FirstX(ctx context.Context) *Organization { + node, err := _q.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) } - _q.withCampaigns = query - return _q + return node } -// WithCampaignTargets tells the query-builder to eager-load the nodes that are connected to -// the "campaign_targets" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithCampaignTargets(opts ...func(*CampaignTargetQuery)) *OrganizationQuery { - query := (&CampaignTargetClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// FirstID returns the first Organization ID from the query. +// Returns a *NotFoundError when no Organization ID was found. +func (_q *OrganizationQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { + return } - _q.withCampaignTargets = query - return _q + if len(ids) == 0 { + err = &NotFoundError{organization.Label} + return + } + return ids[0], nil } -// WithEntityTypes tells the query-builder to eager-load the nodes that are connected to -// the "entity_types" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEntityTypes(opts ...func(*EntityTypeQuery)) *OrganizationQuery { - query := (&EntityTypeClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// FirstIDX is like FirstID, but panics if an error occurs. +func (_q *OrganizationQuery) FirstIDX(ctx context.Context) string { + id, err := _q.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) } - _q.withEntityTypes = query - return _q + return id } -// WithContacts tells the query-builder to eager-load the nodes that are connected to -// the "contacts" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithContacts(opts ...func(*ContactQuery)) *OrganizationQuery { - query := (&ContactClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) - } - _q.withContacts = query - return _q +// Only returns a single Organization entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Organization entity is found. +// Returns a *NotFoundError when no Organization entities are found. +func (_q *OrganizationQuery) Only(ctx context.Context) (*Organization, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{organization.Label} + default: + return nil, &NotSingularError{organization.Label} + } } -// WithNotes tells the query-builder to eager-load the nodes that are connected to -// the "notes" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNotes(opts ...func(*NoteQuery)) *OrganizationQuery { - query := (&NoteClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// OnlyX is like Only, but panics if an error occurs. +func (_q *OrganizationQuery) OnlyX(ctx context.Context) *Organization { + node, err := _q.Only(ctx) + if err != nil { + panic(err) } - _q.withNotes = query - return _q + return node } -// WithTasks tells the query-builder to eager-load the nodes that are connected to -// the "tasks" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTasks(opts ...func(*TaskQuery)) *OrganizationQuery { - query := (&TaskClient{config: _q.config}).Query() - for _, opt := range opts { - opt(query) +// OnlyID is like Only, but returns the only Organization ID in the query. +// Returns a *NotSingularError when more than one Organization ID is found. +// Returns a *NotFoundError when no entities are found. +func (_q *OrganizationQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { + return } - _q.withTasks = query - return _q + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{organization.Label} + default: + err = &NotSingularError{organization.Label} + } + return } -// WithPrograms tells the query-builder to eager-load the nodes that are connected to -// the "programs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithPrograms(opts ...func(*ProgramQuery)) *OrganizationQuery { - query := (&ProgramClient{config: _q.config}).Query() +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (_q *OrganizationQuery) OnlyIDX(ctx context.Context) string { + id, err := _q.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Organizations. +func (_q *OrganizationQuery) All(ctx context.Context) ([]*Organization, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Organization, *OrganizationQuery]() + return withInterceptors[[]*Organization](ctx, _q, qr, _q.inters) +} + +// AllX is like All, but panics if an error occurs. +func (_q *OrganizationQuery) AllX(ctx context.Context) []*Organization { + nodes, err := _q.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Organization IDs. +func (_q *OrganizationQuery) IDs(ctx context.Context) (ids []string, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) + } + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(organization.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (_q *OrganizationQuery) IDsX(ctx context.Context) []string { + ids, err := _q.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (_q *OrganizationQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, _q, querierCount[*OrganizationQuery](), _q.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (_q *OrganizationQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (_q *OrganizationQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { + case IsNotFound(err): + return false, nil + case err != nil: + return false, fmt.Errorf("generated: check existence: %w", err) + default: + return true, nil + } +} + +// ExistX is like Exist, but panics if an error occurs. +func (_q *OrganizationQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (_q *OrganizationQuery) Clone() *OrganizationQuery { + if _q == nil { + return nil + } + return &OrganizationQuery{ + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]organization.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.Organization{}, _q.predicates...), + withActionPlanCreators: _q.withActionPlanCreators.Clone(), + withAPITokenCreators: _q.withAPITokenCreators.Clone(), + withAssessmentCreators: _q.withAssessmentCreators.Clone(), + withAssetCreators: _q.withAssetCreators.Clone(), + withCampaignCreators: _q.withCampaignCreators.Clone(), + withCampaignTargetCreators: _q.withCampaignTargetCreators.Clone(), + withCheckResultCreators: _q.withCheckResultCreators.Clone(), + withContactCreators: _q.withContactCreators.Clone(), + withControlCreators: _q.withControlCreators.Clone(), + withControlImplementationCreators: _q.withControlImplementationCreators.Clone(), + withControlObjectiveCreators: _q.withControlObjectiveCreators.Clone(), + withCustomTypeEnumCreators: _q.withCustomTypeEnumCreators.Clone(), + withDiscussionCreators: _q.withDiscussionCreators.Clone(), + withEmailTemplateCreators: _q.withEmailTemplateCreators.Clone(), + withEntityCreators: _q.withEntityCreators.Clone(), + withEntityTypeCreators: _q.withEntityTypeCreators.Clone(), + withEvidenceCreators: _q.withEvidenceCreators.Clone(), + withExportCreators: _q.withExportCreators.Clone(), + withFileCreators: _q.withFileCreators.Clone(), + withFindingCreators: _q.withFindingCreators.Clone(), + withGroupCreators: _q.withGroupCreators.Clone(), + withIdentityHolderCreators: _q.withIdentityHolderCreators.Clone(), + withIntegrationCreators: _q.withIntegrationCreators.Clone(), + withIntegrationWebhookCreators: _q.withIntegrationWebhookCreators.Clone(), + withInternalPolicyCreators: _q.withInternalPolicyCreators.Clone(), + withJobRunnerCreators: _q.withJobRunnerCreators.Clone(), + withJobRunnerRegistrationTokenCreators: _q.withJobRunnerRegistrationTokenCreators.Clone(), + withJobRunnerTokenCreators: _q.withJobRunnerTokenCreators.Clone(), + withJobTemplateCreators: _q.withJobTemplateCreators.Clone(), + withMappedControlCreators: _q.withMappedControlCreators.Clone(), + withNarrativeCreators: _q.withNarrativeCreators.Clone(), + withNoteCreators: _q.withNoteCreators.Clone(), + withNotificationTemplateCreators: _q.withNotificationTemplateCreators.Clone(), + withOrganizationCreators: _q.withOrganizationCreators.Clone(), + withPlatformCreators: _q.withPlatformCreators.Clone(), + withProcedureCreators: _q.withProcedureCreators.Clone(), + withProgramCreators: _q.withProgramCreators.Clone(), + withRemediationCreators: _q.withRemediationCreators.Clone(), + withReviewCreators: _q.withReviewCreators.Clone(), + withRiskCreators: _q.withRiskCreators.Clone(), + withScanCreators: _q.withScanCreators.Clone(), + withScheduledJobCreators: _q.withScheduledJobCreators.Clone(), + withScheduledJobRunCreators: _q.withScheduledJobRunCreators.Clone(), + withStandardCreators: _q.withStandardCreators.Clone(), + withSubcontrolCreators: _q.withSubcontrolCreators.Clone(), + withSubprocessorCreators: _q.withSubprocessorCreators.Clone(), + withSubscriberCreators: _q.withSubscriberCreators.Clone(), + withSystemDetailCreators: _q.withSystemDetailCreators.Clone(), + withTagDefinitionCreators: _q.withTagDefinitionCreators.Clone(), + withTaskCreators: _q.withTaskCreators.Clone(), + withTemplateCreators: _q.withTemplateCreators.Clone(), + withTrustCenterCreators: _q.withTrustCenterCreators.Clone(), + withTrustCenterComplianceCreators: _q.withTrustCenterComplianceCreators.Clone(), + withTrustCenterDocCreators: _q.withTrustCenterDocCreators.Clone(), + withTrustCenterEntityCreators: _q.withTrustCenterEntityCreators.Clone(), + withTrustCenterFaqCreators: _q.withTrustCenterFaqCreators.Clone(), + withTrustCenterNdaRequestCreators: _q.withTrustCenterNdaRequestCreators.Clone(), + withTrustCenterSubprocessorCreators: _q.withTrustCenterSubprocessorCreators.Clone(), + withTrustCenterWatermarkConfigCreators: _q.withTrustCenterWatermarkConfigCreators.Clone(), + withUserCreators: _q.withUserCreators.Clone(), + withUserSettingCreators: _q.withUserSettingCreators.Clone(), + withVendorRiskScoreCreators: _q.withVendorRiskScoreCreators.Clone(), + withVulnerabilityCreators: _q.withVulnerabilityCreators.Clone(), + withWorkflowAssignmentCreators: _q.withWorkflowAssignmentCreators.Clone(), + withWorkflowAssignmentTargetCreators: _q.withWorkflowAssignmentTargetCreators.Clone(), + withWorkflowDefinitionCreators: _q.withWorkflowDefinitionCreators.Clone(), + withWorkflowEventCreators: _q.withWorkflowEventCreators.Clone(), + withWorkflowInstanceCreators: _q.withWorkflowInstanceCreators.Clone(), + withWorkflowObjectRefCreators: _q.withWorkflowObjectRefCreators.Clone(), + withWorkflowProposalCreators: _q.withWorkflowProposalCreators.Clone(), + withCampaignsManager: _q.withCampaignsManager.Clone(), + withComplianceManager: _q.withComplianceManager.Clone(), + withGroupManager: _q.withGroupManager.Clone(), + withPoliciesManager: _q.withPoliciesManager.Clone(), + withRegistryManager: _q.withRegistryManager.Clone(), + withRiskManager: _q.withRiskManager.Clone(), + withTrustCenterManager: _q.withTrustCenterManager.Clone(), + withWorkflowsManager: _q.withWorkflowsManager.Clone(), + withParent: _q.withParent.Clone(), + withChildren: _q.withChildren.Clone(), + withSetting: _q.withSetting.Clone(), + withPersonalAccessTokens: _q.withPersonalAccessTokens.Clone(), + withAPITokens: _q.withAPITokens.Clone(), + withEmailTemplates: _q.withEmailTemplates.Clone(), + withIntegrationWebhooks: _q.withIntegrationWebhooks.Clone(), + withIntegrationRuns: _q.withIntegrationRuns.Clone(), + withNotificationPreferences: _q.withNotificationPreferences.Clone(), + withNotificationTemplates: _q.withNotificationTemplates.Clone(), + withUsers: _q.withUsers.Clone(), + withFiles: _q.withFiles.Clone(), + withEvents: _q.withEvents.Clone(), + withSecrets: _q.withSecrets.Clone(), + withAvatarFile: _q.withAvatarFile.Clone(), + withGroups: _q.withGroups.Clone(), + withTemplates: _q.withTemplates.Clone(), + withIntegrations: _q.withIntegrations.Clone(), + withDocuments: _q.withDocuments.Clone(), + withOrgSubscriptions: _q.withOrgSubscriptions.Clone(), + withOrgProducts: _q.withOrgProducts.Clone(), + withOrgPrices: _q.withOrgPrices.Clone(), + withOrgModules: _q.withOrgModules.Clone(), + withInvites: _q.withInvites.Clone(), + withSubscribers: _q.withSubscribers.Clone(), + withEntities: _q.withEntities.Clone(), + withPlatforms: _q.withPlatforms.Clone(), + withIdentityHolders: _q.withIdentityHolders.Clone(), + withCampaigns: _q.withCampaigns.Clone(), + withCampaignTargets: _q.withCampaignTargets.Clone(), + withEntityTypes: _q.withEntityTypes.Clone(), + withContacts: _q.withContacts.Clone(), + withNotes: _q.withNotes.Clone(), + withTasks: _q.withTasks.Clone(), + withPrograms: _q.withPrograms.Clone(), + withSystemDetails: _q.withSystemDetails.Clone(), + withProcedures: _q.withProcedures.Clone(), + withInternalPolicies: _q.withInternalPolicies.Clone(), + withRisks: _q.withRisks.Clone(), + withControlObjectives: _q.withControlObjectives.Clone(), + withNarratives: _q.withNarratives.Clone(), + withControls: _q.withControls.Clone(), + withSubcontrols: _q.withSubcontrols.Clone(), + withControlImplementations: _q.withControlImplementations.Clone(), + withMappedControls: _q.withMappedControls.Clone(), + withEvidence: _q.withEvidence.Clone(), + withStandards: _q.withStandards.Clone(), + withActionPlans: _q.withActionPlans.Clone(), + withCustomDomains: _q.withCustomDomains.Clone(), + withJobRunners: _q.withJobRunners.Clone(), + withJobRunnerTokens: _q.withJobRunnerTokens.Clone(), + withJobRunnerRegistrationTokens: _q.withJobRunnerRegistrationTokens.Clone(), + withDNSVerifications: _q.withDNSVerifications.Clone(), + withJobTemplates: _q.withJobTemplates.Clone(), + withScheduledJobs: _q.withScheduledJobs.Clone(), + withJobResults: _q.withJobResults.Clone(), + withScheduledJobRuns: _q.withScheduledJobRuns.Clone(), + withTrustCenters: _q.withTrustCenters.Clone(), + withAssets: _q.withAssets.Clone(), + withScans: _q.withScans.Clone(), + withSLADefinitions: _q.withSLADefinitions.Clone(), + withSubprocessors: _q.withSubprocessors.Clone(), + withExports: _q.withExports.Clone(), + withTrustCenterWatermarkConfigs: _q.withTrustCenterWatermarkConfigs.Clone(), + withImpersonationEvents: _q.withImpersonationEvents.Clone(), + withAssessments: _q.withAssessments.Clone(), + withAssessmentResponses: _q.withAssessmentResponses.Clone(), + withCustomTypeEnums: _q.withCustomTypeEnums.Clone(), + withTagDefinitions: _q.withTagDefinitions.Clone(), + withRemediations: _q.withRemediations.Clone(), + withFindings: _q.withFindings.Clone(), + withReviews: _q.withReviews.Clone(), + withVulnerabilities: _q.withVulnerabilities.Clone(), + withNotifications: _q.withNotifications.Clone(), + withWorkflowDefinitions: _q.withWorkflowDefinitions.Clone(), + withWorkflowInstances: _q.withWorkflowInstances.Clone(), + withWorkflowEvents: _q.withWorkflowEvents.Clone(), + withWorkflowAssignments: _q.withWorkflowAssignments.Clone(), + withWorkflowAssignmentTargets: _q.withWorkflowAssignmentTargets.Clone(), + withWorkflowObjectRefs: _q.withWorkflowObjectRefs.Clone(), + withWorkflowProposals: _q.withWorkflowProposals.Clone(), + withDirectoryAccounts: _q.withDirectoryAccounts.Clone(), + withDirectoryGroups: _q.withDirectoryGroups.Clone(), + withDirectoryMemberships: _q.withDirectoryMemberships.Clone(), + withDirectorySyncRuns: _q.withDirectorySyncRuns.Clone(), + withDiscussions: _q.withDiscussions.Clone(), + withVendorScoringConfigs: _q.withVendorScoringConfigs.Clone(), + withVendorRiskScores: _q.withVendorRiskScores.Clone(), + withMembers: _q.withMembers.Clone(), + // clone intermediate query. + sql: _q.sql.Clone(), + path: _q.path, + modifiers: append([]func(*sql.Selector){}, _q.modifiers...), + } +} + +// WithActionPlanCreators tells the query-builder to eager-load the nodes that are connected to +// the "action_plan_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithActionPlanCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withPrograms = query + _q.withActionPlanCreators = query return _q } -// WithSystemDetails tells the query-builder to eager-load the nodes that are connected to -// the "system_details" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSystemDetails(opts ...func(*SystemDetailQuery)) *OrganizationQuery { - query := (&SystemDetailClient{config: _q.config}).Query() +// WithAPITokenCreators tells the query-builder to eager-load the nodes that are connected to +// the "api_token_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAPITokenCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withSystemDetails = query + _q.withAPITokenCreators = query return _q } -// WithProcedures tells the query-builder to eager-load the nodes that are connected to -// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithProcedures(opts ...func(*ProcedureQuery)) *OrganizationQuery { - query := (&ProcedureClient{config: _q.config}).Query() +// WithAssessmentCreators tells the query-builder to eager-load the nodes that are connected to +// the "assessment_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAssessmentCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withProcedures = query + _q.withAssessmentCreators = query return _q } -// WithInternalPolicies tells the query-builder to eager-load the nodes that are connected to -// the "internal_policies" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithInternalPolicies(opts ...func(*InternalPolicyQuery)) *OrganizationQuery { - query := (&InternalPolicyClient{config: _q.config}).Query() +// WithAssetCreators tells the query-builder to eager-load the nodes that are connected to +// the "asset_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAssetCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withInternalPolicies = query + _q.withAssetCreators = query return _q } -// WithRisks tells the query-builder to eager-load the nodes that are connected to -// the "risks" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithRisks(opts ...func(*RiskQuery)) *OrganizationQuery { - query := (&RiskClient{config: _q.config}).Query() +// WithCampaignCreators tells the query-builder to eager-load the nodes that are connected to +// the "campaign_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCampaignCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withRisks = query + _q.withCampaignCreators = query return _q } -// WithControlObjectives tells the query-builder to eager-load the nodes that are connected to -// the "control_objectives" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControlObjectives(opts ...func(*ControlObjectiveQuery)) *OrganizationQuery { - query := (&ControlObjectiveClient{config: _q.config}).Query() +// WithCampaignTargetCreators tells the query-builder to eager-load the nodes that are connected to +// the "campaign_target_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCampaignTargetCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withControlObjectives = query + _q.withCampaignTargetCreators = query return _q } -// WithNarratives tells the query-builder to eager-load the nodes that are connected to -// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNarratives(opts ...func(*NarrativeQuery)) *OrganizationQuery { - query := (&NarrativeClient{config: _q.config}).Query() +// WithCheckResultCreators tells the query-builder to eager-load the nodes that are connected to +// the "check_result_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCheckResultCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withNarratives = query + _q.withCheckResultCreators = query return _q } -// WithControls tells the query-builder to eager-load the nodes that are connected to -// the "controls" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControls(opts ...func(*ControlQuery)) *OrganizationQuery { - query := (&ControlClient{config: _q.config}).Query() +// WithContactCreators tells the query-builder to eager-load the nodes that are connected to +// the "contact_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithContactCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withControls = query + _q.withContactCreators = query return _q } -// WithSubcontrols tells the query-builder to eager-load the nodes that are connected to -// the "subcontrols" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *OrganizationQuery { - query := (&SubcontrolClient{config: _q.config}).Query() +// WithControlCreators tells the query-builder to eager-load the nodes that are connected to +// the "control_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControlCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withSubcontrols = query + _q.withControlCreators = query return _q } -// WithControlImplementations tells the query-builder to eager-load the nodes that are connected to -// the "control_implementations" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithControlImplementations(opts ...func(*ControlImplementationQuery)) *OrganizationQuery { - query := (&ControlImplementationClient{config: _q.config}).Query() +// WithControlImplementationCreators tells the query-builder to eager-load the nodes that are connected to +// the "control_implementation_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControlImplementationCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withControlImplementations = query + _q.withControlImplementationCreators = query return _q } -// WithMappedControls tells the query-builder to eager-load the nodes that are connected to -// the "mapped_controls" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithMappedControls(opts ...func(*MappedControlQuery)) *OrganizationQuery { - query := (&MappedControlClient{config: _q.config}).Query() +// WithControlObjectiveCreators tells the query-builder to eager-load the nodes that are connected to +// the "control_objective_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControlObjectiveCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withMappedControls = query + _q.withControlObjectiveCreators = query return _q } -// WithEvidence tells the query-builder to eager-load the nodes that are connected to -// the "evidence" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithEvidence(opts ...func(*EvidenceQuery)) *OrganizationQuery { - query := (&EvidenceClient{config: _q.config}).Query() +// WithCustomTypeEnumCreators tells the query-builder to eager-load the nodes that are connected to +// the "custom_type_enum_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCustomTypeEnumCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withEvidence = query + _q.withCustomTypeEnumCreators = query return _q } -// WithStandards tells the query-builder to eager-load the nodes that are connected to -// the "standards" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithStandards(opts ...func(*StandardQuery)) *OrganizationQuery { - query := (&StandardClient{config: _q.config}).Query() +// WithDiscussionCreators tells the query-builder to eager-load the nodes that are connected to +// the "discussion_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDiscussionCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withStandards = query + _q.withDiscussionCreators = query return _q } -// WithActionPlans tells the query-builder to eager-load the nodes that are connected to -// the "action_plans" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithActionPlans(opts ...func(*ActionPlanQuery)) *OrganizationQuery { - query := (&ActionPlanClient{config: _q.config}).Query() +// WithEmailTemplateCreators tells the query-builder to eager-load the nodes that are connected to +// the "email_template_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEmailTemplateCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withActionPlans = query + _q.withEmailTemplateCreators = query return _q } -// WithCustomDomains tells the query-builder to eager-load the nodes that are connected to -// the "custom_domains" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithCustomDomains(opts ...func(*CustomDomainQuery)) *OrganizationQuery { - query := (&CustomDomainClient{config: _q.config}).Query() +// WithEntityCreators tells the query-builder to eager-load the nodes that are connected to +// the "entity_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEntityCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withCustomDomains = query + _q.withEntityCreators = query return _q } -// WithJobRunners tells the query-builder to eager-load the nodes that are connected to -// the "job_runners" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithJobRunners(opts ...func(*JobRunnerQuery)) *OrganizationQuery { - query := (&JobRunnerClient{config: _q.config}).Query() +// WithEntityTypeCreators tells the query-builder to eager-load the nodes that are connected to +// the "entity_type_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEntityTypeCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withJobRunners = query + _q.withEntityTypeCreators = query return _q } -// WithJobRunnerTokens tells the query-builder to eager-load the nodes that are connected to -// the "job_runner_tokens" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithJobRunnerTokens(opts ...func(*JobRunnerTokenQuery)) *OrganizationQuery { - query := (&JobRunnerTokenClient{config: _q.config}).Query() +// WithEvidenceCreators tells the query-builder to eager-load the nodes that are connected to +// the "evidence_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEvidenceCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withJobRunnerTokens = query + _q.withEvidenceCreators = query return _q } -// WithJobRunnerRegistrationTokens tells the query-builder to eager-load the nodes that are connected to -// the "job_runner_registration_tokens" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithJobRunnerRegistrationTokens(opts ...func(*JobRunnerRegistrationTokenQuery)) *OrganizationQuery { - query := (&JobRunnerRegistrationTokenClient{config: _q.config}).Query() +// WithExportCreators tells the query-builder to eager-load the nodes that are connected to +// the "export_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithExportCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withJobRunnerRegistrationTokens = query + _q.withExportCreators = query return _q } -// WithDNSVerifications tells the query-builder to eager-load the nodes that are connected to -// the "dns_verifications" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDNSVerifications(opts ...func(*DNSVerificationQuery)) *OrganizationQuery { - query := (&DNSVerificationClient{config: _q.config}).Query() +// WithFileCreators tells the query-builder to eager-load the nodes that are connected to +// the "file_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithFileCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDNSVerifications = query + _q.withFileCreators = query return _q } -// WithJobTemplates tells the query-builder to eager-load the nodes that are connected to -// the "job_templates" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithJobTemplates(opts ...func(*JobTemplateQuery)) *OrganizationQuery { - query := (&JobTemplateClient{config: _q.config}).Query() +// WithFindingCreators tells the query-builder to eager-load the nodes that are connected to +// the "finding_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithFindingCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withJobTemplates = query + _q.withFindingCreators = query return _q } -// WithScheduledJobs tells the query-builder to eager-load the nodes that are connected to -// the "scheduled_jobs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithScheduledJobs(opts ...func(*ScheduledJobQuery)) *OrganizationQuery { - query := (&ScheduledJobClient{config: _q.config}).Query() +// WithGroupCreators tells the query-builder to eager-load the nodes that are connected to +// the "group_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithGroupCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withScheduledJobs = query + _q.withGroupCreators = query return _q } -// WithJobResults tells the query-builder to eager-load the nodes that are connected to -// the "job_results" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithJobResults(opts ...func(*JobResultQuery)) *OrganizationQuery { - query := (&JobResultClient{config: _q.config}).Query() +// WithIdentityHolderCreators tells the query-builder to eager-load the nodes that are connected to +// the "identity_holder_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIdentityHolderCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withJobResults = query + _q.withIdentityHolderCreators = query return _q } -// WithScheduledJobRuns tells the query-builder to eager-load the nodes that are connected to -// the "scheduled_job_runs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithScheduledJobRuns(opts ...func(*ScheduledJobRunQuery)) *OrganizationQuery { - query := (&ScheduledJobRunClient{config: _q.config}).Query() +// WithIntegrationCreators tells the query-builder to eager-load the nodes that are connected to +// the "integration_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIntegrationCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withScheduledJobRuns = query + _q.withIntegrationCreators = query return _q } -// WithTrustCenters tells the query-builder to eager-load the nodes that are connected to -// the "trust_centers" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTrustCenters(opts ...func(*TrustCenterQuery)) *OrganizationQuery { - query := (&TrustCenterClient{config: _q.config}).Query() +// WithIntegrationWebhookCreators tells the query-builder to eager-load the nodes that are connected to +// the "integration_webhook_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIntegrationWebhookCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withTrustCenters = query + _q.withIntegrationWebhookCreators = query return _q } -// WithAssets tells the query-builder to eager-load the nodes that are connected to -// the "assets" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAssets(opts ...func(*AssetQuery)) *OrganizationQuery { - query := (&AssetClient{config: _q.config}).Query() +// WithInternalPolicyCreators tells the query-builder to eager-load the nodes that are connected to +// the "internal_policy_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithInternalPolicyCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withAssets = query + _q.withInternalPolicyCreators = query return _q } -// WithScans tells the query-builder to eager-load the nodes that are connected to -// the "scans" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithScans(opts ...func(*ScanQuery)) *OrganizationQuery { - query := (&ScanClient{config: _q.config}).Query() +// WithJobRunnerCreators tells the query-builder to eager-load the nodes that are connected to +// the "job_runner_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunnerCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withScans = query + _q.withJobRunnerCreators = query return _q } -// WithSLADefinitions tells the query-builder to eager-load the nodes that are connected to -// the "sla_definitions" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSLADefinitions(opts ...func(*SLADefinitionQuery)) *OrganizationQuery { - query := (&SLADefinitionClient{config: _q.config}).Query() +// WithJobRunnerRegistrationTokenCreators tells the query-builder to eager-load the nodes that are connected to +// the "job_runner_registration_token_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunnerRegistrationTokenCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withSLADefinitions = query + _q.withJobRunnerRegistrationTokenCreators = query return _q } -// WithSubprocessors tells the query-builder to eager-load the nodes that are connected to -// the "subprocessors" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithSubprocessors(opts ...func(*SubprocessorQuery)) *OrganizationQuery { - query := (&SubprocessorClient{config: _q.config}).Query() +// WithJobRunnerTokenCreators tells the query-builder to eager-load the nodes that are connected to +// the "job_runner_token_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunnerTokenCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withSubprocessors = query + _q.withJobRunnerTokenCreators = query return _q } -// WithExports tells the query-builder to eager-load the nodes that are connected to -// the "exports" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithExports(opts ...func(*ExportQuery)) *OrganizationQuery { - query := (&ExportClient{config: _q.config}).Query() +// WithJobTemplateCreators tells the query-builder to eager-load the nodes that are connected to +// the "job_template_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobTemplateCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withExports = query + _q.withJobTemplateCreators = query return _q } -// WithTrustCenterWatermarkConfigs tells the query-builder to eager-load the nodes that are connected to -// the "trust_center_watermark_configs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTrustCenterWatermarkConfigs(opts ...func(*TrustCenterWatermarkConfigQuery)) *OrganizationQuery { - query := (&TrustCenterWatermarkConfigClient{config: _q.config}).Query() +// WithMappedControlCreators tells the query-builder to eager-load the nodes that are connected to +// the "mapped_control_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithMappedControlCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withTrustCenterWatermarkConfigs = query + _q.withMappedControlCreators = query return _q } -// WithImpersonationEvents tells the query-builder to eager-load the nodes that are connected to -// the "impersonation_events" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithImpersonationEvents(opts ...func(*ImpersonationEventQuery)) *OrganizationQuery { - query := (&ImpersonationEventClient{config: _q.config}).Query() +// WithNarrativeCreators tells the query-builder to eager-load the nodes that are connected to +// the "narrative_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNarrativeCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withImpersonationEvents = query + _q.withNarrativeCreators = query return _q } -// WithAssessments tells the query-builder to eager-load the nodes that are connected to -// the "assessments" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAssessments(opts ...func(*AssessmentQuery)) *OrganizationQuery { - query := (&AssessmentClient{config: _q.config}).Query() +// WithNoteCreators tells the query-builder to eager-load the nodes that are connected to +// the "note_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNoteCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withAssessments = query + _q.withNoteCreators = query return _q } -// WithAssessmentResponses tells the query-builder to eager-load the nodes that are connected to -// the "assessment_responses" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithAssessmentResponses(opts ...func(*AssessmentResponseQuery)) *OrganizationQuery { - query := (&AssessmentResponseClient{config: _q.config}).Query() +// WithNotificationTemplateCreators tells the query-builder to eager-load the nodes that are connected to +// the "notification_template_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNotificationTemplateCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withAssessmentResponses = query + _q.withNotificationTemplateCreators = query return _q } -// WithCustomTypeEnums tells the query-builder to eager-load the nodes that are connected to -// the "custom_type_enums" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithCustomTypeEnums(opts ...func(*CustomTypeEnumQuery)) *OrganizationQuery { - query := (&CustomTypeEnumClient{config: _q.config}).Query() +// WithOrganizationCreators tells the query-builder to eager-load the nodes that are connected to +// the "organization_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithOrganizationCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withCustomTypeEnums = query + _q.withOrganizationCreators = query return _q } -// WithTagDefinitions tells the query-builder to eager-load the nodes that are connected to -// the "tag_definitions" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithTagDefinitions(opts ...func(*TagDefinitionQuery)) *OrganizationQuery { - query := (&TagDefinitionClient{config: _q.config}).Query() +// WithPlatformCreators tells the query-builder to eager-load the nodes that are connected to +// the "platform_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithPlatformCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withTagDefinitions = query + _q.withPlatformCreators = query return _q } -// WithRemediations tells the query-builder to eager-load the nodes that are connected to -// the "remediations" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithRemediations(opts ...func(*RemediationQuery)) *OrganizationQuery { - query := (&RemediationClient{config: _q.config}).Query() +// WithProcedureCreators tells the query-builder to eager-load the nodes that are connected to +// the "procedure_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithProcedureCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withRemediations = query + _q.withProcedureCreators = query return _q } -// WithFindings tells the query-builder to eager-load the nodes that are connected to -// the "findings" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithFindings(opts ...func(*FindingQuery)) *OrganizationQuery { - query := (&FindingClient{config: _q.config}).Query() +// WithProgramCreators tells the query-builder to eager-load the nodes that are connected to +// the "program_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithProgramCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withFindings = query + _q.withProgramCreators = query return _q } -// WithReviews tells the query-builder to eager-load the nodes that are connected to -// the "reviews" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithReviews(opts ...func(*ReviewQuery)) *OrganizationQuery { - query := (&ReviewClient{config: _q.config}).Query() +// WithRemediationCreators tells the query-builder to eager-load the nodes that are connected to +// the "remediation_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRemediationCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withReviews = query + _q.withRemediationCreators = query return _q } -// WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to -// the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithVulnerabilities(opts ...func(*VulnerabilityQuery)) *OrganizationQuery { - query := (&VulnerabilityClient{config: _q.config}).Query() +// WithReviewCreators tells the query-builder to eager-load the nodes that are connected to +// the "review_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithReviewCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withVulnerabilities = query + _q.withReviewCreators = query return _q } -// WithNotifications tells the query-builder to eager-load the nodes that are connected to -// the "notifications" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNotifications(opts ...func(*NotificationQuery)) *OrganizationQuery { - query := (&NotificationClient{config: _q.config}).Query() +// WithRiskCreators tells the query-builder to eager-load the nodes that are connected to +// the "risk_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRiskCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withNotifications = query + _q.withRiskCreators = query return _q } -// WithWorkflowDefinitions tells the query-builder to eager-load the nodes that are connected to -// the "workflow_definitions" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowDefinitions(opts ...func(*WorkflowDefinitionQuery)) *OrganizationQuery { - query := (&WorkflowDefinitionClient{config: _q.config}).Query() +// WithScanCreators tells the query-builder to eager-load the nodes that are connected to +// the "scan_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScanCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowDefinitions = query + _q.withScanCreators = query return _q } -// WithWorkflowInstances tells the query-builder to eager-load the nodes that are connected to -// the "workflow_instances" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowInstances(opts ...func(*WorkflowInstanceQuery)) *OrganizationQuery { - query := (&WorkflowInstanceClient{config: _q.config}).Query() +// WithScheduledJobCreators tells the query-builder to eager-load the nodes that are connected to +// the "scheduled_job_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScheduledJobCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowInstances = query + _q.withScheduledJobCreators = query return _q } -// WithWorkflowEvents tells the query-builder to eager-load the nodes that are connected to -// the "workflow_events" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowEvents(opts ...func(*WorkflowEventQuery)) *OrganizationQuery { - query := (&WorkflowEventClient{config: _q.config}).Query() +// WithScheduledJobRunCreators tells the query-builder to eager-load the nodes that are connected to +// the "scheduled_job_run_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScheduledJobRunCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowEvents = query + _q.withScheduledJobRunCreators = query return _q } -// WithWorkflowAssignments tells the query-builder to eager-load the nodes that are connected to -// the "workflow_assignments" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowAssignments(opts ...func(*WorkflowAssignmentQuery)) *OrganizationQuery { - query := (&WorkflowAssignmentClient{config: _q.config}).Query() +// WithStandardCreators tells the query-builder to eager-load the nodes that are connected to +// the "standard_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithStandardCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowAssignments = query + _q.withStandardCreators = query return _q } -// WithWorkflowAssignmentTargets tells the query-builder to eager-load the nodes that are connected to -// the "workflow_assignment_targets" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowAssignmentTargets(opts ...func(*WorkflowAssignmentTargetQuery)) *OrganizationQuery { - query := (&WorkflowAssignmentTargetClient{config: _q.config}).Query() +// WithSubcontrolCreators tells the query-builder to eager-load the nodes that are connected to +// the "subcontrol_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubcontrolCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowAssignmentTargets = query + _q.withSubcontrolCreators = query return _q } -// WithWorkflowObjectRefs tells the query-builder to eager-load the nodes that are connected to -// the "workflow_object_refs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowObjectRefs(opts ...func(*WorkflowObjectRefQuery)) *OrganizationQuery { - query := (&WorkflowObjectRefClient{config: _q.config}).Query() +// WithSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to +// the "subprocessor_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubprocessorCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowObjectRefs = query + _q.withSubprocessorCreators = query return _q } -// WithWorkflowProposals tells the query-builder to eager-load the nodes that are connected to -// the "workflow_proposals" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithWorkflowProposals(opts ...func(*WorkflowProposalQuery)) *OrganizationQuery { - query := (&WorkflowProposalClient{config: _q.config}).Query() +// WithSubscriberCreators tells the query-builder to eager-load the nodes that are connected to +// the "subscriber_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubscriberCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withWorkflowProposals = query + _q.withSubscriberCreators = query return _q } -// WithDirectoryAccounts tells the query-builder to eager-load the nodes that are connected to -// the "directory_accounts" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDirectoryAccounts(opts ...func(*DirectoryAccountQuery)) *OrganizationQuery { - query := (&DirectoryAccountClient{config: _q.config}).Query() +// WithSystemDetailCreators tells the query-builder to eager-load the nodes that are connected to +// the "system_detail_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSystemDetailCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDirectoryAccounts = query + _q.withSystemDetailCreators = query return _q } -// WithDirectoryGroups tells the query-builder to eager-load the nodes that are connected to -// the "directory_groups" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDirectoryGroups(opts ...func(*DirectoryGroupQuery)) *OrganizationQuery { - query := (&DirectoryGroupClient{config: _q.config}).Query() +// WithTagDefinitionCreators tells the query-builder to eager-load the nodes that are connected to +// the "tag_definition_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTagDefinitionCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDirectoryGroups = query + _q.withTagDefinitionCreators = query return _q } -// WithDirectoryMemberships tells the query-builder to eager-load the nodes that are connected to -// the "directory_memberships" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDirectoryMemberships(opts ...func(*DirectoryMembershipQuery)) *OrganizationQuery { - query := (&DirectoryMembershipClient{config: _q.config}).Query() +// WithTaskCreators tells the query-builder to eager-load the nodes that are connected to +// the "task_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTaskCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDirectoryMemberships = query + _q.withTaskCreators = query return _q } -// WithDirectorySyncRuns tells the query-builder to eager-load the nodes that are connected to -// the "directory_sync_runs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDirectorySyncRuns(opts ...func(*DirectorySyncRunQuery)) *OrganizationQuery { - query := (&DirectorySyncRunClient{config: _q.config}).Query() +// WithTemplateCreators tells the query-builder to eager-load the nodes that are connected to +// the "template_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTemplateCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDirectorySyncRuns = query + _q.withTemplateCreators = query return _q } -// WithDiscussions tells the query-builder to eager-load the nodes that are connected to -// the "discussions" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithDiscussions(opts ...func(*DiscussionQuery)) *OrganizationQuery { - query := (&DiscussionClient{config: _q.config}).Query() +// WithTrustCenterCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withDiscussions = query + _q.withTrustCenterCreators = query return _q } -// WithVendorScoringConfigs tells the query-builder to eager-load the nodes that are connected to -// the "vendor_scoring_configs" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithVendorScoringConfigs(opts ...func(*VendorScoringConfigQuery)) *OrganizationQuery { - query := (&VendorScoringConfigClient{config: _q.config}).Query() +// WithTrustCenterComplianceCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_compliance_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterComplianceCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withVendorScoringConfigs = query + _q.withTrustCenterComplianceCreators = query return _q } -// WithVendorRiskScores tells the query-builder to eager-load the nodes that are connected to -// the "vendor_risk_scores" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithVendorRiskScores(opts ...func(*VendorRiskScoreQuery)) *OrganizationQuery { - query := (&VendorRiskScoreClient{config: _q.config}).Query() +// WithTrustCenterDocCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_doc_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterDocCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withVendorRiskScores = query + _q.withTrustCenterDocCreators = query return _q } -// WithMembers tells the query-builder to eager-load the nodes that are connected to -// the "members" edge. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithMembers(opts ...func(*OrgMembershipQuery)) *OrganizationQuery { - query := (&OrgMembershipClient{config: _q.config}).Query() +// WithTrustCenterEntityCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_entity_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterEntityCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - _q.withMembers = query + _q.withTrustCenterEntityCreators = query return _q } -// GroupBy is used to group vertices by one or more fields/columns. -// It is often used with aggregate functions, like: count, max, mean, min, sum. -// -// Example: -// -// var v []struct { -// CreatedAt time.Time `json:"created_at,omitempty"` -// Count int `json:"count,omitempty"` -// } -// -// client.Organization.Query(). -// GroupBy(organization.FieldCreatedAt). -// Aggregate(generated.Count()). -// Scan(ctx, &v) -func (_q *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy { - _q.ctx.Fields = append([]string{field}, fields...) - grbuild := &OrganizationGroupBy{build: _q} - grbuild.flds = &_q.ctx.Fields - grbuild.label = organization.Label - grbuild.scan = grbuild.Scan - return grbuild +// WithTrustCenterFaqCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_faq_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterFaqCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenterFaqCreators = query + return _q } -// Select allows the selection one or more fields/columns for the given query, -// instead of selecting all fields in the entity. -// -// Example: -// -// var v []struct { -// CreatedAt time.Time `json:"created_at,omitempty"` -// } -// -// client.Organization.Query(). -// Select(organization.FieldCreatedAt). -// Scan(ctx, &v) -func (_q *OrganizationQuery) Select(fields ...string) *OrganizationSelect { - _q.ctx.Fields = append(_q.ctx.Fields, fields...) - sbuild := &OrganizationSelect{OrganizationQuery: _q} - sbuild.label = organization.Label - sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan - return sbuild +// WithTrustCenterNdaRequestCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_nda_request_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterNdaRequestCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenterNdaRequestCreators = query + return _q } -// Aggregate returns a OrganizationSelect configured with the given aggregations. -func (_q *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect { - return _q.Select().Aggregate(fns...) +// WithTrustCenterSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_subprocessor_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterSubprocessorCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenterSubprocessorCreators = query + return _q } -func (_q *OrganizationQuery) prepareQuery(ctx context.Context) error { - for _, inter := range _q.inters { - if inter == nil { - return fmt.Errorf("generated: uninitialized interceptor (forgotten import generated/runtime?)") - } - if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, _q); err != nil { - return err - } - } +// WithTrustCenterWatermarkConfigCreators tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_watermark_config_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterWatermarkConfigCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, f := range _q.ctx.Fields { - if !organization.ValidColumn(f) { - return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} - } + _q.withTrustCenterWatermarkConfigCreators = query + return _q +} + +// WithUserCreators tells the query-builder to eager-load the nodes that are connected to +// the "user_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithUserCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if _q.path != nil { - prev, err := _q.path(ctx) - if err != nil { - return err - } - _q.sql = prev + _q.withUserCreators = query + return _q +} + +// WithUserSettingCreators tells the query-builder to eager-load the nodes that are connected to +// the "user_setting_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithUserSettingCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if organization.Policy == nil { - return errors.New("generated: uninitialized organization.Policy (forgotten import generated/runtime?)") + _q.withUserSettingCreators = query + return _q +} + +// WithVendorRiskScoreCreators tells the query-builder to eager-load the nodes that are connected to +// the "vendor_risk_score_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithVendorRiskScoreCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if err := organization.Policy.EvalQuery(ctx, _q); err != nil { - return err + _q.withVendorRiskScoreCreators = query + return _q +} + +// WithVulnerabilityCreators tells the query-builder to eager-load the nodes that are connected to +// the "vulnerability_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithVulnerabilityCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - return nil + _q.withVulnerabilityCreators = query + return _q } -func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Organization, error) { - var ( - nodes = []*Organization{} - _spec = _q.querySpec() - loadedTypes = [111]bool{ - _q.withControlCreators != nil, - _q.withControlImplementationCreators != nil, - _q.withControlObjectiveCreators != nil, - _q.withEvidenceCreators != nil, - _q.withAssetCreators != nil, - _q.withFindingCreators != nil, - _q.withVulnerabilityCreators != nil, - _q.withGroupCreators != nil, - _q.withInternalPolicyCreators != nil, - _q.withMappedControlCreators != nil, - _q.withNarrativeCreators != nil, - _q.withProcedureCreators != nil, - _q.withProgramCreators != nil, - _q.withRiskCreators != nil, - _q.withIdentityHolderCreators != nil, - _q.withScheduledJobCreators != nil, - _q.withStandardCreators != nil, - _q.withTemplateCreators != nil, - _q.withSubprocessorCreators != nil, - _q.withTrustCenterDocCreators != nil, - _q.withTrustCenterSubprocessorCreators != nil, - _q.withActionPlanCreators != nil, - _q.withParent != nil, - _q.withChildren != nil, - _q.withSetting != nil, - _q.withPersonalAccessTokens != nil, - _q.withAPITokens != nil, - _q.withEmailTemplates != nil, - _q.withIntegrationWebhooks != nil, - _q.withIntegrationRuns != nil, - _q.withNotificationPreferences != nil, - _q.withNotificationTemplates != nil, - _q.withUsers != nil, - _q.withFiles != nil, - _q.withEvents != nil, - _q.withSecrets != nil, - _q.withAvatarFile != nil, - _q.withGroups != nil, - _q.withTemplates != nil, - _q.withIntegrations != nil, - _q.withDocuments != nil, - _q.withOrgSubscriptions != nil, - _q.withOrgProducts != nil, - _q.withOrgPrices != nil, - _q.withOrgModules != nil, - _q.withInvites != nil, - _q.withSubscribers != nil, - _q.withEntities != nil, - _q.withPlatforms != nil, - _q.withIdentityHolders != nil, - _q.withCampaigns != nil, - _q.withCampaignTargets != nil, - _q.withEntityTypes != nil, - _q.withContacts != nil, - _q.withNotes != nil, - _q.withTasks != nil, - _q.withPrograms != nil, - _q.withSystemDetails != nil, - _q.withProcedures != nil, - _q.withInternalPolicies != nil, - _q.withRisks != nil, - _q.withControlObjectives != nil, - _q.withNarratives != nil, - _q.withControls != nil, - _q.withSubcontrols != nil, - _q.withControlImplementations != nil, - _q.withMappedControls != nil, - _q.withEvidence != nil, - _q.withStandards != nil, - _q.withActionPlans != nil, - _q.withCustomDomains != nil, - _q.withJobRunners != nil, - _q.withJobRunnerTokens != nil, - _q.withJobRunnerRegistrationTokens != nil, - _q.withDNSVerifications != nil, - _q.withJobTemplates != nil, - _q.withScheduledJobs != nil, - _q.withJobResults != nil, +// WithWorkflowAssignmentCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_assignment_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowAssignmentCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowAssignmentCreators = query + return _q +} + +// WithWorkflowAssignmentTargetCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_assignment_target_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowAssignmentTargetCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowAssignmentTargetCreators = query + return _q +} + +// WithWorkflowDefinitionCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_definition_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowDefinitionCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowDefinitionCreators = query + return _q +} + +// WithWorkflowEventCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_event_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowEventCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowEventCreators = query + return _q +} + +// WithWorkflowInstanceCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_instance_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowInstanceCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowInstanceCreators = query + return _q +} + +// WithWorkflowObjectRefCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_object_ref_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowObjectRefCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowObjectRefCreators = query + return _q +} + +// WithWorkflowProposalCreators tells the query-builder to eager-load the nodes that are connected to +// the "workflow_proposal_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowProposalCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowProposalCreators = query + return _q +} + +// WithCampaignsManager tells the query-builder to eager-load the nodes that are connected to +// the "campaigns_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCampaignsManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCampaignsManager = query + return _q +} + +// WithComplianceManager tells the query-builder to eager-load the nodes that are connected to +// the "compliance_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithComplianceManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withComplianceManager = query + return _q +} + +// WithGroupManager tells the query-builder to eager-load the nodes that are connected to +// the "group_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithGroupManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withGroupManager = query + return _q +} + +// WithPoliciesManager tells the query-builder to eager-load the nodes that are connected to +// the "policies_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithPoliciesManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withPoliciesManager = query + return _q +} + +// WithRegistryManager tells the query-builder to eager-load the nodes that are connected to +// the "registry_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRegistryManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withRegistryManager = query + return _q +} + +// WithRiskManager tells the query-builder to eager-load the nodes that are connected to +// the "risk_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRiskManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withRiskManager = query + return _q +} + +// WithTrustCenterManager tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenterManager = query + return _q +} + +// WithWorkflowsManager tells the query-builder to eager-load the nodes that are connected to +// the "workflows_manager" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowsManager(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowsManager = query + return _q +} + +// WithParent tells the query-builder to eager-load the nodes that are connected to +// the "parent" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithParent(opts ...func(*OrganizationQuery)) *OrganizationQuery { + query := (&OrganizationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withParent = query + return _q +} + +// WithChildren tells the query-builder to eager-load the nodes that are connected to +// the "children" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithChildren(opts ...func(*OrganizationQuery)) *OrganizationQuery { + query := (&OrganizationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withChildren = query + return _q +} + +// WithSetting tells the query-builder to eager-load the nodes that are connected to +// the "setting" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSetting(opts ...func(*OrganizationSettingQuery)) *OrganizationQuery { + query := (&OrganizationSettingClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSetting = query + return _q +} + +// WithPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to +// the "personal_access_tokens" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithPersonalAccessTokens(opts ...func(*PersonalAccessTokenQuery)) *OrganizationQuery { + query := (&PersonalAccessTokenClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withPersonalAccessTokens = query + return _q +} + +// WithAPITokens tells the query-builder to eager-load the nodes that are connected to +// the "api_tokens" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAPITokens(opts ...func(*APITokenQuery)) *OrganizationQuery { + query := (&APITokenClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAPITokens = query + return _q +} + +// WithEmailTemplates tells the query-builder to eager-load the nodes that are connected to +// the "email_templates" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEmailTemplates(opts ...func(*EmailTemplateQuery)) *OrganizationQuery { + query := (&EmailTemplateClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEmailTemplates = query + return _q +} + +// WithIntegrationWebhooks tells the query-builder to eager-load the nodes that are connected to +// the "integration_webhooks" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIntegrationWebhooks(opts ...func(*IntegrationWebhookQuery)) *OrganizationQuery { + query := (&IntegrationWebhookClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withIntegrationWebhooks = query + return _q +} + +// WithIntegrationRuns tells the query-builder to eager-load the nodes that are connected to +// the "integration_runs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIntegrationRuns(opts ...func(*IntegrationRunQuery)) *OrganizationQuery { + query := (&IntegrationRunClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withIntegrationRuns = query + return _q +} + +// WithNotificationPreferences tells the query-builder to eager-load the nodes that are connected to +// the "notification_preferences" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNotificationPreferences(opts ...func(*NotificationPreferenceQuery)) *OrganizationQuery { + query := (&NotificationPreferenceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withNotificationPreferences = query + return _q +} + +// WithNotificationTemplates tells the query-builder to eager-load the nodes that are connected to +// the "notification_templates" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNotificationTemplates(opts ...func(*NotificationTemplateQuery)) *OrganizationQuery { + query := (&NotificationTemplateClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withNotificationTemplates = query + return _q +} + +// WithUsers tells the query-builder to eager-load the nodes that are connected to +// the "users" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithUsers(opts ...func(*UserQuery)) *OrganizationQuery { + query := (&UserClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withUsers = query + return _q +} + +// WithFiles tells the query-builder to eager-load the nodes that are connected to +// the "files" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithFiles(opts ...func(*FileQuery)) *OrganizationQuery { + query := (&FileClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withFiles = query + return _q +} + +// WithEvents tells the query-builder to eager-load the nodes that are connected to +// the "events" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEvents(opts ...func(*EventQuery)) *OrganizationQuery { + query := (&EventClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEvents = query + return _q +} + +// WithSecrets tells the query-builder to eager-load the nodes that are connected to +// the "secrets" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSecrets(opts ...func(*HushQuery)) *OrganizationQuery { + query := (&HushClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSecrets = query + return _q +} + +// WithAvatarFile tells the query-builder to eager-load the nodes that are connected to +// the "avatar_file" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAvatarFile(opts ...func(*FileQuery)) *OrganizationQuery { + query := (&FileClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAvatarFile = query + return _q +} + +// WithGroups tells the query-builder to eager-load the nodes that are connected to +// the "groups" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithGroups(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withGroups = query + return _q +} + +// WithTemplates tells the query-builder to eager-load the nodes that are connected to +// the "templates" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTemplates(opts ...func(*TemplateQuery)) *OrganizationQuery { + query := (&TemplateClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTemplates = query + return _q +} + +// WithIntegrations tells the query-builder to eager-load the nodes that are connected to +// the "integrations" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery { + query := (&IntegrationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withIntegrations = query + return _q +} + +// WithDocuments tells the query-builder to eager-load the nodes that are connected to +// the "documents" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDocuments(opts ...func(*DocumentDataQuery)) *OrganizationQuery { + query := (&DocumentDataClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDocuments = query + return _q +} + +// WithOrgSubscriptions tells the query-builder to eager-load the nodes that are connected to +// the "org_subscriptions" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithOrgSubscriptions(opts ...func(*OrgSubscriptionQuery)) *OrganizationQuery { + query := (&OrgSubscriptionClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOrgSubscriptions = query + return _q +} + +// WithOrgProducts tells the query-builder to eager-load the nodes that are connected to +// the "org_products" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithOrgProducts(opts ...func(*OrgProductQuery)) *OrganizationQuery { + query := (&OrgProductClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOrgProducts = query + return _q +} + +// WithOrgPrices tells the query-builder to eager-load the nodes that are connected to +// the "org_prices" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithOrgPrices(opts ...func(*OrgPriceQuery)) *OrganizationQuery { + query := (&OrgPriceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOrgPrices = query + return _q +} + +// WithOrgModules tells the query-builder to eager-load the nodes that are connected to +// the "org_modules" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithOrgModules(opts ...func(*OrgModuleQuery)) *OrganizationQuery { + query := (&OrgModuleClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOrgModules = query + return _q +} + +// WithInvites tells the query-builder to eager-load the nodes that are connected to +// the "invites" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithInvites(opts ...func(*InviteQuery)) *OrganizationQuery { + query := (&InviteClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withInvites = query + return _q +} + +// WithSubscribers tells the query-builder to eager-load the nodes that are connected to +// the "subscribers" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubscribers(opts ...func(*SubscriberQuery)) *OrganizationQuery { + query := (&SubscriberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSubscribers = query + return _q +} + +// WithEntities tells the query-builder to eager-load the nodes that are connected to +// the "entities" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEntities(opts ...func(*EntityQuery)) *OrganizationQuery { + query := (&EntityClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEntities = query + return _q +} + +// WithPlatforms tells the query-builder to eager-load the nodes that are connected to +// the "platforms" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithPlatforms(opts ...func(*PlatformQuery)) *OrganizationQuery { + query := (&PlatformClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withPlatforms = query + return _q +} + +// WithIdentityHolders tells the query-builder to eager-load the nodes that are connected to +// the "identity_holders" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithIdentityHolders(opts ...func(*IdentityHolderQuery)) *OrganizationQuery { + query := (&IdentityHolderClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withIdentityHolders = query + return _q +} + +// WithCampaigns tells the query-builder to eager-load the nodes that are connected to +// the "campaigns" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCampaigns(opts ...func(*CampaignQuery)) *OrganizationQuery { + query := (&CampaignClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCampaigns = query + return _q +} + +// WithCampaignTargets tells the query-builder to eager-load the nodes that are connected to +// the "campaign_targets" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCampaignTargets(opts ...func(*CampaignTargetQuery)) *OrganizationQuery { + query := (&CampaignTargetClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCampaignTargets = query + return _q +} + +// WithEntityTypes tells the query-builder to eager-load the nodes that are connected to +// the "entity_types" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEntityTypes(opts ...func(*EntityTypeQuery)) *OrganizationQuery { + query := (&EntityTypeClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEntityTypes = query + return _q +} + +// WithContacts tells the query-builder to eager-load the nodes that are connected to +// the "contacts" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithContacts(opts ...func(*ContactQuery)) *OrganizationQuery { + query := (&ContactClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withContacts = query + return _q +} + +// WithNotes tells the query-builder to eager-load the nodes that are connected to +// the "notes" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNotes(opts ...func(*NoteQuery)) *OrganizationQuery { + query := (&NoteClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withNotes = query + return _q +} + +// WithTasks tells the query-builder to eager-load the nodes that are connected to +// the "tasks" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTasks(opts ...func(*TaskQuery)) *OrganizationQuery { + query := (&TaskClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTasks = query + return _q +} + +// WithPrograms tells the query-builder to eager-load the nodes that are connected to +// the "programs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithPrograms(opts ...func(*ProgramQuery)) *OrganizationQuery { + query := (&ProgramClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withPrograms = query + return _q +} + +// WithSystemDetails tells the query-builder to eager-load the nodes that are connected to +// the "system_details" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSystemDetails(opts ...func(*SystemDetailQuery)) *OrganizationQuery { + query := (&SystemDetailClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSystemDetails = query + return _q +} + +// WithProcedures tells the query-builder to eager-load the nodes that are connected to +// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithProcedures(opts ...func(*ProcedureQuery)) *OrganizationQuery { + query := (&ProcedureClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withProcedures = query + return _q +} + +// WithInternalPolicies tells the query-builder to eager-load the nodes that are connected to +// the "internal_policies" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithInternalPolicies(opts ...func(*InternalPolicyQuery)) *OrganizationQuery { + query := (&InternalPolicyClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withInternalPolicies = query + return _q +} + +// WithRisks tells the query-builder to eager-load the nodes that are connected to +// the "risks" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRisks(opts ...func(*RiskQuery)) *OrganizationQuery { + query := (&RiskClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withRisks = query + return _q +} + +// WithControlObjectives tells the query-builder to eager-load the nodes that are connected to +// the "control_objectives" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControlObjectives(opts ...func(*ControlObjectiveQuery)) *OrganizationQuery { + query := (&ControlObjectiveClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withControlObjectives = query + return _q +} + +// WithNarratives tells the query-builder to eager-load the nodes that are connected to +// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNarratives(opts ...func(*NarrativeQuery)) *OrganizationQuery { + query := (&NarrativeClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withNarratives = query + return _q +} + +// WithControls tells the query-builder to eager-load the nodes that are connected to +// the "controls" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControls(opts ...func(*ControlQuery)) *OrganizationQuery { + query := (&ControlClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withControls = query + return _q +} + +// WithSubcontrols tells the query-builder to eager-load the nodes that are connected to +// the "subcontrols" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *OrganizationQuery { + query := (&SubcontrolClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSubcontrols = query + return _q +} + +// WithControlImplementations tells the query-builder to eager-load the nodes that are connected to +// the "control_implementations" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithControlImplementations(opts ...func(*ControlImplementationQuery)) *OrganizationQuery { + query := (&ControlImplementationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withControlImplementations = query + return _q +} + +// WithMappedControls tells the query-builder to eager-load the nodes that are connected to +// the "mapped_controls" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithMappedControls(opts ...func(*MappedControlQuery)) *OrganizationQuery { + query := (&MappedControlClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withMappedControls = query + return _q +} + +// WithEvidence tells the query-builder to eager-load the nodes that are connected to +// the "evidence" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithEvidence(opts ...func(*EvidenceQuery)) *OrganizationQuery { + query := (&EvidenceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEvidence = query + return _q +} + +// WithStandards tells the query-builder to eager-load the nodes that are connected to +// the "standards" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithStandards(opts ...func(*StandardQuery)) *OrganizationQuery { + query := (&StandardClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withStandards = query + return _q +} + +// WithActionPlans tells the query-builder to eager-load the nodes that are connected to +// the "action_plans" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithActionPlans(opts ...func(*ActionPlanQuery)) *OrganizationQuery { + query := (&ActionPlanClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withActionPlans = query + return _q +} + +// WithCustomDomains tells the query-builder to eager-load the nodes that are connected to +// the "custom_domains" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCustomDomains(opts ...func(*CustomDomainQuery)) *OrganizationQuery { + query := (&CustomDomainClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCustomDomains = query + return _q +} + +// WithJobRunners tells the query-builder to eager-load the nodes that are connected to +// the "job_runners" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunners(opts ...func(*JobRunnerQuery)) *OrganizationQuery { + query := (&JobRunnerClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withJobRunners = query + return _q +} + +// WithJobRunnerTokens tells the query-builder to eager-load the nodes that are connected to +// the "job_runner_tokens" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunnerTokens(opts ...func(*JobRunnerTokenQuery)) *OrganizationQuery { + query := (&JobRunnerTokenClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withJobRunnerTokens = query + return _q +} + +// WithJobRunnerRegistrationTokens tells the query-builder to eager-load the nodes that are connected to +// the "job_runner_registration_tokens" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobRunnerRegistrationTokens(opts ...func(*JobRunnerRegistrationTokenQuery)) *OrganizationQuery { + query := (&JobRunnerRegistrationTokenClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withJobRunnerRegistrationTokens = query + return _q +} + +// WithDNSVerifications tells the query-builder to eager-load the nodes that are connected to +// the "dns_verifications" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDNSVerifications(opts ...func(*DNSVerificationQuery)) *OrganizationQuery { + query := (&DNSVerificationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDNSVerifications = query + return _q +} + +// WithJobTemplates tells the query-builder to eager-load the nodes that are connected to +// the "job_templates" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobTemplates(opts ...func(*JobTemplateQuery)) *OrganizationQuery { + query := (&JobTemplateClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withJobTemplates = query + return _q +} + +// WithScheduledJobs tells the query-builder to eager-load the nodes that are connected to +// the "scheduled_jobs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScheduledJobs(opts ...func(*ScheduledJobQuery)) *OrganizationQuery { + query := (&ScheduledJobClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withScheduledJobs = query + return _q +} + +// WithJobResults tells the query-builder to eager-load the nodes that are connected to +// the "job_results" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithJobResults(opts ...func(*JobResultQuery)) *OrganizationQuery { + query := (&JobResultClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withJobResults = query + return _q +} + +// WithScheduledJobRuns tells the query-builder to eager-load the nodes that are connected to +// the "scheduled_job_runs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScheduledJobRuns(opts ...func(*ScheduledJobRunQuery)) *OrganizationQuery { + query := (&ScheduledJobRunClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withScheduledJobRuns = query + return _q +} + +// WithTrustCenters tells the query-builder to eager-load the nodes that are connected to +// the "trust_centers" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenters(opts ...func(*TrustCenterQuery)) *OrganizationQuery { + query := (&TrustCenterClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenters = query + return _q +} + +// WithAssets tells the query-builder to eager-load the nodes that are connected to +// the "assets" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAssets(opts ...func(*AssetQuery)) *OrganizationQuery { + query := (&AssetClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAssets = query + return _q +} + +// WithScans tells the query-builder to eager-load the nodes that are connected to +// the "scans" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithScans(opts ...func(*ScanQuery)) *OrganizationQuery { + query := (&ScanClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withScans = query + return _q +} + +// WithSLADefinitions tells the query-builder to eager-load the nodes that are connected to +// the "sla_definitions" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSLADefinitions(opts ...func(*SLADefinitionQuery)) *OrganizationQuery { + query := (&SLADefinitionClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSLADefinitions = query + return _q +} + +// WithSubprocessors tells the query-builder to eager-load the nodes that are connected to +// the "subprocessors" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithSubprocessors(opts ...func(*SubprocessorQuery)) *OrganizationQuery { + query := (&SubprocessorClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSubprocessors = query + return _q +} + +// WithExports tells the query-builder to eager-load the nodes that are connected to +// the "exports" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithExports(opts ...func(*ExportQuery)) *OrganizationQuery { + query := (&ExportClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withExports = query + return _q +} + +// WithTrustCenterWatermarkConfigs tells the query-builder to eager-load the nodes that are connected to +// the "trust_center_watermark_configs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTrustCenterWatermarkConfigs(opts ...func(*TrustCenterWatermarkConfigQuery)) *OrganizationQuery { + query := (&TrustCenterWatermarkConfigClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTrustCenterWatermarkConfigs = query + return _q +} + +// WithImpersonationEvents tells the query-builder to eager-load the nodes that are connected to +// the "impersonation_events" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithImpersonationEvents(opts ...func(*ImpersonationEventQuery)) *OrganizationQuery { + query := (&ImpersonationEventClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withImpersonationEvents = query + return _q +} + +// WithAssessments tells the query-builder to eager-load the nodes that are connected to +// the "assessments" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAssessments(opts ...func(*AssessmentQuery)) *OrganizationQuery { + query := (&AssessmentClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAssessments = query + return _q +} + +// WithAssessmentResponses tells the query-builder to eager-load the nodes that are connected to +// the "assessment_responses" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAssessmentResponses(opts ...func(*AssessmentResponseQuery)) *OrganizationQuery { + query := (&AssessmentResponseClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAssessmentResponses = query + return _q +} + +// WithCustomTypeEnums tells the query-builder to eager-load the nodes that are connected to +// the "custom_type_enums" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithCustomTypeEnums(opts ...func(*CustomTypeEnumQuery)) *OrganizationQuery { + query := (&CustomTypeEnumClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCustomTypeEnums = query + return _q +} + +// WithTagDefinitions tells the query-builder to eager-load the nodes that are connected to +// the "tag_definitions" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithTagDefinitions(opts ...func(*TagDefinitionQuery)) *OrganizationQuery { + query := (&TagDefinitionClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withTagDefinitions = query + return _q +} + +// WithRemediations tells the query-builder to eager-load the nodes that are connected to +// the "remediations" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithRemediations(opts ...func(*RemediationQuery)) *OrganizationQuery { + query := (&RemediationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withRemediations = query + return _q +} + +// WithFindings tells the query-builder to eager-load the nodes that are connected to +// the "findings" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithFindings(opts ...func(*FindingQuery)) *OrganizationQuery { + query := (&FindingClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withFindings = query + return _q +} + +// WithReviews tells the query-builder to eager-load the nodes that are connected to +// the "reviews" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithReviews(opts ...func(*ReviewQuery)) *OrganizationQuery { + query := (&ReviewClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withReviews = query + return _q +} + +// WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to +// the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithVulnerabilities(opts ...func(*VulnerabilityQuery)) *OrganizationQuery { + query := (&VulnerabilityClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withVulnerabilities = query + return _q +} + +// WithNotifications tells the query-builder to eager-load the nodes that are connected to +// the "notifications" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNotifications(opts ...func(*NotificationQuery)) *OrganizationQuery { + query := (&NotificationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withNotifications = query + return _q +} + +// WithWorkflowDefinitions tells the query-builder to eager-load the nodes that are connected to +// the "workflow_definitions" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowDefinitions(opts ...func(*WorkflowDefinitionQuery)) *OrganizationQuery { + query := (&WorkflowDefinitionClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowDefinitions = query + return _q +} + +// WithWorkflowInstances tells the query-builder to eager-load the nodes that are connected to +// the "workflow_instances" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowInstances(opts ...func(*WorkflowInstanceQuery)) *OrganizationQuery { + query := (&WorkflowInstanceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowInstances = query + return _q +} + +// WithWorkflowEvents tells the query-builder to eager-load the nodes that are connected to +// the "workflow_events" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowEvents(opts ...func(*WorkflowEventQuery)) *OrganizationQuery { + query := (&WorkflowEventClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowEvents = query + return _q +} + +// WithWorkflowAssignments tells the query-builder to eager-load the nodes that are connected to +// the "workflow_assignments" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowAssignments(opts ...func(*WorkflowAssignmentQuery)) *OrganizationQuery { + query := (&WorkflowAssignmentClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowAssignments = query + return _q +} + +// WithWorkflowAssignmentTargets tells the query-builder to eager-load the nodes that are connected to +// the "workflow_assignment_targets" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowAssignmentTargets(opts ...func(*WorkflowAssignmentTargetQuery)) *OrganizationQuery { + query := (&WorkflowAssignmentTargetClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowAssignmentTargets = query + return _q +} + +// WithWorkflowObjectRefs tells the query-builder to eager-load the nodes that are connected to +// the "workflow_object_refs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowObjectRefs(opts ...func(*WorkflowObjectRefQuery)) *OrganizationQuery { + query := (&WorkflowObjectRefClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowObjectRefs = query + return _q +} + +// WithWorkflowProposals tells the query-builder to eager-load the nodes that are connected to +// the "workflow_proposals" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithWorkflowProposals(opts ...func(*WorkflowProposalQuery)) *OrganizationQuery { + query := (&WorkflowProposalClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withWorkflowProposals = query + return _q +} + +// WithDirectoryAccounts tells the query-builder to eager-load the nodes that are connected to +// the "directory_accounts" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDirectoryAccounts(opts ...func(*DirectoryAccountQuery)) *OrganizationQuery { + query := (&DirectoryAccountClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDirectoryAccounts = query + return _q +} + +// WithDirectoryGroups tells the query-builder to eager-load the nodes that are connected to +// the "directory_groups" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDirectoryGroups(opts ...func(*DirectoryGroupQuery)) *OrganizationQuery { + query := (&DirectoryGroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDirectoryGroups = query + return _q +} + +// WithDirectoryMemberships tells the query-builder to eager-load the nodes that are connected to +// the "directory_memberships" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDirectoryMemberships(opts ...func(*DirectoryMembershipQuery)) *OrganizationQuery { + query := (&DirectoryMembershipClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDirectoryMemberships = query + return _q +} + +// WithDirectorySyncRuns tells the query-builder to eager-load the nodes that are connected to +// the "directory_sync_runs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDirectorySyncRuns(opts ...func(*DirectorySyncRunQuery)) *OrganizationQuery { + query := (&DirectorySyncRunClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDirectorySyncRuns = query + return _q +} + +// WithDiscussions tells the query-builder to eager-load the nodes that are connected to +// the "discussions" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithDiscussions(opts ...func(*DiscussionQuery)) *OrganizationQuery { + query := (&DiscussionClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withDiscussions = query + return _q +} + +// WithVendorScoringConfigs tells the query-builder to eager-load the nodes that are connected to +// the "vendor_scoring_configs" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithVendorScoringConfigs(opts ...func(*VendorScoringConfigQuery)) *OrganizationQuery { + query := (&VendorScoringConfigClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withVendorScoringConfigs = query + return _q +} + +// WithVendorRiskScores tells the query-builder to eager-load the nodes that are connected to +// the "vendor_risk_scores" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithVendorRiskScores(opts ...func(*VendorRiskScoreQuery)) *OrganizationQuery { + query := (&VendorRiskScoreClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withVendorRiskScores = query + return _q +} + +// WithMembers tells the query-builder to eager-load the nodes that are connected to +// the "members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithMembers(opts ...func(*OrgMembershipQuery)) *OrganizationQuery { + query := (&OrgMembershipClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withMembers = query + return _q +} + +// GroupBy is used to group vertices by one or more fields/columns. +// It is often used with aggregate functions, like: count, max, mean, min, sum. +// +// Example: +// +// var v []struct { +// CreatedAt time.Time `json:"created_at,omitempty"` +// Count int `json:"count,omitempty"` +// } +// +// client.Organization.Query(). +// GroupBy(organization.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (_q *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &OrganizationGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields + grbuild.label = organization.Label + grbuild.scan = grbuild.Scan + return grbuild +} + +// Select allows the selection one or more fields/columns for the given query, +// instead of selecting all fields in the entity. +// +// Example: +// +// var v []struct { +// CreatedAt time.Time `json:"created_at,omitempty"` +// } +// +// client.Organization.Query(). +// Select(organization.FieldCreatedAt). +// Scan(ctx, &v) +func (_q *OrganizationQuery) Select(fields ...string) *OrganizationSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &OrganizationSelect{OrganizationQuery: _q} + sbuild.label = organization.Label + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a OrganizationSelect configured with the given aggregations. +func (_q *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect { + return _q.Select().Aggregate(fns...) +} + +func (_q *OrganizationQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { + if inter == nil { + return fmt.Errorf("generated: uninitialized interceptor (forgotten import generated/runtime?)") + } + if trv, ok := inter.(Traverser); ok { + if err := trv.Traverse(ctx, _q); err != nil { + return err + } + } + } + for _, f := range _q.ctx.Fields { + if !organization.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if _q.path != nil { + prev, err := _q.path(ctx) + if err != nil { + return err + } + _q.sql = prev + } + if organization.Policy == nil { + return errors.New("generated: uninitialized organization.Policy (forgotten import generated/runtime?)") + } + if err := organization.Policy.EvalQuery(ctx, _q); err != nil { + return err + } + return nil +} + +func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Organization, error) { + var ( + nodes = []*Organization{} + _spec = _q.querySpec() + loadedTypes = [167]bool{ + _q.withActionPlanCreators != nil, + _q.withAPITokenCreators != nil, + _q.withAssessmentCreators != nil, + _q.withAssetCreators != nil, + _q.withCampaignCreators != nil, + _q.withCampaignTargetCreators != nil, + _q.withCheckResultCreators != nil, + _q.withContactCreators != nil, + _q.withControlCreators != nil, + _q.withControlImplementationCreators != nil, + _q.withControlObjectiveCreators != nil, + _q.withCustomTypeEnumCreators != nil, + _q.withDiscussionCreators != nil, + _q.withEmailTemplateCreators != nil, + _q.withEntityCreators != nil, + _q.withEntityTypeCreators != nil, + _q.withEvidenceCreators != nil, + _q.withExportCreators != nil, + _q.withFileCreators != nil, + _q.withFindingCreators != nil, + _q.withGroupCreators != nil, + _q.withIdentityHolderCreators != nil, + _q.withIntegrationCreators != nil, + _q.withIntegrationWebhookCreators != nil, + _q.withInternalPolicyCreators != nil, + _q.withJobRunnerCreators != nil, + _q.withJobRunnerRegistrationTokenCreators != nil, + _q.withJobRunnerTokenCreators != nil, + _q.withJobTemplateCreators != nil, + _q.withMappedControlCreators != nil, + _q.withNarrativeCreators != nil, + _q.withNoteCreators != nil, + _q.withNotificationTemplateCreators != nil, + _q.withOrganizationCreators != nil, + _q.withPlatformCreators != nil, + _q.withProcedureCreators != nil, + _q.withProgramCreators != nil, + _q.withRemediationCreators != nil, + _q.withReviewCreators != nil, + _q.withRiskCreators != nil, + _q.withScanCreators != nil, + _q.withScheduledJobCreators != nil, + _q.withScheduledJobRunCreators != nil, + _q.withStandardCreators != nil, + _q.withSubcontrolCreators != nil, + _q.withSubprocessorCreators != nil, + _q.withSubscriberCreators != nil, + _q.withSystemDetailCreators != nil, + _q.withTagDefinitionCreators != nil, + _q.withTaskCreators != nil, + _q.withTemplateCreators != nil, + _q.withTrustCenterCreators != nil, + _q.withTrustCenterComplianceCreators != nil, + _q.withTrustCenterDocCreators != nil, + _q.withTrustCenterEntityCreators != nil, + _q.withTrustCenterFaqCreators != nil, + _q.withTrustCenterNdaRequestCreators != nil, + _q.withTrustCenterSubprocessorCreators != nil, + _q.withTrustCenterWatermarkConfigCreators != nil, + _q.withUserCreators != nil, + _q.withUserSettingCreators != nil, + _q.withVendorRiskScoreCreators != nil, + _q.withVulnerabilityCreators != nil, + _q.withWorkflowAssignmentCreators != nil, + _q.withWorkflowAssignmentTargetCreators != nil, + _q.withWorkflowDefinitionCreators != nil, + _q.withWorkflowEventCreators != nil, + _q.withWorkflowInstanceCreators != nil, + _q.withWorkflowObjectRefCreators != nil, + _q.withWorkflowProposalCreators != nil, + _q.withCampaignsManager != nil, + _q.withComplianceManager != nil, + _q.withGroupManager != nil, + _q.withPoliciesManager != nil, + _q.withRegistryManager != nil, + _q.withRiskManager != nil, + _q.withTrustCenterManager != nil, + _q.withWorkflowsManager != nil, + _q.withParent != nil, + _q.withChildren != nil, + _q.withSetting != nil, + _q.withPersonalAccessTokens != nil, + _q.withAPITokens != nil, + _q.withEmailTemplates != nil, + _q.withIntegrationWebhooks != nil, + _q.withIntegrationRuns != nil, + _q.withNotificationPreferences != nil, + _q.withNotificationTemplates != nil, + _q.withUsers != nil, + _q.withFiles != nil, + _q.withEvents != nil, + _q.withSecrets != nil, + _q.withAvatarFile != nil, + _q.withGroups != nil, + _q.withTemplates != nil, + _q.withIntegrations != nil, + _q.withDocuments != nil, + _q.withOrgSubscriptions != nil, + _q.withOrgProducts != nil, + _q.withOrgPrices != nil, + _q.withOrgModules != nil, + _q.withInvites != nil, + _q.withSubscribers != nil, + _q.withEntities != nil, + _q.withPlatforms != nil, + _q.withIdentityHolders != nil, + _q.withCampaigns != nil, + _q.withCampaignTargets != nil, + _q.withEntityTypes != nil, + _q.withContacts != nil, + _q.withNotes != nil, + _q.withTasks != nil, + _q.withPrograms != nil, + _q.withSystemDetails != nil, + _q.withProcedures != nil, + _q.withInternalPolicies != nil, + _q.withRisks != nil, + _q.withControlObjectives != nil, + _q.withNarratives != nil, + _q.withControls != nil, + _q.withSubcontrols != nil, + _q.withControlImplementations != nil, + _q.withMappedControls != nil, + _q.withEvidence != nil, + _q.withStandards != nil, + _q.withActionPlans != nil, + _q.withCustomDomains != nil, + _q.withJobRunners != nil, + _q.withJobRunnerTokens != nil, + _q.withJobRunnerRegistrationTokens != nil, + _q.withDNSVerifications != nil, + _q.withJobTemplates != nil, + _q.withScheduledJobs != nil, + _q.withJobResults != nil, _q.withScheduledJobRuns != nil, _q.withTrustCenters != nil, _q.withAssets != nil, @@ -4873,1643 +7113,4614 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] _q.withVendorRiskScores != nil, _q.withMembers != nil, } - ) - _spec.ScanValues = func(columns []string) ([]any, error) { - return (*Organization).scanValues(nil, columns) + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Organization).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Organization{config: _q.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = _q.schemaConfig.Organization + ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) + if len(_q.modifiers) > 0 { + _spec.Modifiers = _q.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := _q.withActionPlanCreators; query != nil { + if err := _q.loadActionPlanCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ActionPlanCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ActionPlanCreators = append(n.Edges.ActionPlanCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withAPITokenCreators; query != nil { + if err := _q.loadAPITokenCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.APITokenCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.APITokenCreators = append(n.Edges.APITokenCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withAssessmentCreators; query != nil { + if err := _q.loadAssessmentCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.AssessmentCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.AssessmentCreators = append(n.Edges.AssessmentCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withAssetCreators; query != nil { + if err := _q.loadAssetCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.AssetCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.AssetCreators = append(n.Edges.AssetCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withCampaignCreators; query != nil { + if err := _q.loadCampaignCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.CampaignCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.CampaignCreators = append(n.Edges.CampaignCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withCampaignTargetCreators; query != nil { + if err := _q.loadCampaignTargetCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.CampaignTargetCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.CampaignTargetCreators = append(n.Edges.CampaignTargetCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withCheckResultCreators; query != nil { + if err := _q.loadCheckResultCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.CheckResultCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.CheckResultCreators = append(n.Edges.CheckResultCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withContactCreators; query != nil { + if err := _q.loadContactCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ContactCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ContactCreators = append(n.Edges.ContactCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withControlCreators; query != nil { + if err := _q.loadControlCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ControlCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ControlCreators = append(n.Edges.ControlCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withControlImplementationCreators; query != nil { + if err := _q.loadControlImplementationCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ControlImplementationCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.ControlImplementationCreators = append(n.Edges.ControlImplementationCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withControlObjectiveCreators; query != nil { + if err := _q.loadControlObjectiveCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ControlObjectiveCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.ControlObjectiveCreators = append(n.Edges.ControlObjectiveCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withCustomTypeEnumCreators; query != nil { + if err := _q.loadCustomTypeEnumCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.CustomTypeEnumCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.CustomTypeEnumCreators = append(n.Edges.CustomTypeEnumCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDiscussionCreators; query != nil { + if err := _q.loadDiscussionCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.DiscussionCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.DiscussionCreators = append(n.Edges.DiscussionCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withEmailTemplateCreators; query != nil { + if err := _q.loadEmailTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.EmailTemplateCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.EmailTemplateCreators = append(n.Edges.EmailTemplateCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withEntityCreators; query != nil { + if err := _q.loadEntityCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.EntityCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.EntityCreators = append(n.Edges.EntityCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withEntityTypeCreators; query != nil { + if err := _q.loadEntityTypeCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.EntityTypeCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.EntityTypeCreators = append(n.Edges.EntityTypeCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withEvidenceCreators; query != nil { + if err := _q.loadEvidenceCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.EvidenceCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.EvidenceCreators = append(n.Edges.EvidenceCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withExportCreators; query != nil { + if err := _q.loadExportCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ExportCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ExportCreators = append(n.Edges.ExportCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withFileCreators; query != nil { + if err := _q.loadFileCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.FileCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.FileCreators = append(n.Edges.FileCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withFindingCreators; query != nil { + if err := _q.loadFindingCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.FindingCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.FindingCreators = append(n.Edges.FindingCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withGroupCreators; query != nil { + if err := _q.loadGroupCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.GroupCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.GroupCreators = append(n.Edges.GroupCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withIdentityHolderCreators; query != nil { + if err := _q.loadIdentityHolderCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.IdentityHolderCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.IdentityHolderCreators = append(n.Edges.IdentityHolderCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withIntegrationCreators; query != nil { + if err := _q.loadIntegrationCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.IntegrationCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.IntegrationCreators = append(n.Edges.IntegrationCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withIntegrationWebhookCreators; query != nil { + if err := _q.loadIntegrationWebhookCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.IntegrationWebhookCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.IntegrationWebhookCreators = append(n.Edges.IntegrationWebhookCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withInternalPolicyCreators; query != nil { + if err := _q.loadInternalPolicyCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.InternalPolicyCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.InternalPolicyCreators = append(n.Edges.InternalPolicyCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withJobRunnerCreators; query != nil { + if err := _q.loadJobRunnerCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunnerCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.JobRunnerCreators = append(n.Edges.JobRunnerCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withJobRunnerRegistrationTokenCreators; query != nil { + if err := _q.loadJobRunnerRegistrationTokenCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunnerRegistrationTokenCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.JobRunnerRegistrationTokenCreators = append(n.Edges.JobRunnerRegistrationTokenCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withJobRunnerTokenCreators; query != nil { + if err := _q.loadJobRunnerTokenCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunnerTokenCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.JobRunnerTokenCreators = append(n.Edges.JobRunnerTokenCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withJobTemplateCreators; query != nil { + if err := _q.loadJobTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.JobTemplateCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.JobTemplateCreators = append(n.Edges.JobTemplateCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withMappedControlCreators; query != nil { + if err := _q.loadMappedControlCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.MappedControlCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.MappedControlCreators = append(n.Edges.MappedControlCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withNarrativeCreators; query != nil { + if err := _q.loadNarrativeCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.NarrativeCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.NarrativeCreators = append(n.Edges.NarrativeCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withNoteCreators; query != nil { + if err := _q.loadNoteCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.NoteCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.NoteCreators = append(n.Edges.NoteCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withNotificationTemplateCreators; query != nil { + if err := _q.loadNotificationTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.NotificationTemplateCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.NotificationTemplateCreators = append(n.Edges.NotificationTemplateCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withOrganizationCreators; query != nil { + if err := _q.loadOrganizationCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.OrganizationCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.OrganizationCreators = append(n.Edges.OrganizationCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withPlatformCreators; query != nil { + if err := _q.loadPlatformCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.PlatformCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.PlatformCreators = append(n.Edges.PlatformCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withProcedureCreators; query != nil { + if err := _q.loadProcedureCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ProcedureCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ProcedureCreators = append(n.Edges.ProcedureCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withProgramCreators; query != nil { + if err := _q.loadProgramCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ProgramCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ProgramCreators = append(n.Edges.ProgramCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withRemediationCreators; query != nil { + if err := _q.loadRemediationCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.RemediationCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.RemediationCreators = append(n.Edges.RemediationCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withReviewCreators; query != nil { + if err := _q.loadReviewCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ReviewCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ReviewCreators = append(n.Edges.ReviewCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withRiskCreators; query != nil { + if err := _q.loadRiskCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.RiskCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.RiskCreators = append(n.Edges.RiskCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withScanCreators; query != nil { + if err := _q.loadScanCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ScanCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ScanCreators = append(n.Edges.ScanCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withScheduledJobCreators; query != nil { + if err := _q.loadScheduledJobCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ScheduledJobCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.ScheduledJobCreators = append(n.Edges.ScheduledJobCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withScheduledJobRunCreators; query != nil { + if err := _q.loadScheduledJobRunCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.ScheduledJobRunCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.ScheduledJobRunCreators = append(n.Edges.ScheduledJobRunCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withStandardCreators; query != nil { + if err := _q.loadStandardCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.StandardCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.StandardCreators = append(n.Edges.StandardCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withSubcontrolCreators; query != nil { + if err := _q.loadSubcontrolCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.SubcontrolCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.SubcontrolCreators = append(n.Edges.SubcontrolCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withSubprocessorCreators; query != nil { + if err := _q.loadSubprocessorCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.SubprocessorCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.SubprocessorCreators = append(n.Edges.SubprocessorCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withSubscriberCreators; query != nil { + if err := _q.loadSubscriberCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.SubscriberCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.SubscriberCreators = append(n.Edges.SubscriberCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withSystemDetailCreators; query != nil { + if err := _q.loadSystemDetailCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.SystemDetailCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.SystemDetailCreators = append(n.Edges.SystemDetailCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTagDefinitionCreators; query != nil { + if err := _q.loadTagDefinitionCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TagDefinitionCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TagDefinitionCreators = append(n.Edges.TagDefinitionCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTaskCreators; query != nil { + if err := _q.loadTaskCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TaskCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.TaskCreators = append(n.Edges.TaskCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withTemplateCreators; query != nil { + if err := _q.loadTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TemplateCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.TemplateCreators = append(n.Edges.TemplateCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterCreators; query != nil { + if err := _q.loadTrustCenterCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.TrustCenterCreators = append(n.Edges.TrustCenterCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterComplianceCreators; query != nil { + if err := _q.loadTrustCenterComplianceCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterComplianceCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterComplianceCreators = append(n.Edges.TrustCenterComplianceCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterDocCreators; query != nil { + if err := _q.loadTrustCenterDocCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterDocCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterDocCreators = append(n.Edges.TrustCenterDocCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterEntityCreators; query != nil { + if err := _q.loadTrustCenterEntityCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterEntityCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterEntityCreators = append(n.Edges.TrustCenterEntityCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterFaqCreators; query != nil { + if err := _q.loadTrustCenterFaqCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterFaqCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterFaqCreators = append(n.Edges.TrustCenterFaqCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterNdaRequestCreators; query != nil { + if err := _q.loadTrustCenterNdaRequestCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterNdaRequestCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterNdaRequestCreators = append(n.Edges.TrustCenterNdaRequestCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterSubprocessorCreators; query != nil { + if err := _q.loadTrustCenterSubprocessorCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterSubprocessorCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterSubprocessorCreators = append(n.Edges.TrustCenterSubprocessorCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterWatermarkConfigCreators; query != nil { + if err := _q.loadTrustCenterWatermarkConfigCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterWatermarkConfigCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.TrustCenterWatermarkConfigCreators = append(n.Edges.TrustCenterWatermarkConfigCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withUserCreators; query != nil { + if err := _q.loadUserCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.UserCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.UserCreators = append(n.Edges.UserCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withUserSettingCreators; query != nil { + if err := _q.loadUserSettingCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.UserSettingCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.UserSettingCreators = append(n.Edges.UserSettingCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withVendorRiskScoreCreators; query != nil { + if err := _q.loadVendorRiskScoreCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.VendorRiskScoreCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.VendorRiskScoreCreators = append(n.Edges.VendorRiskScoreCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withVulnerabilityCreators; query != nil { + if err := _q.loadVulnerabilityCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.VulnerabilityCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.VulnerabilityCreators = append(n.Edges.VulnerabilityCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowAssignmentCreators; query != nil { + if err := _q.loadWorkflowAssignmentCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowAssignmentCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowAssignmentCreators = append(n.Edges.WorkflowAssignmentCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowAssignmentTargetCreators; query != nil { + if err := _q.loadWorkflowAssignmentTargetCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowAssignmentTargetCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowAssignmentTargetCreators = append(n.Edges.WorkflowAssignmentTargetCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowDefinitionCreators; query != nil { + if err := _q.loadWorkflowDefinitionCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowDefinitionCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowDefinitionCreators = append(n.Edges.WorkflowDefinitionCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowEventCreators; query != nil { + if err := _q.loadWorkflowEventCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowEventCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowEventCreators = append(n.Edges.WorkflowEventCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowInstanceCreators; query != nil { + if err := _q.loadWorkflowInstanceCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowInstanceCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowInstanceCreators = append(n.Edges.WorkflowInstanceCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowObjectRefCreators; query != nil { + if err := _q.loadWorkflowObjectRefCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowObjectRefCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowObjectRefCreators = append(n.Edges.WorkflowObjectRefCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowProposalCreators; query != nil { + if err := _q.loadWorkflowProposalCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowProposalCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.WorkflowProposalCreators = append(n.Edges.WorkflowProposalCreators, e) + }); err != nil { + return nil, err + } + } + if query := _q.withCampaignsManager; query != nil { + if err := _q.loadCampaignsManager(ctx, query, nodes, + func(n *Organization) { n.Edges.CampaignsManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.CampaignsManager = append(n.Edges.CampaignsManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withComplianceManager; query != nil { + if err := _q.loadComplianceManager(ctx, query, nodes, + func(n *Organization) { n.Edges.ComplianceManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.ComplianceManager = append(n.Edges.ComplianceManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withGroupManager; query != nil { + if err := _q.loadGroupManager(ctx, query, nodes, + func(n *Organization) { n.Edges.GroupManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.GroupManager = append(n.Edges.GroupManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withPoliciesManager; query != nil { + if err := _q.loadPoliciesManager(ctx, query, nodes, + func(n *Organization) { n.Edges.PoliciesManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.PoliciesManager = append(n.Edges.PoliciesManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withRegistryManager; query != nil { + if err := _q.loadRegistryManager(ctx, query, nodes, + func(n *Organization) { n.Edges.RegistryManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.RegistryManager = append(n.Edges.RegistryManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withRiskManager; query != nil { + if err := _q.loadRiskManager(ctx, query, nodes, + func(n *Organization) { n.Edges.RiskManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.RiskManager = append(n.Edges.RiskManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterManager; query != nil { + if err := _q.loadTrustCenterManager(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.TrustCenterManager = append(n.Edges.TrustCenterManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowsManager; query != nil { + if err := _q.loadWorkflowsManager(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowsManager = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.WorkflowsManager = append(n.Edges.WorkflowsManager, e) }); err != nil { + return nil, err + } + } + if query := _q.withParent; query != nil { + if err := _q.loadParent(ctx, query, nodes, nil, + func(n *Organization, e *Organization) { n.Edges.Parent = e }); err != nil { + return nil, err + } + } + if query := _q.withChildren; query != nil { + if err := _q.loadChildren(ctx, query, nodes, + func(n *Organization) { n.Edges.Children = []*Organization{} }, + func(n *Organization, e *Organization) { n.Edges.Children = append(n.Edges.Children, e) }); err != nil { + return nil, err + } + } + if query := _q.withSetting; query != nil { + if err := _q.loadSetting(ctx, query, nodes, nil, + func(n *Organization, e *OrganizationSetting) { n.Edges.Setting = e }); err != nil { + return nil, err + } + } + if query := _q.withPersonalAccessTokens; query != nil { + if err := _q.loadPersonalAccessTokens(ctx, query, nodes, + func(n *Organization) { n.Edges.PersonalAccessTokens = []*PersonalAccessToken{} }, + func(n *Organization, e *PersonalAccessToken) { + n.Edges.PersonalAccessTokens = append(n.Edges.PersonalAccessTokens, e) + }); err != nil { + return nil, err + } + } + if query := _q.withAPITokens; query != nil { + if err := _q.loadAPITokens(ctx, query, nodes, + func(n *Organization) { n.Edges.APITokens = []*APIToken{} }, + func(n *Organization, e *APIToken) { n.Edges.APITokens = append(n.Edges.APITokens, e) }); err != nil { + return nil, err + } + } + if query := _q.withEmailTemplates; query != nil { + if err := _q.loadEmailTemplates(ctx, query, nodes, + func(n *Organization) { n.Edges.EmailTemplates = []*EmailTemplate{} }, + func(n *Organization, e *EmailTemplate) { n.Edges.EmailTemplates = append(n.Edges.EmailTemplates, e) }); err != nil { + return nil, err + } + } + if query := _q.withIntegrationWebhooks; query != nil { + if err := _q.loadIntegrationWebhooks(ctx, query, nodes, + func(n *Organization) { n.Edges.IntegrationWebhooks = []*IntegrationWebhook{} }, + func(n *Organization, e *IntegrationWebhook) { + n.Edges.IntegrationWebhooks = append(n.Edges.IntegrationWebhooks, e) + }); err != nil { + return nil, err + } + } + if query := _q.withIntegrationRuns; query != nil { + if err := _q.loadIntegrationRuns(ctx, query, nodes, + func(n *Organization) { n.Edges.IntegrationRuns = []*IntegrationRun{} }, + func(n *Organization, e *IntegrationRun) { n.Edges.IntegrationRuns = append(n.Edges.IntegrationRuns, e) }); err != nil { + return nil, err + } + } + if query := _q.withNotificationPreferences; query != nil { + if err := _q.loadNotificationPreferences(ctx, query, nodes, + func(n *Organization) { n.Edges.NotificationPreferences = []*NotificationPreference{} }, + func(n *Organization, e *NotificationPreference) { + n.Edges.NotificationPreferences = append(n.Edges.NotificationPreferences, e) + }); err != nil { + return nil, err + } + } + if query := _q.withNotificationTemplates; query != nil { + if err := _q.loadNotificationTemplates(ctx, query, nodes, + func(n *Organization) { n.Edges.NotificationTemplates = []*NotificationTemplate{} }, + func(n *Organization, e *NotificationTemplate) { + n.Edges.NotificationTemplates = append(n.Edges.NotificationTemplates, e) + }); err != nil { + return nil, err + } + } + if query := _q.withUsers; query != nil { + if err := _q.loadUsers(ctx, query, nodes, + func(n *Organization) { n.Edges.Users = []*User{} }, + func(n *Organization, e *User) { n.Edges.Users = append(n.Edges.Users, e) }); err != nil { + return nil, err + } + } + if query := _q.withFiles; query != nil { + if err := _q.loadFiles(ctx, query, nodes, + func(n *Organization) { n.Edges.Files = []*File{} }, + func(n *Organization, e *File) { n.Edges.Files = append(n.Edges.Files, e) }); err != nil { + return nil, err + } + } + if query := _q.withEvents; query != nil { + if err := _q.loadEvents(ctx, query, nodes, + func(n *Organization) { n.Edges.Events = []*Event{} }, + func(n *Organization, e *Event) { n.Edges.Events = append(n.Edges.Events, e) }); err != nil { + return nil, err + } + } + if query := _q.withSecrets; query != nil { + if err := _q.loadSecrets(ctx, query, nodes, + func(n *Organization) { n.Edges.Secrets = []*Hush{} }, + func(n *Organization, e *Hush) { n.Edges.Secrets = append(n.Edges.Secrets, e) }); err != nil { + return nil, err + } + } + if query := _q.withAvatarFile; query != nil { + if err := _q.loadAvatarFile(ctx, query, nodes, nil, + func(n *Organization, e *File) { n.Edges.AvatarFile = e }); err != nil { + return nil, err + } + } + if query := _q.withGroups; query != nil { + if err := _q.loadGroups(ctx, query, nodes, + func(n *Organization) { n.Edges.Groups = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.Groups = append(n.Edges.Groups, e) }); err != nil { + return nil, err + } + } + if query := _q.withTemplates; query != nil { + if err := _q.loadTemplates(ctx, query, nodes, + func(n *Organization) { n.Edges.Templates = []*Template{} }, + func(n *Organization, e *Template) { n.Edges.Templates = append(n.Edges.Templates, e) }); err != nil { + return nil, err + } + } + if query := _q.withIntegrations; query != nil { + if err := _q.loadIntegrations(ctx, query, nodes, + func(n *Organization) { n.Edges.Integrations = []*Integration{} }, + func(n *Organization, e *Integration) { n.Edges.Integrations = append(n.Edges.Integrations, e) }); err != nil { + return nil, err + } + } + if query := _q.withDocuments; query != nil { + if err := _q.loadDocuments(ctx, query, nodes, + func(n *Organization) { n.Edges.Documents = []*DocumentData{} }, + func(n *Organization, e *DocumentData) { n.Edges.Documents = append(n.Edges.Documents, e) }); err != nil { + return nil, err + } + } + if query := _q.withOrgSubscriptions; query != nil { + if err := _q.loadOrgSubscriptions(ctx, query, nodes, + func(n *Organization) { n.Edges.OrgSubscriptions = []*OrgSubscription{} }, + func(n *Organization, e *OrgSubscription) { + n.Edges.OrgSubscriptions = append(n.Edges.OrgSubscriptions, e) + }); err != nil { + return nil, err + } + } + if query := _q.withOrgProducts; query != nil { + if err := _q.loadOrgProducts(ctx, query, nodes, + func(n *Organization) { n.Edges.OrgProducts = []*OrgProduct{} }, + func(n *Organization, e *OrgProduct) { n.Edges.OrgProducts = append(n.Edges.OrgProducts, e) }); err != nil { + return nil, err + } + } + if query := _q.withOrgPrices; query != nil { + if err := _q.loadOrgPrices(ctx, query, nodes, + func(n *Organization) { n.Edges.OrgPrices = []*OrgPrice{} }, + func(n *Organization, e *OrgPrice) { n.Edges.OrgPrices = append(n.Edges.OrgPrices, e) }); err != nil { + return nil, err + } + } + if query := _q.withOrgModules; query != nil { + if err := _q.loadOrgModules(ctx, query, nodes, + func(n *Organization) { n.Edges.OrgModules = []*OrgModule{} }, + func(n *Organization, e *OrgModule) { n.Edges.OrgModules = append(n.Edges.OrgModules, e) }); err != nil { + return nil, err + } + } + if query := _q.withInvites; query != nil { + if err := _q.loadInvites(ctx, query, nodes, + func(n *Organization) { n.Edges.Invites = []*Invite{} }, + func(n *Organization, e *Invite) { n.Edges.Invites = append(n.Edges.Invites, e) }); err != nil { + return nil, err + } + } + if query := _q.withSubscribers; query != nil { + if err := _q.loadSubscribers(ctx, query, nodes, + func(n *Organization) { n.Edges.Subscribers = []*Subscriber{} }, + func(n *Organization, e *Subscriber) { n.Edges.Subscribers = append(n.Edges.Subscribers, e) }); err != nil { + return nil, err + } + } + if query := _q.withEntities; query != nil { + if err := _q.loadEntities(ctx, query, nodes, + func(n *Organization) { n.Edges.Entities = []*Entity{} }, + func(n *Organization, e *Entity) { n.Edges.Entities = append(n.Edges.Entities, e) }); err != nil { + return nil, err + } + } + if query := _q.withPlatforms; query != nil { + if err := _q.loadPlatforms(ctx, query, nodes, + func(n *Organization) { n.Edges.Platforms = []*Platform{} }, + func(n *Organization, e *Platform) { n.Edges.Platforms = append(n.Edges.Platforms, e) }); err != nil { + return nil, err + } + } + if query := _q.withIdentityHolders; query != nil { + if err := _q.loadIdentityHolders(ctx, query, nodes, + func(n *Organization) { n.Edges.IdentityHolders = []*IdentityHolder{} }, + func(n *Organization, e *IdentityHolder) { n.Edges.IdentityHolders = append(n.Edges.IdentityHolders, e) }); err != nil { + return nil, err + } + } + if query := _q.withCampaigns; query != nil { + if err := _q.loadCampaigns(ctx, query, nodes, + func(n *Organization) { n.Edges.Campaigns = []*Campaign{} }, + func(n *Organization, e *Campaign) { n.Edges.Campaigns = append(n.Edges.Campaigns, e) }); err != nil { + return nil, err + } + } + if query := _q.withCampaignTargets; query != nil { + if err := _q.loadCampaignTargets(ctx, query, nodes, + func(n *Organization) { n.Edges.CampaignTargets = []*CampaignTarget{} }, + func(n *Organization, e *CampaignTarget) { n.Edges.CampaignTargets = append(n.Edges.CampaignTargets, e) }); err != nil { + return nil, err + } + } + if query := _q.withEntityTypes; query != nil { + if err := _q.loadEntityTypes(ctx, query, nodes, + func(n *Organization) { n.Edges.EntityTypes = []*EntityType{} }, + func(n *Organization, e *EntityType) { n.Edges.EntityTypes = append(n.Edges.EntityTypes, e) }); err != nil { + return nil, err + } + } + if query := _q.withContacts; query != nil { + if err := _q.loadContacts(ctx, query, nodes, + func(n *Organization) { n.Edges.Contacts = []*Contact{} }, + func(n *Organization, e *Contact) { n.Edges.Contacts = append(n.Edges.Contacts, e) }); err != nil { + return nil, err + } + } + if query := _q.withNotes; query != nil { + if err := _q.loadNotes(ctx, query, nodes, + func(n *Organization) { n.Edges.Notes = []*Note{} }, + func(n *Organization, e *Note) { n.Edges.Notes = append(n.Edges.Notes, e) }); err != nil { + return nil, err + } + } + if query := _q.withTasks; query != nil { + if err := _q.loadTasks(ctx, query, nodes, + func(n *Organization) { n.Edges.Tasks = []*Task{} }, + func(n *Organization, e *Task) { n.Edges.Tasks = append(n.Edges.Tasks, e) }); err != nil { + return nil, err + } + } + if query := _q.withPrograms; query != nil { + if err := _q.loadPrograms(ctx, query, nodes, + func(n *Organization) { n.Edges.Programs = []*Program{} }, + func(n *Organization, e *Program) { n.Edges.Programs = append(n.Edges.Programs, e) }); err != nil { + return nil, err + } + } + if query := _q.withSystemDetails; query != nil { + if err := _q.loadSystemDetails(ctx, query, nodes, + func(n *Organization) { n.Edges.SystemDetails = []*SystemDetail{} }, + func(n *Organization, e *SystemDetail) { n.Edges.SystemDetails = append(n.Edges.SystemDetails, e) }); err != nil { + return nil, err + } + } + if query := _q.withProcedures; query != nil { + if err := _q.loadProcedures(ctx, query, nodes, + func(n *Organization) { n.Edges.Procedures = []*Procedure{} }, + func(n *Organization, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { + return nil, err + } + } + if query := _q.withInternalPolicies; query != nil { + if err := _q.loadInternalPolicies(ctx, query, nodes, + func(n *Organization) { n.Edges.InternalPolicies = []*InternalPolicy{} }, + func(n *Organization, e *InternalPolicy) { + n.Edges.InternalPolicies = append(n.Edges.InternalPolicies, e) + }); err != nil { + return nil, err + } + } + if query := _q.withRisks; query != nil { + if err := _q.loadRisks(ctx, query, nodes, + func(n *Organization) { n.Edges.Risks = []*Risk{} }, + func(n *Organization, e *Risk) { n.Edges.Risks = append(n.Edges.Risks, e) }); err != nil { + return nil, err + } + } + if query := _q.withControlObjectives; query != nil { + if err := _q.loadControlObjectives(ctx, query, nodes, + func(n *Organization) { n.Edges.ControlObjectives = []*ControlObjective{} }, + func(n *Organization, e *ControlObjective) { + n.Edges.ControlObjectives = append(n.Edges.ControlObjectives, e) + }); err != nil { + return nil, err + } + } + if query := _q.withNarratives; query != nil { + if err := _q.loadNarratives(ctx, query, nodes, + func(n *Organization) { n.Edges.Narratives = []*Narrative{} }, + func(n *Organization, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { + return nil, err + } + } + if query := _q.withControls; query != nil { + if err := _q.loadControls(ctx, query, nodes, + func(n *Organization) { n.Edges.Controls = []*Control{} }, + func(n *Organization, e *Control) { n.Edges.Controls = append(n.Edges.Controls, e) }); err != nil { + return nil, err + } + } + if query := _q.withSubcontrols; query != nil { + if err := _q.loadSubcontrols(ctx, query, nodes, + func(n *Organization) { n.Edges.Subcontrols = []*Subcontrol{} }, + func(n *Organization, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { + return nil, err + } + } + if query := _q.withControlImplementations; query != nil { + if err := _q.loadControlImplementations(ctx, query, nodes, + func(n *Organization) { n.Edges.ControlImplementations = []*ControlImplementation{} }, + func(n *Organization, e *ControlImplementation) { + n.Edges.ControlImplementations = append(n.Edges.ControlImplementations, e) + }); err != nil { + return nil, err + } + } + if query := _q.withMappedControls; query != nil { + if err := _q.loadMappedControls(ctx, query, nodes, + func(n *Organization) { n.Edges.MappedControls = []*MappedControl{} }, + func(n *Organization, e *MappedControl) { n.Edges.MappedControls = append(n.Edges.MappedControls, e) }); err != nil { + return nil, err + } + } + if query := _q.withEvidence; query != nil { + if err := _q.loadEvidence(ctx, query, nodes, + func(n *Organization) { n.Edges.Evidence = []*Evidence{} }, + func(n *Organization, e *Evidence) { n.Edges.Evidence = append(n.Edges.Evidence, e) }); err != nil { + return nil, err + } + } + if query := _q.withStandards; query != nil { + if err := _q.loadStandards(ctx, query, nodes, + func(n *Organization) { n.Edges.Standards = []*Standard{} }, + func(n *Organization, e *Standard) { n.Edges.Standards = append(n.Edges.Standards, e) }); err != nil { + return nil, err + } + } + if query := _q.withActionPlans; query != nil { + if err := _q.loadActionPlans(ctx, query, nodes, + func(n *Organization) { n.Edges.ActionPlans = []*ActionPlan{} }, + func(n *Organization, e *ActionPlan) { n.Edges.ActionPlans = append(n.Edges.ActionPlans, e) }); err != nil { + return nil, err + } + } + if query := _q.withCustomDomains; query != nil { + if err := _q.loadCustomDomains(ctx, query, nodes, + func(n *Organization) { n.Edges.CustomDomains = []*CustomDomain{} }, + func(n *Organization, e *CustomDomain) { n.Edges.CustomDomains = append(n.Edges.CustomDomains, e) }); err != nil { + return nil, err + } + } + if query := _q.withJobRunners; query != nil { + if err := _q.loadJobRunners(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunners = []*JobRunner{} }, + func(n *Organization, e *JobRunner) { n.Edges.JobRunners = append(n.Edges.JobRunners, e) }); err != nil { + return nil, err + } + } + if query := _q.withJobRunnerTokens; query != nil { + if err := _q.loadJobRunnerTokens(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunnerTokens = []*JobRunnerToken{} }, + func(n *Organization, e *JobRunnerToken) { n.Edges.JobRunnerTokens = append(n.Edges.JobRunnerTokens, e) }); err != nil { + return nil, err + } + } + if query := _q.withJobRunnerRegistrationTokens; query != nil { + if err := _q.loadJobRunnerRegistrationTokens(ctx, query, nodes, + func(n *Organization) { n.Edges.JobRunnerRegistrationTokens = []*JobRunnerRegistrationToken{} }, + func(n *Organization, e *JobRunnerRegistrationToken) { + n.Edges.JobRunnerRegistrationTokens = append(n.Edges.JobRunnerRegistrationTokens, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDNSVerifications; query != nil { + if err := _q.loadDNSVerifications(ctx, query, nodes, + func(n *Organization) { n.Edges.DNSVerifications = []*DNSVerification{} }, + func(n *Organization, e *DNSVerification) { + n.Edges.DNSVerifications = append(n.Edges.DNSVerifications, e) + }); err != nil { + return nil, err + } + } + if query := _q.withJobTemplates; query != nil { + if err := _q.loadJobTemplates(ctx, query, nodes, + func(n *Organization) { n.Edges.JobTemplates = []*JobTemplate{} }, + func(n *Organization, e *JobTemplate) { n.Edges.JobTemplates = append(n.Edges.JobTemplates, e) }); err != nil { + return nil, err + } + } + if query := _q.withScheduledJobs; query != nil { + if err := _q.loadScheduledJobs(ctx, query, nodes, + func(n *Organization) { n.Edges.ScheduledJobs = []*ScheduledJob{} }, + func(n *Organization, e *ScheduledJob) { n.Edges.ScheduledJobs = append(n.Edges.ScheduledJobs, e) }); err != nil { + return nil, err + } + } + if query := _q.withJobResults; query != nil { + if err := _q.loadJobResults(ctx, query, nodes, + func(n *Organization) { n.Edges.JobResults = []*JobResult{} }, + func(n *Organization, e *JobResult) { n.Edges.JobResults = append(n.Edges.JobResults, e) }); err != nil { + return nil, err + } + } + if query := _q.withScheduledJobRuns; query != nil { + if err := _q.loadScheduledJobRuns(ctx, query, nodes, + func(n *Organization) { n.Edges.ScheduledJobRuns = []*ScheduledJobRun{} }, + func(n *Organization, e *ScheduledJobRun) { + n.Edges.ScheduledJobRuns = append(n.Edges.ScheduledJobRuns, e) + }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenters; query != nil { + if err := _q.loadTrustCenters(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenters = []*TrustCenter{} }, + func(n *Organization, e *TrustCenter) { n.Edges.TrustCenters = append(n.Edges.TrustCenters, e) }); err != nil { + return nil, err + } + } + if query := _q.withAssets; query != nil { + if err := _q.loadAssets(ctx, query, nodes, + func(n *Organization) { n.Edges.Assets = []*Asset{} }, + func(n *Organization, e *Asset) { n.Edges.Assets = append(n.Edges.Assets, e) }); err != nil { + return nil, err + } + } + if query := _q.withScans; query != nil { + if err := _q.loadScans(ctx, query, nodes, + func(n *Organization) { n.Edges.Scans = []*Scan{} }, + func(n *Organization, e *Scan) { n.Edges.Scans = append(n.Edges.Scans, e) }); err != nil { + return nil, err + } + } + if query := _q.withSLADefinitions; query != nil { + if err := _q.loadSLADefinitions(ctx, query, nodes, + func(n *Organization) { n.Edges.SLADefinitions = []*SLADefinition{} }, + func(n *Organization, e *SLADefinition) { n.Edges.SLADefinitions = append(n.Edges.SLADefinitions, e) }); err != nil { + return nil, err + } + } + if query := _q.withSubprocessors; query != nil { + if err := _q.loadSubprocessors(ctx, query, nodes, + func(n *Organization) { n.Edges.Subprocessors = []*Subprocessor{} }, + func(n *Organization, e *Subprocessor) { n.Edges.Subprocessors = append(n.Edges.Subprocessors, e) }); err != nil { + return nil, err + } + } + if query := _q.withExports; query != nil { + if err := _q.loadExports(ctx, query, nodes, + func(n *Organization) { n.Edges.Exports = []*Export{} }, + func(n *Organization, e *Export) { n.Edges.Exports = append(n.Edges.Exports, e) }); err != nil { + return nil, err + } + } + if query := _q.withTrustCenterWatermarkConfigs; query != nil { + if err := _q.loadTrustCenterWatermarkConfigs(ctx, query, nodes, + func(n *Organization) { n.Edges.TrustCenterWatermarkConfigs = []*TrustCenterWatermarkConfig{} }, + func(n *Organization, e *TrustCenterWatermarkConfig) { + n.Edges.TrustCenterWatermarkConfigs = append(n.Edges.TrustCenterWatermarkConfigs, e) + }); err != nil { + return nil, err + } + } + if query := _q.withImpersonationEvents; query != nil { + if err := _q.loadImpersonationEvents(ctx, query, nodes, + func(n *Organization) { n.Edges.ImpersonationEvents = []*ImpersonationEvent{} }, + func(n *Organization, e *ImpersonationEvent) { + n.Edges.ImpersonationEvents = append(n.Edges.ImpersonationEvents, e) + }); err != nil { + return nil, err + } + } + if query := _q.withAssessments; query != nil { + if err := _q.loadAssessments(ctx, query, nodes, + func(n *Organization) { n.Edges.Assessments = []*Assessment{} }, + func(n *Organization, e *Assessment) { n.Edges.Assessments = append(n.Edges.Assessments, e) }); err != nil { + return nil, err + } + } + if query := _q.withAssessmentResponses; query != nil { + if err := _q.loadAssessmentResponses(ctx, query, nodes, + func(n *Organization) { n.Edges.AssessmentResponses = []*AssessmentResponse{} }, + func(n *Organization, e *AssessmentResponse) { + n.Edges.AssessmentResponses = append(n.Edges.AssessmentResponses, e) + }); err != nil { + return nil, err + } + } + if query := _q.withCustomTypeEnums; query != nil { + if err := _q.loadCustomTypeEnums(ctx, query, nodes, + func(n *Organization) { n.Edges.CustomTypeEnums = []*CustomTypeEnum{} }, + func(n *Organization, e *CustomTypeEnum) { n.Edges.CustomTypeEnums = append(n.Edges.CustomTypeEnums, e) }); err != nil { + return nil, err + } + } + if query := _q.withTagDefinitions; query != nil { + if err := _q.loadTagDefinitions(ctx, query, nodes, + func(n *Organization) { n.Edges.TagDefinitions = []*TagDefinition{} }, + func(n *Organization, e *TagDefinition) { n.Edges.TagDefinitions = append(n.Edges.TagDefinitions, e) }); err != nil { + return nil, err + } + } + if query := _q.withRemediations; query != nil { + if err := _q.loadRemediations(ctx, query, nodes, + func(n *Organization) { n.Edges.Remediations = []*Remediation{} }, + func(n *Organization, e *Remediation) { n.Edges.Remediations = append(n.Edges.Remediations, e) }); err != nil { + return nil, err + } + } + if query := _q.withFindings; query != nil { + if err := _q.loadFindings(ctx, query, nodes, + func(n *Organization) { n.Edges.Findings = []*Finding{} }, + func(n *Organization, e *Finding) { n.Edges.Findings = append(n.Edges.Findings, e) }); err != nil { + return nil, err + } + } + if query := _q.withReviews; query != nil { + if err := _q.loadReviews(ctx, query, nodes, + func(n *Organization) { n.Edges.Reviews = []*Review{} }, + func(n *Organization, e *Review) { n.Edges.Reviews = append(n.Edges.Reviews, e) }); err != nil { + return nil, err + } + } + if query := _q.withVulnerabilities; query != nil { + if err := _q.loadVulnerabilities(ctx, query, nodes, + func(n *Organization) { n.Edges.Vulnerabilities = []*Vulnerability{} }, + func(n *Organization, e *Vulnerability) { n.Edges.Vulnerabilities = append(n.Edges.Vulnerabilities, e) }); err != nil { + return nil, err + } + } + if query := _q.withNotifications; query != nil { + if err := _q.loadNotifications(ctx, query, nodes, + func(n *Organization) { n.Edges.Notifications = []*Notification{} }, + func(n *Organization, e *Notification) { n.Edges.Notifications = append(n.Edges.Notifications, e) }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowDefinitions; query != nil { + if err := _q.loadWorkflowDefinitions(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowDefinitions = []*WorkflowDefinition{} }, + func(n *Organization, e *WorkflowDefinition) { + n.Edges.WorkflowDefinitions = append(n.Edges.WorkflowDefinitions, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowInstances; query != nil { + if err := _q.loadWorkflowInstances(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowInstances = []*WorkflowInstance{} }, + func(n *Organization, e *WorkflowInstance) { + n.Edges.WorkflowInstances = append(n.Edges.WorkflowInstances, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowEvents; query != nil { + if err := _q.loadWorkflowEvents(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowEvents = []*WorkflowEvent{} }, + func(n *Organization, e *WorkflowEvent) { n.Edges.WorkflowEvents = append(n.Edges.WorkflowEvents, e) }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowAssignments; query != nil { + if err := _q.loadWorkflowAssignments(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowAssignments = []*WorkflowAssignment{} }, + func(n *Organization, e *WorkflowAssignment) { + n.Edges.WorkflowAssignments = append(n.Edges.WorkflowAssignments, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowAssignmentTargets; query != nil { + if err := _q.loadWorkflowAssignmentTargets(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowAssignmentTargets = []*WorkflowAssignmentTarget{} }, + func(n *Organization, e *WorkflowAssignmentTarget) { + n.Edges.WorkflowAssignmentTargets = append(n.Edges.WorkflowAssignmentTargets, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowObjectRefs; query != nil { + if err := _q.loadWorkflowObjectRefs(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowObjectRefs = []*WorkflowObjectRef{} }, + func(n *Organization, e *WorkflowObjectRef) { + n.Edges.WorkflowObjectRefs = append(n.Edges.WorkflowObjectRefs, e) + }); err != nil { + return nil, err + } + } + if query := _q.withWorkflowProposals; query != nil { + if err := _q.loadWorkflowProposals(ctx, query, nodes, + func(n *Organization) { n.Edges.WorkflowProposals = []*WorkflowProposal{} }, + func(n *Organization, e *WorkflowProposal) { + n.Edges.WorkflowProposals = append(n.Edges.WorkflowProposals, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDirectoryAccounts; query != nil { + if err := _q.loadDirectoryAccounts(ctx, query, nodes, + func(n *Organization) { n.Edges.DirectoryAccounts = []*DirectoryAccount{} }, + func(n *Organization, e *DirectoryAccount) { + n.Edges.DirectoryAccounts = append(n.Edges.DirectoryAccounts, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDirectoryGroups; query != nil { + if err := _q.loadDirectoryGroups(ctx, query, nodes, + func(n *Organization) { n.Edges.DirectoryGroups = []*DirectoryGroup{} }, + func(n *Organization, e *DirectoryGroup) { n.Edges.DirectoryGroups = append(n.Edges.DirectoryGroups, e) }); err != nil { + return nil, err + } + } + if query := _q.withDirectoryMemberships; query != nil { + if err := _q.loadDirectoryMemberships(ctx, query, nodes, + func(n *Organization) { n.Edges.DirectoryMemberships = []*DirectoryMembership{} }, + func(n *Organization, e *DirectoryMembership) { + n.Edges.DirectoryMemberships = append(n.Edges.DirectoryMemberships, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDirectorySyncRuns; query != nil { + if err := _q.loadDirectorySyncRuns(ctx, query, nodes, + func(n *Organization) { n.Edges.DirectorySyncRuns = []*DirectorySyncRun{} }, + func(n *Organization, e *DirectorySyncRun) { + n.Edges.DirectorySyncRuns = append(n.Edges.DirectorySyncRuns, e) + }); err != nil { + return nil, err + } + } + if query := _q.withDiscussions; query != nil { + if err := _q.loadDiscussions(ctx, query, nodes, + func(n *Organization) { n.Edges.Discussions = []*Discussion{} }, + func(n *Organization, e *Discussion) { n.Edges.Discussions = append(n.Edges.Discussions, e) }); err != nil { + return nil, err + } + } + if query := _q.withVendorScoringConfigs; query != nil { + if err := _q.loadVendorScoringConfigs(ctx, query, nodes, + func(n *Organization) { n.Edges.VendorScoringConfigs = []*VendorScoringConfig{} }, + func(n *Organization, e *VendorScoringConfig) { + n.Edges.VendorScoringConfigs = append(n.Edges.VendorScoringConfigs, e) + }); err != nil { + return nil, err + } + } + if query := _q.withVendorRiskScores; query != nil { + if err := _q.loadVendorRiskScores(ctx, query, nodes, + func(n *Organization) { n.Edges.VendorRiskScores = []*VendorRiskScore{} }, + func(n *Organization, e *VendorRiskScore) { + n.Edges.VendorRiskScores = append(n.Edges.VendorRiskScores, e) + }); err != nil { + return nil, err + } + } + if query := _q.withMembers; query != nil { + if err := _q.loadMembers(ctx, query, nodes, + func(n *Organization) { n.Edges.Members = []*OrgMembership{} }, + func(n *Organization, e *OrgMembership) { n.Edges.Members = append(n.Edges.Members, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedActionPlanCreators { + if err := _q.loadActionPlanCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedActionPlanCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedActionPlanCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAPITokenCreators { + if err := _q.loadAPITokenCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedAPITokenCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedAPITokenCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAssessmentCreators { + if err := _q.loadAssessmentCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedAssessmentCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedAssessmentCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAssetCreators { + if err := _q.loadAssetCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedAssetCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedAssetCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaignCreators { + if err := _q.loadCampaignCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedCampaignCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedCampaignCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaignTargetCreators { + if err := _q.loadCampaignTargetCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedCampaignTargetCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedCampaignTargetCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCheckResultCreators { + if err := _q.loadCheckResultCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedCheckResultCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedCheckResultCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedContactCreators { + if err := _q.loadContactCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedContactCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedContactCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControlCreators { + if err := _q.loadControlCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedControlCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedControlCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControlImplementationCreators { + if err := _q.loadControlImplementationCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedControlImplementationCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedControlImplementationCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControlObjectiveCreators { + if err := _q.loadControlObjectiveCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedControlObjectiveCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedControlObjectiveCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCustomTypeEnumCreators { + if err := _q.loadCustomTypeEnumCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedCustomTypeEnumCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedCustomTypeEnumCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDiscussionCreators { + if err := _q.loadDiscussionCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedDiscussionCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedDiscussionCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEmailTemplateCreators { + if err := _q.loadEmailTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedEmailTemplateCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedEmailTemplateCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEntityCreators { + if err := _q.loadEntityCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedEntityCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedEntityCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEntityTypeCreators { + if err := _q.loadEntityTypeCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedEntityTypeCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedEntityTypeCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEvidenceCreators { + if err := _q.loadEvidenceCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedEvidenceCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedEvidenceCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedExportCreators { + if err := _q.loadExportCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedExportCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedExportCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedFileCreators { + if err := _q.loadFileCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedFileCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedFileCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedFindingCreators { + if err := _q.loadFindingCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedFindingCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedFindingCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedGroupCreators { + if err := _q.loadGroupCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedGroupCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedGroupCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIdentityHolderCreators { + if err := _q.loadIdentityHolderCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedIdentityHolderCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedIdentityHolderCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIntegrationCreators { + if err := _q.loadIntegrationCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedIntegrationCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedIntegrationCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIntegrationWebhookCreators { + if err := _q.loadIntegrationWebhookCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedIntegrationWebhookCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedIntegrationWebhookCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedInternalPolicyCreators { + if err := _q.loadInternalPolicyCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedInternalPolicyCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedInternalPolicyCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunnerCreators { + if err := _q.loadJobRunnerCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunnerCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedJobRunnerCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunnerRegistrationTokenCreators { + if err := _q.loadJobRunnerRegistrationTokenCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunnerRegistrationTokenCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedJobRunnerRegistrationTokenCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunnerTokenCreators { + if err := _q.loadJobRunnerTokenCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunnerTokenCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedJobRunnerTokenCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobTemplateCreators { + if err := _q.loadJobTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobTemplateCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedJobTemplateCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedMappedControlCreators { + if err := _q.loadMappedControlCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedMappedControlCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedMappedControlCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNarrativeCreators { + if err := _q.loadNarrativeCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedNarrativeCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedNarrativeCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNoteCreators { + if err := _q.loadNoteCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedNoteCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedNoteCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNotificationTemplateCreators { + if err := _q.loadNotificationTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedNotificationTemplateCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedNotificationTemplateCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedOrganizationCreators { + if err := _q.loadOrganizationCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedOrganizationCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedOrganizationCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedPlatformCreators { + if err := _q.loadPlatformCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedPlatformCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedPlatformCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedProcedureCreators { + if err := _q.loadProcedureCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedProcedureCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedProcedureCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedProgramCreators { + if err := _q.loadProgramCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedProgramCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedProgramCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRemediationCreators { + if err := _q.loadRemediationCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedRemediationCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedRemediationCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedReviewCreators { + if err := _q.loadReviewCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedReviewCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedReviewCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRiskCreators { + if err := _q.loadRiskCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedRiskCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedRiskCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScanCreators { + if err := _q.loadScanCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedScanCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedScanCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScheduledJobCreators { + if err := _q.loadScheduledJobCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedScheduledJobCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedScheduledJobCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScheduledJobRunCreators { + if err := _q.loadScheduledJobRunCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedScheduledJobRunCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedScheduledJobRunCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedStandardCreators { + if err := _q.loadStandardCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedStandardCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedStandardCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubcontrolCreators { + if err := _q.loadSubcontrolCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubcontrolCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedSubcontrolCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubprocessorCreators { + if err := _q.loadSubprocessorCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubprocessorCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedSubprocessorCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubscriberCreators { + if err := _q.loadSubscriberCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubscriberCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedSubscriberCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSystemDetailCreators { + if err := _q.loadSystemDetailCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedSystemDetailCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedSystemDetailCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTagDefinitionCreators { + if err := _q.loadTagDefinitionCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTagDefinitionCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTagDefinitionCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTaskCreators { + if err := _q.loadTaskCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTaskCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTaskCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTemplateCreators { + if err := _q.loadTemplateCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTemplateCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTemplateCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterCreators { + if err := _q.loadTrustCenterCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterComplianceCreators { + if err := _q.loadTrustCenterComplianceCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterComplianceCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterComplianceCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterDocCreators { + if err := _q.loadTrustCenterDocCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterDocCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterDocCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterEntityCreators { + if err := _q.loadTrustCenterEntityCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterEntityCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterEntityCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterFaqCreators { + if err := _q.loadTrustCenterFaqCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterFaqCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterFaqCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterNdaRequestCreators { + if err := _q.loadTrustCenterNdaRequestCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterNdaRequestCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterNdaRequestCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterSubprocessorCreators { + if err := _q.loadTrustCenterSubprocessorCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterSubprocessorCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterSubprocessorCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterWatermarkConfigCreators { + if err := _q.loadTrustCenterWatermarkConfigCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterWatermarkConfigCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterWatermarkConfigCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedUserCreators { + if err := _q.loadUserCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedUserCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedUserCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedUserSettingCreators { + if err := _q.loadUserSettingCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedUserSettingCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedUserSettingCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedVendorRiskScoreCreators { + if err := _q.loadVendorRiskScoreCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedVendorRiskScoreCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedVendorRiskScoreCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedVulnerabilityCreators { + if err := _q.loadVulnerabilityCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedVulnerabilityCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedVulnerabilityCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowAssignmentCreators { + if err := _q.loadWorkflowAssignmentCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowAssignmentCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowAssignmentCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowAssignmentTargetCreators { + if err := _q.loadWorkflowAssignmentTargetCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowAssignmentTargetCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowAssignmentTargetCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowDefinitionCreators { + if err := _q.loadWorkflowDefinitionCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowDefinitionCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowDefinitionCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowEventCreators { + if err := _q.loadWorkflowEventCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowEventCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowEventCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowInstanceCreators { + if err := _q.loadWorkflowInstanceCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowInstanceCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowInstanceCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowObjectRefCreators { + if err := _q.loadWorkflowObjectRefCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowObjectRefCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowObjectRefCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowProposalCreators { + if err := _q.loadWorkflowProposalCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowProposalCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowProposalCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaignsManager { + if err := _q.loadCampaignsManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedCampaignsManager(name) }, + func(n *Organization, e *Group) { n.appendNamedCampaignsManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedComplianceManager { + if err := _q.loadComplianceManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedComplianceManager(name) }, + func(n *Organization, e *Group) { n.appendNamedComplianceManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedGroupManager { + if err := _q.loadGroupManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedGroupManager(name) }, + func(n *Organization, e *Group) { n.appendNamedGroupManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedPoliciesManager { + if err := _q.loadPoliciesManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedPoliciesManager(name) }, + func(n *Organization, e *Group) { n.appendNamedPoliciesManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRegistryManager { + if err := _q.loadRegistryManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedRegistryManager(name) }, + func(n *Organization, e *Group) { n.appendNamedRegistryManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRiskManager { + if err := _q.loadRiskManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedRiskManager(name) }, + func(n *Organization, e *Group) { n.appendNamedRiskManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterManager { + if err := _q.loadTrustCenterManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterManager(name) }, + func(n *Organization, e *Group) { n.appendNamedTrustCenterManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowsManager { + if err := _q.loadWorkflowsManager(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowsManager(name) }, + func(n *Organization, e *Group) { n.appendNamedWorkflowsManager(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedChildren { + if err := _q.loadChildren(ctx, query, nodes, + func(n *Organization) { n.appendNamedChildren(name) }, + func(n *Organization, e *Organization) { n.appendNamedChildren(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedPersonalAccessTokens { + if err := _q.loadPersonalAccessTokens(ctx, query, nodes, + func(n *Organization) { n.appendNamedPersonalAccessTokens(name) }, + func(n *Organization, e *PersonalAccessToken) { n.appendNamedPersonalAccessTokens(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAPITokens { + if err := _q.loadAPITokens(ctx, query, nodes, + func(n *Organization) { n.appendNamedAPITokens(name) }, + func(n *Organization, e *APIToken) { n.appendNamedAPITokens(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEmailTemplates { + if err := _q.loadEmailTemplates(ctx, query, nodes, + func(n *Organization) { n.appendNamedEmailTemplates(name) }, + func(n *Organization, e *EmailTemplate) { n.appendNamedEmailTemplates(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIntegrationWebhooks { + if err := _q.loadIntegrationWebhooks(ctx, query, nodes, + func(n *Organization) { n.appendNamedIntegrationWebhooks(name) }, + func(n *Organization, e *IntegrationWebhook) { n.appendNamedIntegrationWebhooks(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIntegrationRuns { + if err := _q.loadIntegrationRuns(ctx, query, nodes, + func(n *Organization) { n.appendNamedIntegrationRuns(name) }, + func(n *Organization, e *IntegrationRun) { n.appendNamedIntegrationRuns(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNotificationPreferences { + if err := _q.loadNotificationPreferences(ctx, query, nodes, + func(n *Organization) { n.appendNamedNotificationPreferences(name) }, + func(n *Organization, e *NotificationPreference) { n.appendNamedNotificationPreferences(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNotificationTemplates { + if err := _q.loadNotificationTemplates(ctx, query, nodes, + func(n *Organization) { n.appendNamedNotificationTemplates(name) }, + func(n *Organization, e *NotificationTemplate) { n.appendNamedNotificationTemplates(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedUsers { + if err := _q.loadUsers(ctx, query, nodes, + func(n *Organization) { n.appendNamedUsers(name) }, + func(n *Organization, e *User) { n.appendNamedUsers(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedFiles { + if err := _q.loadFiles(ctx, query, nodes, + func(n *Organization) { n.appendNamedFiles(name) }, + func(n *Organization, e *File) { n.appendNamedFiles(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEvents { + if err := _q.loadEvents(ctx, query, nodes, + func(n *Organization) { n.appendNamedEvents(name) }, + func(n *Organization, e *Event) { n.appendNamedEvents(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSecrets { + if err := _q.loadSecrets(ctx, query, nodes, + func(n *Organization) { n.appendNamedSecrets(name) }, + func(n *Organization, e *Hush) { n.appendNamedSecrets(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedGroups { + if err := _q.loadGroups(ctx, query, nodes, + func(n *Organization) { n.appendNamedGroups(name) }, + func(n *Organization, e *Group) { n.appendNamedGroups(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTemplates { + if err := _q.loadTemplates(ctx, query, nodes, + func(n *Organization) { n.appendNamedTemplates(name) }, + func(n *Organization, e *Template) { n.appendNamedTemplates(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIntegrations { + if err := _q.loadIntegrations(ctx, query, nodes, + func(n *Organization) { n.appendNamedIntegrations(name) }, + func(n *Organization, e *Integration) { n.appendNamedIntegrations(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDocuments { + if err := _q.loadDocuments(ctx, query, nodes, + func(n *Organization) { n.appendNamedDocuments(name) }, + func(n *Organization, e *DocumentData) { n.appendNamedDocuments(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedOrgSubscriptions { + if err := _q.loadOrgSubscriptions(ctx, query, nodes, + func(n *Organization) { n.appendNamedOrgSubscriptions(name) }, + func(n *Organization, e *OrgSubscription) { n.appendNamedOrgSubscriptions(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedOrgProducts { + if err := _q.loadOrgProducts(ctx, query, nodes, + func(n *Organization) { n.appendNamedOrgProducts(name) }, + func(n *Organization, e *OrgProduct) { n.appendNamedOrgProducts(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedOrgPrices { + if err := _q.loadOrgPrices(ctx, query, nodes, + func(n *Organization) { n.appendNamedOrgPrices(name) }, + func(n *Organization, e *OrgPrice) { n.appendNamedOrgPrices(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedOrgModules { + if err := _q.loadOrgModules(ctx, query, nodes, + func(n *Organization) { n.appendNamedOrgModules(name) }, + func(n *Organization, e *OrgModule) { n.appendNamedOrgModules(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedInvites { + if err := _q.loadInvites(ctx, query, nodes, + func(n *Organization) { n.appendNamedInvites(name) }, + func(n *Organization, e *Invite) { n.appendNamedInvites(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubscribers { + if err := _q.loadSubscribers(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubscribers(name) }, + func(n *Organization, e *Subscriber) { n.appendNamedSubscribers(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEntities { + if err := _q.loadEntities(ctx, query, nodes, + func(n *Organization) { n.appendNamedEntities(name) }, + func(n *Organization, e *Entity) { n.appendNamedEntities(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedPlatforms { + if err := _q.loadPlatforms(ctx, query, nodes, + func(n *Organization) { n.appendNamedPlatforms(name) }, + func(n *Organization, e *Platform) { n.appendNamedPlatforms(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedIdentityHolders { + if err := _q.loadIdentityHolders(ctx, query, nodes, + func(n *Organization) { n.appendNamedIdentityHolders(name) }, + func(n *Organization, e *IdentityHolder) { n.appendNamedIdentityHolders(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaigns { + if err := _q.loadCampaigns(ctx, query, nodes, + func(n *Organization) { n.appendNamedCampaigns(name) }, + func(n *Organization, e *Campaign) { n.appendNamedCampaigns(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaignTargets { + if err := _q.loadCampaignTargets(ctx, query, nodes, + func(n *Organization) { n.appendNamedCampaignTargets(name) }, + func(n *Organization, e *CampaignTarget) { n.appendNamedCampaignTargets(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEntityTypes { + if err := _q.loadEntityTypes(ctx, query, nodes, + func(n *Organization) { n.appendNamedEntityTypes(name) }, + func(n *Organization, e *EntityType) { n.appendNamedEntityTypes(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedContacts { + if err := _q.loadContacts(ctx, query, nodes, + func(n *Organization) { n.appendNamedContacts(name) }, + func(n *Organization, e *Contact) { n.appendNamedContacts(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNotes { + if err := _q.loadNotes(ctx, query, nodes, + func(n *Organization) { n.appendNamedNotes(name) }, + func(n *Organization, e *Note) { n.appendNamedNotes(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTasks { + if err := _q.loadTasks(ctx, query, nodes, + func(n *Organization) { n.appendNamedTasks(name) }, + func(n *Organization, e *Task) { n.appendNamedTasks(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedPrograms { + if err := _q.loadPrograms(ctx, query, nodes, + func(n *Organization) { n.appendNamedPrograms(name) }, + func(n *Organization, e *Program) { n.appendNamedPrograms(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSystemDetails { + if err := _q.loadSystemDetails(ctx, query, nodes, + func(n *Organization) { n.appendNamedSystemDetails(name) }, + func(n *Organization, e *SystemDetail) { n.appendNamedSystemDetails(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedProcedures { + if err := _q.loadProcedures(ctx, query, nodes, + func(n *Organization) { n.appendNamedProcedures(name) }, + func(n *Organization, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedInternalPolicies { + if err := _q.loadInternalPolicies(ctx, query, nodes, + func(n *Organization) { n.appendNamedInternalPolicies(name) }, + func(n *Organization, e *InternalPolicy) { n.appendNamedInternalPolicies(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRisks { + if err := _q.loadRisks(ctx, query, nodes, + func(n *Organization) { n.appendNamedRisks(name) }, + func(n *Organization, e *Risk) { n.appendNamedRisks(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControlObjectives { + if err := _q.loadControlObjectives(ctx, query, nodes, + func(n *Organization) { n.appendNamedControlObjectives(name) }, + func(n *Organization, e *ControlObjective) { n.appendNamedControlObjectives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNarratives { + if err := _q.loadNarratives(ctx, query, nodes, + func(n *Organization) { n.appendNamedNarratives(name) }, + func(n *Organization, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControls { + if err := _q.loadControls(ctx, query, nodes, + func(n *Organization) { n.appendNamedControls(name) }, + func(n *Organization, e *Control) { n.appendNamedControls(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubcontrols { + if err := _q.loadSubcontrols(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubcontrols(name) }, + func(n *Organization, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedControlImplementations { + if err := _q.loadControlImplementations(ctx, query, nodes, + func(n *Organization) { n.appendNamedControlImplementations(name) }, + func(n *Organization, e *ControlImplementation) { n.appendNamedControlImplementations(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedMappedControls { + if err := _q.loadMappedControls(ctx, query, nodes, + func(n *Organization) { n.appendNamedMappedControls(name) }, + func(n *Organization, e *MappedControl) { n.appendNamedMappedControls(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEvidence { + if err := _q.loadEvidence(ctx, query, nodes, + func(n *Organization) { n.appendNamedEvidence(name) }, + func(n *Organization, e *Evidence) { n.appendNamedEvidence(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedStandards { + if err := _q.loadStandards(ctx, query, nodes, + func(n *Organization) { n.appendNamedStandards(name) }, + func(n *Organization, e *Standard) { n.appendNamedStandards(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedActionPlans { + if err := _q.loadActionPlans(ctx, query, nodes, + func(n *Organization) { n.appendNamedActionPlans(name) }, + func(n *Organization, e *ActionPlan) { n.appendNamedActionPlans(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCustomDomains { + if err := _q.loadCustomDomains(ctx, query, nodes, + func(n *Organization) { n.appendNamedCustomDomains(name) }, + func(n *Organization, e *CustomDomain) { n.appendNamedCustomDomains(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunners { + if err := _q.loadJobRunners(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunners(name) }, + func(n *Organization, e *JobRunner) { n.appendNamedJobRunners(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunnerTokens { + if err := _q.loadJobRunnerTokens(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunnerTokens(name) }, + func(n *Organization, e *JobRunnerToken) { n.appendNamedJobRunnerTokens(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobRunnerRegistrationTokens { + if err := _q.loadJobRunnerRegistrationTokens(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobRunnerRegistrationTokens(name) }, + func(n *Organization, e *JobRunnerRegistrationToken) { + n.appendNamedJobRunnerRegistrationTokens(name, e) + }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDNSVerifications { + if err := _q.loadDNSVerifications(ctx, query, nodes, + func(n *Organization) { n.appendNamedDNSVerifications(name) }, + func(n *Organization, e *DNSVerification) { n.appendNamedDNSVerifications(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobTemplates { + if err := _q.loadJobTemplates(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobTemplates(name) }, + func(n *Organization, e *JobTemplate) { n.appendNamedJobTemplates(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScheduledJobs { + if err := _q.loadScheduledJobs(ctx, query, nodes, + func(n *Organization) { n.appendNamedScheduledJobs(name) }, + func(n *Organization, e *ScheduledJob) { n.appendNamedScheduledJobs(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedJobResults { + if err := _q.loadJobResults(ctx, query, nodes, + func(n *Organization) { n.appendNamedJobResults(name) }, + func(n *Organization, e *JobResult) { n.appendNamedJobResults(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScheduledJobRuns { + if err := _q.loadScheduledJobRuns(ctx, query, nodes, + func(n *Organization) { n.appendNamedScheduledJobRuns(name) }, + func(n *Organization, e *ScheduledJobRun) { n.appendNamedScheduledJobRuns(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenters { + if err := _q.loadTrustCenters(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenters(name) }, + func(n *Organization, e *TrustCenter) { n.appendNamedTrustCenters(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAssets { + if err := _q.loadAssets(ctx, query, nodes, + func(n *Organization) { n.appendNamedAssets(name) }, + func(n *Organization, e *Asset) { n.appendNamedAssets(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedScans { + if err := _q.loadScans(ctx, query, nodes, + func(n *Organization) { n.appendNamedScans(name) }, + func(n *Organization, e *Scan) { n.appendNamedScans(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSLADefinitions { + if err := _q.loadSLADefinitions(ctx, query, nodes, + func(n *Organization) { n.appendNamedSLADefinitions(name) }, + func(n *Organization, e *SLADefinition) { n.appendNamedSLADefinitions(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedSubprocessors { + if err := _q.loadSubprocessors(ctx, query, nodes, + func(n *Organization) { n.appendNamedSubprocessors(name) }, + func(n *Organization, e *Subprocessor) { n.appendNamedSubprocessors(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedExports { + if err := _q.loadExports(ctx, query, nodes, + func(n *Organization) { n.appendNamedExports(name) }, + func(n *Organization, e *Export) { n.appendNamedExports(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTrustCenterWatermarkConfigs { + if err := _q.loadTrustCenterWatermarkConfigs(ctx, query, nodes, + func(n *Organization) { n.appendNamedTrustCenterWatermarkConfigs(name) }, + func(n *Organization, e *TrustCenterWatermarkConfig) { + n.appendNamedTrustCenterWatermarkConfigs(name, e) + }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedImpersonationEvents { + if err := _q.loadImpersonationEvents(ctx, query, nodes, + func(n *Organization) { n.appendNamedImpersonationEvents(name) }, + func(n *Organization, e *ImpersonationEvent) { n.appendNamedImpersonationEvents(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAssessments { + if err := _q.loadAssessments(ctx, query, nodes, + func(n *Organization) { n.appendNamedAssessments(name) }, + func(n *Organization, e *Assessment) { n.appendNamedAssessments(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAssessmentResponses { + if err := _q.loadAssessmentResponses(ctx, query, nodes, + func(n *Organization) { n.appendNamedAssessmentResponses(name) }, + func(n *Organization, e *AssessmentResponse) { n.appendNamedAssessmentResponses(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCustomTypeEnums { + if err := _q.loadCustomTypeEnums(ctx, query, nodes, + func(n *Organization) { n.appendNamedCustomTypeEnums(name) }, + func(n *Organization, e *CustomTypeEnum) { n.appendNamedCustomTypeEnums(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedTagDefinitions { + if err := _q.loadTagDefinitions(ctx, query, nodes, + func(n *Organization) { n.appendNamedTagDefinitions(name) }, + func(n *Organization, e *TagDefinition) { n.appendNamedTagDefinitions(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedRemediations { + if err := _q.loadRemediations(ctx, query, nodes, + func(n *Organization) { n.appendNamedRemediations(name) }, + func(n *Organization, e *Remediation) { n.appendNamedRemediations(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedFindings { + if err := _q.loadFindings(ctx, query, nodes, + func(n *Organization) { n.appendNamedFindings(name) }, + func(n *Organization, e *Finding) { n.appendNamedFindings(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedReviews { + if err := _q.loadReviews(ctx, query, nodes, + func(n *Organization) { n.appendNamedReviews(name) }, + func(n *Organization, e *Review) { n.appendNamedReviews(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedVulnerabilities { + if err := _q.loadVulnerabilities(ctx, query, nodes, + func(n *Organization) { n.appendNamedVulnerabilities(name) }, + func(n *Organization, e *Vulnerability) { n.appendNamedVulnerabilities(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedNotifications { + if err := _q.loadNotifications(ctx, query, nodes, + func(n *Organization) { n.appendNamedNotifications(name) }, + func(n *Organization, e *Notification) { n.appendNamedNotifications(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowDefinitions { + if err := _q.loadWorkflowDefinitions(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowDefinitions(name) }, + func(n *Organization, e *WorkflowDefinition) { n.appendNamedWorkflowDefinitions(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowInstances { + if err := _q.loadWorkflowInstances(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowInstances(name) }, + func(n *Organization, e *WorkflowInstance) { n.appendNamedWorkflowInstances(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowEvents { + if err := _q.loadWorkflowEvents(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowEvents(name) }, + func(n *Organization, e *WorkflowEvent) { n.appendNamedWorkflowEvents(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowAssignments { + if err := _q.loadWorkflowAssignments(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowAssignments(name) }, + func(n *Organization, e *WorkflowAssignment) { n.appendNamedWorkflowAssignments(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowAssignmentTargets { + if err := _q.loadWorkflowAssignmentTargets(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowAssignmentTargets(name) }, + func(n *Organization, e *WorkflowAssignmentTarget) { n.appendNamedWorkflowAssignmentTargets(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowObjectRefs { + if err := _q.loadWorkflowObjectRefs(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowObjectRefs(name) }, + func(n *Organization, e *WorkflowObjectRef) { n.appendNamedWorkflowObjectRefs(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedWorkflowProposals { + if err := _q.loadWorkflowProposals(ctx, query, nodes, + func(n *Organization) { n.appendNamedWorkflowProposals(name) }, + func(n *Organization, e *WorkflowProposal) { n.appendNamedWorkflowProposals(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDirectoryAccounts { + if err := _q.loadDirectoryAccounts(ctx, query, nodes, + func(n *Organization) { n.appendNamedDirectoryAccounts(name) }, + func(n *Organization, e *DirectoryAccount) { n.appendNamedDirectoryAccounts(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDirectoryGroups { + if err := _q.loadDirectoryGroups(ctx, query, nodes, + func(n *Organization) { n.appendNamedDirectoryGroups(name) }, + func(n *Organization, e *DirectoryGroup) { n.appendNamedDirectoryGroups(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDirectoryMemberships { + if err := _q.loadDirectoryMemberships(ctx, query, nodes, + func(n *Organization) { n.appendNamedDirectoryMemberships(name) }, + func(n *Organization, e *DirectoryMembership) { n.appendNamedDirectoryMemberships(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDirectorySyncRuns { + if err := _q.loadDirectorySyncRuns(ctx, query, nodes, + func(n *Organization) { n.appendNamedDirectorySyncRuns(name) }, + func(n *Organization, e *DirectorySyncRun) { n.appendNamedDirectorySyncRuns(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedDiscussions { + if err := _q.loadDiscussions(ctx, query, nodes, + func(n *Organization) { n.appendNamedDiscussions(name) }, + func(n *Organization, e *Discussion) { n.appendNamedDiscussions(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedVendorScoringConfigs { + if err := _q.loadVendorScoringConfigs(ctx, query, nodes, + func(n *Organization) { n.appendNamedVendorScoringConfigs(name) }, + func(n *Organization, e *VendorScoringConfig) { n.appendNamedVendorScoringConfigs(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedVendorRiskScores { + if err := _q.loadVendorRiskScores(ctx, query, nodes, + func(n *Organization) { n.appendNamedVendorRiskScores(name) }, + func(n *Organization, e *VendorRiskScore) { n.appendNamedVendorRiskScores(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedMembers { + if err := _q.loadMembers(ctx, query, nodes, + func(n *Organization) { n.appendNamedMembers(name) }, + func(n *Organization, e *OrgMembership) { n.appendNamedMembers(name, e) }); err != nil { + return nil, err + } + } + for i := range _q.loadTotal { + if err := _q.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (_q *OrganizationQuery) loadActionPlanCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ActionPlanCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_action_plan_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_action_plan_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_action_plan_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) } - _spec.Assign = func(columns []string, values []any) error { - node := &Organization{config: _q.config} - nodes = append(nodes, node) - node.Edges.loadedTypes = loadedTypes - return node.assignValues(columns, values) + return nil +} +func (_q *OrganizationQuery) loadAPITokenCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } } - _spec.Node.Schema = _q.schemaConfig.Organization - ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) - if len(_q.modifiers) > 0 { - _spec.Modifiers = _q.modifiers + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.APITokenCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for i := range hooks { - hooks[i](ctx, _spec) + for _, n := range neighbors { + fk := n.organization_api_token_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_api_token_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_api_token_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) } - if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadAssessmentCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } } - if len(nodes) == 0 { - return nodes, nil + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AssessmentCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withControlCreators; query != nil { - if err := _q.loadControlCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ControlCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.ControlCreators = append(n.Edges.ControlCreators, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_assessment_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_assessment_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_assessment_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withControlImplementationCreators; query != nil { - if err := _q.loadControlImplementationCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ControlImplementationCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.ControlImplementationCreators = append(n.Edges.ControlImplementationCreators, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadAssetCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AssetCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_asset_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_asset_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_asset_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadCampaignCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CampaignCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_campaign_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_campaign_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_campaign_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadCampaignTargetCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CampaignTargetCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_campaign_target_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_campaign_target_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_campaign_target_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadCheckResultCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CheckResultCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_check_result_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_check_result_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_check_result_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadContactCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ContactCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_contact_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_contact_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_contact_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadControlCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_control_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_control_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_control_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withControlObjectiveCreators; query != nil { - if err := _q.loadControlObjectiveCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ControlObjectiveCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.ControlObjectiveCreators = append(n.Edges.ControlObjectiveCreators, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadControlImplementationCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withEvidenceCreators; query != nil { - if err := _q.loadEvidenceCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.EvidenceCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.EvidenceCreators = append(n.Edges.EvidenceCreators, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlImplementationCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withAssetCreators; query != nil { - if err := _q.loadAssetCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.AssetCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.AssetCreators = append(n.Edges.AssetCreators, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_control_implementation_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_control_implementation_creators" is nil for node %v`, n.ID) } - } - if query := _q.withFindingCreators; query != nil { - if err := _q.loadFindingCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.FindingCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.FindingCreators = append(n.Edges.FindingCreators, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_control_implementation_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withVulnerabilityCreators; query != nil { - if err := _q.loadVulnerabilityCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.VulnerabilityCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.VulnerabilityCreators = append(n.Edges.VulnerabilityCreators, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadControlObjectiveCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withGroupCreators; query != nil { - if err := _q.loadGroupCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.GroupCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.GroupCreators = append(n.Edges.GroupCreators, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlObjectiveCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withInternalPolicyCreators; query != nil { - if err := _q.loadInternalPolicyCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.InternalPolicyCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.InternalPolicyCreators = append(n.Edges.InternalPolicyCreators, e) - }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_control_objective_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_control_objective_creators" is nil for node %v`, n.ID) } - } - if query := _q.withMappedControlCreators; query != nil { - if err := _q.loadMappedControlCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.MappedControlCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.MappedControlCreators = append(n.Edges.MappedControlCreators, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_control_objective_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withNarrativeCreators; query != nil { - if err := _q.loadNarrativeCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.NarrativeCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.NarrativeCreators = append(n.Edges.NarrativeCreators, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadCustomTypeEnumCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withProcedureCreators; query != nil { - if err := _q.loadProcedureCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ProcedureCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.ProcedureCreators = append(n.Edges.ProcedureCreators, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CustomTypeEnumCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withProgramCreators; query != nil { - if err := _q.loadProgramCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ProgramCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.ProgramCreators = append(n.Edges.ProgramCreators, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_custom_type_enum_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_custom_type_enum_creators" is nil for node %v`, n.ID) } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_custom_type_enum_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) } - if query := _q.withRiskCreators; query != nil { - if err := _q.loadRiskCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.RiskCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.RiskCreators = append(n.Edges.RiskCreators, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadDiscussionCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withIdentityHolderCreators; query != nil { - if err := _q.loadIdentityHolderCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.IdentityHolderCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.IdentityHolderCreators = append(n.Edges.IdentityHolderCreators, e) - }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DiscussionCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_discussion_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_discussion_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_discussion_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withScheduledJobCreators; query != nil { - if err := _q.loadScheduledJobCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ScheduledJobCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.ScheduledJobCreators = append(n.Edges.ScheduledJobCreators, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadEmailTemplateCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withStandardCreators; query != nil { - if err := _q.loadStandardCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.StandardCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.StandardCreators = append(n.Edges.StandardCreators, e) }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EmailTemplateCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_email_template_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_email_template_creators" is nil for node %v`, n.ID) } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_email_template_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) } - if query := _q.withTemplateCreators; query != nil { - if err := _q.loadTemplateCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.TemplateCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.TemplateCreators = append(n.Edges.TemplateCreators, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadEntityCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withSubprocessorCreators; query != nil { - if err := _q.loadSubprocessorCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.SubprocessorCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.SubprocessorCreators = append(n.Edges.SubprocessorCreators, e) - }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EntityCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_entity_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_entity_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_entity_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withTrustCenterDocCreators; query != nil { - if err := _q.loadTrustCenterDocCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.TrustCenterDocCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.TrustCenterDocCreators = append(n.Edges.TrustCenterDocCreators, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadEntityTypeCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withTrustCenterSubprocessorCreators; query != nil { - if err := _q.loadTrustCenterSubprocessorCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.TrustCenterSubprocessorCreators = []*Group{} }, - func(n *Organization, e *Group) { - n.Edges.TrustCenterSubprocessorCreators = append(n.Edges.TrustCenterSubprocessorCreators, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EntityTypeCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withActionPlanCreators; query != nil { - if err := _q.loadActionPlanCreators(ctx, query, nodes, - func(n *Organization) { n.Edges.ActionPlanCreators = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.ActionPlanCreators = append(n.Edges.ActionPlanCreators, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_entity_type_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_entity_type_creators" is nil for node %v`, n.ID) } - } - if query := _q.withParent; query != nil { - if err := _q.loadParent(ctx, query, nodes, nil, - func(n *Organization, e *Organization) { n.Edges.Parent = e }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_entity_type_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withChildren; query != nil { - if err := _q.loadChildren(ctx, query, nodes, - func(n *Organization) { n.Edges.Children = []*Organization{} }, - func(n *Organization, e *Organization) { n.Edges.Children = append(n.Edges.Children, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadEvidenceCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withSetting; query != nil { - if err := _q.loadSetting(ctx, query, nodes, nil, - func(n *Organization, e *OrganizationSetting) { n.Edges.Setting = e }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EvidenceCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withPersonalAccessTokens; query != nil { - if err := _q.loadPersonalAccessTokens(ctx, query, nodes, - func(n *Organization) { n.Edges.PersonalAccessTokens = []*PersonalAccessToken{} }, - func(n *Organization, e *PersonalAccessToken) { - n.Edges.PersonalAccessTokens = append(n.Edges.PersonalAccessTokens, e) - }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_evidence_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_evidence_creators" is nil for node %v`, n.ID) } - } - if query := _q.withAPITokens; query != nil { - if err := _q.loadAPITokens(ctx, query, nodes, - func(n *Organization) { n.Edges.APITokens = []*APIToken{} }, - func(n *Organization, e *APIToken) { n.Edges.APITokens = append(n.Edges.APITokens, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_evidence_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withEmailTemplates; query != nil { - if err := _q.loadEmailTemplates(ctx, query, nodes, - func(n *Organization) { n.Edges.EmailTemplates = []*EmailTemplate{} }, - func(n *Organization, e *EmailTemplate) { n.Edges.EmailTemplates = append(n.Edges.EmailTemplates, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadExportCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withIntegrationWebhooks; query != nil { - if err := _q.loadIntegrationWebhooks(ctx, query, nodes, - func(n *Organization) { n.Edges.IntegrationWebhooks = []*IntegrationWebhook{} }, - func(n *Organization, e *IntegrationWebhook) { - n.Edges.IntegrationWebhooks = append(n.Edges.IntegrationWebhooks, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ExportCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withIntegrationRuns; query != nil { - if err := _q.loadIntegrationRuns(ctx, query, nodes, - func(n *Organization) { n.Edges.IntegrationRuns = []*IntegrationRun{} }, - func(n *Organization, e *IntegrationRun) { n.Edges.IntegrationRuns = append(n.Edges.IntegrationRuns, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_export_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_export_creators" is nil for node %v`, n.ID) } - } - if query := _q.withNotificationPreferences; query != nil { - if err := _q.loadNotificationPreferences(ctx, query, nodes, - func(n *Organization) { n.Edges.NotificationPreferences = []*NotificationPreference{} }, - func(n *Organization, e *NotificationPreference) { - n.Edges.NotificationPreferences = append(n.Edges.NotificationPreferences, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_export_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withNotificationTemplates; query != nil { - if err := _q.loadNotificationTemplates(ctx, query, nodes, - func(n *Organization) { n.Edges.NotificationTemplates = []*NotificationTemplate{} }, - func(n *Organization, e *NotificationTemplate) { - n.Edges.NotificationTemplates = append(n.Edges.NotificationTemplates, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadFileCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withUsers; query != nil { - if err := _q.loadUsers(ctx, query, nodes, - func(n *Organization) { n.Edges.Users = []*User{} }, - func(n *Organization, e *User) { n.Edges.Users = append(n.Edges.Users, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.FileCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withFiles; query != nil { - if err := _q.loadFiles(ctx, query, nodes, - func(n *Organization) { n.Edges.Files = []*File{} }, - func(n *Organization, e *File) { n.Edges.Files = append(n.Edges.Files, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_file_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_file_creators" is nil for node %v`, n.ID) } - } - if query := _q.withEvents; query != nil { - if err := _q.loadEvents(ctx, query, nodes, - func(n *Organization) { n.Edges.Events = []*Event{} }, - func(n *Organization, e *Event) { n.Edges.Events = append(n.Edges.Events, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_file_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withSecrets; query != nil { - if err := _q.loadSecrets(ctx, query, nodes, - func(n *Organization) { n.Edges.Secrets = []*Hush{} }, - func(n *Organization, e *Hush) { n.Edges.Secrets = append(n.Edges.Secrets, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadFindingCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withAvatarFile; query != nil { - if err := _q.loadAvatarFile(ctx, query, nodes, nil, - func(n *Organization, e *File) { n.Edges.AvatarFile = e }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.FindingCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_finding_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_finding_creators" is nil for node %v`, n.ID) } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_finding_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) } - if query := _q.withGroups; query != nil { - if err := _q.loadGroups(ctx, query, nodes, - func(n *Organization) { n.Edges.Groups = []*Group{} }, - func(n *Organization, e *Group) { n.Edges.Groups = append(n.Edges.Groups, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadGroupCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withTemplates; query != nil { - if err := _q.loadTemplates(ctx, query, nodes, - func(n *Organization) { n.Edges.Templates = []*Template{} }, - func(n *Organization, e *Template) { n.Edges.Templates = append(n.Edges.Templates, e) }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.GroupCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_group_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_group_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_group_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withIntegrations; query != nil { - if err := _q.loadIntegrations(ctx, query, nodes, - func(n *Organization) { n.Edges.Integrations = []*Integration{} }, - func(n *Organization, e *Integration) { n.Edges.Integrations = append(n.Edges.Integrations, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadIdentityHolderCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withDocuments; query != nil { - if err := _q.loadDocuments(ctx, query, nodes, - func(n *Organization) { n.Edges.Documents = []*DocumentData{} }, - func(n *Organization, e *DocumentData) { n.Edges.Documents = append(n.Edges.Documents, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IdentityHolderCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withOrgSubscriptions; query != nil { - if err := _q.loadOrgSubscriptions(ctx, query, nodes, - func(n *Organization) { n.Edges.OrgSubscriptions = []*OrgSubscription{} }, - func(n *Organization, e *OrgSubscription) { - n.Edges.OrgSubscriptions = append(n.Edges.OrgSubscriptions, e) - }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_identity_holder_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_identity_holder_creators" is nil for node %v`, n.ID) } - } - if query := _q.withOrgProducts; query != nil { - if err := _q.loadOrgProducts(ctx, query, nodes, - func(n *Organization) { n.Edges.OrgProducts = []*OrgProduct{} }, - func(n *Organization, e *OrgProduct) { n.Edges.OrgProducts = append(n.Edges.OrgProducts, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_identity_holder_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withOrgPrices; query != nil { - if err := _q.loadOrgPrices(ctx, query, nodes, - func(n *Organization) { n.Edges.OrgPrices = []*OrgPrice{} }, - func(n *Organization, e *OrgPrice) { n.Edges.OrgPrices = append(n.Edges.OrgPrices, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadIntegrationCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withOrgModules; query != nil { - if err := _q.loadOrgModules(ctx, query, nodes, - func(n *Organization) { n.Edges.OrgModules = []*OrgModule{} }, - func(n *Organization, e *OrgModule) { n.Edges.OrgModules = append(n.Edges.OrgModules, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withInvites; query != nil { - if err := _q.loadInvites(ctx, query, nodes, - func(n *Organization) { n.Edges.Invites = []*Invite{} }, - func(n *Organization, e *Invite) { n.Edges.Invites = append(n.Edges.Invites, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_integration_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_integration_creators" is nil for node %v`, n.ID) } - } - if query := _q.withSubscribers; query != nil { - if err := _q.loadSubscribers(ctx, query, nodes, - func(n *Organization) { n.Edges.Subscribers = []*Subscriber{} }, - func(n *Organization, e *Subscriber) { n.Edges.Subscribers = append(n.Edges.Subscribers, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_integration_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withEntities; query != nil { - if err := _q.loadEntities(ctx, query, nodes, - func(n *Organization) { n.Edges.Entities = []*Entity{} }, - func(n *Organization, e *Entity) { n.Edges.Entities = append(n.Edges.Entities, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadIntegrationWebhookCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withPlatforms; query != nil { - if err := _q.loadPlatforms(ctx, query, nodes, - func(n *Organization) { n.Edges.Platforms = []*Platform{} }, - func(n *Organization, e *Platform) { n.Edges.Platforms = append(n.Edges.Platforms, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationWebhookCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withIdentityHolders; query != nil { - if err := _q.loadIdentityHolders(ctx, query, nodes, - func(n *Organization) { n.Edges.IdentityHolders = []*IdentityHolder{} }, - func(n *Organization, e *IdentityHolder) { n.Edges.IdentityHolders = append(n.Edges.IdentityHolders, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_integration_webhook_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_integration_webhook_creators" is nil for node %v`, n.ID) } - } - if query := _q.withCampaigns; query != nil { - if err := _q.loadCampaigns(ctx, query, nodes, - func(n *Organization) { n.Edges.Campaigns = []*Campaign{} }, - func(n *Organization, e *Campaign) { n.Edges.Campaigns = append(n.Edges.Campaigns, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_integration_webhook_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withCampaignTargets; query != nil { - if err := _q.loadCampaignTargets(ctx, query, nodes, - func(n *Organization) { n.Edges.CampaignTargets = []*CampaignTarget{} }, - func(n *Organization, e *CampaignTarget) { n.Edges.CampaignTargets = append(n.Edges.CampaignTargets, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadInternalPolicyCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withEntityTypes; query != nil { - if err := _q.loadEntityTypes(ctx, query, nodes, - func(n *Organization) { n.Edges.EntityTypes = []*EntityType{} }, - func(n *Organization, e *EntityType) { n.Edges.EntityTypes = append(n.Edges.EntityTypes, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.InternalPolicyCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withContacts; query != nil { - if err := _q.loadContacts(ctx, query, nodes, - func(n *Organization) { n.Edges.Contacts = []*Contact{} }, - func(n *Organization, e *Contact) { n.Edges.Contacts = append(n.Edges.Contacts, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_internal_policy_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_internal_policy_creators" is nil for node %v`, n.ID) } - } - if query := _q.withNotes; query != nil { - if err := _q.loadNotes(ctx, query, nodes, - func(n *Organization) { n.Edges.Notes = []*Note{} }, - func(n *Organization, e *Note) { n.Edges.Notes = append(n.Edges.Notes, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_internal_policy_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withTasks; query != nil { - if err := _q.loadTasks(ctx, query, nodes, - func(n *Organization) { n.Edges.Tasks = []*Task{} }, - func(n *Organization, e *Task) { n.Edges.Tasks = append(n.Edges.Tasks, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadJobRunnerCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withPrograms; query != nil { - if err := _q.loadPrograms(ctx, query, nodes, - func(n *Organization) { n.Edges.Programs = []*Program{} }, - func(n *Organization, e *Program) { n.Edges.Programs = append(n.Edges.Programs, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withSystemDetails; query != nil { - if err := _q.loadSystemDetails(ctx, query, nodes, - func(n *Organization) { n.Edges.SystemDetails = []*SystemDetail{} }, - func(n *Organization, e *SystemDetail) { n.Edges.SystemDetails = append(n.Edges.SystemDetails, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_job_runner_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_job_runner_creators" is nil for node %v`, n.ID) } - } - if query := _q.withProcedures; query != nil { - if err := _q.loadProcedures(ctx, query, nodes, - func(n *Organization) { n.Edges.Procedures = []*Procedure{} }, - func(n *Organization, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_job_runner_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withInternalPolicies; query != nil { - if err := _q.loadInternalPolicies(ctx, query, nodes, - func(n *Organization) { n.Edges.InternalPolicies = []*InternalPolicy{} }, - func(n *Organization, e *InternalPolicy) { - n.Edges.InternalPolicies = append(n.Edges.InternalPolicies, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadJobRunnerRegistrationTokenCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withRisks; query != nil { - if err := _q.loadRisks(ctx, query, nodes, - func(n *Organization) { n.Edges.Risks = []*Risk{} }, - func(n *Organization, e *Risk) { n.Edges.Risks = append(n.Edges.Risks, e) }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerRegistrationTokenCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_job_runner_registration_token_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_job_runner_registration_token_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_job_runner_registration_token_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withControlObjectives; query != nil { - if err := _q.loadControlObjectives(ctx, query, nodes, - func(n *Organization) { n.Edges.ControlObjectives = []*ControlObjective{} }, - func(n *Organization, e *ControlObjective) { - n.Edges.ControlObjectives = append(n.Edges.ControlObjectives, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadJobRunnerTokenCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withNarratives; query != nil { - if err := _q.loadNarratives(ctx, query, nodes, - func(n *Organization) { n.Edges.Narratives = []*Narrative{} }, - func(n *Organization, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerTokenCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withControls; query != nil { - if err := _q.loadControls(ctx, query, nodes, - func(n *Organization) { n.Edges.Controls = []*Control{} }, - func(n *Organization, e *Control) { n.Edges.Controls = append(n.Edges.Controls, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_job_runner_token_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_job_runner_token_creators" is nil for node %v`, n.ID) } - } - if query := _q.withSubcontrols; query != nil { - if err := _q.loadSubcontrols(ctx, query, nodes, - func(n *Organization) { n.Edges.Subcontrols = []*Subcontrol{} }, - func(n *Organization, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_job_runner_token_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withControlImplementations; query != nil { - if err := _q.loadControlImplementations(ctx, query, nodes, - func(n *Organization) { n.Edges.ControlImplementations = []*ControlImplementation{} }, - func(n *Organization, e *ControlImplementation) { - n.Edges.ControlImplementations = append(n.Edges.ControlImplementations, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadJobTemplateCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withMappedControls; query != nil { - if err := _q.loadMappedControls(ctx, query, nodes, - func(n *Organization) { n.Edges.MappedControls = []*MappedControl{} }, - func(n *Organization, e *MappedControl) { n.Edges.MappedControls = append(n.Edges.MappedControls, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobTemplateCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withEvidence; query != nil { - if err := _q.loadEvidence(ctx, query, nodes, - func(n *Organization) { n.Edges.Evidence = []*Evidence{} }, - func(n *Organization, e *Evidence) { n.Edges.Evidence = append(n.Edges.Evidence, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_job_template_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_job_template_creators" is nil for node %v`, n.ID) } - } - if query := _q.withStandards; query != nil { - if err := _q.loadStandards(ctx, query, nodes, - func(n *Organization) { n.Edges.Standards = []*Standard{} }, - func(n *Organization, e *Standard) { n.Edges.Standards = append(n.Edges.Standards, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_job_template_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withActionPlans; query != nil { - if err := _q.loadActionPlans(ctx, query, nodes, - func(n *Organization) { n.Edges.ActionPlans = []*ActionPlan{} }, - func(n *Organization, e *ActionPlan) { n.Edges.ActionPlans = append(n.Edges.ActionPlans, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadMappedControlCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withCustomDomains; query != nil { - if err := _q.loadCustomDomains(ctx, query, nodes, - func(n *Organization) { n.Edges.CustomDomains = []*CustomDomain{} }, - func(n *Organization, e *CustomDomain) { n.Edges.CustomDomains = append(n.Edges.CustomDomains, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.MappedControlCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withJobRunners; query != nil { - if err := _q.loadJobRunners(ctx, query, nodes, - func(n *Organization) { n.Edges.JobRunners = []*JobRunner{} }, - func(n *Organization, e *JobRunner) { n.Edges.JobRunners = append(n.Edges.JobRunners, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_mapped_control_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_mapped_control_creators" is nil for node %v`, n.ID) } - } - if query := _q.withJobRunnerTokens; query != nil { - if err := _q.loadJobRunnerTokens(ctx, query, nodes, - func(n *Organization) { n.Edges.JobRunnerTokens = []*JobRunnerToken{} }, - func(n *Organization, e *JobRunnerToken) { n.Edges.JobRunnerTokens = append(n.Edges.JobRunnerTokens, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_mapped_control_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withJobRunnerRegistrationTokens; query != nil { - if err := _q.loadJobRunnerRegistrationTokens(ctx, query, nodes, - func(n *Organization) { n.Edges.JobRunnerRegistrationTokens = []*JobRunnerRegistrationToken{} }, - func(n *Organization, e *JobRunnerRegistrationToken) { - n.Edges.JobRunnerRegistrationTokens = append(n.Edges.JobRunnerRegistrationTokens, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadNarrativeCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withDNSVerifications; query != nil { - if err := _q.loadDNSVerifications(ctx, query, nodes, - func(n *Organization) { n.Edges.DNSVerifications = []*DNSVerification{} }, - func(n *Organization, e *DNSVerification) { - n.Edges.DNSVerifications = append(n.Edges.DNSVerifications, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NarrativeCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withJobTemplates; query != nil { - if err := _q.loadJobTemplates(ctx, query, nodes, - func(n *Organization) { n.Edges.JobTemplates = []*JobTemplate{} }, - func(n *Organization, e *JobTemplate) { n.Edges.JobTemplates = append(n.Edges.JobTemplates, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_narrative_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_narrative_creators" is nil for node %v`, n.ID) } - } - if query := _q.withScheduledJobs; query != nil { - if err := _q.loadScheduledJobs(ctx, query, nodes, - func(n *Organization) { n.Edges.ScheduledJobs = []*ScheduledJob{} }, - func(n *Organization, e *ScheduledJob) { n.Edges.ScheduledJobs = append(n.Edges.ScheduledJobs, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_narrative_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withJobResults; query != nil { - if err := _q.loadJobResults(ctx, query, nodes, - func(n *Organization) { n.Edges.JobResults = []*JobResult{} }, - func(n *Organization, e *JobResult) { n.Edges.JobResults = append(n.Edges.JobResults, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadNoteCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withScheduledJobRuns; query != nil { - if err := _q.loadScheduledJobRuns(ctx, query, nodes, - func(n *Organization) { n.Edges.ScheduledJobRuns = []*ScheduledJobRun{} }, - func(n *Organization, e *ScheduledJobRun) { - n.Edges.ScheduledJobRuns = append(n.Edges.ScheduledJobRuns, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NoteCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withTrustCenters; query != nil { - if err := _q.loadTrustCenters(ctx, query, nodes, - func(n *Organization) { n.Edges.TrustCenters = []*TrustCenter{} }, - func(n *Organization, e *TrustCenter) { n.Edges.TrustCenters = append(n.Edges.TrustCenters, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_note_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_note_creators" is nil for node %v`, n.ID) } - } - if query := _q.withAssets; query != nil { - if err := _q.loadAssets(ctx, query, nodes, - func(n *Organization) { n.Edges.Assets = []*Asset{} }, - func(n *Organization, e *Asset) { n.Edges.Assets = append(n.Edges.Assets, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_note_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withScans; query != nil { - if err := _q.loadScans(ctx, query, nodes, - func(n *Organization) { n.Edges.Scans = []*Scan{} }, - func(n *Organization, e *Scan) { n.Edges.Scans = append(n.Edges.Scans, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadNotificationTemplateCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withSLADefinitions; query != nil { - if err := _q.loadSLADefinitions(ctx, query, nodes, - func(n *Organization) { n.Edges.SLADefinitions = []*SLADefinition{} }, - func(n *Organization, e *SLADefinition) { n.Edges.SLADefinitions = append(n.Edges.SLADefinitions, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotificationTemplateCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withSubprocessors; query != nil { - if err := _q.loadSubprocessors(ctx, query, nodes, - func(n *Organization) { n.Edges.Subprocessors = []*Subprocessor{} }, - func(n *Organization, e *Subprocessor) { n.Edges.Subprocessors = append(n.Edges.Subprocessors, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_notification_template_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_notification_template_creators" is nil for node %v`, n.ID) } - } - if query := _q.withExports; query != nil { - if err := _q.loadExports(ctx, query, nodes, - func(n *Organization) { n.Edges.Exports = []*Export{} }, - func(n *Organization, e *Export) { n.Edges.Exports = append(n.Edges.Exports, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_notification_template_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withTrustCenterWatermarkConfigs; query != nil { - if err := _q.loadTrustCenterWatermarkConfigs(ctx, query, nodes, - func(n *Organization) { n.Edges.TrustCenterWatermarkConfigs = []*TrustCenterWatermarkConfig{} }, - func(n *Organization, e *TrustCenterWatermarkConfig) { - n.Edges.TrustCenterWatermarkConfigs = append(n.Edges.TrustCenterWatermarkConfigs, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadOrganizationCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withImpersonationEvents; query != nil { - if err := _q.loadImpersonationEvents(ctx, query, nodes, - func(n *Organization) { n.Edges.ImpersonationEvents = []*ImpersonationEvent{} }, - func(n *Organization, e *ImpersonationEvent) { - n.Edges.ImpersonationEvents = append(n.Edges.ImpersonationEvents, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrganizationCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withAssessments; query != nil { - if err := _q.loadAssessments(ctx, query, nodes, - func(n *Organization) { n.Edges.Assessments = []*Assessment{} }, - func(n *Organization, e *Assessment) { n.Edges.Assessments = append(n.Edges.Assessments, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_organization_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_organization_creators" is nil for node %v`, n.ID) } - } - if query := _q.withAssessmentResponses; query != nil { - if err := _q.loadAssessmentResponses(ctx, query, nodes, - func(n *Organization) { n.Edges.AssessmentResponses = []*AssessmentResponse{} }, - func(n *Organization, e *AssessmentResponse) { - n.Edges.AssessmentResponses = append(n.Edges.AssessmentResponses, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_organization_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withCustomTypeEnums; query != nil { - if err := _q.loadCustomTypeEnums(ctx, query, nodes, - func(n *Organization) { n.Edges.CustomTypeEnums = []*CustomTypeEnum{} }, - func(n *Organization, e *CustomTypeEnum) { n.Edges.CustomTypeEnums = append(n.Edges.CustomTypeEnums, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadPlatformCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withTagDefinitions; query != nil { - if err := _q.loadTagDefinitions(ctx, query, nodes, - func(n *Organization) { n.Edges.TagDefinitions = []*TagDefinition{} }, - func(n *Organization, e *TagDefinition) { n.Edges.TagDefinitions = append(n.Edges.TagDefinitions, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.PlatformCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withRemediations; query != nil { - if err := _q.loadRemediations(ctx, query, nodes, - func(n *Organization) { n.Edges.Remediations = []*Remediation{} }, - func(n *Organization, e *Remediation) { n.Edges.Remediations = append(n.Edges.Remediations, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_platform_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_platform_creators" is nil for node %v`, n.ID) } - } - if query := _q.withFindings; query != nil { - if err := _q.loadFindings(ctx, query, nodes, - func(n *Organization) { n.Edges.Findings = []*Finding{} }, - func(n *Organization, e *Finding) { n.Edges.Findings = append(n.Edges.Findings, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_platform_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withReviews; query != nil { - if err := _q.loadReviews(ctx, query, nodes, - func(n *Organization) { n.Edges.Reviews = []*Review{} }, - func(n *Organization, e *Review) { n.Edges.Reviews = append(n.Edges.Reviews, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadProcedureCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withVulnerabilities; query != nil { - if err := _q.loadVulnerabilities(ctx, query, nodes, - func(n *Organization) { n.Edges.Vulnerabilities = []*Vulnerability{} }, - func(n *Organization, e *Vulnerability) { n.Edges.Vulnerabilities = append(n.Edges.Vulnerabilities, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProcedureCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withNotifications; query != nil { - if err := _q.loadNotifications(ctx, query, nodes, - func(n *Organization) { n.Edges.Notifications = []*Notification{} }, - func(n *Organization, e *Notification) { n.Edges.Notifications = append(n.Edges.Notifications, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_procedure_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_procedure_creators" is nil for node %v`, n.ID) } - } - if query := _q.withWorkflowDefinitions; query != nil { - if err := _q.loadWorkflowDefinitions(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowDefinitions = []*WorkflowDefinition{} }, - func(n *Organization, e *WorkflowDefinition) { - n.Edges.WorkflowDefinitions = append(n.Edges.WorkflowDefinitions, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_procedure_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withWorkflowInstances; query != nil { - if err := _q.loadWorkflowInstances(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowInstances = []*WorkflowInstance{} }, - func(n *Organization, e *WorkflowInstance) { - n.Edges.WorkflowInstances = append(n.Edges.WorkflowInstances, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadProgramCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withWorkflowEvents; query != nil { - if err := _q.loadWorkflowEvents(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowEvents = []*WorkflowEvent{} }, - func(n *Organization, e *WorkflowEvent) { n.Edges.WorkflowEvents = append(n.Edges.WorkflowEvents, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProgramCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withWorkflowAssignments; query != nil { - if err := _q.loadWorkflowAssignments(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowAssignments = []*WorkflowAssignment{} }, - func(n *Organization, e *WorkflowAssignment) { - n.Edges.WorkflowAssignments = append(n.Edges.WorkflowAssignments, e) - }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_program_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_program_creators" is nil for node %v`, n.ID) } - } - if query := _q.withWorkflowAssignmentTargets; query != nil { - if err := _q.loadWorkflowAssignmentTargets(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowAssignmentTargets = []*WorkflowAssignmentTarget{} }, - func(n *Organization, e *WorkflowAssignmentTarget) { - n.Edges.WorkflowAssignmentTargets = append(n.Edges.WorkflowAssignmentTargets, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_program_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withWorkflowObjectRefs; query != nil { - if err := _q.loadWorkflowObjectRefs(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowObjectRefs = []*WorkflowObjectRef{} }, - func(n *Organization, e *WorkflowObjectRef) { - n.Edges.WorkflowObjectRefs = append(n.Edges.WorkflowObjectRefs, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadRemediationCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withWorkflowProposals; query != nil { - if err := _q.loadWorkflowProposals(ctx, query, nodes, - func(n *Organization) { n.Edges.WorkflowProposals = []*WorkflowProposal{} }, - func(n *Organization, e *WorkflowProposal) { - n.Edges.WorkflowProposals = append(n.Edges.WorkflowProposals, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RemediationCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withDirectoryAccounts; query != nil { - if err := _q.loadDirectoryAccounts(ctx, query, nodes, - func(n *Organization) { n.Edges.DirectoryAccounts = []*DirectoryAccount{} }, - func(n *Organization, e *DirectoryAccount) { - n.Edges.DirectoryAccounts = append(n.Edges.DirectoryAccounts, e) - }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_remediation_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_remediation_creators" is nil for node %v`, n.ID) } - } - if query := _q.withDirectoryGroups; query != nil { - if err := _q.loadDirectoryGroups(ctx, query, nodes, - func(n *Organization) { n.Edges.DirectoryGroups = []*DirectoryGroup{} }, - func(n *Organization, e *DirectoryGroup) { n.Edges.DirectoryGroups = append(n.Edges.DirectoryGroups, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_remediation_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withDirectoryMemberships; query != nil { - if err := _q.loadDirectoryMemberships(ctx, query, nodes, - func(n *Organization) { n.Edges.DirectoryMemberships = []*DirectoryMembership{} }, - func(n *Organization, e *DirectoryMembership) { - n.Edges.DirectoryMemberships = append(n.Edges.DirectoryMemberships, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadReviewCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withDirectorySyncRuns; query != nil { - if err := _q.loadDirectorySyncRuns(ctx, query, nodes, - func(n *Organization) { n.Edges.DirectorySyncRuns = []*DirectorySyncRun{} }, - func(n *Organization, e *DirectorySyncRun) { - n.Edges.DirectorySyncRuns = append(n.Edges.DirectorySyncRuns, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ReviewCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - if query := _q.withDiscussions; query != nil { - if err := _q.loadDiscussions(ctx, query, nodes, - func(n *Organization) { n.Edges.Discussions = []*Discussion{} }, - func(n *Organization, e *Discussion) { n.Edges.Discussions = append(n.Edges.Discussions, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_review_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_review_creators" is nil for node %v`, n.ID) } - } - if query := _q.withVendorScoringConfigs; query != nil { - if err := _q.loadVendorScoringConfigs(ctx, query, nodes, - func(n *Organization) { n.Edges.VendorScoringConfigs = []*VendorScoringConfig{} }, - func(n *Organization, e *VendorScoringConfig) { - n.Edges.VendorScoringConfigs = append(n.Edges.VendorScoringConfigs, e) - }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_review_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - if query := _q.withVendorRiskScores; query != nil { - if err := _q.loadVendorRiskScores(ctx, query, nodes, - func(n *Organization) { n.Edges.VendorRiskScores = []*VendorRiskScore{} }, - func(n *Organization, e *VendorRiskScore) { - n.Edges.VendorRiskScores = append(n.Edges.VendorRiskScores, e) - }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadRiskCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - if query := _q.withMembers; query != nil { - if err := _q.loadMembers(ctx, query, nodes, - func(n *Organization) { n.Edges.Members = []*OrgMembership{} }, - func(n *Organization, e *OrgMembership) { n.Edges.Members = append(n.Edges.Members, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RiskCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedControlCreators { - if err := _q.loadControlCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedControlCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedControlCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_risk_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_risk_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedControlImplementationCreators { - if err := _q.loadControlImplementationCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedControlImplementationCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedControlImplementationCreators(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_risk_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedControlObjectiveCreators { - if err := _q.loadControlObjectiveCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedControlObjectiveCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedControlObjectiveCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadScanCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedEvidenceCreators { - if err := _q.loadEvidenceCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedEvidenceCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedEvidenceCreators(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScanCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedAssetCreators { - if err := _q.loadAssetCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedAssetCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedAssetCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_scan_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_scan_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedFindingCreators { - if err := _q.loadFindingCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedFindingCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedFindingCreators(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_scan_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedVulnerabilityCreators { - if err := _q.loadVulnerabilityCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedVulnerabilityCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedVulnerabilityCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadScheduledJobCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedGroupCreators { - if err := _q.loadGroupCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedGroupCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedGroupCreators(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedInternalPolicyCreators { - if err := _q.loadInternalPolicyCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedInternalPolicyCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedInternalPolicyCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_scheduled_job_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_scheduled_job_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedMappedControlCreators { - if err := _q.loadMappedControlCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedMappedControlCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedMappedControlCreators(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_scheduled_job_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedNarrativeCreators { - if err := _q.loadNarrativeCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedNarrativeCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedNarrativeCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadScheduledJobRunCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedProcedureCreators { - if err := _q.loadProcedureCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedProcedureCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedProcedureCreators(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobRunCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedProgramCreators { - if err := _q.loadProgramCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedProgramCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedProgramCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_scheduled_job_run_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_scheduled_job_run_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_scheduled_job_run_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedRiskCreators { - if err := _q.loadRiskCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedRiskCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedRiskCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadStandardCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedIdentityHolderCreators { - if err := _q.loadIdentityHolderCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedIdentityHolderCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedIdentityHolderCreators(name, e) }); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.StandardCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_standard_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_standard_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_standard_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedScheduledJobCreators { - if err := _q.loadScheduledJobCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedScheduledJobCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedScheduledJobCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadSubcontrolCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedStandardCreators { - if err := _q.loadStandardCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedStandardCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedStandardCreators(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubcontrolCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedTemplateCreators { - if err := _q.loadTemplateCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedTemplateCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedTemplateCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_subcontrol_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_subcontrol_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedSubprocessorCreators { - if err := _q.loadSubprocessorCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedSubprocessorCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedSubprocessorCreators(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_subcontrol_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedTrustCenterDocCreators { - if err := _q.loadTrustCenterDocCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedTrustCenterDocCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedTrustCenterDocCreators(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadSubprocessorCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedTrustCenterSubprocessorCreators { - if err := _q.loadTrustCenterSubprocessorCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedTrustCenterSubprocessorCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedTrustCenterSubprocessorCreators(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubprocessorCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedActionPlanCreators { - if err := _q.loadActionPlanCreators(ctx, query, nodes, - func(n *Organization) { n.appendNamedActionPlanCreators(name) }, - func(n *Organization, e *Group) { n.appendNamedActionPlanCreators(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_subprocessor_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_subprocessor_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedChildren { - if err := _q.loadChildren(ctx, query, nodes, - func(n *Organization) { n.appendNamedChildren(name) }, - func(n *Organization, e *Organization) { n.appendNamedChildren(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_subprocessor_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedPersonalAccessTokens { - if err := _q.loadPersonalAccessTokens(ctx, query, nodes, - func(n *Organization) { n.appendNamedPersonalAccessTokens(name) }, - func(n *Organization, e *PersonalAccessToken) { n.appendNamedPersonalAccessTokens(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadSubscriberCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedAPITokens { - if err := _q.loadAPITokens(ctx, query, nodes, - func(n *Organization) { n.appendNamedAPITokens(name) }, - func(n *Organization, e *APIToken) { n.appendNamedAPITokens(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubscriberCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedEmailTemplates { - if err := _q.loadEmailTemplates(ctx, query, nodes, - func(n *Organization) { n.appendNamedEmailTemplates(name) }, - func(n *Organization, e *EmailTemplate) { n.appendNamedEmailTemplates(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_subscriber_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_subscriber_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedIntegrationWebhooks { - if err := _q.loadIntegrationWebhooks(ctx, query, nodes, - func(n *Organization) { n.appendNamedIntegrationWebhooks(name) }, - func(n *Organization, e *IntegrationWebhook) { n.appendNamedIntegrationWebhooks(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_subscriber_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedIntegrationRuns { - if err := _q.loadIntegrationRuns(ctx, query, nodes, - func(n *Organization) { n.appendNamedIntegrationRuns(name) }, - func(n *Organization, e *IntegrationRun) { n.appendNamedIntegrationRuns(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadSystemDetailCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedNotificationPreferences { - if err := _q.loadNotificationPreferences(ctx, query, nodes, - func(n *Organization) { n.appendNamedNotificationPreferences(name) }, - func(n *Organization, e *NotificationPreference) { n.appendNamedNotificationPreferences(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SystemDetailCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedNotificationTemplates { - if err := _q.loadNotificationTemplates(ctx, query, nodes, - func(n *Organization) { n.appendNamedNotificationTemplates(name) }, - func(n *Organization, e *NotificationTemplate) { n.appendNamedNotificationTemplates(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_system_detail_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_system_detail_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedUsers { - if err := _q.loadUsers(ctx, query, nodes, - func(n *Organization) { n.appendNamedUsers(name) }, - func(n *Organization, e *User) { n.appendNamedUsers(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_system_detail_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedFiles { - if err := _q.loadFiles(ctx, query, nodes, - func(n *Organization) { n.appendNamedFiles(name) }, - func(n *Organization, e *File) { n.appendNamedFiles(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTagDefinitionCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedEvents { - if err := _q.loadEvents(ctx, query, nodes, - func(n *Organization) { n.appendNamedEvents(name) }, - func(n *Organization, e *Event) { n.appendNamedEvents(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TagDefinitionCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedSecrets { - if err := _q.loadSecrets(ctx, query, nodes, - func(n *Organization) { n.appendNamedSecrets(name) }, - func(n *Organization, e *Hush) { n.appendNamedSecrets(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_tag_definition_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_tag_definition_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedGroups { - if err := _q.loadGroups(ctx, query, nodes, - func(n *Organization) { n.appendNamedGroups(name) }, - func(n *Organization, e *Group) { n.appendNamedGroups(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_tag_definition_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedTemplates { - if err := _q.loadTemplates(ctx, query, nodes, - func(n *Organization) { n.appendNamedTemplates(name) }, - func(n *Organization, e *Template) { n.appendNamedTemplates(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTaskCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedIntegrations { - if err := _q.loadIntegrations(ctx, query, nodes, - func(n *Organization) { n.appendNamedIntegrations(name) }, - func(n *Organization, e *Integration) { n.appendNamedIntegrations(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TaskCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedDocuments { - if err := _q.loadDocuments(ctx, query, nodes, - func(n *Organization) { n.appendNamedDocuments(name) }, - func(n *Organization, e *DocumentData) { n.appendNamedDocuments(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_task_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_task_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_task_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedOrgSubscriptions { - if err := _q.loadOrgSubscriptions(ctx, query, nodes, - func(n *Organization) { n.appendNamedOrgSubscriptions(name) }, - func(n *Organization, e *OrgSubscription) { n.appendNamedOrgSubscriptions(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTemplateCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedOrgProducts { - if err := _q.loadOrgProducts(ctx, query, nodes, - func(n *Organization) { n.appendNamedOrgProducts(name) }, - func(n *Organization, e *OrgProduct) { n.appendNamedOrgProducts(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TemplateCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedOrgPrices { - if err := _q.loadOrgPrices(ctx, query, nodes, - func(n *Organization) { n.appendNamedOrgPrices(name) }, - func(n *Organization, e *OrgPrice) { n.appendNamedOrgPrices(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_template_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_template_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedOrgModules { - if err := _q.loadOrgModules(ctx, query, nodes, - func(n *Organization) { n.appendNamedOrgModules(name) }, - func(n *Organization, e *OrgModule) { n.appendNamedOrgModules(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_template_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedInvites { - if err := _q.loadInvites(ctx, query, nodes, - func(n *Organization) { n.appendNamedInvites(name) }, - func(n *Organization, e *Invite) { n.appendNamedInvites(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedSubscribers { - if err := _q.loadSubscribers(ctx, query, nodes, - func(n *Organization) { n.appendNamedSubscribers(name) }, - func(n *Organization, e *Subscriber) { n.appendNamedSubscribers(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedEntities { - if err := _q.loadEntities(ctx, query, nodes, - func(n *Organization) { n.appendNamedEntities(name) }, - func(n *Organization, e *Entity) { n.appendNamedEntities(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedPlatforms { - if err := _q.loadPlatforms(ctx, query, nodes, - func(n *Organization) { n.appendNamedPlatforms(name) }, - func(n *Organization, e *Platform) { n.appendNamedPlatforms(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedIdentityHolders { - if err := _q.loadIdentityHolders(ctx, query, nodes, - func(n *Organization) { n.appendNamedIdentityHolders(name) }, - func(n *Organization, e *IdentityHolder) { n.appendNamedIdentityHolders(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterComplianceCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedCampaigns { - if err := _q.loadCampaigns(ctx, query, nodes, - func(n *Organization) { n.appendNamedCampaigns(name) }, - func(n *Organization, e *Campaign) { n.appendNamedCampaigns(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterComplianceCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedCampaignTargets { - if err := _q.loadCampaignTargets(ctx, query, nodes, - func(n *Organization) { n.appendNamedCampaignTargets(name) }, - func(n *Organization, e *CampaignTarget) { n.appendNamedCampaignTargets(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_compliance_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_compliance_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedEntityTypes { - if err := _q.loadEntityTypes(ctx, query, nodes, - func(n *Organization) { n.appendNamedEntityTypes(name) }, - func(n *Organization, e *EntityType) { n.appendNamedEntityTypes(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_compliance_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedContacts { - if err := _q.loadContacts(ctx, query, nodes, - func(n *Organization) { n.appendNamedContacts(name) }, - func(n *Organization, e *Contact) { n.appendNamedContacts(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterDocCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedNotes { - if err := _q.loadNotes(ctx, query, nodes, - func(n *Organization) { n.appendNamedNotes(name) }, - func(n *Organization, e *Note) { n.appendNamedNotes(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterDocCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedTasks { - if err := _q.loadTasks(ctx, query, nodes, - func(n *Organization) { n.appendNamedTasks(name) }, - func(n *Organization, e *Task) { n.appendNamedTasks(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_doc_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_doc_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedPrograms { - if err := _q.loadPrograms(ctx, query, nodes, - func(n *Organization) { n.appendNamedPrograms(name) }, - func(n *Organization, e *Program) { n.appendNamedPrograms(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_doc_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedSystemDetails { - if err := _q.loadSystemDetails(ctx, query, nodes, - func(n *Organization) { n.appendNamedSystemDetails(name) }, - func(n *Organization, e *SystemDetail) { n.appendNamedSystemDetails(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterEntityCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedProcedures { - if err := _q.loadProcedures(ctx, query, nodes, - func(n *Organization) { n.appendNamedProcedures(name) }, - func(n *Organization, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterEntityCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedInternalPolicies { - if err := _q.loadInternalPolicies(ctx, query, nodes, - func(n *Organization) { n.appendNamedInternalPolicies(name) }, - func(n *Organization, e *InternalPolicy) { n.appendNamedInternalPolicies(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_entity_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_entity_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedRisks { - if err := _q.loadRisks(ctx, query, nodes, - func(n *Organization) { n.appendNamedRisks(name) }, - func(n *Organization, e *Risk) { n.appendNamedRisks(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_entity_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedControlObjectives { - if err := _q.loadControlObjectives(ctx, query, nodes, - func(n *Organization) { n.appendNamedControlObjectives(name) }, - func(n *Organization, e *ControlObjective) { n.appendNamedControlObjectives(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterFaqCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedNarratives { - if err := _q.loadNarratives(ctx, query, nodes, - func(n *Organization) { n.appendNamedNarratives(name) }, - func(n *Organization, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterFaqCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedControls { - if err := _q.loadControls(ctx, query, nodes, - func(n *Organization) { n.appendNamedControls(name) }, - func(n *Organization, e *Control) { n.appendNamedControls(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_faq_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_faq_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_faq_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedSubcontrols { - if err := _q.loadSubcontrols(ctx, query, nodes, - func(n *Organization) { n.appendNamedSubcontrols(name) }, - func(n *Organization, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterNdaRequestCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedControlImplementations { - if err := _q.loadControlImplementations(ctx, query, nodes, - func(n *Organization) { n.appendNamedControlImplementations(name) }, - func(n *Organization, e *ControlImplementation) { n.appendNamedControlImplementations(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterNdaRequestCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedMappedControls { - if err := _q.loadMappedControls(ctx, query, nodes, - func(n *Organization) { n.appendNamedMappedControls(name) }, - func(n *Organization, e *MappedControl) { n.appendNamedMappedControls(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_nda_request_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_nda_request_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedEvidence { - if err := _q.loadEvidence(ctx, query, nodes, - func(n *Organization) { n.appendNamedEvidence(name) }, - func(n *Organization, e *Evidence) { n.appendNamedEvidence(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_nda_request_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedStandards { - if err := _q.loadStandards(ctx, query, nodes, - func(n *Organization) { n.appendNamedStandards(name) }, - func(n *Organization, e *Standard) { n.appendNamedStandards(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterSubprocessorCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedActionPlans { - if err := _q.loadActionPlans(ctx, query, nodes, - func(n *Organization) { n.appendNamedActionPlans(name) }, - func(n *Organization, e *ActionPlan) { n.appendNamedActionPlans(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterSubprocessorCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedCustomDomains { - if err := _q.loadCustomDomains(ctx, query, nodes, - func(n *Organization) { n.appendNamedCustomDomains(name) }, - func(n *Organization, e *CustomDomain) { n.appendNamedCustomDomains(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_subprocessor_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_subprocessor_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedJobRunners { - if err := _q.loadJobRunners(ctx, query, nodes, - func(n *Organization) { n.appendNamedJobRunners(name) }, - func(n *Organization, e *JobRunner) { n.appendNamedJobRunners(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_subprocessor_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedJobRunnerTokens { - if err := _q.loadJobRunnerTokens(ctx, query, nodes, - func(n *Organization) { n.appendNamedJobRunnerTokens(name) }, - func(n *Organization, e *JobRunnerToken) { n.appendNamedJobRunnerTokens(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadTrustCenterWatermarkConfigCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedJobRunnerRegistrationTokens { - if err := _q.loadJobRunnerRegistrationTokens(ctx, query, nodes, - func(n *Organization) { n.appendNamedJobRunnerRegistrationTokens(name) }, - func(n *Organization, e *JobRunnerRegistrationToken) { - n.appendNamedJobRunnerRegistrationTokens(name, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterWatermarkConfigCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedDNSVerifications { - if err := _q.loadDNSVerifications(ctx, query, nodes, - func(n *Organization) { n.appendNamedDNSVerifications(name) }, - func(n *Organization, e *DNSVerification) { n.appendNamedDNSVerifications(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_trust_center_watermark_config_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_trust_center_watermark_config_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedJobTemplates { - if err := _q.loadJobTemplates(ctx, query, nodes, - func(n *Organization) { n.appendNamedJobTemplates(name) }, - func(n *Organization, e *JobTemplate) { n.appendNamedJobTemplates(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_watermark_config_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedScheduledJobs { - if err := _q.loadScheduledJobs(ctx, query, nodes, - func(n *Organization) { n.appendNamedScheduledJobs(name) }, - func(n *Organization, e *ScheduledJob) { n.appendNamedScheduledJobs(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadUserCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedJobResults { - if err := _q.loadJobResults(ctx, query, nodes, - func(n *Organization) { n.appendNamedJobResults(name) }, - func(n *Organization, e *JobResult) { n.appendNamedJobResults(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.UserCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedScheduledJobRuns { - if err := _q.loadScheduledJobRuns(ctx, query, nodes, - func(n *Organization) { n.appendNamedScheduledJobRuns(name) }, - func(n *Organization, e *ScheduledJobRun) { n.appendNamedScheduledJobRuns(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_user_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_user_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedTrustCenters { - if err := _q.loadTrustCenters(ctx, query, nodes, - func(n *Organization) { n.appendNamedTrustCenters(name) }, - func(n *Organization, e *TrustCenter) { n.appendNamedTrustCenters(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_user_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedAssets { - if err := _q.loadAssets(ctx, query, nodes, - func(n *Organization) { n.appendNamedAssets(name) }, - func(n *Organization, e *Asset) { n.appendNamedAssets(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadUserSettingCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedScans { - if err := _q.loadScans(ctx, query, nodes, - func(n *Organization) { n.appendNamedScans(name) }, - func(n *Organization, e *Scan) { n.appendNamedScans(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.UserSettingCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedSLADefinitions { - if err := _q.loadSLADefinitions(ctx, query, nodes, - func(n *Organization) { n.appendNamedSLADefinitions(name) }, - func(n *Organization, e *SLADefinition) { n.appendNamedSLADefinitions(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_user_setting_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_user_setting_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedSubprocessors { - if err := _q.loadSubprocessors(ctx, query, nodes, - func(n *Organization) { n.appendNamedSubprocessors(name) }, - func(n *Organization, e *Subprocessor) { n.appendNamedSubprocessors(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_user_setting_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedExports { - if err := _q.loadExports(ctx, query, nodes, - func(n *Organization) { n.appendNamedExports(name) }, - func(n *Organization, e *Export) { n.appendNamedExports(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadVendorRiskScoreCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedTrustCenterWatermarkConfigs { - if err := _q.loadTrustCenterWatermarkConfigs(ctx, query, nodes, - func(n *Organization) { n.appendNamedTrustCenterWatermarkConfigs(name) }, - func(n *Organization, e *TrustCenterWatermarkConfig) { - n.appendNamedTrustCenterWatermarkConfigs(name, e) - }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VendorRiskScoreCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedImpersonationEvents { - if err := _q.loadImpersonationEvents(ctx, query, nodes, - func(n *Organization) { n.appendNamedImpersonationEvents(name) }, - func(n *Organization, e *ImpersonationEvent) { n.appendNamedImpersonationEvents(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_vendor_risk_score_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_vendor_risk_score_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_vendor_risk_score_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedAssessments { - if err := _q.loadAssessments(ctx, query, nodes, - func(n *Organization) { n.appendNamedAssessments(name) }, - func(n *Organization, e *Assessment) { n.appendNamedAssessments(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadVulnerabilityCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedAssessmentResponses { - if err := _q.loadAssessmentResponses(ctx, query, nodes, - func(n *Organization) { n.appendNamedAssessmentResponses(name) }, - func(n *Organization, e *AssessmentResponse) { n.appendNamedAssessmentResponses(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VulnerabilityCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedCustomTypeEnums { - if err := _q.loadCustomTypeEnums(ctx, query, nodes, - func(n *Organization) { n.appendNamedCustomTypeEnums(name) }, - func(n *Organization, e *CustomTypeEnum) { n.appendNamedCustomTypeEnums(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_vulnerability_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_vulnerability_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedTagDefinitions { - if err := _q.loadTagDefinitions(ctx, query, nodes, - func(n *Organization) { n.appendNamedTagDefinitions(name) }, - func(n *Organization, e *TagDefinition) { n.appendNamedTagDefinitions(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_vulnerability_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedRemediations { - if err := _q.loadRemediations(ctx, query, nodes, - func(n *Organization) { n.appendNamedRemediations(name) }, - func(n *Organization, e *Remediation) { n.appendNamedRemediations(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowAssignmentCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedFindings { - if err := _q.loadFindings(ctx, query, nodes, - func(n *Organization) { n.appendNamedFindings(name) }, - func(n *Organization, e *Finding) { n.appendNamedFindings(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedReviews { - if err := _q.loadReviews(ctx, query, nodes, - func(n *Organization) { n.appendNamedReviews(name) }, - func(n *Organization, e *Review) { n.appendNamedReviews(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_workflow_assignment_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_assignment_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedVulnerabilities { - if err := _q.loadVulnerabilities(ctx, query, nodes, - func(n *Organization) { n.appendNamedVulnerabilities(name) }, - func(n *Organization, e *Vulnerability) { n.appendNamedVulnerabilities(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_assignment_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedNotifications { - if err := _q.loadNotifications(ctx, query, nodes, - func(n *Organization) { n.appendNamedNotifications(name) }, - func(n *Organization, e *Notification) { n.appendNamedNotifications(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowAssignmentTargetCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedWorkflowDefinitions { - if err := _q.loadWorkflowDefinitions(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowDefinitions(name) }, - func(n *Organization, e *WorkflowDefinition) { n.appendNamedWorkflowDefinitions(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentTargetCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedWorkflowInstances { - if err := _q.loadWorkflowInstances(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowInstances(name) }, - func(n *Organization, e *WorkflowInstance) { n.appendNamedWorkflowInstances(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_workflow_assignment_target_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_assignment_target_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedWorkflowEvents { - if err := _q.loadWorkflowEvents(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowEvents(name) }, - func(n *Organization, e *WorkflowEvent) { n.appendNamedWorkflowEvents(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_assignment_target_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedWorkflowAssignments { - if err := _q.loadWorkflowAssignments(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowAssignments(name) }, - func(n *Organization, e *WorkflowAssignment) { n.appendNamedWorkflowAssignments(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowDefinitionCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedWorkflowAssignmentTargets { - if err := _q.loadWorkflowAssignmentTargets(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowAssignmentTargets(name) }, - func(n *Organization, e *WorkflowAssignmentTarget) { n.appendNamedWorkflowAssignmentTargets(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowDefinitionCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedWorkflowObjectRefs { - if err := _q.loadWorkflowObjectRefs(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowObjectRefs(name) }, - func(n *Organization, e *WorkflowObjectRef) { n.appendNamedWorkflowObjectRefs(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_workflow_definition_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_definition_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedWorkflowProposals { - if err := _q.loadWorkflowProposals(ctx, query, nodes, - func(n *Organization) { n.appendNamedWorkflowProposals(name) }, - func(n *Organization, e *WorkflowProposal) { n.appendNamedWorkflowProposals(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_definition_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedDirectoryAccounts { - if err := _q.loadDirectoryAccounts(ctx, query, nodes, - func(n *Organization) { n.appendNamedDirectoryAccounts(name) }, - func(n *Organization, e *DirectoryAccount) { n.appendNamedDirectoryAccounts(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowEventCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedDirectoryGroups { - if err := _q.loadDirectoryGroups(ctx, query, nodes, - func(n *Organization) { n.appendNamedDirectoryGroups(name) }, - func(n *Organization, e *DirectoryGroup) { n.appendNamedDirectoryGroups(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowEventCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedDirectoryMemberships { - if err := _q.loadDirectoryMemberships(ctx, query, nodes, - func(n *Organization) { n.appendNamedDirectoryMemberships(name) }, - func(n *Organization, e *DirectoryMembership) { n.appendNamedDirectoryMemberships(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_workflow_event_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_event_creators" is nil for node %v`, n.ID) } - } - for name, query := range _q.withNamedDirectorySyncRuns { - if err := _q.loadDirectorySyncRuns(ctx, query, nodes, - func(n *Organization) { n.appendNamedDirectorySyncRuns(name) }, - func(n *Organization, e *DirectorySyncRun) { n.appendNamedDirectorySyncRuns(name, e) }); err != nil { - return nil, err + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_event_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedDiscussions { - if err := _q.loadDiscussions(ctx, query, nodes, - func(n *Organization) { n.appendNamedDiscussions(name) }, - func(n *Organization, e *Discussion) { n.appendNamedDiscussions(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowInstanceCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for name, query := range _q.withNamedVendorScoringConfigs { - if err := _q.loadVendorScoringConfigs(ctx, query, nodes, - func(n *Organization) { n.appendNamedVendorScoringConfigs(name) }, - func(n *Organization, e *VendorScoringConfig) { n.appendNamedVendorScoringConfigs(name, e) }); err != nil { - return nil, err - } + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowInstanceCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err } - for name, query := range _q.withNamedVendorRiskScores { - if err := _q.loadVendorRiskScores(ctx, query, nodes, - func(n *Organization) { n.appendNamedVendorRiskScores(name) }, - func(n *Organization, e *VendorRiskScore) { n.appendNamedVendorRiskScores(name, e) }); err != nil { - return nil, err + for _, n := range neighbors { + fk := n.organization_workflow_instance_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_instance_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_instance_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - for name, query := range _q.withNamedMembers { - if err := _q.loadMembers(ctx, query, nodes, - func(n *Organization) { n.appendNamedMembers(name) }, - func(n *Organization, e *OrgMembership) { n.appendNamedMembers(name, e) }); err != nil { - return nil, err + return nil +} +func (_q *OrganizationQuery) loadWorkflowObjectRefCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } } - for i := range _q.loadTotal { - if err := _q.loadTotal[i](ctx, nodes); err != nil { - return nil, err + query.withFKs = true + query.Where(predicate.Group(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowObjectRefCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_workflow_object_ref_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_workflow_object_ref_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_object_ref_creators" returned %v for node %v`, *fk, n.ID) } + assign(node, n) } - return nodes, nil + return nil } - -func (_q *OrganizationQuery) loadControlCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadWorkflowProposalCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6521,26 +11732,26 @@ func (_q *OrganizationQuery) loadControlCreators(ctx context.Context, query *Gro } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.WorkflowProposalCreatorsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_control_creators + fk := n.organization_workflow_proposal_creators if fk == nil { - return fmt.Errorf(`foreign-key "organization_control_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_workflow_proposal_creators" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_control_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflow_proposal_creators" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadControlImplementationCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadCampaignsManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6552,26 +11763,26 @@ func (_q *OrganizationQuery) loadControlImplementationCreators(ctx context.Conte } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlImplementationCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.CampaignsManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_control_implementation_creators + fk := n.organization_campaigns_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_control_implementation_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_campaigns_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_control_implementation_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_campaigns_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadControlObjectiveCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadComplianceManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6583,26 +11794,26 @@ func (_q *OrganizationQuery) loadControlObjectiveCreators(ctx context.Context, q } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlObjectiveCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.ComplianceManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_control_objective_creators + fk := n.organization_compliance_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_control_objective_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_compliance_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_control_objective_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_compliance_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadEvidenceCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadGroupManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6614,26 +11825,26 @@ func (_q *OrganizationQuery) loadEvidenceCreators(ctx context.Context, query *Gr } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EvidenceCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.GroupManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_evidence_creators + fk := n.organization_group_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_evidence_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_group_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_evidence_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_group_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadAssetCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadPoliciesManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6645,26 +11856,26 @@ func (_q *OrganizationQuery) loadAssetCreators(ctx context.Context, query *Group } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssetCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.PoliciesManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_asset_creators + fk := n.organization_policies_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_asset_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_policies_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_asset_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_policies_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadFindingCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadRegistryManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6676,26 +11887,26 @@ func (_q *OrganizationQuery) loadFindingCreators(ctx context.Context, query *Gro } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.FindingCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.RegistryManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_finding_creators + fk := n.organization_registry_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_finding_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_registry_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_finding_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_registry_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadVulnerabilityCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadRiskManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6707,26 +11918,26 @@ func (_q *OrganizationQuery) loadVulnerabilityCreators(ctx context.Context, quer } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.VulnerabilityCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.RiskManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_vulnerability_creators + fk := n.organization_risk_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_vulnerability_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_risk_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_vulnerability_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_risk_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadGroupCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadTrustCenterManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6738,26 +11949,26 @@ func (_q *OrganizationQuery) loadGroupCreators(ctx context.Context, query *Group } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.TrustCenterManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_group_creators + fk := n.organization_trust_center_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_group_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_trust_center_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_group_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadInternalPolicyCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadWorkflowsManager(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6769,26 +11980,55 @@ func (_q *OrganizationQuery) loadInternalPolicyCreators(ctx context.Context, que } query.withFKs = true query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.InternalPolicyCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.WorkflowsManagerColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_internal_policy_creators + fk := n.organization_workflows_manager if fk == nil { - return fmt.Errorf(`foreign-key "organization_internal_policy_creators" is nil for node %v`, n.ID) + return fmt.Errorf(`foreign-key "organization_workflows_manager" is nil for node %v`, n.ID) } node, ok := nodeids[*fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_internal_policy_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_workflows_manager" returned %v for node %v`, *fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadMappedControlCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadParent(ctx context.Context, query *OrganizationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Organization)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*Organization) + for i := range nodes { + fk := nodes[i].ParentOrganizationID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(organization.IDIn(ids...)) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + nodes, ok := nodeids[n.ID] + if !ok { + return fmt.Errorf(`unexpected foreign-key "parent_organization_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *OrganizationQuery) loadChildren(ctx context.Context, query *OrganizationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Organization)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6798,28 +12038,176 @@ func (_q *OrganizationQuery) loadMappedControlCreators(ctx context.Context, quer init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.MappedControlCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(organization.FieldParentOrganizationID) + } + query.Where(predicate.Organization(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ChildrenColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_mapped_control_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_mapped_control_creators" is nil for node %v`, n.ID) + fk := n.ParentOrganizationID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "parent_organization_id" returned %v for node %v`, fk, n.ID) } - node, ok := nodeids[*fk] + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadSetting(ctx context.Context, query *OrganizationSettingQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrganizationSetting)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(organizationsetting.FieldOrganizationID) + } + query.Where(predicate.OrganizationSetting(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SettingColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.OrganizationID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_mapped_control_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadPersonalAccessTokens(ctx context.Context, query *PersonalAccessTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *PersonalAccessToken)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Organization) + nids := make(map[string]map[*Organization]struct{}) + for i, node := range nodes { + edgeIDs[i] = node.ID + byID[node.ID] = node + if init != nil { + init(node) + } + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(organization.PersonalAccessTokensTable) + joinT.Schema(_q.schemaConfig.OrganizationPersonalAccessTokens) + s.Join(joinT).On(s.C(personalaccesstoken.FieldID), joinT.C(organization.PersonalAccessTokensPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(organization.PersonalAccessTokensPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(organization.PersonalAccessTokensPrimaryKey[0])) + s.AppendSelect(columns...) + s.SetDistinct(false) + }) + if err := query.prepareQuery(ctx); err != nil { + return err + } + qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { + return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { + assign := spec.Assign + values := spec.ScanValues + spec.ScanValues = func(columns []string) ([]any, error) { + values, err := values(columns[1:]) + if err != nil { + return nil, err + } + return append([]any{new(sql.NullString)}, values...), nil + } + spec.Assign = func(columns []string, values []any) error { + outValue := values[0].(*sql.NullString).String + inValue := values[1].(*sql.NullString).String + if nids[inValue] == nil { + nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*PersonalAccessToken](ctx, query, qr, query.inters) + if err != nil { + return err + } + for _, n := range neighbors { + nodes, ok := nids[n.ID] + if !ok { + return fmt.Errorf(`unexpected "personal_access_tokens" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *OrganizationQuery) loadAPITokens(ctx context.Context, query *APITokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *APIToken)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(apitoken.FieldOwnerID) + } + query.Where(predicate.APIToken(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.APITokensColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.OwnerID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadEmailTemplates(ctx context.Context, query *EmailTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *EmailTemplate)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(emailtemplate.FieldOwnerID) + } + query.Where(predicate.EmailTemplate(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EmailTemplatesColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.OwnerID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadNarrativeCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadIntegrationWebhooks(ctx context.Context, query *IntegrationWebhookQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IntegrationWebhook)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6829,28 +12217,27 @@ func (_q *OrganizationQuery) loadNarrativeCreators(ctx context.Context, query *G init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NarrativeCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(integrationwebhook.FieldOwnerID) + } + query.Where(predicate.IntegrationWebhook(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationWebhooksColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_narrative_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_narrative_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_narrative_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadProcedureCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadIntegrationRuns(ctx context.Context, query *IntegrationRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IntegrationRun)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6860,28 +12247,27 @@ func (_q *OrganizationQuery) loadProcedureCreators(ctx context.Context, query *G init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProcedureCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(integrationrun.FieldOwnerID) + } + query.Where(predicate.IntegrationRun(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationRunsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_procedure_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_procedure_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_procedure_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadProgramCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadNotificationPreferences(ctx context.Context, query *NotificationPreferenceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *NotificationPreference)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6891,28 +12277,27 @@ func (_q *OrganizationQuery) loadProgramCreators(ctx context.Context, query *Gro init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProgramCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(notificationpreference.FieldOwnerID) + } + query.Where(predicate.NotificationPreference(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotificationPreferencesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_program_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_program_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_program_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadRiskCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadNotificationTemplates(ctx context.Context, query *NotificationTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *NotificationTemplate)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -6922,90 +12307,213 @@ func (_q *OrganizationQuery) loadRiskCreators(ctx context.Context, query *GroupQ init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RiskCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(notificationtemplate.FieldOwnerID) + } + query.Where(predicate.NotificationTemplate(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotificationTemplatesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_risk_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_risk_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_risk_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadIdentityHolderCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] +func (_q *OrganizationQuery) loadUsers(ctx context.Context, query *UserQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *User)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Organization) + nids := make(map[string]map[*Organization]struct{}) + for i, node := range nodes { + edgeIDs[i] = node.ID + byID[node.ID] = node if init != nil { - init(nodes[i]) + init(node) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IdentityHolderCreatorsColumn), fks...)) - })) - neighbors, err := query.All(ctx) + query.Where(func(s *sql.Selector) { + joinT := sql.Table(organization.UsersTable) + joinT.Schema(_q.schemaConfig.OrgMembership) + s.Join(joinT).On(s.C(user.FieldID), joinT.C(organization.UsersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(organization.UsersPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(organization.UsersPrimaryKey[1])) + s.AppendSelect(columns...) + s.SetDistinct(false) + }) + if err := query.prepareQuery(ctx); err != nil { + return err + } + qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { + return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { + assign := spec.Assign + values := spec.ScanValues + spec.ScanValues = func(columns []string) ([]any, error) { + values, err := values(columns[1:]) + if err != nil { + return nil, err + } + return append([]any{new(sql.NullString)}, values...), nil + } + spec.Assign = func(columns []string, values []any) error { + outValue := values[0].(*sql.NullString).String + inValue := values[1].(*sql.NullString).String + if nids[inValue] == nil { + nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*User](ctx, query, qr, query.inters) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_identity_holder_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_identity_holder_creators" is nil for node %v`, n.ID) + nodes, ok := nids[n.ID] + if !ok { + return fmt.Errorf(`unexpected "users" node returned %v`, n.ID) } - node, ok := nodeids[*fk] + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *OrganizationQuery) loadFiles(ctx context.Context, query *FileQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *File)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Organization) + nids := make(map[string]map[*Organization]struct{}) + for i, node := range nodes { + edgeIDs[i] = node.ID + byID[node.ID] = node + if init != nil { + init(node) + } + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(organization.FilesTable) + joinT.Schema(_q.schemaConfig.OrganizationFiles) + s.Join(joinT).On(s.C(file.FieldID), joinT.C(organization.FilesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(organization.FilesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(organization.FilesPrimaryKey[0])) + s.AppendSelect(columns...) + s.SetDistinct(false) + }) + if err := query.prepareQuery(ctx); err != nil { + return err + } + qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { + return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { + assign := spec.Assign + values := spec.ScanValues + spec.ScanValues = func(columns []string) ([]any, error) { + values, err := values(columns[1:]) + if err != nil { + return nil, err + } + return append([]any{new(sql.NullString)}, values...), nil + } + spec.Assign = func(columns []string, values []any) error { + outValue := values[0].(*sql.NullString).String + inValue := values[1].(*sql.NullString).String + if nids[inValue] == nil { + nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*File](ctx, query, qr, query.inters) + if err != nil { + return err + } + for _, n := range neighbors { + nodes, ok := nids[n.ID] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_identity_holder_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected "files" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) } - assign(node, n) } return nil } -func (_q *OrganizationQuery) loadScheduledJobCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] +func (_q *OrganizationQuery) loadEvents(ctx context.Context, query *EventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Event)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Organization) + nids := make(map[string]map[*Organization]struct{}) + for i, node := range nodes { + edgeIDs[i] = node.ID + byID[node.ID] = node if init != nil { - init(nodes[i]) + init(node) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScheduledJobCreatorsColumn), fks...)) - })) - neighbors, err := query.All(ctx) + query.Where(func(s *sql.Selector) { + joinT := sql.Table(organization.EventsTable) + joinT.Schema(_q.schemaConfig.OrganizationEvents) + s.Join(joinT).On(s.C(event.FieldID), joinT.C(organization.EventsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(organization.EventsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(organization.EventsPrimaryKey[0])) + s.AppendSelect(columns...) + s.SetDistinct(false) + }) + if err := query.prepareQuery(ctx); err != nil { + return err + } + qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { + return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { + assign := spec.Assign + values := spec.ScanValues + spec.ScanValues = func(columns []string) ([]any, error) { + values, err := values(columns[1:]) + if err != nil { + return nil, err + } + return append([]any{new(sql.NullString)}, values...), nil + } + spec.Assign = func(columns []string, values []any) error { + outValue := values[0].(*sql.NullString).String + inValue := values[1].(*sql.NullString).String + if nids[inValue] == nil { + nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Event](ctx, query, qr, query.inters) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_scheduled_job_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_scheduled_job_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + nodes, ok := nids[n.ID] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_scheduled_job_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected "events" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) } - assign(node, n) } return nil } -func (_q *OrganizationQuery) loadStandardCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadSecrets(ctx context.Context, query *HushQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Hush)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7015,59 +12523,59 @@ func (_q *OrganizationQuery) loadStandardCreators(ctx context.Context, query *Gr init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.StandardCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(hush.FieldOwnerID) + } + query.Where(predicate.Hush(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SecretsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_standard_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_standard_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_standard_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadTemplateCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) +func (_q *OrganizationQuery) loadAvatarFile(ctx context.Context, query *FileQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *File)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*Organization) for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) + if nodes[i].AvatarLocalFileID == nil { + continue + } + fk := *nodes[i].AvatarLocalFileID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) } + nodeids[fk] = append(nodeids[fk], nodes[i]) } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TemplateCreatorsColumn), fks...)) - })) + if len(ids) == 0 { + return nil + } + query.Where(file.IDIn(ids...)) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_template_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_template_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + nodes, ok := nodeids[n.ID] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_template_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected foreign-key "avatar_local_file_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) } - assign(node, n) } return nil } -func (_q *OrganizationQuery) loadSubprocessorCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadGroups(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7078,27 +12586,27 @@ func (_q *OrganizationQuery) loadSubprocessorCreators(ctx context.Context, query } } query.withFKs = true + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(group.FieldOwnerID) + } query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubprocessorCreatorsColumn), fks...)) + s.Where(sql.InValues(s.C(organization.GroupsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_subprocessor_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_subprocessor_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_subprocessor_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadTrustCenterDocCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadTemplates(ctx context.Context, query *TemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Template)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7108,28 +12616,27 @@ func (_q *OrganizationQuery) loadTrustCenterDocCreators(ctx context.Context, que init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterDocCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(template.FieldOwnerID) + } + query.Where(predicate.Template(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TemplatesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_trust_center_doc_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_trust_center_doc_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_doc_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadTrustCenterSubprocessorCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadIntegrations(ctx context.Context, query *IntegrationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Integration)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7140,27 +12647,27 @@ func (_q *OrganizationQuery) loadTrustCenterSubprocessorCreators(ctx context.Con } } query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterSubprocessorCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(integration.FieldOwnerID) + } + query.Where(predicate.Integration(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IntegrationsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_trust_center_subprocessor_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_trust_center_subprocessor_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_trust_center_subprocessor_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadActionPlanCreators(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadDocuments(ctx context.Context, query *DocumentDataQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DocumentData)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7170,57 +12677,27 @@ func (_q *OrganizationQuery) loadActionPlanCreators(ctx context.Context, query * init(nodes[i]) } } - query.withFKs = true - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ActionPlanCreatorsColumn), fks...)) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(documentdata.FieldOwnerID) + } + query.Where(predicate.DocumentData(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DocumentsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.organization_action_plan_creators - if fk == nil { - return fmt.Errorf(`foreign-key "organization_action_plan_creators" is nil for node %v`, n.ID) - } - node, ok := nodeids[*fk] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_action_plan_creators" returned %v for node %v`, *fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadParent(ctx context.Context, query *OrganizationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Organization)) error { - ids := make([]string, 0, len(nodes)) - nodeids := make(map[string][]*Organization) - for i := range nodes { - fk := nodes[i].ParentOrganizationID - if _, ok := nodeids[fk]; !ok { - ids = append(ids, fk) - } - nodeids[fk] = append(nodeids[fk], nodes[i]) - } - if len(ids) == 0 { - return nil - } - query.Where(organization.IDIn(ids...)) - neighbors, err := query.All(ctx) - if err != nil { - return err - } - for _, n := range neighbors { - nodes, ok := nodeids[n.ID] - if !ok { - return fmt.Errorf(`unexpected foreign-key "parent_organization_id" returned %v`, n.ID) - } - for i := range nodes { - assign(nodes[i], n) - } - } - return nil -} -func (_q *OrganizationQuery) loadChildren(ctx context.Context, query *OrganizationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Organization)) error { +func (_q *OrganizationQuery) loadOrgSubscriptions(ctx context.Context, query *OrgSubscriptionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgSubscription)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7231,115 +12708,87 @@ func (_q *OrganizationQuery) loadChildren(ctx context.Context, query *Organizati } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(organization.FieldParentOrganizationID) + query.ctx.AppendFieldOnce(orgsubscription.FieldOwnerID) } - query.Where(predicate.Organization(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ChildrenColumn), fks...)) + query.Where(predicate.OrgSubscription(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrgSubscriptionsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.ParentOrganizationID + fk := n.OwnerID node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "parent_organization_id" returned %v for node %v`, fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadSetting(ctx context.Context, query *OrganizationSettingQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrganizationSetting)) error { +func (_q *OrganizationQuery) loadOrgProducts(ctx context.Context, query *OrgProductQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgProduct)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { fks = append(fks, nodes[i].ID) nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) + } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(organizationsetting.FieldOrganizationID) + query.ctx.AppendFieldOnce(orgproduct.FieldOwnerID) } - query.Where(predicate.OrganizationSetting(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SettingColumn), fks...)) + query.Where(predicate.OrgProduct(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrgProductsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.OrganizationID + fk := n.OwnerID node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadPersonalAccessTokens(ctx context.Context, query *PersonalAccessTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *PersonalAccessToken)) error { - edgeIDs := make([]driver.Value, len(nodes)) - byID := make(map[string]*Organization) - nids := make(map[string]map[*Organization]struct{}) - for i, node := range nodes { - edgeIDs[i] = node.ID - byID[node.ID] = node +func (_q *OrganizationQuery) loadOrgPrices(ctx context.Context, query *OrgPriceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgPrice)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] if init != nil { - init(node) - } - } - query.Where(func(s *sql.Selector) { - joinT := sql.Table(organization.PersonalAccessTokensTable) - joinT.Schema(_q.schemaConfig.OrganizationPersonalAccessTokens) - s.Join(joinT).On(s.C(personalaccesstoken.FieldID), joinT.C(organization.PersonalAccessTokensPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(organization.PersonalAccessTokensPrimaryKey[0]), edgeIDs...)) - columns := s.SelectedColumns() - s.Select(joinT.C(organization.PersonalAccessTokensPrimaryKey[0])) - s.AppendSelect(columns...) - s.SetDistinct(false) - }) - if err := query.prepareQuery(ctx); err != nil { - return err - } - qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { - return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { - assign := spec.Assign - values := spec.ScanValues - spec.ScanValues = func(columns []string) ([]any, error) { - values, err := values(columns[1:]) - if err != nil { - return nil, err - } - return append([]any{new(sql.NullString)}, values...), nil - } - spec.Assign = func(columns []string, values []any) error { - outValue := values[0].(*sql.NullString).String - inValue := values[1].(*sql.NullString).String - if nids[inValue] == nil { - nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} - return assign(columns[1:], values[1:]) - } - nids[inValue][byID[outValue]] = struct{}{} - return nil - } - }) - }) - neighbors, err := withInterceptors[[]*PersonalAccessToken](ctx, query, qr, query.inters) + init(nodes[i]) + } + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(orgprice.FieldOwnerID) + } + query.Where(predicate.OrgPrice(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrgPricesColumn), fks...)) + })) + neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - nodes, ok := nids[n.ID] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected "personal_access_tokens" node returned %v`, n.ID) - } - for kn := range nodes { - assign(kn, n) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } + assign(node, n) } return nil } -func (_q *OrganizationQuery) loadAPITokens(ctx context.Context, query *APITokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *APIToken)) error { +func (_q *OrganizationQuery) loadOrgModules(ctx context.Context, query *OrgModuleQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgModule)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7349,11 +12798,12 @@ func (_q *OrganizationQuery) loadAPITokens(ctx context.Context, query *APITokenQ init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(apitoken.FieldOwnerID) + query.ctx.AppendFieldOnce(orgmodule.FieldOwnerID) } - query.Where(predicate.APIToken(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.APITokensColumn), fks...)) + query.Where(predicate.OrgModule(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.OrgModulesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7369,7 +12819,7 @@ func (_q *OrganizationQuery) loadAPITokens(ctx context.Context, query *APITokenQ } return nil } -func (_q *OrganizationQuery) loadEmailTemplates(ctx context.Context, query *EmailTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *EmailTemplate)) error { +func (_q *OrganizationQuery) loadInvites(ctx context.Context, query *InviteQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Invite)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7380,10 +12830,10 @@ func (_q *OrganizationQuery) loadEmailTemplates(ctx context.Context, query *Emai } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(emailtemplate.FieldOwnerID) + query.ctx.AppendFieldOnce(invite.FieldOwnerID) } - query.Where(predicate.EmailTemplate(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EmailTemplatesColumn), fks...)) + query.Where(predicate.Invite(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.InvitesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7399,7 +12849,7 @@ func (_q *OrganizationQuery) loadEmailTemplates(ctx context.Context, query *Emai } return nil } -func (_q *OrganizationQuery) loadIntegrationWebhooks(ctx context.Context, query *IntegrationWebhookQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IntegrationWebhook)) error { +func (_q *OrganizationQuery) loadSubscribers(ctx context.Context, query *SubscriberQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subscriber)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7410,10 +12860,10 @@ func (_q *OrganizationQuery) loadIntegrationWebhooks(ctx context.Context, query } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(integrationwebhook.FieldOwnerID) + query.ctx.AppendFieldOnce(subscriber.FieldOwnerID) } - query.Where(predicate.IntegrationWebhook(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IntegrationWebhooksColumn), fks...)) + query.Where(predicate.Subscriber(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubscribersColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7429,7 +12879,7 @@ func (_q *OrganizationQuery) loadIntegrationWebhooks(ctx context.Context, query } return nil } -func (_q *OrganizationQuery) loadIntegrationRuns(ctx context.Context, query *IntegrationRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IntegrationRun)) error { +func (_q *OrganizationQuery) loadEntities(ctx context.Context, query *EntityQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Entity)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7439,11 +12889,12 @@ func (_q *OrganizationQuery) loadIntegrationRuns(ctx context.Context, query *Int init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(integrationrun.FieldOwnerID) + query.ctx.AppendFieldOnce(entity.FieldOwnerID) } - query.Where(predicate.IntegrationRun(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IntegrationRunsColumn), fks...)) + query.Where(predicate.Entity(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EntitiesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7459,7 +12910,7 @@ func (_q *OrganizationQuery) loadIntegrationRuns(ctx context.Context, query *Int } return nil } -func (_q *OrganizationQuery) loadNotificationPreferences(ctx context.Context, query *NotificationPreferenceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *NotificationPreference)) error { +func (_q *OrganizationQuery) loadPlatforms(ctx context.Context, query *PlatformQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Platform)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7469,11 +12920,12 @@ func (_q *OrganizationQuery) loadNotificationPreferences(ctx context.Context, qu init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(notificationpreference.FieldOwnerID) + query.ctx.AppendFieldOnce(platform.FieldOwnerID) } - query.Where(predicate.NotificationPreference(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NotificationPreferencesColumn), fks...)) + query.Where(predicate.Platform(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.PlatformsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7489,7 +12941,7 @@ func (_q *OrganizationQuery) loadNotificationPreferences(ctx context.Context, qu } return nil } -func (_q *OrganizationQuery) loadNotificationTemplates(ctx context.Context, query *NotificationTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *NotificationTemplate)) error { +func (_q *OrganizationQuery) loadIdentityHolders(ctx context.Context, query *IdentityHolderQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IdentityHolder)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7500,10 +12952,10 @@ func (_q *OrganizationQuery) loadNotificationTemplates(ctx context.Context, quer } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(notificationtemplate.FieldOwnerID) + query.ctx.AppendFieldOnce(identityholder.FieldOwnerID) } - query.Where(predicate.NotificationTemplate(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NotificationTemplatesColumn), fks...)) + query.Where(predicate.IdentityHolder(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.IdentityHoldersColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7519,193 +12971,97 @@ func (_q *OrganizationQuery) loadNotificationTemplates(ctx context.Context, quer } return nil } -func (_q *OrganizationQuery) loadUsers(ctx context.Context, query *UserQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *User)) error { - edgeIDs := make([]driver.Value, len(nodes)) - byID := make(map[string]*Organization) - nids := make(map[string]map[*Organization]struct{}) - for i, node := range nodes { - edgeIDs[i] = node.ID - byID[node.ID] = node +func (_q *OrganizationQuery) loadCampaigns(ctx context.Context, query *CampaignQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Campaign)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] if init != nil { - init(node) + init(nodes[i]) } } - query.Where(func(s *sql.Selector) { - joinT := sql.Table(organization.UsersTable) - joinT.Schema(_q.schemaConfig.OrgMembership) - s.Join(joinT).On(s.C(user.FieldID), joinT.C(organization.UsersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(organization.UsersPrimaryKey[1]), edgeIDs...)) - columns := s.SelectedColumns() - s.Select(joinT.C(organization.UsersPrimaryKey[1])) - s.AppendSelect(columns...) - s.SetDistinct(false) - }) - if err := query.prepareQuery(ctx); err != nil { - return err + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(campaign.FieldOwnerID) } - qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { - return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { - assign := spec.Assign - values := spec.ScanValues - spec.ScanValues = func(columns []string) ([]any, error) { - values, err := values(columns[1:]) - if err != nil { - return nil, err - } - return append([]any{new(sql.NullString)}, values...), nil - } - spec.Assign = func(columns []string, values []any) error { - outValue := values[0].(*sql.NullString).String - inValue := values[1].(*sql.NullString).String - if nids[inValue] == nil { - nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} - return assign(columns[1:], values[1:]) - } - nids[inValue][byID[outValue]] = struct{}{} - return nil - } - }) - }) - neighbors, err := withInterceptors[[]*User](ctx, query, qr, query.inters) + query.Where(predicate.Campaign(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CampaignsColumn), fks...)) + })) + neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - nodes, ok := nids[n.ID] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected "users" node returned %v`, n.ID) - } - for kn := range nodes { - assign(kn, n) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } + assign(node, n) } return nil } -func (_q *OrganizationQuery) loadFiles(ctx context.Context, query *FileQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *File)) error { - edgeIDs := make([]driver.Value, len(nodes)) - byID := make(map[string]*Organization) - nids := make(map[string]map[*Organization]struct{}) - for i, node := range nodes { - edgeIDs[i] = node.ID - byID[node.ID] = node +func (_q *OrganizationQuery) loadCampaignTargets(ctx context.Context, query *CampaignTargetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CampaignTarget)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] if init != nil { - init(node) + init(nodes[i]) } } - query.Where(func(s *sql.Selector) { - joinT := sql.Table(organization.FilesTable) - joinT.Schema(_q.schemaConfig.OrganizationFiles) - s.Join(joinT).On(s.C(file.FieldID), joinT.C(organization.FilesPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(organization.FilesPrimaryKey[0]), edgeIDs...)) - columns := s.SelectedColumns() - s.Select(joinT.C(organization.FilesPrimaryKey[0])) - s.AppendSelect(columns...) - s.SetDistinct(false) - }) - if err := query.prepareQuery(ctx); err != nil { - return err + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(campaigntarget.FieldOwnerID) } - qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { - return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { - assign := spec.Assign - values := spec.ScanValues - spec.ScanValues = func(columns []string) ([]any, error) { - values, err := values(columns[1:]) - if err != nil { - return nil, err - } - return append([]any{new(sql.NullString)}, values...), nil - } - spec.Assign = func(columns []string, values []any) error { - outValue := values[0].(*sql.NullString).String - inValue := values[1].(*sql.NullString).String - if nids[inValue] == nil { - nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} - return assign(columns[1:], values[1:]) - } - nids[inValue][byID[outValue]] = struct{}{} - return nil - } - }) - }) - neighbors, err := withInterceptors[[]*File](ctx, query, qr, query.inters) + query.Where(predicate.CampaignTarget(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CampaignTargetsColumn), fks...)) + })) + neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - nodes, ok := nids[n.ID] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected "files" node returned %v`, n.ID) - } - for kn := range nodes { - assign(kn, n) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } + assign(node, n) } return nil } -func (_q *OrganizationQuery) loadEvents(ctx context.Context, query *EventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Event)) error { - edgeIDs := make([]driver.Value, len(nodes)) - byID := make(map[string]*Organization) - nids := make(map[string]map[*Organization]struct{}) - for i, node := range nodes { - edgeIDs[i] = node.ID - byID[node.ID] = node +func (_q *OrganizationQuery) loadEntityTypes(ctx context.Context, query *EntityTypeQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *EntityType)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) + for i := range nodes { + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] if init != nil { - init(node) + init(nodes[i]) } } - query.Where(func(s *sql.Selector) { - joinT := sql.Table(organization.EventsTable) - joinT.Schema(_q.schemaConfig.OrganizationEvents) - s.Join(joinT).On(s.C(event.FieldID), joinT.C(organization.EventsPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(organization.EventsPrimaryKey[0]), edgeIDs...)) - columns := s.SelectedColumns() - s.Select(joinT.C(organization.EventsPrimaryKey[0])) - s.AppendSelect(columns...) - s.SetDistinct(false) - }) - if err := query.prepareQuery(ctx); err != nil { - return err - } - qr := QuerierFunc(func(ctx context.Context, q Query) (Value, error) { - return query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) { - assign := spec.Assign - values := spec.ScanValues - spec.ScanValues = func(columns []string) ([]any, error) { - values, err := values(columns[1:]) - if err != nil { - return nil, err - } - return append([]any{new(sql.NullString)}, values...), nil - } - spec.Assign = func(columns []string, values []any) error { - outValue := values[0].(*sql.NullString).String - inValue := values[1].(*sql.NullString).String - if nids[inValue] == nil { - nids[inValue] = map[*Organization]struct{}{byID[outValue]: {}} - return assign(columns[1:], values[1:]) - } - nids[inValue][byID[outValue]] = struct{}{} - return nil - } - }) - }) - neighbors, err := withInterceptors[[]*Event](ctx, query, qr, query.inters) + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(entitytype.FieldOwnerID) + } + query.Where(predicate.EntityType(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EntityTypesColumn), fks...)) + })) + neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - nodes, ok := nids[n.ID] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected "events" node returned %v`, n.ID) - } - for kn := range nodes { - assign(kn, n) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } + assign(node, n) } return nil } -func (_q *OrganizationQuery) loadSecrets(ctx context.Context, query *HushQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Hush)) error { +func (_q *OrganizationQuery) loadContacts(ctx context.Context, query *ContactQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Contact)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7716,10 +13072,10 @@ func (_q *OrganizationQuery) loadSecrets(ctx context.Context, query *HushQuery, } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(hush.FieldOwnerID) + query.ctx.AppendFieldOnce(contact.FieldOwnerID) } - query.Where(predicate.Hush(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SecretsColumn), fks...)) + query.Where(predicate.Contact(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ContactsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7735,39 +13091,38 @@ func (_q *OrganizationQuery) loadSecrets(ctx context.Context, query *HushQuery, } return nil } -func (_q *OrganizationQuery) loadAvatarFile(ctx context.Context, query *FileQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *File)) error { - ids := make([]string, 0, len(nodes)) - nodeids := make(map[string][]*Organization) +func (_q *OrganizationQuery) loadNotes(ctx context.Context, query *NoteQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Note)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Organization) for i := range nodes { - if nodes[i].AvatarLocalFileID == nil { - continue - } - fk := *nodes[i].AvatarLocalFileID - if _, ok := nodeids[fk]; !ok { - ids = append(ids, fk) + fks = append(fks, nodes[i].ID) + nodeids[nodes[i].ID] = nodes[i] + if init != nil { + init(nodes[i]) } - nodeids[fk] = append(nodeids[fk], nodes[i]) } - if len(ids) == 0 { - return nil + query.withFKs = true + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(note.FieldOwnerID) } - query.Where(file.IDIn(ids...)) + query.Where(predicate.Note(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotesColumn), fks...)) + })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - nodes, ok := nodeids[n.ID] + fk := n.OwnerID + node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected foreign-key "avatar_local_file_id" returned %v`, n.ID) - } - for i := range nodes { - assign(nodes[i], n) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } + assign(node, n) } return nil } -func (_q *OrganizationQuery) loadGroups(ctx context.Context, query *GroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Group)) error { +func (_q *OrganizationQuery) loadTasks(ctx context.Context, query *TaskQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Task)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7779,10 +13134,10 @@ func (_q *OrganizationQuery) loadGroups(ctx context.Context, query *GroupQuery, } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(group.FieldOwnerID) + query.ctx.AppendFieldOnce(task.FieldOwnerID) } - query.Where(predicate.Group(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupsColumn), fks...)) + query.Where(predicate.Task(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TasksColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7798,7 +13153,7 @@ func (_q *OrganizationQuery) loadGroups(ctx context.Context, query *GroupQuery, } return nil } -func (_q *OrganizationQuery) loadTemplates(ctx context.Context, query *TemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Template)) error { +func (_q *OrganizationQuery) loadPrograms(ctx context.Context, query *ProgramQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Program)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7808,11 +13163,12 @@ func (_q *OrganizationQuery) loadTemplates(ctx context.Context, query *TemplateQ init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(template.FieldOwnerID) + query.ctx.AppendFieldOnce(program.FieldOwnerID) } - query.Where(predicate.Template(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TemplatesColumn), fks...)) + query.Where(predicate.Program(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProgramsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7828,7 +13184,7 @@ func (_q *OrganizationQuery) loadTemplates(ctx context.Context, query *TemplateQ } return nil } -func (_q *OrganizationQuery) loadIntegrations(ctx context.Context, query *IntegrationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Integration)) error { +func (_q *OrganizationQuery) loadSystemDetails(ctx context.Context, query *SystemDetailQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *SystemDetail)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7838,12 +13194,11 @@ func (_q *OrganizationQuery) loadIntegrations(ctx context.Context, query *Integr init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(integration.FieldOwnerID) + query.ctx.AppendFieldOnce(systemdetail.FieldOwnerID) } - query.Where(predicate.Integration(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IntegrationsColumn), fks...)) + query.Where(predicate.SystemDetail(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SystemDetailsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7859,7 +13214,7 @@ func (_q *OrganizationQuery) loadIntegrations(ctx context.Context, query *Integr } return nil } -func (_q *OrganizationQuery) loadDocuments(ctx context.Context, query *DocumentDataQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DocumentData)) error { +func (_q *OrganizationQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Procedure)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7869,11 +13224,12 @@ func (_q *OrganizationQuery) loadDocuments(ctx context.Context, query *DocumentD init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(documentdata.FieldOwnerID) + query.ctx.AppendFieldOnce(procedure.FieldOwnerID) } - query.Where(predicate.DocumentData(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DocumentsColumn), fks...)) + query.Where(predicate.Procedure(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ProceduresColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7889,7 +13245,7 @@ func (_q *OrganizationQuery) loadDocuments(ctx context.Context, query *DocumentD } return nil } -func (_q *OrganizationQuery) loadOrgSubscriptions(ctx context.Context, query *OrgSubscriptionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgSubscription)) error { +func (_q *OrganizationQuery) loadInternalPolicies(ctx context.Context, query *InternalPolicyQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *InternalPolicy)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7899,11 +13255,12 @@ func (_q *OrganizationQuery) loadOrgSubscriptions(ctx context.Context, query *Or init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(orgsubscription.FieldOwnerID) + query.ctx.AppendFieldOnce(internalpolicy.FieldOwnerID) } - query.Where(predicate.OrgSubscription(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.OrgSubscriptionsColumn), fks...)) + query.Where(predicate.InternalPolicy(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.InternalPoliciesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7919,7 +13276,7 @@ func (_q *OrganizationQuery) loadOrgSubscriptions(ctx context.Context, query *Or } return nil } -func (_q *OrganizationQuery) loadOrgProducts(ctx context.Context, query *OrgProductQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgProduct)) error { +func (_q *OrganizationQuery) loadRisks(ctx context.Context, query *RiskQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Risk)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7931,10 +13288,10 @@ func (_q *OrganizationQuery) loadOrgProducts(ctx context.Context, query *OrgProd } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(orgproduct.FieldOwnerID) + query.ctx.AppendFieldOnce(risk.FieldOwnerID) } - query.Where(predicate.OrgProduct(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.OrgProductsColumn), fks...)) + query.Where(predicate.Risk(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RisksColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7950,7 +13307,7 @@ func (_q *OrganizationQuery) loadOrgProducts(ctx context.Context, query *OrgProd } return nil } -func (_q *OrganizationQuery) loadOrgPrices(ctx context.Context, query *OrgPriceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgPrice)) error { +func (_q *OrganizationQuery) loadControlObjectives(ctx context.Context, query *ControlObjectiveQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ControlObjective)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7961,10 +13318,10 @@ func (_q *OrganizationQuery) loadOrgPrices(ctx context.Context, query *OrgPriceQ } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(orgprice.FieldOwnerID) + query.ctx.AppendFieldOnce(controlobjective.FieldOwnerID) } - query.Where(predicate.OrgPrice(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.OrgPricesColumn), fks...)) + query.Where(predicate.ControlObjective(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlObjectivesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -7980,7 +13337,7 @@ func (_q *OrganizationQuery) loadOrgPrices(ctx context.Context, query *OrgPriceQ } return nil } -func (_q *OrganizationQuery) loadOrgModules(ctx context.Context, query *OrgModuleQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgModule)) error { +func (_q *OrganizationQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Narrative)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -7992,10 +13349,10 @@ func (_q *OrganizationQuery) loadOrgModules(ctx context.Context, query *OrgModul } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(orgmodule.FieldOwnerID) + query.ctx.AppendFieldOnce(narrative.FieldOwnerID) } - query.Where(predicate.OrgModule(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.OrgModulesColumn), fks...)) + query.Where(predicate.Narrative(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NarrativesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8011,7 +13368,7 @@ func (_q *OrganizationQuery) loadOrgModules(ctx context.Context, query *OrgModul } return nil } -func (_q *OrganizationQuery) loadInvites(ctx context.Context, query *InviteQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Invite)) error { +func (_q *OrganizationQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Control)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8021,11 +13378,12 @@ func (_q *OrganizationQuery) loadInvites(ctx context.Context, query *InviteQuery init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(invite.FieldOwnerID) + query.ctx.AppendFieldOnce(control.FieldOwnerID) } - query.Where(predicate.Invite(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.InvitesColumn), fks...)) + query.Where(predicate.Control(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8041,7 +13399,7 @@ func (_q *OrganizationQuery) loadInvites(ctx context.Context, query *InviteQuery } return nil } -func (_q *OrganizationQuery) loadSubscribers(ctx context.Context, query *SubscriberQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subscriber)) error { +func (_q *OrganizationQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subcontrol)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8051,11 +13409,12 @@ func (_q *OrganizationQuery) loadSubscribers(ctx context.Context, query *Subscri init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(subscriber.FieldOwnerID) + query.ctx.AppendFieldOnce(subcontrol.FieldOwnerID) } - query.Where(predicate.Subscriber(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubscribersColumn), fks...)) + query.Where(predicate.Subcontrol(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubcontrolsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8071,7 +13430,7 @@ func (_q *OrganizationQuery) loadSubscribers(ctx context.Context, query *Subscri } return nil } -func (_q *OrganizationQuery) loadEntities(ctx context.Context, query *EntityQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Entity)) error { +func (_q *OrganizationQuery) loadControlImplementations(ctx context.Context, query *ControlImplementationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ControlImplementation)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8083,10 +13442,10 @@ func (_q *OrganizationQuery) loadEntities(ctx context.Context, query *EntityQuer } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(entity.FieldOwnerID) + query.ctx.AppendFieldOnce(controlimplementation.FieldOwnerID) } - query.Where(predicate.Entity(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EntitiesColumn), fks...)) + query.Where(predicate.ControlImplementation(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ControlImplementationsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8102,7 +13461,7 @@ func (_q *OrganizationQuery) loadEntities(ctx context.Context, query *EntityQuer } return nil } -func (_q *OrganizationQuery) loadPlatforms(ctx context.Context, query *PlatformQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Platform)) error { +func (_q *OrganizationQuery) loadMappedControls(ctx context.Context, query *MappedControlQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *MappedControl)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8112,12 +13471,11 @@ func (_q *OrganizationQuery) loadPlatforms(ctx context.Context, query *PlatformQ init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(platform.FieldOwnerID) + query.ctx.AppendFieldOnce(mappedcontrol.FieldOwnerID) } - query.Where(predicate.Platform(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.PlatformsColumn), fks...)) + query.Where(predicate.MappedControl(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.MappedControlsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8133,7 +13491,7 @@ func (_q *OrganizationQuery) loadPlatforms(ctx context.Context, query *PlatformQ } return nil } -func (_q *OrganizationQuery) loadIdentityHolders(ctx context.Context, query *IdentityHolderQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *IdentityHolder)) error { +func (_q *OrganizationQuery) loadEvidence(ctx context.Context, query *EvidenceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Evidence)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8144,10 +13502,10 @@ func (_q *OrganizationQuery) loadIdentityHolders(ctx context.Context, query *Ide } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(identityholder.FieldOwnerID) + query.ctx.AppendFieldOnce(evidence.FieldOwnerID) } - query.Where(predicate.IdentityHolder(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.IdentityHoldersColumn), fks...)) + query.Where(predicate.Evidence(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.EvidenceColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8163,7 +13521,7 @@ func (_q *OrganizationQuery) loadIdentityHolders(ctx context.Context, query *Ide } return nil } -func (_q *OrganizationQuery) loadCampaigns(ctx context.Context, query *CampaignQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Campaign)) error { +func (_q *OrganizationQuery) loadStandards(ctx context.Context, query *StandardQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Standard)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8174,10 +13532,10 @@ func (_q *OrganizationQuery) loadCampaigns(ctx context.Context, query *CampaignQ } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(campaign.FieldOwnerID) + query.ctx.AppendFieldOnce(standard.FieldOwnerID) } - query.Where(predicate.Campaign(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CampaignsColumn), fks...)) + query.Where(predicate.Standard(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.StandardsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8193,7 +13551,7 @@ func (_q *OrganizationQuery) loadCampaigns(ctx context.Context, query *CampaignQ } return nil } -func (_q *OrganizationQuery) loadCampaignTargets(ctx context.Context, query *CampaignTargetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CampaignTarget)) error { +func (_q *OrganizationQuery) loadActionPlans(ctx context.Context, query *ActionPlanQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ActionPlan)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8203,11 +13561,12 @@ func (_q *OrganizationQuery) loadCampaignTargets(ctx context.Context, query *Cam init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(campaigntarget.FieldOwnerID) + query.ctx.AppendFieldOnce(actionplan.FieldOwnerID) } - query.Where(predicate.CampaignTarget(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CampaignTargetsColumn), fks...)) + query.Where(predicate.ActionPlan(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ActionPlansColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8223,7 +13582,7 @@ func (_q *OrganizationQuery) loadCampaignTargets(ctx context.Context, query *Cam } return nil } -func (_q *OrganizationQuery) loadEntityTypes(ctx context.Context, query *EntityTypeQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *EntityType)) error { +func (_q *OrganizationQuery) loadCustomDomains(ctx context.Context, query *CustomDomainQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CustomDomain)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8233,11 +13592,12 @@ func (_q *OrganizationQuery) loadEntityTypes(ctx context.Context, query *EntityT init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(entitytype.FieldOwnerID) + query.ctx.AppendFieldOnce(customdomain.FieldOwnerID) } - query.Where(predicate.EntityType(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EntityTypesColumn), fks...)) + query.Where(predicate.CustomDomain(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CustomDomainsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8253,7 +13613,7 @@ func (_q *OrganizationQuery) loadEntityTypes(ctx context.Context, query *EntityT } return nil } -func (_q *OrganizationQuery) loadContacts(ctx context.Context, query *ContactQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Contact)) error { +func (_q *OrganizationQuery) loadJobRunners(ctx context.Context, query *JobRunnerQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunner)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8264,10 +13624,10 @@ func (_q *OrganizationQuery) loadContacts(ctx context.Context, query *ContactQue } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(contact.FieldOwnerID) + query.ctx.AppendFieldOnce(jobrunner.FieldOwnerID) } - query.Where(predicate.Contact(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ContactsColumn), fks...)) + query.Where(predicate.JobRunner(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnersColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8283,7 +13643,7 @@ func (_q *OrganizationQuery) loadContacts(ctx context.Context, query *ContactQue } return nil } -func (_q *OrganizationQuery) loadNotes(ctx context.Context, query *NoteQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Note)) error { +func (_q *OrganizationQuery) loadJobRunnerTokens(ctx context.Context, query *JobRunnerTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunnerToken)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8293,12 +13653,11 @@ func (_q *OrganizationQuery) loadNotes(ctx context.Context, query *NoteQuery, no init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(note.FieldOwnerID) + query.ctx.AppendFieldOnce(jobrunnertoken.FieldOwnerID) } - query.Where(predicate.Note(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NotesColumn), fks...)) + query.Where(predicate.JobRunnerToken(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerTokensColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8314,7 +13673,7 @@ func (_q *OrganizationQuery) loadNotes(ctx context.Context, query *NoteQuery, no } return nil } -func (_q *OrganizationQuery) loadTasks(ctx context.Context, query *TaskQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Task)) error { +func (_q *OrganizationQuery) loadJobRunnerRegistrationTokens(ctx context.Context, query *JobRunnerRegistrationTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunnerRegistrationToken)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8324,12 +13683,11 @@ func (_q *OrganizationQuery) loadTasks(ctx context.Context, query *TaskQuery, no init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(task.FieldOwnerID) + query.ctx.AppendFieldOnce(jobrunnerregistrationtoken.FieldOwnerID) } - query.Where(predicate.Task(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TasksColumn), fks...)) + query.Where(predicate.JobRunnerRegistrationToken(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobRunnerRegistrationTokensColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8345,7 +13703,7 @@ func (_q *OrganizationQuery) loadTasks(ctx context.Context, query *TaskQuery, no } return nil } -func (_q *OrganizationQuery) loadPrograms(ctx context.Context, query *ProgramQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Program)) error { +func (_q *OrganizationQuery) loadDNSVerifications(ctx context.Context, query *DNSVerificationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DNSVerification)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8355,12 +13713,11 @@ func (_q *OrganizationQuery) loadPrograms(ctx context.Context, query *ProgramQue init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(program.FieldOwnerID) + query.ctx.AppendFieldOnce(dnsverification.FieldOwnerID) } - query.Where(predicate.Program(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProgramsColumn), fks...)) + query.Where(predicate.DNSVerification(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DNSVerificationsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8376,7 +13733,7 @@ func (_q *OrganizationQuery) loadPrograms(ctx context.Context, query *ProgramQue } return nil } -func (_q *OrganizationQuery) loadSystemDetails(ctx context.Context, query *SystemDetailQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *SystemDetail)) error { +func (_q *OrganizationQuery) loadJobTemplates(ctx context.Context, query *JobTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobTemplate)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8387,10 +13744,10 @@ func (_q *OrganizationQuery) loadSystemDetails(ctx context.Context, query *Syste } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(systemdetail.FieldOwnerID) + query.ctx.AppendFieldOnce(jobtemplate.FieldOwnerID) } - query.Where(predicate.SystemDetail(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SystemDetailsColumn), fks...)) + query.Where(predicate.JobTemplate(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobTemplatesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8406,7 +13763,7 @@ func (_q *OrganizationQuery) loadSystemDetails(ctx context.Context, query *Syste } return nil } -func (_q *OrganizationQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Procedure)) error { +func (_q *OrganizationQuery) loadScheduledJobs(ctx context.Context, query *ScheduledJobQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ScheduledJob)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8416,12 +13773,11 @@ func (_q *OrganizationQuery) loadProcedures(ctx context.Context, query *Procedur init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(procedure.FieldOwnerID) + query.ctx.AppendFieldOnce(scheduledjob.FieldOwnerID) } - query.Where(predicate.Procedure(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProceduresColumn), fks...)) + query.Where(predicate.ScheduledJob(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8437,7 +13793,7 @@ func (_q *OrganizationQuery) loadProcedures(ctx context.Context, query *Procedur } return nil } -func (_q *OrganizationQuery) loadInternalPolicies(ctx context.Context, query *InternalPolicyQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *InternalPolicy)) error { +func (_q *OrganizationQuery) loadJobResults(ctx context.Context, query *JobResultQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobResult)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8447,12 +13803,11 @@ func (_q *OrganizationQuery) loadInternalPolicies(ctx context.Context, query *In init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(internalpolicy.FieldOwnerID) + query.ctx.AppendFieldOnce(jobresult.FieldOwnerID) } - query.Where(predicate.InternalPolicy(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.InternalPoliciesColumn), fks...)) + query.Where(predicate.JobResult(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.JobResultsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8468,7 +13823,7 @@ func (_q *OrganizationQuery) loadInternalPolicies(ctx context.Context, query *In } return nil } -func (_q *OrganizationQuery) loadRisks(ctx context.Context, query *RiskQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Risk)) error { +func (_q *OrganizationQuery) loadScheduledJobRuns(ctx context.Context, query *ScheduledJobRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ScheduledJobRun)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8478,12 +13833,11 @@ func (_q *OrganizationQuery) loadRisks(ctx context.Context, query *RiskQuery, no init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(risk.FieldOwnerID) + query.ctx.AppendFieldOnce(scheduledjobrun.FieldOwnerID) } - query.Where(predicate.Risk(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RisksColumn), fks...)) + query.Where(predicate.ScheduledJobRun(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScheduledJobRunsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8499,7 +13853,7 @@ func (_q *OrganizationQuery) loadRisks(ctx context.Context, query *RiskQuery, no } return nil } -func (_q *OrganizationQuery) loadControlObjectives(ctx context.Context, query *ControlObjectiveQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ControlObjective)) error { +func (_q *OrganizationQuery) loadTrustCenters(ctx context.Context, query *TrustCenterQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TrustCenter)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8509,11 +13863,12 @@ func (_q *OrganizationQuery) loadControlObjectives(ctx context.Context, query *C init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(controlobjective.FieldOwnerID) + query.ctx.AppendFieldOnce(trustcenter.FieldOwnerID) } - query.Where(predicate.ControlObjective(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlObjectivesColumn), fks...)) + query.Where(predicate.TrustCenter(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCentersColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8529,7 +13884,7 @@ func (_q *OrganizationQuery) loadControlObjectives(ctx context.Context, query *C } return nil } -func (_q *OrganizationQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Narrative)) error { +func (_q *OrganizationQuery) loadAssets(ctx context.Context, query *AssetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Asset)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8541,10 +13896,10 @@ func (_q *OrganizationQuery) loadNarratives(ctx context.Context, query *Narrativ } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(narrative.FieldOwnerID) + query.ctx.AppendFieldOnce(asset.FieldOwnerID) } - query.Where(predicate.Narrative(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NarrativesColumn), fks...)) + query.Where(predicate.Asset(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AssetsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8560,7 +13915,7 @@ func (_q *OrganizationQuery) loadNarratives(ctx context.Context, query *Narrativ } return nil } -func (_q *OrganizationQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Control)) error { +func (_q *OrganizationQuery) loadScans(ctx context.Context, query *ScanQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Scan)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8572,10 +13927,10 @@ func (_q *OrganizationQuery) loadControls(ctx context.Context, query *ControlQue } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(control.FieldOwnerID) + query.ctx.AppendFieldOnce(scan.FieldOwnerID) } - query.Where(predicate.Control(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlsColumn), fks...)) + query.Where(predicate.Scan(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ScansColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8591,7 +13946,7 @@ func (_q *OrganizationQuery) loadControls(ctx context.Context, query *ControlQue } return nil } -func (_q *OrganizationQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subcontrol)) error { +func (_q *OrganizationQuery) loadSLADefinitions(ctx context.Context, query *SLADefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *SLADefinition)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8601,12 +13956,11 @@ func (_q *OrganizationQuery) loadSubcontrols(ctx context.Context, query *Subcont init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(subcontrol.FieldOwnerID) + query.ctx.AppendFieldOnce(sladefinition.FieldOwnerID) } - query.Where(predicate.Subcontrol(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubcontrolsColumn), fks...)) + query.Where(predicate.SLADefinition(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SLADefinitionsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8622,7 +13976,7 @@ func (_q *OrganizationQuery) loadSubcontrols(ctx context.Context, query *Subcont } return nil } -func (_q *OrganizationQuery) loadControlImplementations(ctx context.Context, query *ControlImplementationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ControlImplementation)) error { +func (_q *OrganizationQuery) loadSubprocessors(ctx context.Context, query *SubprocessorQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subprocessor)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8632,12 +13986,11 @@ func (_q *OrganizationQuery) loadControlImplementations(ctx context.Context, que init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(controlimplementation.FieldOwnerID) + query.ctx.AppendFieldOnce(subprocessor.FieldOwnerID) } - query.Where(predicate.ControlImplementation(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ControlImplementationsColumn), fks...)) + query.Where(predicate.Subprocessor(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.SubprocessorsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8653,7 +14006,7 @@ func (_q *OrganizationQuery) loadControlImplementations(ctx context.Context, que } return nil } -func (_q *OrganizationQuery) loadMappedControls(ctx context.Context, query *MappedControlQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *MappedControl)) error { +func (_q *OrganizationQuery) loadExports(ctx context.Context, query *ExportQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Export)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8664,10 +14017,10 @@ func (_q *OrganizationQuery) loadMappedControls(ctx context.Context, query *Mapp } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(mappedcontrol.FieldOwnerID) + query.ctx.AppendFieldOnce(export.FieldOwnerID) } - query.Where(predicate.MappedControl(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.MappedControlsColumn), fks...)) + query.Where(predicate.Export(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ExportsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8683,7 +14036,7 @@ func (_q *OrganizationQuery) loadMappedControls(ctx context.Context, query *Mapp } return nil } -func (_q *OrganizationQuery) loadEvidence(ctx context.Context, query *EvidenceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Evidence)) error { +func (_q *OrganizationQuery) loadTrustCenterWatermarkConfigs(ctx context.Context, query *TrustCenterWatermarkConfigQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TrustCenterWatermarkConfig)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8694,10 +14047,10 @@ func (_q *OrganizationQuery) loadEvidence(ctx context.Context, query *EvidenceQu } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(evidence.FieldOwnerID) + query.ctx.AppendFieldOnce(trustcenterwatermarkconfig.FieldOwnerID) } - query.Where(predicate.Evidence(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EvidenceColumn), fks...)) + query.Where(predicate.TrustCenterWatermarkConfig(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TrustCenterWatermarkConfigsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8713,7 +14066,7 @@ func (_q *OrganizationQuery) loadEvidence(ctx context.Context, query *EvidenceQu } return nil } -func (_q *OrganizationQuery) loadStandards(ctx context.Context, query *StandardQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Standard)) error { +func (_q *OrganizationQuery) loadImpersonationEvents(ctx context.Context, query *ImpersonationEventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ImpersonationEvent)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8724,26 +14077,26 @@ func (_q *OrganizationQuery) loadStandards(ctx context.Context, query *StandardQ } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(standard.FieldOwnerID) + query.ctx.AppendFieldOnce(impersonationevent.FieldOrganizationID) } - query.Where(predicate.Standard(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.StandardsColumn), fks...)) + query.Where(predicate.ImpersonationEvent(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ImpersonationEventsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.OwnerID + fk := n.OrganizationID node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadActionPlans(ctx context.Context, query *ActionPlanQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ActionPlan)) error { +func (_q *OrganizationQuery) loadAssessments(ctx context.Context, query *AssessmentQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Assessment)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8753,12 +14106,11 @@ func (_q *OrganizationQuery) loadActionPlans(ctx context.Context, query *ActionP init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(actionplan.FieldOwnerID) + query.ctx.AppendFieldOnce(assessment.FieldOwnerID) } - query.Where(predicate.ActionPlan(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ActionPlansColumn), fks...)) + query.Where(predicate.Assessment(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AssessmentsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8774,7 +14126,7 @@ func (_q *OrganizationQuery) loadActionPlans(ctx context.Context, query *ActionP } return nil } -func (_q *OrganizationQuery) loadCustomDomains(ctx context.Context, query *CustomDomainQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CustomDomain)) error { +func (_q *OrganizationQuery) loadAssessmentResponses(ctx context.Context, query *AssessmentResponseQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *AssessmentResponse)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8784,12 +14136,11 @@ func (_q *OrganizationQuery) loadCustomDomains(ctx context.Context, query *Custo init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(customdomain.FieldOwnerID) + query.ctx.AppendFieldOnce(assessmentresponse.FieldOwnerID) } - query.Where(predicate.CustomDomain(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CustomDomainsColumn), fks...)) + query.Where(predicate.AssessmentResponse(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AssessmentResponsesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8805,7 +14156,7 @@ func (_q *OrganizationQuery) loadCustomDomains(ctx context.Context, query *Custo } return nil } -func (_q *OrganizationQuery) loadJobRunners(ctx context.Context, query *JobRunnerQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunner)) error { +func (_q *OrganizationQuery) loadCustomTypeEnums(ctx context.Context, query *CustomTypeEnumQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CustomTypeEnum)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8815,11 +14166,12 @@ func (_q *OrganizationQuery) loadJobRunners(ctx context.Context, query *JobRunne init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(jobrunner.FieldOwnerID) + query.ctx.AppendFieldOnce(customtypeenum.FieldOwnerID) } - query.Where(predicate.JobRunner(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.JobRunnersColumn), fks...)) + query.Where(predicate.CustomTypeEnum(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CustomTypeEnumsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8835,7 +14187,7 @@ func (_q *OrganizationQuery) loadJobRunners(ctx context.Context, query *JobRunne } return nil } -func (_q *OrganizationQuery) loadJobRunnerTokens(ctx context.Context, query *JobRunnerTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunnerToken)) error { +func (_q *OrganizationQuery) loadTagDefinitions(ctx context.Context, query *TagDefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TagDefinition)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8845,11 +14197,12 @@ func (_q *OrganizationQuery) loadJobRunnerTokens(ctx context.Context, query *Job init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(jobrunnertoken.FieldOwnerID) + query.ctx.AppendFieldOnce(tagdefinition.FieldOwnerID) } - query.Where(predicate.JobRunnerToken(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.JobRunnerTokensColumn), fks...)) + query.Where(predicate.TagDefinition(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.TagDefinitionsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8865,7 +14218,7 @@ func (_q *OrganizationQuery) loadJobRunnerTokens(ctx context.Context, query *Job } return nil } -func (_q *OrganizationQuery) loadJobRunnerRegistrationTokens(ctx context.Context, query *JobRunnerRegistrationTokenQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobRunnerRegistrationToken)) error { +func (_q *OrganizationQuery) loadRemediations(ctx context.Context, query *RemediationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Remediation)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8876,10 +14229,10 @@ func (_q *OrganizationQuery) loadJobRunnerRegistrationTokens(ctx context.Context } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(jobrunnerregistrationtoken.FieldOwnerID) + query.ctx.AppendFieldOnce(remediation.FieldOwnerID) } - query.Where(predicate.JobRunnerRegistrationToken(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.JobRunnerRegistrationTokensColumn), fks...)) + query.Where(predicate.Remediation(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.RemediationsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8895,7 +14248,7 @@ func (_q *OrganizationQuery) loadJobRunnerRegistrationTokens(ctx context.Context } return nil } -func (_q *OrganizationQuery) loadDNSVerifications(ctx context.Context, query *DNSVerificationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DNSVerification)) error { +func (_q *OrganizationQuery) loadFindings(ctx context.Context, query *FindingQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Finding)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8906,10 +14259,10 @@ func (_q *OrganizationQuery) loadDNSVerifications(ctx context.Context, query *DN } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(dnsverification.FieldOwnerID) + query.ctx.AppendFieldOnce(finding.FieldOwnerID) } - query.Where(predicate.DNSVerification(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DNSVerificationsColumn), fks...)) + query.Where(predicate.Finding(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.FindingsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8925,7 +14278,7 @@ func (_q *OrganizationQuery) loadDNSVerifications(ctx context.Context, query *DN } return nil } -func (_q *OrganizationQuery) loadJobTemplates(ctx context.Context, query *JobTemplateQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobTemplate)) error { +func (_q *OrganizationQuery) loadReviews(ctx context.Context, query *ReviewQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Review)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8936,10 +14289,10 @@ func (_q *OrganizationQuery) loadJobTemplates(ctx context.Context, query *JobTem } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(jobtemplate.FieldOwnerID) + query.ctx.AppendFieldOnce(review.FieldOwnerID) } - query.Where(predicate.JobTemplate(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.JobTemplatesColumn), fks...)) + query.Where(predicate.Review(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ReviewsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8955,7 +14308,7 @@ func (_q *OrganizationQuery) loadJobTemplates(ctx context.Context, query *JobTem } return nil } -func (_q *OrganizationQuery) loadScheduledJobs(ctx context.Context, query *ScheduledJobQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ScheduledJob)) error { +func (_q *OrganizationQuery) loadVulnerabilities(ctx context.Context, query *VulnerabilityQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Vulnerability)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8966,10 +14319,10 @@ func (_q *OrganizationQuery) loadScheduledJobs(ctx context.Context, query *Sched } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(scheduledjob.FieldOwnerID) + query.ctx.AppendFieldOnce(vulnerability.FieldOwnerID) } - query.Where(predicate.ScheduledJob(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScheduledJobsColumn), fks...)) + query.Where(predicate.Vulnerability(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VulnerabilitiesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -8985,7 +14338,7 @@ func (_q *OrganizationQuery) loadScheduledJobs(ctx context.Context, query *Sched } return nil } -func (_q *OrganizationQuery) loadJobResults(ctx context.Context, query *JobResultQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *JobResult)) error { +func (_q *OrganizationQuery) loadNotifications(ctx context.Context, query *NotificationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Notification)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -8996,10 +14349,10 @@ func (_q *OrganizationQuery) loadJobResults(ctx context.Context, query *JobResul } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(jobresult.FieldOwnerID) + query.ctx.AppendFieldOnce(notification.FieldOwnerID) } - query.Where(predicate.JobResult(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.JobResultsColumn), fks...)) + query.Where(predicate.Notification(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.NotificationsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9015,7 +14368,7 @@ func (_q *OrganizationQuery) loadJobResults(ctx context.Context, query *JobResul } return nil } -func (_q *OrganizationQuery) loadScheduledJobRuns(ctx context.Context, query *ScheduledJobRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ScheduledJobRun)) error { +func (_q *OrganizationQuery) loadWorkflowDefinitions(ctx context.Context, query *WorkflowDefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowDefinition)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9026,10 +14379,10 @@ func (_q *OrganizationQuery) loadScheduledJobRuns(ctx context.Context, query *Sc } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(scheduledjobrun.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowdefinition.FieldOwnerID) } - query.Where(predicate.ScheduledJobRun(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScheduledJobRunsColumn), fks...)) + query.Where(predicate.WorkflowDefinition(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowDefinitionsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9045,7 +14398,7 @@ func (_q *OrganizationQuery) loadScheduledJobRuns(ctx context.Context, query *Sc } return nil } -func (_q *OrganizationQuery) loadTrustCenters(ctx context.Context, query *TrustCenterQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TrustCenter)) error { +func (_q *OrganizationQuery) loadWorkflowInstances(ctx context.Context, query *WorkflowInstanceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowInstance)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9055,12 +14408,11 @@ func (_q *OrganizationQuery) loadTrustCenters(ctx context.Context, query *TrustC init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(trustcenter.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowinstance.FieldOwnerID) } - query.Where(predicate.TrustCenter(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCentersColumn), fks...)) + query.Where(predicate.WorkflowInstance(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowInstancesColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9076,7 +14428,7 @@ func (_q *OrganizationQuery) loadTrustCenters(ctx context.Context, query *TrustC } return nil } -func (_q *OrganizationQuery) loadAssets(ctx context.Context, query *AssetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Asset)) error { +func (_q *OrganizationQuery) loadWorkflowEvents(ctx context.Context, query *WorkflowEventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowEvent)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9088,10 +14440,10 @@ func (_q *OrganizationQuery) loadAssets(ctx context.Context, query *AssetQuery, } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(asset.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowevent.FieldOwnerID) } - query.Where(predicate.Asset(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssetsColumn), fks...)) + query.Where(predicate.WorkflowEvent(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowEventsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9107,7 +14459,7 @@ func (_q *OrganizationQuery) loadAssets(ctx context.Context, query *AssetQuery, } return nil } -func (_q *OrganizationQuery) loadScans(ctx context.Context, query *ScanQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Scan)) error { +func (_q *OrganizationQuery) loadWorkflowAssignments(ctx context.Context, query *WorkflowAssignmentQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowAssignment)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9119,10 +14471,10 @@ func (_q *OrganizationQuery) loadScans(ctx context.Context, query *ScanQuery, no } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(scan.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowassignment.FieldOwnerID) } - query.Where(predicate.Scan(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScansColumn), fks...)) + query.Where(predicate.WorkflowAssignment(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9138,7 +14490,7 @@ func (_q *OrganizationQuery) loadScans(ctx context.Context, query *ScanQuery, no } return nil } -func (_q *OrganizationQuery) loadSLADefinitions(ctx context.Context, query *SLADefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *SLADefinition)) error { +func (_q *OrganizationQuery) loadWorkflowAssignmentTargets(ctx context.Context, query *WorkflowAssignmentTargetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowAssignmentTarget)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9148,11 +14500,12 @@ func (_q *OrganizationQuery) loadSLADefinitions(ctx context.Context, query *SLAD init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(sladefinition.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowassignmenttarget.FieldOwnerID) } - query.Where(predicate.SLADefinition(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SLADefinitionsColumn), fks...)) + query.Where(predicate.WorkflowAssignmentTarget(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowAssignmentTargetsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9168,7 +14521,7 @@ func (_q *OrganizationQuery) loadSLADefinitions(ctx context.Context, query *SLAD } return nil } -func (_q *OrganizationQuery) loadSubprocessors(ctx context.Context, query *SubprocessorQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Subprocessor)) error { +func (_q *OrganizationQuery) loadWorkflowObjectRefs(ctx context.Context, query *WorkflowObjectRefQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowObjectRef)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9178,11 +14531,12 @@ func (_q *OrganizationQuery) loadSubprocessors(ctx context.Context, query *Subpr init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(subprocessor.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowobjectref.FieldOwnerID) } - query.Where(predicate.Subprocessor(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubprocessorsColumn), fks...)) + query.Where(predicate.WorkflowObjectRef(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowObjectRefsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9198,7 +14552,7 @@ func (_q *OrganizationQuery) loadSubprocessors(ctx context.Context, query *Subpr } return nil } -func (_q *OrganizationQuery) loadExports(ctx context.Context, query *ExportQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Export)) error { +func (_q *OrganizationQuery) loadWorkflowProposals(ctx context.Context, query *WorkflowProposalQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowProposal)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9209,10 +14563,10 @@ func (_q *OrganizationQuery) loadExports(ctx context.Context, query *ExportQuery } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(export.FieldOwnerID) + query.ctx.AppendFieldOnce(workflowproposal.FieldOwnerID) } - query.Where(predicate.Export(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ExportsColumn), fks...)) + query.Where(predicate.WorkflowProposal(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.WorkflowProposalsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9228,7 +14582,7 @@ func (_q *OrganizationQuery) loadExports(ctx context.Context, query *ExportQuery } return nil } -func (_q *OrganizationQuery) loadTrustCenterWatermarkConfigs(ctx context.Context, query *TrustCenterWatermarkConfigQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TrustCenterWatermarkConfig)) error { +func (_q *OrganizationQuery) loadDirectoryAccounts(ctx context.Context, query *DirectoryAccountQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryAccount)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9239,10 +14593,10 @@ func (_q *OrganizationQuery) loadTrustCenterWatermarkConfigs(ctx context.Context } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(trustcenterwatermarkconfig.FieldOwnerID) + query.ctx.AppendFieldOnce(directoryaccount.FieldOwnerID) } - query.Where(predicate.TrustCenterWatermarkConfig(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterWatermarkConfigsColumn), fks...)) + query.Where(predicate.DirectoryAccount(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DirectoryAccountsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9258,7 +14612,7 @@ func (_q *OrganizationQuery) loadTrustCenterWatermarkConfigs(ctx context.Context } return nil } -func (_q *OrganizationQuery) loadImpersonationEvents(ctx context.Context, query *ImpersonationEventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *ImpersonationEvent)) error { +func (_q *OrganizationQuery) loadDirectoryGroups(ctx context.Context, query *DirectoryGroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryGroup)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9269,26 +14623,26 @@ func (_q *OrganizationQuery) loadImpersonationEvents(ctx context.Context, query } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(impersonationevent.FieldOrganizationID) + query.ctx.AppendFieldOnce(directorygroup.FieldOwnerID) } - query.Where(predicate.ImpersonationEvent(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ImpersonationEventsColumn), fks...)) + query.Where(predicate.DirectoryGroup(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DirectoryGroupsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.OrganizationID + fk := n.OwnerID node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } return nil } -func (_q *OrganizationQuery) loadAssessments(ctx context.Context, query *AssessmentQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Assessment)) error { +func (_q *OrganizationQuery) loadDirectoryMemberships(ctx context.Context, query *DirectoryMembershipQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryMembership)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9299,10 +14653,10 @@ func (_q *OrganizationQuery) loadAssessments(ctx context.Context, query *Assessm } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(assessment.FieldOwnerID) + query.ctx.AppendFieldOnce(directorymembership.FieldOwnerID) } - query.Where(predicate.Assessment(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssessmentsColumn), fks...)) + query.Where(predicate.DirectoryMembership(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DirectoryMembershipsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9318,7 +14672,7 @@ func (_q *OrganizationQuery) loadAssessments(ctx context.Context, query *Assessm } return nil } -func (_q *OrganizationQuery) loadAssessmentResponses(ctx context.Context, query *AssessmentResponseQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *AssessmentResponse)) error { +func (_q *OrganizationQuery) loadDirectorySyncRuns(ctx context.Context, query *DirectorySyncRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectorySyncRun)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9329,10 +14683,10 @@ func (_q *OrganizationQuery) loadAssessmentResponses(ctx context.Context, query } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(assessmentresponse.FieldOwnerID) + query.ctx.AppendFieldOnce(directorysyncrun.FieldOwnerID) } - query.Where(predicate.AssessmentResponse(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssessmentResponsesColumn), fks...)) + query.Where(predicate.DirectorySyncRun(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DirectorySyncRunsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9348,7 +14702,7 @@ func (_q *OrganizationQuery) loadAssessmentResponses(ctx context.Context, query } return nil } -func (_q *OrganizationQuery) loadCustomTypeEnums(ctx context.Context, query *CustomTypeEnumQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *CustomTypeEnum)) error { +func (_q *OrganizationQuery) loadDiscussions(ctx context.Context, query *DiscussionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Discussion)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9360,10 +14714,10 @@ func (_q *OrganizationQuery) loadCustomTypeEnums(ctx context.Context, query *Cus } query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(customtypeenum.FieldOwnerID) + query.ctx.AppendFieldOnce(discussion.FieldOwnerID) } - query.Where(predicate.CustomTypeEnum(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CustomTypeEnumsColumn), fks...)) + query.Where(predicate.Discussion(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DiscussionsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9379,7 +14733,7 @@ func (_q *OrganizationQuery) loadCustomTypeEnums(ctx context.Context, query *Cus } return nil } -func (_q *OrganizationQuery) loadTagDefinitions(ctx context.Context, query *TagDefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *TagDefinition)) error { +func (_q *OrganizationQuery) loadVendorScoringConfigs(ctx context.Context, query *VendorScoringConfigQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *VendorScoringConfig)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9389,12 +14743,11 @@ func (_q *OrganizationQuery) loadTagDefinitions(ctx context.Context, query *TagD init(nodes[i]) } } - query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(tagdefinition.FieldOwnerID) + query.ctx.AppendFieldOnce(vendorscoringconfig.FieldOwnerID) } - query.Where(predicate.TagDefinition(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TagDefinitionsColumn), fks...)) + query.Where(predicate.VendorScoringConfig(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VendorScoringConfigsColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9410,7 +14763,7 @@ func (_q *OrganizationQuery) loadTagDefinitions(ctx context.Context, query *TagD } return nil } -func (_q *OrganizationQuery) loadRemediations(ctx context.Context, query *RemediationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Remediation)) error { +func (_q *OrganizationQuery) loadVendorRiskScores(ctx context.Context, query *VendorRiskScoreQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *VendorRiskScore)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9420,11 +14773,12 @@ func (_q *OrganizationQuery) loadRemediations(ctx context.Context, query *Remedi init(nodes[i]) } } + query.withFKs = true if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(remediation.FieldOwnerID) + query.ctx.AppendFieldOnce(vendorriskscore.FieldOwnerID) } - query.Where(predicate.Remediation(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RemediationsColumn), fks...)) + query.Where(predicate.VendorRiskScore(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.VendorRiskScoresColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { @@ -9440,7 +14794,7 @@ func (_q *OrganizationQuery) loadRemediations(ctx context.Context, query *Remedi } return nil } -func (_q *OrganizationQuery) loadFindings(ctx context.Context, query *FindingQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Finding)) error { +func (_q *OrganizationQuery) loadMembers(ctx context.Context, query *OrgMembershipQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgMembership)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*Organization) for i := range nodes { @@ -9451,757 +14805,995 @@ func (_q *OrganizationQuery) loadFindings(ctx context.Context, query *FindingQue } } if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(finding.FieldOwnerID) + query.ctx.AppendFieldOnce(orgmembership.FieldOrganizationID) } - query.Where(predicate.Finding(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.FindingsColumn), fks...)) + query.Where(predicate.OrgMembership(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.MembersColumn), fks...)) })) neighbors, err := query.All(ctx) if err != nil { return err } for _, n := range neighbors { - fk := n.OwnerID + fk := n.OrganizationID node, ok := nodeids[fk] if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) + return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) } assign(node, n) } - return nil + return nil +} + +func (_q *OrganizationQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Schema = _q.schemaConfig.Organization + ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) + if len(_q.modifiers) > 0 { + _spec.Modifiers = _q.modifiers + } + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique + } + return sqlgraph.CountNodes(ctx, _q.driver, _spec) +} + +func (_q *OrganizationQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if _q.path != nil { + _spec.Unique = true + } + if fields := _q.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, organization.FieldID) + for i := range fields { + if fields[i] != organization.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + if _q.withParent != nil { + _spec.Node.AddColumnOnce(organization.FieldParentOrganizationID) + } + if _q.withAvatarFile != nil { + _spec.Node.AddColumnOnce(organization.FieldAvatarLocalFileID) + } + } + if ps := _q.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := _q.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := _q.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := _q.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (_q *OrganizationQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) + t1 := builder.Table(organization.Table) + columns := _q.ctx.Fields + if len(columns) == 0 { + columns = organization.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if _q.sql != nil { + selector = _q.sql + selector.Select(selector.Columns(columns...)...) + } + if _q.ctx.Unique != nil && *_q.ctx.Unique { + selector.Distinct() + } + t1.Schema(_q.schemaConfig.Organization) + ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) + selector.WithContext(ctx) + for _, m := range _q.modifiers { + m(selector) + } + for _, p := range _q.predicates { + p(selector) + } + for _, p := range _q.order { + p(selector) + } + if offset := _q.ctx.Offset; offset != nil { + // limit is mandatory for offset clause. We start + // with default value, and override it below if needed. + selector.Offset(*offset).Limit(math.MaxInt32) + } + if limit := _q.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (_q *OrganizationQuery) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect { + _q.modifiers = append(_q.modifiers, modifiers...) + return _q.Select() +} + +// WithNamedActionPlanCreators tells the query-builder to eager-load the nodes that are connected to the "action_plan_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedActionPlanCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedActionPlanCreators == nil { + _q.withNamedActionPlanCreators = make(map[string]*GroupQuery) + } + _q.withNamedActionPlanCreators[name] = query + return _q +} + +// WithNamedAPITokenCreators tells the query-builder to eager-load the nodes that are connected to the "api_token_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAPITokenCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAPITokenCreators == nil { + _q.withNamedAPITokenCreators = make(map[string]*GroupQuery) + } + _q.withNamedAPITokenCreators[name] = query + return _q +} + +// WithNamedAssessmentCreators tells the query-builder to eager-load the nodes that are connected to the "assessment_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAssessmentCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAssessmentCreators == nil { + _q.withNamedAssessmentCreators = make(map[string]*GroupQuery) + } + _q.withNamedAssessmentCreators[name] = query + return _q +} + +// WithNamedAssetCreators tells the query-builder to eager-load the nodes that are connected to the "asset_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAssetCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAssetCreators == nil { + _q.withNamedAssetCreators = make(map[string]*GroupQuery) + } + _q.withNamedAssetCreators[name] = query + return _q +} + +// WithNamedCampaignCreators tells the query-builder to eager-load the nodes that are connected to the "campaign_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedCampaignCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedCampaignCreators == nil { + _q.withNamedCampaignCreators = make(map[string]*GroupQuery) + } + _q.withNamedCampaignCreators[name] = query + return _q +} + +// WithNamedCampaignTargetCreators tells the query-builder to eager-load the nodes that are connected to the "campaign_target_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedCampaignTargetCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedCampaignTargetCreators == nil { + _q.withNamedCampaignTargetCreators = make(map[string]*GroupQuery) + } + _q.withNamedCampaignTargetCreators[name] = query + return _q +} + +// WithNamedCheckResultCreators tells the query-builder to eager-load the nodes that are connected to the "check_result_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedCheckResultCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedCheckResultCreators == nil { + _q.withNamedCheckResultCreators = make(map[string]*GroupQuery) + } + _q.withNamedCheckResultCreators[name] = query + return _q +} + +// WithNamedContactCreators tells the query-builder to eager-load the nodes that are connected to the "contact_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedContactCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedContactCreators == nil { + _q.withNamedContactCreators = make(map[string]*GroupQuery) + } + _q.withNamedContactCreators[name] = query + return _q +} + +// WithNamedControlCreators tells the query-builder to eager-load the nodes that are connected to the "control_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedControlCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedControlCreators == nil { + _q.withNamedControlCreators = make(map[string]*GroupQuery) + } + _q.withNamedControlCreators[name] = query + return _q +} + +// WithNamedControlImplementationCreators tells the query-builder to eager-load the nodes that are connected to the "control_implementation_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedControlImplementationCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedControlImplementationCreators == nil { + _q.withNamedControlImplementationCreators = make(map[string]*GroupQuery) + } + _q.withNamedControlImplementationCreators[name] = query + return _q +} + +// WithNamedControlObjectiveCreators tells the query-builder to eager-load the nodes that are connected to the "control_objective_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedControlObjectiveCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedControlObjectiveCreators == nil { + _q.withNamedControlObjectiveCreators = make(map[string]*GroupQuery) + } + _q.withNamedControlObjectiveCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadReviews(ctx context.Context, query *ReviewQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Review)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedCustomTypeEnumCreators tells the query-builder to eager-load the nodes that are connected to the "custom_type_enum_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedCustomTypeEnumCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(review.FieldOwnerID) + if _q.withNamedCustomTypeEnumCreators == nil { + _q.withNamedCustomTypeEnumCreators = make(map[string]*GroupQuery) } - query.Where(predicate.Review(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ReviewsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedCustomTypeEnumCreators[name] = query + return _q +} + +// WithNamedDiscussionCreators tells the query-builder to eager-load the nodes that are connected to the "discussion_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedDiscussionCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedDiscussionCreators == nil { + _q.withNamedDiscussionCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedDiscussionCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadVulnerabilities(ctx context.Context, query *VulnerabilityQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Vulnerability)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedEmailTemplateCreators tells the query-builder to eager-load the nodes that are connected to the "email_template_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedEmailTemplateCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(vulnerability.FieldOwnerID) + if _q.withNamedEmailTemplateCreators == nil { + _q.withNamedEmailTemplateCreators = make(map[string]*GroupQuery) } - query.Where(predicate.Vulnerability(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.VulnerabilitiesColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedEmailTemplateCreators[name] = query + return _q +} + +// WithNamedEntityCreators tells the query-builder to eager-load the nodes that are connected to the "entity_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedEntityCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedEntityCreators == nil { + _q.withNamedEntityCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedEntityCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadNotifications(ctx context.Context, query *NotificationQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Notification)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedEntityTypeCreators tells the query-builder to eager-load the nodes that are connected to the "entity_type_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedEntityTypeCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(notification.FieldOwnerID) + if _q.withNamedEntityTypeCreators == nil { + _q.withNamedEntityTypeCreators = make(map[string]*GroupQuery) } - query.Where(predicate.Notification(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NotificationsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedEntityTypeCreators[name] = query + return _q +} + +// WithNamedEvidenceCreators tells the query-builder to eager-load the nodes that are connected to the "evidence_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedEvidenceCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedEvidenceCreators == nil { + _q.withNamedEvidenceCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedEvidenceCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowDefinitions(ctx context.Context, query *WorkflowDefinitionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowDefinition)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedExportCreators tells the query-builder to eager-load the nodes that are connected to the "export_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedExportCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowdefinition.FieldOwnerID) + if _q.withNamedExportCreators == nil { + _q.withNamedExportCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowDefinition(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowDefinitionsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedExportCreators[name] = query + return _q +} + +// WithNamedFileCreators tells the query-builder to eager-load the nodes that are connected to the "file_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedFileCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedFileCreators == nil { + _q.withNamedFileCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedFileCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowInstances(ctx context.Context, query *WorkflowInstanceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowInstance)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedFindingCreators tells the query-builder to eager-load the nodes that are connected to the "finding_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedFindingCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowinstance.FieldOwnerID) + if _q.withNamedFindingCreators == nil { + _q.withNamedFindingCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowInstance(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowInstancesColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedFindingCreators[name] = query + return _q +} + +// WithNamedGroupCreators tells the query-builder to eager-load the nodes that are connected to the "group_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedGroupCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedGroupCreators == nil { + _q.withNamedGroupCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedGroupCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowEvents(ctx context.Context, query *WorkflowEventQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowEvent)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedIdentityHolderCreators tells the query-builder to eager-load the nodes that are connected to the "identity_holder_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedIdentityHolderCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowevent.FieldOwnerID) + if _q.withNamedIdentityHolderCreators == nil { + _q.withNamedIdentityHolderCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowEvent(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowEventsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedIdentityHolderCreators[name] = query + return _q +} + +// WithNamedIntegrationCreators tells the query-builder to eager-load the nodes that are connected to the "integration_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedIntegrationCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedIntegrationCreators == nil { + _q.withNamedIntegrationCreators = make(map[string]*GroupQuery) + } + _q.withNamedIntegrationCreators[name] = query + return _q +} + +// WithNamedIntegrationWebhookCreators tells the query-builder to eager-load the nodes that are connected to the "integration_webhook_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedIntegrationWebhookCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - return nil + if _q.withNamedIntegrationWebhookCreators == nil { + _q.withNamedIntegrationWebhookCreators = make(map[string]*GroupQuery) + } + _q.withNamedIntegrationWebhookCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowAssignments(ctx context.Context, query *WorkflowAssignmentQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowAssignment)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedInternalPolicyCreators tells the query-builder to eager-load the nodes that are connected to the "internal_policy_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedInternalPolicyCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowassignment.FieldOwnerID) + if _q.withNamedInternalPolicyCreators == nil { + _q.withNamedInternalPolicyCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowAssignment(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowAssignmentsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedInternalPolicyCreators[name] = query + return _q +} + +// WithNamedJobRunnerCreators tells the query-builder to eager-load the nodes that are connected to the "job_runner_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedJobRunnerCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedJobRunnerCreators == nil { + _q.withNamedJobRunnerCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedJobRunnerCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowAssignmentTargets(ctx context.Context, query *WorkflowAssignmentTargetQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowAssignmentTarget)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedJobRunnerRegistrationTokenCreators tells the query-builder to eager-load the nodes that are connected to the "job_runner_registration_token_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedJobRunnerRegistrationTokenCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowassignmenttarget.FieldOwnerID) + if _q.withNamedJobRunnerRegistrationTokenCreators == nil { + _q.withNamedJobRunnerRegistrationTokenCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowAssignmentTarget(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowAssignmentTargetsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedJobRunnerRegistrationTokenCreators[name] = query + return _q +} + +// WithNamedJobRunnerTokenCreators tells the query-builder to eager-load the nodes that are connected to the "job_runner_token_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedJobRunnerTokenCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedJobRunnerTokenCreators == nil { + _q.withNamedJobRunnerTokenCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedJobRunnerTokenCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowObjectRefs(ctx context.Context, query *WorkflowObjectRefQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowObjectRef)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedJobTemplateCreators tells the query-builder to eager-load the nodes that are connected to the "job_template_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedJobTemplateCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowobjectref.FieldOwnerID) + if _q.withNamedJobTemplateCreators == nil { + _q.withNamedJobTemplateCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowObjectRef(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowObjectRefsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedJobTemplateCreators[name] = query + return _q +} + +// WithNamedMappedControlCreators tells the query-builder to eager-load the nodes that are connected to the "mapped_control_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedMappedControlCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedMappedControlCreators == nil { + _q.withNamedMappedControlCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedMappedControlCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadWorkflowProposals(ctx context.Context, query *WorkflowProposalQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *WorkflowProposal)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedNarrativeCreators tells the query-builder to eager-load the nodes that are connected to the "narrative_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedNarrativeCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(workflowproposal.FieldOwnerID) + if _q.withNamedNarrativeCreators == nil { + _q.withNamedNarrativeCreators = make(map[string]*GroupQuery) } - query.Where(predicate.WorkflowProposal(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowProposalsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedNarrativeCreators[name] = query + return _q +} + +// WithNamedNoteCreators tells the query-builder to eager-load the nodes that are connected to the "note_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedNoteCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedNoteCreators == nil { + _q.withNamedNoteCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedNoteCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadDirectoryAccounts(ctx context.Context, query *DirectoryAccountQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryAccount)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedNotificationTemplateCreators tells the query-builder to eager-load the nodes that are connected to the "notification_template_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedNotificationTemplateCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(directoryaccount.FieldOwnerID) + if _q.withNamedNotificationTemplateCreators == nil { + _q.withNamedNotificationTemplateCreators = make(map[string]*GroupQuery) } - query.Where(predicate.DirectoryAccount(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectoryAccountsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedNotificationTemplateCreators[name] = query + return _q +} + +// WithNamedOrganizationCreators tells the query-builder to eager-load the nodes that are connected to the "organization_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedOrganizationCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedOrganizationCreators == nil { + _q.withNamedOrganizationCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedOrganizationCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadDirectoryGroups(ctx context.Context, query *DirectoryGroupQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryGroup)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedPlatformCreators tells the query-builder to eager-load the nodes that are connected to the "platform_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedPlatformCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(directorygroup.FieldOwnerID) + if _q.withNamedPlatformCreators == nil { + _q.withNamedPlatformCreators = make(map[string]*GroupQuery) } - query.Where(predicate.DirectoryGroup(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectoryGroupsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedPlatformCreators[name] = query + return _q +} + +// WithNamedProcedureCreators tells the query-builder to eager-load the nodes that are connected to the "procedure_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedProcedureCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedProcedureCreators == nil { + _q.withNamedProcedureCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedProcedureCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadDirectoryMemberships(ctx context.Context, query *DirectoryMembershipQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectoryMembership)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedProgramCreators tells the query-builder to eager-load the nodes that are connected to the "program_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedProgramCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(directorymembership.FieldOwnerID) + if _q.withNamedProgramCreators == nil { + _q.withNamedProgramCreators = make(map[string]*GroupQuery) } - query.Where(predicate.DirectoryMembership(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectoryMembershipsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedProgramCreators[name] = query + return _q +} + +// WithNamedRemediationCreators tells the query-builder to eager-load the nodes that are connected to the "remediation_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedRemediationCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedRemediationCreators == nil { + _q.withNamedRemediationCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedRemediationCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadDirectorySyncRuns(ctx context.Context, query *DirectorySyncRunQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *DirectorySyncRun)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedReviewCreators tells the query-builder to eager-load the nodes that are connected to the "review_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedReviewCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(directorysyncrun.FieldOwnerID) + if _q.withNamedReviewCreators == nil { + _q.withNamedReviewCreators = make(map[string]*GroupQuery) } - query.Where(predicate.DirectorySyncRun(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectorySyncRunsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedReviewCreators[name] = query + return _q +} + +// WithNamedRiskCreators tells the query-builder to eager-load the nodes that are connected to the "risk_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedRiskCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedRiskCreators == nil { + _q.withNamedRiskCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedRiskCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadDiscussions(ctx context.Context, query *DiscussionQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Discussion)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedScanCreators tells the query-builder to eager-load the nodes that are connected to the "scan_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedScanCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(discussion.FieldOwnerID) + if _q.withNamedScanCreators == nil { + _q.withNamedScanCreators = make(map[string]*GroupQuery) } - query.Where(predicate.Discussion(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DiscussionsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedScanCreators[name] = query + return _q +} + +// WithNamedScheduledJobCreators tells the query-builder to eager-load the nodes that are connected to the "scheduled_job_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedScheduledJobCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedScheduledJobCreators == nil { + _q.withNamedScheduledJobCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedScheduledJobCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadVendorScoringConfigs(ctx context.Context, query *VendorScoringConfigQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *VendorScoringConfig)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedScheduledJobRunCreators tells the query-builder to eager-load the nodes that are connected to the "scheduled_job_run_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedScheduledJobRunCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(vendorscoringconfig.FieldOwnerID) + if _q.withNamedScheduledJobRunCreators == nil { + _q.withNamedScheduledJobRunCreators = make(map[string]*GroupQuery) } - query.Where(predicate.VendorScoringConfig(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.VendorScoringConfigsColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedScheduledJobRunCreators[name] = query + return _q +} + +// WithNamedStandardCreators tells the query-builder to eager-load the nodes that are connected to the "standard_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedStandardCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedStandardCreators == nil { + _q.withNamedStandardCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedStandardCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadVendorRiskScores(ctx context.Context, query *VendorRiskScoreQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *VendorRiskScore)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } + +// WithNamedSubcontrolCreators tells the query-builder to eager-load the nodes that are connected to the "subcontrol_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedSubcontrolCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.withFKs = true - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(vendorriskscore.FieldOwnerID) + if _q.withNamedSubcontrolCreators == nil { + _q.withNamedSubcontrolCreators = make(map[string]*GroupQuery) } - query.Where(predicate.VendorRiskScore(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.VendorRiskScoresColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + _q.withNamedSubcontrolCreators[name] = query + return _q +} + +// WithNamedSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to the "subprocessor_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedSubprocessorCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, n := range neighbors { - fk := n.OwnerID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "owner_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + if _q.withNamedSubprocessorCreators == nil { + _q.withNamedSubprocessorCreators = make(map[string]*GroupQuery) } - return nil + _q.withNamedSubprocessorCreators[name] = query + return _q } -func (_q *OrganizationQuery) loadMembers(ctx context.Context, query *OrgMembershipQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *OrgMembership)) error { - fks := make([]driver.Value, 0, len(nodes)) - nodeids := make(map[string]*Organization) - for i := range nodes { - fks = append(fks, nodes[i].ID) - nodeids[nodes[i].ID] = nodes[i] - if init != nil { - init(nodes[i]) - } - } - if len(query.ctx.Fields) > 0 { - query.ctx.AppendFieldOnce(orgmembership.FieldOrganizationID) + +// WithNamedSubscriberCreators tells the query-builder to eager-load the nodes that are connected to the "subscriber_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedSubscriberCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - query.Where(predicate.OrgMembership(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.MembersColumn), fks...)) - })) - neighbors, err := query.All(ctx) - if err != nil { - return err + if _q.withNamedSubscriberCreators == nil { + _q.withNamedSubscriberCreators = make(map[string]*GroupQuery) } - for _, n := range neighbors { - fk := n.OrganizationID - node, ok := nodeids[fk] - if !ok { - return fmt.Errorf(`unexpected referenced foreign-key "organization_id" returned %v for node %v`, fk, n.ID) - } - assign(node, n) + _q.withNamedSubscriberCreators[name] = query + return _q +} + +// WithNamedSystemDetailCreators tells the query-builder to eager-load the nodes that are connected to the "system_detail_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedSystemDetailCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - return nil + if _q.withNamedSystemDetailCreators == nil { + _q.withNamedSystemDetailCreators = make(map[string]*GroupQuery) + } + _q.withNamedSystemDetailCreators[name] = query + return _q } -func (_q *OrganizationQuery) sqlCount(ctx context.Context) (int, error) { - _spec := _q.querySpec() - _spec.Node.Schema = _q.schemaConfig.Organization - ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) - if len(_q.modifiers) > 0 { - _spec.Modifiers = _q.modifiers +// WithNamedTagDefinitionCreators tells the query-builder to eager-load the nodes that are connected to the "tag_definition_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTagDefinitionCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - _spec.Node.Columns = _q.ctx.Fields - if len(_q.ctx.Fields) > 0 { - _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique + if _q.withNamedTagDefinitionCreators == nil { + _q.withNamedTagDefinitionCreators = make(map[string]*GroupQuery) } - return sqlgraph.CountNodes(ctx, _q.driver, _spec) + _q.withNamedTagDefinitionCreators[name] = query + return _q } -func (_q *OrganizationQuery) querySpec() *sqlgraph.QuerySpec { - _spec := sqlgraph.NewQuerySpec(organization.Table, organization.Columns, sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString)) - _spec.From = _q.sql - if unique := _q.ctx.Unique; unique != nil { - _spec.Unique = *unique - } else if _q.path != nil { - _spec.Unique = true - } - if fields := _q.ctx.Fields; len(fields) > 0 { - _spec.Node.Columns = make([]string, 0, len(fields)) - _spec.Node.Columns = append(_spec.Node.Columns, organization.FieldID) - for i := range fields { - if fields[i] != organization.FieldID { - _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) - } - } - if _q.withParent != nil { - _spec.Node.AddColumnOnce(organization.FieldParentOrganizationID) - } - if _q.withAvatarFile != nil { - _spec.Node.AddColumnOnce(organization.FieldAvatarLocalFileID) - } - } - if ps := _q.predicates; len(ps) > 0 { - _spec.Predicate = func(selector *sql.Selector) { - for i := range ps { - ps[i](selector) - } - } +// WithNamedTaskCreators tells the query-builder to eager-load the nodes that are connected to the "task_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTaskCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if limit := _q.ctx.Limit; limit != nil { - _spec.Limit = *limit + if _q.withNamedTaskCreators == nil { + _q.withNamedTaskCreators = make(map[string]*GroupQuery) } - if offset := _q.ctx.Offset; offset != nil { - _spec.Offset = *offset + _q.withNamedTaskCreators[name] = query + return _q +} + +// WithNamedTemplateCreators tells the query-builder to eager-load the nodes that are connected to the "template_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTemplateCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if ps := _q.order; len(ps) > 0 { - _spec.Order = func(selector *sql.Selector) { - for i := range ps { - ps[i](selector) - } - } + if _q.withNamedTemplateCreators == nil { + _q.withNamedTemplateCreators = make(map[string]*GroupQuery) } - return _spec + _q.withNamedTemplateCreators[name] = query + return _q } -func (_q *OrganizationQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(_q.driver.Dialect()) - t1 := builder.Table(organization.Table) - columns := _q.ctx.Fields - if len(columns) == 0 { - columns = organization.Columns +// WithNamedTrustCenterCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTrustCenterCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - selector := builder.Select(t1.Columns(columns...)...).From(t1) - if _q.sql != nil { - selector = _q.sql - selector.Select(selector.Columns(columns...)...) + if _q.withNamedTrustCenterCreators == nil { + _q.withNamedTrustCenterCreators = make(map[string]*GroupQuery) } - if _q.ctx.Unique != nil && *_q.ctx.Unique { - selector.Distinct() + _q.withNamedTrustCenterCreators[name] = query + return _q +} + +// WithNamedTrustCenterComplianceCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_compliance_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTrustCenterComplianceCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - t1.Schema(_q.schemaConfig.Organization) - ctx = internal.NewSchemaConfigContext(ctx, _q.schemaConfig) - selector.WithContext(ctx) - for _, m := range _q.modifiers { - m(selector) + if _q.withNamedTrustCenterComplianceCreators == nil { + _q.withNamedTrustCenterComplianceCreators = make(map[string]*GroupQuery) } - for _, p := range _q.predicates { - p(selector) + _q.withNamedTrustCenterComplianceCreators[name] = query + return _q +} + +// WithNamedTrustCenterDocCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_doc_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTrustCenterDocCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - for _, p := range _q.order { - p(selector) + if _q.withNamedTrustCenterDocCreators == nil { + _q.withNamedTrustCenterDocCreators = make(map[string]*GroupQuery) } - if offset := _q.ctx.Offset; offset != nil { - // limit is mandatory for offset clause. We start - // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt32) + _q.withNamedTrustCenterDocCreators[name] = query + return _q +} + +// WithNamedTrustCenterEntityCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_entity_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTrustCenterEntityCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) } - if limit := _q.ctx.Limit; limit != nil { - selector.Limit(*limit) + if _q.withNamedTrustCenterEntityCreators == nil { + _q.withNamedTrustCenterEntityCreators = make(map[string]*GroupQuery) } - return selector + _q.withNamedTrustCenterEntityCreators[name] = query + return _q } -// Modify adds a query modifier for attaching custom logic to queries. -func (_q *OrganizationQuery) Modify(modifiers ...func(s *sql.Selector)) *OrganizationSelect { - _q.modifiers = append(_q.modifiers, modifiers...) - return _q.Select() +// WithNamedTrustCenterFaqCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_faq_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedTrustCenterFaqCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedTrustCenterFaqCreators == nil { + _q.withNamedTrustCenterFaqCreators = make(map[string]*GroupQuery) + } + _q.withNamedTrustCenterFaqCreators[name] = query + return _q } -// WithNamedControlCreators tells the query-builder to eager-load the nodes that are connected to the "control_creators" +// WithNamedTrustCenterNdaRequestCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_nda_request_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedControlCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedTrustCenterNdaRequestCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedControlCreators == nil { - _q.withNamedControlCreators = make(map[string]*GroupQuery) + if _q.withNamedTrustCenterNdaRequestCreators == nil { + _q.withNamedTrustCenterNdaRequestCreators = make(map[string]*GroupQuery) } - _q.withNamedControlCreators[name] = query + _q.withNamedTrustCenterNdaRequestCreators[name] = query return _q } -// WithNamedControlImplementationCreators tells the query-builder to eager-load the nodes that are connected to the "control_implementation_creators" +// WithNamedTrustCenterSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_subprocessor_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedControlImplementationCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedTrustCenterSubprocessorCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedControlImplementationCreators == nil { - _q.withNamedControlImplementationCreators = make(map[string]*GroupQuery) + if _q.withNamedTrustCenterSubprocessorCreators == nil { + _q.withNamedTrustCenterSubprocessorCreators = make(map[string]*GroupQuery) } - _q.withNamedControlImplementationCreators[name] = query + _q.withNamedTrustCenterSubprocessorCreators[name] = query return _q } -// WithNamedControlObjectiveCreators tells the query-builder to eager-load the nodes that are connected to the "control_objective_creators" +// WithNamedTrustCenterWatermarkConfigCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_watermark_config_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedControlObjectiveCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedTrustCenterWatermarkConfigCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedControlObjectiveCreators == nil { - _q.withNamedControlObjectiveCreators = make(map[string]*GroupQuery) + if _q.withNamedTrustCenterWatermarkConfigCreators == nil { + _q.withNamedTrustCenterWatermarkConfigCreators = make(map[string]*GroupQuery) } - _q.withNamedControlObjectiveCreators[name] = query + _q.withNamedTrustCenterWatermarkConfigCreators[name] = query return _q } -// WithNamedEvidenceCreators tells the query-builder to eager-load the nodes that are connected to the "evidence_creators" +// WithNamedUserCreators tells the query-builder to eager-load the nodes that are connected to the "user_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedEvidenceCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedUserCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedEvidenceCreators == nil { - _q.withNamedEvidenceCreators = make(map[string]*GroupQuery) + if _q.withNamedUserCreators == nil { + _q.withNamedUserCreators = make(map[string]*GroupQuery) } - _q.withNamedEvidenceCreators[name] = query + _q.withNamedUserCreators[name] = query return _q } -// WithNamedAssetCreators tells the query-builder to eager-load the nodes that are connected to the "asset_creators" +// WithNamedUserSettingCreators tells the query-builder to eager-load the nodes that are connected to the "user_setting_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedAssetCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedUserSettingCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedAssetCreators == nil { - _q.withNamedAssetCreators = make(map[string]*GroupQuery) + if _q.withNamedUserSettingCreators == nil { + _q.withNamedUserSettingCreators = make(map[string]*GroupQuery) } - _q.withNamedAssetCreators[name] = query + _q.withNamedUserSettingCreators[name] = query return _q } -// WithNamedFindingCreators tells the query-builder to eager-load the nodes that are connected to the "finding_creators" +// WithNamedVendorRiskScoreCreators tells the query-builder to eager-load the nodes that are connected to the "vendor_risk_score_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedFindingCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedVendorRiskScoreCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedFindingCreators == nil { - _q.withNamedFindingCreators = make(map[string]*GroupQuery) + if _q.withNamedVendorRiskScoreCreators == nil { + _q.withNamedVendorRiskScoreCreators = make(map[string]*GroupQuery) } - _q.withNamedFindingCreators[name] = query + _q.withNamedVendorRiskScoreCreators[name] = query return _q } @@ -10219,213 +15811,213 @@ func (_q *OrganizationQuery) WithNamedVulnerabilityCreators(name string, opts .. return _q } -// WithNamedGroupCreators tells the query-builder to eager-load the nodes that are connected to the "group_creators" +// WithNamedWorkflowAssignmentCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_assignment_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedGroupCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowAssignmentCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedGroupCreators == nil { - _q.withNamedGroupCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowAssignmentCreators == nil { + _q.withNamedWorkflowAssignmentCreators = make(map[string]*GroupQuery) } - _q.withNamedGroupCreators[name] = query + _q.withNamedWorkflowAssignmentCreators[name] = query return _q } -// WithNamedInternalPolicyCreators tells the query-builder to eager-load the nodes that are connected to the "internal_policy_creators" +// WithNamedWorkflowAssignmentTargetCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_assignment_target_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedInternalPolicyCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowAssignmentTargetCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedInternalPolicyCreators == nil { - _q.withNamedInternalPolicyCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowAssignmentTargetCreators == nil { + _q.withNamedWorkflowAssignmentTargetCreators = make(map[string]*GroupQuery) } - _q.withNamedInternalPolicyCreators[name] = query + _q.withNamedWorkflowAssignmentTargetCreators[name] = query return _q } -// WithNamedMappedControlCreators tells the query-builder to eager-load the nodes that are connected to the "mapped_control_creators" +// WithNamedWorkflowDefinitionCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_definition_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedMappedControlCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowDefinitionCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedMappedControlCreators == nil { - _q.withNamedMappedControlCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowDefinitionCreators == nil { + _q.withNamedWorkflowDefinitionCreators = make(map[string]*GroupQuery) } - _q.withNamedMappedControlCreators[name] = query + _q.withNamedWorkflowDefinitionCreators[name] = query return _q } -// WithNamedNarrativeCreators tells the query-builder to eager-load the nodes that are connected to the "narrative_creators" +// WithNamedWorkflowEventCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_event_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedNarrativeCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowEventCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedNarrativeCreators == nil { - _q.withNamedNarrativeCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowEventCreators == nil { + _q.withNamedWorkflowEventCreators = make(map[string]*GroupQuery) } - _q.withNamedNarrativeCreators[name] = query + _q.withNamedWorkflowEventCreators[name] = query return _q } -// WithNamedProcedureCreators tells the query-builder to eager-load the nodes that are connected to the "procedure_creators" +// WithNamedWorkflowInstanceCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_instance_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedProcedureCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowInstanceCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedProcedureCreators == nil { - _q.withNamedProcedureCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowInstanceCreators == nil { + _q.withNamedWorkflowInstanceCreators = make(map[string]*GroupQuery) } - _q.withNamedProcedureCreators[name] = query + _q.withNamedWorkflowInstanceCreators[name] = query return _q } -// WithNamedProgramCreators tells the query-builder to eager-load the nodes that are connected to the "program_creators" +// WithNamedWorkflowObjectRefCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_object_ref_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedProgramCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowObjectRefCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedProgramCreators == nil { - _q.withNamedProgramCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowObjectRefCreators == nil { + _q.withNamedWorkflowObjectRefCreators = make(map[string]*GroupQuery) } - _q.withNamedProgramCreators[name] = query + _q.withNamedWorkflowObjectRefCreators[name] = query return _q } -// WithNamedRiskCreators tells the query-builder to eager-load the nodes that are connected to the "risk_creators" +// WithNamedWorkflowProposalCreators tells the query-builder to eager-load the nodes that are connected to the "workflow_proposal_creators" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedRiskCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowProposalCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedRiskCreators == nil { - _q.withNamedRiskCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowProposalCreators == nil { + _q.withNamedWorkflowProposalCreators = make(map[string]*GroupQuery) } - _q.withNamedRiskCreators[name] = query + _q.withNamedWorkflowProposalCreators[name] = query return _q } -// WithNamedIdentityHolderCreators tells the query-builder to eager-load the nodes that are connected to the "identity_holder_creators" +// WithNamedCampaignsManager tells the query-builder to eager-load the nodes that are connected to the "campaigns_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedIdentityHolderCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedCampaignsManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedIdentityHolderCreators == nil { - _q.withNamedIdentityHolderCreators = make(map[string]*GroupQuery) + if _q.withNamedCampaignsManager == nil { + _q.withNamedCampaignsManager = make(map[string]*GroupQuery) } - _q.withNamedIdentityHolderCreators[name] = query + _q.withNamedCampaignsManager[name] = query return _q } -// WithNamedScheduledJobCreators tells the query-builder to eager-load the nodes that are connected to the "scheduled_job_creators" +// WithNamedComplianceManager tells the query-builder to eager-load the nodes that are connected to the "compliance_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedScheduledJobCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedComplianceManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedScheduledJobCreators == nil { - _q.withNamedScheduledJobCreators = make(map[string]*GroupQuery) + if _q.withNamedComplianceManager == nil { + _q.withNamedComplianceManager = make(map[string]*GroupQuery) } - _q.withNamedScheduledJobCreators[name] = query + _q.withNamedComplianceManager[name] = query return _q } -// WithNamedStandardCreators tells the query-builder to eager-load the nodes that are connected to the "standard_creators" +// WithNamedGroupManager tells the query-builder to eager-load the nodes that are connected to the "group_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedStandardCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedGroupManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedStandardCreators == nil { - _q.withNamedStandardCreators = make(map[string]*GroupQuery) + if _q.withNamedGroupManager == nil { + _q.withNamedGroupManager = make(map[string]*GroupQuery) } - _q.withNamedStandardCreators[name] = query + _q.withNamedGroupManager[name] = query return _q } -// WithNamedTemplateCreators tells the query-builder to eager-load the nodes that are connected to the "template_creators" +// WithNamedPoliciesManager tells the query-builder to eager-load the nodes that are connected to the "policies_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedTemplateCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedPoliciesManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedTemplateCreators == nil { - _q.withNamedTemplateCreators = make(map[string]*GroupQuery) + if _q.withNamedPoliciesManager == nil { + _q.withNamedPoliciesManager = make(map[string]*GroupQuery) } - _q.withNamedTemplateCreators[name] = query + _q.withNamedPoliciesManager[name] = query return _q } -// WithNamedSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to the "subprocessor_creators" +// WithNamedRegistryManager tells the query-builder to eager-load the nodes that are connected to the "registry_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedSubprocessorCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedRegistryManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedSubprocessorCreators == nil { - _q.withNamedSubprocessorCreators = make(map[string]*GroupQuery) + if _q.withNamedRegistryManager == nil { + _q.withNamedRegistryManager = make(map[string]*GroupQuery) } - _q.withNamedSubprocessorCreators[name] = query + _q.withNamedRegistryManager[name] = query return _q } -// WithNamedTrustCenterDocCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_doc_creators" +// WithNamedRiskManager tells the query-builder to eager-load the nodes that are connected to the "risk_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedTrustCenterDocCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedRiskManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedTrustCenterDocCreators == nil { - _q.withNamedTrustCenterDocCreators = make(map[string]*GroupQuery) + if _q.withNamedRiskManager == nil { + _q.withNamedRiskManager = make(map[string]*GroupQuery) } - _q.withNamedTrustCenterDocCreators[name] = query + _q.withNamedRiskManager[name] = query return _q } -// WithNamedTrustCenterSubprocessorCreators tells the query-builder to eager-load the nodes that are connected to the "trust_center_subprocessor_creators" +// WithNamedTrustCenterManager tells the query-builder to eager-load the nodes that are connected to the "trust_center_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedTrustCenterSubprocessorCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedTrustCenterManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedTrustCenterSubprocessorCreators == nil { - _q.withNamedTrustCenterSubprocessorCreators = make(map[string]*GroupQuery) + if _q.withNamedTrustCenterManager == nil { + _q.withNamedTrustCenterManager = make(map[string]*GroupQuery) } - _q.withNamedTrustCenterSubprocessorCreators[name] = query + _q.withNamedTrustCenterManager[name] = query return _q } -// WithNamedActionPlanCreators tells the query-builder to eager-load the nodes that are connected to the "action_plan_creators" +// WithNamedWorkflowsManager tells the query-builder to eager-load the nodes that are connected to the "workflows_manager" // edge with the given name. The optional arguments are used to configure the query builder of the edge. -func (_q *OrganizationQuery) WithNamedActionPlanCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { +func (_q *OrganizationQuery) WithNamedWorkflowsManager(name string, opts ...func(*GroupQuery)) *OrganizationQuery { query := (&GroupClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - if _q.withNamedActionPlanCreators == nil { - _q.withNamedActionPlanCreators = make(map[string]*GroupQuery) + if _q.withNamedWorkflowsManager == nil { + _q.withNamedWorkflowsManager = make(map[string]*GroupQuery) } - _q.withNamedActionPlanCreators[name] = query + _q.withNamedWorkflowsManager[name] = query return _q } diff --git a/internal/ent/generated/organization_update.go b/internal/ent/generated/organization_update.go index 5749e40431..2b2b1a0745 100644 --- a/internal/ent/generated/organization_update.go +++ b/internal/ent/generated/organization_update.go @@ -531,21 +531,6 @@ func (_u *OrganizationUpdate) AddDiscussionCreators(v ...*Group) *OrganizationUp return _u.AddDiscussionCreatorIDs(ids...) } -// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdate) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.AddEmailBrandingCreatorIDs(ids...) - return _u -} - -// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. -func (_u *OrganizationUpdate) AddEmailBrandingCreators(v ...*Group) *OrganizationUpdate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddEmailBrandingCreatorIDs(ids...) -} - // AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. func (_u *OrganizationUpdate) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdate { _u.mutation.AddEmailTemplateCreatorIDs(ids...) @@ -3127,27 +3112,6 @@ func (_u *OrganizationUpdate) RemoveDiscussionCreators(v ...*Group) *Organizatio return _u.RemoveDiscussionCreatorIDs(ids...) } -// ClearEmailBrandingCreators clears all "email_branding_creators" edges to the Group entity. -func (_u *OrganizationUpdate) ClearEmailBrandingCreators() *OrganizationUpdate { - _u.mutation.ClearEmailBrandingCreators() - return _u -} - -// RemoveEmailBrandingCreatorIDs removes the "email_branding_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdate) RemoveEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdate { - _u.mutation.RemoveEmailBrandingCreatorIDs(ids...) - return _u -} - -// RemoveEmailBrandingCreators removes "email_branding_creators" edges to Group entities. -func (_u *OrganizationUpdate) RemoveEmailBrandingCreators(v ...*Group) *OrganizationUpdate { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.RemoveEmailBrandingCreatorIDs(ids...) -} - // ClearEmailTemplateCreators clears all "email_template_creators" edges to the Group entity. func (_u *OrganizationUpdate) ClearEmailTemplateCreators() *OrganizationUpdate { _u.mutation.ClearEmailTemplateCreators() @@ -7104,54 +7068,6 @@ func (_u *OrganizationUpdate) sqlSave(ctx context.Context) (_node int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EmailBrandingCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.RemovedEmailBrandingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailBrandingCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } if _u.mutation.EmailTemplateCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, @@ -14920,21 +14836,6 @@ func (_u *OrganizationUpdateOne) AddDiscussionCreators(v ...*Group) *Organizatio return _u.AddDiscussionCreatorIDs(ids...) } -// AddEmailBrandingCreatorIDs adds the "email_branding_creators" edge to the Group entity by IDs. -func (_u *OrganizationUpdateOne) AddEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.AddEmailBrandingCreatorIDs(ids...) - return _u -} - -// AddEmailBrandingCreators adds the "email_branding_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) AddEmailBrandingCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.AddEmailBrandingCreatorIDs(ids...) -} - // AddEmailTemplateCreatorIDs adds the "email_template_creators" edge to the Group entity by IDs. func (_u *OrganizationUpdateOne) AddEmailTemplateCreatorIDs(ids ...string) *OrganizationUpdateOne { _u.mutation.AddEmailTemplateCreatorIDs(ids...) @@ -17516,27 +17417,6 @@ func (_u *OrganizationUpdateOne) RemoveDiscussionCreators(v ...*Group) *Organiza return _u.RemoveDiscussionCreatorIDs(ids...) } -// ClearEmailBrandingCreators clears all "email_branding_creators" edges to the Group entity. -func (_u *OrganizationUpdateOne) ClearEmailBrandingCreators() *OrganizationUpdateOne { - _u.mutation.ClearEmailBrandingCreators() - return _u -} - -// RemoveEmailBrandingCreatorIDs removes the "email_branding_creators" edge to Group entities by IDs. -func (_u *OrganizationUpdateOne) RemoveEmailBrandingCreatorIDs(ids ...string) *OrganizationUpdateOne { - _u.mutation.RemoveEmailBrandingCreatorIDs(ids...) - return _u -} - -// RemoveEmailBrandingCreators removes "email_branding_creators" edges to Group entities. -func (_u *OrganizationUpdateOne) RemoveEmailBrandingCreators(v ...*Group) *OrganizationUpdateOne { - ids := make([]string, len(v)) - for i := range v { - ids[i] = v[i].ID - } - return _u.RemoveEmailBrandingCreatorIDs(ids...) -} - // ClearEmailTemplateCreators clears all "email_template_creators" edges to the Group entity. func (_u *OrganizationUpdateOne) ClearEmailTemplateCreators() *OrganizationUpdateOne { _u.mutation.ClearEmailTemplateCreators() @@ -21523,54 +21403,6 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if _u.mutation.EmailBrandingCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.RemovedEmailBrandingCreatorsIDs(); len(nodes) > 0 && !_u.mutation.EmailBrandingCreatorsCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := _u.mutation.EmailBrandingCreatorsIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, - Inverse: false, - Table: organization.EmailBrandingCreatorsTable, - Columns: []string{organization.EmailBrandingCreatorsColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), - }, - } - edge.Schema = _u.schemaConfig.Group - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } if _u.mutation.EmailTemplateCreatorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/generated/procedure/procedure.go b/internal/ent/generated/procedure/procedure.go index ac76ac155e..e0e07a7a3a 100644 --- a/internal/ent/generated/procedure/procedure.go +++ b/internal/ent/generated/procedure/procedure.go @@ -390,6 +390,8 @@ var ( DefaultImprovementSuggestions []string // DefaultDismissedImprovementSuggestions holds the default value on creation for the "dismissed_improvement_suggestions" field. DefaultDismissedImprovementSuggestions []string + // URLValidator is a validator for the "url" field. It is called by the builders before save. + URLValidator func(string) error // DefaultSystemOwned holds the default value on creation for the "system_owned" field. DefaultSystemOwned bool // DefaultWorkflowEligibleMarker holds the default value on creation for the "workflow_eligible_marker" field. diff --git a/internal/ent/generated/procedure_create.go b/internal/ent/generated/procedure_create.go index fc2d3a8141..450b58f7cc 100644 --- a/internal/ent/generated/procedure_create.go +++ b/internal/ent/generated/procedure_create.go @@ -889,6 +889,11 @@ func (_c *ProcedureCreate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "Procedure.review_frequency": %w`, err)} } } + if v, ok := _c.mutation.URL(); ok { + if err := procedure.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "Procedure.url": %w`, err)} + } + } return nil } diff --git a/internal/ent/generated/procedure_update.go b/internal/ent/generated/procedure_update.go index f1892f9a84..ae8cb63723 100644 --- a/internal/ent/generated/procedure_update.go +++ b/internal/ent/generated/procedure_update.go @@ -1300,6 +1300,11 @@ func (_u *ProcedureUpdate) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "Procedure.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := procedure.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "Procedure.url": %w`, err)} + } + } return nil } @@ -3618,6 +3623,11 @@ func (_u *ProcedureUpdateOne) check() error { return &ValidationError{Name: "review_frequency", err: fmt.Errorf(`generated: validator failed for field "Procedure.review_frequency": %w`, err)} } } + if v, ok := _u.mutation.URL(); ok { + if err := procedure.URLValidator(v); err != nil { + return &ValidationError{Name: "url", err: fmt.Errorf(`generated: validator failed for field "Procedure.url": %w`, err)} + } + } return nil } diff --git a/internal/ent/generated/runtime/runtime.go b/internal/ent/generated/runtime/runtime.go index 9d06679642..410950a7b3 100644 --- a/internal/ent/generated/runtime/runtime.go +++ b/internal/ent/generated/runtime/runtime.go @@ -338,6 +338,10 @@ func init() { actionplanDescDismissedImprovementSuggestions := actionplanMixinFields6[16].Descriptor() // actionplan.DefaultDismissedImprovementSuggestions holds the default value on creation for the dismissed_improvement_suggestions field. actionplan.DefaultDismissedImprovementSuggestions = actionplanDescDismissedImprovementSuggestions.Default.([]string) + // actionplanDescURL is the schema descriptor for url field. + actionplanDescURL := actionplanMixinFields6[17].Descriptor() + // actionplan.URLValidator is a validator for the "url" field. It is called by the builders before save. + actionplan.URLValidator = actionplanDescURL.Validators[0].(func(string) error) // actionplanDescOwnerID is the schema descriptor for owner_id field. actionplanDescOwnerID := actionplanMixinFields7[0].Descriptor() // actionplan.OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. @@ -392,31 +396,36 @@ func init() { assessment.Hooks[4] = assessmentMixinHooks5[0] - assessment.Hooks[5] = assessmentMixinHooks6[0] + assessment.Hooks[5] = assessmentMixinHooks5[1] - assessment.Hooks[6] = assessmentMixinHooks6[1] + assessment.Hooks[6] = assessmentMixinHooks6[0] - assessment.Hooks[7] = assessmentMixinHooks6[2] + assessment.Hooks[7] = assessmentMixinHooks6[1] - assessment.Hooks[8] = assessmentMixinHooks7[0] + assessment.Hooks[8] = assessmentMixinHooks6[2] - assessment.Hooks[9] = assessmentMixinHooks7[1] + assessment.Hooks[9] = assessmentMixinHooks7[0] - assessment.Hooks[10] = assessmentHooks[0] + assessment.Hooks[10] = assessmentMixinHooks7[1] - assessment.Hooks[11] = assessmentHooks[1] + assessment.Hooks[11] = assessmentHooks[0] + + assessment.Hooks[12] = assessmentHooks[1] assessmentMixinInters1 := assessmentMixin[1].Interceptors() assessmentMixinInters5 := assessmentMixin[5].Interceptors() assessmentInters := schema.Assessment{}.Interceptors() assessment.Interceptors[0] = assessmentMixinInters1[0] assessment.Interceptors[1] = assessmentMixinInters5[0] - assessment.Interceptors[2] = assessmentInters[0] + assessment.Interceptors[2] = assessmentMixinInters5[1] + assessment.Interceptors[3] = assessmentInters[0] assessmentMixinFields0 := assessmentMixin[0].Fields() _ = assessmentMixinFields0 assessmentMixinFields2 := assessmentMixin[2].Fields() _ = assessmentMixinFields2 assessmentMixinFields3 := assessmentMixin[3].Fields() _ = assessmentMixinFields3 + assessmentMixinFields5 := assessmentMixin[5].Fields() + _ = assessmentMixinFields5 assessmentMixinFields7 := assessmentMixin[7].Fields() _ = assessmentMixinFields7 assessmentFields := schema.Assessment{}.Fields() @@ -435,6 +444,10 @@ func init() { assessmentDescTags := assessmentMixinFields3[0].Descriptor() // assessment.DefaultTags holds the default value on creation for the tags field. assessment.DefaultTags = assessmentDescTags.Default.([]string) + // assessmentDescOwnerID is the schema descriptor for owner_id field. + assessmentDescOwnerID := assessmentMixinFields5[0].Descriptor() + // assessment.OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. + assessment.OwnerIDValidator = assessmentDescOwnerID.Validators[0].(func(string) error) // assessmentDescSystemOwned is the schema descriptor for system_owned field. assessmentDescSystemOwned := assessmentMixinFields7[0].Descriptor() // assessment.DefaultSystemOwned holds the default value on creation for the system_owned field. @@ -3876,6 +3889,10 @@ func init() { internalpolicyDescDismissedImprovementSuggestions := internalpolicyMixinFields9[16].Descriptor() // internalpolicy.DefaultDismissedImprovementSuggestions holds the default value on creation for the dismissed_improvement_suggestions field. internalpolicy.DefaultDismissedImprovementSuggestions = internalpolicyDescDismissedImprovementSuggestions.Default.([]string) + // internalpolicyDescURL is the schema descriptor for url field. + internalpolicyDescURL := internalpolicyMixinFields9[17].Descriptor() + // internalpolicy.URLValidator is a validator for the "url" field. It is called by the builders before save. + internalpolicy.URLValidator = internalpolicyDescURL.Validators[0].(func(string) error) // internalpolicyDescWorkflowEligibleMarker is the schema descriptor for workflow_eligible_marker field. internalpolicyDescWorkflowEligibleMarker := internalpolicyMixinFields13[0].Descriptor() // internalpolicy.DefaultWorkflowEligibleMarker holds the default value on creation for the workflow_eligible_marker field. @@ -5259,11 +5276,123 @@ func init() { organization.Hooks[25] = organizationMixinHooks5[21] - organization.Hooks[26] = organizationHooks[0] + organization.Hooks[26] = organizationMixinHooks5[22] + + organization.Hooks[27] = organizationMixinHooks5[23] + + organization.Hooks[28] = organizationMixinHooks5[24] + + organization.Hooks[29] = organizationMixinHooks5[25] + + organization.Hooks[30] = organizationMixinHooks5[26] + + organization.Hooks[31] = organizationMixinHooks5[27] + + organization.Hooks[32] = organizationMixinHooks5[28] + + organization.Hooks[33] = organizationMixinHooks5[29] + + organization.Hooks[34] = organizationMixinHooks5[30] + + organization.Hooks[35] = organizationMixinHooks5[31] + + organization.Hooks[36] = organizationMixinHooks5[32] + + organization.Hooks[37] = organizationMixinHooks5[33] + + organization.Hooks[38] = organizationMixinHooks5[34] + + organization.Hooks[39] = organizationMixinHooks5[35] + + organization.Hooks[40] = organizationMixinHooks5[36] + + organization.Hooks[41] = organizationMixinHooks5[37] + + organization.Hooks[42] = organizationMixinHooks5[38] + + organization.Hooks[43] = organizationMixinHooks5[39] + + organization.Hooks[44] = organizationMixinHooks5[40] + + organization.Hooks[45] = organizationMixinHooks5[41] + + organization.Hooks[46] = organizationMixinHooks5[42] + + organization.Hooks[47] = organizationMixinHooks5[43] + + organization.Hooks[48] = organizationMixinHooks5[44] + + organization.Hooks[49] = organizationMixinHooks5[45] + + organization.Hooks[50] = organizationMixinHooks5[46] + + organization.Hooks[51] = organizationMixinHooks5[47] + + organization.Hooks[52] = organizationMixinHooks5[48] + + organization.Hooks[53] = organizationMixinHooks5[49] + + organization.Hooks[54] = organizationMixinHooks5[50] + + organization.Hooks[55] = organizationMixinHooks5[51] + + organization.Hooks[56] = organizationMixinHooks5[52] + + organization.Hooks[57] = organizationMixinHooks5[53] + + organization.Hooks[58] = organizationMixinHooks5[54] + + organization.Hooks[59] = organizationMixinHooks5[55] + + organization.Hooks[60] = organizationMixinHooks5[56] - organization.Hooks[27] = organizationHooks[1] + organization.Hooks[61] = organizationMixinHooks5[57] - organization.Hooks[28] = organizationHooks[2] + organization.Hooks[62] = organizationMixinHooks5[58] + + organization.Hooks[63] = organizationMixinHooks5[59] + + organization.Hooks[64] = organizationMixinHooks5[60] + + organization.Hooks[65] = organizationMixinHooks5[61] + + organization.Hooks[66] = organizationMixinHooks5[62] + + organization.Hooks[67] = organizationMixinHooks5[63] + + organization.Hooks[68] = organizationMixinHooks5[64] + + organization.Hooks[69] = organizationMixinHooks5[65] + + organization.Hooks[70] = organizationMixinHooks5[66] + + organization.Hooks[71] = organizationMixinHooks5[67] + + organization.Hooks[72] = organizationMixinHooks5[68] + + organization.Hooks[73] = organizationMixinHooks5[69] + + organization.Hooks[74] = organizationMixinHooks5[70] + + organization.Hooks[75] = organizationMixinHooks5[71] + + organization.Hooks[76] = organizationMixinHooks5[72] + + organization.Hooks[77] = organizationMixinHooks5[73] + + organization.Hooks[78] = organizationMixinHooks5[74] + + organization.Hooks[79] = organizationMixinHooks5[75] + + organization.Hooks[80] = organizationMixinHooks5[76] + + organization.Hooks[81] = organizationMixinHooks5[77] + + organization.Hooks[82] = organizationHooks[0] + + organization.Hooks[83] = organizationHooks[1] + + organization.Hooks[84] = organizationHooks[2] organizationMixinInters1 := organizationMixin[1].Interceptors() organizationInters := schema.Organization{}.Interceptors() organization.Interceptors[0] = organizationMixinInters1[0] @@ -5867,6 +5996,10 @@ func init() { procedureDescDismissedImprovementSuggestions := procedureMixinFields8[16].Descriptor() // procedure.DefaultDismissedImprovementSuggestions holds the default value on creation for the dismissed_improvement_suggestions field. procedure.DefaultDismissedImprovementSuggestions = procedureDescDismissedImprovementSuggestions.Default.([]string) + // procedureDescURL is the schema descriptor for url field. + procedureDescURL := procedureMixinFields8[17].Descriptor() + // procedure.URLValidator is a validator for the "url" field. It is called by the builders before save. + procedure.URLValidator = procedureDescURL.Validators[0].(func(string) error) // procedureDescSystemOwned is the schema descriptor for system_owned field. procedureDescSystemOwned := procedureMixinFields9[0].Descriptor() // procedure.DefaultSystemOwned holds the default value on creation for the system_owned field. @@ -9299,16 +9432,31 @@ func init() { // workflowobjectref.DefaultID holds the default value on creation for the id field. workflowobjectref.DefaultID = workflowobjectrefDescID.Default.(func() string) workflowproposalMixin := schema.WorkflowProposal{}.Mixin() + workflowproposal.Policy = privacy.NewPolicies(schema.WorkflowProposal{}) + workflowproposal.Hooks[0] = func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + if err := workflowproposal.Policy.EvalMutation(ctx, m); err != nil { + return nil, err + } + return next.Mutate(ctx, m) + }) + } workflowproposalMixinHooks0 := workflowproposalMixin[0].Hooks() workflowproposalMixinHooks2 := workflowproposalMixin[2].Hooks() workflowproposalMixinHooks3 := workflowproposalMixin[3].Hooks() workflowproposalHooks := schema.WorkflowProposal{}.Hooks() - workflowproposal.Hooks[0] = workflowproposalMixinHooks0[0] - workflowproposal.Hooks[1] = workflowproposalMixinHooks2[0] - workflowproposal.Hooks[2] = workflowproposalMixinHooks3[0] - workflowproposal.Hooks[3] = workflowproposalMixinHooks3[1] - workflowproposal.Hooks[4] = workflowproposalHooks[0] - workflowproposal.Hooks[5] = workflowproposalHooks[1] + + workflowproposal.Hooks[1] = workflowproposalMixinHooks0[0] + + workflowproposal.Hooks[2] = workflowproposalMixinHooks2[0] + + workflowproposal.Hooks[3] = workflowproposalMixinHooks3[0] + + workflowproposal.Hooks[4] = workflowproposalMixinHooks3[1] + + workflowproposal.Hooks[5] = workflowproposalHooks[0] + + workflowproposal.Hooks[6] = workflowproposalHooks[1] workflowproposalMixinInters3 := workflowproposalMixin[3].Interceptors() workflowproposal.Interceptors[0] = workflowproposalMixinInters3[0] workflowproposal.Interceptors[1] = workflowproposalMixinInters3[1] diff --git a/internal/ent/historygenerated/assessmenthistory_update.go b/internal/ent/historygenerated/assessmenthistory_update.go index 7bb1d851d9..d54f593c37 100644 --- a/internal/ent/historygenerated/assessmenthistory_update.go +++ b/internal/ent/historygenerated/assessmenthistory_update.go @@ -124,26 +124,6 @@ func (_u *AssessmentHistoryUpdate) ClearTags() *AssessmentHistoryUpdate { return _u } -// SetOwnerID sets the "owner_id" field. -func (_u *AssessmentHistoryUpdate) SetOwnerID(v string) *AssessmentHistoryUpdate { - _u.mutation.SetOwnerID(v) - return _u -} - -// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. -func (_u *AssessmentHistoryUpdate) SetNillableOwnerID(v *string) *AssessmentHistoryUpdate { - if v != nil { - _u.SetOwnerID(*v) - } - return _u -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (_u *AssessmentHistoryUpdate) ClearOwnerID() *AssessmentHistoryUpdate { - _u.mutation.ClearOwnerID() - return _u -} - // SetInternalNotes sets the "internal_notes" field. func (_u *AssessmentHistoryUpdate) SetInternalNotes(v string) *AssessmentHistoryUpdate { _u.mutation.SetInternalNotes(v) @@ -375,9 +355,6 @@ func (_u *AssessmentHistoryUpdate) sqlSave(ctx context.Context) (_node int, err if _u.mutation.TagsCleared() { _spec.ClearField(assessmenthistory.FieldTags, field.TypeJSON) } - if value, ok := _u.mutation.OwnerID(); ok { - _spec.SetField(assessmenthistory.FieldOwnerID, field.TypeString, value) - } if _u.mutation.OwnerIDCleared() { _spec.ClearField(assessmenthistory.FieldOwnerID, field.TypeString) } @@ -540,26 +517,6 @@ func (_u *AssessmentHistoryUpdateOne) ClearTags() *AssessmentHistoryUpdateOne { return _u } -// SetOwnerID sets the "owner_id" field. -func (_u *AssessmentHistoryUpdateOne) SetOwnerID(v string) *AssessmentHistoryUpdateOne { - _u.mutation.SetOwnerID(v) - return _u -} - -// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. -func (_u *AssessmentHistoryUpdateOne) SetNillableOwnerID(v *string) *AssessmentHistoryUpdateOne { - if v != nil { - _u.SetOwnerID(*v) - } - return _u -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (_u *AssessmentHistoryUpdateOne) ClearOwnerID() *AssessmentHistoryUpdateOne { - _u.mutation.ClearOwnerID() - return _u -} - // SetInternalNotes sets the "internal_notes" field. func (_u *AssessmentHistoryUpdateOne) SetInternalNotes(v string) *AssessmentHistoryUpdateOne { _u.mutation.SetInternalNotes(v) @@ -821,9 +778,6 @@ func (_u *AssessmentHistoryUpdateOne) sqlSave(ctx context.Context) (_node *Asses if _u.mutation.TagsCleared() { _spec.ClearField(assessmenthistory.FieldTags, field.TypeJSON) } - if value, ok := _u.mutation.OwnerID(); ok { - _spec.SetField(assessmenthistory.FieldOwnerID, field.TypeString, value) - } if _u.mutation.OwnerIDCleared() { _spec.ClearField(assessmenthistory.FieldOwnerID, field.TypeString) } diff --git a/internal/ent/integrationgenerated/integration_mapping_generated.go b/internal/ent/integrationgenerated/integration_mapping_generated.go index 4ced28c4b9..21a61a49e6 100644 --- a/internal/ent/integrationgenerated/integration_mapping_generated.go +++ b/internal/ent/integrationgenerated/integration_mapping_generated.go @@ -6,25 +6,24 @@ import ( "github.com/theopenlane/core/pkg/gala" ) - // IntegrationMappingField describes an integration mapping target field type IntegrationMappingField struct { - InputKey string - GoField string - EntField string - Type string - Required bool + InputKey string + GoField string + EntField string + Type string + Required bool UpsertKey bool LookupKey bool } // IntegrationMappingSchema describes a schema with integration mapping fields type IntegrationMappingSchema struct { - Name string - Fields []IntegrationMappingField - AllowedKeys map[string]struct{} + Name string + Fields []IntegrationMappingField + AllowedKeys map[string]struct{} RequiredKeys []string - UpsertKeys []string + UpsertKeys []string StockPersist bool } @@ -33,46 +32,46 @@ type IntegrationIngestSource string const ( IntegrationIngestSourceOperation IntegrationIngestSource = "operation" - IntegrationIngestSourceWorkflow IntegrationIngestSource = "workflow" - IntegrationIngestSourceWebhook IntegrationIngestSource = "webhook" - IntegrationIngestSourceDirect IntegrationIngestSource = "direct" + IntegrationIngestSourceWorkflow IntegrationIngestSource = "workflow" + IntegrationIngestSourceWebhook IntegrationIngestSource = "webhook" + IntegrationIngestSourceDirect IntegrationIngestSource = "direct" ) // IntegrationIngestMetadata captures source-agnostic execution context for second-stage ingest handlers type IntegrationIngestMetadata struct { - IntegrationID string `json:"integrationId"` - DefinitionID string `json:"definitionId,omitempty"` - Operation string `json:"operation,omitempty"` - Variant string `json:"variant,omitempty"` - Source IntegrationIngestSource `json:"source,omitempty"` - RunID string `json:"runId,omitempty"` - Webhook string `json:"webhook,omitempty"` - WebhookEvent string `json:"webhookEvent,omitempty"` - DeliveryID string `json:"deliveryId,omitempty"` - WorkflowInstanceID string `json:"workflowInstanceId,omitempty"` - WorkflowActionKey string `json:"workflowActionKey,omitempty"` - WorkflowActionIndex int `json:"workflowActionIndex,omitempty"` - WorkflowObjectID string `json:"workflowObjectId,omitempty"` - WorkflowObjectType string `json:"workflowObjectType,omitempty"` + IntegrationID string `json:"integrationId"` + DefinitionID string `json:"definitionId,omitempty"` + Operation string `json:"operation,omitempty"` + Variant string `json:"variant,omitempty"` + Source IntegrationIngestSource `json:"source,omitempty"` + RunID string `json:"runId,omitempty"` + Webhook string `json:"webhook,omitempty"` + WebhookEvent string `json:"webhookEvent,omitempty"` + DeliveryID string `json:"deliveryId,omitempty"` + WorkflowInstanceID string `json:"workflowInstanceId,omitempty"` + WorkflowActionKey string `json:"workflowActionKey,omitempty"` + WorkflowActionIndex int `json:"workflowActionIndex,omitempty"` + WorkflowObjectID string `json:"workflowObjectId,omitempty"` + WorkflowObjectType string `json:"workflowObjectType,omitempty"` } const ( - IntegrationMappingSchemaAsset = "Asset" - IntegrationMappingSchemaCheckResult = "CheckResult" - IntegrationMappingSchemaContact = "Contact" - IntegrationMappingSchemaDirectoryAccount = "DirectoryAccount" - IntegrationMappingSchemaDirectoryGroup = "DirectoryGroup" + IntegrationMappingSchemaAsset = "Asset" + IntegrationMappingSchemaCheckResult = "CheckResult" + IntegrationMappingSchemaContact = "Contact" + IntegrationMappingSchemaDirectoryAccount = "DirectoryAccount" + IntegrationMappingSchemaDirectoryGroup = "DirectoryGroup" IntegrationMappingSchemaDirectoryMembership = "DirectoryMembership" - IntegrationMappingSchemaEntity = "Entity" - IntegrationMappingSchemaFinding = "Finding" - IntegrationMappingSchemaRisk = "Risk" - IntegrationMappingSchemaVulnerability = "Vulnerability" + IntegrationMappingSchemaEntity = "Entity" + IntegrationMappingSchemaFinding = "Finding" + IntegrationMappingSchemaRisk = "Risk" + IntegrationMappingSchemaVulnerability = "Vulnerability" ) // IntegrationIngestAssetRequested is the typed second-stage ingest contract for Asset records type IntegrationIngestAssetRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateAssetInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateAssetInput `json:"input"` } // IntegrationIngestAssetRequestedTopic is the typed Gala topic for Asset ingest requests @@ -82,8 +81,8 @@ var IntegrationIngestAssetRequestedTopic = gala.Topic[IntegrationIngestAssetRequ // IntegrationIngestCheckResultRequested is the typed second-stage ingest contract for CheckResult records type IntegrationIngestCheckResultRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateCheckResultInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateCheckResultInput `json:"input"` } // IntegrationIngestCheckResultRequestedTopic is the typed Gala topic for CheckResult ingest requests @@ -93,8 +92,8 @@ var IntegrationIngestCheckResultRequestedTopic = gala.Topic[IntegrationIngestChe // IntegrationIngestContactRequested is the typed second-stage ingest contract for Contact records type IntegrationIngestContactRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateContactInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateContactInput `json:"input"` } // IntegrationIngestContactRequestedTopic is the typed Gala topic for Contact ingest requests @@ -104,8 +103,8 @@ var IntegrationIngestContactRequestedTopic = gala.Topic[IntegrationIngestContact // IntegrationIngestDirectoryAccountRequested is the typed second-stage ingest contract for DirectoryAccount records type IntegrationIngestDirectoryAccountRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateDirectoryAccountInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateDirectoryAccountInput `json:"input"` } // IntegrationIngestDirectoryAccountRequestedTopic is the typed Gala topic for DirectoryAccount ingest requests @@ -115,8 +114,8 @@ var IntegrationIngestDirectoryAccountRequestedTopic = gala.Topic[IntegrationInge // IntegrationIngestDirectoryGroupRequested is the typed second-stage ingest contract for DirectoryGroup records type IntegrationIngestDirectoryGroupRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateDirectoryGroupInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateDirectoryGroupInput `json:"input"` } // IntegrationIngestDirectoryGroupRequestedTopic is the typed Gala topic for DirectoryGroup ingest requests @@ -126,8 +125,8 @@ var IntegrationIngestDirectoryGroupRequestedTopic = gala.Topic[IntegrationIngest // IntegrationIngestDirectoryMembershipRequested is the typed second-stage ingest contract for DirectoryMembership records type IntegrationIngestDirectoryMembershipRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateDirectoryMembershipInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateDirectoryMembershipInput `json:"input"` } // IntegrationIngestDirectoryMembershipRequestedTopic is the typed Gala topic for DirectoryMembership ingest requests @@ -137,8 +136,8 @@ var IntegrationIngestDirectoryMembershipRequestedTopic = gala.Topic[IntegrationI // IntegrationIngestEntityRequested is the typed second-stage ingest contract for Entity records type IntegrationIngestEntityRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateEntityInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateEntityInput `json:"input"` } // IntegrationIngestEntityRequestedTopic is the typed Gala topic for Entity ingest requests @@ -148,8 +147,8 @@ var IntegrationIngestEntityRequestedTopic = gala.Topic[IntegrationIngestEntityRe // IntegrationIngestFindingRequested is the typed second-stage ingest contract for Finding records type IntegrationIngestFindingRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateFindingInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateFindingInput `json:"input"` } // IntegrationIngestFindingRequestedTopic is the typed Gala topic for Finding ingest requests @@ -160,7 +159,7 @@ var IntegrationIngestFindingRequestedTopic = gala.Topic[IntegrationIngestFinding // IntegrationIngestRiskRequested is the typed second-stage ingest contract for Risk records type IntegrationIngestRiskRequested struct { Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateRiskInput `json:"input"` + Input generated.CreateRiskInput `json:"input"` } // IntegrationIngestRiskRequestedTopic is the typed Gala topic for Risk ingest requests @@ -170,8 +169,8 @@ var IntegrationIngestRiskRequestedTopic = gala.Topic[IntegrationIngestRiskReques // IntegrationIngestVulnerabilityRequested is the typed second-stage ingest contract for Vulnerability records type IntegrationIngestVulnerabilityRequested struct { - Metadata IntegrationIngestMetadata `json:"metadata"` - Input generated.CreateVulnerabilityInput `json:"input"` + Metadata IntegrationIngestMetadata `json:"metadata"` + Input generated.CreateVulnerabilityInput `json:"input"` } // IntegrationIngestVulnerabilityRequestedTopic is the typed Gala topic for Vulnerability ingest requests @@ -181,370 +180,370 @@ var IntegrationIngestVulnerabilityRequestedTopic = gala.Topic[IntegrationIngestV // Integration mapping keys for Asset. const ( - IntegrationMappingAssetAccessModelID = "accessModelID" - IntegrationMappingAssetAccessModelName = "accessModelName" - IntegrationMappingAssetAssetDataClassificationID = "assetDataClassificationID" + IntegrationMappingAssetAccessModelID = "accessModelID" + IntegrationMappingAssetAccessModelName = "accessModelName" + IntegrationMappingAssetAssetDataClassificationID = "assetDataClassificationID" IntegrationMappingAssetAssetDataClassificationName = "assetDataClassificationName" - IntegrationMappingAssetAssetSubtypeID = "assetSubtypeID" - IntegrationMappingAssetAssetSubtypeName = "assetSubtypeName" - IntegrationMappingAssetAssetType = "assetType" - IntegrationMappingAssetCategories = "categories" - IntegrationMappingAssetContainsPii = "containsPii" - IntegrationMappingAssetCostCenter = "costCenter" - IntegrationMappingAssetCriticalityID = "criticalityID" - IntegrationMappingAssetCriticalityName = "criticalityName" - IntegrationMappingAssetDescription = "description" - IntegrationMappingAssetDisplayName = "displayName" - IntegrationMappingAssetEncryptionStatusID = "encryptionStatusID" - IntegrationMappingAssetEncryptionStatusName = "encryptionStatusName" - IntegrationMappingAssetEnvironmentID = "environmentID" - IntegrationMappingAssetEnvironmentName = "environmentName" - IntegrationMappingAssetEstimatedMonthlyCost = "estimatedMonthlyCost" - IntegrationMappingAssetIdentifier = "identifier" - IntegrationMappingAssetIntegrationID = "integrationID" - IntegrationMappingAssetInternalNotes = "internalNotes" - IntegrationMappingAssetInternalOwner = "internalOwner" - IntegrationMappingAssetInternalOwnerGroupID = "internalOwnerGroupID" - IntegrationMappingAssetInternalOwnerUserID = "internalOwnerUserID" - IntegrationMappingAssetName = "name" - IntegrationMappingAssetObservedAt = "observedAt" - IntegrationMappingAssetOwnerID = "ownerID" - IntegrationMappingAssetPhysicalLocation = "physicalLocation" - IntegrationMappingAssetPurchaseDate = "purchaseDate" - IntegrationMappingAssetRegion = "region" - IntegrationMappingAssetScopeID = "scopeID" - IntegrationMappingAssetScopeName = "scopeName" - IntegrationMappingAssetSecurityTierID = "securityTierID" - IntegrationMappingAssetSecurityTierName = "securityTierName" - IntegrationMappingAssetSourceIdentifier = "sourceIdentifier" - IntegrationMappingAssetSourceType = "sourceType" - IntegrationMappingAssetSystemInternalID = "systemInternalID" - IntegrationMappingAssetTags = "tags" - IntegrationMappingAssetWebsite = "website" + IntegrationMappingAssetAssetSubtypeID = "assetSubtypeID" + IntegrationMappingAssetAssetSubtypeName = "assetSubtypeName" + IntegrationMappingAssetAssetType = "assetType" + IntegrationMappingAssetCategories = "categories" + IntegrationMappingAssetContainsPii = "containsPii" + IntegrationMappingAssetCostCenter = "costCenter" + IntegrationMappingAssetCriticalityID = "criticalityID" + IntegrationMappingAssetCriticalityName = "criticalityName" + IntegrationMappingAssetDescription = "description" + IntegrationMappingAssetDisplayName = "displayName" + IntegrationMappingAssetEncryptionStatusID = "encryptionStatusID" + IntegrationMappingAssetEncryptionStatusName = "encryptionStatusName" + IntegrationMappingAssetEnvironmentID = "environmentID" + IntegrationMappingAssetEnvironmentName = "environmentName" + IntegrationMappingAssetEstimatedMonthlyCost = "estimatedMonthlyCost" + IntegrationMappingAssetIdentifier = "identifier" + IntegrationMappingAssetIntegrationID = "integrationID" + IntegrationMappingAssetInternalNotes = "internalNotes" + IntegrationMappingAssetInternalOwner = "internalOwner" + IntegrationMappingAssetInternalOwnerGroupID = "internalOwnerGroupID" + IntegrationMappingAssetInternalOwnerUserID = "internalOwnerUserID" + IntegrationMappingAssetName = "name" + IntegrationMappingAssetObservedAt = "observedAt" + IntegrationMappingAssetOwnerID = "ownerID" + IntegrationMappingAssetPhysicalLocation = "physicalLocation" + IntegrationMappingAssetPurchaseDate = "purchaseDate" + IntegrationMappingAssetRegion = "region" + IntegrationMappingAssetScopeID = "scopeID" + IntegrationMappingAssetScopeName = "scopeName" + IntegrationMappingAssetSecurityTierID = "securityTierID" + IntegrationMappingAssetSecurityTierName = "securityTierName" + IntegrationMappingAssetSourceIdentifier = "sourceIdentifier" + IntegrationMappingAssetSourceType = "sourceType" + IntegrationMappingAssetSystemInternalID = "systemInternalID" + IntegrationMappingAssetTags = "tags" + IntegrationMappingAssetWebsite = "website" ) // Integration mapping keys for CheckResult. const ( - IntegrationMappingCheckResultDetails = "details" - IntegrationMappingCheckResultExternalURI = "externalURI" - IntegrationMappingCheckResultIntegrationID = "integrationID" - IntegrationMappingCheckResultLastObservedAt = "lastObservedAt" + IntegrationMappingCheckResultDetails = "details" + IntegrationMappingCheckResultExternalURI = "externalURI" + IntegrationMappingCheckResultIntegrationID = "integrationID" + IntegrationMappingCheckResultLastObservedAt = "lastObservedAt" IntegrationMappingCheckResultParentExternalID = "parentExternalID" - IntegrationMappingCheckResultSource = "source" - IntegrationMappingCheckResultStatus = "status" - IntegrationMappingCheckResultTags = "tags" + IntegrationMappingCheckResultSource = "source" + IntegrationMappingCheckResultStatus = "status" + IntegrationMappingCheckResultTags = "tags" ) // Integration mapping keys for Contact. const ( - IntegrationMappingContactAddress = "address" - IntegrationMappingContactCompany = "company" - IntegrationMappingContactEmail = "email" - IntegrationMappingContactExternalID = "externalID" - IntegrationMappingContactFullName = "fullName" + IntegrationMappingContactAddress = "address" + IntegrationMappingContactCompany = "company" + IntegrationMappingContactEmail = "email" + IntegrationMappingContactExternalID = "externalID" + IntegrationMappingContactFullName = "fullName" IntegrationMappingContactIntegrationID = "integrationID" - IntegrationMappingContactObservedAt = "observedAt" - IntegrationMappingContactPhoneNumber = "phoneNumber" - IntegrationMappingContactStatus = "status" - IntegrationMappingContactTags = "tags" - IntegrationMappingContactTitle = "title" + IntegrationMappingContactObservedAt = "observedAt" + IntegrationMappingContactPhoneNumber = "phoneNumber" + IntegrationMappingContactStatus = "status" + IntegrationMappingContactTags = "tags" + IntegrationMappingContactTitle = "title" ) // Integration mapping keys for DirectoryAccount. const ( - IntegrationMappingDirectoryAccountAccountType = "accountType" - IntegrationMappingDirectoryAccountAddedAt = "addedAt" - IntegrationMappingDirectoryAccountAvatarRemoteURL = "avatarRemoteURL" - IntegrationMappingDirectoryAccountAvatarUpdatedAt = "avatarUpdatedAt" - IntegrationMappingDirectoryAccountCanonicalEmail = "canonicalEmail" - IntegrationMappingDirectoryAccountDepartment = "department" + IntegrationMappingDirectoryAccountAccountType = "accountType" + IntegrationMappingDirectoryAccountAddedAt = "addedAt" + IntegrationMappingDirectoryAccountAvatarRemoteURL = "avatarRemoteURL" + IntegrationMappingDirectoryAccountAvatarUpdatedAt = "avatarUpdatedAt" + IntegrationMappingDirectoryAccountCanonicalEmail = "canonicalEmail" + IntegrationMappingDirectoryAccountDepartment = "department" IntegrationMappingDirectoryAccountDirectoryInstanceID = "directoryInstanceID" - IntegrationMappingDirectoryAccountDirectoryName = "directoryName" - IntegrationMappingDirectoryAccountDirectorySyncRunID = "directorySyncRunID" - IntegrationMappingDirectoryAccountDisplayName = "displayName" - IntegrationMappingDirectoryAccountEmailAliases = "emailAliases" - IntegrationMappingDirectoryAccountEnvironmentID = "environmentID" - IntegrationMappingDirectoryAccountEnvironmentName = "environmentName" - IntegrationMappingDirectoryAccountExternalID = "externalID" - IntegrationMappingDirectoryAccountFamilyName = "familyName" - IntegrationMappingDirectoryAccountFirstSeenAt = "firstSeenAt" - IntegrationMappingDirectoryAccountGivenName = "givenName" - IntegrationMappingDirectoryAccountIdentityHolderID = "identityHolderID" - IntegrationMappingDirectoryAccountIntegrationID = "integrationID" - IntegrationMappingDirectoryAccountJobTitle = "jobTitle" - IntegrationMappingDirectoryAccountLastLoginAt = "lastLoginAt" - IntegrationMappingDirectoryAccountLastSeenAt = "lastSeenAt" - IntegrationMappingDirectoryAccountLastSeenIP = "lastSeenIP" - IntegrationMappingDirectoryAccountMetadata = "metadata" - IntegrationMappingDirectoryAccountMfaState = "mfaState" - IntegrationMappingDirectoryAccountObservedAt = "observedAt" - IntegrationMappingDirectoryAccountOrganizationUnit = "organizationUnit" - IntegrationMappingDirectoryAccountOwnerID = "ownerID" - IntegrationMappingDirectoryAccountPhoneNumber = "phoneNumber" - IntegrationMappingDirectoryAccountPlatformID = "platformID" - IntegrationMappingDirectoryAccountPrimarySource = "primarySource" - IntegrationMappingDirectoryAccountProfile = "profile" - IntegrationMappingDirectoryAccountProfileHash = "profileHash" - IntegrationMappingDirectoryAccountRemovedAt = "removedAt" - IntegrationMappingDirectoryAccountScopeID = "scopeID" - IntegrationMappingDirectoryAccountScopeName = "scopeName" - IntegrationMappingDirectoryAccountSecondaryKey = "secondaryKey" - IntegrationMappingDirectoryAccountSourceVersion = "sourceVersion" - IntegrationMappingDirectoryAccountStatus = "status" - IntegrationMappingDirectoryAccountTags = "tags" + IntegrationMappingDirectoryAccountDirectoryName = "directoryName" + IntegrationMappingDirectoryAccountDirectorySyncRunID = "directorySyncRunID" + IntegrationMappingDirectoryAccountDisplayName = "displayName" + IntegrationMappingDirectoryAccountEmailAliases = "emailAliases" + IntegrationMappingDirectoryAccountEnvironmentID = "environmentID" + IntegrationMappingDirectoryAccountEnvironmentName = "environmentName" + IntegrationMappingDirectoryAccountExternalID = "externalID" + IntegrationMappingDirectoryAccountFamilyName = "familyName" + IntegrationMappingDirectoryAccountFirstSeenAt = "firstSeenAt" + IntegrationMappingDirectoryAccountGivenName = "givenName" + IntegrationMappingDirectoryAccountIdentityHolderID = "identityHolderID" + IntegrationMappingDirectoryAccountIntegrationID = "integrationID" + IntegrationMappingDirectoryAccountJobTitle = "jobTitle" + IntegrationMappingDirectoryAccountLastLoginAt = "lastLoginAt" + IntegrationMappingDirectoryAccountLastSeenAt = "lastSeenAt" + IntegrationMappingDirectoryAccountLastSeenIP = "lastSeenIP" + IntegrationMappingDirectoryAccountMetadata = "metadata" + IntegrationMappingDirectoryAccountMfaState = "mfaState" + IntegrationMappingDirectoryAccountObservedAt = "observedAt" + IntegrationMappingDirectoryAccountOrganizationUnit = "organizationUnit" + IntegrationMappingDirectoryAccountOwnerID = "ownerID" + IntegrationMappingDirectoryAccountPhoneNumber = "phoneNumber" + IntegrationMappingDirectoryAccountPlatformID = "platformID" + IntegrationMappingDirectoryAccountPrimarySource = "primarySource" + IntegrationMappingDirectoryAccountProfile = "profile" + IntegrationMappingDirectoryAccountProfileHash = "profileHash" + IntegrationMappingDirectoryAccountRemovedAt = "removedAt" + IntegrationMappingDirectoryAccountScopeID = "scopeID" + IntegrationMappingDirectoryAccountScopeName = "scopeName" + IntegrationMappingDirectoryAccountSecondaryKey = "secondaryKey" + IntegrationMappingDirectoryAccountSourceVersion = "sourceVersion" + IntegrationMappingDirectoryAccountStatus = "status" + IntegrationMappingDirectoryAccountTags = "tags" ) // Integration mapping keys for DirectoryGroup. const ( - IntegrationMappingDirectoryGroupAddedAt = "addedAt" - IntegrationMappingDirectoryGroupClassification = "classification" - IntegrationMappingDirectoryGroupDirectoryInstanceID = "directoryInstanceID" - IntegrationMappingDirectoryGroupDirectoryName = "directoryName" - IntegrationMappingDirectoryGroupDirectorySyncRunID = "directorySyncRunID" - IntegrationMappingDirectoryGroupDisplayName = "displayName" - IntegrationMappingDirectoryGroupEmail = "email" - IntegrationMappingDirectoryGroupEnvironmentID = "environmentID" - IntegrationMappingDirectoryGroupEnvironmentName = "environmentName" - IntegrationMappingDirectoryGroupExternalID = "externalID" + IntegrationMappingDirectoryGroupAddedAt = "addedAt" + IntegrationMappingDirectoryGroupClassification = "classification" + IntegrationMappingDirectoryGroupDirectoryInstanceID = "directoryInstanceID" + IntegrationMappingDirectoryGroupDirectoryName = "directoryName" + IntegrationMappingDirectoryGroupDirectorySyncRunID = "directorySyncRunID" + IntegrationMappingDirectoryGroupDisplayName = "displayName" + IntegrationMappingDirectoryGroupEmail = "email" + IntegrationMappingDirectoryGroupEnvironmentID = "environmentID" + IntegrationMappingDirectoryGroupEnvironmentName = "environmentName" + IntegrationMappingDirectoryGroupExternalID = "externalID" IntegrationMappingDirectoryGroupExternalSharingAllowed = "externalSharingAllowed" - IntegrationMappingDirectoryGroupFirstSeenAt = "firstSeenAt" - IntegrationMappingDirectoryGroupIntegrationID = "integrationID" - IntegrationMappingDirectoryGroupLastSeenAt = "lastSeenAt" - IntegrationMappingDirectoryGroupMemberCount = "memberCount" - IntegrationMappingDirectoryGroupMetadata = "metadata" - IntegrationMappingDirectoryGroupObservedAt = "observedAt" - IntegrationMappingDirectoryGroupPlatformID = "platformID" - IntegrationMappingDirectoryGroupProfile = "profile" - IntegrationMappingDirectoryGroupProfileHash = "profileHash" - IntegrationMappingDirectoryGroupRemovedAt = "removedAt" - IntegrationMappingDirectoryGroupScopeID = "scopeID" - IntegrationMappingDirectoryGroupScopeName = "scopeName" - IntegrationMappingDirectoryGroupSourceVersion = "sourceVersion" - IntegrationMappingDirectoryGroupStatus = "status" - IntegrationMappingDirectoryGroupTags = "tags" + IntegrationMappingDirectoryGroupFirstSeenAt = "firstSeenAt" + IntegrationMappingDirectoryGroupIntegrationID = "integrationID" + IntegrationMappingDirectoryGroupLastSeenAt = "lastSeenAt" + IntegrationMappingDirectoryGroupMemberCount = "memberCount" + IntegrationMappingDirectoryGroupMetadata = "metadata" + IntegrationMappingDirectoryGroupObservedAt = "observedAt" + IntegrationMappingDirectoryGroupPlatformID = "platformID" + IntegrationMappingDirectoryGroupProfile = "profile" + IntegrationMappingDirectoryGroupProfileHash = "profileHash" + IntegrationMappingDirectoryGroupRemovedAt = "removedAt" + IntegrationMappingDirectoryGroupScopeID = "scopeID" + IntegrationMappingDirectoryGroupScopeName = "scopeName" + IntegrationMappingDirectoryGroupSourceVersion = "sourceVersion" + IntegrationMappingDirectoryGroupStatus = "status" + IntegrationMappingDirectoryGroupTags = "tags" ) // Integration mapping keys for DirectoryMembership. const ( - IntegrationMappingDirectoryMembershipAddedAt = "addedAt" - IntegrationMappingDirectoryMembershipDirectoryAccountID = "directoryAccountID" - IntegrationMappingDirectoryMembershipDirectoryGroupID = "directoryGroupID" + IntegrationMappingDirectoryMembershipAddedAt = "addedAt" + IntegrationMappingDirectoryMembershipDirectoryAccountID = "directoryAccountID" + IntegrationMappingDirectoryMembershipDirectoryGroupID = "directoryGroupID" IntegrationMappingDirectoryMembershipDirectoryInstanceID = "directoryInstanceID" - IntegrationMappingDirectoryMembershipDirectoryName = "directoryName" - IntegrationMappingDirectoryMembershipDirectorySyncRunID = "directorySyncRunID" - IntegrationMappingDirectoryMembershipEnvironmentID = "environmentID" - IntegrationMappingDirectoryMembershipEnvironmentName = "environmentName" - IntegrationMappingDirectoryMembershipFirstSeenAt = "firstSeenAt" - IntegrationMappingDirectoryMembershipIntegrationID = "integrationID" - IntegrationMappingDirectoryMembershipLastConfirmedRunID = "lastConfirmedRunID" - IntegrationMappingDirectoryMembershipLastSeenAt = "lastSeenAt" - IntegrationMappingDirectoryMembershipMetadata = "metadata" - IntegrationMappingDirectoryMembershipObservedAt = "observedAt" - IntegrationMappingDirectoryMembershipPlatformID = "platformID" - IntegrationMappingDirectoryMembershipRemovedAt = "removedAt" - IntegrationMappingDirectoryMembershipRole = "role" - IntegrationMappingDirectoryMembershipScopeID = "scopeID" - IntegrationMappingDirectoryMembershipScopeName = "scopeName" - IntegrationMappingDirectoryMembershipSource = "source" + IntegrationMappingDirectoryMembershipDirectoryName = "directoryName" + IntegrationMappingDirectoryMembershipDirectorySyncRunID = "directorySyncRunID" + IntegrationMappingDirectoryMembershipEnvironmentID = "environmentID" + IntegrationMappingDirectoryMembershipEnvironmentName = "environmentName" + IntegrationMappingDirectoryMembershipFirstSeenAt = "firstSeenAt" + IntegrationMappingDirectoryMembershipIntegrationID = "integrationID" + IntegrationMappingDirectoryMembershipLastConfirmedRunID = "lastConfirmedRunID" + IntegrationMappingDirectoryMembershipLastSeenAt = "lastSeenAt" + IntegrationMappingDirectoryMembershipMetadata = "metadata" + IntegrationMappingDirectoryMembershipObservedAt = "observedAt" + IntegrationMappingDirectoryMembershipPlatformID = "platformID" + IntegrationMappingDirectoryMembershipRemovedAt = "removedAt" + IntegrationMappingDirectoryMembershipRole = "role" + IntegrationMappingDirectoryMembershipScopeID = "scopeID" + IntegrationMappingDirectoryMembershipScopeName = "scopeName" + IntegrationMappingDirectoryMembershipSource = "source" ) // Integration mapping keys for Entity. const ( - IntegrationMappingEntityAnnualSpend = "annualSpend" - IntegrationMappingEntityApprovedForUse = "approvedForUse" - IntegrationMappingEntityAutoRenews = "autoRenews" - IntegrationMappingEntityBillingModel = "billingModel" - IntegrationMappingEntityContractEndDate = "contractEndDate" - IntegrationMappingEntityContractRenewalAt = "contractRenewalAt" - IntegrationMappingEntityContractStartDate = "contractStartDate" - IntegrationMappingEntityDescription = "description" - IntegrationMappingEntityDisplayName = "displayName" - IntegrationMappingEntityDomains = "domains" - IntegrationMappingEntityEntityRelationshipStateID = "entityRelationshipStateID" - IntegrationMappingEntityEntityRelationshipStateName = "entityRelationshipStateName" - IntegrationMappingEntityEntitySecurityQuestionnaireStatusID = "entitySecurityQuestionnaireStatusID" + IntegrationMappingEntityAnnualSpend = "annualSpend" + IntegrationMappingEntityApprovedForUse = "approvedForUse" + IntegrationMappingEntityAutoRenews = "autoRenews" + IntegrationMappingEntityBillingModel = "billingModel" + IntegrationMappingEntityContractEndDate = "contractEndDate" + IntegrationMappingEntityContractRenewalAt = "contractRenewalAt" + IntegrationMappingEntityContractStartDate = "contractStartDate" + IntegrationMappingEntityDescription = "description" + IntegrationMappingEntityDisplayName = "displayName" + IntegrationMappingEntityDomains = "domains" + IntegrationMappingEntityEntityRelationshipStateID = "entityRelationshipStateID" + IntegrationMappingEntityEntityRelationshipStateName = "entityRelationshipStateName" + IntegrationMappingEntityEntitySecurityQuestionnaireStatusID = "entitySecurityQuestionnaireStatusID" IntegrationMappingEntityEntitySecurityQuestionnaireStatusName = "entitySecurityQuestionnaireStatusName" - IntegrationMappingEntityEntitySourceTypeID = "entitySourceTypeID" - IntegrationMappingEntityEntitySourceTypeName = "entitySourceTypeName" - IntegrationMappingEntityEnvironmentID = "environmentID" - IntegrationMappingEntityEnvironmentName = "environmentName" - IntegrationMappingEntityExternalID = "externalID" - IntegrationMappingEntityHasSoc2 = "hasSoc2" - IntegrationMappingEntityInternalNotes = "internalNotes" - IntegrationMappingEntityInternalOwner = "internalOwner" - IntegrationMappingEntityInternalOwnerGroupID = "internalOwnerGroupID" - IntegrationMappingEntityInternalOwnerUserID = "internalOwnerUserID" - IntegrationMappingEntityLastReviewedAt = "lastReviewedAt" - IntegrationMappingEntityLinks = "links" - IntegrationMappingEntityLogoRemoteURL = "logoRemoteURL" - IntegrationMappingEntityMfaEnforced = "mfaEnforced" - IntegrationMappingEntityMfaSupported = "mfaSupported" - IntegrationMappingEntityName = "name" - IntegrationMappingEntityNextReviewAt = "nextReviewAt" - IntegrationMappingEntityObservedAt = "observedAt" - IntegrationMappingEntityOwnerID = "ownerID" - IntegrationMappingEntityProvidedServices = "providedServices" - IntegrationMappingEntityRenewalRisk = "renewalRisk" - IntegrationMappingEntityReviewFrequency = "reviewFrequency" - IntegrationMappingEntityReviewedBy = "reviewedBy" - IntegrationMappingEntityReviewedByGroupID = "reviewedByGroupID" - IntegrationMappingEntityReviewedByUserID = "reviewedByUserID" - IntegrationMappingEntityRiskRating = "riskRating" - IntegrationMappingEntityRiskScore = "riskScore" - IntegrationMappingEntityScopeID = "scopeID" - IntegrationMappingEntityScopeName = "scopeName" - IntegrationMappingEntitySoc2PeriodEnd = "soc2PeriodEnd" - IntegrationMappingEntitySpendCurrency = "spendCurrency" - IntegrationMappingEntitySsoEnforced = "ssoEnforced" - IntegrationMappingEntityStatus = "status" - IntegrationMappingEntityStatusPageURL = "statusPageURL" - IntegrationMappingEntitySystemInternalID = "systemInternalID" - IntegrationMappingEntityTags = "tags" - IntegrationMappingEntityTerminationNoticeDays = "terminationNoticeDays" - IntegrationMappingEntityTier = "tier" - IntegrationMappingEntityVendorMetadata = "vendorMetadata" + IntegrationMappingEntityEntitySourceTypeID = "entitySourceTypeID" + IntegrationMappingEntityEntitySourceTypeName = "entitySourceTypeName" + IntegrationMappingEntityEnvironmentID = "environmentID" + IntegrationMappingEntityEnvironmentName = "environmentName" + IntegrationMappingEntityExternalID = "externalID" + IntegrationMappingEntityHasSoc2 = "hasSoc2" + IntegrationMappingEntityInternalNotes = "internalNotes" + IntegrationMappingEntityInternalOwner = "internalOwner" + IntegrationMappingEntityInternalOwnerGroupID = "internalOwnerGroupID" + IntegrationMappingEntityInternalOwnerUserID = "internalOwnerUserID" + IntegrationMappingEntityLastReviewedAt = "lastReviewedAt" + IntegrationMappingEntityLinks = "links" + IntegrationMappingEntityLogoRemoteURL = "logoRemoteURL" + IntegrationMappingEntityMfaEnforced = "mfaEnforced" + IntegrationMappingEntityMfaSupported = "mfaSupported" + IntegrationMappingEntityName = "name" + IntegrationMappingEntityNextReviewAt = "nextReviewAt" + IntegrationMappingEntityObservedAt = "observedAt" + IntegrationMappingEntityOwnerID = "ownerID" + IntegrationMappingEntityProvidedServices = "providedServices" + IntegrationMappingEntityRenewalRisk = "renewalRisk" + IntegrationMappingEntityReviewFrequency = "reviewFrequency" + IntegrationMappingEntityReviewedBy = "reviewedBy" + IntegrationMappingEntityReviewedByGroupID = "reviewedByGroupID" + IntegrationMappingEntityReviewedByUserID = "reviewedByUserID" + IntegrationMappingEntityRiskRating = "riskRating" + IntegrationMappingEntityRiskScore = "riskScore" + IntegrationMappingEntityScopeID = "scopeID" + IntegrationMappingEntityScopeName = "scopeName" + IntegrationMappingEntitySoc2PeriodEnd = "soc2PeriodEnd" + IntegrationMappingEntitySpendCurrency = "spendCurrency" + IntegrationMappingEntitySsoEnforced = "ssoEnforced" + IntegrationMappingEntityStatus = "status" + IntegrationMappingEntityStatusPageURL = "statusPageURL" + IntegrationMappingEntitySystemInternalID = "systemInternalID" + IntegrationMappingEntityTags = "tags" + IntegrationMappingEntityTerminationNoticeDays = "terminationNoticeDays" + IntegrationMappingEntityTier = "tier" + IntegrationMappingEntityVendorMetadata = "vendorMetadata" ) // Integration mapping keys for Finding. const ( - IntegrationMappingFindingAssessmentID = "assessmentID" - IntegrationMappingFindingBlocksProduction = "blocksProduction" - IntegrationMappingFindingCategories = "categories" - IntegrationMappingFindingCategory = "category" - IntegrationMappingFindingDescription = "description" - IntegrationMappingFindingDisplayName = "displayName" - IntegrationMappingFindingEnvironmentID = "environmentID" - IntegrationMappingFindingEnvironmentName = "environmentName" - IntegrationMappingFindingEventTime = "eventTime" - IntegrationMappingFindingExploitability = "exploitability" - IntegrationMappingFindingExternalID = "externalID" - IntegrationMappingFindingExternalOwnerID = "externalOwnerID" - IntegrationMappingFindingExternalURI = "externalURI" - IntegrationMappingFindingFindingClass = "findingClass" - IntegrationMappingFindingFindingStatusID = "findingStatusID" - IntegrationMappingFindingFindingStatusName = "findingStatusName" - IntegrationMappingFindingImpact = "impact" - IntegrationMappingFindingInternalNotes = "internalNotes" - IntegrationMappingFindingMetadata = "metadata" - IntegrationMappingFindingNumericSeverity = "numericSeverity" - IntegrationMappingFindingOpen = "open" - IntegrationMappingFindingOwnerID = "ownerID" - IntegrationMappingFindingPriority = "priority" - IntegrationMappingFindingProduction = "production" - IntegrationMappingFindingPublic = "public" - IntegrationMappingFindingRawPayload = "rawPayload" - IntegrationMappingFindingRecommendation = "recommendation" + IntegrationMappingFindingAssessmentID = "assessmentID" + IntegrationMappingFindingBlocksProduction = "blocksProduction" + IntegrationMappingFindingCategories = "categories" + IntegrationMappingFindingCategory = "category" + IntegrationMappingFindingDescription = "description" + IntegrationMappingFindingDisplayName = "displayName" + IntegrationMappingFindingEnvironmentID = "environmentID" + IntegrationMappingFindingEnvironmentName = "environmentName" + IntegrationMappingFindingEventTime = "eventTime" + IntegrationMappingFindingExploitability = "exploitability" + IntegrationMappingFindingExternalID = "externalID" + IntegrationMappingFindingExternalOwnerID = "externalOwnerID" + IntegrationMappingFindingExternalURI = "externalURI" + IntegrationMappingFindingFindingClass = "findingClass" + IntegrationMappingFindingFindingStatusID = "findingStatusID" + IntegrationMappingFindingFindingStatusName = "findingStatusName" + IntegrationMappingFindingImpact = "impact" + IntegrationMappingFindingInternalNotes = "internalNotes" + IntegrationMappingFindingMetadata = "metadata" + IntegrationMappingFindingNumericSeverity = "numericSeverity" + IntegrationMappingFindingOpen = "open" + IntegrationMappingFindingOwnerID = "ownerID" + IntegrationMappingFindingPriority = "priority" + IntegrationMappingFindingProduction = "production" + IntegrationMappingFindingPublic = "public" + IntegrationMappingFindingRawPayload = "rawPayload" + IntegrationMappingFindingRecommendation = "recommendation" IntegrationMappingFindingRecommendedActions = "recommendedActions" - IntegrationMappingFindingReferences = "references" - IntegrationMappingFindingRemediationSLA = "remediationSLA" - IntegrationMappingFindingReportedAt = "reportedAt" - IntegrationMappingFindingResourceName = "resourceName" - IntegrationMappingFindingScopeID = "scopeID" - IntegrationMappingFindingScopeName = "scopeName" - IntegrationMappingFindingScore = "score" - IntegrationMappingFindingSeverity = "severity" - IntegrationMappingFindingSource = "source" - IntegrationMappingFindingSourceUpdatedAt = "sourceUpdatedAt" - IntegrationMappingFindingState = "state" - IntegrationMappingFindingStepsToReproduce = "stepsToReproduce" - IntegrationMappingFindingSystemInternalID = "systemInternalID" - IntegrationMappingFindingTags = "tags" - IntegrationMappingFindingTargetDetails = "targetDetails" - IntegrationMappingFindingTargets = "targets" - IntegrationMappingFindingValidated = "validated" - IntegrationMappingFindingVector = "vector" + IntegrationMappingFindingReferences = "references" + IntegrationMappingFindingRemediationSLA = "remediationSLA" + IntegrationMappingFindingReportedAt = "reportedAt" + IntegrationMappingFindingResourceName = "resourceName" + IntegrationMappingFindingScopeID = "scopeID" + IntegrationMappingFindingScopeName = "scopeName" + IntegrationMappingFindingScore = "score" + IntegrationMappingFindingSeverity = "severity" + IntegrationMappingFindingSource = "source" + IntegrationMappingFindingSourceUpdatedAt = "sourceUpdatedAt" + IntegrationMappingFindingState = "state" + IntegrationMappingFindingStepsToReproduce = "stepsToReproduce" + IntegrationMappingFindingSystemInternalID = "systemInternalID" + IntegrationMappingFindingTags = "tags" + IntegrationMappingFindingTargetDetails = "targetDetails" + IntegrationMappingFindingTargets = "targets" + IntegrationMappingFindingValidated = "validated" + IntegrationMappingFindingVector = "vector" ) // Integration mapping keys for Risk. const ( - IntegrationMappingRiskBusinessCosts = "businessCosts" + IntegrationMappingRiskBusinessCosts = "businessCosts" IntegrationMappingRiskBusinessCostsJSON = "businessCostsJSON" - IntegrationMappingRiskDetails = "details" - IntegrationMappingRiskDetailsJSON = "detailsJSON" - IntegrationMappingRiskDueDate = "dueDate" - IntegrationMappingRiskEnvironmentID = "environmentID" - IntegrationMappingRiskEnvironmentName = "environmentName" - IntegrationMappingRiskExternalID = "externalID" - IntegrationMappingRiskExternalUUID = "externalUUID" - IntegrationMappingRiskImpact = "impact" - IntegrationMappingRiskIntegrationID = "integrationID" - IntegrationMappingRiskLastReviewedAt = "lastReviewedAt" - IntegrationMappingRiskLikelihood = "likelihood" - IntegrationMappingRiskMitigatedAt = "mitigatedAt" - IntegrationMappingRiskMitigation = "mitigation" - IntegrationMappingRiskMitigationJSON = "mitigationJSON" - IntegrationMappingRiskName = "name" - IntegrationMappingRiskNextReviewDueAt = "nextReviewDueAt" - IntegrationMappingRiskObservedAt = "observedAt" - IntegrationMappingRiskOwnerID = "ownerID" - IntegrationMappingRiskResidualScore = "residualScore" - IntegrationMappingRiskReviewFrequency = "reviewFrequency" - IntegrationMappingRiskReviewRequired = "reviewRequired" - IntegrationMappingRiskRiskCategoryID = "riskCategoryID" - IntegrationMappingRiskRiskCategoryName = "riskCategoryName" - IntegrationMappingRiskRiskDecision = "riskDecision" - IntegrationMappingRiskRiskKindID = "riskKindID" - IntegrationMappingRiskRiskKindName = "riskKindName" - IntegrationMappingRiskScopeID = "scopeID" - IntegrationMappingRiskScopeName = "scopeName" - IntegrationMappingRiskScore = "score" - IntegrationMappingRiskStatus = "status" - IntegrationMappingRiskTags = "tags" + IntegrationMappingRiskDetails = "details" + IntegrationMappingRiskDetailsJSON = "detailsJSON" + IntegrationMappingRiskDueDate = "dueDate" + IntegrationMappingRiskEnvironmentID = "environmentID" + IntegrationMappingRiskEnvironmentName = "environmentName" + IntegrationMappingRiskExternalID = "externalID" + IntegrationMappingRiskExternalUUID = "externalUUID" + IntegrationMappingRiskImpact = "impact" + IntegrationMappingRiskIntegrationID = "integrationID" + IntegrationMappingRiskLastReviewedAt = "lastReviewedAt" + IntegrationMappingRiskLikelihood = "likelihood" + IntegrationMappingRiskMitigatedAt = "mitigatedAt" + IntegrationMappingRiskMitigation = "mitigation" + IntegrationMappingRiskMitigationJSON = "mitigationJSON" + IntegrationMappingRiskName = "name" + IntegrationMappingRiskNextReviewDueAt = "nextReviewDueAt" + IntegrationMappingRiskObservedAt = "observedAt" + IntegrationMappingRiskOwnerID = "ownerID" + IntegrationMappingRiskResidualScore = "residualScore" + IntegrationMappingRiskReviewFrequency = "reviewFrequency" + IntegrationMappingRiskReviewRequired = "reviewRequired" + IntegrationMappingRiskRiskCategoryID = "riskCategoryID" + IntegrationMappingRiskRiskCategoryName = "riskCategoryName" + IntegrationMappingRiskRiskDecision = "riskDecision" + IntegrationMappingRiskRiskKindID = "riskKindID" + IntegrationMappingRiskRiskKindName = "riskKindName" + IntegrationMappingRiskScopeID = "scopeID" + IntegrationMappingRiskScopeName = "scopeName" + IntegrationMappingRiskScore = "score" + IntegrationMappingRiskStatus = "status" + IntegrationMappingRiskTags = "tags" ) // Integration mapping keys for Vulnerability. const ( - IntegrationMappingVulnerabilityAutoDismissedAt = "autoDismissedAt" - IntegrationMappingVulnerabilityBlocking = "blocking" - IntegrationMappingVulnerabilityCategory = "category" - IntegrationMappingVulnerabilityCveID = "cveID" - IntegrationMappingVulnerabilityCweIds = "cweIds" - IntegrationMappingVulnerabilityDependencyScope = "dependencyScope" - IntegrationMappingVulnerabilityDescription = "description" - IntegrationMappingVulnerabilityDiscoveredAt = "discoveredAt" - IntegrationMappingVulnerabilityDismissedAt = "dismissedAt" - IntegrationMappingVulnerabilityDismissedComment = "dismissedComment" - IntegrationMappingVulnerabilityDismissedReason = "dismissedReason" - IntegrationMappingVulnerabilityDisplayName = "displayName" - IntegrationMappingVulnerabilityEnvironmentID = "environmentID" - IntegrationMappingVulnerabilityEnvironmentName = "environmentName" - IntegrationMappingVulnerabilityExploitability = "exploitability" - IntegrationMappingVulnerabilityExternalID = "externalID" - IntegrationMappingVulnerabilityExternalOwnerID = "externalOwnerID" - IntegrationMappingVulnerabilityExternalURI = "externalURI" - IntegrationMappingVulnerabilityFirstPatchedVersion = "firstPatchedVersion" - IntegrationMappingVulnerabilityFixAvailable = "fixAvailable" - IntegrationMappingVulnerabilityFixedAt = "fixedAt" - IntegrationMappingVulnerabilityImpact = "impact" - IntegrationMappingVulnerabilityImpacts = "impacts" - IntegrationMappingVulnerabilityInternalNotes = "internalNotes" - IntegrationMappingVulnerabilityManifestPath = "manifestPath" - IntegrationMappingVulnerabilityMetadata = "metadata" - IntegrationMappingVulnerabilityOpen = "open" - IntegrationMappingVulnerabilityOwnerID = "ownerID" - IntegrationMappingVulnerabilityPackageEcosystem = "packageEcosystem" - IntegrationMappingVulnerabilityPackageName = "packageName" - IntegrationMappingVulnerabilityPriority = "priority" - IntegrationMappingVulnerabilityProduction = "production" - IntegrationMappingVulnerabilityPublic = "public" - IntegrationMappingVulnerabilityPublishedAt = "publishedAt" - IntegrationMappingVulnerabilityRawPayload = "rawPayload" - IntegrationMappingVulnerabilityReferences = "references" - IntegrationMappingVulnerabilityRemediationSLA = "remediationSLA" - IntegrationMappingVulnerabilityScopeID = "scopeID" - IntegrationMappingVulnerabilityScopeName = "scopeName" - IntegrationMappingVulnerabilityScore = "score" - IntegrationMappingVulnerabilitySeverity = "severity" - IntegrationMappingVulnerabilitySource = "source" - IntegrationMappingVulnerabilitySourceUpdatedAt = "sourceUpdatedAt" - IntegrationMappingVulnerabilitySummary = "summary" - IntegrationMappingVulnerabilitySystemInternalID = "systemInternalID" - IntegrationMappingVulnerabilityTags = "tags" - IntegrationMappingVulnerabilityValidated = "validated" - IntegrationMappingVulnerabilityVector = "vector" - IntegrationMappingVulnerabilityVulnerabilityStatusID = "vulnerabilityStatusID" + IntegrationMappingVulnerabilityAutoDismissedAt = "autoDismissedAt" + IntegrationMappingVulnerabilityBlocking = "blocking" + IntegrationMappingVulnerabilityCategory = "category" + IntegrationMappingVulnerabilityCveID = "cveID" + IntegrationMappingVulnerabilityCweIds = "cweIds" + IntegrationMappingVulnerabilityDependencyScope = "dependencyScope" + IntegrationMappingVulnerabilityDescription = "description" + IntegrationMappingVulnerabilityDiscoveredAt = "discoveredAt" + IntegrationMappingVulnerabilityDismissedAt = "dismissedAt" + IntegrationMappingVulnerabilityDismissedComment = "dismissedComment" + IntegrationMappingVulnerabilityDismissedReason = "dismissedReason" + IntegrationMappingVulnerabilityDisplayName = "displayName" + IntegrationMappingVulnerabilityEnvironmentID = "environmentID" + IntegrationMappingVulnerabilityEnvironmentName = "environmentName" + IntegrationMappingVulnerabilityExploitability = "exploitability" + IntegrationMappingVulnerabilityExternalID = "externalID" + IntegrationMappingVulnerabilityExternalOwnerID = "externalOwnerID" + IntegrationMappingVulnerabilityExternalURI = "externalURI" + IntegrationMappingVulnerabilityFirstPatchedVersion = "firstPatchedVersion" + IntegrationMappingVulnerabilityFixAvailable = "fixAvailable" + IntegrationMappingVulnerabilityFixedAt = "fixedAt" + IntegrationMappingVulnerabilityImpact = "impact" + IntegrationMappingVulnerabilityImpacts = "impacts" + IntegrationMappingVulnerabilityInternalNotes = "internalNotes" + IntegrationMappingVulnerabilityManifestPath = "manifestPath" + IntegrationMappingVulnerabilityMetadata = "metadata" + IntegrationMappingVulnerabilityOpen = "open" + IntegrationMappingVulnerabilityOwnerID = "ownerID" + IntegrationMappingVulnerabilityPackageEcosystem = "packageEcosystem" + IntegrationMappingVulnerabilityPackageName = "packageName" + IntegrationMappingVulnerabilityPriority = "priority" + IntegrationMappingVulnerabilityProduction = "production" + IntegrationMappingVulnerabilityPublic = "public" + IntegrationMappingVulnerabilityPublishedAt = "publishedAt" + IntegrationMappingVulnerabilityRawPayload = "rawPayload" + IntegrationMappingVulnerabilityReferences = "references" + IntegrationMappingVulnerabilityRemediationSLA = "remediationSLA" + IntegrationMappingVulnerabilityScopeID = "scopeID" + IntegrationMappingVulnerabilityScopeName = "scopeName" + IntegrationMappingVulnerabilityScore = "score" + IntegrationMappingVulnerabilitySeverity = "severity" + IntegrationMappingVulnerabilitySource = "source" + IntegrationMappingVulnerabilitySourceUpdatedAt = "sourceUpdatedAt" + IntegrationMappingVulnerabilitySummary = "summary" + IntegrationMappingVulnerabilitySystemInternalID = "systemInternalID" + IntegrationMappingVulnerabilityTags = "tags" + IntegrationMappingVulnerabilityValidated = "validated" + IntegrationMappingVulnerabilityVector = "vector" + IntegrationMappingVulnerabilityVulnerabilityStatusID = "vulnerabilityStatusID" IntegrationMappingVulnerabilityVulnerabilityStatusName = "vulnerabilityStatusName" - IntegrationMappingVulnerabilityVulnerableVersionRange = "vulnerableVersionRange" + IntegrationMappingVulnerabilityVulnerableVersionRange = "vulnerableVersionRange" ) // IntegrationMappingSchemas maps schema names to their mapping metadata @@ -553,407 +552,407 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Asset", Fields: []IntegrationMappingField{ { - InputKey: "accessModelID", - GoField: "AccessModelID", - EntField: "access_model_id", - Type: "string", - Required: false, + InputKey: "accessModelID", + GoField: "AccessModelID", + EntField: "access_model_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "accessModelName", - GoField: "AccessModelName", - EntField: "access_model_name", - Type: "string", - Required: false, + InputKey: "accessModelName", + GoField: "AccessModelName", + EntField: "access_model_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "assetDataClassificationID", - GoField: "AssetDataClassificationID", - EntField: "asset_data_classification_id", - Type: "string", - Required: false, + InputKey: "assetDataClassificationID", + GoField: "AssetDataClassificationID", + EntField: "asset_data_classification_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "assetDataClassificationName", - GoField: "AssetDataClassificationName", - EntField: "asset_data_classification_name", - Type: "string", - Required: false, + InputKey: "assetDataClassificationName", + GoField: "AssetDataClassificationName", + EntField: "asset_data_classification_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "assetSubtypeID", - GoField: "AssetSubtypeID", - EntField: "asset_subtype_id", - Type: "string", - Required: false, + InputKey: "assetSubtypeID", + GoField: "AssetSubtypeID", + EntField: "asset_subtype_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "assetSubtypeName", - GoField: "AssetSubtypeName", - EntField: "asset_subtype_name", - Type: "string", - Required: false, + InputKey: "assetSubtypeName", + GoField: "AssetSubtypeName", + EntField: "asset_subtype_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "assetType", - GoField: "AssetType", - EntField: "asset_type", - Type: "string", - Required: true, + InputKey: "assetType", + GoField: "AssetType", + EntField: "asset_type", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "categories", - GoField: "Categories", - EntField: "categories", - Type: "json.RawMessage", - Required: false, + InputKey: "categories", + GoField: "Categories", + EntField: "categories", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "containsPii", - GoField: "ContainsPii", - EntField: "contains_pii", - Type: "bool", - Required: false, + InputKey: "containsPii", + GoField: "ContainsPii", + EntField: "contains_pii", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "costCenter", - GoField: "CostCenter", - EntField: "cost_center", - Type: "string", - Required: false, + InputKey: "costCenter", + GoField: "CostCenter", + EntField: "cost_center", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "criticalityID", - GoField: "CriticalityID", - EntField: "criticality_id", - Type: "string", - Required: false, + InputKey: "criticalityID", + GoField: "CriticalityID", + EntField: "criticality_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "criticalityName", - GoField: "CriticalityName", - EntField: "criticality_name", - Type: "string", - Required: false, + InputKey: "criticalityName", + GoField: "CriticalityName", + EntField: "criticality_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "description", - GoField: "Description", - EntField: "description", - Type: "string", - Required: false, + InputKey: "description", + GoField: "Description", + EntField: "description", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "encryptionStatusID", - GoField: "EncryptionStatusID", - EntField: "encryption_status_id", - Type: "string", - Required: false, + InputKey: "encryptionStatusID", + GoField: "EncryptionStatusID", + EntField: "encryption_status_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "encryptionStatusName", - GoField: "EncryptionStatusName", - EntField: "encryption_status_name", - Type: "string", - Required: false, + InputKey: "encryptionStatusName", + GoField: "EncryptionStatusName", + EntField: "encryption_status_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "estimatedMonthlyCost", - GoField: "EstimatedMonthlyCost", - EntField: "estimated_monthly_cost", - Type: "float64", - Required: false, + InputKey: "estimatedMonthlyCost", + GoField: "EstimatedMonthlyCost", + EntField: "estimated_monthly_cost", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "identifier", - GoField: "Identifier", - EntField: "identifier", - Type: "string", - Required: false, + InputKey: "identifier", + GoField: "Identifier", + EntField: "identifier", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: false, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalNotes", - GoField: "InternalNotes", - EntField: "internal_notes", - Type: "string", - Required: false, + InputKey: "internalNotes", + GoField: "InternalNotes", + EntField: "internal_notes", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwner", - GoField: "InternalOwner", - EntField: "internal_owner", - Type: "string", - Required: false, + InputKey: "internalOwner", + GoField: "InternalOwner", + EntField: "internal_owner", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwnerGroupID", - GoField: "InternalOwnerGroupID", - EntField: "internal_owner_group_id", - Type: "string", - Required: false, + InputKey: "internalOwnerGroupID", + GoField: "InternalOwnerGroupID", + EntField: "internal_owner_group_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwnerUserID", - GoField: "InternalOwnerUserID", - EntField: "internal_owner_user_id", - Type: "string", - Required: false, + InputKey: "internalOwnerUserID", + GoField: "InternalOwnerUserID", + EntField: "internal_owner_user_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "name", - GoField: "Name", - EntField: "name", - Type: "string", - Required: true, + InputKey: "name", + GoField: "Name", + EntField: "name", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: false, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "physicalLocation", - GoField: "PhysicalLocation", - EntField: "physical_location", - Type: "string", - Required: false, + InputKey: "physicalLocation", + GoField: "PhysicalLocation", + EntField: "physical_location", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "purchaseDate", - GoField: "PurchaseDate", - EntField: "purchase_date", - Type: "time.Time", - Required: false, + InputKey: "purchaseDate", + GoField: "PurchaseDate", + EntField: "purchase_date", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "region", - GoField: "Region", - EntField: "region", - Type: "string", - Required: false, + InputKey: "region", + GoField: "Region", + EntField: "region", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "securityTierID", - GoField: "SecurityTierID", - EntField: "security_tier_id", - Type: "string", - Required: false, + InputKey: "securityTierID", + GoField: "SecurityTierID", + EntField: "security_tier_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "securityTierName", - GoField: "SecurityTierName", - EntField: "security_tier_name", - Type: "string", - Required: false, + InputKey: "securityTierName", + GoField: "SecurityTierName", + EntField: "security_tier_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "sourceIdentifier", - GoField: "SourceIdentifier", - EntField: "source_identifier", - Type: "string", - Required: false, + InputKey: "sourceIdentifier", + GoField: "SourceIdentifier", + EntField: "source_identifier", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "sourceType", - GoField: "SourceType", - EntField: "source_type", - Type: "string", - Required: true, + InputKey: "sourceType", + GoField: "SourceType", + EntField: "source_type", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "systemInternalID", - GoField: "SystemInternalID", - EntField: "system_internal_id", - Type: "string", - Required: false, + InputKey: "systemInternalID", + GoField: "SystemInternalID", + EntField: "system_internal_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "website", - GoField: "Website", - EntField: "website", - Type: "string", - Required: false, + InputKey: "website", + GoField: "Website", + EntField: "website", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "accessModelID": {}, - "accessModelName": {}, - "assetDataClassificationID": {}, + "accessModelID": {}, + "accessModelName": {}, + "assetDataClassificationID": {}, "assetDataClassificationName": {}, - "assetSubtypeID": {}, - "assetSubtypeName": {}, - "assetType": {}, - "categories": {}, - "containsPii": {}, - "costCenter": {}, - "criticalityID": {}, - "criticalityName": {}, - "description": {}, - "displayName": {}, - "encryptionStatusID": {}, - "encryptionStatusName": {}, - "environmentID": {}, - "environmentName": {}, - "estimatedMonthlyCost": {}, - "identifier": {}, - "integrationID": {}, - "internalNotes": {}, - "internalOwner": {}, - "internalOwnerGroupID": {}, - "internalOwnerUserID": {}, - "name": {}, - "observedAt": {}, - "ownerID": {}, - "physicalLocation": {}, - "purchaseDate": {}, - "region": {}, - "scopeID": {}, - "scopeName": {}, - "securityTierID": {}, - "securityTierName": {}, - "sourceIdentifier": {}, - "sourceType": {}, - "systemInternalID": {}, - "tags": {}, - "website": {}, + "assetSubtypeID": {}, + "assetSubtypeName": {}, + "assetType": {}, + "categories": {}, + "containsPii": {}, + "costCenter": {}, + "criticalityID": {}, + "criticalityName": {}, + "description": {}, + "displayName": {}, + "encryptionStatusID": {}, + "encryptionStatusName": {}, + "environmentID": {}, + "environmentName": {}, + "estimatedMonthlyCost": {}, + "identifier": {}, + "integrationID": {}, + "internalNotes": {}, + "internalOwner": {}, + "internalOwnerGroupID": {}, + "internalOwnerUserID": {}, + "name": {}, + "observedAt": {}, + "ownerID": {}, + "physicalLocation": {}, + "purchaseDate": {}, + "region": {}, + "scopeID": {}, + "scopeName": {}, + "securityTierID": {}, + "securityTierName": {}, + "sourceIdentifier": {}, + "sourceType": {}, + "systemInternalID": {}, + "tags": {}, + "website": {}, }, RequiredKeys: []string{ "assetType", @@ -969,87 +968,87 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "CheckResult", Fields: []IntegrationMappingField{ { - InputKey: "details", - GoField: "Details", - EntField: "details", - Type: "string", - Required: false, + InputKey: "details", + GoField: "Details", + EntField: "details", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalURI", - GoField: "ExternalURI", - EntField: "external_uri", - Type: "string", - Required: false, + InputKey: "externalURI", + GoField: "ExternalURI", + EntField: "external_uri", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: false, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: false, }, { - InputKey: "lastObservedAt", - GoField: "LastObservedAt", - EntField: "last_observed_at", - Type: "time.Time", - Required: false, + InputKey: "lastObservedAt", + GoField: "LastObservedAt", + EntField: "last_observed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "parentExternalID", - GoField: "ParentExternalID", - EntField: "parent_external_id", - Type: "string", - Required: false, + InputKey: "parentExternalID", + GoField: "ParentExternalID", + EntField: "parent_external_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "source", - GoField: "Source", - EntField: "source", - Type: "string", - Required: true, + InputKey: "source", + GoField: "Source", + EntField: "source", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: true, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "details": {}, - "externalURI": {}, - "integrationID": {}, - "lastObservedAt": {}, + "details": {}, + "externalURI": {}, + "integrationID": {}, + "lastObservedAt": {}, "parentExternalID": {}, - "source": {}, - "status": {}, - "tags": {}, + "source": {}, + "status": {}, + "tags": {}, }, RequiredKeys: []string{ "source", @@ -1065,117 +1064,117 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Contact", Fields: []IntegrationMappingField{ { - InputKey: "address", - GoField: "Address", - EntField: "address", - Type: "string", - Required: false, + InputKey: "address", + GoField: "Address", + EntField: "address", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "company", - GoField: "Company", - EntField: "company", - Type: "string", - Required: false, + InputKey: "company", + GoField: "Company", + EntField: "company", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "email", - GoField: "Email", - EntField: "email", - Type: "string", - Required: false, + InputKey: "email", + GoField: "Email", + EntField: "email", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: false, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "fullName", - GoField: "FullName", - EntField: "full_name", - Type: "string", - Required: false, + InputKey: "fullName", + GoField: "FullName", + EntField: "full_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: false, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: false, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "phoneNumber", - GoField: "PhoneNumber", - EntField: "phone_number", - Type: "string", - Required: false, + InputKey: "phoneNumber", + GoField: "PhoneNumber", + EntField: "phone_number", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: true, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "title", - GoField: "Title", - EntField: "title", - Type: "string", - Required: false, + InputKey: "title", + GoField: "Title", + EntField: "title", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "address": {}, - "company": {}, - "email": {}, - "externalID": {}, - "fullName": {}, + "address": {}, + "company": {}, + "email": {}, + "externalID": {}, + "fullName": {}, "integrationID": {}, - "observedAt": {}, - "phoneNumber": {}, - "status": {}, - "tags": {}, - "title": {}, + "observedAt": {}, + "phoneNumber": {}, + "status": {}, + "tags": {}, + "title": {}, }, RequiredKeys: []string{ "status", @@ -1190,407 +1189,407 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "DirectoryAccount", Fields: []IntegrationMappingField{ { - InputKey: "accountType", - GoField: "AccountType", - EntField: "account_type", - Type: "string", - Required: false, + InputKey: "accountType", + GoField: "AccountType", + EntField: "account_type", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "addedAt", - GoField: "AddedAt", - EntField: "added_at", - Type: "time.Time", - Required: false, + InputKey: "addedAt", + GoField: "AddedAt", + EntField: "added_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "avatarRemoteURL", - GoField: "AvatarRemoteURL", - EntField: "avatar_remote_url", - Type: "string", - Required: false, + InputKey: "avatarRemoteURL", + GoField: "AvatarRemoteURL", + EntField: "avatar_remote_url", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "avatarUpdatedAt", - GoField: "AvatarUpdatedAt", - EntField: "avatar_updated_at", - Type: "time.Time", - Required: false, + InputKey: "avatarUpdatedAt", + GoField: "AvatarUpdatedAt", + EntField: "avatar_updated_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "canonicalEmail", - GoField: "CanonicalEmail", - EntField: "canonical_email", - Type: "string", - Required: false, + InputKey: "canonicalEmail", + GoField: "CanonicalEmail", + EntField: "canonical_email", + Type: "string", + Required: false, UpsertKey: true, LookupKey: false, }, { - InputKey: "department", - GoField: "Department", - EntField: "department", - Type: "string", - Required: false, + InputKey: "department", + GoField: "Department", + EntField: "department", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryInstanceID", - GoField: "DirectoryInstanceID", - EntField: "directory_instance_id", - Type: "string", - Required: false, + InputKey: "directoryInstanceID", + GoField: "DirectoryInstanceID", + EntField: "directory_instance_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryName", - GoField: "DirectoryName", - EntField: "directory_name", - Type: "string", - Required: false, + InputKey: "directoryName", + GoField: "DirectoryName", + EntField: "directory_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directorySyncRunID", - GoField: "DirectorySyncRunID", - EntField: "directory_sync_run_id", - Type: "string", - Required: false, + InputKey: "directorySyncRunID", + GoField: "DirectorySyncRunID", + EntField: "directory_sync_run_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "emailAliases", - GoField: "EmailAliases", - EntField: "email_aliases", - Type: "json.RawMessage", - Required: false, + InputKey: "emailAliases", + GoField: "EmailAliases", + EntField: "email_aliases", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: true, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: true, }, { - InputKey: "familyName", - GoField: "FamilyName", - EntField: "family_name", - Type: "string", - Required: false, + InputKey: "familyName", + GoField: "FamilyName", + EntField: "family_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "firstSeenAt", - GoField: "FirstSeenAt", - EntField: "first_seen_at", - Type: "time.Time", - Required: false, + InputKey: "firstSeenAt", + GoField: "FirstSeenAt", + EntField: "first_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "givenName", - GoField: "GivenName", - EntField: "given_name", - Type: "string", - Required: false, + InputKey: "givenName", + GoField: "GivenName", + EntField: "given_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "identityHolderID", - GoField: "IdentityHolderID", - EntField: "identity_holder_id", - Type: "string", - Required: false, + InputKey: "identityHolderID", + GoField: "IdentityHolderID", + EntField: "identity_holder_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: false, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: false, }, { - InputKey: "jobTitle", - GoField: "JobTitle", - EntField: "job_title", - Type: "string", - Required: false, + InputKey: "jobTitle", + GoField: "JobTitle", + EntField: "job_title", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastLoginAt", - GoField: "LastLoginAt", - EntField: "last_login_at", - Type: "time.Time", - Required: false, + InputKey: "lastLoginAt", + GoField: "LastLoginAt", + EntField: "last_login_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastSeenAt", - GoField: "LastSeenAt", - EntField: "last_seen_at", - Type: "time.Time", - Required: false, + InputKey: "lastSeenAt", + GoField: "LastSeenAt", + EntField: "last_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastSeenIP", - GoField: "LastSeenIP", - EntField: "last_seen_ip", - Type: "string", - Required: false, + InputKey: "lastSeenIP", + GoField: "LastSeenIP", + EntField: "last_seen_ip", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "metadata", - GoField: "Metadata", - EntField: "metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "metadata", + GoField: "Metadata", + EntField: "metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mfaState", - GoField: "MfaState", - EntField: "mfa_state", - Type: "string", - Required: true, + InputKey: "mfaState", + GoField: "MfaState", + EntField: "mfa_state", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: true, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "organizationUnit", - GoField: "OrganizationUnit", - EntField: "organization_unit", - Type: "string", - Required: false, + InputKey: "organizationUnit", + GoField: "OrganizationUnit", + EntField: "organization_unit", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "phoneNumber", - GoField: "PhoneNumber", - EntField: "phone_number", - Type: "string", - Required: false, + InputKey: "phoneNumber", + GoField: "PhoneNumber", + EntField: "phone_number", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "platformID", - GoField: "PlatformID", - EntField: "platform_id", - Type: "string", - Required: false, + InputKey: "platformID", + GoField: "PlatformID", + EntField: "platform_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "primarySource", - GoField: "PrimarySource", - EntField: "primary_source", - Type: "bool", - Required: true, + InputKey: "primarySource", + GoField: "PrimarySource", + EntField: "primary_source", + Type: "bool", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "profile", - GoField: "Profile", - EntField: "profile", - Type: "json.RawMessage", - Required: false, + InputKey: "profile", + GoField: "Profile", + EntField: "profile", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "profileHash", - GoField: "ProfileHash", - EntField: "profile_hash", - Type: "string", - Required: true, + InputKey: "profileHash", + GoField: "ProfileHash", + EntField: "profile_hash", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "removedAt", - GoField: "RemovedAt", - EntField: "removed_at", - Type: "time.Time", - Required: false, + InputKey: "removedAt", + GoField: "RemovedAt", + EntField: "removed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "secondaryKey", - GoField: "SecondaryKey", - EntField: "secondary_key", - Type: "string", - Required: false, + InputKey: "secondaryKey", + GoField: "SecondaryKey", + EntField: "secondary_key", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "sourceVersion", - GoField: "SourceVersion", - EntField: "source_version", - Type: "string", - Required: false, + InputKey: "sourceVersion", + GoField: "SourceVersion", + EntField: "source_version", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: true, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "accountType": {}, - "addedAt": {}, - "avatarRemoteURL": {}, - "avatarUpdatedAt": {}, - "canonicalEmail": {}, - "department": {}, + "accountType": {}, + "addedAt": {}, + "avatarRemoteURL": {}, + "avatarUpdatedAt": {}, + "canonicalEmail": {}, + "department": {}, "directoryInstanceID": {}, - "directoryName": {}, - "directorySyncRunID": {}, - "displayName": {}, - "emailAliases": {}, - "environmentID": {}, - "environmentName": {}, - "externalID": {}, - "familyName": {}, - "firstSeenAt": {}, - "givenName": {}, - "identityHolderID": {}, - "integrationID": {}, - "jobTitle": {}, - "lastLoginAt": {}, - "lastSeenAt": {}, - "lastSeenIP": {}, - "metadata": {}, - "mfaState": {}, - "observedAt": {}, - "organizationUnit": {}, - "ownerID": {}, - "phoneNumber": {}, - "platformID": {}, - "primarySource": {}, - "profile": {}, - "profileHash": {}, - "removedAt": {}, - "scopeID": {}, - "scopeName": {}, - "secondaryKey": {}, - "sourceVersion": {}, - "status": {}, - "tags": {}, + "directoryName": {}, + "directorySyncRunID": {}, + "displayName": {}, + "emailAliases": {}, + "environmentID": {}, + "environmentName": {}, + "externalID": {}, + "familyName": {}, + "firstSeenAt": {}, + "givenName": {}, + "identityHolderID": {}, + "integrationID": {}, + "jobTitle": {}, + "lastLoginAt": {}, + "lastSeenAt": {}, + "lastSeenIP": {}, + "metadata": {}, + "mfaState": {}, + "observedAt": {}, + "organizationUnit": {}, + "ownerID": {}, + "phoneNumber": {}, + "platformID": {}, + "primarySource": {}, + "profile": {}, + "profileHash": {}, + "removedAt": {}, + "scopeID": {}, + "scopeName": {}, + "secondaryKey": {}, + "sourceVersion": {}, + "status": {}, + "tags": {}, }, RequiredKeys: []string{ "externalID", @@ -1612,267 +1611,267 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "DirectoryGroup", Fields: []IntegrationMappingField{ { - InputKey: "addedAt", - GoField: "AddedAt", - EntField: "added_at", - Type: "time.Time", - Required: false, + InputKey: "addedAt", + GoField: "AddedAt", + EntField: "added_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "classification", - GoField: "Classification", - EntField: "classification", - Type: "string", - Required: true, + InputKey: "classification", + GoField: "Classification", + EntField: "classification", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryInstanceID", - GoField: "DirectoryInstanceID", - EntField: "directory_instance_id", - Type: "string", - Required: false, + InputKey: "directoryInstanceID", + GoField: "DirectoryInstanceID", + EntField: "directory_instance_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryName", - GoField: "DirectoryName", - EntField: "directory_name", - Type: "string", - Required: false, + InputKey: "directoryName", + GoField: "DirectoryName", + EntField: "directory_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directorySyncRunID", - GoField: "DirectorySyncRunID", - EntField: "directory_sync_run_id", - Type: "string", - Required: true, + InputKey: "directorySyncRunID", + GoField: "DirectorySyncRunID", + EntField: "directory_sync_run_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "email", - GoField: "Email", - EntField: "email", - Type: "string", - Required: false, + InputKey: "email", + GoField: "Email", + EntField: "email", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: true, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: true, UpsertKey: false, LookupKey: true, }, { - InputKey: "externalSharingAllowed", - GoField: "ExternalSharingAllowed", - EntField: "external_sharing_allowed", - Type: "bool", - Required: false, + InputKey: "externalSharingAllowed", + GoField: "ExternalSharingAllowed", + EntField: "external_sharing_allowed", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "firstSeenAt", - GoField: "FirstSeenAt", - EntField: "first_seen_at", - Type: "time.Time", - Required: false, + InputKey: "firstSeenAt", + GoField: "FirstSeenAt", + EntField: "first_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: true, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: false, }, { - InputKey: "lastSeenAt", - GoField: "LastSeenAt", - EntField: "last_seen_at", - Type: "time.Time", - Required: false, + InputKey: "lastSeenAt", + GoField: "LastSeenAt", + EntField: "last_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "memberCount", - GoField: "MemberCount", - EntField: "member_count", - Type: "int", - Required: false, + InputKey: "memberCount", + GoField: "MemberCount", + EntField: "member_count", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "metadata", - GoField: "Metadata", - EntField: "metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "metadata", + GoField: "Metadata", + EntField: "metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: true, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "platformID", - GoField: "PlatformID", - EntField: "platform_id", - Type: "string", - Required: false, + InputKey: "platformID", + GoField: "PlatformID", + EntField: "platform_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "profile", - GoField: "Profile", - EntField: "profile", - Type: "json.RawMessage", - Required: false, + InputKey: "profile", + GoField: "Profile", + EntField: "profile", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "profileHash", - GoField: "ProfileHash", - EntField: "profile_hash", - Type: "string", - Required: true, + InputKey: "profileHash", + GoField: "ProfileHash", + EntField: "profile_hash", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "removedAt", - GoField: "RemovedAt", - EntField: "removed_at", - Type: "time.Time", - Required: false, + InputKey: "removedAt", + GoField: "RemovedAt", + EntField: "removed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "sourceVersion", - GoField: "SourceVersion", - EntField: "source_version", - Type: "string", - Required: false, + InputKey: "sourceVersion", + GoField: "SourceVersion", + EntField: "source_version", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: true, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "addedAt": {}, - "classification": {}, - "directoryInstanceID": {}, - "directoryName": {}, - "directorySyncRunID": {}, - "displayName": {}, - "email": {}, - "environmentID": {}, - "environmentName": {}, - "externalID": {}, + "addedAt": {}, + "classification": {}, + "directoryInstanceID": {}, + "directoryName": {}, + "directorySyncRunID": {}, + "displayName": {}, + "email": {}, + "environmentID": {}, + "environmentName": {}, + "externalID": {}, "externalSharingAllowed": {}, - "firstSeenAt": {}, - "integrationID": {}, - "lastSeenAt": {}, - "memberCount": {}, - "metadata": {}, - "observedAt": {}, - "platformID": {}, - "profile": {}, - "profileHash": {}, - "removedAt": {}, - "scopeID": {}, - "scopeName": {}, - "sourceVersion": {}, - "status": {}, - "tags": {}, + "firstSeenAt": {}, + "integrationID": {}, + "lastSeenAt": {}, + "memberCount": {}, + "metadata": {}, + "observedAt": {}, + "platformID": {}, + "profile": {}, + "profileHash": {}, + "removedAt": {}, + "scopeID": {}, + "scopeName": {}, + "sourceVersion": {}, + "status": {}, + "tags": {}, }, RequiredKeys: []string{ "classification", @@ -1893,207 +1892,207 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "DirectoryMembership", Fields: []IntegrationMappingField{ { - InputKey: "addedAt", - GoField: "AddedAt", - EntField: "added_at", - Type: "time.Time", - Required: false, + InputKey: "addedAt", + GoField: "AddedAt", + EntField: "added_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryAccountID", - GoField: "DirectoryAccountID", - EntField: "directory_account_id", - Type: "string", - Required: true, + InputKey: "directoryAccountID", + GoField: "DirectoryAccountID", + EntField: "directory_account_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: true, }, { - InputKey: "directoryGroupID", - GoField: "DirectoryGroupID", - EntField: "directory_group_id", - Type: "string", - Required: true, + InputKey: "directoryGroupID", + GoField: "DirectoryGroupID", + EntField: "directory_group_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: true, }, { - InputKey: "directoryInstanceID", - GoField: "DirectoryInstanceID", - EntField: "directory_instance_id", - Type: "string", - Required: false, + InputKey: "directoryInstanceID", + GoField: "DirectoryInstanceID", + EntField: "directory_instance_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directoryName", - GoField: "DirectoryName", - EntField: "directory_name", - Type: "string", - Required: false, + InputKey: "directoryName", + GoField: "DirectoryName", + EntField: "directory_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "directorySyncRunID", - GoField: "DirectorySyncRunID", - EntField: "directory_sync_run_id", - Type: "string", - Required: true, + InputKey: "directorySyncRunID", + GoField: "DirectorySyncRunID", + EntField: "directory_sync_run_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "firstSeenAt", - GoField: "FirstSeenAt", - EntField: "first_seen_at", - Type: "time.Time", - Required: false, + InputKey: "firstSeenAt", + GoField: "FirstSeenAt", + EntField: "first_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: true, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: false, }, { - InputKey: "lastConfirmedRunID", - GoField: "LastConfirmedRunID", - EntField: "last_confirmed_run_id", - Type: "string", - Required: false, + InputKey: "lastConfirmedRunID", + GoField: "LastConfirmedRunID", + EntField: "last_confirmed_run_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastSeenAt", - GoField: "LastSeenAt", - EntField: "last_seen_at", - Type: "time.Time", - Required: false, + InputKey: "lastSeenAt", + GoField: "LastSeenAt", + EntField: "last_seen_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "metadata", - GoField: "Metadata", - EntField: "metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "metadata", + GoField: "Metadata", + EntField: "metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: true, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: true, UpsertKey: false, LookupKey: false, }, { - InputKey: "platformID", - GoField: "PlatformID", - EntField: "platform_id", - Type: "string", - Required: false, + InputKey: "platformID", + GoField: "PlatformID", + EntField: "platform_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "removedAt", - GoField: "RemovedAt", - EntField: "removed_at", - Type: "time.Time", - Required: false, + InputKey: "removedAt", + GoField: "RemovedAt", + EntField: "removed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "role", - GoField: "Role", - EntField: "role", - Type: "string", - Required: false, + InputKey: "role", + GoField: "Role", + EntField: "role", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "source", - GoField: "Source", - EntField: "source", - Type: "string", - Required: false, + InputKey: "source", + GoField: "Source", + EntField: "source", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "addedAt": {}, - "directoryAccountID": {}, - "directoryGroupID": {}, + "addedAt": {}, + "directoryAccountID": {}, + "directoryGroupID": {}, "directoryInstanceID": {}, - "directoryName": {}, - "directorySyncRunID": {}, - "environmentID": {}, - "environmentName": {}, - "firstSeenAt": {}, - "integrationID": {}, - "lastConfirmedRunID": {}, - "lastSeenAt": {}, - "metadata": {}, - "observedAt": {}, - "platformID": {}, - "removedAt": {}, - "role": {}, - "scopeID": {}, - "scopeName": {}, - "source": {}, + "directoryName": {}, + "directorySyncRunID": {}, + "environmentID": {}, + "environmentName": {}, + "firstSeenAt": {}, + "integrationID": {}, + "lastConfirmedRunID": {}, + "lastSeenAt": {}, + "metadata": {}, + "observedAt": {}, + "platformID": {}, + "removedAt": {}, + "role": {}, + "scopeID": {}, + "scopeName": {}, + "source": {}, }, RequiredKeys: []string{ "directoryAccountID", @@ -2114,540 +2113,539 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Entity", Fields: []IntegrationMappingField{ { - InputKey: "annualSpend", - GoField: "AnnualSpend", - EntField: "annual_spend", - Type: "float64", - Required: false, + InputKey: "annualSpend", + GoField: "AnnualSpend", + EntField: "annual_spend", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "approvedForUse", - GoField: "ApprovedForUse", - EntField: "approved_for_use", - Type: "bool", - Required: false, + InputKey: "approvedForUse", + GoField: "ApprovedForUse", + EntField: "approved_for_use", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "autoRenews", - GoField: "AutoRenews", - EntField: "auto_renews", - Type: "bool", - Required: false, + InputKey: "autoRenews", + GoField: "AutoRenews", + EntField: "auto_renews", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "billingModel", - GoField: "BillingModel", - EntField: "billing_model", - Type: "string", - Required: false, + InputKey: "billingModel", + GoField: "BillingModel", + EntField: "billing_model", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "contractEndDate", - GoField: "ContractEndDate", - EntField: "contract_end_date", - Type: "time.Time", - Required: false, + InputKey: "contractEndDate", + GoField: "ContractEndDate", + EntField: "contract_end_date", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "contractRenewalAt", - GoField: "ContractRenewalAt", - EntField: "contract_renewal_at", - Type: "time.Time", - Required: false, + InputKey: "contractRenewalAt", + GoField: "ContractRenewalAt", + EntField: "contract_renewal_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "contractStartDate", - GoField: "ContractStartDate", - EntField: "contract_start_date", - Type: "time.Time", - Required: false, + InputKey: "contractStartDate", + GoField: "ContractStartDate", + EntField: "contract_start_date", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "description", - GoField: "Description", - EntField: "description", - Type: "string", - Required: false, + InputKey: "description", + GoField: "Description", + EntField: "description", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "domains", - GoField: "Domains", - EntField: "domains", - Type: "json.RawMessage", - Required: false, + InputKey: "domains", + GoField: "Domains", + EntField: "domains", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entityRelationshipStateID", - GoField: "EntityRelationshipStateID", - EntField: "entity_relationship_state_id", - Type: "string", - Required: false, + InputKey: "entityRelationshipStateID", + GoField: "EntityRelationshipStateID", + EntField: "entity_relationship_state_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entityRelationshipStateName", - GoField: "EntityRelationshipStateName", - EntField: "entity_relationship_state_name", - Type: "string", - Required: false, + InputKey: "entityRelationshipStateName", + GoField: "EntityRelationshipStateName", + EntField: "entity_relationship_state_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entitySecurityQuestionnaireStatusID", - GoField: "EntitySecurityQuestionnaireStatusID", - EntField: "entity_security_questionnaire_status_id", - Type: "string", - Required: false, + InputKey: "entitySecurityQuestionnaireStatusID", + GoField: "EntitySecurityQuestionnaireStatusID", + EntField: "entity_security_questionnaire_status_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entitySecurityQuestionnaireStatusName", - GoField: "EntitySecurityQuestionnaireStatusName", - EntField: "entity_security_questionnaire_status_name", - Type: "string", - Required: false, + InputKey: "entitySecurityQuestionnaireStatusName", + GoField: "EntitySecurityQuestionnaireStatusName", + EntField: "entity_security_questionnaire_status_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entitySourceTypeID", - GoField: "EntitySourceTypeID", - EntField: "entity_source_type_id", - Type: "string", - Required: false, + InputKey: "entitySourceTypeID", + GoField: "EntitySourceTypeID", + EntField: "entity_source_type_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "entitySourceTypeName", - GoField: "EntitySourceTypeName", - EntField: "entity_source_type_name", - Type: "string", - Required: false, + InputKey: "entitySourceTypeName", + GoField: "EntitySourceTypeName", + EntField: "entity_source_type_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: false, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "hasSoc2", - GoField: "HasSoc2", - EntField: "has_soc2", - Type: "bool", - Required: false, + InputKey: "hasSoc2", + GoField: "HasSoc2", + EntField: "has_soc2", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalNotes", - GoField: "InternalNotes", - EntField: "internal_notes", - Type: "string", - Required: false, + InputKey: "internalNotes", + GoField: "InternalNotes", + EntField: "internal_notes", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwner", - GoField: "InternalOwner", - EntField: "internal_owner", - Type: "string", - Required: false, + InputKey: "internalOwner", + GoField: "InternalOwner", + EntField: "internal_owner", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwnerGroupID", - GoField: "InternalOwnerGroupID", - EntField: "internal_owner_group_id", - Type: "string", - Required: false, + InputKey: "internalOwnerGroupID", + GoField: "InternalOwnerGroupID", + EntField: "internal_owner_group_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalOwnerUserID", - GoField: "InternalOwnerUserID", - EntField: "internal_owner_user_id", - Type: "string", - Required: false, + InputKey: "internalOwnerUserID", + GoField: "InternalOwnerUserID", + EntField: "internal_owner_user_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastReviewedAt", - GoField: "LastReviewedAt", - EntField: "last_reviewed_at", - Type: "time.Time", - Required: false, + InputKey: "lastReviewedAt", + GoField: "LastReviewedAt", + EntField: "last_reviewed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "links", - GoField: "Links", - EntField: "links", - Type: "json.RawMessage", - Required: false, + InputKey: "links", + GoField: "Links", + EntField: "links", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "logoRemoteURL", - GoField: "LogoRemoteURL", - EntField: "logo_remote_url", - Type: "string", - Required: false, + InputKey: "logoRemoteURL", + GoField: "LogoRemoteURL", + EntField: "logo_remote_url", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mfaEnforced", - GoField: "MfaEnforced", - EntField: "mfa_enforced", - Type: "bool", - Required: false, + InputKey: "mfaEnforced", + GoField: "MfaEnforced", + EntField: "mfa_enforced", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mfaSupported", - GoField: "MfaSupported", - EntField: "mfa_supported", - Type: "bool", - Required: false, + InputKey: "mfaSupported", + GoField: "MfaSupported", + EntField: "mfa_supported", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "name", - GoField: "Name", - EntField: "name", - Type: "string", - Required: false, + InputKey: "name", + GoField: "Name", + EntField: "name", + Type: "string", + Required: false, UpsertKey: true, LookupKey: false, }, { - InputKey: "nextReviewAt", - GoField: "NextReviewAt", - EntField: "next_review_at", - Type: "time.Time", - Required: false, + InputKey: "nextReviewAt", + GoField: "NextReviewAt", + EntField: "next_review_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: false, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "providedServices", - GoField: "ProvidedServices", - EntField: "provided_services", - Type: "json.RawMessage", - Required: false, + InputKey: "providedServices", + GoField: "ProvidedServices", + EntField: "provided_services", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "renewalRisk", - GoField: "RenewalRisk", - EntField: "renewal_risk", - Type: "string", - Required: false, + InputKey: "renewalRisk", + GoField: "RenewalRisk", + EntField: "renewal_risk", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewFrequency", - GoField: "ReviewFrequency", - EntField: "review_frequency", - Type: "string", - Required: false, + InputKey: "reviewFrequency", + GoField: "ReviewFrequency", + EntField: "review_frequency", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewedBy", - GoField: "ReviewedBy", - EntField: "reviewed_by", - Type: "string", - Required: false, + InputKey: "reviewedBy", + GoField: "ReviewedBy", + EntField: "reviewed_by", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewedByGroupID", - GoField: "ReviewedByGroupID", - EntField: "reviewed_by_group_id", - Type: "string", - Required: false, + InputKey: "reviewedByGroupID", + GoField: "ReviewedByGroupID", + EntField: "reviewed_by_group_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewedByUserID", - GoField: "ReviewedByUserID", - EntField: "reviewed_by_user_id", - Type: "string", - Required: false, + InputKey: "reviewedByUserID", + GoField: "ReviewedByUserID", + EntField: "reviewed_by_user_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskRating", - GoField: "RiskRating", - EntField: "risk_rating", - Type: "string", - Required: false, + InputKey: "riskRating", + GoField: "RiskRating", + EntField: "risk_rating", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskScore", - GoField: "RiskScore", - EntField: "risk_score", - Type: "int", - Required: false, + InputKey: "riskScore", + GoField: "RiskScore", + EntField: "risk_score", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "soc2PeriodEnd", - GoField: "Soc2PeriodEnd", - EntField: "soc2_period_end", - Type: "time.Time", - Required: false, + InputKey: "soc2PeriodEnd", + GoField: "Soc2PeriodEnd", + EntField: "soc2_period_end", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "spendCurrency", - GoField: "SpendCurrency", - EntField: "spend_currency", - Type: "string", - Required: false, + InputKey: "spendCurrency", + GoField: "SpendCurrency", + EntField: "spend_currency", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ssoEnforced", - GoField: "SsoEnforced", - EntField: "sso_enforced", - Type: "bool", - Required: false, + InputKey: "ssoEnforced", + GoField: "SsoEnforced", + EntField: "sso_enforced", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: false, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "statusPageURL", - GoField: "StatusPageURL", - EntField: "status_page_url", - Type: "string", - Required: false, + InputKey: "statusPageURL", + GoField: "StatusPageURL", + EntField: "status_page_url", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "systemInternalID", - GoField: "SystemInternalID", - EntField: "system_internal_id", - Type: "string", - Required: false, + InputKey: "systemInternalID", + GoField: "SystemInternalID", + EntField: "system_internal_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "terminationNoticeDays", - GoField: "TerminationNoticeDays", - EntField: "termination_notice_days", - Type: "int", - Required: false, + InputKey: "terminationNoticeDays", + GoField: "TerminationNoticeDays", + EntField: "termination_notice_days", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tier", - GoField: "Tier", - EntField: "tier", - Type: "string", - Required: false, + InputKey: "tier", + GoField: "Tier", + EntField: "tier", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vendorMetadata", - GoField: "VendorMetadata", - EntField: "vendor_metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "vendorMetadata", + GoField: "VendorMetadata", + EntField: "vendor_metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "annualSpend": {}, - "approvedForUse": {}, - "autoRenews": {}, - "billingModel": {}, - "contractEndDate": {}, - "contractRenewalAt": {}, - "contractStartDate": {}, - "description": {}, - "displayName": {}, - "domains": {}, - "entityRelationshipStateID": {}, - "entityRelationshipStateName": {}, - "entitySecurityQuestionnaireStatusID": {}, + "annualSpend": {}, + "approvedForUse": {}, + "autoRenews": {}, + "billingModel": {}, + "contractEndDate": {}, + "contractRenewalAt": {}, + "contractStartDate": {}, + "description": {}, + "displayName": {}, + "domains": {}, + "entityRelationshipStateID": {}, + "entityRelationshipStateName": {}, + "entitySecurityQuestionnaireStatusID": {}, "entitySecurityQuestionnaireStatusName": {}, - "entitySourceTypeID": {}, - "entitySourceTypeName": {}, - "environmentID": {}, - "environmentName": {}, - "externalID": {}, - "hasSoc2": {}, - "internalNotes": {}, - "internalOwner": {}, - "internalOwnerGroupID": {}, - "internalOwnerUserID": {}, - "lastReviewedAt": {}, - "links": {}, - "logoRemoteURL": {}, - "mfaEnforced": {}, - "mfaSupported": {}, - "name": {}, - "nextReviewAt": {}, - "observedAt": {}, - "ownerID": {}, - "providedServices": {}, - "renewalRisk": {}, - "reviewFrequency": {}, - "reviewedBy": {}, - "reviewedByGroupID": {}, - "reviewedByUserID": {}, - "riskRating": {}, - "riskScore": {}, - "scopeID": {}, - "scopeName": {}, - "soc2PeriodEnd": {}, - "spendCurrency": {}, - "ssoEnforced": {}, - "status": {}, - "statusPageURL": {}, - "systemInternalID": {}, - "tags": {}, - "terminationNoticeDays": {}, - "tier": {}, - "vendorMetadata": {}, - }, - RequiredKeys: []string{ + "entitySourceTypeID": {}, + "entitySourceTypeName": {}, + "environmentID": {}, + "environmentName": {}, + "externalID": {}, + "hasSoc2": {}, + "internalNotes": {}, + "internalOwner": {}, + "internalOwnerGroupID": {}, + "internalOwnerUserID": {}, + "lastReviewedAt": {}, + "links": {}, + "logoRemoteURL": {}, + "mfaEnforced": {}, + "mfaSupported": {}, + "name": {}, + "nextReviewAt": {}, + "observedAt": {}, + "ownerID": {}, + "providedServices": {}, + "renewalRisk": {}, + "reviewFrequency": {}, + "reviewedBy": {}, + "reviewedByGroupID": {}, + "reviewedByUserID": {}, + "riskRating": {}, + "riskScore": {}, + "scopeID": {}, + "scopeName": {}, + "soc2PeriodEnd": {}, + "spendCurrency": {}, + "ssoEnforced": {}, + "status": {}, + "statusPageURL": {}, + "systemInternalID": {}, + "tags": {}, + "terminationNoticeDays": {}, + "tier": {}, + "vendorMetadata": {}, }, + RequiredKeys: []string{}, UpsertKeys: []string{ "externalID", "name", @@ -2658,470 +2656,469 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Finding", Fields: []IntegrationMappingField{ { - InputKey: "assessmentID", - GoField: "AssessmentID", - EntField: "assessment_id", - Type: "string", - Required: false, + InputKey: "assessmentID", + GoField: "AssessmentID", + EntField: "assessment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "blocksProduction", - GoField: "BlocksProduction", - EntField: "blocks_production", - Type: "bool", - Required: false, + InputKey: "blocksProduction", + GoField: "BlocksProduction", + EntField: "blocks_production", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "categories", - GoField: "Categories", - EntField: "categories", - Type: "json.RawMessage", - Required: false, + InputKey: "categories", + GoField: "Categories", + EntField: "categories", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "category", - GoField: "Category", - EntField: "category", - Type: "string", - Required: false, + InputKey: "category", + GoField: "Category", + EntField: "category", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "description", - GoField: "Description", - EntField: "description", - Type: "string", - Required: false, + InputKey: "description", + GoField: "Description", + EntField: "description", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "eventTime", - GoField: "EventTime", - EntField: "event_time", - Type: "time.Time", - Required: false, + InputKey: "eventTime", + GoField: "EventTime", + EntField: "event_time", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "exploitability", - GoField: "Exploitability", - EntField: "exploitability", - Type: "float64", - Required: false, + InputKey: "exploitability", + GoField: "Exploitability", + EntField: "exploitability", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: false, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "externalOwnerID", - GoField: "ExternalOwnerID", - EntField: "external_owner_id", - Type: "string", - Required: false, + InputKey: "externalOwnerID", + GoField: "ExternalOwnerID", + EntField: "external_owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalURI", - GoField: "ExternalURI", - EntField: "external_uri", - Type: "string", - Required: false, + InputKey: "externalURI", + GoField: "ExternalURI", + EntField: "external_uri", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "findingClass", - GoField: "FindingClass", - EntField: "finding_class", - Type: "string", - Required: false, + InputKey: "findingClass", + GoField: "FindingClass", + EntField: "finding_class", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "findingStatusID", - GoField: "FindingStatusID", - EntField: "finding_status_id", - Type: "string", - Required: false, + InputKey: "findingStatusID", + GoField: "FindingStatusID", + EntField: "finding_status_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "findingStatusName", - GoField: "FindingStatusName", - EntField: "finding_status_name", - Type: "string", - Required: false, + InputKey: "findingStatusName", + GoField: "FindingStatusName", + EntField: "finding_status_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "impact", - GoField: "Impact", - EntField: "impact", - Type: "float64", - Required: false, + InputKey: "impact", + GoField: "Impact", + EntField: "impact", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalNotes", - GoField: "InternalNotes", - EntField: "internal_notes", - Type: "string", - Required: false, + InputKey: "internalNotes", + GoField: "InternalNotes", + EntField: "internal_notes", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "metadata", - GoField: "Metadata", - EntField: "metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "metadata", + GoField: "Metadata", + EntField: "metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "numericSeverity", - GoField: "NumericSeverity", - EntField: "numeric_severity", - Type: "float64", - Required: false, + InputKey: "numericSeverity", + GoField: "NumericSeverity", + EntField: "numeric_severity", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "open", - GoField: "Open", - EntField: "open", - Type: "bool", - Required: false, + InputKey: "open", + GoField: "Open", + EntField: "open", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "priority", - GoField: "Priority", - EntField: "priority", - Type: "string", - Required: false, + InputKey: "priority", + GoField: "Priority", + EntField: "priority", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "production", - GoField: "Production", - EntField: "production", - Type: "bool", - Required: false, + InputKey: "production", + GoField: "Production", + EntField: "production", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "public", - GoField: "Public", - EntField: "public", - Type: "bool", - Required: false, + InputKey: "public", + GoField: "Public", + EntField: "public", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "rawPayload", - GoField: "RawPayload", - EntField: "raw_payload", - Type: "json.RawMessage", - Required: false, + InputKey: "rawPayload", + GoField: "RawPayload", + EntField: "raw_payload", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "recommendation", - GoField: "Recommendation", - EntField: "recommendation", - Type: "string", - Required: false, + InputKey: "recommendation", + GoField: "Recommendation", + EntField: "recommendation", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "recommendedActions", - GoField: "RecommendedActions", - EntField: "recommended_actions", - Type: "string", - Required: false, + InputKey: "recommendedActions", + GoField: "RecommendedActions", + EntField: "recommended_actions", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "references", - GoField: "References", - EntField: "references", - Type: "json.RawMessage", - Required: false, + InputKey: "references", + GoField: "References", + EntField: "references", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "remediationSLA", - GoField: "RemediationSLA", - EntField: "remediation_sla", - Type: "int", - Required: false, + InputKey: "remediationSLA", + GoField: "RemediationSLA", + EntField: "remediation_sla", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reportedAt", - GoField: "ReportedAt", - EntField: "reported_at", - Type: "time.Time", - Required: false, + InputKey: "reportedAt", + GoField: "ReportedAt", + EntField: "reported_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "resourceName", - GoField: "ResourceName", - EntField: "resource_name", - Type: "string", - Required: false, + InputKey: "resourceName", + GoField: "ResourceName", + EntField: "resource_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "score", - GoField: "Score", - EntField: "score", - Type: "float64", - Required: false, + InputKey: "score", + GoField: "Score", + EntField: "score", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "severity", - GoField: "Severity", - EntField: "severity", - Type: "string", - Required: false, + InputKey: "severity", + GoField: "Severity", + EntField: "severity", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "source", - GoField: "Source", - EntField: "source", - Type: "string", - Required: false, + InputKey: "source", + GoField: "Source", + EntField: "source", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "sourceUpdatedAt", - GoField: "SourceUpdatedAt", - EntField: "source_updated_at", - Type: "time.Time", - Required: false, + InputKey: "sourceUpdatedAt", + GoField: "SourceUpdatedAt", + EntField: "source_updated_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "state", - GoField: "State", - EntField: "state", - Type: "string", - Required: false, + InputKey: "state", + GoField: "State", + EntField: "state", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "stepsToReproduce", - GoField: "StepsToReproduce", - EntField: "steps_to_reproduce", - Type: "json.RawMessage", - Required: false, + InputKey: "stepsToReproduce", + GoField: "StepsToReproduce", + EntField: "steps_to_reproduce", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "systemInternalID", - GoField: "SystemInternalID", - EntField: "system_internal_id", - Type: "string", - Required: false, + InputKey: "systemInternalID", + GoField: "SystemInternalID", + EntField: "system_internal_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "targetDetails", - GoField: "TargetDetails", - EntField: "target_details", - Type: "json.RawMessage", - Required: false, + InputKey: "targetDetails", + GoField: "TargetDetails", + EntField: "target_details", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "targets", - GoField: "Targets", - EntField: "targets", - Type: "json.RawMessage", - Required: false, + InputKey: "targets", + GoField: "Targets", + EntField: "targets", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "validated", - GoField: "Validated", - EntField: "validated", - Type: "bool", - Required: false, + InputKey: "validated", + GoField: "Validated", + EntField: "validated", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vector", - GoField: "Vector", - EntField: "vector", - Type: "string", - Required: false, + InputKey: "vector", + GoField: "Vector", + EntField: "vector", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "assessmentID": {}, - "blocksProduction": {}, - "categories": {}, - "category": {}, - "description": {}, - "displayName": {}, - "environmentID": {}, - "environmentName": {}, - "eventTime": {}, - "exploitability": {}, - "externalID": {}, - "externalOwnerID": {}, - "externalURI": {}, - "findingClass": {}, - "findingStatusID": {}, - "findingStatusName": {}, - "impact": {}, - "internalNotes": {}, - "metadata": {}, - "numericSeverity": {}, - "open": {}, - "ownerID": {}, - "priority": {}, - "production": {}, - "public": {}, - "rawPayload": {}, - "recommendation": {}, + "assessmentID": {}, + "blocksProduction": {}, + "categories": {}, + "category": {}, + "description": {}, + "displayName": {}, + "environmentID": {}, + "environmentName": {}, + "eventTime": {}, + "exploitability": {}, + "externalID": {}, + "externalOwnerID": {}, + "externalURI": {}, + "findingClass": {}, + "findingStatusID": {}, + "findingStatusName": {}, + "impact": {}, + "internalNotes": {}, + "metadata": {}, + "numericSeverity": {}, + "open": {}, + "ownerID": {}, + "priority": {}, + "production": {}, + "public": {}, + "rawPayload": {}, + "recommendation": {}, "recommendedActions": {}, - "references": {}, - "remediationSLA": {}, - "reportedAt": {}, - "resourceName": {}, - "scopeID": {}, - "scopeName": {}, - "score": {}, - "severity": {}, - "source": {}, - "sourceUpdatedAt": {}, - "state": {}, - "stepsToReproduce": {}, - "systemInternalID": {}, - "tags": {}, - "targetDetails": {}, - "targets": {}, - "validated": {}, - "vector": {}, - }, - RequiredKeys: []string{ + "references": {}, + "remediationSLA": {}, + "reportedAt": {}, + "resourceName": {}, + "scopeID": {}, + "scopeName": {}, + "score": {}, + "severity": {}, + "source": {}, + "sourceUpdatedAt": {}, + "state": {}, + "stepsToReproduce": {}, + "systemInternalID": {}, + "tags": {}, + "targetDetails": {}, + "targets": {}, + "validated": {}, + "vector": {}, }, + RequiredKeys: []string{}, UpsertKeys: []string{ "externalID", }, @@ -3131,337 +3128,337 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Risk", Fields: []IntegrationMappingField{ { - InputKey: "businessCosts", - GoField: "BusinessCosts", - EntField: "business_costs", - Type: "string", - Required: false, + InputKey: "businessCosts", + GoField: "BusinessCosts", + EntField: "business_costs", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "businessCostsJSON", - GoField: "BusinessCostsJSON", - EntField: "business_costs_json", - Type: "json.RawMessage", - Required: false, + InputKey: "businessCostsJSON", + GoField: "BusinessCostsJSON", + EntField: "business_costs_json", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "details", - GoField: "Details", - EntField: "details", - Type: "string", - Required: false, + InputKey: "details", + GoField: "Details", + EntField: "details", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "detailsJSON", - GoField: "DetailsJSON", - EntField: "details_json", - Type: "json.RawMessage", - Required: false, + InputKey: "detailsJSON", + GoField: "DetailsJSON", + EntField: "details_json", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "dueDate", - GoField: "DueDate", - EntField: "due_date", - Type: "time.Time", - Required: false, + InputKey: "dueDate", + GoField: "DueDate", + EntField: "due_date", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: false, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: false, UpsertKey: true, LookupKey: true, }, { - InputKey: "externalUUID", - GoField: "ExternalUUID", - EntField: "external_uuid", - Type: "string", - Required: false, + InputKey: "externalUUID", + GoField: "ExternalUUID", + EntField: "external_uuid", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "impact", - GoField: "Impact", - EntField: "impact", - Type: "string", - Required: false, + InputKey: "impact", + GoField: "Impact", + EntField: "impact", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "integrationID", - GoField: "IntegrationID", - EntField: "integration_id", - Type: "string", - Required: false, + InputKey: "integrationID", + GoField: "IntegrationID", + EntField: "integration_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "lastReviewedAt", - GoField: "LastReviewedAt", - EntField: "last_reviewed_at", - Type: "time.Time", - Required: false, + InputKey: "lastReviewedAt", + GoField: "LastReviewedAt", + EntField: "last_reviewed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "likelihood", - GoField: "Likelihood", - EntField: "likelihood", - Type: "string", - Required: false, + InputKey: "likelihood", + GoField: "Likelihood", + EntField: "likelihood", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mitigatedAt", - GoField: "MitigatedAt", - EntField: "mitigated_at", - Type: "time.Time", - Required: false, + InputKey: "mitigatedAt", + GoField: "MitigatedAt", + EntField: "mitigated_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mitigation", - GoField: "Mitigation", - EntField: "mitigation", - Type: "string", - Required: false, + InputKey: "mitigation", + GoField: "Mitigation", + EntField: "mitigation", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "mitigationJSON", - GoField: "MitigationJSON", - EntField: "mitigation_json", - Type: "json.RawMessage", - Required: false, + InputKey: "mitigationJSON", + GoField: "MitigationJSON", + EntField: "mitigation_json", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "name", - GoField: "Name", - EntField: "name", - Type: "string", - Required: true, + InputKey: "name", + GoField: "Name", + EntField: "name", + Type: "string", + Required: true, UpsertKey: true, LookupKey: false, }, { - InputKey: "nextReviewDueAt", - GoField: "NextReviewDueAt", - EntField: "next_review_due_at", - Type: "time.Time", - Required: false, + InputKey: "nextReviewDueAt", + GoField: "NextReviewDueAt", + EntField: "next_review_due_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "observedAt", - GoField: "ObservedAt", - EntField: "observed_at", - Type: "time.Time", - Required: false, + InputKey: "observedAt", + GoField: "ObservedAt", + EntField: "observed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "residualScore", - GoField: "ResidualScore", - EntField: "residual_score", - Type: "int", - Required: false, + InputKey: "residualScore", + GoField: "ResidualScore", + EntField: "residual_score", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewFrequency", - GoField: "ReviewFrequency", - EntField: "review_frequency", - Type: "string", - Required: false, + InputKey: "reviewFrequency", + GoField: "ReviewFrequency", + EntField: "review_frequency", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "reviewRequired", - GoField: "ReviewRequired", - EntField: "review_required", - Type: "bool", - Required: false, + InputKey: "reviewRequired", + GoField: "ReviewRequired", + EntField: "review_required", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskCategoryID", - GoField: "RiskCategoryID", - EntField: "risk_category_id", - Type: "string", - Required: false, + InputKey: "riskCategoryID", + GoField: "RiskCategoryID", + EntField: "risk_category_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskCategoryName", - GoField: "RiskCategoryName", - EntField: "risk_category_name", - Type: "string", - Required: false, + InputKey: "riskCategoryName", + GoField: "RiskCategoryName", + EntField: "risk_category_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskDecision", - GoField: "RiskDecision", - EntField: "risk_decision", - Type: "string", - Required: false, + InputKey: "riskDecision", + GoField: "RiskDecision", + EntField: "risk_decision", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskKindID", - GoField: "RiskKindID", - EntField: "risk_kind_id", - Type: "string", - Required: false, + InputKey: "riskKindID", + GoField: "RiskKindID", + EntField: "risk_kind_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "riskKindName", - GoField: "RiskKindName", - EntField: "risk_kind_name", - Type: "string", - Required: false, + InputKey: "riskKindName", + GoField: "RiskKindName", + EntField: "risk_kind_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "score", - GoField: "Score", - EntField: "score", - Type: "int", - Required: false, + InputKey: "score", + GoField: "Score", + EntField: "score", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "status", - GoField: "Status", - EntField: "status", - Type: "string", - Required: false, + InputKey: "status", + GoField: "Status", + EntField: "status", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "businessCosts": {}, + "businessCosts": {}, "businessCostsJSON": {}, - "details": {}, - "detailsJSON": {}, - "dueDate": {}, - "environmentID": {}, - "environmentName": {}, - "externalID": {}, - "externalUUID": {}, - "impact": {}, - "integrationID": {}, - "lastReviewedAt": {}, - "likelihood": {}, - "mitigatedAt": {}, - "mitigation": {}, - "mitigationJSON": {}, - "name": {}, - "nextReviewDueAt": {}, - "observedAt": {}, - "ownerID": {}, - "residualScore": {}, - "reviewFrequency": {}, - "reviewRequired": {}, - "riskCategoryID": {}, - "riskCategoryName": {}, - "riskDecision": {}, - "riskKindID": {}, - "riskKindName": {}, - "scopeID": {}, - "scopeName": {}, - "score": {}, - "status": {}, - "tags": {}, + "details": {}, + "detailsJSON": {}, + "dueDate": {}, + "environmentID": {}, + "environmentName": {}, + "externalID": {}, + "externalUUID": {}, + "impact": {}, + "integrationID": {}, + "lastReviewedAt": {}, + "likelihood": {}, + "mitigatedAt": {}, + "mitigation": {}, + "mitigationJSON": {}, + "name": {}, + "nextReviewDueAt": {}, + "observedAt": {}, + "ownerID": {}, + "residualScore": {}, + "reviewFrequency": {}, + "reviewRequired": {}, + "riskCategoryID": {}, + "riskCategoryName": {}, + "riskDecision": {}, + "riskKindID": {}, + "riskKindName": {}, + "scopeID": {}, + "scopeName": {}, + "score": {}, + "status": {}, + "tags": {}, }, RequiredKeys: []string{ "name", @@ -3476,517 +3473,517 @@ var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ Name: "Vulnerability", Fields: []IntegrationMappingField{ { - InputKey: "autoDismissedAt", - GoField: "AutoDismissedAt", - EntField: "auto_dismissed_at", - Type: "time.Time", - Required: false, + InputKey: "autoDismissedAt", + GoField: "AutoDismissedAt", + EntField: "auto_dismissed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "blocking", - GoField: "Blocking", - EntField: "blocking", - Type: "bool", - Required: false, + InputKey: "blocking", + GoField: "Blocking", + EntField: "blocking", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "category", - GoField: "Category", - EntField: "category", - Type: "string", - Required: false, + InputKey: "category", + GoField: "Category", + EntField: "category", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "cveID", - GoField: "CveID", - EntField: "cve_id", - Type: "string", - Required: false, + InputKey: "cveID", + GoField: "CveID", + EntField: "cve_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "cweIds", - GoField: "CweIds", - EntField: "cwe_ids", - Type: "json.RawMessage", - Required: false, + InputKey: "cweIds", + GoField: "CweIds", + EntField: "cwe_ids", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "dependencyScope", - GoField: "DependencyScope", - EntField: "dependency_scope", - Type: "string", - Required: false, + InputKey: "dependencyScope", + GoField: "DependencyScope", + EntField: "dependency_scope", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "description", - GoField: "Description", - EntField: "description", - Type: "string", - Required: false, + InputKey: "description", + GoField: "Description", + EntField: "description", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "discoveredAt", - GoField: "DiscoveredAt", - EntField: "discovered_at", - Type: "time.Time", - Required: false, + InputKey: "discoveredAt", + GoField: "DiscoveredAt", + EntField: "discovered_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "dismissedAt", - GoField: "DismissedAt", - EntField: "dismissed_at", - Type: "time.Time", - Required: false, + InputKey: "dismissedAt", + GoField: "DismissedAt", + EntField: "dismissed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "dismissedComment", - GoField: "DismissedComment", - EntField: "dismissed_comment", - Type: "string", - Required: false, + InputKey: "dismissedComment", + GoField: "DismissedComment", + EntField: "dismissed_comment", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "dismissedReason", - GoField: "DismissedReason", - EntField: "dismissed_reason", - Type: "string", - Required: false, + InputKey: "dismissedReason", + GoField: "DismissedReason", + EntField: "dismissed_reason", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "displayName", - GoField: "DisplayName", - EntField: "display_name", - Type: "string", - Required: false, + InputKey: "displayName", + GoField: "DisplayName", + EntField: "display_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentID", - GoField: "EnvironmentID", - EntField: "environment_id", - Type: "string", - Required: false, + InputKey: "environmentID", + GoField: "EnvironmentID", + EntField: "environment_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "environmentName", - GoField: "EnvironmentName", - EntField: "environment_name", - Type: "string", - Required: false, + InputKey: "environmentName", + GoField: "EnvironmentName", + EntField: "environment_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "exploitability", - GoField: "Exploitability", - EntField: "exploitability", - Type: "float64", - Required: false, + InputKey: "exploitability", + GoField: "Exploitability", + EntField: "exploitability", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalID", - GoField: "ExternalID", - EntField: "external_id", - Type: "string", - Required: true, + InputKey: "externalID", + GoField: "ExternalID", + EntField: "external_id", + Type: "string", + Required: true, UpsertKey: true, LookupKey: true, }, { - InputKey: "externalOwnerID", - GoField: "ExternalOwnerID", - EntField: "external_owner_id", - Type: "string", - Required: false, + InputKey: "externalOwnerID", + GoField: "ExternalOwnerID", + EntField: "external_owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "externalURI", - GoField: "ExternalURI", - EntField: "external_uri", - Type: "string", - Required: false, + InputKey: "externalURI", + GoField: "ExternalURI", + EntField: "external_uri", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "firstPatchedVersion", - GoField: "FirstPatchedVersion", - EntField: "first_patched_version", - Type: "string", - Required: false, + InputKey: "firstPatchedVersion", + GoField: "FirstPatchedVersion", + EntField: "first_patched_version", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "fixAvailable", - GoField: "FixAvailable", - EntField: "fix_available", - Type: "bool", - Required: false, + InputKey: "fixAvailable", + GoField: "FixAvailable", + EntField: "fix_available", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "fixedAt", - GoField: "FixedAt", - EntField: "fixed_at", - Type: "time.Time", - Required: false, + InputKey: "fixedAt", + GoField: "FixedAt", + EntField: "fixed_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "impact", - GoField: "Impact", - EntField: "impact", - Type: "float64", - Required: false, + InputKey: "impact", + GoField: "Impact", + EntField: "impact", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "impacts", - GoField: "Impacts", - EntField: "impacts", - Type: "json.RawMessage", - Required: false, + InputKey: "impacts", + GoField: "Impacts", + EntField: "impacts", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "internalNotes", - GoField: "InternalNotes", - EntField: "internal_notes", - Type: "string", - Required: false, + InputKey: "internalNotes", + GoField: "InternalNotes", + EntField: "internal_notes", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "manifestPath", - GoField: "ManifestPath", - EntField: "manifest_path", - Type: "string", - Required: false, + InputKey: "manifestPath", + GoField: "ManifestPath", + EntField: "manifest_path", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "metadata", - GoField: "Metadata", - EntField: "metadata", - Type: "json.RawMessage", - Required: false, + InputKey: "metadata", + GoField: "Metadata", + EntField: "metadata", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "open", - GoField: "Open", - EntField: "open", - Type: "bool", - Required: false, + InputKey: "open", + GoField: "Open", + EntField: "open", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "ownerID", - GoField: "OwnerID", - EntField: "owner_id", - Type: "string", - Required: false, + InputKey: "ownerID", + GoField: "OwnerID", + EntField: "owner_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "packageEcosystem", - GoField: "PackageEcosystem", - EntField: "package_ecosystem", - Type: "string", - Required: false, + InputKey: "packageEcosystem", + GoField: "PackageEcosystem", + EntField: "package_ecosystem", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "packageName", - GoField: "PackageName", - EntField: "package_name", - Type: "string", - Required: false, + InputKey: "packageName", + GoField: "PackageName", + EntField: "package_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "priority", - GoField: "Priority", - EntField: "priority", - Type: "string", - Required: false, + InputKey: "priority", + GoField: "Priority", + EntField: "priority", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "production", - GoField: "Production", - EntField: "production", - Type: "bool", - Required: false, + InputKey: "production", + GoField: "Production", + EntField: "production", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "public", - GoField: "Public", - EntField: "public", - Type: "bool", - Required: false, + InputKey: "public", + GoField: "Public", + EntField: "public", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "publishedAt", - GoField: "PublishedAt", - EntField: "published_at", - Type: "time.Time", - Required: false, + InputKey: "publishedAt", + GoField: "PublishedAt", + EntField: "published_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "rawPayload", - GoField: "RawPayload", - EntField: "raw_payload", - Type: "json.RawMessage", - Required: false, + InputKey: "rawPayload", + GoField: "RawPayload", + EntField: "raw_payload", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "references", - GoField: "References", - EntField: "references", - Type: "json.RawMessage", - Required: false, + InputKey: "references", + GoField: "References", + EntField: "references", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "remediationSLA", - GoField: "RemediationSLA", - EntField: "remediation_sla", - Type: "int", - Required: false, + InputKey: "remediationSLA", + GoField: "RemediationSLA", + EntField: "remediation_sla", + Type: "int", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeID", - GoField: "ScopeID", - EntField: "scope_id", - Type: "string", - Required: false, + InputKey: "scopeID", + GoField: "ScopeID", + EntField: "scope_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "scopeName", - GoField: "ScopeName", - EntField: "scope_name", - Type: "string", - Required: false, + InputKey: "scopeName", + GoField: "ScopeName", + EntField: "scope_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "score", - GoField: "Score", - EntField: "score", - Type: "float64", - Required: false, + InputKey: "score", + GoField: "Score", + EntField: "score", + Type: "float64", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "severity", - GoField: "Severity", - EntField: "severity", - Type: "string", - Required: false, + InputKey: "severity", + GoField: "Severity", + EntField: "severity", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "source", - GoField: "Source", - EntField: "source", - Type: "string", - Required: false, + InputKey: "source", + GoField: "Source", + EntField: "source", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "sourceUpdatedAt", - GoField: "SourceUpdatedAt", - EntField: "source_updated_at", - Type: "time.Time", - Required: false, + InputKey: "sourceUpdatedAt", + GoField: "SourceUpdatedAt", + EntField: "source_updated_at", + Type: "time.Time", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "summary", - GoField: "Summary", - EntField: "summary", - Type: "string", - Required: false, + InputKey: "summary", + GoField: "Summary", + EntField: "summary", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "systemInternalID", - GoField: "SystemInternalID", - EntField: "system_internal_id", - Type: "string", - Required: false, + InputKey: "systemInternalID", + GoField: "SystemInternalID", + EntField: "system_internal_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "tags", - GoField: "Tags", - EntField: "tags", - Type: "json.RawMessage", - Required: false, + InputKey: "tags", + GoField: "Tags", + EntField: "tags", + Type: "json.RawMessage", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "validated", - GoField: "Validated", - EntField: "validated", - Type: "bool", - Required: false, + InputKey: "validated", + GoField: "Validated", + EntField: "validated", + Type: "bool", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vector", - GoField: "Vector", - EntField: "vector", - Type: "string", - Required: false, + InputKey: "vector", + GoField: "Vector", + EntField: "vector", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vulnerabilityStatusID", - GoField: "VulnerabilityStatusID", - EntField: "vulnerability_status_id", - Type: "string", - Required: false, + InputKey: "vulnerabilityStatusID", + GoField: "VulnerabilityStatusID", + EntField: "vulnerability_status_id", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vulnerabilityStatusName", - GoField: "VulnerabilityStatusName", - EntField: "vulnerability_status_name", - Type: "string", - Required: false, + InputKey: "vulnerabilityStatusName", + GoField: "VulnerabilityStatusName", + EntField: "vulnerability_status_name", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, { - InputKey: "vulnerableVersionRange", - GoField: "VulnerableVersionRange", - EntField: "vulnerable_version_range", - Type: "string", - Required: false, + InputKey: "vulnerableVersionRange", + GoField: "VulnerableVersionRange", + EntField: "vulnerable_version_range", + Type: "string", + Required: false, UpsertKey: false, LookupKey: false, }, }, AllowedKeys: map[string]struct{}{ - "autoDismissedAt": {}, - "blocking": {}, - "category": {}, - "cveID": {}, - "cweIds": {}, - "dependencyScope": {}, - "description": {}, - "discoveredAt": {}, - "dismissedAt": {}, - "dismissedComment": {}, - "dismissedReason": {}, - "displayName": {}, - "environmentID": {}, - "environmentName": {}, - "exploitability": {}, - "externalID": {}, - "externalOwnerID": {}, - "externalURI": {}, - "firstPatchedVersion": {}, - "fixAvailable": {}, - "fixedAt": {}, - "impact": {}, - "impacts": {}, - "internalNotes": {}, - "manifestPath": {}, - "metadata": {}, - "open": {}, - "ownerID": {}, - "packageEcosystem": {}, - "packageName": {}, - "priority": {}, - "production": {}, - "public": {}, - "publishedAt": {}, - "rawPayload": {}, - "references": {}, - "remediationSLA": {}, - "scopeID": {}, - "scopeName": {}, - "score": {}, - "severity": {}, - "source": {}, - "sourceUpdatedAt": {}, - "summary": {}, - "systemInternalID": {}, - "tags": {}, - "validated": {}, - "vector": {}, - "vulnerabilityStatusID": {}, + "autoDismissedAt": {}, + "blocking": {}, + "category": {}, + "cveID": {}, + "cweIds": {}, + "dependencyScope": {}, + "description": {}, + "discoveredAt": {}, + "dismissedAt": {}, + "dismissedComment": {}, + "dismissedReason": {}, + "displayName": {}, + "environmentID": {}, + "environmentName": {}, + "exploitability": {}, + "externalID": {}, + "externalOwnerID": {}, + "externalURI": {}, + "firstPatchedVersion": {}, + "fixAvailable": {}, + "fixedAt": {}, + "impact": {}, + "impacts": {}, + "internalNotes": {}, + "manifestPath": {}, + "metadata": {}, + "open": {}, + "ownerID": {}, + "packageEcosystem": {}, + "packageName": {}, + "priority": {}, + "production": {}, + "public": {}, + "publishedAt": {}, + "rawPayload": {}, + "references": {}, + "remediationSLA": {}, + "scopeID": {}, + "scopeName": {}, + "score": {}, + "severity": {}, + "source": {}, + "sourceUpdatedAt": {}, + "summary": {}, + "systemInternalID": {}, + "tags": {}, + "validated": {}, + "vector": {}, + "vulnerabilityStatusID": {}, "vulnerabilityStatusName": {}, - "vulnerableVersionRange": {}, + "vulnerableVersionRange": {}, }, RequiredKeys: []string{ "externalID", diff --git a/internal/graphapi/assessment_test.go b/internal/graphapi/assessment_test.go index 019bec301f..a1c21c4524 100644 --- a/internal/graphapi/assessment_test.go +++ b/internal/graphapi/assessment_test.go @@ -307,7 +307,7 @@ func TestMutationUpdateAssessment(t *testing.T) { ResponseDueDuration: lo.ToPtr(int64(86400)), // 1 day, }, client: suite.client.api, - ctx: adminUser.UserCtx, + ctx: sharedAdminUser.UserCtx, }, { name: "happy path, update tags", diff --git a/internal/graphapi/campaign_email_dispatch_test.go b/internal/graphapi/campaign_email_dispatch_test.go index c415eb60c3..14eb933c98 100644 --- a/internal/graphapi/campaign_email_dispatch_test.go +++ b/internal/graphapi/campaign_email_dispatch_test.go @@ -24,7 +24,7 @@ import ( // campaign emails with the correct branding, template variables, and // metadata, then sends one email per target via the mock sender func TestCampaignEmailDispatch(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) // --- fixtures --- @@ -43,7 +43,7 @@ func TestCampaignEmailDispatch(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Dispatch Integration Test Campaign"). SetDescription("Testing email dispatch pipeline"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetRecurrenceFrequency(enums.FrequencyNone). SetMetadata(map[string]any{ @@ -55,29 +55,29 @@ func TestCampaignEmailDispatch(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("alice@test.example"). SetFullName("Alice Smith"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) targetBob := suite.client.db.CampaignTarget.Create(). SetCampaignID(campaignObj.ID). SetEmail("bob@test.example"). SetFullName("Bob Jones"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, IDs: []string{targetAlice.ID, targetBob.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() // --- dispatch via SendBrandedCampaign operation --- @@ -186,7 +186,7 @@ func TestCampaignEmailDispatch(t *testing.T) { // TestCampaignEmailDispatchSkipsSentTargets verifies that targets with // sent_at already set are not re-dispatched func TestCampaignEmailDispatchSkipsSentTargets(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Skip Sent Test Template"). @@ -201,7 +201,7 @@ func TestCampaignEmailDispatchSkipsSentTargets(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Skip Sent Test Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -210,7 +210,7 @@ func TestCampaignEmailDispatchSkipsSentTargets(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("already-sent@test.example"). SetFullName("Already Sent"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) sentAt := models.DateTime(time.Now()) @@ -222,22 +222,22 @@ func TestCampaignEmailDispatchSkipsSentTargets(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("unsent@test.example"). SetFullName("Unsent Target"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, IDs: []string{sentTarget.ID, unsentTarget.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -273,7 +273,7 @@ func TestCampaignEmailDispatchSkipsSentTargets(t *testing.T) { // TestCampaignEmailDispatchNoBranding verifies dispatch works without // an EmailBranding record attached to the campaign func TestCampaignEmailDispatchNoBranding(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("No Branding Test Template"). @@ -288,7 +288,7 @@ func TestCampaignEmailDispatchNoBranding(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("No Branding Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -297,22 +297,22 @@ func TestCampaignEmailDispatchNoBranding(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("charlie@test.example"). SetFullName("Charlie Brown"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -349,11 +349,11 @@ func TestCampaignEmailDispatchNoBranding(t *testing.T) { // TestCampaignEmailDispatchNoTemplate verifies dispatch is a no-op // when no email template is linked to the campaign func TestCampaignEmailDispatchNoTemplate(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) campaignObj := suite.client.db.Campaign.Create(). SetName("No Template Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -361,18 +361,18 @@ func TestCampaignEmailDispatchNoTemplate(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("nobody@test.example"). SetFullName("No Body"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -407,13 +407,13 @@ func TestCampaignEmailDispatchNoTemplate(t *testing.T) { // TestQuestionnaireTestEmailDispatch verifies the questionnaire test-send // operation creates a test assessment response and sends one auth email. func TestQuestionnaireTestEmailDispatch(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) - assessmentObj := (&AssessmentBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + assessmentObj := (&AssessmentBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) campaignObj := suite.client.db.Campaign.Create(). SetName("Questionnaire Test Send Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetCampaignType(enums.CampaignTypeQuestionnaire). SetAssessmentID(assessmentObj.ID). SetRecurrenceFrequency(enums.FrequencyNone). @@ -425,20 +425,20 @@ func TestQuestionnaireTestEmailDispatch(t *testing.T) { (&Cleanup[*generated.AssessmentResponseDeleteOne]{ client: suite.client.db.AssessmentResponse, IDs: responseIDs, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) } (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.AssessmentDeleteOne]{ client: suite.client.db.Assessment, ID: assessmentObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.TemplateDeleteOne]{ client: suite.client.db.Template, ID: assessmentObj.TemplateID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") diff --git a/internal/graphapi/campaign_scheduled_test.go b/internal/graphapi/campaign_scheduled_test.go index 402b94ee01..2b84781153 100644 --- a/internal/graphapi/campaign_scheduled_test.go +++ b/internal/graphapi/campaign_scheduled_test.go @@ -26,7 +26,7 @@ import ( // recurring campaign updates last_run_at, advances next_run_at, and sends // emails to all targets func TestRecurringCampaignDispatchAdvancesSchedule(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Recurring Schedule Test Template"). @@ -44,7 +44,7 @@ func TestRecurringCampaignDispatchAdvancesSchedule(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Recurring Schedule Test"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetIsRecurring(true). SetIsActive(true). @@ -58,22 +58,22 @@ func TestRecurringCampaignDispatchAdvancesSchedule(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("recurring@test.example"). SetFullName("Recurring User"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -116,7 +116,7 @@ func TestRecurringCampaignDispatchAdvancesSchedule(t *testing.T) { // TestRecurringCampaignExhaustion verifies that when next_run_at exceeds // recurrence_end_at the campaign is marked completed and deactivated func TestRecurringCampaignExhaustion(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Exhaustion Test Template"). @@ -135,7 +135,7 @@ func TestRecurringCampaignExhaustion(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Exhaustion Test Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetIsRecurring(true). SetIsActive(true). @@ -150,22 +150,22 @@ func TestRecurringCampaignExhaustion(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("exhaust@test.example"). SetFullName("Exhaust User"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -300,7 +300,7 @@ func TestNextCampaignRunAtTimezoneHandling(t *testing.T) { // TestDueCampaignPredicatesFiltering verifies that campaigns are correctly // identified as due for recurring dispatch based on their state func TestDueCampaignPredicatesFiltering(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) now := time.Now().UTC() pastRun := models.DateTime(now.Add(-time.Hour)) @@ -310,7 +310,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { dueActive := suite.client.db.Campaign.Create(). SetName("Due Active Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusActive). @@ -320,7 +320,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { notYetDue := suite.client.db.Campaign.Create(). SetName("Not Yet Due Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusActive). @@ -330,7 +330,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { notRecurring := suite.client.db.Campaign.Create(). SetName("Non-Recurring Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(false). SetIsActive(true). SetStatus(enums.CampaignStatusActive). @@ -340,7 +340,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { inactive := suite.client.db.Campaign.Create(). SetName("Inactive Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(false). SetStatus(enums.CampaignStatusActive). @@ -350,7 +350,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { completed := suite.client.db.Campaign.Create(). SetName("Completed Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusCompleted). @@ -360,7 +360,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { pastEndAt := suite.client.db.Campaign.Create(). SetName("Past End At Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusActive). @@ -371,7 +371,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { futureEndAt := suite.client.db.Campaign.Create(). SetName("Future End At Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusActive). @@ -382,7 +382,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { draftCampaign := suite.client.db.Campaign.Create(). SetName("Draft Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetIsRecurring(true). SetIsActive(true). SetStatus(enums.CampaignStatusDraft). @@ -399,7 +399,7 @@ func TestDueCampaignPredicatesFiltering(t *testing.T) { (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, IDs: allIDs, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() dueCampaigns, err := suite.client.db.Campaign.Query(). diff --git a/internal/graphapi/checksum/.history_schema_checksum b/internal/graphapi/checksum/.history_schema_checksum index d5c58bf2b1..6ae6c240db 100644 --- a/internal/graphapi/checksum/.history_schema_checksum +++ b/internal/graphapi/checksum/.history_schema_checksum @@ -1 +1 @@ -41f0c55605d22010c84bcf51e36cd703f50d3037da4e3e2df6eca9402feea231 \ No newline at end of file +62fd3decbaec399fbed484655a7d8164477dc19e69745f20aa7ebb9aa43d6605 \ No newline at end of file diff --git a/internal/graphapi/checksum/.schema_checksum b/internal/graphapi/checksum/.schema_checksum index 265e0329a0..40ace8ff58 100644 --- a/internal/graphapi/checksum/.schema_checksum +++ b/internal/graphapi/checksum/.schema_checksum @@ -1 +1 @@ -81997cbe7f173ffd077c05bb6a6230db1532fe94b44f2b9df5b98ee9553f7c84 \ No newline at end of file +319679d087f9dd7b58cfe47632db3079aa2fed3dd44041542fa8dbe7abdfcf19 \ No newline at end of file diff --git a/internal/graphapi/clientschema/checksum/.schema_checksum b/internal/graphapi/clientschema/checksum/.schema_checksum index 64beeec804..0477c082fe 100644 --- a/internal/graphapi/clientschema/checksum/.schema_checksum +++ b/internal/graphapi/clientschema/checksum/.schema_checksum @@ -1 +1 @@ -5dce5f0eee4400173ba329f3d15bb68cfe7af775d59a88906b27d8b985f90424 \ No newline at end of file +37cf52f59847580db566c14378caa854ea888771ed4ff496e1a5adaf0eba02d5 \ No newline at end of file diff --git a/internal/graphapi/clientschema/schema.graphql b/internal/graphapi/clientschema/schema.graphql index 4859c6c170..1321665f2a 100644 --- a/internal/graphapi/clientschema/schema.graphql +++ b/internal/graphapi/clientschema/schema.graphql @@ -15035,7 +15035,6 @@ input CreateOrganizationInput { controlObjectiveCreatorIDs: [ID!] customTypeEnumCreatorIDs: [ID!] discussionCreatorIDs: [ID!] - emailBrandingCreatorIDs: [ID!] emailTemplateCreatorIDs: [ID!] entityCreatorIDs: [ID!] entityTypeCreatorIDs: [ID!] @@ -53286,37 +53285,6 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - emailBrandingCreators( - """ - 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! emailTemplateCreators( """ Returns the elements in the list that come after the specified cursor. @@ -58771,11 +58739,6 @@ input OrganizationWhereInput { hasDiscussionCreators: Boolean hasDiscussionCreatorsWith: [GroupWhereInput!] """ - email_branding_creators edge predicates - """ - hasEmailBrandingCreators: Boolean - hasEmailBrandingCreatorsWith: [GroupWhereInput!] - """ email_template_creators edge predicates """ hasEmailTemplateCreators: Boolean @@ -92787,9 +92750,6 @@ input UpdateOrganizationInput { addDiscussionCreatorIDs: [ID!] removeDiscussionCreatorIDs: [ID!] clearDiscussionCreators: Boolean - addEmailBrandingCreatorIDs: [ID!] - removeEmailBrandingCreatorIDs: [ID!] - clearEmailBrandingCreators: Boolean addEmailTemplateCreatorIDs: [ID!] removeEmailTemplateCreatorIDs: [ID!] clearEmailTemplateCreators: Boolean diff --git a/internal/graphapi/entity_test.go b/internal/graphapi/entity_test.go index a09cfb18dd..a40f013a2f 100644 --- a/internal/graphapi/entity_test.go +++ b/internal/graphapi/entity_test.go @@ -316,7 +316,7 @@ func TestMutationCreateEntity(t *testing.T) { } func TestMutationCreateEntityEnrichment(t *testing.T) { - systemCtx := setContext(systemAdminUser.UserCtx, suite.client.db) + systemCtx := setContext(sharedSystemAdminUser.UserCtx, suite.client.db) name := "Enriched Vendor " + ulids.New().String() description := "Seeded subprocessor description" @@ -327,9 +327,9 @@ func TestMutationCreateEntityEnrichment(t *testing.T) { Name: name, Description: description, LogoRemoteURL: logoRemoteURL, - }).MustNew(systemAdminUser.UserCtx, t) + }).MustNew(sharedSystemAdminUser.UserCtx, t) - resp, err := suite.client.api.CreateEntity(testUser1.UserCtx, testclient.CreateEntityInput{ + resp, err := suite.client.api.CreateEntity(sharedTestUser1.UserCtx, testclient.CreateEntityInput{ Name: lo.ToPtr(strings.ToUpper(name)), Tier: lo.ToPtr(enums.VendorTierStandard), }, nil, nil, nil, nil, nil) @@ -343,7 +343,7 @@ func TestMutationCreateEntityEnrichment(t *testing.T) { userDescription := "User provided description" userLogoURL := "https://example.com/requested-logo.png" - entityResp, err := suite.client.api.CreateEntity(testUser1.UserCtx, testclient.CreateEntityInput{ + entityResp, err := suite.client.api.CreateEntity(sharedTestUser1.UserCtx, testclient.CreateEntityInput{ Name: lo.ToPtr(name + " entity"), DisplayName: lo.ToPtr(name), Description: lo.ToPtr(userDescription), @@ -356,7 +356,7 @@ func TestMutationCreateEntityEnrichment(t *testing.T) { assert.Check(t, is.Equal(userDescription, *entityResp.CreateEntity.Entity.Description)) assert.Check(t, is.Equal(userLogoURL, *entityResp.CreateEntity.Entity.LogoRemoteURL)) - (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{resp.CreateEntity.Entity.ID, entityResp.CreateEntity.Entity.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.EntityDeleteOne]{client: suite.client.db.Entity, IDs: []string{resp.CreateEntity.Entity.ID, entityResp.CreateEntity.Entity.ID}}).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.SubprocessorDeleteOne]{client: suite.client.db.Subprocessor, ID: subprocessor.ID}).MustDelete(systemCtx, t) } @@ -413,7 +413,7 @@ func TestMutationUpdateEntity(t *testing.T) { ApprovedForUse: lo.ToPtr(false), }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "conflicting status and approved for use, approved should take precedence", diff --git a/internal/graphapi/generated/ent.generated.go b/internal/graphapi/generated/ent.generated.go index 6d29472d5d..149e9b23da 100644 --- a/internal/graphapi/generated/ent.generated.go +++ b/internal/graphapi/generated/ent.generated.go @@ -19518,7 +19518,7 @@ func (ec *executionContext) field_Organization_actionPlans_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_apiTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_apiTokenCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19554,16 +19554,16 @@ func (ec *executionContext) field_Organization_apiTokens_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.APITokenOrder, error) { - return ec.unmarshalOAPITokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.APITokenWhereInput, error) { - return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19572,7 +19572,7 @@ func (ec *executionContext) field_Organization_apiTokens_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_apiTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19608,16 +19608,16 @@ func (ec *executionContext) field_Organization_assessmentResponses_args(ctx cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { - return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.APITokenOrder, error) { + return ec.unmarshalOAPITokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { - return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.APITokenWhereInput, error) { + return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19626,7 +19626,7 @@ func (ec *executionContext) field_Organization_assessmentResponses_args(ctx cont return args, nil } -func (ec *executionContext) field_Organization_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_assessmentCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19662,16 +19662,16 @@ func (ec *executionContext) field_Organization_assessments_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { - return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { - return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19680,7 +19680,7 @@ func (ec *executionContext) field_Organization_assessments_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_assetCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19716,16 +19716,16 @@ func (ec *executionContext) field_Organization_assetCreators_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { + return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { + return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19734,7 +19734,7 @@ func (ec *executionContext) field_Organization_assetCreators_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19770,16 +19770,16 @@ func (ec *executionContext) field_Organization_assets_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { + return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { + return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19788,7 +19788,7 @@ func (ec *executionContext) field_Organization_assets_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_assetCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19824,16 +19824,16 @@ func (ec *executionContext) field_Organization_campaignTargets_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { - return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { - return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19842,7 +19842,7 @@ func (ec *executionContext) field_Organization_campaignTargets_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19878,16 +19878,16 @@ func (ec *executionContext) field_Organization_campaigns_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { - return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19896,7 +19896,7 @@ func (ec *executionContext) field_Organization_campaigns_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_campaignCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19932,16 +19932,16 @@ func (ec *executionContext) field_Organization_children_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { - return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -19950,7 +19950,7 @@ func (ec *executionContext) field_Organization_children_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_campaignTargetCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -19986,16 +19986,16 @@ func (ec *executionContext) field_Organization_contacts_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { - return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20004,7 +20004,7 @@ func (ec *executionContext) field_Organization_contacts_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_controlCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20040,16 +20040,16 @@ func (ec *executionContext) field_Organization_controlCreators_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20058,7 +20058,7 @@ func (ec *executionContext) field_Organization_controlCreators_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_controlImplementationCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_campaignsManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20112,7 +20112,7 @@ func (ec *executionContext) field_Organization_controlImplementationCreators_arg return args, nil } -func (ec *executionContext) field_Organization_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20148,16 +20148,16 @@ func (ec *executionContext) field_Organization_controlImplementations_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { - return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20166,7 +20166,7 @@ func (ec *executionContext) field_Organization_controlImplementations_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_controlObjectiveCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_checkResultCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20220,7 +20220,7 @@ func (ec *executionContext) field_Organization_controlObjectiveCreators_args(ctx return args, nil } -func (ec *executionContext) field_Organization_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20256,16 +20256,16 @@ func (ec *executionContext) field_Organization_controlObjectives_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { - return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20274,7 +20274,7 @@ func (ec *executionContext) field_Organization_controlObjectives_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_complianceManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20310,16 +20310,16 @@ func (ec *executionContext) field_Organization_controls_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20328,7 +20328,7 @@ func (ec *executionContext) field_Organization_controls_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_customDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_contactCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20364,16 +20364,16 @@ func (ec *executionContext) field_Organization_customDomains_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { - return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { - return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20382,7 +20382,7 @@ func (ec *executionContext) field_Organization_customDomains_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_customTypeEnums_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20418,16 +20418,16 @@ func (ec *executionContext) field_Organization_customTypeEnums_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { - return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { - return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20436,7 +20436,7 @@ func (ec *executionContext) field_Organization_customTypeEnums_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controlCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20472,16 +20472,16 @@ func (ec *executionContext) field_Organization_directoryAccounts_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { - return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20490,7 +20490,7 @@ func (ec *executionContext) field_Organization_directoryAccounts_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controlImplementationCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20526,16 +20526,16 @@ func (ec *executionContext) field_Organization_directoryGroups_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { - return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20544,7 +20544,7 @@ func (ec *executionContext) field_Organization_directoryGroups_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20580,16 +20580,16 @@ func (ec *executionContext) field_Organization_directoryMemberships_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { - return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20598,7 +20598,7 @@ func (ec *executionContext) field_Organization_directoryMemberships_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controlObjectiveCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20634,16 +20634,16 @@ func (ec *executionContext) field_Organization_directorySyncRuns_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { - return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { - return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20652,7 +20652,7 @@ func (ec *executionContext) field_Organization_directorySyncRuns_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20688,16 +20688,16 @@ func (ec *executionContext) field_Organization_discussions_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20706,7 +20706,7 @@ func (ec *executionContext) field_Organization_discussions_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_dnsVerifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20742,16 +20742,16 @@ func (ec *executionContext) field_Organization_dnsVerifications_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DNSVerificationOrder, error) { - return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DNSVerificationWhereInput, error) { - return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20760,7 +20760,7 @@ func (ec *executionContext) field_Organization_dnsVerifications_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_customDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20796,16 +20796,16 @@ func (ec *executionContext) field_Organization_documents_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { - return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { + return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { + return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20814,7 +20814,7 @@ func (ec *executionContext) field_Organization_documents_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_customTypeEnumCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20850,16 +20850,16 @@ func (ec *executionContext) field_Organization_emailTemplates_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { - return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { - return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20868,7 +20868,7 @@ func (ec *executionContext) field_Organization_emailTemplates_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_customTypeEnums_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20904,16 +20904,16 @@ func (ec *executionContext) field_Organization_entities_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { + return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { + return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20922,7 +20922,7 @@ func (ec *executionContext) field_Organization_entities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_entityTypes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -20958,16 +20958,16 @@ func (ec *executionContext) field_Organization_entityTypes_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityTypeOrder, error) { - return ec.unmarshalOEntityTypeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityTypeWhereInput, error) { - return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -20976,7 +20976,7 @@ func (ec *executionContext) field_Organization_entityTypes_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21012,16 +21012,16 @@ func (ec *executionContext) field_Organization_events_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EventOrder, error) { - return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21030,7 +21030,7 @@ func (ec *executionContext) field_Organization_events_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_evidenceCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21066,16 +21066,16 @@ func (ec *executionContext) field_Organization_evidenceCreators_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21084,7 +21084,7 @@ func (ec *executionContext) field_Organization_evidenceCreators_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21120,16 +21120,16 @@ func (ec *executionContext) field_Organization_evidence_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { + return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { + return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21138,7 +21138,7 @@ func (ec *executionContext) field_Organization_evidence_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_exports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_discussionCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21174,16 +21174,16 @@ func (ec *executionContext) field_Organization_exports_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ExportOrder, error) { - return ec.unmarshalOExportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ExportWhereInput, error) { - return ec.unmarshalOExportWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21192,7 +21192,7 @@ func (ec *executionContext) field_Organization_exports_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21228,16 +21228,16 @@ func (ec *executionContext) field_Organization_files_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21246,7 +21246,7 @@ func (ec *executionContext) field_Organization_files_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_findingCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_dnsVerifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21282,16 +21282,16 @@ func (ec *executionContext) field_Organization_findingCreators_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DNSVerificationOrder, error) { + return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DNSVerificationWhereInput, error) { + return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21300,7 +21300,7 @@ func (ec *executionContext) field_Organization_findingCreators_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21336,16 +21336,16 @@ func (ec *executionContext) field_Organization_findings_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { + return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21354,7 +21354,7 @@ func (ec *executionContext) field_Organization_findings_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_groupCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_emailTemplateCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21408,7 +21408,7 @@ func (ec *executionContext) field_Organization_groupCreators_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21444,16 +21444,16 @@ func (ec *executionContext) field_Organization_groups_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { + return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { + return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21462,7 +21462,7 @@ func (ec *executionContext) field_Organization_groups_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_identityHolderCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21498,16 +21498,16 @@ func (ec *executionContext) field_Organization_identityHolderCreators_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21516,7 +21516,7 @@ func (ec *executionContext) field_Organization_identityHolderCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_entityCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21552,16 +21552,16 @@ func (ec *executionContext) field_Organization_identityHolders_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21570,7 +21570,7 @@ func (ec *executionContext) field_Organization_identityHolders_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_entityTypeCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21606,16 +21606,16 @@ func (ec *executionContext) field_Organization_integrations_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21624,7 +21624,7 @@ func (ec *executionContext) field_Organization_integrations_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_entityTypes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21660,16 +21660,16 @@ func (ec *executionContext) field_Organization_internalPolicies_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityTypeOrder, error) { + return ec.unmarshalOEntityTypeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityTypeWhereInput, error) { + return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21678,7 +21678,7 @@ func (ec *executionContext) field_Organization_internalPolicies_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_internalPolicyCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21714,16 +21714,16 @@ func (ec *executionContext) field_Organization_internalPolicyCreators_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21732,7 +21732,7 @@ func (ec *executionContext) field_Organization_internalPolicyCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_invites_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_evidenceCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21768,16 +21768,16 @@ func (ec *executionContext) field_Organization_invites_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { - return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21786,7 +21786,7 @@ func (ec *executionContext) field_Organization_invites_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_jobResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21822,16 +21822,16 @@ func (ec *executionContext) field_Organization_jobResults_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobResultOrder, error) { - return ec.unmarshalOJobResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobResultWhereInput, error) { - return ec.unmarshalOJobResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21840,7 +21840,7 @@ func (ec *executionContext) field_Organization_jobResults_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Organization_jobRunnerRegistrationTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_exportCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21876,16 +21876,16 @@ func (ec *executionContext) field_Organization_jobRunnerRegistrationTokens_args( } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerRegistrationTokenOrder, error) { - return ec.unmarshalOJobRunnerRegistrationTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerRegistrationTokenWhereInput, error) { - return ec.unmarshalOJobRunnerRegistrationTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21894,7 +21894,7 @@ func (ec *executionContext) field_Organization_jobRunnerRegistrationTokens_args( return args, nil } -func (ec *executionContext) field_Organization_jobRunnerTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_exports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21930,16 +21930,16 @@ func (ec *executionContext) field_Organization_jobRunnerTokens_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerTokenOrder, error) { - return ec.unmarshalOJobRunnerTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ExportOrder, error) { + return ec.unmarshalOExportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerTokenWhereInput, error) { - return ec.unmarshalOJobRunnerTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ExportWhereInput, error) { + return ec.unmarshalOExportWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21948,7 +21948,7 @@ func (ec *executionContext) field_Organization_jobRunnerTokens_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_jobRunners_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_fileCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21984,16 +21984,16 @@ func (ec *executionContext) field_Organization_jobRunners_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerOrder, error) { - return ec.unmarshalOJobRunnerOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerWhereInput, error) { - return ec.unmarshalOJobRunnerWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22002,7 +22002,7 @@ func (ec *executionContext) field_Organization_jobRunners_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Organization_jobTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22038,16 +22038,16 @@ func (ec *executionContext) field_Organization_jobTemplates_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobTemplateOrder, error) { - return ec.unmarshalOJobTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobTemplateWhereInput, error) { - return ec.unmarshalOJobTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22056,7 +22056,7 @@ func (ec *executionContext) field_Organization_jobTemplates_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_mappedControlCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_findingCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22110,7 +22110,7 @@ func (ec *executionContext) field_Organization_mappedControlCreators_args(ctx co return args, nil } -func (ec *executionContext) field_Organization_mappedControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22146,16 +22146,16 @@ func (ec *executionContext) field_Organization_mappedControls_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { - return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { - return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22164,7 +22164,7 @@ func (ec *executionContext) field_Organization_mappedControls_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_groupCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22200,16 +22200,16 @@ func (ec *executionContext) field_Organization_members_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { - return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22218,7 +22218,7 @@ func (ec *executionContext) field_Organization_members_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_narrativeCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_groupManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22272,7 +22272,7 @@ func (ec *executionContext) field_Organization_narrativeCreators_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22308,16 +22308,16 @@ func (ec *executionContext) field_Organization_narratives_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { - return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22326,7 +22326,7 @@ func (ec *executionContext) field_Organization_narratives_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Organization_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_identityHolderCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22362,16 +22362,16 @@ func (ec *executionContext) field_Organization_notes_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22380,7 +22380,7 @@ func (ec *executionContext) field_Organization_notes_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_notificationPreferences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22416,16 +22416,16 @@ func (ec *executionContext) field_Organization_notificationPreferences_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NotificationPreferenceOrder, error) { - return ec.unmarshalONotificationPreferenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NotificationPreferenceWhereInput, error) { - return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22434,7 +22434,7 @@ func (ec *executionContext) field_Organization_notificationPreferences_args(ctx return args, nil } -func (ec *executionContext) field_Organization_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_integrationCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22470,16 +22470,16 @@ func (ec *executionContext) field_Organization_notificationTemplates_args(ctx co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { - return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { - return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22488,7 +22488,7 @@ func (ec *executionContext) field_Organization_notificationTemplates_args(ctx co return args, nil } -func (ec *executionContext) field_Organization_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_integrationWebhookCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22524,16 +22524,16 @@ func (ec *executionContext) field_Organization_personalAccessTokens_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { - return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22542,7 +22542,7 @@ func (ec *executionContext) field_Organization_personalAccessTokens_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22578,16 +22578,16 @@ func (ec *executionContext) field_Organization_platforms_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22596,7 +22596,61 @@ func (ec *executionContext) field_Organization_platforms_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_procedureCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Organization_internalPolicyCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22650,7 +22704,7 @@ func (ec *executionContext) field_Organization_procedureCreators_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_invites_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22686,16 +22740,16 @@ func (ec *executionContext) field_Organization_procedures_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { + return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22704,7 +22758,7 @@ func (ec *executionContext) field_Organization_procedures_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Organization_programCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22740,16 +22794,16 @@ func (ec *executionContext) field_Organization_programCreators_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobResultOrder, error) { + return ec.unmarshalOJobResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobResultWhereInput, error) { + return ec.unmarshalOJobResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22758,7 +22812,7 @@ func (ec *executionContext) field_Organization_programCreators_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunnerCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22794,16 +22848,16 @@ func (ec *executionContext) field_Organization_programs_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22812,7 +22866,7 @@ func (ec *executionContext) field_Organization_programs_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunnerRegistrationTokenCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22848,16 +22902,16 @@ func (ec *executionContext) field_Organization_remediations_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22866,7 +22920,7 @@ func (ec *executionContext) field_Organization_remediations_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunnerRegistrationTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22902,16 +22956,16 @@ func (ec *executionContext) field_Organization_reviews_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerRegistrationTokenOrder, error) { + return ec.unmarshalOJobRunnerRegistrationTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerRegistrationTokenWhereInput, error) { + return ec.unmarshalOJobRunnerRegistrationTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22920,7 +22974,7 @@ func (ec *executionContext) field_Organization_reviews_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_riskCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunnerTokenCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22974,7 +23028,7 @@ func (ec *executionContext) field_Organization_riskCreators_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunnerTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23010,16 +23064,16 @@ func (ec *executionContext) field_Organization_risks_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerTokenOrder, error) { + return ec.unmarshalOJobRunnerTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerTokenWhereInput, error) { + return ec.unmarshalOJobRunnerTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23028,7 +23082,7 @@ func (ec *executionContext) field_Organization_risks_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobRunners_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23064,16 +23118,16 @@ func (ec *executionContext) field_Organization_scans_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerOrder, error) { + return ec.unmarshalOJobRunnerOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerWhereInput, error) { + return ec.unmarshalOJobRunnerWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23082,7 +23136,7 @@ func (ec *executionContext) field_Organization_scans_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_scheduledJobCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobTemplateCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23136,7 +23190,7 @@ func (ec *executionContext) field_Organization_scheduledJobCreators_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_scheduledJobRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_jobTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23172,16 +23226,16 @@ func (ec *executionContext) field_Organization_scheduledJobRuns_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScheduledJobRunOrder, error) { - return ec.unmarshalOScheduledJobRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobTemplateOrder, error) { + return ec.unmarshalOJobTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScheduledJobRunWhereInput, error) { - return ec.unmarshalOScheduledJobRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobTemplateWhereInput, error) { + return ec.unmarshalOJobTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23190,7 +23244,7 @@ func (ec *executionContext) field_Organization_scheduledJobRuns_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_mappedControlCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23226,16 +23280,16 @@ func (ec *executionContext) field_Organization_scheduledJobs_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { - return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { - return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23244,7 +23298,7 @@ func (ec *executionContext) field_Organization_scheduledJobs_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_secrets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_mappedControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23280,16 +23334,16 @@ func (ec *executionContext) field_Organization_secrets_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.HushOrder, error) { - return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { + return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.HushWhereInput, error) { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { + return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23298,7 +23352,7 @@ func (ec *executionContext) field_Organization_secrets_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_slaDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23334,16 +23388,16 @@ func (ec *executionContext) field_Organization_slaDefinitions_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SLADefinitionOrder, error) { - return ec.unmarshalOSLADefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SLADefinitionWhereInput, error) { - return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23352,7 +23406,7 @@ func (ec *executionContext) field_Organization_slaDefinitions_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_standardCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_narrativeCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23406,7 +23460,7 @@ func (ec *executionContext) field_Organization_standardCreators_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_standards_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23442,16 +23496,16 @@ func (ec *executionContext) field_Organization_standards_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { - return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23460,7 +23514,7 @@ func (ec *executionContext) field_Organization_standards_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_noteCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23496,16 +23550,16 @@ func (ec *executionContext) field_Organization_subcontrols_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23514,7 +23568,7 @@ func (ec *executionContext) field_Organization_subcontrols_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_subprocessorCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23550,16 +23604,16 @@ func (ec *executionContext) field_Organization_subprocessorCreators_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23568,7 +23622,7 @@ func (ec *executionContext) field_Organization_subprocessorCreators_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_subprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_notificationPreferences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23604,16 +23658,16 @@ func (ec *executionContext) field_Organization_subprocessors_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { - return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationPreferenceOrder, error) { + return ec.unmarshalONotificationPreferenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { - return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationPreferenceWhereInput, error) { + return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23622,7 +23676,7 @@ func (ec *executionContext) field_Organization_subprocessors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_notificationTemplateCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23658,16 +23712,16 @@ func (ec *executionContext) field_Organization_subscribers_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { - return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23676,7 +23730,7 @@ func (ec *executionContext) field_Organization_subscribers_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_systemDetails_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23712,16 +23766,16 @@ func (ec *executionContext) field_Organization_systemDetails_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { - return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { + return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { - return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { + return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23730,7 +23784,7 @@ func (ec *executionContext) field_Organization_systemDetails_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_organizationCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23766,16 +23820,16 @@ func (ec *executionContext) field_Organization_tagDefinitions_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { - return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { - return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23784,7 +23838,7 @@ func (ec *executionContext) field_Organization_tagDefinitions_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23820,16 +23874,16 @@ func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { + return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23838,7 +23892,7 @@ func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_templateCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_platformCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23892,7 +23946,7 @@ func (ec *executionContext) field_Organization_templateCreators_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23928,16 +23982,16 @@ func (ec *executionContext) field_Organization_templates_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { - return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23946,7 +24000,7 @@ func (ec *executionContext) field_Organization_templates_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_trustCenterDocCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_policiesManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24000,7 +24054,7 @@ func (ec *executionContext) field_Organization_trustCenterDocCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_trustCenterSubprocessorCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_procedureCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24054,7 +24108,7 @@ func (ec *executionContext) field_Organization_trustCenterSubprocessorCreators_a return args, nil } -func (ec *executionContext) field_Organization_trustCenterWatermarkConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24090,16 +24144,16 @@ func (ec *executionContext) field_Organization_trustCenterWatermarkConfigs_args( } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterWatermarkConfigOrder, error) { - return ec.unmarshalOTrustCenterWatermarkConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterWatermarkConfigWhereInput, error) { - return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24108,7 +24162,7 @@ func (ec *executionContext) field_Organization_trustCenterWatermarkConfigs_args( return args, nil } -func (ec *executionContext) field_Organization_trustCenters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_programCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24144,16 +24198,16 @@ func (ec *executionContext) field_Organization_trustCenters_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterOrder, error) { - return ec.unmarshalOTrustCenterOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterWhereInput, error) { - return ec.unmarshalOTrustCenterWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24162,7 +24216,7 @@ func (ec *executionContext) field_Organization_trustCenters_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24198,16 +24252,16 @@ func (ec *executionContext) field_Organization_users_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.UserOrder, error) { - return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24216,7 +24270,7 @@ func (ec *executionContext) field_Organization_users_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_registryManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24252,16 +24306,16 @@ func (ec *executionContext) field_Organization_vendorRiskScores_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { - return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { - return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24270,7 +24324,7 @@ func (ec *executionContext) field_Organization_vendorRiskScores_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_vendorScoringConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_remediationCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24306,16 +24360,16 @@ func (ec *executionContext) field_Organization_vendorScoringConfigs_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VendorScoringConfigOrder, error) { - return ec.unmarshalOVendorScoringConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VendorScoringConfigWhereInput, error) { - return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24324,7 +24378,7 @@ func (ec *executionContext) field_Organization_vendorScoringConfigs_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24360,16 +24414,16 @@ func (ec *executionContext) field_Organization_vulnerabilities_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24378,7 +24432,7 @@ func (ec *executionContext) field_Organization_vulnerabilities_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_vulnerabilityCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_reviewCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24432,7 +24486,7 @@ func (ec *executionContext) field_Organization_vulnerabilityCreators_args(ctx co return args, nil } -func (ec *executionContext) field_Organization_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24468,16 +24522,16 @@ func (ec *executionContext) field_Organization_workflowAssignmentTargets_args(ct } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { - return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24486,7 +24540,7 @@ func (ec *executionContext) field_Organization_workflowAssignmentTargets_args(ct return args, nil } -func (ec *executionContext) field_Organization_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_riskCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24522,16 +24576,16 @@ func (ec *executionContext) field_Organization_workflowAssignments_args(ctx cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { - return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24540,7 +24594,7 @@ func (ec *executionContext) field_Organization_workflowAssignments_args(ctx cont return args, nil } -func (ec *executionContext) field_Organization_workflowDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_riskManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24576,16 +24630,16 @@ func (ec *executionContext) field_Organization_workflowDefinitions_args(ctx cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowDefinitionOrder, error) { - return ec.unmarshalOWorkflowDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowDefinitionWhereInput, error) { - return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24594,7 +24648,7 @@ func (ec *executionContext) field_Organization_workflowDefinitions_args(ctx cont return args, nil } -func (ec *executionContext) field_Organization_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24630,16 +24684,16 @@ func (ec *executionContext) field_Organization_workflowEvents_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24648,7 +24702,7 @@ func (ec *executionContext) field_Organization_workflowEvents_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_workflowInstances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scanCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24684,16 +24738,16 @@ func (ec *executionContext) field_Organization_workflowInstances_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowInstanceOrder, error) { - return ec.unmarshalOWorkflowInstanceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowInstanceWhereInput, error) { - return ec.unmarshalOWorkflowInstanceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24702,7 +24756,7 @@ func (ec *executionContext) field_Organization_workflowInstances_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24738,16 +24792,16 @@ func (ec *executionContext) field_Organization_workflowObjectRefs_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24756,7 +24810,7 @@ func (ec *executionContext) field_Organization_workflowObjectRefs_args(ctx conte return args, nil } -func (ec *executionContext) field_PersonalAccessToken_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scheduledJobCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24792,16 +24846,16 @@ func (ec *executionContext) field_PersonalAccessToken_events_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EventOrder, error) { - return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24810,7 +24864,7 @@ func (ec *executionContext) field_PersonalAccessToken_events_args(ctx context.Co return args, nil } -func (ec *executionContext) field_PersonalAccessToken_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scheduledJobRunCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24846,16 +24900,16 @@ func (ec *executionContext) field_PersonalAccessToken_organizations_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { - return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24864,7 +24918,7 @@ func (ec *executionContext) field_PersonalAccessToken_organizations_args(ctx con return args, nil } -func (ec *executionContext) field_Platform_applicableFrameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scheduledJobRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24900,16 +24954,16 @@ func (ec *executionContext) field_Platform_applicableFrameworks_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { - return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScheduledJobRunOrder, error) { + return ec.unmarshalOScheduledJobRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScheduledJobRunWhereInput, error) { + return ec.unmarshalOScheduledJobRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24918,7 +24972,7 @@ func (ec *executionContext) field_Platform_applicableFrameworks_args(ctx context return args, nil } -func (ec *executionContext) field_Platform_architectureDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24954,16 +25008,16 @@ func (ec *executionContext) field_Platform_architectureDiagrams_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { + return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { + return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24972,7 +25026,7 @@ func (ec *executionContext) field_Platform_architectureDiagrams_args(ctx context return args, nil } -func (ec *executionContext) field_Platform_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_secrets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25008,16 +25062,16 @@ func (ec *executionContext) field_Platform_assessments_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { - return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.HushOrder, error) { + return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { - return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.HushWhereInput, error) { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25026,7 +25080,7 @@ func (ec *executionContext) field_Platform_assessments_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Platform_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_slaDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25062,16 +25116,16 @@ func (ec *executionContext) field_Platform_assets_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SLADefinitionOrder, error) { + return ec.unmarshalOSLADefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SLADefinitionWhereInput, error) { + return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25080,7 +25134,7 @@ func (ec *executionContext) field_Platform_assets_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Platform_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_standardCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25134,7 +25188,7 @@ func (ec *executionContext) field_Platform_blockedGroups_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Platform_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_standards_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25170,16 +25224,16 @@ func (ec *executionContext) field_Platform_controls_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { + return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25188,7 +25242,7 @@ func (ec *executionContext) field_Platform_controls_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Platform_dataFlowDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subcontrolCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25224,16 +25278,16 @@ func (ec *executionContext) field_Platform_dataFlowDiagrams_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25242,7 +25296,7 @@ func (ec *executionContext) field_Platform_dataFlowDiagrams_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Platform_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25278,16 +25332,16 @@ func (ec *executionContext) field_Platform_directoryAccounts_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { - return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25296,7 +25350,7 @@ func (ec *executionContext) field_Platform_directoryAccounts_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Platform_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subprocessorCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25332,16 +25386,16 @@ func (ec *executionContext) field_Platform_directoryGroups_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { - return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25350,7 +25404,7 @@ func (ec *executionContext) field_Platform_directoryGroups_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Platform_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25386,16 +25440,16 @@ func (ec *executionContext) field_Platform_directoryMemberships_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { - return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { + return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { + return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25404,7 +25458,7 @@ func (ec *executionContext) field_Platform_directoryMemberships_args(ctx context return args, nil } -func (ec *executionContext) field_Platform_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subscriberCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25440,16 +25494,16 @@ func (ec *executionContext) field_Platform_directorySyncRuns_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { - return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { - return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25458,7 +25512,7 @@ func (ec *executionContext) field_Platform_directorySyncRuns_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Platform_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25494,16 +25548,16 @@ func (ec *executionContext) field_Platform_editors_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { + return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25512,7 +25566,7 @@ func (ec *executionContext) field_Platform_editors_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Platform_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_systemDetailCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25548,16 +25602,16 @@ func (ec *executionContext) field_Platform_entities_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25566,7 +25620,7 @@ func (ec *executionContext) field_Platform_entities_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Platform_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_systemDetails_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25602,178 +25656,16 @@ func (ec *executionContext) field_Platform_evidence_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Platform_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Platform_generatedScans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Platform_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { + return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { + return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25782,7 +25674,7 @@ func (ec *executionContext) field_Platform_identityHolders_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Platform_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_tagDefinitionCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25818,16 +25710,16 @@ func (ec *executionContext) field_Platform_integrations_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25836,7 +25728,7 @@ func (ec *executionContext) field_Platform_integrations_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Platform_outOfScopeAssets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25872,16 +25764,16 @@ func (ec *executionContext) field_Platform_outOfScopeAssets_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { + return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { + return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25890,7 +25782,7 @@ func (ec *executionContext) field_Platform_outOfScopeAssets_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Platform_outOfScopeVendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_taskCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25926,16 +25818,16 @@ func (ec *executionContext) field_Platform_outOfScopeVendors_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25944,7 +25836,7 @@ func (ec *executionContext) field_Platform_outOfScopeVendors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Platform_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25980,16 +25872,16 @@ func (ec *executionContext) field_Platform_risks_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25998,7 +25890,7 @@ func (ec *executionContext) field_Platform_risks_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Platform_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_templateCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26034,16 +25926,16 @@ func (ec *executionContext) field_Platform_scans_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26052,7 +25944,7 @@ func (ec *executionContext) field_Platform_scans_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Platform_sourceAssets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26088,16 +25980,16 @@ func (ec *executionContext) field_Platform_sourceAssets_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { + return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { + return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26106,7 +25998,7 @@ func (ec *executionContext) field_Platform_sourceAssets_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Platform_sourceEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterComplianceCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26142,16 +26034,16 @@ func (ec *executionContext) field_Platform_sourceEntities_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26160,7 +26052,7 @@ func (ec *executionContext) field_Platform_sourceEntities_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Platform_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26196,16 +26088,16 @@ func (ec *executionContext) field_Platform_tasks_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26214,7 +26106,7 @@ func (ec *executionContext) field_Platform_tasks_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Platform_trustBoundaryDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterDocCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26250,16 +26142,16 @@ func (ec *executionContext) field_Platform_trustBoundaryDiagrams_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26268,7 +26160,7 @@ func (ec *executionContext) field_Platform_trustBoundaryDiagrams_args(ctx contex return args, nil } -func (ec *executionContext) field_Platform_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterEntityCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26322,7 +26214,7 @@ func (ec *executionContext) field_Platform_viewers_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Platform_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterFaqCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26358,16 +26250,16 @@ func (ec *executionContext) field_Platform_workflowObjectRefs_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26376,7 +26268,7 @@ func (ec *executionContext) field_Platform_workflowObjectRefs_args(ctx context.C return args, nil } -func (ec *executionContext) field_Platform_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26412,33 +26304,25 @@ func (ec *executionContext) field_Platform_workflowTimeline_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) - }) - if err != nil { - return nil, err - } - args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_Procedure_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterNdaRequestCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26492,7 +26376,7 @@ func (ec *executionContext) field_Procedure_blockedGroups_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Procedure_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterSubprocessorCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26528,16 +26412,16 @@ func (ec *executionContext) field_Procedure_comments_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26546,7 +26430,7 @@ func (ec *executionContext) field_Procedure_comments_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Procedure_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterWatermarkConfigCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26582,16 +26466,16 @@ func (ec *executionContext) field_Procedure_controls_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26600,7 +26484,7 @@ func (ec *executionContext) field_Procedure_controls_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Procedure_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenterWatermarkConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26636,16 +26520,16 @@ func (ec *executionContext) field_Procedure_discussions_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterWatermarkConfigOrder, error) { + return ec.unmarshalOTrustCenterWatermarkConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWatermarkConfigWhereInput, error) { + return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26654,7 +26538,7 @@ func (ec *executionContext) field_Procedure_discussions_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Procedure_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_trustCenters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26690,16 +26574,16 @@ func (ec *executionContext) field_Procedure_editors_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterOrder, error) { + return ec.unmarshalOTrustCenterOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWhereInput, error) { + return ec.unmarshalOTrustCenterWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26708,7 +26592,7 @@ func (ec *executionContext) field_Procedure_editors_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Procedure_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_userCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26744,16 +26628,16 @@ func (ec *executionContext) field_Procedure_internalPolicies_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26762,7 +26646,7 @@ func (ec *executionContext) field_Procedure_internalPolicies_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Procedure_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_userSettingCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26798,16 +26682,16 @@ func (ec *executionContext) field_Procedure_narratives_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { - return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26816,7 +26700,7 @@ func (ec *executionContext) field_Procedure_narratives_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Procedure_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26852,16 +26736,16 @@ func (ec *executionContext) field_Procedure_programs_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26870,7 +26754,7 @@ func (ec *executionContext) field_Procedure_programs_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Procedure_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_vendorRiskScoreCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26906,16 +26790,16 @@ func (ec *executionContext) field_Procedure_risks_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26924,7 +26808,7 @@ func (ec *executionContext) field_Procedure_risks_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Procedure_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26960,16 +26844,16 @@ func (ec *executionContext) field_Procedure_subcontrols_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { + return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { + return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26978,7 +26862,7 @@ func (ec *executionContext) field_Procedure_subcontrols_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Procedure_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_vendorScoringConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27014,16 +26898,16 @@ func (ec *executionContext) field_Procedure_tasks_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorScoringConfigOrder, error) { + return ec.unmarshalOVendorScoringConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorScoringConfigWhereInput, error) { + return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27032,7 +26916,7 @@ func (ec *executionContext) field_Procedure_tasks_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Procedure_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27068,16 +26952,16 @@ func (ec *executionContext) field_Procedure_workflowObjectRefs_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27086,7 +26970,7 @@ func (ec *executionContext) field_Procedure_workflowObjectRefs_args(ctx context. return args, nil } -func (ec *executionContext) field_Procedure_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_vulnerabilityCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27122,33 +27006,25 @@ func (ec *executionContext) field_Procedure_workflowTimeline_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) - }) - if err != nil { - return nil, err - } - args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_Program_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowAssignmentCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27184,16 +27060,16 @@ func (ec *executionContext) field_Program_actionPlans_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27202,7 +27078,7 @@ func (ec *executionContext) field_Program_actionPlans_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Program_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowAssignmentTargetCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27256,7 +27132,7 @@ func (ec *executionContext) field_Program_blockedGroups_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Program_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27292,16 +27168,16 @@ func (ec *executionContext) field_Program_controlObjectives_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { - return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { + return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27310,7 +27186,7 @@ func (ec *executionContext) field_Program_controlObjectives_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Program_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27346,16 +27222,16 @@ func (ec *executionContext) field_Program_controls_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { + return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27364,7 +27240,7 @@ func (ec *executionContext) field_Program_controls_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Program_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowDefinitionCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27418,61 +27294,7 @@ func (ec *executionContext) field_Program_editors_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Program_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Program_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27508,16 +27330,16 @@ func (ec *executionContext) field_Program_files_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowDefinitionOrder, error) { + return ec.unmarshalOWorkflowDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowDefinitionWhereInput, error) { + return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27526,7 +27348,7 @@ func (ec *executionContext) field_Program_files_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Program_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowEventCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27562,16 +27384,16 @@ func (ec *executionContext) field_Program_internalPolicies_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27580,7 +27402,7 @@ func (ec *executionContext) field_Program_internalPolicies_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Program_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27616,16 +27438,16 @@ func (ec *executionContext) field_Program_members_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { - return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { - return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27634,7 +27456,7 @@ func (ec *executionContext) field_Program_members_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Program_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowInstanceCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27670,16 +27492,16 @@ func (ec *executionContext) field_Program_narratives_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { - return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27688,7 +27510,7 @@ func (ec *executionContext) field_Program_narratives_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Program_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowInstances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27724,16 +27546,16 @@ func (ec *executionContext) field_Program_notes_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowInstanceOrder, error) { + return ec.unmarshalOWorkflowInstanceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowInstanceWhereInput, error) { + return ec.unmarshalOWorkflowInstanceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27742,7 +27564,7 @@ func (ec *executionContext) field_Program_notes_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Program_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowObjectRefCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27778,16 +27600,16 @@ func (ec *executionContext) field_Program_procedures_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27796,7 +27618,7 @@ func (ec *executionContext) field_Program_procedures_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Program_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27832,16 +27654,16 @@ func (ec *executionContext) field_Program_risks_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27850,7 +27672,7 @@ func (ec *executionContext) field_Program_risks_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Program_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowProposalCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27886,16 +27708,16 @@ func (ec *executionContext) field_Program_subcontrols_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27904,7 +27726,7 @@ func (ec *executionContext) field_Program_subcontrols_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Program_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_workflowsManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27940,16 +27762,16 @@ func (ec *executionContext) field_Program_tasks_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27958,7 +27780,7 @@ func (ec *executionContext) field_Program_tasks_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Program_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_PersonalAccessToken_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27994,16 +27816,16 @@ func (ec *executionContext) field_Program_users_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.UserOrder, error) { - return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28012,7 +27834,7 @@ func (ec *executionContext) field_Program_users_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Program_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_PersonalAccessToken_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28048,16 +27870,16 @@ func (ec *executionContext) field_Program_viewers_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28066,81 +27888,61 @@ func (ec *executionContext) field_Program_viewers_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_actionPlanSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_applicableFrameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_actionPlan_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { + return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_architectureDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28176,16 +27978,16 @@ func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28194,21 +27996,61 @@ func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { + return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { + return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28244,16 +28086,16 @@ func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.APITokenOrder, error) { - return ec.unmarshalOAPITokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.APITokenWhereInput, error) { - return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28262,67 +28104,61 @@ func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_assessmentResponseSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_assessmentResponse_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28358,16 +28194,16 @@ func (ec *executionContext) field_Query_assessmentResponses_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { - return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { - return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28376,67 +28212,61 @@ func (ec *executionContext) field_Query_assessmentResponses_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_assessmentSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_dataFlowDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_assessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28472,16 +28302,16 @@ func (ec *executionContext) field_Query_assessments_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { - return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { - return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28490,67 +28320,61 @@ func (ec *executionContext) field_Query_assessments_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_assetSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_asset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28586,16 +28410,16 @@ func (ec *executionContext) field_Query_assets_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28604,113 +28428,115 @@ func (ec *executionContext) field_Query_assets_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_campaignSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { + return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { + return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_campaignTargetSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_campaignTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28746,16 +28572,16 @@ func (ec *executionContext) field_Query_campaignTargets_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { - return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { - return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28764,21 +28590,7 @@ func (ec *executionContext) field_Query_campaignTargets_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_campaign_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28814,16 +28626,16 @@ func (ec *executionContext) field_Query_campaigns_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { - return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28832,21 +28644,7 @@ func (ec *executionContext) field_Query_campaigns_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_checkResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_checkResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28882,16 +28680,16 @@ func (ec *executionContext) field_Query_checkResults_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CheckResultOrder, error) { - return ec.unmarshalOCheckResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CheckResultWhereInput, error) { - return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28900,67 +28698,61 @@ func (ec *executionContext) field_Query_checkResults_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_generatedScans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -28996,16 +28788,16 @@ func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { - return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29014,57 +28806,61 @@ func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_controlCategoriesByFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { - return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryOrderᚄ(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["orderBy"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_controlDiff_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", - func(ctx context.Context, v any) (model.ControlDiffInput, error) { - return ec.unmarshalNControlDiffInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDiffInput(ctx, v) + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_controlImplementation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_outOfScopeAssets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29100,16 +28896,16 @@ func (ec *executionContext) field_Query_controlImplementations_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { - return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29118,67 +28914,61 @@ func (ec *executionContext) field_Query_controlImplementations_args(ctx context. return args, nil } -func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_outOfScopeVendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_controlObjective_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29214,16 +29004,16 @@ func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { - return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29232,89 +29022,61 @@ func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_controlSubcategoriesByFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { - return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_controlsGroupByCategory_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_sourceAssets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29350,33 +29112,25 @@ func (ec *executionContext) field_Query_controlsGroupByCategory_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - arg6, err := graphql.ProcessArgField(ctx, rawArgs, "category", - func(ctx context.Context, v any) (*string, error) { - return ec.unmarshalOString2ᚖstring(ctx, v) - }) - if err != nil { - return nil, err - } - args["category"] = arg6 return args, nil } -func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_sourceEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29412,16 +29166,16 @@ func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29430,21 +29184,7 @@ func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_customDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_customDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29480,16 +29220,16 @@ func (ec *executionContext) field_Query_customDomains_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { - return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { - return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29498,67 +29238,61 @@ func (ec *executionContext) field_Query_customDomains_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_customTypeEnumSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_trustBoundaryDiagrams_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_customTypeEnum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_customTypeEnums_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29594,16 +29328,16 @@ func (ec *executionContext) field_Query_customTypeEnums_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { - return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { - return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29612,21 +29346,7 @@ func (ec *executionContext) field_Query_customTypeEnums_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_directoryAccount_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29662,16 +29382,16 @@ func (ec *executionContext) field_Query_directoryAccounts_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { - return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29680,21 +29400,7 @@ func (ec *executionContext) field_Query_directoryAccounts_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_directoryGroup_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Platform_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29730,39 +29436,33 @@ func (ec *executionContext) field_Query_directoryGroups_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { - return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Query_directoryMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", + func(ctx context.Context, v any) (*bool, error) { + return ec.unmarshalOBoolean2ᚖbool(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_Query_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29798,16 +29498,16 @@ func (ec *executionContext) field_Query_directoryMemberships_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { - return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29816,21 +29516,7 @@ func (ec *executionContext) field_Query_directoryMemberships_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Query_directorySyncRun_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29866,16 +29552,16 @@ func (ec *executionContext) field_Query_directorySyncRuns_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { - return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { - return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29884,21 +29570,7 @@ func (ec *executionContext) field_Query_directorySyncRuns_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_discussion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -29934,16 +29606,16 @@ func (ec *executionContext) field_Query_discussions_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -29952,21 +29624,7 @@ func (ec *executionContext) field_Query_discussions_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_dnsVerification_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_dnsVerifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30002,16 +29660,16 @@ func (ec *executionContext) field_Query_dnsVerifications_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DNSVerificationOrder, error) { - return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DNSVerificationWhereInput, error) { - return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30020,7 +29678,7 @@ func (ec *executionContext) field_Query_dnsVerifications_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30056,16 +29714,16 @@ func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { - return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30074,81 +29732,61 @@ func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_emailTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_emailTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30184,16 +29822,16 @@ func (ec *executionContext) field_Query_emailTemplates_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { - return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { - return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30202,7 +29840,7 @@ func (ec *executionContext) field_Query_emailTemplates_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30238,16 +29876,16 @@ func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30256,67 +29894,61 @@ func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30352,16 +29984,16 @@ func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityTypeOrder, error) { - return ec.unmarshalOEntityTypeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityTypeWhereInput, error) { - return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30370,35 +30002,7 @@ func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30434,16 +30038,16 @@ func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EventOrder, error) { - return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30452,67 +30056,61 @@ func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_evidenceSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Procedure_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30548,39 +30146,33 @@ func (ec *executionContext) field_Query_evidences_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Query_export_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", + func(ctx context.Context, v any) (*bool, error) { + return ec.unmarshalOBoolean2ᚖbool(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_Query_exports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30616,16 +30208,16 @@ func (ec *executionContext) field_Query_exports_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ExportOrder, error) { - return ec.unmarshalOExportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ExportWhereInput, error) { - return ec.unmarshalOExportWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30634,21 +30226,7 @@ func (ec *executionContext) field_Query_exports_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30684,16 +30262,16 @@ func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30702,21 +30280,7 @@ func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_findingControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findingControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30752,16 +30316,16 @@ func (ec *executionContext) field_Query_findingControls_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingControlOrder, error) { - return ec.unmarshalOFindingControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingControlWhereInput, error) { - return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30770,67 +30334,61 @@ func (ec *executionContext) field_Query_findingControls_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_findingSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_finding_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30866,16 +30424,16 @@ func (ec *executionContext) field_Query_findings_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30884,21 +30442,7 @@ func (ec *executionContext) field_Query_findings_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -30934,16 +30478,16 @@ func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { - return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -30952,67 +30496,61 @@ func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31048,16 +30586,16 @@ func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupSettingOrder, error) { - return ec.unmarshalOGroupSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupSettingWhereInput, error) { - return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31066,21 +30604,61 @@ func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { + return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { + return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31116,16 +30694,16 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31134,21 +30712,61 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31184,16 +30802,16 @@ func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.HushOrder, error) { - return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.HushWhereInput, error) { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31202,67 +30820,61 @@ func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_identityHolderSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_identityHolder_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31298,16 +30910,16 @@ func (ec *executionContext) field_Query_identityHolders_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31316,67 +30928,61 @@ func (ec *executionContext) field_Query_identityHolders_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31412,16 +31018,16 @@ func (ec *executionContext) field_Query_integrations_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31430,7 +31036,7 @@ func (ec *executionContext) field_Query_integrations_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Program_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31466,16 +31072,16 @@ func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31484,7 +31090,21 @@ func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["name"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_actionPlanSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -31530,7 +31150,7 @@ func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_actionPlan_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -31544,53 +31164,61 @@ func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_inviteSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -31604,7 +31232,7 @@ func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31640,16 +31268,16 @@ func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { - return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.APITokenOrder, error) { + return ec.unmarshalOAPITokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.APITokenWhereInput, error) { + return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31658,75 +31286,53 @@ func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Query_jobResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessmentResponseSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_jobResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobResultOrder, error) { - return ec.unmarshalOJobResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobResultWhereInput, error) { - return ec.unmarshalOJobResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_jobRunnerRegistrationToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessmentResponse_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -31740,7 +31346,7 @@ func (ec *executionContext) field_Query_jobRunnerRegistrationToken_args(ctx cont return args, nil } -func (ec *executionContext) field_Query_jobRunnerRegistrationTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31776,16 +31382,16 @@ func (ec *executionContext) field_Query_jobRunnerRegistrationTokens_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerRegistrationTokenOrder, error) { - return ec.unmarshalOJobRunnerRegistrationTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { + return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerRegistrationTokenWhereInput, error) { - return ec.unmarshalOJobRunnerRegistrationTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { + return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31794,7 +31400,7 @@ func (ec *executionContext) field_Query_jobRunnerRegistrationTokens_args(ctx con return args, nil } -func (ec *executionContext) field_Query_jobRunnerSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessmentSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -31840,7 +31446,7 @@ func (ec *executionContext) field_Query_jobRunnerSearch_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_jobRunnerToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -31854,7 +31460,7 @@ func (ec *executionContext) field_Query_jobRunnerToken_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_jobRunnerTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31890,16 +31496,16 @@ func (ec *executionContext) field_Query_jobRunnerTokens_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerTokenOrder, error) { - return ec.unmarshalOJobRunnerTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { + return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerTokenWhereInput, error) { - return ec.unmarshalOJobRunnerTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { + return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31908,7 +31514,53 @@ func (ec *executionContext) field_Query_jobRunnerTokens_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_jobRunner_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assetSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_asset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -31922,7 +31574,7 @@ func (ec *executionContext) field_Query_jobRunner_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_jobRunners_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -31958,16 +31610,16 @@ func (ec *executionContext) field_Query_jobRunners_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobRunnerOrder, error) { - return ec.unmarshalOJobRunnerOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobRunnerWhereInput, error) { - return ec.unmarshalOJobRunnerWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -31976,7 +31628,7 @@ func (ec *executionContext) field_Query_jobRunners_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_jobTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaignSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -32022,75 +31674,53 @@ func (ec *executionContext) field_Query_jobTemplateSearch_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_jobTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaignTargetSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_jobTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.JobTemplateOrder, error) { - return ec.unmarshalOJobTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.JobTemplateWhereInput, error) { - return ec.unmarshalOJobTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_mappableDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaignTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32104,7 +31734,7 @@ func (ec *executionContext) field_Query_mappableDomain_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_mappableDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32140,16 +31770,16 @@ func (ec *executionContext) field_Query_mappableDomains_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.MappableDomainOrder, error) { - return ec.unmarshalOMappableDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.MappableDomainWhereInput, error) { - return ec.unmarshalOMappableDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32158,7 +31788,7 @@ func (ec *executionContext) field_Query_mappableDomains_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_mappedControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaign_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32172,7 +31802,7 @@ func (ec *executionContext) field_Query_mappedControl_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_mappedControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32208,16 +31838,16 @@ func (ec *executionContext) field_Query_mappedControls_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { - return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { - return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32226,7 +31856,21 @@ func (ec *executionContext) field_Query_mappedControls_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_myWorkflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_checkResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_checkResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32262,16 +31906,16 @@ func (ec *executionContext) field_Query_myWorkflowAssignments_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { - return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CheckResultOrder, error) { + return ec.unmarshalOCheckResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CheckResultWhereInput, error) { + return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32280,7 +31924,7 @@ func (ec *executionContext) field_Query_myWorkflowAssignments_args(ctx context.C return args, nil } -func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -32326,7 +31970,7 @@ func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32340,7 +31984,7 @@ func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32376,16 +32020,16 @@ func (ec *executionContext) field_Query_narratives_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { - return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32394,35 +32038,43 @@ func (ec *executionContext) field_Query_narratives_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlCategoriesByFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { + return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg1 return args, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlDiff_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids", - func(ctx context.Context, v any) ([]string, error) { - return ec.unmarshalNID2ᚕstringᚄ(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", + func(ctx context.Context, v any) (model.ControlDiffInput, error) { + return ec.unmarshalNControlDiffInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDiffInput(ctx, v) }) if err != nil { return nil, err } - args["ids"] = arg0 + args["input"] = arg0 return args, nil } -func (ec *executionContext) field_Query_note_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlImplementation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32436,7 +32088,7 @@ func (ec *executionContext) field_Query_note_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32472,16 +32124,16 @@ func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32490,7 +32142,53 @@ func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_notificationPreference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_controlObjective_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32504,7 +32202,7 @@ func (ec *executionContext) field_Query_notificationPreference_args(ctx context. return args, nil } -func (ec *executionContext) field_Query_notificationPreferences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32540,16 +32238,16 @@ func (ec *executionContext) field_Query_notificationPreferences_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NotificationPreferenceOrder, error) { - return ec.unmarshalONotificationPreferenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NotificationPreferenceWhereInput, error) { - return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32558,7 +32256,7 @@ func (ec *executionContext) field_Query_notificationPreferences_args(ctx context return args, nil } -func (ec *executionContext) field_Query_notificationTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -32604,7 +32302,29 @@ func (ec *executionContext) field_Query_notificationTemplateSearch_args(ctx cont return args, nil } -func (ec *executionContext) field_Query_notificationTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlSubcategoriesByFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { + return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32618,7 +32338,7 @@ func (ec *executionContext) field_Query_notificationTemplate_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Query_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controlsGroupByCategory_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32654,39 +32374,33 @@ func (ec *executionContext) field_Query_notificationTemplates_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { - return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { - return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + arg6, err := graphql.ProcessArgField(ctx, rawArgs, "category", + func(ctx context.Context, v any) (*string, error) { + return ec.unmarshalOString2ᚖstring(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["category"] = arg6 return args, nil } -func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32722,16 +32436,16 @@ func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { - return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32740,7 +32454,7 @@ func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_orgSubscription_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_customDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32754,7 +32468,7 @@ func (ec *executionContext) field_Query_orgSubscription_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_customDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32790,16 +32504,16 @@ func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) (*generated.OrgSubscriptionOrder, error) { - return ec.unmarshalOOrgSubscriptionOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionOrder(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { + return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrgSubscriptionWhereInput, error) { - return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { + return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32808,7 +32522,7 @@ func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_customTypeEnumSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -32854,75 +32568,7 @@ func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrganizationSettingOrder, error) { - return ec.unmarshalOOrganizationSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrganizationSettingWhereInput, error) { - return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_customTypeEnum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -32936,7 +32582,7 @@ func (ec *executionContext) field_Query_organization_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_customTypeEnums_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32972,16 +32618,16 @@ func (ec *executionContext) field_Query_organizations_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { - return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { + return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { + return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32990,7 +32636,7 @@ func (ec *executionContext) field_Query_organizations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directoryAccount_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33004,7 +32650,7 @@ func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33040,16 +32686,16 @@ func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { - return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33058,53 +32704,7 @@ func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Query_platformSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_platform_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directoryGroup_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33118,7 +32718,7 @@ func (ec *executionContext) field_Query_platform_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33154,16 +32754,16 @@ func (ec *executionContext) field_Query_platforms_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33172,53 +32772,75 @@ func (ec *executionContext) field_Query_platforms_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_procedureSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directoryMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directorySyncRun_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33232,7 +32854,7 @@ func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_directorySyncRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33268,16 +32890,16 @@ func (ec *executionContext) field_Query_procedures_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { + return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { + return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33286,7 +32908,7 @@ func (ec *executionContext) field_Query_procedures_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_programMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_discussion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33300,7 +32922,7 @@ func (ec *executionContext) field_Query_programMembership_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_programMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33336,16 +32958,16 @@ func (ec *executionContext) field_Query_programMemberships_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { - return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { - return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33354,67 +32976,75 @@ func (ec *executionContext) field_Query_programMemberships_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_programSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_dnsVerification_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_dnsVerifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_program_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.DNSVerificationOrder, error) { + return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.DNSVerificationWhereInput, error) { + return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33450,16 +33080,16 @@ func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { + return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33468,7 +33098,21 @@ func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_remediationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_emailTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -33514,7 +33158,7 @@ func (ec *executionContext) field_Query_remediationSearch_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_remediation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_emailTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33528,7 +33172,7 @@ func (ec *executionContext) field_Query_remediation_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33564,16 +33208,16 @@ func (ec *executionContext) field_Query_remediations_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { + return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { + return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33582,7 +33226,61 @@ func (ec *executionContext) field_Query_remediations_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_reviewSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -33628,7 +33326,7 @@ func (ec *executionContext) field_Query_reviewSearch_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_review_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33642,7 +33340,7 @@ func (ec *executionContext) field_Query_review_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33678,16 +33376,16 @@ func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityTypeOrder, error) { + return ec.unmarshalOEntityTypeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityTypeWhereInput, error) { + return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33696,53 +33394,21 @@ func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Query_riskSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33756,7 +33422,7 @@ func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33792,16 +33458,16 @@ func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33810,7 +33476,7 @@ func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_scanSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_evidenceSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -33856,7 +33522,7 @@ func (ec *executionContext) field_Query_scanSearch_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_scan_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33870,7 +33536,7 @@ func (ec *executionContext) field_Query_scan_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Query_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33906,16 +33572,16 @@ func (ec *executionContext) field_Query_scans_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33924,7 +33590,7 @@ func (ec *executionContext) field_Query_scans_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_scheduledJobRun_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_export_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -33938,7 +33604,7 @@ func (ec *executionContext) field_Query_scheduledJobRun_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_scheduledJobRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_exports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33974,16 +33640,16 @@ func (ec *executionContext) field_Query_scheduledJobRuns_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScheduledJobRunOrder, error) { - return ec.unmarshalOScheduledJobRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ExportOrder, error) { + return ec.unmarshalOExportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScheduledJobRunWhereInput, error) { - return ec.unmarshalOScheduledJobRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ExportWhereInput, error) { + return ec.unmarshalOExportWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33992,7 +33658,7 @@ func (ec *executionContext) field_Query_scheduledJobRuns_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_scheduledJob_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34006,7 +33672,7 @@ func (ec *executionContext) field_Query_scheduledJob_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34042,16 +33708,16 @@ func (ec *executionContext) field_Query_scheduledJobs_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { - return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { - return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34060,53 +33726,7 @@ func (ec *executionContext) field_Query_scheduledJobs_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_slaDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_findingControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34120,7 +33740,7 @@ func (ec *executionContext) field_Query_slaDefinition_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_slaDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_findingControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34156,16 +33776,16 @@ func (ec *executionContext) field_Query_slaDefinitions_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SLADefinitionOrder, error) { - return ec.unmarshalOSLADefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingControlOrder, error) { + return ec.unmarshalOFindingControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SLADefinitionWhereInput, error) { - return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingControlWhereInput, error) { + return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34174,7 +33794,7 @@ func (ec *executionContext) field_Query_slaDefinitions_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_findingSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -34220,7 +33840,7 @@ func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_finding_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34234,7 +33854,7 @@ func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34270,16 +33890,16 @@ func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { - return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34288,53 +33908,7 @@ func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_subcontrolSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34348,7 +33922,7 @@ func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34384,16 +33958,16 @@ func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { + return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34402,7 +33976,7 @@ func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_subprocessorSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -34448,7 +34022,7 @@ func (ec *executionContext) field_Query_subprocessorSearch_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_subprocessor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34462,7 +34036,7 @@ func (ec *executionContext) field_Query_subprocessor_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_subprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34498,16 +34072,16 @@ func (ec *executionContext) field_Query_subprocessors_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { - return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupSettingOrder, error) { + return ec.unmarshalOGroupSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { - return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupSettingWhereInput, error) { + return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34516,67 +34090,89 @@ func (ec *executionContext) field_Query_subprocessors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "email", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["email"] = arg0 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34612,16 +34208,16 @@ func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { - return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.HushOrder, error) { + return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.HushWhereInput, error) { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34630,7 +34226,7 @@ func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_systemDetailSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_identityHolderSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -34676,7 +34272,7 @@ func (ec *executionContext) field_Query_systemDetailSearch_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_systemDetail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_identityHolder_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34690,7 +34286,7 @@ func (ec *executionContext) field_Query_systemDetail_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_systemDetails_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34726,16 +34322,16 @@ func (ec *executionContext) field_Query_systemDetails_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { - return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { - return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34744,7 +34340,7 @@ func (ec *executionContext) field_Query_systemDetails_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_tagDefinitionSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -34790,7 +34386,7 @@ func (ec *executionContext) field_Query_tagDefinitionSearch_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_tagDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34804,7 +34400,7 @@ func (ec *executionContext) field_Query_tagDefinition_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -34840,16 +34436,16 @@ func (ec *executionContext) field_Query_tagDefinitions_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { - return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { - return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34858,7 +34454,61 @@ func (ec *executionContext) field_Query_tagDefinitions_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_taskSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -34904,7 +34554,7 @@ func (ec *executionContext) field_Query_taskSearch_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -34918,107 +34568,121 @@ func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_inviteSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { + return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35032,7 +34696,7 @@ func (ec *executionContext) field_Query_template_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35068,16 +34732,16 @@ func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { - return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobResultOrder, error) { + return ec.unmarshalOJobResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobResultWhereInput, error) { + return ec.unmarshalOJobResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35086,12 +34750,12 @@ func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunnerRegistrationToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (*string, error) { - return ec.unmarshalOID2ᚖstring(ctx, v) + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err @@ -35100,7 +34764,7 @@ func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunnerRegistrationTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35136,16 +34800,16 @@ func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TFASettingOrder, error) { - return ec.unmarshalOTFASettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerRegistrationTokenOrder, error) { + return ec.unmarshalOJobRunnerRegistrationTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TFASettingWhereInput, error) { - return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerRegistrationTokenWhereInput, error) { + return ec.unmarshalOJobRunnerRegistrationTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35154,7 +34818,53 @@ func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_trustCenterCompliance_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunnerSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_jobRunnerToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35168,7 +34878,7 @@ func (ec *executionContext) field_Query_trustCenterCompliance_args(ctx context.C return args, nil } -func (ec *executionContext) field_Query_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunnerTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35204,16 +34914,16 @@ func (ec *executionContext) field_Query_trustCenterCompliances_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { - return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerTokenOrder, error) { + return ec.unmarshalOJobRunnerTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { - return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerTokenWhereInput, error) { + return ec.unmarshalOJobRunnerTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35222,7 +34932,7 @@ func (ec *executionContext) field_Query_trustCenterCompliances_args(ctx context. return args, nil } -func (ec *executionContext) field_Query_trustCenterDoc_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunner_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35236,7 +34946,7 @@ func (ec *executionContext) field_Query_trustCenterDoc_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobRunners_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35272,70 +34982,16 @@ func (ec *executionContext) field_Query_trustCenterDocs_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { - return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { - return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Query_trustCenterEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterEntityOrder, error) { - return ec.unmarshalOTrustCenterEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobRunnerOrder, error) { + return ec.unmarshalOJobRunnerOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterEntityWhereInput, error) { - return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobRunnerWhereInput, error) { + return ec.unmarshalOJobRunnerWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35344,7 +35000,7 @@ func (ec *executionContext) field_Query_trustCenterEntities_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_trustCenterEntitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", @@ -35390,21 +35046,7 @@ func (ec *executionContext) field_Query_trustCenterEntitySearch_args(ctx context return args, nil } -func (ec *executionContext) field_Query_trustCenterEntity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_trustCenterFAQ_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35418,7 +35060,7 @@ func (ec *executionContext) field_Query_trustCenterFAQ_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_trustCenterFAQs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_jobTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35454,16 +35096,16 @@ func (ec *executionContext) field_Query_trustCenterFAQs_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterFAQOrder, error) { - return ec.unmarshalOTrustCenterFAQOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.JobTemplateOrder, error) { + return ec.unmarshalOJobTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterFAQWhereInput, error) { - return ec.unmarshalOTrustCenterFAQWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.JobTemplateWhereInput, error) { + return ec.unmarshalOJobTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35472,7 +35114,7 @@ func (ec *executionContext) field_Query_trustCenterFAQs_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_trustCenterNDARequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_mappableDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35486,7 +35128,7 @@ func (ec *executionContext) field_Query_trustCenterNDARequest_args(ctx context.C return args, nil } -func (ec *executionContext) field_Query_trustCenterNdaRequests_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_mappableDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35522,16 +35164,16 @@ func (ec *executionContext) field_Query_trustCenterNdaRequests_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterNDARequestOrder, error) { - return ec.unmarshalOTrustCenterNDARequestOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappableDomainOrder, error) { + return ec.unmarshalOMappableDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterNDARequestWhereInput, error) { - return ec.unmarshalOTrustCenterNDARequestWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappableDomainWhereInput, error) { + return ec.unmarshalOMappableDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35540,7 +35182,7 @@ func (ec *executionContext) field_Query_trustCenterNdaRequests_args(ctx context. return args, nil } -func (ec *executionContext) field_Query_trustCenterSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_mappedControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35554,7 +35196,7 @@ func (ec *executionContext) field_Query_trustCenterSetting_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_trustCenterSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_mappedControls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35590,16 +35232,16 @@ func (ec *executionContext) field_Query_trustCenterSettings_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterSettingOrder, error) { - return ec.unmarshalOTrustCenterSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { + return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterSettingWhereInput, error) { - return ec.unmarshalOTrustCenterSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { + return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35608,21 +35250,7 @@ func (ec *executionContext) field_Query_trustCenterSettings_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_trustCenterSubprocessor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_myWorkflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35658,16 +35286,16 @@ func (ec *executionContext) field_Query_trustCenterSubprocessors_args(ctx contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { - return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { + return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { - return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35676,75 +35304,53 @@ func (ec *executionContext) field_Query_trustCenterSubprocessors_args(ctx contex return args, nil } -func (ec *executionContext) field_Query_trustCenterWatermarkConfig_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_trustCenterWatermarkConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterWatermarkConfigOrder, error) { - return ec.unmarshalOTrustCenterWatermarkConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterWatermarkConfigWhereInput, error) { - return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_trustCenter_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35758,7 +35364,7 @@ func (ec *executionContext) field_Query_trustCenter_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_trustCenters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35794,16 +35400,16 @@ func (ec *executionContext) field_Query_trustCenters_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterOrder, error) { - return ec.unmarshalOTrustCenterOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterWhereInput, error) { - return ec.unmarshalOTrustCenterWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35812,7 +35418,7 @@ func (ec *executionContext) field_Query_trustCenters_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35826,61 +35432,21 @@ func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.UserSettingOrder, error) { - return ec.unmarshalOUserSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.UserSettingWhereInput, error) { - return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, v) + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids", + func(ctx context.Context, v any) ([]string, error) { + return ec.unmarshalNID2ᚕstringᚄ(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["ids"] = arg0 return args, nil } -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_note_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35894,7 +35460,7 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35930,16 +35496,16 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.UserOrder, error) { - return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -35948,7 +35514,7 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query_vendorRiskScore_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_notificationPreference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -35962,7 +35528,7 @@ func (ec *executionContext) field_Query_vendorRiskScore_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_notificationPreferences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -35998,16 +35564,16 @@ func (ec *executionContext) field_Query_vendorRiskScores_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { - return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationPreferenceOrder, error) { + return ec.unmarshalONotificationPreferenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { - return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationPreferenceWhereInput, error) { + return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36016,75 +35582,67 @@ func (ec *executionContext) field_Query_vendorRiskScores_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_vendorScoringConfig_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_notificationTemplateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_vendorScoringConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VendorScoringConfigOrder, error) { - return ec.unmarshalOVendorScoringConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VendorScoringConfigWhereInput, error) { - return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_notificationTemplate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Query_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36120,16 +35678,16 @@ func (ec *executionContext) field_Query_vulnerabilities_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { + return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { + return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36138,67 +35696,75 @@ func (ec *executionContext) field_Query_vulnerabilities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_vulnerabilitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["query"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Query_vulnerabilitySummary_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg0 + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_vulnerability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_orgSubscription_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -36212,7 +35778,7 @@ func (ec *executionContext) field_Query_vulnerability_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_webauthns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36248,16 +35814,16 @@ func (ec *executionContext) field_Query_webauthns_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) (*generated.WebauthnOrder, error) { - return ec.unmarshalOWebauthnOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnOrder(ctx, v) + func(ctx context.Context, v any) (*generated.OrgSubscriptionOrder, error) { + return ec.unmarshalOOrgSubscriptionOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionOrder(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WebauthnWhereInput, error) { - return ec.unmarshalOWebauthnWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgSubscriptionWhereInput, error) { + return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36266,75 +35832,53 @@ func (ec *executionContext) field_Query_webauthns_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Query_workflowAssignmentTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { - return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_workflowAssignment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -36348,7 +35892,7 @@ func (ec *executionContext) field_Query_workflowAssignment_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36384,16 +35928,16 @@ func (ec *executionContext) field_Query_workflowAssignments_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { - return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationSettingOrder, error) { + return ec.unmarshalOOrganizationSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationSettingWhereInput, error) { + return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36402,7 +35946,7 @@ func (ec *executionContext) field_Query_workflowAssignments_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_workflowDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -36416,7 +35960,7 @@ func (ec *executionContext) field_Query_workflowDefinition_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Query_workflowDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36452,16 +35996,16 @@ func (ec *executionContext) field_Query_workflowDefinitions_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowDefinitionOrder, error) { - return ec.unmarshalOWorkflowDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowDefinitionWhereInput, error) { - return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36470,145 +36014,121 @@ func (ec *executionContext) field_Query_workflowDefinitions_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Query_workflowEventTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "workflowInstanceID", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", func(ctx context.Context, v any) (string, error) { return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["workflowInstanceID"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg5 - arg6, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { + return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg6 - arg7, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) }) if err != nil { return nil, err } - args["includeEmitFailures"] = arg7 + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_workflowEvent_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_platformSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_workflowInstance_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_platform_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -36622,7 +36142,7 @@ func (ec *executionContext) field_Query_workflowInstance_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_workflowInstances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36658,16 +36178,16 @@ func (ec *executionContext) field_Query_workflowInstances_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowInstanceOrder, error) { - return ec.unmarshalOWorkflowInstanceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowInstanceWhereInput, error) { - return ec.unmarshalOWorkflowInstanceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36676,75 +36196,53 @@ func (ec *executionContext) field_Query_workflowInstances_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_workflowObjectRef_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_procedureSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_workflowProposal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", @@ -36758,37 +36256,7 @@ func (ec *executionContext) field_Query_workflowProposal_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_workflowProposalsForObject_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "objectType", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNString2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["objectType"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "objectID", - func(ctx context.Context, v any) (string, error) { - return ec.unmarshalNID2string(ctx, v) - }) - if err != nil { - return nil, err - } - args["objectID"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "includeStates", - func(ctx context.Context, v any) ([]enums.WorkflowProposalState, error) { - return ec.unmarshalOWorkflowProposalState2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowProposalStateᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["includeStates"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Remediation_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36824,16 +36292,16 @@ func (ec *executionContext) field_Remediation_actionPlans_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36842,7 +36310,21 @@ func (ec *executionContext) field_Remediation_actionPlans_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Remediation_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_programMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_programMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36878,16 +36360,16 @@ func (ec *executionContext) field_Remediation_assets_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { + return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { + return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -36896,61 +36378,67 @@ func (ec *executionContext) field_Remediation_assets_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Remediation_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_programSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_program_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -36986,16 +36474,16 @@ func (ec *executionContext) field_Remediation_comments_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37004,61 +36492,67 @@ func (ec *executionContext) field_Remediation_comments_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Remediation_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_remediationSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_remediation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37094,16 +36588,16 @@ func (ec *executionContext) field_Remediation_editors_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37112,61 +36606,67 @@ func (ec *executionContext) field_Remediation_editors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Remediation_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_reviewSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_review_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37202,16 +36702,16 @@ func (ec *executionContext) field_Remediation_files_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37220,61 +36720,67 @@ func (ec *executionContext) field_Remediation_files_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Remediation_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_riskSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37310,16 +36816,16 @@ func (ec *executionContext) field_Remediation_integrations_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37328,61 +36834,67 @@ func (ec *executionContext) field_Remediation_integrations_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Remediation_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_scanSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_scan_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37418,16 +36930,16 @@ func (ec *executionContext) field_Remediation_reviews_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37436,7 +36948,21 @@ func (ec *executionContext) field_Remediation_reviews_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Remediation_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_scheduledJobRun_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_scheduledJobRuns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37472,16 +36998,16 @@ func (ec *executionContext) field_Remediation_risks_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScheduledJobRunOrder, error) { + return ec.unmarshalOScheduledJobRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScheduledJobRunWhereInput, error) { + return ec.unmarshalOScheduledJobRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37490,7 +37016,21 @@ func (ec *executionContext) field_Remediation_risks_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Remediation_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_scheduledJob_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37526,16 +37066,16 @@ func (ec *executionContext) field_Remediation_scans_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { + return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { + return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37544,61 +37084,67 @@ func (ec *executionContext) field_Remediation_scans_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Remediation_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_slaDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_slaDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37634,16 +37180,16 @@ func (ec *executionContext) field_Remediation_tasks_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SLADefinitionOrder, error) { + return ec.unmarshalOSLADefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SLADefinitionWhereInput, error) { + return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37652,61 +37198,67 @@ func (ec *executionContext) field_Remediation_tasks_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Remediation_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Remediation_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37742,16 +37294,16 @@ func (ec *executionContext) field_Remediation_vulnerabilities_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { + return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37760,61 +37312,67 @@ func (ec *executionContext) field_Remediation_vulnerabilities_args(ctx context.C return args, nil } -func (ec *executionContext) field_Review_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subcontrolSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37850,16 +37408,16 @@ func (ec *executionContext) field_Review_assets_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37868,61 +37426,67 @@ func (ec *executionContext) field_Review_assets_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Review_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subprocessorSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_subprocessor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -37958,16 +37522,16 @@ func (ec *executionContext) field_Review_comments_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { + return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { + return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -37976,61 +37540,67 @@ func (ec *executionContext) field_Review_comments_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Review_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "email", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["email"] = arg0 return args, nil } -func (ec *executionContext) field_Review_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38066,16 +37636,16 @@ func (ec *executionContext) field_Review_editors_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { + return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38084,61 +37654,67 @@ func (ec *executionContext) field_Review_editors_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Review_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_systemDetailSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_systemDetail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_systemDetails_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38174,16 +37750,16 @@ func (ec *executionContext) field_Review_files_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { + return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { + return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38192,61 +37768,67 @@ func (ec *executionContext) field_Review_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Review_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_tagDefinitionSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_tagDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38282,16 +37864,16 @@ func (ec *executionContext) field_Review_integrations_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { + return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { + return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38300,61 +37882,67 @@ func (ec *executionContext) field_Review_integrations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Review_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_taskSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38390,16 +37978,16 @@ func (ec *executionContext) field_Review_programs_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38408,61 +37996,67 @@ func (ec *executionContext) field_Review_programs_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Review_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Review_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38498,16 +38092,16 @@ func (ec *executionContext) field_Review_risks_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { + return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { + return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38516,7 +38110,21 @@ func (ec *executionContext) field_Review_risks_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Review_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (*string, error) { + return ec.unmarshalOID2ᚖstring(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38552,16 +38160,16 @@ func (ec *executionContext) field_Review_subcontrols_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TFASettingOrder, error) { + return ec.unmarshalOTFASettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TFASettingWhereInput, error) { + return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38570,7 +38178,21 @@ func (ec *executionContext) field_Review_subcontrols_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Review_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterCompliance_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38606,16 +38228,16 @@ func (ec *executionContext) field_Review_tasks_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { + return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { + return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38624,7 +38246,21 @@ func (ec *executionContext) field_Review_tasks_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Review_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterDoc_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38660,16 +38296,16 @@ func (ec *executionContext) field_Review_viewers_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { + return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { + return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38678,7 +38314,7 @@ func (ec *executionContext) field_Review_viewers_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Review_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38714,16 +38350,16 @@ func (ec *executionContext) field_Review_vulnerabilities_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterEntityOrder, error) { + return ec.unmarshalOTrustCenterEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterEntityWhereInput, error) { + return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38732,61 +38368,81 @@ func (ec *executionContext) field_Review_vulnerabilities_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Risk_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterEntitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterEntity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterFAQ_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Risk_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterFAQs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38822,16 +38478,16 @@ func (ec *executionContext) field_Risk_assets_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterFAQOrder, error) { + return ec.unmarshalOTrustCenterFAQOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterFAQWhereInput, error) { + return ec.unmarshalOTrustCenterFAQWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38840,7 +38496,21 @@ func (ec *executionContext) field_Risk_assets_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Risk_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterNDARequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterNdaRequests_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38876,16 +38546,16 @@ func (ec *executionContext) field_Risk_blockedGroups_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterNDARequestOrder, error) { + return ec.unmarshalOTrustCenterNDARequestOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterNDARequestWhereInput, error) { + return ec.unmarshalOTrustCenterNDARequestWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38894,7 +38564,21 @@ func (ec *executionContext) field_Risk_blockedGroups_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Risk_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38930,16 +38614,16 @@ func (ec *executionContext) field_Risk_comments_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterSettingOrder, error) { + return ec.unmarshalOTrustCenterSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterSettingWhereInput, error) { + return ec.unmarshalOTrustCenterSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -38948,7 +38632,21 @@ func (ec *executionContext) field_Risk_comments_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterSubprocessor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -38984,16 +38682,16 @@ func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { + return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { + return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39002,7 +38700,21 @@ func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Risk_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenterWatermarkConfig_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenterWatermarkConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39038,16 +38750,16 @@ func (ec *executionContext) field_Risk_discussions_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterWatermarkConfigOrder, error) { + return ec.unmarshalOTrustCenterWatermarkConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWatermarkConfigWhereInput, error) { + return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39056,7 +38768,21 @@ func (ec *executionContext) field_Risk_discussions_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Risk_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_trustCenter_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_trustCenters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39092,16 +38818,16 @@ func (ec *executionContext) field_Risk_editors_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterOrder, error) { + return ec.unmarshalOTrustCenterOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWhereInput, error) { + return ec.unmarshalOTrustCenterWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39110,7 +38836,21 @@ func (ec *executionContext) field_Risk_editors_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Risk_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39146,16 +38886,16 @@ func (ec *executionContext) field_Risk_entities_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserSettingOrder, error) { + return ec.unmarshalOUserSettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserSettingWhereInput, error) { + return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39164,7 +38904,21 @@ func (ec *executionContext) field_Risk_entities_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Risk_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39200,16 +38954,16 @@ func (ec *executionContext) field_Risk_internalPolicies_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39218,7 +38972,21 @@ func (ec *executionContext) field_Risk_internalPolicies_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Risk_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_vendorRiskScore_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39254,16 +39022,16 @@ func (ec *executionContext) field_Risk_platforms_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { + return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { + return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39272,7 +39040,21 @@ func (ec *executionContext) field_Risk_platforms_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Risk_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_vendorScoringConfig_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_vendorScoringConfigs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39308,16 +39090,16 @@ func (ec *executionContext) field_Risk_procedures_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorScoringConfigOrder, error) { + return ec.unmarshalOVendorScoringConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorScoringConfigWhereInput, error) { + return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39326,7 +39108,7 @@ func (ec *executionContext) field_Risk_procedures_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Risk_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39362,16 +39144,16 @@ func (ec *executionContext) field_Risk_programs_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39380,61 +39162,81 @@ func (ec *executionContext) field_Risk_programs_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Risk_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_vulnerabilitySearch_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "query", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["query"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + args["last"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Query_vulnerabilitySummary_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + args["where"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_vulnerability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Risk_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_webauthns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39470,16 +39272,16 @@ func (ec *executionContext) field_Risk_reviews_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) (*generated.WebauthnOrder, error) { + return ec.unmarshalOWebauthnOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnOrder(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WebauthnWhereInput, error) { + return ec.unmarshalOWebauthnWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39488,7 +39290,21 @@ func (ec *executionContext) field_Risk_reviews_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Risk_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowAssignmentTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39524,16 +39340,16 @@ func (ec *executionContext) field_Risk_scans_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { + return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39542,7 +39358,21 @@ func (ec *executionContext) field_Risk_scans_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Risk_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowAssignment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39578,16 +39408,16 @@ func (ec *executionContext) field_Risk_subcontrols_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { + return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39596,7 +39426,21 @@ func (ec *executionContext) field_Risk_subcontrols_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Risk_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowDefinition_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39632,16 +39476,16 @@ func (ec *executionContext) field_Risk_tasks_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowDefinitionOrder, error) { + return ec.unmarshalOWorkflowDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowDefinitionWhereInput, error) { + return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39650,61 +39494,91 @@ func (ec *executionContext) field_Risk_tasks_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Risk_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowEventTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "workflowInstanceID", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["workflowInstanceID"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + args["after"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "first", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + args["first"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", func(ctx context.Context, v any) (*entgql.Cursor[string], error) { return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) }) if err != nil { return nil, err } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + args["before"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "last", func(ctx context.Context, v any) (*int, error) { return ec.unmarshalOInt2ᚖint(ctx, v) }) if err != nil { return nil, err } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + args["last"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + args["orderBy"] = arg5 + arg6, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["where"] = arg6 + arg7, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", + func(ctx context.Context, v any) (*bool, error) { + return ec.unmarshalOBoolean2ᚖbool(ctx, v) + }) + if err != nil { + return nil, err + } + args["includeEmitFailures"] = arg7 return args, nil } -func (ec *executionContext) field_SLADefinition_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowEvent_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39740,16 +39614,16 @@ func (ec *executionContext) field_SLADefinition_blockedGroups_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39758,7 +39632,21 @@ func (ec *executionContext) field_SLADefinition_blockedGroups_args(ctx context.C return args, nil } -func (ec *executionContext) field_SLADefinition_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowInstance_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowInstances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39794,16 +39682,16 @@ func (ec *executionContext) field_SLADefinition_editors_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowInstanceOrder, error) { + return ec.unmarshalOWorkflowInstanceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowInstanceWhereInput, error) { + return ec.unmarshalOWorkflowInstanceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39812,7 +39700,21 @@ func (ec *executionContext) field_SLADefinition_editors_args(ctx context.Context return args, nil } -func (ec *executionContext) field_SLADefinition_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowObjectRef_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39848,16 +39750,16 @@ func (ec *executionContext) field_SLADefinition_viewers_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -39866,7 +39768,51 @@ func (ec *executionContext) field_SLADefinition_viewers_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Scan_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_workflowProposal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_workflowProposalsForObject_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "objectType", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNString2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["objectType"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "objectID", + func(ctx context.Context, v any) (string, error) { + return ec.unmarshalNID2string(ctx, v) + }) + if err != nil { + return nil, err + } + args["objectID"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "includeStates", + func(ctx context.Context, v any) ([]enums.WorkflowProposalState, error) { + return ec.unmarshalOWorkflowProposalState2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowProposalStateᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["includeStates"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Remediation_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39920,7 +39866,7 @@ func (ec *executionContext) field_Scan_actionPlans_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Scan_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -39974,7 +39920,7 @@ func (ec *executionContext) field_Scan_assets_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Scan_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40028,7 +39974,61 @@ func (ec *executionContext) field_Scan_blockedGroups_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Scan_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Remediation_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40082,7 +40082,7 @@ func (ec *executionContext) field_Scan_controls_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Scan_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40136,7 +40136,7 @@ func (ec *executionContext) field_Scan_editors_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Scan_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40190,7 +40190,7 @@ func (ec *executionContext) field_Scan_entities_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Scan_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40226,16 +40226,16 @@ func (ec *executionContext) field_Scan_evidence_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40244,7 +40244,7 @@ func (ec *executionContext) field_Scan_evidence_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Scan_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40280,16 +40280,16 @@ func (ec *executionContext) field_Scan_files_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40298,7 +40298,7 @@ func (ec *executionContext) field_Scan_files_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Scan_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40334,16 +40334,16 @@ func (ec *executionContext) field_Scan_platforms_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40352,7 +40352,7 @@ func (ec *executionContext) field_Scan_platforms_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Scan_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40388,16 +40388,16 @@ func (ec *executionContext) field_Scan_remediations_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40406,7 +40406,7 @@ func (ec *executionContext) field_Scan_remediations_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Scan_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40442,16 +40442,16 @@ func (ec *executionContext) field_Scan_subcontrols_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40460,7 +40460,7 @@ func (ec *executionContext) field_Scan_subcontrols_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Scan_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40496,16 +40496,16 @@ func (ec *executionContext) field_Scan_tasks_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40514,7 +40514,7 @@ func (ec *executionContext) field_Scan_tasks_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Scan_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40550,16 +40550,16 @@ func (ec *executionContext) field_Scan_viewers_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40568,7 +40568,7 @@ func (ec *executionContext) field_Scan_viewers_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Scan_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40604,16 +40604,16 @@ func (ec *executionContext) field_Scan_vulnerabilities_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40622,7 +40622,7 @@ func (ec *executionContext) field_Scan_vulnerabilities_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_ScheduledJob_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40658,16 +40658,16 @@ func (ec *executionContext) field_ScheduledJob_controls_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40676,7 +40676,7 @@ func (ec *executionContext) field_ScheduledJob_controls_args(ctx context.Context return args, nil } -func (ec *executionContext) field_ScheduledJob_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40712,16 +40712,16 @@ func (ec *executionContext) field_ScheduledJob_subcontrols_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40730,7 +40730,7 @@ func (ec *executionContext) field_ScheduledJob_subcontrols_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Standard_applicablePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Remediation_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40766,16 +40766,16 @@ func (ec *executionContext) field_Standard_applicablePlatforms_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40784,7 +40784,7 @@ func (ec *executionContext) field_Standard_applicablePlatforms_args(ctx context. return args, nil } -func (ec *executionContext) field_Standard_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40820,16 +40820,16 @@ func (ec *executionContext) field_Standard_controls_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40838,7 +40838,7 @@ func (ec *executionContext) field_Standard_controls_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Standard_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40874,16 +40874,16 @@ func (ec *executionContext) field_Standard_trustCenterCompliances_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { - return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { - return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40892,7 +40892,7 @@ func (ec *executionContext) field_Standard_trustCenterCompliances_args(ctx conte return args, nil } -func (ec *executionContext) field_Standard_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40928,16 +40928,16 @@ func (ec *executionContext) field_Standard_trustCenterDocs_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { - return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { - return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -40946,7 +40946,7 @@ func (ec *executionContext) field_Standard_trustCenterDocs_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Subcontrol_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -40982,16 +40982,16 @@ func (ec *executionContext) field_Subcontrol_actionPlans_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41000,7 +41000,7 @@ func (ec *executionContext) field_Subcontrol_actionPlans_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Subcontrol_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41036,16 +41036,16 @@ func (ec *executionContext) field_Subcontrol_assets_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41054,7 +41054,7 @@ func (ec *executionContext) field_Subcontrol_assets_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Subcontrol_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41090,16 +41090,16 @@ func (ec *executionContext) field_Subcontrol_comments_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41108,7 +41108,7 @@ func (ec *executionContext) field_Subcontrol_comments_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Subcontrol_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41144,16 +41144,16 @@ func (ec *executionContext) field_Subcontrol_controlImplementations_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { - return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41162,7 +41162,7 @@ func (ec *executionContext) field_Subcontrol_controlImplementations_args(ctx con return args, nil } -func (ec *executionContext) field_Subcontrol_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41198,16 +41198,16 @@ func (ec *executionContext) field_Subcontrol_controlObjectives_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { - return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41216,7 +41216,7 @@ func (ec *executionContext) field_Subcontrol_controlObjectives_args(ctx context. return args, nil } -func (ec *executionContext) field_Subcontrol_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41252,16 +41252,16 @@ func (ec *executionContext) field_Subcontrol_discussions_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41270,7 +41270,7 @@ func (ec *executionContext) field_Subcontrol_discussions_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Subcontrol_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41306,16 +41306,16 @@ func (ec *executionContext) field_Subcontrol_entities_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41324,7 +41324,7 @@ func (ec *executionContext) field_Subcontrol_entities_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Subcontrol_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41360,16 +41360,16 @@ func (ec *executionContext) field_Subcontrol_evidence_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41378,7 +41378,7 @@ func (ec *executionContext) field_Subcontrol_evidence_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Subcontrol_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41414,16 +41414,16 @@ func (ec *executionContext) field_Subcontrol_identityHolders_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41432,7 +41432,7 @@ func (ec *executionContext) field_Subcontrol_identityHolders_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Subcontrol_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41468,16 +41468,16 @@ func (ec *executionContext) field_Subcontrol_internalPolicies_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41486,7 +41486,7 @@ func (ec *executionContext) field_Subcontrol_internalPolicies_args(ctx context.C return args, nil } -func (ec *executionContext) field_Subcontrol_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41522,16 +41522,16 @@ func (ec *executionContext) field_Subcontrol_narratives_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { - return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41540,7 +41540,7 @@ func (ec *executionContext) field_Subcontrol_narratives_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Subcontrol_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41576,16 +41576,16 @@ func (ec *executionContext) field_Subcontrol_procedures_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41594,7 +41594,7 @@ func (ec *executionContext) field_Subcontrol_procedures_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Subcontrol_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41630,16 +41630,16 @@ func (ec *executionContext) field_Subcontrol_remediations_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41648,7 +41648,7 @@ func (ec *executionContext) field_Subcontrol_remediations_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Subcontrol_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41684,16 +41684,16 @@ func (ec *executionContext) field_Subcontrol_reviews_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41702,7 +41702,7 @@ func (ec *executionContext) field_Subcontrol_reviews_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Subcontrol_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Review_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41738,16 +41738,16 @@ func (ec *executionContext) field_Subcontrol_risks_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41756,7 +41756,7 @@ func (ec *executionContext) field_Subcontrol_risks_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Subcontrol_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41792,16 +41792,16 @@ func (ec *executionContext) field_Subcontrol_scans_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41810,7 +41810,7 @@ func (ec *executionContext) field_Subcontrol_scans_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Subcontrol_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41846,16 +41846,16 @@ func (ec *executionContext) field_Subcontrol_scheduledJobs_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { - return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { - return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41864,7 +41864,7 @@ func (ec *executionContext) field_Subcontrol_scheduledJobs_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Subcontrol_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41900,16 +41900,16 @@ func (ec *executionContext) field_Subcontrol_tasks_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41918,7 +41918,7 @@ func (ec *executionContext) field_Subcontrol_tasks_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Subcontrol_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -41954,16 +41954,16 @@ func (ec *executionContext) field_Subcontrol_workflowObjectRefs_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -41972,7 +41972,7 @@ func (ec *executionContext) field_Subcontrol_workflowObjectRefs_args(ctx context return args, nil } -func (ec *executionContext) field_Subcontrol_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42008,33 +42008,25 @@ func (ec *executionContext) field_Subcontrol_workflowTimeline_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 - arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) - }) - if err != nil { - return nil, err - } - args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_Subprocessor_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42070,16 +42062,16 @@ func (ec *executionContext) field_Subprocessor_entities_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42088,7 +42080,7 @@ func (ec *executionContext) field_Subprocessor_entities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Subprocessor_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42124,16 +42116,16 @@ func (ec *executionContext) field_Subprocessor_trustCenterSubprocessors_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { - return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { - return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42142,7 +42134,7 @@ func (ec *executionContext) field_Subprocessor_trustCenterSubprocessors_args(ctx return args, nil } -func (ec *executionContext) field_Subscriber_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42178,16 +42170,16 @@ func (ec *executionContext) field_Subscriber_events_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EventOrder, error) { - return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42196,7 +42188,7 @@ func (ec *executionContext) field_Subscriber_events_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Task_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42232,16 +42224,16 @@ func (ec *executionContext) field_Task_actionPlans_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42250,7 +42242,7 @@ func (ec *executionContext) field_Task_actionPlans_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Task_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42286,16 +42278,16 @@ func (ec *executionContext) field_Task_comments_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42304,7 +42296,7 @@ func (ec *executionContext) field_Task_comments_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Task_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42340,16 +42332,16 @@ func (ec *executionContext) field_Task_controlImplementations_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { - return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42358,7 +42350,7 @@ func (ec *executionContext) field_Task_controlImplementations_args(ctx context.C return args, nil } -func (ec *executionContext) field_Task_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42394,16 +42386,16 @@ func (ec *executionContext) field_Task_controlObjectives_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { - return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42412,7 +42404,7 @@ func (ec *executionContext) field_Task_controlObjectives_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Task_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42448,16 +42440,16 @@ func (ec *executionContext) field_Task_controls_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42466,7 +42458,7 @@ func (ec *executionContext) field_Task_controls_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Task_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42502,16 +42494,16 @@ func (ec *executionContext) field_Task_evidence_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { - return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42520,7 +42512,7 @@ func (ec *executionContext) field_Task_evidence_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Task_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42556,16 +42548,16 @@ func (ec *executionContext) field_Task_findings_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42574,7 +42566,7 @@ func (ec *executionContext) field_Task_findings_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Task_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42610,16 +42602,16 @@ func (ec *executionContext) field_Task_groups_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42628,7 +42620,7 @@ func (ec *executionContext) field_Task_groups_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Task_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42664,16 +42656,16 @@ func (ec *executionContext) field_Task_identityHolders_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42682,7 +42674,7 @@ func (ec *executionContext) field_Task_identityHolders_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Task_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Risk_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42718,16 +42710,16 @@ func (ec *executionContext) field_Task_internalPolicies_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { - return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42736,7 +42728,7 @@ func (ec *executionContext) field_Task_internalPolicies_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Task_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_SLADefinition_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42772,16 +42764,16 @@ func (ec *executionContext) field_Task_platforms_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42790,7 +42782,7 @@ func (ec *executionContext) field_Task_platforms_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Task_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_SLADefinition_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42826,16 +42818,16 @@ func (ec *executionContext) field_Task_procedures_args(ctx context.Context, rawA } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { - return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42844,7 +42836,7 @@ func (ec *executionContext) field_Task_procedures_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Task_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_SLADefinition_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42880,16 +42872,16 @@ func (ec *executionContext) field_Task_programs_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42898,7 +42890,7 @@ func (ec *executionContext) field_Task_programs_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Task_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42934,16 +42926,16 @@ func (ec *executionContext) field_Task_risks_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -42952,7 +42944,7 @@ func (ec *executionContext) field_Task_risks_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Task_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -42988,16 +42980,16 @@ func (ec *executionContext) field_Task_scans_args(ctx context.Context, rawArgs m } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43006,7 +42998,7 @@ func (ec *executionContext) field_Task_scans_args(ctx context.Context, rawArgs m return args, nil } -func (ec *executionContext) field_Task_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43042,16 +43034,16 @@ func (ec *executionContext) field_Task_subcontrols_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43060,7 +43052,7 @@ func (ec *executionContext) field_Task_subcontrols_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Task_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43096,16 +43088,16 @@ func (ec *executionContext) field_Task_vulnerabilities_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { - return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43114,7 +43106,7 @@ func (ec *executionContext) field_Task_vulnerabilities_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Task_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43150,16 +43142,16 @@ func (ec *executionContext) field_Task_workflowObjectRefs_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43168,7 +43160,7 @@ func (ec *executionContext) field_Task_workflowObjectRefs_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Template_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43204,16 +43196,16 @@ func (ec *executionContext) field_Template_assessments_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { - return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { - return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43222,7 +43214,7 @@ func (ec *executionContext) field_Template_assessments_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Template_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43258,16 +43250,16 @@ func (ec *executionContext) field_Template_campaigns_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { - return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43276,7 +43268,7 @@ func (ec *executionContext) field_Template_campaigns_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Template_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43312,16 +43304,16 @@ func (ec *executionContext) field_Template_documents_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { - return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43330,7 +43322,7 @@ func (ec *executionContext) field_Template_documents_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Template_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43366,16 +43358,16 @@ func (ec *executionContext) field_Template_files_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43384,7 +43376,7 @@ func (ec *executionContext) field_Template_files_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Template_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43420,16 +43412,16 @@ func (ec *executionContext) field_Template_identityHolders_args(ctx context.Cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43438,7 +43430,7 @@ func (ec *executionContext) field_Template_identityHolders_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_TrustCenterCompliance_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43474,70 +43466,16 @@ func (ec *executionContext) field_TrustCenterCompliance_blockedGroups_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_TrustCenterCompliance_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43546,7 +43484,7 @@ func (ec *executionContext) field_TrustCenterCompliance_editors_args(ctx context return args, nil } -func (ec *executionContext) field_TrustCenterDoc_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43582,16 +43520,16 @@ func (ec *executionContext) field_TrustCenterDoc_blockedGroups_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43600,7 +43538,7 @@ func (ec *executionContext) field_TrustCenterDoc_blockedGroups_args(ctx context. return args, nil } -func (ec *executionContext) field_TrustCenterDoc_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43654,7 +43592,7 @@ func (ec *executionContext) field_TrustCenterDoc_editors_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_TrustCenterEntity_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Scan_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43690,16 +43628,16 @@ func (ec *executionContext) field_TrustCenterEntity_blockedGroups_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43708,7 +43646,7 @@ func (ec *executionContext) field_TrustCenterEntity_blockedGroups_args(ctx conte return args, nil } -func (ec *executionContext) field_TrustCenterEntity_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ScheduledJob_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43744,16 +43682,16 @@ func (ec *executionContext) field_TrustCenterEntity_editors_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43762,7 +43700,7 @@ func (ec *executionContext) field_TrustCenterEntity_editors_args(ctx context.Con return args, nil } -func (ec *executionContext) field_TrustCenterFAQ_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ScheduledJob_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43798,16 +43736,16 @@ func (ec *executionContext) field_TrustCenterFAQ_blockedGroups_args(ctx context. } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43816,7 +43754,7 @@ func (ec *executionContext) field_TrustCenterFAQ_blockedGroups_args(ctx context. return args, nil } -func (ec *executionContext) field_TrustCenterFAQ_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Standard_applicablePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43852,16 +43790,16 @@ func (ec *executionContext) field_TrustCenterFAQ_editors_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43870,7 +43808,7 @@ func (ec *executionContext) field_TrustCenterFAQ_editors_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_TrustCenterNDARequest_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Standard_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43906,16 +43844,16 @@ func (ec *executionContext) field_TrustCenterNDARequest_blockedGroups_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43924,7 +43862,7 @@ func (ec *executionContext) field_TrustCenterNDARequest_blockedGroups_args(ctx c return args, nil } -func (ec *executionContext) field_TrustCenterNDARequest_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Standard_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -43960,16 +43898,16 @@ func (ec *executionContext) field_TrustCenterNDARequest_editors_args(ctx context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { + return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { + return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -43978,7 +43916,7 @@ func (ec *executionContext) field_TrustCenterNDARequest_editors_args(ctx context return args, nil } -func (ec *executionContext) field_TrustCenterNDARequest_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Standard_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44032,7 +43970,7 @@ func (ec *executionContext) field_TrustCenterNDARequest_trustCenterDocs_args(ctx return args, nil } -func (ec *executionContext) field_TrustCenterSetting_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44068,16 +44006,16 @@ func (ec *executionContext) field_TrustCenterSetting_blockedGroups_args(ctx cont } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44086,7 +44024,7 @@ func (ec *executionContext) field_TrustCenterSetting_blockedGroups_args(ctx cont return args, nil } -func (ec *executionContext) field_TrustCenterSetting_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44122,16 +44060,16 @@ func (ec *executionContext) field_TrustCenterSetting_editors_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44140,7 +44078,7 @@ func (ec *executionContext) field_TrustCenterSetting_editors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_TrustCenterSubprocessor_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44176,16 +44114,16 @@ func (ec *executionContext) field_TrustCenterSubprocessor_blockedGroups_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44194,7 +44132,7 @@ func (ec *executionContext) field_TrustCenterSubprocessor_blockedGroups_args(ctx return args, nil } -func (ec *executionContext) field_TrustCenterSubprocessor_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44230,16 +44168,16 @@ func (ec *executionContext) field_TrustCenterSubprocessor_editors_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44248,7 +44186,7 @@ func (ec *executionContext) field_TrustCenterSubprocessor_editors_args(ctx conte return args, nil } -func (ec *executionContext) field_TrustCenterWatermarkConfig_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44284,16 +44222,16 @@ func (ec *executionContext) field_TrustCenterWatermarkConfig_blockedGroups_args( } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44302,7 +44240,7 @@ func (ec *executionContext) field_TrustCenterWatermarkConfig_blockedGroups_args( return args, nil } -func (ec *executionContext) field_TrustCenterWatermarkConfig_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44338,16 +44276,16 @@ func (ec *executionContext) field_TrustCenterWatermarkConfig_editors_args(ctx co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44356,7 +44294,7 @@ func (ec *executionContext) field_TrustCenterWatermarkConfig_editors_args(ctx co return args, nil } -func (ec *executionContext) field_TrustCenter_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44392,16 +44330,16 @@ func (ec *executionContext) field_TrustCenter_blockedGroups_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44410,7 +44348,7 @@ func (ec *executionContext) field_TrustCenter_blockedGroups_args(ctx context.Con return args, nil } -func (ec *executionContext) field_TrustCenter_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44446,16 +44384,16 @@ func (ec *executionContext) field_TrustCenter_editors_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44464,7 +44402,7 @@ func (ec *executionContext) field_TrustCenter_editors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_TrustCenter_posts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44500,16 +44438,16 @@ func (ec *executionContext) field_TrustCenter_posts_args(ctx context.Context, ra } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44518,7 +44456,7 @@ func (ec *executionContext) field_TrustCenter_posts_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_TrustCenter_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44554,16 +44492,16 @@ func (ec *executionContext) field_TrustCenter_templates_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { - return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44572,7 +44510,7 @@ func (ec *executionContext) field_TrustCenter_templates_args(ctx context.Context return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44608,16 +44546,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterCompliances_args(ctx co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { - return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { - return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44626,7 +44564,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterCompliances_args(ctx co return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44662,16 +44600,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterDocs_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { - return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { - return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44680,7 +44618,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterDocs_args(ctx context.C return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44716,16 +44654,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterEntities_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterEntityOrder, error) { - return ec.unmarshalOTrustCenterEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterEntityWhereInput, error) { - return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44734,7 +44672,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterEntities_args(ctx conte return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterFaqs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44770,16 +44708,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterFaqs_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterFAQOrder, error) { - return ec.unmarshalOTrustCenterFAQOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterFAQWhereInput, error) { - return ec.unmarshalOTrustCenterFAQWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44788,7 +44726,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterFaqs_args(ctx context.C return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterNdaRequests_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44824,16 +44762,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterNdaRequests_args(ctx co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterNDARequestOrder, error) { - return ec.unmarshalOTrustCenterNDARequestOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterNDARequestWhereInput, error) { - return ec.unmarshalOTrustCenterNDARequestWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44842,7 +44780,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterNdaRequests_args(ctx co return args, nil } -func (ec *executionContext) field_TrustCenter_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44878,16 +44816,16 @@ func (ec *executionContext) field_TrustCenter_trustCenterSubprocessors_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { - return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { - return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44896,7 +44834,7 @@ func (ec *executionContext) field_TrustCenter_trustCenterSubprocessors_args(ctx return args, nil } -func (ec *executionContext) field_User_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_scheduledJobs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -44932,16 +44870,16 @@ func (ec *executionContext) field_User_actionPlans_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScheduledJobOrder, error) { + return ec.unmarshalOScheduledJobOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScheduledJobWhereInput, error) { + return ec.unmarshalOScheduledJobWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobWhereInput(ctx, v) }) if err != nil { return nil, err @@ -44950,7 +44888,7 @@ func (ec *executionContext) field_User_actionPlans_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_User_assigneeTasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45004,7 +44942,7 @@ func (ec *executionContext) field_User_assigneeTasks_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_User_assignerTasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45040,16 +44978,16 @@ func (ec *executionContext) field_User_assignerTasks_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45058,7 +44996,7 @@ func (ec *executionContext) field_User_assignerTasks_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_User_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subcontrol_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45094,25 +45032,33 @@ func (ec *executionContext) field_User_campaignTargets_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { - return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { - return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err } args["where"] = arg5 + arg6, err := graphql.ProcessArgField(ctx, rawArgs, "includeEmitFailures", + func(ctx context.Context, v any) (*bool, error) { + return ec.unmarshalOBoolean2ᚖbool(ctx, v) + }) + if err != nil { + return nil, err + } + args["includeEmitFailures"] = arg6 return args, nil } -func (ec *executionContext) field_User_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subprocessor_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45148,16 +45094,16 @@ func (ec *executionContext) field_User_campaigns_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { - return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45166,7 +45112,7 @@ func (ec *executionContext) field_User_campaigns_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_User_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subprocessor_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45202,16 +45148,16 @@ func (ec *executionContext) field_User_events_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EventOrder, error) { - return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { + return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { + return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45220,7 +45166,7 @@ func (ec *executionContext) field_User_events_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_User_groupMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Subscriber_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45256,16 +45202,16 @@ func (ec *executionContext) field_User_groupMemberships_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { - return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45274,7 +45220,7 @@ func (ec *executionContext) field_User_groupMemberships_args(ctx context.Context return args, nil } -func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45310,16 +45256,16 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45328,7 +45274,7 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_User_identityHolderProfiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45364,16 +45310,16 @@ func (ec *executionContext) field_User_identityHolderProfiles_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { - return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45382,7 +45328,7 @@ func (ec *executionContext) field_User_identityHolderProfiles_args(ctx context.C return args, nil } -func (ec *executionContext) field_User_orgMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45418,16 +45364,16 @@ func (ec *executionContext) field_User_orgMemberships_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { - return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45436,7 +45382,7 @@ func (ec *executionContext) field_User_orgMemberships_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_User_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45472,16 +45418,16 @@ func (ec *executionContext) field_User_organizations_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { - return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45490,7 +45436,7 @@ func (ec *executionContext) field_User_organizations_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_User_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45526,16 +45472,16 @@ func (ec *executionContext) field_User_personalAccessTokens_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { - return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45544,7 +45490,7 @@ func (ec *executionContext) field_User_personalAccessTokens_args(ctx context.Con return args, nil } -func (ec *executionContext) field_User_platformsOwned_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45580,16 +45526,16 @@ func (ec *executionContext) field_User_platformsOwned_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { - return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45598,7 +45544,7 @@ func (ec *executionContext) field_User_platformsOwned_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_User_programMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45634,16 +45580,16 @@ func (ec *executionContext) field_User_programMemberships_args(ctx context.Conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { - return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { - return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45652,7 +45598,7 @@ func (ec *executionContext) field_User_programMemberships_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_User_programsOwned_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45688,16 +45634,16 @@ func (ec *executionContext) field_User_programsOwned_args(ctx context.Context, r } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45706,7 +45652,7 @@ func (ec *executionContext) field_User_programsOwned_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_User_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45742,16 +45688,16 @@ func (ec *executionContext) field_User_programs_args(ctx context.Context, rawArg } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45760,7 +45706,7 @@ func (ec *executionContext) field_User_programs_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_User_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45796,16 +45742,16 @@ func (ec *executionContext) field_User_subcontrols_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45814,7 +45760,7 @@ func (ec *executionContext) field_User_subcontrols_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_User_tfaSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45850,16 +45796,16 @@ func (ec *executionContext) field_User_tfaSettings_args(ctx context.Context, raw } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TFASettingOrder, error) { - return ec.unmarshalOTFASettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TFASettingWhereInput, error) { - return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45868,7 +45814,7 @@ func (ec *executionContext) field_User_tfaSettings_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_User_webauthns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45904,16 +45850,16 @@ func (ec *executionContext) field_User_webauthns_args(ctx context.Context, rawAr } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) (*generated.WebauthnOrder, error) { - return ec.unmarshalOWebauthnOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnOrder(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WebauthnWhereInput, error) { - return ec.unmarshalOWebauthnWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45922,7 +45868,7 @@ func (ec *executionContext) field_User_webauthns_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_VendorScoringConfig_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -45958,16 +45904,16 @@ func (ec *executionContext) field_VendorScoringConfig_vendorRiskScores_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { - return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { - return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -45976,7 +45922,7 @@ func (ec *executionContext) field_VendorScoringConfig_vendorRiskScores_args(ctx return args, nil } -func (ec *executionContext) field_Vulnerability_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46012,16 +45958,16 @@ func (ec *executionContext) field_Vulnerability_actionPlans_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { - return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46030,7 +45976,7 @@ func (ec *executionContext) field_Vulnerability_actionPlans_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Vulnerability_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46066,16 +46012,16 @@ func (ec *executionContext) field_Vulnerability_assets_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { - return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46084,7 +46030,7 @@ func (ec *executionContext) field_Vulnerability_assets_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Vulnerability_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46120,70 +46066,16 @@ func (ec *executionContext) field_Vulnerability_blockedGroups_args(ctx context.C } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) - }) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Vulnerability_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", - func(ctx context.Context, v any) (*entgql.Cursor[string], error) { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) - }) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", - func(ctx context.Context, v any) (*int, error) { - return ec.unmarshalOInt2ᚖint(ctx, v) - }) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { - return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46192,7 +46084,7 @@ func (ec *executionContext) field_Vulnerability_comments_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Vulnerability_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46228,16 +46120,16 @@ func (ec *executionContext) field_Vulnerability_controls_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { - return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46246,7 +46138,7 @@ func (ec *executionContext) field_Vulnerability_controls_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Vulnerability_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Task_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46282,16 +46174,16 @@ func (ec *executionContext) field_Vulnerability_editors_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { - return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46300,7 +46192,7 @@ func (ec *executionContext) field_Vulnerability_editors_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Vulnerability_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Template_assessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46336,16 +46228,16 @@ func (ec *executionContext) field_Vulnerability_entities_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { - return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { + return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { + return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46354,7 +46246,7 @@ func (ec *executionContext) field_Vulnerability_entities_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Vulnerability_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Template_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46390,16 +46282,16 @@ func (ec *executionContext) field_Vulnerability_files_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FileOrder, error) { - return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46408,7 +46300,7 @@ func (ec *executionContext) field_Vulnerability_files_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Vulnerability_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Template_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46444,16 +46336,16 @@ func (ec *executionContext) field_Vulnerability_findings_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { - return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { + return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46462,7 +46354,7 @@ func (ec *executionContext) field_Vulnerability_findings_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Vulnerability_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Template_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46498,16 +46390,16 @@ func (ec *executionContext) field_Vulnerability_integrations_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { - return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46516,7 +46408,7 @@ func (ec *executionContext) field_Vulnerability_integrations_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Vulnerability_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Template_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46552,16 +46444,16 @@ func (ec *executionContext) field_Vulnerability_programs_args(ctx context.Contex } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { - return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46570,7 +46462,7 @@ func (ec *executionContext) field_Vulnerability_programs_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Vulnerability_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterCompliance_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46606,16 +46498,16 @@ func (ec *executionContext) field_Vulnerability_remediations_args(ctx context.Co } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { - return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46624,7 +46516,7 @@ func (ec *executionContext) field_Vulnerability_remediations_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Vulnerability_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterCompliance_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46660,16 +46552,16 @@ func (ec *executionContext) field_Vulnerability_reviews_args(ctx context.Context } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { - return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46678,7 +46570,7 @@ func (ec *executionContext) field_Vulnerability_reviews_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Vulnerability_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterDoc_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46714,16 +46606,16 @@ func (ec *executionContext) field_Vulnerability_risks_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { - return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46732,7 +46624,7 @@ func (ec *executionContext) field_Vulnerability_risks_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Vulnerability_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterDoc_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46768,16 +46660,16 @@ func (ec *executionContext) field_Vulnerability_scans_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { - return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46786,7 +46678,7 @@ func (ec *executionContext) field_Vulnerability_scans_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Vulnerability_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterEntity_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46822,16 +46714,16 @@ func (ec *executionContext) field_Vulnerability_subcontrols_args(ctx context.Con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { - return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46840,7 +46732,7 @@ func (ec *executionContext) field_Vulnerability_subcontrols_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Vulnerability_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterEntity_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46876,16 +46768,16 @@ func (ec *executionContext) field_Vulnerability_tasks_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { - return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -46894,7 +46786,7 @@ func (ec *executionContext) field_Vulnerability_tasks_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Vulnerability_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterFAQ_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46948,7 +46840,7 @@ func (ec *executionContext) field_Vulnerability_viewers_args(ctx context.Context return args, nil } -func (ec *executionContext) field_WorkflowAssignment_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterFAQ_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -46984,16 +46876,16 @@ func (ec *executionContext) field_WorkflowAssignment_workflowAssignmentTargets_a } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { - return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47002,7 +46894,7 @@ func (ec *executionContext) field_WorkflowAssignment_workflowAssignmentTargets_a return args, nil } -func (ec *executionContext) field_WorkflowDefinition_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterNDARequest_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47056,7 +46948,7 @@ func (ec *executionContext) field_WorkflowDefinition_blockedGroups_args(ctx cont return args, nil } -func (ec *executionContext) field_WorkflowDefinition_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterNDARequest_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47110,7 +47002,7 @@ func (ec *executionContext) field_WorkflowDefinition_editors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_WorkflowDefinition_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterNDARequest_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47146,16 +47038,16 @@ func (ec *executionContext) field_WorkflowDefinition_emailTemplates_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { - return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { + return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { - return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { + return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47164,7 +47056,7 @@ func (ec *executionContext) field_WorkflowDefinition_emailTemplates_args(ctx con return args, nil } -func (ec *executionContext) field_WorkflowDefinition_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterSetting_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47218,7 +47110,7 @@ func (ec *executionContext) field_WorkflowDefinition_groups_args(ctx context.Con return args, nil } -func (ec *executionContext) field_WorkflowDefinition_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterSetting_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47254,16 +47146,16 @@ func (ec *executionContext) field_WorkflowDefinition_notificationTemplates_args( } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { - return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { - return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47272,7 +47164,7 @@ func (ec *executionContext) field_WorkflowDefinition_notificationTemplates_args( return args, nil } -func (ec *executionContext) field_WorkflowDefinition_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterSubprocessor_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47308,16 +47200,16 @@ func (ec *executionContext) field_WorkflowDefinition_tagDefinitions_args(ctx con } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { - return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { - return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47326,7 +47218,7 @@ func (ec *executionContext) field_WorkflowDefinition_tagDefinitions_args(ctx con return args, nil } -func (ec *executionContext) field_WorkflowDefinition_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterSubprocessor_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47380,7 +47272,7 @@ func (ec *executionContext) field_WorkflowDefinition_viewers_args(ctx context.Co return args, nil } -func (ec *executionContext) field_WorkflowInstance_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterWatermarkConfig_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47416,16 +47308,16 @@ func (ec *executionContext) field_WorkflowInstance_emailTemplates_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { - return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { - return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47434,7 +47326,7 @@ func (ec *executionContext) field_WorkflowInstance_emailTemplates_args(ctx conte return args, nil } -func (ec *executionContext) field_WorkflowInstance_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenterWatermarkConfig_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47470,16 +47362,16 @@ func (ec *executionContext) field_WorkflowInstance_workflowAssignments_args(ctx } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { - return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47488,7 +47380,7 @@ func (ec *executionContext) field_WorkflowInstance_workflowAssignments_args(ctx return args, nil } -func (ec *executionContext) field_WorkflowInstance_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenter_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47524,16 +47416,16 @@ func (ec *executionContext) field_WorkflowInstance_workflowEvents_args(ctx conte } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { - return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47542,7 +47434,7 @@ func (ec *executionContext) field_WorkflowInstance_workflowEvents_args(ctx conte return args, nil } -func (ec *executionContext) field_WorkflowInstance_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_TrustCenter_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -47578,16 +47470,16 @@ func (ec *executionContext) field_WorkflowInstance_workflowObjectRefs_args(ctx c } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { - return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) }) if err != nil { return nil, err } args["orderBy"] = arg4 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", - func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -47596,1207 +47488,3291 @@ func (ec *executionContext) field_WorkflowInstance_workflowObjectRefs_args(ctx c return args, 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_id(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_updatedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_TrustCenter_posts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_TrustCenter_templates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TemplateOrder, error) { + return ec.unmarshalOTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TemplateWhereInput, error) { + return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_updatedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterCompliances_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterComplianceOrder, error) { + return ec.unmarshalOTrustCenterComplianceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterComplianceWhereInput, error) { + return ec.unmarshalOTrustCenterComplianceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterDocs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterDocOrder, error) { + return ec.unmarshalOTrustCenterDocOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterDocWhereInput, error) { + return ec.unmarshalOTrustCenterDocWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_ownerID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.OwnerID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterEntityOrder, error) { + return ec.unmarshalOTrustCenterEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterEntityWhereInput, error) { + return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_name(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterFaqs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterFAQOrder, error) { + return ec.unmarshalOTrustCenterFAQOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterFAQWhereInput, error) { + return ec.unmarshalOTrustCenterFAQWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_token(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Token, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterNdaRequests_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterNDARequestOrder, error) { + return ec.unmarshalOTrustCenterNDARequestOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterNDARequestWhereInput, error) { + return ec.unmarshalOTrustCenterNDARequestWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_expiresAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_TrustCenter_trustCenterSubprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TrustCenterSubprocessorOrder, error) { + return ec.unmarshalOTrustCenterSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TrustCenterSubprocessorWhereInput, error) { + return ec.unmarshalOTrustCenterSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_description(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_scopes(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Scopes, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_assigneeTasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LastUsedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_User_assignerTasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_isActive(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IsActive, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) field_User_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_revokedReason(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_revokedReason(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RevokedReason, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_revokedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_revokedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_revokedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RevokedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_revokedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _APIToken_revokedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_revokedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RevokedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_revokedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _APIToken_ssoAuthorizations(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_ssoAuthorizations(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.SSOAuthorizations, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v models.SSOAuthorizationMap) graphql.Marshaler { - return ec.marshalOSSOAuthorizationMap2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐSSOAuthorizationMap(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_APIToken_ssoAuthorizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type SSOAuthorizationMap does not have child fields")) +func (ec *executionContext) field_User_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APIToken_owner(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Owner(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) - }, - true, - false, - ) -} -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) { - return ec.childFields_Organization(ctx, field) - }, +func (ec *executionContext) field_User_groupMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err } - return fc, nil + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { + return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APITokenConnection_edges(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.APITokenEdge) graphql.Marshaler { - return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, selections, v) - }, - true, - false, - ) -} -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) { - return ec.childFields_APITokenEdge(ctx, field) - }, +func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err } - return fc, nil + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) - }, - true, - true, - ) -} -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) { - return ec.childFields_PageInfo(ctx, field) - }, +func (ec *executionContext) field_User_identityHolderProfiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err } - return fc, nil + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APITokenConnection_totalCount(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TotalCount, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APITokenConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) field_User_orgMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APITokenEdge_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { - return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, selections, v) - }, - true, - false, - ) -} -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) { - return ec.childFields_APIToken(ctx, field) - }, +func (ec *executionContext) field_User_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err } - return fc, nil + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_APITokenEdge_cursor(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("APITokenEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) field_User_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { + return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_id(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) field_User_platformsOwned_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_User_programMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ProgramMembershipOrder, error) { + return ec.unmarshalOProgramMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ProgramMembershipWhereInput, error) { + return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_User_programsOwned_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_tfaSettings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TFASettingOrder, error) { + return ec.unmarshalOTFASettingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TFASettingWhereInput, error) { + return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_revision(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_revision(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Revision, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_User_webauthns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) (*generated.WebauthnOrder, error) { + return ec.unmarshalOWebauthnOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnOrder(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WebauthnWhereInput, error) { + return ec.unmarshalOWebauthnWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_name(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_VendorScoringConfig_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { + return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { + return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOActionPlanDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanDocumentStatus does not have child fields")) +func (ec *executionContext) field_Vulnerability_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_managementMode(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_managementMode(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ManagementMode, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { - return ec.marshalOActionPlanDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanDocumentManagementMode does not have child fields")) +func (ec *executionContext) field_Vulnerability_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_details(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Details, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_Vulnerability_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_detailsJSON(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) field_Vulnerability_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_approvalRequired(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ApprovalRequired, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) field_Vulnerability_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_reviewDue(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_reviewDue(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ReviewDue, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) field_Vulnerability_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_reviewFrequency(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOActionPlanFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanFrequency does not have child fields")) +func (ec *executionContext) field_Vulnerability_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_approverID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_approverID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ApproverID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) field_Vulnerability_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_delegateID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DelegateID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) field_Vulnerability_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_summary(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_summary(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Summary, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_Vulnerability_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_tagSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TagSuggestions, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_Vulnerability_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_dismissedTagSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DismissedTagSuggestions, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ActionPlan_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) field_Vulnerability_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil } -func (ec *executionContext) _ActionPlan_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_controlSuggestions(ctx, field) +func (ec *executionContext) field_Vulnerability_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Vulnerability_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Vulnerability_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Vulnerability_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Vulnerability_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Vulnerability_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowAssignment_workflowAssignmentTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { + return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { + return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { + return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { + return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { + return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_tagDefinitions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { + return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { + return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowDefinition_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowInstance_emailTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { + return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { + return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowInstance_workflowAssignments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { + return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowInstance_workflowEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_WorkflowInstance_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { + var err error + args := map[string]any{} + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", + func(ctx context.Context, v any) (*entgql.Cursor[string], error) { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, v) + }) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", + func(ctx context.Context, v any) (*int, error) { + return ec.unmarshalOInt2ᚖint(ctx, v) + }) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, 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) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_APIToken_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlSuggestions, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlan_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_dismissedControlSuggestions(ctx, field) + return ec.fieldContext_APIToken_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedControlSuggestions, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_improvementSuggestions(ctx, field) + return ec.fieldContext_APIToken_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImprovementSuggestions, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_dismissedImprovementSuggestions(ctx, field) + return ec.fieldContext_APIToken_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedImprovementSuggestions, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_url(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_url(ctx, field) + return ec.fieldContext_APIToken_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URL, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_fileID(ctx, field) + return ec.fieldContext_APIToken_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_ownerID(ctx, field) + return ec.fieldContext_APIToken_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -48809,263 +50785,227 @@ func (ec *executionContext) _ActionPlan_ownerID(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_ActionPlan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlan_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_systemOwned(ctx, field) + return ec.fieldContext_APIToken_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_internalNotes(ctx, field) + return ec.fieldContext_APIToken_token(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Token, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_systemInternalID(ctx, field) + return ec.fieldContext_APIToken_expiresAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.ExpiresAt, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_actionPlanKindName(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_actionPlanKindName(ctx, field) + return ec.fieldContext_APIToken_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlanKindName, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_actionPlanKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_actionPlanKindID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_actionPlanKindID(ctx, field) + return ec.fieldContext_APIToken_scopes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlanKindID, nil + return obj.Scopes, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_actionPlanKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_workflowEligibleMarker(ctx, field) + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.LastUsedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_title(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_title(ctx, field) + return ec.fieldContext_APIToken_isActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + return obj.IsActive, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ActionPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_revokedReason(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_description(ctx, field) + return ec.fieldContext_APIToken_revokedReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.RevokedReason, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_revokedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_revokedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_dueDate(ctx, field) + return ec.fieldContext_APIToken_revokedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueDate, nil + return obj.RevokedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_revokedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_revokedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_completedAt(ctx, field) + return ec.fieldContext_APIToken_revokedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.RevokedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { @@ -49075,1556 +51015,1196 @@ func (ec *executionContext) _ActionPlan_completedAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ActionPlan_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_revokedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_ssoAuthorizations(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_priority(ctx, field) + return ec.fieldContext_APIToken_ssoAuthorizations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Priority, nil + return obj.SSOAuthorizations, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Priority) graphql.Marshaler { - return ec.marshalOActionPlanPriority2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPriority(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.SSOAuthorizationMap) graphql.Marshaler { + return ec.marshalOSSOAuthorizationMap2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐSSOAuthorizationMap(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanPriority does not have child fields")) +func (ec *executionContext) fieldContext_APIToken_ssoAuthorizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APIToken", field, false, false, errors.New("field of type SSOAuthorizationMap does not have child fields")) } -func (ec *executionContext) _ActionPlan_requiresApproval(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_requiresApproval(ctx, field) + return ec.fieldContext_APIToken_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RequiresApproval, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_requiresApproval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) +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) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ActionPlan_blocked(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_blocked(ctx, field) + return ec.fieldContext_APITokenConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Blocked, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.APITokenEdge) graphql.Marshaler { + return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_blocked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) +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) { + return ec.childFields_APITokenEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ActionPlan_blockerReason(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_blockerReason(ctx, field) + return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BlockerReason, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_blockerReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +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) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ActionPlan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_metadata(ctx, field) + return ec.fieldContext_APITokenConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APITokenConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ActionPlan_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_rawPayload(ctx, field) + return ec.fieldContext_APITokenEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawPayload, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { + return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Map does not have child fields")) +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) { + return ec.childFields_APIToken(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ActionPlan_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_source(ctx, field) + return ec.fieldContext_APITokenEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("APITokenEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ActionPlan_approver(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_approver(ctx, field) + return ec.fieldContext_ActionPlan_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Approver(ctx) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ActionPlan_approver(_ 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) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlan_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_delegate(ctx, field) + return ec.fieldContext_ActionPlan_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Delegate(ctx) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_delegate(_ 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) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_owner(ctx, field) + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_owner(_ 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) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_blockedGroups(ctx, field) + return ec.fieldContext_ActionPlan_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_blockedGroups(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_editors(ctx, field) + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_editors(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_viewers(ctx, field) + return ec.fieldContext_ActionPlan_tags(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_viewers(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_actionPlanKind(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_revision(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_actionPlanKind(ctx, field) + return ec.fieldContext_ActionPlan_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlanKind(ctx) + return obj.Revision, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_actionPlanKind(_ 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) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_risks(ctx, field) + return ec.fieldContext_ActionPlan_name(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ActionPlan_risks(ctx 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) { - return ec.childFields_RiskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_controls(ctx, field) + return ec.fieldContext_ActionPlan_status(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { + return ec.marshalOActionPlanDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_controls(ctx 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) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanDocumentStatus does not have child fields")) } -func (ec *executionContext) _ActionPlan_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_managementMode(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_programs(ctx, field) + return ec.fieldContext_ActionPlan_managementMode(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.ManagementMode, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { + return ec.marshalOActionPlanDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_programs(ctx 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) { - return ec.childFields_ProgramConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanDocumentManagementMode does not have child fields")) } -func (ec *executionContext) _ActionPlan_findings(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_findings(ctx, field) + return ec.fieldContext_ActionPlan_details(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return obj.Details, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_findings(ctx 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) { - return ec.childFields_FindingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_vulnerabilities(ctx, field) + return ec.fieldContext_ActionPlan_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_vulnerabilities(ctx 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) { - return ec.childFields_VulnerabilityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _ActionPlan_scans(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_scans(ctx, field) + return ec.fieldContext_ActionPlan_approvalRequired(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.ApprovalRequired, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_scans(ctx 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) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ActionPlan_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_reviewDue(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_reviews(ctx, field) + return ec.fieldContext_ActionPlan_reviewDue(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.ReviewDue, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_reviews(ctx 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) { - return ec.childFields_ReviewConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ActionPlan_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_remediations(ctx, field) + return ec.fieldContext_ActionPlan_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.ReviewFrequency, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { + return ec.marshalOActionPlanFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_remediations(ctx 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) { - return ec.childFields_RemediationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanFrequency does not have child fields")) } -func (ec *executionContext) _ActionPlan_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_approverID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_tasks(ctx, field) + return ec.fieldContext_ActionPlan_approverID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.ApproverID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_tasks(ctx 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) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlan_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_integrations(ctx, field) + return ec.fieldContext_ActionPlan_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.DelegateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_integrations(ctx 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) { - return ec.childFields_IntegrationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlan_file(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_summary(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_file(ctx, field) + return ec.fieldContext_ActionPlan_summary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.File(ctx) + return obj.Summary, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ActionPlan_file(_ 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) { - return ec.childFields_File(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_workflowObjectRefs(ctx, field) + return ec.fieldContext_ActionPlan_tagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.TagSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_workflowObjectRefs(ctx 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) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_hasPendingWorkflow(ctx, field) + return ec.fieldContext_ActionPlan_dismissedTagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.ActionPlan().HasPendingWorkflow(ctx, obj) + return obj.DismissedTagSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_hasWorkflowHistory(ctx, field) + return ec.fieldContext_ActionPlan_controlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.ActionPlan().HasWorkflowHistory(ctx, obj) + return obj.ControlSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlan", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_activeWorkflowInstances(ctx, field) + return ec.fieldContext_ActionPlan_dismissedControlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.ActionPlan().ActiveWorkflowInstances(ctx, obj) + return obj.DismissedControlSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlan_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlan_workflowTimeline(ctx, field) + return ec.fieldContext_ActionPlan_improvementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ActionPlan().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + return obj.ImprovementSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlan_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ActionPlan_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlanConnection_edges(ctx, field) + return ec.fieldContext_ActionPlan_dismissedImprovementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.DismissedImprovementSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ActionPlanEdge) graphql.Marshaler { - return ec.marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -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) { - return ec.childFields_ActionPlanEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_url(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) + return ec.fieldContext_ActionPlan_url(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.URL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -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) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ActionPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) + return ec.fieldContext_ActionPlan_fileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.FileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlanConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlanEdge_node(ctx, field) + return ec.fieldContext_ActionPlan_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { - return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -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) { - return ec.childFields_ActionPlan(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ActionPlan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ActionPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ActionPlanEdge_cursor(ctx, field) + return ec.fieldContext_ActionPlan_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ActionPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ActionPlanEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Assessment_id(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_id(ctx, field) + return ec.fieldContext_ActionPlan_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Assessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_createdAt(ctx, field) + return ec.fieldContext_ActionPlan_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_actionPlanKindName(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_updatedAt(ctx, field) + return ec.fieldContext_ActionPlan_actionPlanKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ActionPlanKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_actionPlanKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_actionPlanKindID(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_createdBy(ctx, field) + return ec.fieldContext_ActionPlan_actionPlanKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.ActionPlanKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_actionPlanKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Assessment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_updatedBy(ctx, field) + return ec.fieldContext_ActionPlan_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.WorkflowEligibleMarker, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Assessment_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_title(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_tags(ctx, field) + return ec.fieldContext_ActionPlan_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Title, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Assessment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_ownerID(ctx, field) + return ec.fieldContext_ActionPlan_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_systemOwned(ctx, field) + return ec.fieldContext_ActionPlan_dueDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.DueDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Assessment_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_internalNotes(ctx, field) + return ec.fieldContext_ActionPlan_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.CompletedAt, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Assessment_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_systemInternalID(ctx, field) + return ec.fieldContext_ActionPlan_priority(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Priority, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.Priority) graphql.Marshaler { + return ec.marshalOActionPlanPriority2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPriority(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type ActionPlanPriority does not have child fields")) } -func (ec *executionContext) _Assessment_name(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_requiresApproval(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_name(ctx, field) + return ec.fieldContext_ActionPlan_requiresApproval(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.RequiresApproval, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_requiresApproval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Assessment_assessmentType(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_blocked(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_assessmentType(ctx, field) + return ec.fieldContext_ActionPlan_blocked(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentType, nil + return obj.Blocked, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentType) graphql.Marshaler { - return ec.marshalNAssessmentAssessmentType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_assessmentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type AssessmentAssessmentType does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_blocked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Assessment_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_blockerReason(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_templateID(ctx, field) + return ec.fieldContext_ActionPlan_blockerReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateID, nil + return obj.BlockerReason, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_blockerReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_jsonconfig(ctx, field) + return ec.fieldContext_ActionPlan_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Jsonconfig, nil + return obj.Metadata, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { @@ -50634,20 +52214,20 @@ func (ec *executionContext) _Assessment_jsonconfig(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_Assessment_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Assessment_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_uischema(ctx, field) + return ec.fieldContext_ActionPlan_rawPayload(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Uischema, nil + return obj.RawPayload, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { @@ -50657,40 +52237,104 @@ func (ec *executionContext) _Assessment_uischema(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Assessment_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Assessment_responseDueDuration(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_responseDueDuration(ctx, field) + return ec.fieldContext_ActionPlan_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponseDueDuration, nil + return obj.Source, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int64) graphql.Marshaler { - return ec.marshalOInt2int64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_responseDueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Assessment_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_approver(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_owner(ctx, field) + return ec.fieldContext_ActionPlan_approver(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Approver(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ActionPlan_approver(_ 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) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ActionPlan_delegate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Delegate(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ActionPlan_delegate(_ 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) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ActionPlan_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -50703,9 +52347,9 @@ func (ec *executionContext) _Assessment_owner(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Assessment_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, @@ -50716,13 +52360,13 @@ func (ec *executionContext) fieldContext_Assessment_owner(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Assessment_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_blockedGroups(ctx, field) + return ec.fieldContext_ActionPlan_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -50736,9 +52380,9 @@ func (ec *executionContext) _Assessment_blockedGroups(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_Assessment_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, @@ -50753,20 +52397,20 @@ func (ec *executionContext) fieldContext_Assessment_blockedGroups(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_editors(ctx, field) + return ec.fieldContext_ActionPlan_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -50780,9 +52424,9 @@ func (ec *executionContext) _Assessment_editors(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Assessment_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, @@ -50797,20 +52441,20 @@ func (ec *executionContext) fieldContext_Assessment_editors(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_viewers(ctx, field) + return ec.fieldContext_ActionPlan_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -50824,9 +52468,9 @@ func (ec *executionContext) _Assessment_viewers(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Assessment_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, @@ -50841,73 +52485,73 @@ func (ec *executionContext) fieldContext_Assessment_viewers(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_template(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_actionPlanKind(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_template(ctx, field) + return ec.fieldContext_ActionPlan_actionPlanKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Template(ctx) + return obj.ActionPlanKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { - return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Assessment_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_actionPlanKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Template(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Assessment_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_platforms(ctx, field) + return ec.fieldContext_ActionPlan_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -50917,41 +52561,41 @@ func (ec *executionContext) fieldContext_Assessment_platforms(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_identityHolders(ctx, field) + return ec.fieldContext_ActionPlan_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -50961,41 +52605,41 @@ func (ec *executionContext) fieldContext_Assessment_identityHolders(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_assessmentResponses(ctx, field) + return ec.fieldContext_ActionPlan_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { - return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponseConnection(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -51005,41 +52649,41 @@ func (ec *executionContext) fieldContext_Assessment_assessmentResponses(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_findings(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_campaigns(ctx, field) + return ec.fieldContext_ActionPlan_findings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Assessment_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Assessment", + Object: "ActionPlan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } defer func() { @@ -51049,510 +52693,673 @@ func (ec *executionContext) fieldContext_Assessment_campaigns(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Assessment_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ActionPlan_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Assessment_accessURL(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Assessment_accessURL(ctx, field) + return ec.fieldContext_ActionPlan_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessURL, nil + fc := graphql.GetFieldContext(ctx) + return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Assessment_accessURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _AssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentConnection_edges(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.AssessmentEdge) graphql.Marshaler { - return ec.marshalOAssessmentEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentEdge(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_AssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentConnection", + Object: "ActionPlan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentEdge(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_scans(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentConnection_pageInfo(ctx, field) + return ec.fieldContext_ActionPlan_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentConnection", + Object: "ActionPlan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_ScanConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentConnection_totalCount(ctx, field) + return ec.fieldContext_ActionPlan_reviews(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_reviews(ctx 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) { + return ec.childFields_ReviewConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _AssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentEdge_node(ctx, field) + return ec.fieldContext_ActionPlan_remediations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + fc := graphql.GetFieldContext(ctx) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { - return ec.marshalOAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentEdge", + Object: "ActionPlan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Assessment(ctx, field) + return ec.childFields_RemediationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentEdge_cursor(ctx, field) + return ec.fieldContext_ActionPlan_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_tasks(ctx 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) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_id(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_id(ctx, field) + return ec.fieldContext_ActionPlan_integrations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_integrations(ctx 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) { + return ec.childFields_IntegrationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_file(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_createdAt(ctx, field) + return ec.fieldContext_ActionPlan_file(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.File(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_file(_ 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) { + return ec.childFields_File(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_updatedAt(ctx, field) + return ec.fieldContext_ActionPlan_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_workflowObjectRefs(ctx 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) { + return ec.childFields_WorkflowObjectRefConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_createdBy(ctx, field) + return ec.fieldContext_ActionPlan_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return ec.Resolvers.ActionPlan().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_updatedBy(ctx, field) + return ec.fieldContext_ActionPlan_hasWorkflowHistory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return ec.Resolvers.ActionPlan().HasWorkflowHistory(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlan", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_ownerID(ctx, field) + return ec.fieldContext_ActionPlan_activeWorkflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return ec.Resolvers.ActionPlan().ActiveWorkflowInstances(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlan_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_assessmentID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlan_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_assessmentID(ctx, field) + return ec.fieldContext_ActionPlan_workflowTimeline(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.ActionPlan().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _AssessmentResponse_isTest(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { - return graphql.ResolveField( +func (ec *executionContext) fieldContext_ActionPlan_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowEventConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ActionPlan_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_isTest(ctx, field) + return ec.fieldContext_ActionPlanConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsTest, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ActionPlanEdge) graphql.Marshaler { + return ec.marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_isTest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Boolean does not have child fields")) +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) { + return ec.childFields_ActionPlanEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_campaignID(ctx, field) + return ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignID, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +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) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_identityHolderID(ctx, field) + return ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolderID, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlanConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_entityID(ctx, field) + return ec.fieldContext_ActionPlanEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityID, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { + return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +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) { + return ec.childFields_ActionPlan(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _AssessmentResponse_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _ActionPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_displayName(ctx, field) + return ec.fieldContext_ActionPlanEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ActionPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ActionPlanEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_email(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_id(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_email(ctx, field) + return ec.fieldContext_Assessment_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_sendAttempts(ctx, field) + return ec.fieldContext_Assessment_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SendAttempts, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailDeliveredAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailDeliveredAt(ctx, field) + return ec.fieldContext_Assessment_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailDeliveredAt, nil + return obj.UpdatedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { @@ -51562,316 +53369,352 @@ func (ec *executionContext) _AssessmentResponse_emailDeliveredAt(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailDeliveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailOpenedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailOpenedAt(ctx, field) + return ec.fieldContext_Assessment_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailOpenedAt, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailOpenedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailClickedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailClickedAt(ctx, field) + return ec.fieldContext_Assessment_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailClickedAt, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailClickedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailOpenCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailOpenCount(ctx, field) + return ec.fieldContext_Assessment_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailOpenCount, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailOpenCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailClickCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailClickCount(ctx, field) + return ec.fieldContext_Assessment_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailClickCount, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailClickCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_lastEmailEventAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_lastEmailEventAt(ctx, field) + return ec.fieldContext_Assessment_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastEmailEventAt, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_lastEmailEventAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_emailMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_emailMetadata(ctx, field) + return ec.fieldContext_Assessment_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailMetadata, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_emailMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_status(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_status(ctx, field) + return ec.fieldContext_Assessment_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentResponseStatus) graphql.Marshaler { - return ec.marshalNAssessmentResponseAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type AssessmentResponseAssessmentResponseStatus does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_assignedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_name(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_assignedAt(ctx, field) + return ec.fieldContext_Assessment_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedAt, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalNTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_assignedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_startedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_assessmentType(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_startedAt(ctx, field) + return ec.fieldContext_Assessment_assessmentType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartedAt, nil + return obj.AssessmentType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalNTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentType) graphql.Marshaler { + return ec.marshalNAssessmentAssessmentType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_assessmentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type AssessmentAssessmentType does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_completedAt(ctx, field) + return ec.fieldContext_Assessment_templateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.TemplateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_dueDate(ctx, field) + return ec.fieldContext_Assessment_jsonconfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueDate, nil + return obj.Jsonconfig, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_documentDataID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_documentDataID(ctx, field) + return ec.fieldContext_Assessment_uischema(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DocumentDataID, nil + return obj.Uischema, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_documentDataID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_isDraft(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_responseDueDuration(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_isDraft(ctx, field) + return ec.fieldContext_Assessment_responseDueDuration(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsDraft, nil + return obj.ResponseDueDuration, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int64) graphql.Marshaler { + return ec.marshalOInt2int64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_isDraft(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Assessment_responseDueDuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _AssessmentResponse_owner(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_owner(ctx, field) + return ec.fieldContext_Assessment_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -51884,9 +53727,9 @@ func (ec *executionContext) _AssessmentResponse_owner(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, @@ -51897,194 +53740,242 @@ func (ec *executionContext) fieldContext_AssessmentResponse_owner(_ context.Cont return fc, nil } -func (ec *executionContext) _AssessmentResponse_assessment(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_assessment(ctx, field) + return ec.fieldContext_Assessment_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Assessment(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { - return ec.marshalNAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_assessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Assessment(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentResponse_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_campaign(ctx, field) + return ec.fieldContext_Assessment_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Campaign(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Campaign(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentResponse_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_identityHolder(ctx, field) + return ec.fieldContext_Assessment_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolder(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { - return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolder(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentResponse_entity(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_template(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_entity(ctx, field) + return ec.fieldContext_Assessment_template(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Entity(ctx) + return obj.Template(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { + return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Entity(ctx, field) + return ec.childFields_Template(ctx, field) }, } return fc, nil } -func (ec *executionContext) _AssessmentResponse_document(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_document(ctx, field) + return ec.fieldContext_Assessment_platforms(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Document(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { - return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentData(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _AssessmentResponse_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponse_vendorRiskScores(ctx, field) + return ec.fieldContext_Assessment_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { - return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponse_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Assessment_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponse", + Object: "Assessment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScoreConnection(ctx, field) + return ec.childFields_IdentityHolderConnection(ctx, field) }, } defer func() { @@ -52094,52 +53985,163 @@ func (ec *executionContext) fieldContext_AssessmentResponse_vendorRiskScores(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_AssessmentResponse_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Assessment_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _AssessmentResponseConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Assessment_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponseConnection_edges(ctx, field) + return ec.fieldContext_Assessment_assessmentResponses(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { + return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Assessment_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Assessment", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssessmentResponseConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Assessment_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Assessment_campaigns(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Assessment_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Assessment", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Assessment_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Assessment_accessURL(ctx context.Context, field graphql.CollectedField, obj *generated.Assessment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Assessment_accessURL(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AccessURL, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Assessment_accessURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Assessment", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _AssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.AssessmentResponseEdge) graphql.Marshaler { - return ec.marshalOAssessmentResponseEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.AssessmentEdge) graphql.Marshaler { + return ec.marshalOAssessmentEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponseConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponseConnection", + Object: "AssessmentConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponseEdge(ctx, field) + return ec.childFields_AssessmentEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _AssessmentResponseConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponseConnection_pageInfo(ctx, field) + return ec.fieldContext_AssessmentConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -52152,9 +54154,9 @@ func (ec *executionContext) _AssessmentResponseConnection_pageInfo(ctx context.C true, ) } -func (ec *executionContext) fieldContext_AssessmentResponseConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponseConnection", + Object: "AssessmentConnection", Field: field, IsMethod: false, IsResolver: false, @@ -52165,13 +54167,13 @@ func (ec *executionContext) fieldContext_AssessmentResponseConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _AssessmentResponseConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponseConnection_totalCount(ctx, field) + return ec.fieldContext_AssessmentConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -52184,49 +54186,49 @@ func (ec *executionContext) _AssessmentResponseConnection_totalCount(ctx context true, ) } -func (ec *executionContext) fieldContext_AssessmentResponseConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponseConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _AssessmentResponseEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponseEdge_node(ctx, field) + return ec.fieldContext_AssessmentEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { - return ec.marshalOAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { + return ec.marshalOAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_AssessmentResponseEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AssessmentResponseEdge", + Object: "AssessmentEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponse(ctx, field) + return ec.childFields_Assessment(ctx, field) }, } return fc, nil } -func (ec *executionContext) _AssessmentResponseEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_AssessmentResponseEdge_cursor(ctx, field) + return ec.fieldContext_AssessmentEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -52239,17 +54241,17 @@ func (ec *executionContext) _AssessmentResponseEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_AssessmentResponseEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("AssessmentResponseEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Asset_id(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_id(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_id(ctx, field) + return ec.fieldContext_AssessmentResponse_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -52262,17 +54264,17 @@ func (ec *executionContext) _Asset_id(ctx context.Context, field graphql.Collect true, ) } -func (ec *executionContext) fieldContext_Asset_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_createdAt(ctx, field) + return ec.fieldContext_AssessmentResponse_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -52285,17 +54287,17 @@ func (ec *executionContext) _Asset_createdAt(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Asset_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_updatedAt(ctx, field) + return ec.fieldContext_AssessmentResponse_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -52308,17 +54310,17 @@ func (ec *executionContext) _Asset_updatedAt(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Asset_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_createdBy(ctx, field) + return ec.fieldContext_AssessmentResponse_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -52331,17 +54333,17 @@ func (ec *executionContext) _Asset_createdBy(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Asset_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Asset_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_updatedBy(ctx, field) + return ec.fieldContext_AssessmentResponse_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -52354,89 +54356,89 @@ func (ec *executionContext) _Asset_updatedBy(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Asset_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Asset_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_tags(ctx, field) + return ec.fieldContext_AssessmentResponse_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_assessmentID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_ownerID(ctx, field) + return ec.fieldContext_AssessmentResponse_assessmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.AssessmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_isTest(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_internalOwner(ctx, field) + return ec.fieldContext_AssessmentResponse_isTest(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, nil + return obj.IsTest, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_isTest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Asset_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_internalOwnerUserID(ctx, field) + return ec.fieldContext_AssessmentResponse_campaignID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, nil + return obj.CampaignID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -52446,20 +54448,20 @@ func (ec *executionContext) _Asset_internalOwnerUserID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_Asset_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_internalOwnerGroupID(ctx, field) + return ec.fieldContext_AssessmentResponse_identityHolderID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.IdentityHolderID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -52469,66 +54471,66 @@ func (ec *executionContext) _Asset_internalOwnerGroupID(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_Asset_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_assetSubtypeName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_assetSubtypeName(ctx, field) + return ec.fieldContext_AssessmentResponse_entityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssetSubtypeName, nil + return obj.EntityID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_assetSubtypeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Asset_assetSubtypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_assetSubtypeID(ctx, field) + return ec.fieldContext_AssessmentResponse_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssetSubtypeID, nil + return obj.DisplayName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_assetSubtypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Asset_assetDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_email(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_assetDataClassificationName(ctx, field) + return ec.fieldContext_AssessmentResponse_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssetDataClassificationName, nil + return obj.Email, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -52538,273 +54540,1295 @@ func (ec *executionContext) _Asset_assetDataClassificationName(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_Asset_assetDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Asset_assetDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_assetDataClassificationID(ctx, field) + return ec.fieldContext_AssessmentResponse_sendAttempts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssetDataClassificationID, nil + return obj.SendAttempts, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_assetDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Asset_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailDeliveredAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_environmentName(ctx, field) + return ec.fieldContext_AssessmentResponse_emailDeliveredAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.EmailDeliveredAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailDeliveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailOpenedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_environmentID(ctx, field) + return ec.fieldContext_AssessmentResponse_emailOpenedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.EmailOpenedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailOpenedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailClickedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_scopeName(ctx, field) + return ec.fieldContext_AssessmentResponse_emailClickedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.EmailClickedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailClickedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailOpenCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_scopeID(ctx, field) + return ec.fieldContext_AssessmentResponse_emailOpenCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.EmailOpenCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailOpenCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Asset_accessModelName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailClickCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_accessModelName(ctx, field) + return ec.fieldContext_AssessmentResponse_emailClickCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelName, nil + return obj.EmailClickCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailClickCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Asset_accessModelID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_lastEmailEventAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_accessModelID(ctx, field) + return ec.fieldContext_AssessmentResponse_lastEmailEventAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelID, nil + return obj.LastEmailEventAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_lastEmailEventAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_emailMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_encryptionStatusName(ctx, field) + return ec.fieldContext_AssessmentResponse_emailMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusName, nil + return obj.EmailMetadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Asset_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_emailMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Asset_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_status(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_encryptionStatusID(ctx, field) + return ec.fieldContext_AssessmentResponse_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusID, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentResponseStatus) graphql.Marshaler { + return ec.marshalNAssessmentResponseAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type AssessmentResponseAssessmentResponseStatus does not have child fields")) } -func (ec *executionContext) _Asset_securityTierName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_assignedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_securityTierName(ctx, field) + return ec.fieldContext_AssessmentResponse_assignedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierName, nil + return obj.AssignedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_assignedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_securityTierID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_startedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_securityTierID(ctx, field) + return ec.fieldContext_AssessmentResponse_startedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierID, nil + return obj.StartedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Asset_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AssessmentResponse_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Asset_criticalityName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { +func (ec *executionContext) _AssessmentResponse_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Asset_criticalityName(ctx, field) + return ec.fieldContext_AssessmentResponse_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CriticalityName, nil + return obj.CompletedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _AssessmentResponse_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_dueDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DueDate, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _AssessmentResponse_documentDataID(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_documentDataID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DocumentDataID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_documentDataID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AssessmentResponse_isDraft(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_isDraft(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IsDraft, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_isDraft(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponse", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _AssessmentResponse_owner(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_assessment(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_assessment(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Assessment(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { + return ec.marshalNAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_assessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Assessment(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_campaign(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Campaign(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Campaign(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_identityHolder(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IdentityHolder(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { + return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolder(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_entity(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_entity(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Entity(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Entity(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_document(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_document(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Document(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { + return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DocumentData(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponse_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponse) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponse_vendorRiskScores(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { + return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponse_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponse", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorRiskScoreConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_AssessmentResponse_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponseConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponseConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.AssessmentResponseEdge) graphql.Marshaler { + return ec.marshalOAssessmentResponseEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponseConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponseConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssessmentResponseEdge(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponseConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponseConnection_pageInfo(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PageInfo, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponseConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponseConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponseConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponseConnection_totalCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TotalCount, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponseConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponseConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _AssessmentResponseEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponseEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { + return ec.marshalOAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponseEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AssessmentResponseEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssessmentResponse(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AssessmentResponseEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AssessmentResponseEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AssessmentResponseEdge_cursor(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Cursor, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AssessmentResponseEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AssessmentResponseEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _Asset_id(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_id(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Asset_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_createdAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _Asset_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _Asset_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_createdBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_updatedBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_ownerID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OwnerID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_internalOwner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.InternalOwner, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_internalOwnerUserID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.InternalOwnerUserID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_internalOwnerGroupID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.InternalOwnerGroupID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_assetSubtypeName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_assetSubtypeName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AssetSubtypeName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_assetSubtypeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_assetSubtypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_assetSubtypeID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AssetSubtypeID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_assetSubtypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_assetDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_assetDataClassificationName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AssetDataClassificationName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_assetDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_assetDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_assetDataClassificationID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AssetDataClassificationID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_assetDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_environmentName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EnvironmentName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_environmentID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EnvironmentID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_scopeName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ScopeName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_scopeID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ScopeID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_accessModelName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_accessModelName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AccessModelName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_accessModelID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_accessModelID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AccessModelID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_encryptionStatusName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EncryptionStatusName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_encryptionStatusID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EncryptionStatusID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_securityTierName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_securityTierName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SecurityTierName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Asset_securityTierID(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_securityTierID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SecurityTierID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Asset_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Asset", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Asset_criticalityName(ctx context.Context, field graphql.CollectedField, obj *generated.Asset) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Asset_criticalityName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CriticalityName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -105666,17 +108690,17 @@ func (ec *executionContext) fieldContext_Organization_stripeCustomerID(_ context return graphql.NewScalarFieldContext("Organization", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Organization_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_actionPlanCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controlCreators(ctx, field) + return ec.fieldContext_Organization_actionPlanCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ControlCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ActionPlanCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105686,7 +108710,7 @@ func (ec *executionContext) _Organization_controlCreators(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_Organization_controlCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_actionPlanCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105703,24 +108727,24 @@ func (ec *executionContext) fieldContext_Organization_controlCreators(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controlCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_actionPlanCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_controlImplementationCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_apiTokenCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controlImplementationCreators(ctx, field) + return ec.fieldContext_Organization_apiTokenCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ControlImplementationCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.APITokenCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105730,7 +108754,7 @@ func (ec *executionContext) _Organization_controlImplementationCreators(ctx cont true, ) } -func (ec *executionContext) fieldContext_Organization_controlImplementationCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_apiTokenCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105747,24 +108771,24 @@ func (ec *executionContext) fieldContext_Organization_controlImplementationCreat } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controlImplementationCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_apiTokenCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_assessmentCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + return ec.fieldContext_Organization_assessmentCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ControlObjectiveCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.AssessmentCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105774,7 +108798,7 @@ func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.C true, ) } -func (ec *executionContext) fieldContext_Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_assessmentCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105791,24 +108815,24 @@ func (ec *executionContext) fieldContext_Organization_controlObjectiveCreators(c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controlObjectiveCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_assessmentCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_evidenceCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_assetCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_evidenceCreators(ctx, field) + return ec.fieldContext_Organization_assetCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.EvidenceCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.AssetCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105818,7 +108842,7 @@ func (ec *executionContext) _Organization_evidenceCreators(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_Organization_evidenceCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_assetCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105835,24 +108859,24 @@ func (ec *executionContext) fieldContext_Organization_evidenceCreators(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_evidenceCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_assetCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_assetCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_campaignCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_assetCreators(ctx, field) + return ec.fieldContext_Organization_campaignCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.AssetCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.CampaignCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105862,7 +108886,7 @@ func (ec *executionContext) _Organization_assetCreators(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_Organization_assetCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_campaignCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105879,24 +108903,24 @@ func (ec *executionContext) fieldContext_Organization_assetCreators(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_assetCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_campaignCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_findingCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_campaignTargetCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_findingCreators(ctx, field) + return ec.fieldContext_Organization_campaignTargetCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.FindingCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.CampaignTargetCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105906,7 +108930,7 @@ func (ec *executionContext) _Organization_findingCreators(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_Organization_findingCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_campaignTargetCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105923,24 +108947,24 @@ func (ec *executionContext) fieldContext_Organization_findingCreators(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_findingCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_campaignTargetCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_vulnerabilityCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_checkResultCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_vulnerabilityCreators(ctx, field) + return ec.fieldContext_Organization_checkResultCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.VulnerabilityCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.CheckResultCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105950,7 +108974,7 @@ func (ec *executionContext) _Organization_vulnerabilityCreators(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_Organization_vulnerabilityCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_checkResultCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -105967,24 +108991,24 @@ func (ec *executionContext) fieldContext_Organization_vulnerabilityCreators(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_vulnerabilityCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_checkResultCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_contactCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_groupCreators(ctx, field) + return ec.fieldContext_Organization_contactCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.GroupCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ContactCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -105994,7 +109018,7 @@ func (ec *executionContext) _Organization_groupCreators(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_Organization_groupCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_contactCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106011,24 +109035,24 @@ func (ec *executionContext) fieldContext_Organization_groupCreators(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_groupCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_contactCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + return ec.fieldContext_Organization_controlCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicyCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ControlCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106038,7 +109062,7 @@ func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_Organization_internalPolicyCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106055,24 +109079,24 @@ func (ec *executionContext) fieldContext_Organization_internalPolicyCreators(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_internalPolicyCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_controlCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_mappedControlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controlImplementationCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_mappedControlCreators(ctx, field) + return ec.fieldContext_Organization_controlImplementationCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.MappedControlCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ControlImplementationCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106082,7 +109106,7 @@ func (ec *executionContext) _Organization_mappedControlCreators(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_Organization_mappedControlCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlImplementationCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106099,24 +109123,24 @@ func (ec *executionContext) fieldContext_Organization_mappedControlCreators(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_mappedControlCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_controlImplementationCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_narrativeCreators(ctx, field) + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.NarrativeCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ControlObjectiveCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106126,7 +109150,7 @@ func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_Organization_narrativeCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106143,24 +109167,24 @@ func (ec *executionContext) fieldContext_Organization_narrativeCreators(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_narrativeCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_controlObjectiveCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_customTypeEnumCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_procedureCreators(ctx, field) + return ec.fieldContext_Organization_customTypeEnumCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ProcedureCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.CustomTypeEnumCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106170,7 +109194,7 @@ func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_Organization_procedureCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_customTypeEnumCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106187,24 +109211,24 @@ func (ec *executionContext) fieldContext_Organization_procedureCreators(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_procedureCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_customTypeEnumCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_discussionCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_programCreators(ctx, field) + return ec.fieldContext_Organization_discussionCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ProgramCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.DiscussionCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106214,7 +109238,7 @@ func (ec *executionContext) _Organization_programCreators(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_Organization_programCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_discussionCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106231,24 +109255,24 @@ func (ec *executionContext) fieldContext_Organization_programCreators(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_programCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_discussionCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_emailTemplateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_riskCreators(ctx, field) + return ec.fieldContext_Organization_emailTemplateCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.RiskCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.EmailTemplateCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106258,7 +109282,7 @@ func (ec *executionContext) _Organization_riskCreators(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_Organization_riskCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_emailTemplateCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106275,24 +109299,24 @@ func (ec *executionContext) fieldContext_Organization_riskCreators(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_riskCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_emailTemplateCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_identityHolderCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_entityCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_identityHolderCreators(ctx, field) + return ec.fieldContext_Organization_entityCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolderCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.EntityCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106302,7 +109326,7 @@ func (ec *executionContext) _Organization_identityHolderCreators(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_Organization_identityHolderCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entityCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106319,24 +109343,24 @@ func (ec *executionContext) fieldContext_Organization_identityHolderCreators(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_identityHolderCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_entityCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_scheduledJobCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_entityTypeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_scheduledJobCreators(ctx, field) + return ec.fieldContext_Organization_entityTypeCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ScheduledJobCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.EntityTypeCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106346,7 +109370,7 @@ func (ec *executionContext) _Organization_scheduledJobCreators(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_Organization_scheduledJobCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entityTypeCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106363,24 +109387,24 @@ func (ec *executionContext) fieldContext_Organization_scheduledJobCreators(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_scheduledJobCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_entityTypeCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_standardCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_evidenceCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_standardCreators(ctx, field) + return ec.fieldContext_Organization_evidenceCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.StandardCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.EvidenceCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106390,7 +109414,7 @@ func (ec *executionContext) _Organization_standardCreators(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_Organization_standardCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_evidenceCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106407,24 +109431,24 @@ func (ec *executionContext) fieldContext_Organization_standardCreators(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_standardCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_evidenceCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_exportCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_templateCreators(ctx, field) + return ec.fieldContext_Organization_exportCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TemplateCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ExportCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106434,7 +109458,7 @@ func (ec *executionContext) _Organization_templateCreators(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_Organization_templateCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_exportCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106451,24 +109475,24 @@ func (ec *executionContext) fieldContext_Organization_templateCreators(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_templateCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_exportCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_subprocessorCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_fileCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_subprocessorCreators(ctx, field) + return ec.fieldContext_Organization_fileCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.SubprocessorCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.FileCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106478,7 +109502,7 @@ func (ec *executionContext) _Organization_subprocessorCreators(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_Organization_subprocessorCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_fileCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106495,24 +109519,24 @@ func (ec *executionContext) fieldContext_Organization_subprocessorCreators(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_subprocessorCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_fileCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_trustCenterDocCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_findingCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_trustCenterDocCreators(ctx, field) + return ec.fieldContext_Organization_findingCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterDocCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.FindingCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106522,7 +109546,7 @@ func (ec *executionContext) _Organization_trustCenterDocCreators(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_Organization_trustCenterDocCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_findingCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106539,24 +109563,24 @@ func (ec *executionContext) fieldContext_Organization_trustCenterDocCreators(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_trustCenterDocCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_findingCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_trustCenterSubprocessorCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_trustCenterSubprocessorCreators(ctx, field) + return ec.fieldContext_Organization_groupCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterSubprocessorCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.GroupCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106566,7 +109590,7 @@ func (ec *executionContext) _Organization_trustCenterSubprocessorCreators(ctx co true, ) } -func (ec *executionContext) fieldContext_Organization_trustCenterSubprocessorCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groupCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106583,24 +109607,24 @@ func (ec *executionContext) fieldContext_Organization_trustCenterSubprocessorCre } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_trustCenterSubprocessorCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_groupCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_actionPlanCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_identityHolderCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_actionPlanCreators(ctx, field) + return ec.fieldContext_Organization_identityHolderCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ActionPlanCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.IdentityHolderCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -106610,7 +109634,7 @@ func (ec *executionContext) _Organization_actionPlanCreators(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_Organization_actionPlanCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_identityHolderCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -106627,73 +109651,85 @@ func (ec *executionContext) fieldContext_Organization_actionPlanCreators(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_actionPlanCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_identityHolderCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_integrationCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_parent(ctx, field) + return ec.fieldContext_Organization_integrationCreators(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Parent(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.IntegrationCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Organization_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_integrationCreators(ctx 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) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_integrationCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_integrationWebhookCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_children(ctx, field) + return ec.fieldContext_Organization_integrationWebhookCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(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)) + return obj.IntegrationWebhookCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_children(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_integrationWebhookCreators(ctx 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) { - return ec.childFields_OrganizationConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106703,73 +109739,85 @@ func (ec *executionContext) fieldContext_Organization_children(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_integrationWebhookCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_setting(ctx, field) + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Setting(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.InternalPolicyCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Organization_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_internalPolicyCreators(ctx 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) { - return ec.childFields_OrganizationSetting(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_internalPolicyCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunnerCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + return ec.fieldContext_Organization_jobRunnerCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) + return obj.JobRunnerCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { - return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_jobRunnerCreators(ctx 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) { - return ec.childFields_PersonalAccessTokenConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106779,41 +109827,41 @@ func (ec *executionContext) fieldContext_Organization_personalAccessTokens(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_jobRunnerCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunnerRegistrationTokenCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_apiTokens(ctx, field) + return ec.fieldContext_Organization_jobRunnerRegistrationTokenCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.APITokens(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.APITokenOrder), fc.Args["where"].(*generated.APITokenWhereInput)) + return obj.JobRunnerRegistrationTokenCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { - return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_jobRunnerRegistrationTokenCreators(ctx 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) { - return ec.childFields_APITokenConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106823,41 +109871,41 @@ func (ec *executionContext) fieldContext_Organization_apiTokens(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_jobRunnerRegistrationTokenCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunnerTokenCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_emailTemplates(ctx, field) + return ec.fieldContext_Organization_jobRunnerTokenCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) + return obj.JobRunnerTokenCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { - return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_jobRunnerTokenCreators(ctx 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) { - return ec.childFields_EmailTemplateConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106867,41 +109915,41 @@ func (ec *executionContext) fieldContext_Organization_emailTemplates(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_jobRunnerTokenCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_notificationPreferences(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobTemplateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_notificationPreferences(ctx, field) + return ec.fieldContext_Organization_jobTemplateCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.NotificationPreferences(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.NotificationPreferenceOrder), fc.Args["where"].(*generated.NotificationPreferenceWhereInput)) + return obj.JobTemplateCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreferenceConnection) graphql.Marshaler { - return ec.marshalNNotificationPreferenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_notificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_jobTemplateCreators(ctx 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) { - return ec.childFields_NotificationPreferenceConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106911,41 +109959,41 @@ func (ec *executionContext) fieldContext_Organization_notificationPreferences(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_notificationPreferences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_jobTemplateCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_notificationTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_mappedControlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_notificationTemplates(ctx, field) + return ec.fieldContext_Organization_mappedControlCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) + return obj.MappedControlCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { - return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_notificationTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_mappedControlCreators(ctx 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) { - return ec.childFields_NotificationTemplateConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106955,41 +110003,41 @@ func (ec *executionContext) fieldContext_Organization_notificationTemplates(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_mappedControlCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_users(ctx, field) + return ec.fieldContext_Organization_narrativeCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) + return obj.NarrativeCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_narrativeCreators(ctx 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) { - return ec.childFields_UserConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -106999,41 +110047,41 @@ func (ec *executionContext) fieldContext_Organization_users(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_narrativeCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_noteCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_files(ctx, field) + return ec.fieldContext_Organization_noteCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.NoteCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_noteCreators(ctx 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) { - return ec.childFields_FileConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107043,41 +110091,41 @@ func (ec *executionContext) fieldContext_Organization_files(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_noteCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_notificationTemplateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_events(ctx, field) + return ec.fieldContext_Organization_notificationTemplateCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) + return obj.NotificationTemplateCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notificationTemplateCreators(ctx 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) { - return ec.childFields_EventConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107087,41 +110135,41 @@ func (ec *executionContext) fieldContext_Organization_events(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_notificationTemplateCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_organizationCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_secrets(ctx, field) + return ec.fieldContext_Organization_organizationCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Secrets(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.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) + return obj.OrganizationCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { - return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_secrets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_organizationCreators(ctx 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) { - return ec.childFields_HushConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107131,56 +110179,68 @@ func (ec *executionContext) fieldContext_Organization_secrets(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_secrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_organizationCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_platformCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_avatarFile(ctx, field) + return ec.fieldContext_Organization_platformCreators(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarFile(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.PlatformCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Organization_avatarFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_platformCreators(ctx 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) { - return ec.childFields_File(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_platformCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_groups(ctx, field) + return ec.fieldContext_Organization_procedureCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ProcedureCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { @@ -107190,7 +110250,7 @@ func (ec *executionContext) _Organization_groups(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_Organization_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_procedureCreators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, @@ -107207,41 +110267,41 @@ func (ec *executionContext) fieldContext_Organization_groups(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_procedureCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_templates(ctx, field) + return ec.fieldContext_Organization_programCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) + return obj.ProgramCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { - return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_programCreators(ctx 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) { - return ec.childFields_TemplateConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107251,41 +110311,41 @@ func (ec *executionContext) fieldContext_Organization_templates(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_programCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_remediationCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_integrations(ctx, field) + return ec.fieldContext_Organization_remediationCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.RemediationCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_remediationCreators(ctx 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) { - return ec.childFields_IntegrationConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107295,41 +110355,41 @@ func (ec *executionContext) fieldContext_Organization_integrations(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_remediationCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_reviewCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_documents(ctx, field) + return ec.fieldContext_Organization_reviewCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Documents(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) + return obj.ReviewCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { - return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_reviewCreators(ctx 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) { - return ec.childFields_DocumentDataConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107339,73 +110399,85 @@ func (ec *executionContext) fieldContext_Organization_documents(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_reviewCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + return ec.fieldContext_Organization_riskCreators(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OrgSubscriptions(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.RiskCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrgSubscription) graphql.Marshaler { - return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Organization_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_riskCreators(ctx 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) { - return ec.childFields_OrgSubscription(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_riskCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scanCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_invites(ctx, field) + return ec.fieldContext_Organization_scanCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Invites(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.InviteOrder), fc.Args["where"].(*generated.InviteWhereInput)) + return obj.ScanCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { - return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_scanCreators(ctx 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) { - return ec.childFields_InviteConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107415,41 +110487,41 @@ func (ec *executionContext) fieldContext_Organization_invites(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_scanCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scheduledJobCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_subscribers(ctx, field) + return ec.fieldContext_Organization_scheduledJobCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subscribers(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.SubscriberOrder), fc.Args["where"].(*generated.SubscriberWhereInput)) + return obj.ScheduledJobCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { - return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_scheduledJobCreators(ctx 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) { - return ec.childFields_SubscriberConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107459,41 +110531,41 @@ func (ec *executionContext) fieldContext_Organization_subscribers(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_scheduledJobCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scheduledJobRunCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_entities(ctx, field) + return ec.fieldContext_Organization_scheduledJobRunCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.ScheduledJobRunCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_scheduledJobRunCreators(ctx 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) { - return ec.childFields_EntityConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107503,41 +110575,41 @@ func (ec *executionContext) fieldContext_Organization_entities(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_scheduledJobRunCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_standardCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_platforms(ctx, field) + return ec.fieldContext_Organization_standardCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.StandardCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_standardCreators(ctx 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) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107547,41 +110619,41 @@ func (ec *executionContext) fieldContext_Organization_platforms(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_standardCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subcontrolCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_identityHolders(ctx, field) + return ec.fieldContext_Organization_subcontrolCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.SubcontrolCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subcontrolCreators(ctx 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) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107591,41 +110663,41 @@ func (ec *executionContext) fieldContext_Organization_identityHolders(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_subcontrolCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subprocessorCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_campaigns(ctx, field) + return ec.fieldContext_Organization_subprocessorCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + return obj.SubprocessorCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subprocessorCreators(ctx 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) { - return ec.childFields_CampaignConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107635,41 +110707,41 @@ func (ec *executionContext) fieldContext_Organization_campaigns(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_subprocessorCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subscriberCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_campaignTargets(ctx, field) + return ec.fieldContext_Organization_subscriberCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) + return obj.SubscriberCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subscriberCreators(ctx 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) { - return ec.childFields_CampaignTargetConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107679,41 +110751,41 @@ func (ec *executionContext) fieldContext_Organization_campaignTargets(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_subscriberCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_systemDetailCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_entityTypes(ctx, field) + return ec.fieldContext_Organization_systemDetailCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.EntityTypes(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.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) + return obj.SystemDetailCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { - return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_systemDetailCreators(ctx 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) { - return ec.childFields_EntityTypeConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107723,41 +110795,41 @@ func (ec *executionContext) fieldContext_Organization_entityTypes(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_systemDetailCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_tagDefinitionCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_contacts(ctx, field) + return ec.fieldContext_Organization_tagDefinitionCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Contacts(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.ContactOrder), fc.Args["where"].(*generated.ContactWhereInput)) + return obj.TagDefinitionCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { - return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_tagDefinitionCreators(ctx 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) { - return ec.childFields_ContactConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107767,41 +110839,41 @@ func (ec *executionContext) fieldContext_Organization_contacts(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_tagDefinitionCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_taskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_notes(ctx, field) + return ec.fieldContext_Organization_taskCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.TaskCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_taskCreators(ctx 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) { - return ec.childFields_NoteConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107811,41 +110883,41 @@ func (ec *executionContext) fieldContext_Organization_notes(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_taskCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_tasks(ctx, field) + return ec.fieldContext_Organization_templateCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.TemplateCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_templateCreators(ctx 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) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107855,41 +110927,41 @@ func (ec *executionContext) fieldContext_Organization_tasks(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_templateCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_programs(ctx, field) + return ec.fieldContext_Organization_trustCenterCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.TrustCenterCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterCreators(ctx 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) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107899,41 +110971,41 @@ func (ec *executionContext) fieldContext_Organization_programs(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_systemDetails(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterComplianceCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_systemDetails(ctx, field) + return ec.fieldContext_Organization_trustCenterComplianceCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.SystemDetails(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.SystemDetailOrder), fc.Args["where"].(*generated.SystemDetailWhereInput)) + return obj.TrustCenterComplianceCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { - return ec.marshalNSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_systemDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterComplianceCreators(ctx 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) { - return ec.childFields_SystemDetailConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107943,41 +111015,41 @@ func (ec *executionContext) fieldContext_Organization_systemDetails(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_systemDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterComplianceCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterDocCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_procedures(ctx, field) + return ec.fieldContext_Organization_trustCenterDocCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.TrustCenterDocCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterDocCreators(ctx 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) { - return ec.childFields_ProcedureConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -107987,41 +111059,41 @@ func (ec *executionContext) fieldContext_Organization_procedures(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterDocCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterEntityCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_internalPolicies(ctx, field) + return ec.fieldContext_Organization_trustCenterEntityCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.TrustCenterEntityCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterEntityCreators(ctx 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) { - return ec.childFields_InternalPolicyConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108031,41 +111103,41 @@ func (ec *executionContext) fieldContext_Organization_internalPolicies(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterEntityCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterFaqCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_risks(ctx, field) + return ec.fieldContext_Organization_trustCenterFaqCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.TrustCenterFaqCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterFaqCreators(ctx 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) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108075,41 +111147,41 @@ func (ec *executionContext) fieldContext_Organization_risks(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterFaqCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterNdaRequestCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controlObjectives(ctx, field) + return ec.fieldContext_Organization_trustCenterNdaRequestCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return obj.TrustCenterNdaRequestCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterNdaRequestCreators(ctx 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) { - return ec.childFields_ControlObjectiveConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108119,41 +111191,41 @@ func (ec *executionContext) fieldContext_Organization_controlObjectives(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterNdaRequestCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterSubprocessorCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_narratives(ctx, field) + return ec.fieldContext_Organization_trustCenterSubprocessorCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) + return obj.TrustCenterSubprocessorCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterSubprocessorCreators(ctx 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) { - return ec.childFields_NarrativeConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108163,41 +111235,41 @@ func (ec *executionContext) fieldContext_Organization_narratives(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterSubprocessorCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterWatermarkConfigCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controls(ctx, field) + return ec.fieldContext_Organization_trustCenterWatermarkConfigCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.TrustCenterWatermarkConfigCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterWatermarkConfigCreators(ctx 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) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108207,41 +111279,41 @@ func (ec *executionContext) fieldContext_Organization_controls(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterWatermarkConfigCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_userCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_subcontrols(ctx, field) + return ec.fieldContext_Organization_userCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.UserCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_userCreators(ctx 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) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108251,41 +111323,41 @@ func (ec *executionContext) fieldContext_Organization_subcontrols(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_userCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_userSettingCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_controlImplementations(ctx, field) + return ec.fieldContext_Organization_userSettingCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) + return obj.UserSettingCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { - return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_userSettingCreators(ctx 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) { - return ec.childFields_ControlImplementationConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108295,41 +111367,41 @@ func (ec *executionContext) fieldContext_Organization_controlImplementations(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_userSettingCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_mappedControls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_vendorRiskScoreCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_mappedControls(ctx, field) + return ec.fieldContext_Organization_vendorRiskScoreCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.MappedControls(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.MappedControlOrder), fc.Args["where"].(*generated.MappedControlWhereInput)) + return obj.VendorRiskScoreCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControlConnection) graphql.Marshaler { - return ec.marshalNMappedControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_mappedControls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_vendorRiskScoreCreators(ctx 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) { - return ec.childFields_MappedControlConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108339,41 +111411,41 @@ func (ec *executionContext) fieldContext_Organization_mappedControls(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_mappedControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_vendorRiskScoreCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_vulnerabilityCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_evidence(ctx, field) + return ec.fieldContext_Organization_vulnerabilityCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.VulnerabilityCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_vulnerabilityCreators(ctx 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) { - return ec.childFields_EvidenceConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108383,41 +111455,41 @@ func (ec *executionContext) fieldContext_Organization_evidence(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_vulnerabilityCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_standards(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowAssignmentCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_standards(ctx, field) + return ec.fieldContext_Organization_workflowAssignmentCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Standards(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) + return obj.WorkflowAssignmentCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { - return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_standards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowAssignmentCreators(ctx 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) { - return ec.childFields_StandardConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108427,41 +111499,41 @@ func (ec *executionContext) fieldContext_Organization_standards(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowAssignmentCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowAssignmentTargetCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_actionPlans(ctx, field) + return ec.fieldContext_Organization_workflowAssignmentTargetCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.WorkflowAssignmentTargetCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowAssignmentTargetCreators(ctx 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) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108471,41 +111543,41 @@ func (ec *executionContext) fieldContext_Organization_actionPlans(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowAssignmentTargetCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_customDomains(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowDefinitionCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_customDomains(ctx, field) + return ec.fieldContext_Organization_workflowDefinitionCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.CustomDomains(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.CustomDomainOrder), fc.Args["where"].(*generated.CustomDomainWhereInput)) + return obj.WorkflowDefinitionCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { - return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_customDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowDefinitionCreators(ctx 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) { - return ec.childFields_CustomDomainConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108515,41 +111587,41 @@ func (ec *executionContext) fieldContext_Organization_customDomains(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowDefinitionCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_jobRunners(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowEventCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_jobRunners(ctx, field) + return ec.fieldContext_Organization_workflowEventCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.JobRunners(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.JobRunnerOrder), fc.Args["where"].(*generated.JobRunnerWhereInput)) + return obj.WorkflowEventCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { - return ec.marshalNJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_jobRunners(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowEventCreators(ctx 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) { - return ec.childFields_JobRunnerConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108559,41 +111631,41 @@ func (ec *executionContext) fieldContext_Organization_jobRunners(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_jobRunners_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowEventCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_jobRunnerTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowInstanceCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_jobRunnerTokens(ctx, field) + return ec.fieldContext_Organization_workflowInstanceCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.JobRunnerTokens(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.JobRunnerTokenOrder), fc.Args["where"].(*generated.JobRunnerTokenWhereInput)) + return obj.WorkflowInstanceCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerTokenConnection) graphql.Marshaler { - return ec.marshalNJobRunnerTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_jobRunnerTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowInstanceCreators(ctx 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) { - return ec.childFields_JobRunnerTokenConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108603,41 +111675,41 @@ func (ec *executionContext) fieldContext_Organization_jobRunnerTokens(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_jobRunnerTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowInstanceCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowObjectRefCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_jobRunnerRegistrationTokens(ctx, field) + return ec.fieldContext_Organization_workflowObjectRefCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.JobRunnerRegistrationTokens(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.JobRunnerRegistrationTokenOrder), fc.Args["where"].(*generated.JobRunnerRegistrationTokenWhereInput)) + return obj.WorkflowObjectRefCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { - return ec.marshalNJobRunnerRegistrationTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowObjectRefCreators(ctx 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) { - return ec.childFields_JobRunnerRegistrationTokenConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108647,41 +111719,41 @@ func (ec *executionContext) fieldContext_Organization_jobRunnerRegistrationToken } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_jobRunnerRegistrationTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowObjectRefCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_dnsVerifications(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowProposalCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_dnsVerifications(ctx, field) + return ec.fieldContext_Organization_workflowProposalCreators(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.DNSVerifications(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.DNSVerificationOrder), fc.Args["where"].(*generated.DNSVerificationWhereInput)) + return obj.WorkflowProposalCreators(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerificationConnection) graphql.Marshaler { - return ec.marshalNDNSVerificationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_dnsVerifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowProposalCreators(ctx 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) { - return ec.childFields_DNSVerificationConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108691,41 +111763,41 @@ func (ec *executionContext) fieldContext_Organization_dnsVerifications(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_dnsVerifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowProposalCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_jobTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_campaignsManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_jobTemplates(ctx, field) + return ec.fieldContext_Organization_campaignsManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.JobTemplates(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.JobTemplateOrder), fc.Args["where"].(*generated.JobTemplateWhereInput)) + return obj.CampaignsManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { - return ec.marshalNJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_jobTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_campaignsManager(ctx 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) { - return ec.childFields_JobTemplateConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108735,41 +111807,41 @@ func (ec *executionContext) fieldContext_Organization_jobTemplates(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_jobTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_campaignsManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_scheduledJobs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_complianceManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_scheduledJobs(ctx, field) + return ec.fieldContext_Organization_complianceManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) + return obj.ComplianceManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { - return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_scheduledJobs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_complianceManager(ctx 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) { - return ec.childFields_ScheduledJobConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108779,41 +111851,41 @@ func (ec *executionContext) fieldContext_Organization_scheduledJobs(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_complianceManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_jobResults(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_groupManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_jobResults(ctx, field) + return ec.fieldContext_Organization_groupManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.JobResults(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.JobResultOrder), fc.Args["where"].(*generated.JobResultWhereInput)) + return obj.GroupManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResultConnection) graphql.Marshaler { - return ec.marshalNJobResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_jobResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groupManager(ctx 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) { - return ec.childFields_JobResultConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108823,41 +111895,41 @@ func (ec *executionContext) fieldContext_Organization_jobResults(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_jobResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_groupManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_scheduledJobRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_policiesManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_scheduledJobRuns(ctx, field) + return ec.fieldContext_Organization_policiesManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ScheduledJobRuns(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.ScheduledJobRunOrder), fc.Args["where"].(*generated.ScheduledJobRunWhereInput)) + return obj.PoliciesManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRunConnection) graphql.Marshaler { - return ec.marshalNScheduledJobRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_scheduledJobRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_policiesManager(ctx 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) { - return ec.childFields_ScheduledJobRunConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108867,41 +111939,41 @@ func (ec *executionContext) fieldContext_Organization_scheduledJobRuns(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_scheduledJobRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_policiesManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_trustCenters(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_registryManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_trustCenters(ctx, field) + return ec.fieldContext_Organization_registryManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenters(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.TrustCenterOrder), fc.Args["where"].(*generated.TrustCenterWhereInput)) + return obj.RegistryManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterConnection) graphql.Marshaler { - return ec.marshalNTrustCenterConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_trustCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_registryManager(ctx 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) { - return ec.childFields_TrustCenterConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108911,41 +111983,41 @@ func (ec *executionContext) fieldContext_Organization_trustCenters(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_trustCenters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_registryManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_riskManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_assets(ctx, field) + return ec.fieldContext_Organization_riskManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.RiskManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_riskManager(ctx 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) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108955,41 +112027,41 @@ func (ec *executionContext) fieldContext_Organization_assets(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_riskManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_scans(ctx, field) + return ec.fieldContext_Organization_trustCenterManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.TrustCenterManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_trustCenterManager(ctx 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) { - return ec.childFields_ScanConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -108999,41 +112071,41 @@ func (ec *executionContext) fieldContext_Organization_scans(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_trustCenterManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_slaDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowsManager(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_slaDefinitions(ctx, field) + return ec.fieldContext_Organization_workflowsManager(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.SLADefinitions(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.SLADefinitionOrder), fc.Args["where"].(*generated.SLADefinitionWhereInput)) + return obj.WorkflowsManager(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinitionConnection) graphql.Marshaler { - return ec.marshalNSLADefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_slaDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowsManager(ctx 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) { - return ec.childFields_SLADefinitionConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -109043,85 +112115,73 @@ func (ec *executionContext) fieldContext_Organization_slaDefinitions(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_slaDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_workflowsManager_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_subprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_subprocessors(ctx, field) + return ec.fieldContext_Organization_parent(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subprocessors(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.SubprocessorOrder), fc.Args["where"].(*generated.SubprocessorWhereInput)) + return obj.Parent(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { - return ec.marshalNSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Organization_subprocessors(ctx 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: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubprocessorConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_subprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Organization_exports(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_exports(ctx, field) + return ec.fieldContext_Organization_children(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Exports(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.ExportOrder), fc.Args["where"].(*generated.ExportWhereInput)) + 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)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ExportConnection) graphql.Marshaler { - return ec.marshalNExportConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_exports(ctx 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: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ExportConnection(ctx, field) + return ec.childFields_OrganizationConnection(ctx, field) }, } defer func() { @@ -109131,85 +112191,73 @@ func (ec *executionContext) fieldContext_Organization_exports(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_exports_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Organization_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_trustCenterWatermarkConfigs(ctx, field) + return ec.fieldContext_Organization_setting(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterWatermarkConfigs(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.TrustCenterWatermarkConfigOrder), fc.Args["where"].(*generated.TrustCenterWatermarkConfigWhereInput)) + return obj.Setting(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfigConnection) graphql.Marshaler { - return ec.marshalNTrustCenterWatermarkConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Organization_trustCenterWatermarkConfigs(ctx 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: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfigConnection(ctx, field) + return ec.childFields_OrganizationSetting(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_trustCenterWatermarkConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Organization_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_assessments(ctx, field) + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) + return obj.PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { - return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { + return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_personalAccessTokens(ctx 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) { - return ec.childFields_AssessmentConnection(ctx, field) + return ec.childFields_PersonalAccessTokenConnection(ctx, field) }, } defer func() { @@ -109219,41 +112267,41 @@ func (ec *executionContext) fieldContext_Organization_assessments(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_assessmentResponses(ctx, field) + return ec.fieldContext_Organization_apiTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) + return obj.APITokens(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.APITokenOrder), fc.Args["where"].(*generated.APITokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { - return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { + return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_apiTokens(ctx 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) { - return ec.childFields_AssessmentResponseConnection(ctx, field) + return ec.childFields_APITokenConnection(ctx, field) }, } defer func() { @@ -109263,41 +112311,41 @@ func (ec *executionContext) fieldContext_Organization_assessmentResponses(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_customTypeEnums(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_customTypeEnums(ctx, field) + return ec.fieldContext_Organization_emailTemplates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.CustomTypeEnums(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.CustomTypeEnumOrder), fc.Args["where"].(*generated.CustomTypeEnumWhereInput)) + return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { - return ec.marshalNCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { + return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_customTypeEnums(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_emailTemplates(ctx 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) { - return ec.childFields_CustomTypeEnumConnection(ctx, field) + return ec.childFields_EmailTemplateConnection(ctx, field) }, } defer func() { @@ -109307,41 +112355,41 @@ func (ec *executionContext) fieldContext_Organization_customTypeEnums(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_customTypeEnums_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_tagDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_notificationPreferences(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_tagDefinitions(ctx, field) + return ec.fieldContext_Organization_notificationPreferences(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) + return obj.NotificationPreferences(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.NotificationPreferenceOrder), fc.Args["where"].(*generated.NotificationPreferenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { - return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreferenceConnection) graphql.Marshaler { + return ec.marshalNNotificationPreferenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_tagDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notificationPreferences(ctx 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) { - return ec.childFields_TagDefinitionConnection(ctx, field) + return ec.childFields_NotificationPreferenceConnection(ctx, field) }, } defer func() { @@ -109351,41 +112399,41 @@ func (ec *executionContext) fieldContext_Organization_tagDefinitions(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_tagDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_notificationPreferences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_notificationTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_remediations(ctx, field) + return ec.fieldContext_Organization_notificationTemplates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { + return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notificationTemplates(ctx 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) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_NotificationTemplateConnection(ctx, field) }, } defer func() { @@ -109395,41 +112443,41 @@ func (ec *executionContext) fieldContext_Organization_remediations(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_findings(ctx, field) + return ec.fieldContext_Organization_users(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return obj.Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) + return ec.childFields_UserConnection(ctx, field) }, } defer func() { @@ -109439,41 +112487,41 @@ func (ec *executionContext) fieldContext_Organization_findings(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_reviews(ctx, field) + return ec.fieldContext_Organization_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_files(ctx 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) { - return ec.childFields_ReviewConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -109483,41 +112531,41 @@ func (ec *executionContext) fieldContext_Organization_reviews(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_vulnerabilities(ctx, field) + return ec.fieldContext_Organization_events(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_events(ctx 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) { - return ec.childFields_VulnerabilityConnection(ctx, field) + return ec.childFields_EventConnection(ctx, field) }, } defer func() { @@ -109527,41 +112575,41 @@ func (ec *executionContext) fieldContext_Organization_vulnerabilities(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowDefinitions(ctx, field) + return ec.fieldContext_Organization_secrets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowDefinitions(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.WorkflowDefinitionOrder), fc.Args["where"].(*generated.WorkflowDefinitionWhereInput)) + return obj.Secrets(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.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinitionConnection) graphql.Marshaler { - return ec.marshalNWorkflowDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { + return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_secrets(ctx 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) { - return ec.childFields_WorkflowDefinitionConnection(ctx, field) + return ec.childFields_HushConnection(ctx, field) }, } defer func() { @@ -109571,41 +112619,73 @@ func (ec *executionContext) fieldContext_Organization_workflowDefinitions(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_secrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowInstances(ctx, field) + return ec.fieldContext_Organization_avatarFile(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AvatarFile(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Organization_avatarFile(_ 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) { + return ec.childFields_File(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Organization_groups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowInstances(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.WorkflowInstanceOrder), fc.Args["where"].(*generated.WorkflowInstanceWhereInput)) + return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstanceConnection) graphql.Marshaler { - return ec.marshalNWorkflowInstanceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groups(ctx 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) { - return ec.childFields_WorkflowInstanceConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -109615,41 +112695,41 @@ func (ec *executionContext) fieldContext_Organization_workflowInstances(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowEvents(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowEvents(ctx, field) + return ec.fieldContext_Organization_templates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) + return obj.Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { + return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_templates(ctx 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) { - return ec.childFields_WorkflowEventConnection(ctx, field) + return ec.childFields_TemplateConnection(ctx, field) }, } defer func() { @@ -109659,41 +112739,41 @@ func (ec *executionContext) fieldContext_Organization_workflowEvents(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowAssignments(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowAssignments(ctx, field) + return ec.fieldContext_Organization_integrations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) + return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_integrations(ctx 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) { - return ec.childFields_WorkflowAssignmentConnection(ctx, field) + return ec.childFields_IntegrationConnection(ctx, field) }, } defer func() { @@ -109703,41 +112783,41 @@ func (ec *executionContext) fieldContext_Organization_workflowAssignments(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowAssignmentTargets(ctx, field) + return ec.fieldContext_Organization_documents(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) + return obj.Documents(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { + return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) + return ec.childFields_DocumentDataConnection(ctx, field) }, } defer func() { @@ -109747,41 +112827,73 @@ func (ec *executionContext) fieldContext_Organization_workflowAssignmentTargets( } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_workflowObjectRefs(ctx, field) + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OrgSubscriptions(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrgSubscription) graphql.Marshaler { + return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Organization_orgSubscriptions(_ 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) { + return ec.childFields_OrgSubscription(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Organization_invites(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.Invites(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.InviteOrder), fc.Args["where"].(*generated.InviteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { + return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_invites(ctx 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) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) + return ec.childFields_InviteConnection(ctx, field) }, } defer func() { @@ -109791,41 +112903,41 @@ func (ec *executionContext) fieldContext_Organization_workflowObjectRefs(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_directoryAccounts(ctx, field) + return ec.fieldContext_Organization_subscribers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) + return obj.Subscribers(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.SubscriberOrder), fc.Args["where"].(*generated.SubscriberWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { - return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { + return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subscribers(ctx 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) { - return ec.childFields_DirectoryAccountConnection(ctx, field) + return ec.childFields_SubscriberConnection(ctx, field) }, } defer func() { @@ -109835,41 +112947,41 @@ func (ec *executionContext) fieldContext_Organization_directoryAccounts(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_directoryGroups(ctx, field) + return ec.fieldContext_Organization_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { - return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entities(ctx 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) { - return ec.childFields_DirectoryGroupConnection(ctx, field) + return ec.childFields_EntityConnection(ctx, field) }, } defer func() { @@ -109879,41 +112991,41 @@ func (ec *executionContext) fieldContext_Organization_directoryGroups(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_directoryMemberships(ctx, field) + return ec.fieldContext_Organization_platforms(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) + return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { - return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_platforms(ctx 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) { - return ec.childFields_DirectoryMembershipConnection(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } defer func() { @@ -109923,41 +113035,41 @@ func (ec *executionContext) fieldContext_Organization_directoryMemberships(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_directorySyncRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_directorySyncRuns(ctx, field) + return ec.fieldContext_Organization_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { - return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_identityHolders(ctx 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) { - return ec.childFields_DirectorySyncRunConnection(ctx, field) + return ec.childFields_IdentityHolderConnection(ctx, field) }, } defer func() { @@ -109967,41 +113079,41 @@ func (ec *executionContext) fieldContext_Organization_directorySyncRuns(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_directorySyncRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_discussions(ctx, field) + return ec.fieldContext_Organization_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) + return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_campaigns(ctx 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) { - return ec.childFields_DiscussionConnection(ctx, field) + return ec.childFields_CampaignConnection(ctx, field) }, } defer func() { @@ -110011,41 +113123,41 @@ func (ec *executionContext) fieldContext_Organization_discussions(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_vendorScoringConfigs(ctx, field) + return ec.fieldContext_Organization_campaignTargets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.VendorScoringConfigs(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.VendorScoringConfigOrder), fc.Args["where"].(*generated.VendorScoringConfigWhereInput)) + return obj.CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfigConnection) graphql.Marshaler { - return ec.marshalNVendorScoringConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_campaignTargets(ctx 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) { - return ec.childFields_VendorScoringConfigConnection(ctx, field) + return ec.childFields_CampaignTargetConnection(ctx, field) }, } defer func() { @@ -110055,41 +113167,41 @@ func (ec *executionContext) fieldContext_Organization_vendorScoringConfigs(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_vendorScoringConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_vendorRiskScores(ctx, field) + return ec.fieldContext_Organization_entityTypes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) + return obj.EntityTypes(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.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { - return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { + return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entityTypes(ctx 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) { - return ec.childFields_VendorRiskScoreConnection(ctx, field) + return ec.childFields_EntityTypeConnection(ctx, field) }, } defer func() { @@ -110099,41 +113211,41 @@ func (ec *executionContext) fieldContext_Organization_vendorRiskScores(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_Organization_contacts(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Members(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) + return obj.Contacts(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.ContactOrder), fc.Args["where"].(*generated.ContactWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { - return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { + return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Organization_members(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_contacts(ctx 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) { - return ec.childFields_OrgMembershipConnection(ctx, field) + return ec.childFields_ContactConnection(ctx, field) }, } defer func() { @@ -110143,951 +113255,1713 @@ func (ec *executionContext) fieldContext_Organization_members(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationConnection_edges(ctx, field) + return ec.fieldContext_Organization_notes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrganizationEdge) graphql.Marshaler { - return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationEdge(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) + return ec.fieldContext_Organization_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) + return ec.fieldContext_Organization_programs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Organization_programs(ctx 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) { + return ec.childFields_ProgramConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_systemDetails(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationEdge_node(ctx, field) + return ec.fieldContext_Organization_systemDetails(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + fc := graphql.GetFieldContext(ctx) + return obj.SystemDetails(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.SystemDetailOrder), fc.Args["where"].(*generated.SystemDetailWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { + return ec.marshalNSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_systemDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_SystemDetailConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_systemDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationEdge_cursor(ctx, field) + return ec.fieldContext_Organization_procedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Organization_procedures(ctx 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) { + return ec.childFields_ProcedureConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_id(ctx, field) + return ec.fieldContext_Organization_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Organization_internalPolicies(ctx 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) { + return ec.childFields_InternalPolicyConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + return ec.fieldContext_Organization_risks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Organization_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Organization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_RiskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + return ec.fieldContext_Organization_controlObjectives(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Organization_controlObjectives(ctx 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) { + return ec.childFields_ControlObjectiveConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + return ec.fieldContext_Organization_narratives(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_narratives(ctx 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) { + return ec.childFields_NarrativeConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + return ec.fieldContext_Organization_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Organization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_tags(ctx, field) + return ec.fieldContext_Organization_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_subcontrols(ctx 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) { + return ec.childFields_SubcontrolConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_domains(ctx, field) + return ec.fieldContext_Organization_controlImplementations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Domains, nil + fc := graphql.GetFieldContext(ctx) + return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { + return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_controlImplementations(ctx 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) { + return ec.childFields_ControlImplementationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_mappedControls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + return ec.fieldContext_Organization_mappedControls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingContact, nil + fc := graphql.GetFieldContext(ctx) + return obj.MappedControls(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.MappedControlOrder), fc.Args["where"].(*generated.MappedControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControlConnection) graphql.Marshaler { + return ec.marshalNMappedControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_mappedControls(ctx 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) { + return ec.childFields_MappedControlConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_mappedControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + return ec.fieldContext_Organization_evidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingEmail, nil + fc := graphql.GetFieldContext(ctx) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_evidence(ctx 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) { + return ec.childFields_EvidenceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_standards(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + return ec.fieldContext_Organization_standards(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingPhone, nil + fc := graphql.GetFieldContext(ctx) + return obj.Standards(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { + return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_standards(ctx 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) { + return ec.childFields_StandardConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + return ec.fieldContext_Organization_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingAddress, nil + fc := graphql.GetFieldContext(ctx) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.Address) graphql.Marshaler { - return ec.marshalOAddress2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAddress(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Address does not have child fields")) +func (ec *executionContext) fieldContext_Organization_actionPlans(ctx 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) { + return ec.childFields_ActionPlanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_customDomains(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + return ec.fieldContext_Organization_customDomains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaxIdentifier, nil + fc := graphql.GetFieldContext(ctx) + return obj.CustomDomains(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.CustomDomainOrder), fc.Args["where"].(*generated.CustomDomainWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { + return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_customDomains(ctx 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) { + return ec.childFields_CustomDomainConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunners(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + return ec.fieldContext_Organization_jobRunners(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GeoLocation, nil + fc := graphql.GetFieldContext(ctx) + return obj.JobRunners(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.JobRunnerOrder), fc.Args["where"].(*generated.JobRunnerWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Region) graphql.Marshaler { - return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRegion(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { + return ec.marshalNJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type OrganizationSettingRegion does not have child fields")) +func (ec *executionContext) fieldContext_Organization_jobRunners(ctx 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) { + return ec.childFields_JobRunnerConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_jobRunners_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunnerTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + return ec.fieldContext_Organization_jobRunnerTokens(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OrganizationID, nil + fc := graphql.GetFieldContext(ctx) + return obj.JobRunnerTokens(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.JobRunnerTokenOrder), fc.Args["where"].(*generated.JobRunnerTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerTokenConnection) graphql.Marshaler { + return ec.marshalNJobRunnerTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Organization_jobRunnerTokens(ctx 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) { + return ec.childFields_JobRunnerTokenConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_jobRunnerTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingNotificationsEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_billingNotificationsEnabled(ctx, field) + return ec.fieldContext_Organization_jobRunnerRegistrationTokens(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingNotificationsEnabled, nil + fc := graphql.GetFieldContext(ctx) + return obj.JobRunnerRegistrationTokens(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.JobRunnerRegistrationTokenOrder), fc.Args["where"].(*generated.JobRunnerRegistrationTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { + return ec.marshalNJobRunnerRegistrationTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingNotificationsEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_jobRunnerRegistrationTokens(ctx 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) { + return ec.childFields_JobRunnerRegistrationTokenConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_jobRunnerRegistrationTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_allowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_dnsVerifications(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_allowedEmailDomains(ctx, field) + return ec.fieldContext_Organization_dnsVerifications(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AllowedEmailDomains, nil + fc := graphql.GetFieldContext(ctx) + return obj.DNSVerifications(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.DNSVerificationOrder), fc.Args["where"].(*generated.DNSVerificationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerificationConnection) graphql.Marshaler { + return ec.marshalNDNSVerificationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_allowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_dnsVerifications(ctx 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) { + return ec.childFields_DNSVerificationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_dnsVerifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_allowMatchingDomainsAutojoin(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_allowMatchingDomainsAutojoin(ctx, field) + return ec.fieldContext_Organization_jobTemplates(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AllowMatchingDomainsAutojoin, nil + fc := graphql.GetFieldContext(ctx) + return obj.JobTemplates(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.JobTemplateOrder), fc.Args["where"].(*generated.JobTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { + return ec.marshalNJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_allowMatchingDomainsAutojoin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_jobTemplates(ctx 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) { + return ec.childFields_JobTemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_jobTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProvider(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scheduledJobs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProvider(ctx, field) + return ec.fieldContext_Organization_scheduledJobs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProvider, nil + fc := graphql.GetFieldContext(ctx) + return obj.ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SSOProvider) graphql.Marshaler { - return ec.marshalOOrganizationSettingSSOProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSOProvider(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { + return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type OrganizationSettingSSOProvider does not have child fields")) +func (ec *executionContext) fieldContext_Organization_scheduledJobs(ctx 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) { + return ec.childFields_ScheduledJobConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderClientID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_jobResults(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderClientID(ctx, field) + return ec.fieldContext_Organization_jobResults(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderClientID, nil + fc := graphql.GetFieldContext(ctx) + return obj.JobResults(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.JobResultOrder), fc.Args["where"].(*generated.JobResultWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResultConnection) graphql.Marshaler { + return ec.marshalNJobResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderClientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_jobResults(ctx 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) { + return ec.childFields_JobResultConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_jobResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderClientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scheduledJobRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderClientSecret(ctx, field) + return ec.fieldContext_Organization_scheduledJobRuns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderClientSecret, nil + fc := graphql.GetFieldContext(ctx) + return obj.ScheduledJobRuns(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.ScheduledJobRunOrder), fc.Args["where"].(*generated.ScheduledJobRunWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRunConnection) graphql.Marshaler { + return ec.marshalNScheduledJobRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderClientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_scheduledJobRuns(ctx 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) { + return ec.childFields_ScheduledJobRunConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_scheduledJobRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderMetadataEndpoint(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenters(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderMetadataEndpoint(ctx, field) + return ec.fieldContext_Organization_trustCenters(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderMetadataEndpoint, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenters(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.TrustCenterOrder), fc.Args["where"].(*generated.TrustCenterWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterConnection) graphql.Marshaler { + return ec.marshalNTrustCenterConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderMetadataEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_trustCenters(ctx 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) { + return ec.childFields_TrustCenterConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_trustCenters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderAuthTested(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderAuthTested(ctx, field) + return ec.fieldContext_Organization_assets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderAuthTested, nil + fc := graphql.GetFieldContext(ctx) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderAuthTested(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Organization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderEntityID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderEntityID(ctx, field) + return ec.fieldContext_Organization_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderEntityID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_scans(ctx 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) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_oidcDiscoveryEndpoint(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_slaDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_oidcDiscoveryEndpoint(ctx, field) + return ec.fieldContext_Organization_slaDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OidcDiscoveryEndpoint, nil + fc := graphql.GetFieldContext(ctx) + return obj.SLADefinitions(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.SLADefinitionOrder), fc.Args["where"].(*generated.SLADefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinitionConnection) graphql.Marshaler { + return ec.marshalNSLADefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_oidcDiscoveryEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_slaDefinitions(ctx 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) { + return ec.childFields_SLADefinitionConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_slaDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_samlSigninURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_subprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_samlSigninURL(ctx, field) + return ec.fieldContext_Organization_subprocessors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlSigninURL, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subprocessors(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.SubprocessorOrder), fc.Args["where"].(*generated.SubprocessorWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { + return ec.marshalNSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_samlSigninURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_subprocessors(ctx 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) { + return ec.childFields_SubprocessorConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_subprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_samlIssuer(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_exports(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_samlIssuer(ctx, field) + return ec.fieldContext_Organization_exports(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlIssuer, nil + fc := graphql.GetFieldContext(ctx) + return obj.Exports(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.ExportOrder), fc.Args["where"].(*generated.ExportWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ExportConnection) graphql.Marshaler { + return ec.marshalNExportConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_samlIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_exports(ctx 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) { + return ec.childFields_ExportConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_exports_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_samlCert(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_samlCert(ctx, field) + return ec.fieldContext_Organization_trustCenterWatermarkConfigs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlCert, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterWatermarkConfigs(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.TrustCenterWatermarkConfigOrder), fc.Args["where"].(*generated.TrustCenterWatermarkConfigWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfigConnection) graphql.Marshaler { + return ec.marshalNTrustCenterWatermarkConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_samlCert(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_trustCenterWatermarkConfigs(ctx 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) { + return ec.childFields_TrustCenterWatermarkConfigConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_trustCenterWatermarkConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_identityProviderLoginEnforced(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_identityProviderLoginEnforced(ctx, field) + return ec.fieldContext_Organization_assessments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderLoginEnforced, nil + fc := graphql.GetFieldContext(ctx) + return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { + return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderLoginEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_assessments(ctx 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) { + return ec.childFields_AssessmentConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_multifactorAuthEnforced(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_multifactorAuthEnforced(ctx, field) + return ec.fieldContext_Organization_assessmentResponses(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MultifactorAuthEnforced, nil + fc := graphql.GetFieldContext(ctx) + return obj.AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { + return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_multifactorAuthEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_assessmentResponses(ctx 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) { + return ec.childFields_AssessmentResponseConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_complianceWebhookToken(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_customTypeEnums(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_complianceWebhookToken(ctx, field) + return ec.fieldContext_Organization_customTypeEnums(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ComplianceWebhookToken, nil + fc := graphql.GetFieldContext(ctx) + return obj.CustomTypeEnums(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.CustomTypeEnumOrder), fc.Args["where"].(*generated.CustomTypeEnumWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { + return ec.marshalNCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_complianceWebhookToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Organization_customTypeEnums(ctx 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) { + return ec.childFields_CustomTypeEnumConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_customTypeEnums_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_paymentMethodAdded(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_tagDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_paymentMethodAdded(ctx, field) + return ec.fieldContext_Organization_tagDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PaymentMethodAdded, nil + fc := graphql.GetFieldContext(ctx) + return obj.TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { + return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_paymentMethodAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_tagDefinitions(ctx 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) { + return ec.childFields_TagDefinitionConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_tagDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_pendingDeletionAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_pendingDeletionAt(ctx, field) + return ec.fieldContext_Organization_remediations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PendingDeletionAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_pendingDeletionAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Organization_remediations(ctx 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) { + return ec.childFields_RemediationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_organization(ctx, field) + return ec.fieldContext_Organization_findings(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Organization(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_findings(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) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSetting_files(ctx, field) + return ec.fieldContext_Organization_reviews(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSetting_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_reviews(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) { - return ec.childFields_FileConnection(ctx, field) + return ec.childFields_ReviewConnection(ctx, field) }, } defer func() { @@ -111097,698 +114971,613 @@ func (ec *executionContext) fieldContext_OrganizationSetting_files(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_OrganizationSetting_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) + return ec.fieldContext_Organization_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrganizationSettingEdge) graphql.Marshaler { - return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_vulnerabilities(ctx 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) { - return ec.childFields_OrganizationSettingEdge(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) + return ec.fieldContext_Organization_workflowDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowDefinitions(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.WorkflowDefinitionOrder), fc.Args["where"].(*generated.WorkflowDefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinitionConnection) graphql.Marshaler { + return ec.marshalNWorkflowDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowDefinitions(ctx 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) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_WorkflowDefinitionConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) + return ec.fieldContext_Organization_workflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowInstances(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.WorkflowInstanceOrder), fc.Args["where"].(*generated.WorkflowInstanceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstanceConnection) graphql.Marshaler { + return ec.marshalNWorkflowInstanceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Organization_workflowInstances(ctx 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) { + return ec.childFields_WorkflowInstanceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowEvents(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) + return ec.fieldContext_Organization_workflowEvents(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_workflowEvents(ctx 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) { - return ec.childFields_OrganizationSetting(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowAssignments(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) + return ec.fieldContext_Organization_workflowAssignments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Organization_workflowAssignments(ctx 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) { + return ec.childFields_WorkflowAssignmentConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + return ec.fieldContext_Organization_workflowAssignmentTargets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HasNextPage, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_workflowAssignmentTargets(ctx 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) { + return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + return ec.fieldContext_Organization_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HasPreviousPage, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Organization_workflowObjectRefs(ctx 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) { + return ec.childFields_WorkflowObjectRefConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PageInfo_startCursor(ctx, field) + return ec.fieldContext_Organization_directoryAccounts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartCursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { + return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Organization_directoryAccounts(ctx 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) { + return ec.childFields_DirectoryAccountConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PageInfo_endCursor(ctx, field) + return ec.fieldContext_Organization_directoryGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EndCursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { + return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Organization_directoryGroups(ctx 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) { + return ec.childFields_DirectoryGroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_id(ctx, field) + return ec.fieldContext_Organization_directoryMemberships(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { + return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Token, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Scopes, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) +func (ec *executionContext) fieldContext_Organization_directoryMemberships(ctx 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) { + return ec.childFields_DirectoryMembershipConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, 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_Organization_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PersonalAccessToken_ssoAuthorizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_directorySyncRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_ssoAuthorizations(ctx, field) + return ec.fieldContext_Organization_directorySyncRuns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOAuthorizations, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.SSOAuthorizationMap) graphql.Marshaler { - return ec.marshalOSSOAuthorizationMap2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐSSOAuthorizationMap(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { + return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_ssoAuthorizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type SSOAuthorizationMap does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LastUsedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_isActive(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IsActive, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) +func (ec *executionContext) fieldContext_Organization_directorySyncRuns(ctx 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) { + return ec.childFields_DirectorySyncRunConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, 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_Organization_directorySyncRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PersonalAccessToken_revokedReason(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_revokedReason(ctx, field) + return ec.fieldContext_Organization_discussions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RevokedReason, nil + fc := graphql.GetFieldContext(ctx) + return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_revokedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_revokedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_revokedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RevokedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_revokedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _PersonalAccessToken_revokedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_revokedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RevokedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) +func (ec *executionContext) fieldContext_Organization_discussions(ctx 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) { + return ec.childFields_DiscussionConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_PersonalAccessToken_revokedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, 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_Organization_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + return ec.fieldContext_Organization_vendorScoringConfigs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.VendorScoringConfigs(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.VendorScoringConfigOrder), fc.Args["where"].(*generated.VendorScoringConfigWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfigConnection) graphql.Marshaler { + return ec.marshalNVendorScoringConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_VendorScoringConfigConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_vendorScoringConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + return ec.fieldContext_Organization_vendorRiskScores(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Organizations(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.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { + return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationConnection(ctx, field) + return ec.childFields_VendorRiskScoreConnection(ctx, field) }, } defer func() { @@ -111798,41 +115587,41 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PersonalAccessToken_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { +func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + return ec.fieldContext_Organization_members(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) + return obj.Members(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { + return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_members(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EventConnection(ctx, field) + return ec.childFields_OrgMembershipConnection(ctx, field) }, } defer func() { @@ -111842,52 +115631,52 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_events(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_PersonalAccessToken_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Organization_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) + return ec.fieldContext_OrganizationConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.PersonalAccessTokenEdge) graphql.Marshaler { - return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrganizationEdge) graphql.Marshaler { + return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_edges(_ 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: "PersonalAccessTokenConnection", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PersonalAccessTokenEdge(ctx, field) + return ec.childFields_OrganizationEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) + return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -111900,9 +115689,9 @@ func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context. true, ) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo(_ 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: "PersonalAccessTokenConnection", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, @@ -111913,13 +115702,13 @@ func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo( return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) + return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -111932,49 +115721,49 @@ func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx contex true, ) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessTokenConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) + return ec.fieldContext_OrganizationEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { - return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_node(_ 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: "PersonalAccessTokenEdge", + Object: "OrganizationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PersonalAccessToken(ctx, field) + return ec.childFields_Organization(ctx, field) }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) + return ec.fieldContext_OrganizationEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -111987,17 +115776,17 @@ func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PersonalAccessTokenEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Platform_id(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_id(ctx, field) + return ec.fieldContext_OrganizationSetting_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -112010,17 +115799,17 @@ func (ec *executionContext) _Platform_id(ctx context.Context, field graphql.Coll true, ) } -func (ec *executionContext) fieldContext_Platform_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_createdAt(ctx, field) + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -112033,17 +115822,17 @@ func (ec *executionContext) _Platform_createdAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Platform_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -112056,17 +115845,17 @@ func (ec *executionContext) _Platform_updatedAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Platform_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_createdBy(ctx, field) + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -112079,17 +115868,17 @@ func (ec *executionContext) _Platform_createdBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Platform_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -112102,43 +115891,43 @@ func (ec *executionContext) _Platform_updatedBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Platform_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_displayID(ctx, field) + return ec.fieldContext_OrganizationSetting_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_tags(ctx, field) + return ec.fieldContext_OrganizationSetting_domains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Domains, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { @@ -112148,43 +115937,43 @@ func (ec *executionContext) _Platform_tags(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Platform_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_ownerID(ctx, field) + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.BillingContact, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_internalOwner(ctx, field) + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, nil + return obj.BillingEmail, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112194,66 +115983,66 @@ func (ec *executionContext) _Platform_internalOwner(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Platform_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_internalOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, nil + return obj.BillingPhone, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_internalOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.BillingAddress, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.Address) graphql.Marshaler { + return ec.marshalOAddress2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAddress(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Address does not have child fields")) } -func (ec *executionContext) _Platform_businessOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessOwner(ctx, field) + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessOwner, nil + return obj.TaxIdentifier, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112263,43 +116052,43 @@ func (ec *executionContext) _Platform_businessOwner(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Platform_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_businessOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessOwnerUserID, nil + return obj.GeoLocation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Region) graphql.Marshaler { + return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRegion(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_businessOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type OrganizationSettingRegion does not have child fields")) } -func (ec *executionContext) _Platform_businessOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessOwnerGroupID, nil + return obj.OrganizationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112309,158 +116098,158 @@ func (ec *executionContext) _Platform_businessOwnerGroupID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_Platform_businessOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_technicalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_billingNotificationsEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_technicalOwner(ctx, field) + return ec.fieldContext_OrganizationSetting_billingNotificationsEnabled(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TechnicalOwner, nil + return obj.BillingNotificationsEnabled, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_technicalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_billingNotificationsEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_technicalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_allowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_technicalOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSetting_allowedEmailDomains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TechnicalOwnerUserID, nil + return obj.AllowedEmailDomains, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_technicalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_allowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_technicalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_allowMatchingDomainsAutojoin(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_technicalOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSetting_allowMatchingDomainsAutojoin(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TechnicalOwnerGroupID, nil + return obj.AllowMatchingDomainsAutojoin, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_technicalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_allowMatchingDomainsAutojoin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_securityOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProvider(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityOwner(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProvider(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityOwner, nil + return obj.IdentityProvider, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SSOProvider) graphql.Marshaler { + return ec.marshalOOrganizationSettingSSOProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSOProvider(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type OrganizationSettingSSOProvider does not have child fields")) } -func (ec *executionContext) _Platform_securityOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderClientID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderClientID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityOwnerUserID, nil + return obj.IdentityProviderClientID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderClientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_securityOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderClientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderClientSecret(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityOwnerGroupID, nil + return obj.IdentityProviderClientSecret, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderClientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_platformKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderMetadataEndpoint(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformKindName(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderMetadataEndpoint(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformKindName, nil + return obj.IdentityProviderMetadataEndpoint, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112470,43 +116259,43 @@ func (ec *executionContext) _Platform_platformKindName(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_Platform_platformKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderMetadataEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_platformKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderAuthTested(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformKindID(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderAuthTested(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformKindID, nil + return obj.IdentityProviderAuthTested, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_platformKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderAuthTested(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_platformDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderEntityID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformDataClassificationName(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderEntityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformDataClassificationName, nil + return obj.IdentityProviderEntityID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112516,43 +116305,43 @@ func (ec *executionContext) _Platform_platformDataClassificationName(ctx context false, ) } -func (ec *executionContext) fieldContext_Platform_platformDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_platformDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_oidcDiscoveryEndpoint(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformDataClassificationID(ctx, field) + return ec.fieldContext_OrganizationSetting_oidcDiscoveryEndpoint(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformDataClassificationID, nil + return obj.OidcDiscoveryEndpoint, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_platformDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_oidcDiscoveryEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_samlSigninURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_environmentName(ctx, field) + return ec.fieldContext_OrganizationSetting_samlSigninURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.SamlSigninURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112562,43 +116351,43 @@ func (ec *executionContext) _Platform_environmentName(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Platform_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_samlSigninURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_samlIssuer(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_environmentID(ctx, field) + return ec.fieldContext_OrganizationSetting_samlIssuer(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.SamlIssuer, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_samlIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_samlCert(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_scopeName(ctx, field) + return ec.fieldContext_OrganizationSetting_samlCert(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.SamlCert, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -112608,434 +116397,514 @@ func (ec *executionContext) _Platform_scopeName(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Platform_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_samlCert(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_identityProviderLoginEnforced(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_scopeID(ctx, field) + return ec.fieldContext_OrganizationSetting_identityProviderLoginEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.IdentityProviderLoginEnforced, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_identityProviderLoginEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_accessModelName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_multifactorAuthEnforced(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_accessModelName(ctx, field) + return ec.fieldContext_OrganizationSetting_multifactorAuthEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelName, nil + return obj.MultifactorAuthEnforced, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_multifactorAuthEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_accessModelID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_complianceWebhookToken(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_accessModelID(ctx, field) + return ec.fieldContext_OrganizationSetting_complianceWebhookToken(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelID, nil + return obj.ComplianceWebhookToken, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_complianceWebhookToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_paymentMethodAdded(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_encryptionStatusName(ctx, field) + return ec.fieldContext_OrganizationSetting_paymentMethodAdded(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusName, nil + return obj.PaymentMethodAdded, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_paymentMethodAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_pendingDeletionAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_encryptionStatusID(ctx, field) + return ec.fieldContext_OrganizationSetting_pendingDeletionAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusID, nil + return obj.PendingDeletionAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_pendingDeletionAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSetting", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Platform_securityTierName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityTierName(ctx, field) + return ec.fieldContext_OrganizationSetting_organization(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierName, nil + return obj.Organization(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ 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) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Platform_securityTierID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityTierID(ctx, field) + return ec.fieldContext_OrganizationSetting_files(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSetting_files(ctx 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) { + return ec.childFields_FileConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_OrganizationSetting_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Platform_criticalityName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_criticalityName(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CriticalityName, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.OrganizationSettingEdge) graphql.Marshaler { + return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_criticalityName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +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 ec.childFields_OrganizationSettingEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Platform_criticalityID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_criticalityID(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CriticalityID, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_criticalityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ 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 ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Platform_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_workflowEligibleMarker(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Platform_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_externalUUID(ctx, field) + return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ 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 ec.childFields_OrganizationSetting(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Platform_name(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_name(ctx, field) + return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Platform_description(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_description(ctx, field) + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.HasNextPage, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_businessPurpose(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessPurpose(ctx, field) + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessPurpose, nil + return obj.HasPreviousPage, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_businessPurpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_scopeStatement(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_scopeStatement(ctx, field) + return ec.fieldContext_PageInfo_startCursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeStatement, nil + return obj.StartCursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_scopeStatement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Platform_trustBoundaryDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_trustBoundaryDescription(ctx, field) + return ec.fieldContext_PageInfo_endCursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustBoundaryDescription, nil + return obj.EndCursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_trustBoundaryDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PageInfo", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Platform_dataFlowSummary(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_dataFlowSummary(ctx, field) + return ec.fieldContext_PersonalAccessToken_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DataFlowSummary, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_dataFlowSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_status(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_status(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.PlatformStatus) graphql.Marshaler { - return ec.marshalNPlatformPlatformStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPlatformStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_Platform_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type PlatformPlatformStatus does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_physicalLocation(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_physicalLocation(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhysicalLocation, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -113045,20 +116914,20 @@ func (ec *executionContext) _Platform_physicalLocation(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_Platform_physicalLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_region(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_region(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Region, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -113068,321 +116937,346 @@ func (ec *executionContext) _Platform_region(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Platform_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_containsPii(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_containsPii(ctx, field) + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContainsPii, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_containsPii(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_sourceType(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_sourceType(ctx, field) + return ec.fieldContext_PersonalAccessToken_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceType, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SourceType) graphql.Marshaler { - return ec.marshalNPlatformSourceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSourceType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_sourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type PlatformSourceType does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_sourceIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_sourceIdentifier(ctx, field) + return ec.fieldContext_PersonalAccessToken_token(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceIdentifier, nil + return obj.Token, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ExpiresAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_sourceIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_costCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_costCenter(ctx, field) + return ec.fieldContext_PersonalAccessToken_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CostCenter, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_costCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_estimatedMonthlyCost(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_estimatedMonthlyCost(ctx, field) + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EstimatedMonthlyCost, nil + return obj.Scopes, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_estimatedMonthlyCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_purchaseDate(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_ssoAuthorizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_purchaseDate(ctx, field) + return ec.fieldContext_PersonalAccessToken_ssoAuthorizations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PurchaseDate, nil + return obj.SSOAuthorizations, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.SSOAuthorizationMap) graphql.Marshaler { + return ec.marshalOSSOAuthorizationMap2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐSSOAuthorizationMap(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_purchaseDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_ssoAuthorizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type SSOAuthorizationMap does not have child fields")) } -func (ec *executionContext) _Platform_platformOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformOwnerID(ctx, field) + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformOwnerID, nil + return obj.LastUsedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_platformOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_externalReferenceID(ctx, field) + return ec.fieldContext_PersonalAccessToken_isActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalReferenceID, nil + return obj.IsActive, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_revokedReason(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_metadata(ctx, field) + return ec.fieldContext_PersonalAccessToken_revokedReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.RevokedReason, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_PersonalAccessToken_revokedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_revokedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_owner(ctx, field) + return ec.fieldContext_PersonalAccessToken_revokedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.RevokedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) +func (ec *executionContext) fieldContext_PersonalAccessToken_revokedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _PersonalAccessToken_revokedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_PersonalAccessToken_revokedAt(ctx, field) }, - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.RevokedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_PersonalAccessToken_revokedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessToken", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_blockedGroups(ctx, field) + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_blockedGroups(ctx 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: "Platform", + Object: "PersonalAccessToken", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_User(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Platform_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_editors(ctx, field) + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Organizations(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)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Platform", + Object: "PersonalAccessToken", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_OrganizationConnection(ctx, field) }, } defer func() { @@ -113392,41 +117286,41 @@ func (ec *executionContext) fieldContext_Platform_editors(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_PersonalAccessToken_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Platform_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_viewers(ctx, field) + return ec.fieldContext_PersonalAccessToken_events(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Platform", + Object: "PersonalAccessToken", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_EventConnection(ctx, field) }, } defer func() { @@ -113436,2032 +117330,1315 @@ func (ec *executionContext) fieldContext_Platform_viewers(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_PersonalAccessToken_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Platform_internalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_internalOwnerUser(ctx, field) + return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUser(ctx) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.PersonalAccessTokenEdge) graphql.Marshaler { + return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_internalOwnerUser(_ 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: "Platform", + Object: "PersonalAccessTokenConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_PersonalAccessTokenEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Platform_internalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_internalOwnerGroup(ctx, field) + return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroup(ctx) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_internalOwnerGroup(_ 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: "Platform", + Object: "PersonalAccessTokenConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Platform_businessOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessOwnerUser(ctx, field) + return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessOwnerUser(ctx) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_businessOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessTokenConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Platform_businessOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_businessOwnerGroup(ctx, field) + return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessOwnerGroup(ctx) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { + return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_businessOwnerGroup(_ 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: "Platform", + Object: "PersonalAccessTokenEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_PersonalAccessToken(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Platform_technicalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_technicalOwnerUser(ctx, field) + return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TechnicalOwnerUser(ctx) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_technicalOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PersonalAccessTokenEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Platform_technicalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_id(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_technicalOwnerGroup(ctx, field) + return ec.fieldContext_Platform_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TechnicalOwnerGroup(ctx) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_technicalOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_securityOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityOwnerUser(ctx, field) + return ec.fieldContext_Platform_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityOwnerUser(ctx) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_securityOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityOwnerGroup(ctx, field) + return ec.fieldContext_Platform_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityOwnerGroup(ctx) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Platform_platformKind(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformKind(ctx, field) + return ec.fieldContext_Platform_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformKind(ctx) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_platformKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_platformDataClassification(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformDataClassification(ctx, field) + return ec.fieldContext_Platform_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformDataClassification(ctx) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_platformDataClassification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_environment(ctx, field) + return ec.fieldContext_Platform_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Platform_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_scope(ctx, field) + return ec.fieldContext_Platform_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_accessModel(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_accessModel(ctx, field) + return ec.fieldContext_Platform_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModel(ctx) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_accessModel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_encryptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_encryptionStatus(ctx, field) + return ec.fieldContext_Platform_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatus(ctx) + return obj.InternalOwner, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_encryptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_securityTier(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_securityTier(ctx, field) + return ec.fieldContext_Platform_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTier(ctx) + return obj.InternalOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_securityTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_criticality(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_criticality(ctx, field) + return ec.fieldContext_Platform_internalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Criticality(ctx) + return obj.InternalOwnerGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_criticality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_assets(ctx, field) + return ec.fieldContext_Platform_businessOwner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.BusinessOwner, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_entities(ctx, field) + return ec.fieldContext_Platform_businessOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.BusinessOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_businessOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_evidence(ctx, field) + return ec.fieldContext_Platform_businessOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.BusinessOwnerGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_businessOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_files(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_technicalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_files(ctx, field) + return ec.fieldContext_Platform_technicalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.TechnicalOwner, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_technicalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_architectureDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_technicalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_architectureDiagrams(ctx, field) + return ec.fieldContext_Platform_technicalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ArchitectureDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.TechnicalOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_architectureDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_architectureDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_technicalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_dataFlowDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_technicalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_dataFlowDiagrams(ctx, field) + return ec.fieldContext_Platform_technicalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.DataFlowDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.TechnicalOwnerGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_dataFlowDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_dataFlowDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_technicalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_trustBoundaryDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_trustBoundaryDiagrams(ctx, field) + return ec.fieldContext_Platform_securityOwner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TrustBoundaryDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.SecurityOwner, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_trustBoundaryDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_trustBoundaryDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_risks(ctx, field) + return ec.fieldContext_Platform_securityOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.SecurityOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_securityOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_controls(ctx, field) + return ec.fieldContext_Platform_securityOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.SecurityOwnerGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_securityOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_assessments(ctx, field) + return ec.fieldContext_Platform_platformKindName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) + return obj.PlatformKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { - return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_platformKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_scans(ctx, field) + return ec.fieldContext_Platform_platformKindID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.PlatformKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_platformKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_tasks(ctx, field) + return ec.fieldContext_Platform_platformDataClassificationName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.PlatformDataClassificationName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_platformDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_identityHolders(ctx, field) + return ec.fieldContext_Platform_platformDataClassificationID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.PlatformDataClassificationID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_platformDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_integrations(ctx, field) + return ec.fieldContext_Platform_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IntegrationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_directorySyncRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_directorySyncRuns(ctx, field) + return ec.fieldContext_Platform_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { - return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRunConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_directorySyncRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_directoryAccounts(ctx, field) + return ec.fieldContext_Platform_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { - return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccountConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_directoryGroups(ctx, field) + return ec.fieldContext_Platform_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { - return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_accessModelName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_directoryMemberships(ctx, field) + return ec.fieldContext_Platform_accessModelName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) + return obj.AccessModelName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { - return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembershipConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_accessModelID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_workflowObjectRefs(ctx, field) + return ec.fieldContext_Platform_accessModelID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.AccessModelID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_sourceAssets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_sourceAssets(ctx, field) + return ec.fieldContext_Platform_encryptionStatusName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.SourceAssets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.EncryptionStatusName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_sourceAssets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_sourceAssets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_sourceEntities(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_sourceEntities(ctx, field) + return ec.fieldContext_Platform_encryptionStatusID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.SourceEntities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.EncryptionStatusID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_sourceEntities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_sourceEntities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_outOfScopeAssets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityTierName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_outOfScopeAssets(ctx, field) + return ec.fieldContext_Platform_securityTierName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.OutOfScopeAssets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.SecurityTierName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_outOfScopeAssets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_outOfScopeAssets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_outOfScopeVendors(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityTierID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_outOfScopeVendors(ctx, field) + return ec.fieldContext_Platform_securityTierID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.OutOfScopeVendors(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.SecurityTierID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_outOfScopeVendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_outOfScopeVendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_applicableFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_criticalityName(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_applicableFrameworks(ctx, field) + return ec.fieldContext_Platform_criticalityName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ApplicableFrameworks(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) + return obj.CriticalityName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { - return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_applicableFrameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_StandardConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_applicableFrameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_criticalityName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_generatedScans(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_criticalityID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_generatedScans(ctx, field) + return ec.fieldContext_Platform_criticalityID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.GeneratedScans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.CriticalityID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_generatedScans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_generatedScans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_criticalityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Platform_platformOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_platformOwner(ctx, field) + return ec.fieldContext_Platform_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformOwner(ctx) + return obj.WorkflowEligibleMarker, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_platformOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Platform_systemDetail(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_systemDetail(ctx, field) + return ec.fieldContext_Platform_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemDetail(ctx) + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { - return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Platform_systemDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SystemDetail(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_name(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_hasPendingWorkflow(ctx, field) + return ec.fieldContext_Platform_name(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Platform().HasPendingWorkflow(ctx, obj) + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Platform_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Platform_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_description(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_hasWorkflowHistory(ctx, field) + return ec.fieldContext_Platform_description(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Platform().HasWorkflowHistory(ctx, obj) + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Platform", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Platform_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessPurpose(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Platform_businessPurpose(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Platform().ActiveWorkflowInstances(ctx, obj) + return obj.BusinessPurpose, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_businessPurpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Platform_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_scopeStatement(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Platform_workflowTimeline(ctx, field) + return ec.fieldContext_Platform_scopeStatement(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Platform().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + return obj.ScopeStatement, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Platform_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Platform", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Platform_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_scopeStatement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_trustBoundaryDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformConnection_edges(ctx, field) + return ec.fieldContext_Platform_trustBoundaryDescription(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.TrustBoundaryDescription, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.PlatformEdge) graphql.Marshaler { - return ec.marshalOPlatformEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_trustBoundaryDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_dataFlowSummary(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformConnection_pageInfo(ctx, field) + return ec.fieldContext_Platform_dataFlowSummary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.DataFlowSummary, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_PlatformConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_dataFlowSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_status(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformConnection_totalCount(ctx, field) + return ec.fieldContext_Platform_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.PlatformStatus) graphql.Marshaler { + return ec.marshalNPlatformPlatformStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPlatformStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PlatformConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Platform_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type PlatformPlatformStatus does not have child fields")) } -func (ec *executionContext) _PlatformEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_physicalLocation(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformEdge_node(ctx, field) + return ec.fieldContext_Platform_physicalLocation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.PhysicalLocation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Platform_physicalLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_region(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformEdge_cursor(ctx, field) + return ec.fieldContext_Platform_region(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Region, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_PlatformEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Platform_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_containsPii(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_id(ctx, field) + return ec.fieldContext_Platform_containsPii(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.ContainsPii, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Procedure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Platform_containsPii(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_sourceType(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_createdAt(ctx, field) + return ec.fieldContext_Platform_sourceType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.SourceType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SourceType) graphql.Marshaler { + return ec.marshalNPlatformSourceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSourceType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Procedure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Platform_sourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type PlatformSourceType does not have child fields")) } -func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_sourceIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_updatedAt(ctx, field) + return ec.fieldContext_Platform_sourceIdentifier(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.SourceIdentifier, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Platform_sourceIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_costCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_createdBy(ctx, field) + return ec.fieldContext_Platform_costCenter(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.CostCenter, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -115471,112 +118648,66 @@ func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_costCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_estimatedMonthlyCost(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_updatedBy(ctx, field) + return ec.fieldContext_Platform_estimatedMonthlyCost(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.EstimatedMonthlyCost, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_estimatedMonthlyCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _Procedure_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_purchaseDate(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_displayID(ctx, field) + return ec.fieldContext_Platform_purchaseDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.PurchaseDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Procedure_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_purchaseDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_revision(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_revision(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Revision, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_ownerID(ctx, field) + return ec.fieldContext_Platform_platformOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.PlatformOwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -115586,907 +118717,646 @@ func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Procedure_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Platform_platformOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_name(ctx, field) + return ec.fieldContext_Platform_externalReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.ExternalReferenceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Procedure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOProcedureDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureDocumentStatus does not have child fields")) +func (ec *executionContext) fieldContext_Platform_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Procedure_managementMode(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_managementMode(ctx, field) + return ec.fieldContext_Platform_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ManagementMode, nil + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { - return ec.marshalOProcedureDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureDocumentManagementMode does not have child fields")) +func (ec *executionContext) fieldContext_Platform_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Procedure_details(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_details(ctx, field) + return ec.fieldContext_Platform_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_detailsJSON(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Any does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_approvalRequired(ctx, field) + return ec.fieldContext_Platform_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovalRequired, nil + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _Procedure_reviewDue(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_reviewDue(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ReviewDue, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_Procedure_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _Procedure_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_reviewFrequency(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOProcedureFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureFrequency 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_Platform_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Procedure_approverID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_approverID(ctx, field) + return ec.fieldContext_Platform_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApproverID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _Procedure_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_delegateID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DelegateID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_Procedure_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _Procedure_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_summary(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Summary, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, 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_Platform_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Procedure_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_tagSuggestions(ctx, field) + return ec.fieldContext_Platform_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TagSuggestions, nil + fc := graphql.GetFieldContext(ctx) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_dismissedTagSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DismissedTagSuggestions, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_Procedure_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_controlSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ControlSuggestions, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, 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_Platform_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Procedure_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_internalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_dismissedControlSuggestions(ctx, field) + return ec.fieldContext_Platform_internalOwnerUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedControlSuggestions, nil + return obj.InternalOwnerUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_improvementSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ImprovementSuggestions, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_internalOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_internalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_dismissedImprovementSuggestions(ctx, field) + return ec.fieldContext_Platform_internalOwnerGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedImprovementSuggestions, nil + return obj.InternalOwnerGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_url(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_url(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.URL, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_internalOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_fileID(ctx, field) + return ec.fieldContext_Platform_businessOwnerUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, nil + return obj.BusinessOwnerUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _Procedure_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_systemOwned(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_businessOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_businessOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_internalNotes(ctx, field) + return ec.fieldContext_Platform_businessOwnerGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.BusinessOwnerGroup(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_systemInternalID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next - }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_businessOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_procedureKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_technicalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_procedureKindName(ctx, field) + return ec.fieldContext_Platform_technicalOwnerUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProcedureKindName, nil + return obj.TechnicalOwnerUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_procedureKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_procedureKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_procedureKindID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ProcedureKindID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_technicalOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_procedureKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_technicalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_environmentName(ctx, field) + return ec.fieldContext_Platform_technicalOwnerGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.TechnicalOwnerGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_environmentID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_technicalOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_scopeName(ctx, field) + return ec.fieldContext_Platform_securityOwnerUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.SecurityOwnerUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Procedure_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_scopeID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ScopeID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Platform_securityOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Procedure_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Procedure_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_workflowEligibleMarker(ctx, field) + return ec.fieldContext_Platform_securityOwnerGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.SecurityOwnerGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Platform_securityOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformKind(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_owner(ctx, field) + return ec.fieldContext_Platform_platformKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.PlatformKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_platformKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformDataClassification(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_blockedGroups(ctx, field) + return ec.fieldContext_Platform_platformDataClassification(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.PlatformDataClassification(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_platformDataClassification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_editors(ctx, field) + return ec.fieldContext_Platform_environment(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Procedure_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Procedure_approver(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_approver(ctx, field) + return ec.fieldContext_Platform_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Approver(ctx) + return obj.Scope(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_approver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Procedure_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_accessModel(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_delegate(ctx, field) + return ec.fieldContext_Platform_accessModel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Delegate(ctx) + return obj.AccessModel(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Procedure_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_accessModel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Procedure_procedureKind(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_encryptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_procedureKind(ctx, field) + return ec.fieldContext_Platform_encryptionStatus(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProcedureKind(ctx) + return obj.EncryptionStatus(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -116496,9 +119366,9 @@ func (ec *executionContext) _Procedure_procedureKind(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Procedure_procedureKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_encryptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, @@ -116509,16 +119379,16 @@ func (ec *executionContext) fieldContext_Procedure_procedureKind(_ context.Conte return fc, nil } -func (ec *executionContext) _Procedure_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_securityTier(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_environment(ctx, field) + return ec.fieldContext_Platform_securityTier(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.SecurityTier(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -116528,9 +119398,9 @@ func (ec *executionContext) _Procedure_environment(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_Procedure_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_securityTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, @@ -116541,16 +119411,16 @@ func (ec *executionContext) fieldContext_Procedure_environment(_ context.Context return fc, nil } -func (ec *executionContext) _Procedure_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_criticality(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_scope(ctx, field) + return ec.fieldContext_Platform_criticality(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.Criticality(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -116560,9 +119430,9 @@ func (ec *executionContext) _Procedure_scope(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Procedure_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_criticality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, @@ -116573,34 +119443,34 @@ func (ec *executionContext) fieldContext_Procedure_scope(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Procedure_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_controls(ctx, field) + return ec.fieldContext_Platform_assets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_AssetConnection(ctx, field) }, } defer func() { @@ -116610,41 +119480,41 @@ func (ec *executionContext) fieldContext_Procedure_controls(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_subcontrols(ctx, field) + return ec.fieldContext_Platform_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_EntityConnection(ctx, field) }, } defer func() { @@ -116654,41 +119524,41 @@ func (ec *executionContext) fieldContext_Procedure_subcontrols(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_internalPolicies(ctx, field) + return ec.fieldContext_Platform_evidence(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) + return ec.childFields_EvidenceConnection(ctx, field) }, } defer func() { @@ -116698,41 +119568,41 @@ func (ec *executionContext) fieldContext_Procedure_internalPolicies(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_files(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_programs(ctx, field) + return ec.fieldContext_Platform_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -116742,41 +119612,41 @@ func (ec *executionContext) fieldContext_Procedure_programs(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_architectureDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_narratives(ctx, field) + return ec.fieldContext_Platform_architectureDiagrams(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) + return obj.ArchitectureDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_architectureDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -116786,41 +119656,41 @@ func (ec *executionContext) fieldContext_Procedure_narratives(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_architectureDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_dataFlowDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_risks(ctx, field) + return ec.fieldContext_Platform_dataFlowDiagrams(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.DataFlowDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_dataFlowDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -116830,41 +119700,41 @@ func (ec *executionContext) fieldContext_Procedure_risks(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_dataFlowDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_trustBoundaryDiagrams(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_tasks(ctx, field) + return ec.fieldContext_Platform_trustBoundaryDiagrams(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.TrustBoundaryDiagrams(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_trustBoundaryDiagrams(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -116874,41 +119744,41 @@ func (ec *executionContext) fieldContext_Procedure_tasks(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_trustBoundaryDiagrams_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_comments(ctx, field) + return ec.fieldContext_Platform_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -116918,41 +119788,41 @@ func (ec *executionContext) fieldContext_Procedure_comments(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_discussions(ctx, field) + return ec.fieldContext_Platform_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DiscussionConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -116962,73 +119832,85 @@ func (ec *executionContext) fieldContext_Procedure_discussions(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_file(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_file(ctx, field) + return ec.fieldContext_Platform_assessments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.File(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { + return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Procedure_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_AssessmentConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Procedure_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_workflowObjectRefs(ctx, field) + return ec.fieldContext_Platform_scans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) + return ec.childFields_ScanConnection(ctx, field) }, } defer func() { @@ -117038,119 +119920,173 @@ func (ec *executionContext) fieldContext_Procedure_workflowObjectRefs(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Procedure_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_hasPendingWorkflow(ctx, field) + return ec.fieldContext_Platform_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Procedure().HasPendingWorkflow(ctx, obj) + fc := graphql.GetFieldContext(ctx) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Platform_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Procedure_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_hasWorkflowHistory(ctx, field) + return ec.fieldContext_Platform_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Procedure().HasWorkflowHistory(ctx, obj) + fc := graphql.GetFieldContext(ctx) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Procedure", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Platform_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolderConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Procedure_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Platform_integrations(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Procedure().ActiveWorkflowInstances(ctx, obj) + fc := graphql.GetFieldContext(ctx) + return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_IntegrationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Procedure_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_directorySyncRuns(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Procedure_workflowTimeline(ctx, field) + return ec.fieldContext_Platform_directorySyncRuns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Procedure().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + return obj.DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { + return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Procedure_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "Platform", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) + return ec.childFields_DirectorySyncRunConnection(ctx, field) }, } defer func() { @@ -117160,625 +120096,883 @@ func (ec *executionContext) fieldContext_Procedure_workflowTimeline(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Procedure_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Platform_directorySyncRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureConnection_edges(ctx, field) + return ec.fieldContext_Platform_directoryAccounts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProcedureEdge) graphql.Marshaler { - return ec.marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { + return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ProcedureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureConnection", + Object: "Platform", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureEdge(ctx, field) + return ec.childFields_DirectoryAccountConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) + return ec.fieldContext_Platform_directoryGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { + return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProcedureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureConnection", + Object: "Platform", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_DirectoryGroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureConnection_totalCount(ctx, field) + return ec.fieldContext_Platform_directoryMemberships(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { + return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProcedureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Platform_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectoryMembershipConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureEdge_node(ctx, field) + return ec.fieldContext_Platform_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { - return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ProcedureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Platform_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureEdge", + Object: "Platform", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Procedure(ctx, field) + return ec.childFields_WorkflowObjectRefConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_sourceAssets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureEdge_cursor(ctx, field) + return ec.fieldContext_Platform_sourceAssets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.SourceAssets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProcedureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Platform_sourceAssets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_sourceAssets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_id(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_sourceEntities(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_id(ctx, field) + return ec.fieldContext_Platform_sourceEntities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.SourceEntities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Program_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Platform_sourceEntities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_sourceEntities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_outOfScopeAssets(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_createdAt(ctx, field) + return ec.fieldContext_Platform_outOfScopeAssets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.OutOfScopeAssets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Platform_outOfScopeAssets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_outOfScopeAssets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_outOfScopeVendors(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_updatedAt(ctx, field) + return ec.fieldContext_Platform_outOfScopeVendors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.OutOfScopeVendors(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Platform_outOfScopeVendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_outOfScopeVendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_applicableFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_createdBy(ctx, field) + return ec.fieldContext_Platform_applicableFrameworks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.ApplicableFrameworks(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { + return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_applicableFrameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_StandardConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_applicableFrameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_generatedScans(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_updatedBy(ctx, field) + return ec.fieldContext_Platform_generatedScans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.GeneratedScans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_generatedScans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_generatedScans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_platformOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_displayID(ctx, field) + return ec.fieldContext_Platform_platformOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.PlatformOwner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_platformOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_systemDetail(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_tags(ctx, field) + return ec.fieldContext_Platform_systemDetail(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.SystemDetail(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { + return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_systemDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SystemDetail(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_ownerID(ctx, field) + return ec.fieldContext_Platform_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return ec.Resolvers.Platform().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Platform_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Program_programKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_programKindName(ctx, field) + return ec.fieldContext_Platform_hasWorkflowHistory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramKindName, nil + return ec.Resolvers.Platform().HasWorkflowHistory(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_programKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Platform", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Program_programKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_programKindID(ctx, field) + return ec.fieldContext_Platform_activeWorkflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramKindID, nil + return ec.Resolvers.Platform().ActiveWorkflowInstances(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_programKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Platform_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Platform_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Platform) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_externalUUID(ctx, field) + return ec.fieldContext_Platform_workflowTimeline(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Platform().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Platform_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Platform", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowEventConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Platform_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Program_name(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_name(ctx, field) + return ec.fieldContext_PlatformConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.PlatformEdge) graphql.Marshaler { + return ec.marshalOPlatformEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlatformConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PlatformEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_description(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_description(ctx, field) + return ec.fieldContext_PlatformConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlatformConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_status(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_status(ctx, field) + return ec.fieldContext_PlatformConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ProgramStatus) graphql.Marshaler { - return ec.marshalNProgramProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐProgramStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Program_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ProgramProgramStatus does not have child fields")) +func (ec *executionContext) fieldContext_PlatformConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Program_frameworkName(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_frameworkName(ctx, field) + return ec.fieldContext_PlatformEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FrameworkName, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_frameworkName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlatformEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Platform(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Program_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PlatformEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_startDate(ctx, field) + return ec.fieldContext_PlatformEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartDate, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_PlatformEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_endDate(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EndDate, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Program_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditorReady(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReady, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Program_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditorWriteComments(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorWriteComments, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Program_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditorReadComments(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReadComments, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_auditFirm(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditFirm(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditFirm, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -117788,1176 +120982,746 @@ func (ec *executionContext) _Program_auditFirm(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Program_auditFirm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_auditor(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditor(ctx, field) + return ec.fieldContext_Procedure_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Auditor, nil + return obj.DisplayID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Program_auditor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_auditorEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_auditorEmail(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorEmail, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_auditorEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_programOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_revision(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_programOwnerID(ctx, field) + return ec.fieldContext_Procedure_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramOwnerID, nil + return obj.Revision, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_programOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_owner(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_owner(_ 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) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Program_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_blockedGroups(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Program_blockedGroups(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_editors(ctx, field) + return ec.fieldContext_Procedure_status(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { + return ec.marshalOProcedureDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_editors(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureDocumentStatus does not have child fields")) } -func (ec *executionContext) _Program_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_managementMode(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_viewers(ctx, field) + return ec.fieldContext_Procedure_managementMode(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ManagementMode, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { + return ec.marshalOProcedureDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_viewers(ctx 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) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureDocumentManagementMode does not have child fields")) } -func (ec *executionContext) _Program_programKind(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_details(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_programKind(ctx, field) + return ec.fieldContext_Procedure_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramKind(ctx) + return obj.Details, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_programKind(_ 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) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_controls(ctx, field) + return ec.fieldContext_Procedure_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_controls(ctx 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) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Program_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_subcontrols(ctx, field) + return ec.fieldContext_Procedure_approvalRequired(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.ApprovalRequired, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_subcontrols(ctx 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) { - return ec.childFields_SubcontrolConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Program_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_reviewDue(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_controlObjectives(ctx, field) + return ec.fieldContext_Procedure_reviewDue(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return obj.ReviewDue, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_controlObjectives(ctx 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) { - return ec.childFields_ControlObjectiveConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Program_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_internalPolicies(ctx, field) + return ec.fieldContext_Procedure_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.ReviewFrequency, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { + return ec.marshalOProcedureFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_internalPolicies(ctx 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) { - return ec.childFields_InternalPolicyConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ProcedureFrequency does not have child fields")) } -func (ec *executionContext) _Program_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_approverID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_procedures(ctx, field) + return ec.fieldContext_Procedure_approverID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.ApproverID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_procedures(ctx 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) { - return ec.childFields_ProcedureConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Program_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_risks(ctx, field) + return ec.fieldContext_Procedure_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.DelegateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_risks(ctx 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) { - return ec.childFields_RiskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Program_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_tasks(ctx, field) + return ec.fieldContext_Procedure_summary(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.Summary, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_tasks(ctx 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) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_notes(ctx, field) + return ec.fieldContext_Procedure_tagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.TagSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_notes(ctx 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) { - return ec.childFields_NoteConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_files(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_files(ctx, field) + return ec.fieldContext_Procedure_dismissedTagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.DismissedTagSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_files(ctx 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) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_evidence(ctx, field) + return ec.fieldContext_Procedure_controlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.ControlSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_evidence(ctx 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) { - return ec.childFields_EvidenceConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_narratives(ctx, field) + return ec.fieldContext_Procedure_dismissedControlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) + return obj.DismissedControlSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_narratives(ctx 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) { - return ec.childFields_NarrativeConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_actionPlans(ctx, field) + return ec.fieldContext_Procedure_improvementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.ImprovementSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_actionPlans(ctx 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) { - return ec.childFields_ActionPlanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_systemDetail(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_systemDetail(ctx, field) + return ec.fieldContext_Procedure_dismissedImprovementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemDetail(ctx) + return obj.DismissedImprovementSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { - return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_systemDetail(_ 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) { - return ec.childFields_SystemDetail(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_users(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_url(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_users(ctx, field) + return ec.fieldContext_Procedure_url(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) + return obj.URL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_users(ctx 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) { - return ec.childFields_UserConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Program_programOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_programOwner(ctx, field) + return ec.fieldContext_Procedure_fileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramOwner(ctx) + return obj.FileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Program_programOwner(_ 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) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Program_members(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Program_members(ctx, field) + return ec.fieldContext_Procedure_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Members(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { - return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Program_members(ctx 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) { - return ec.childFields_ProgramMembershipConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Program_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ProgramConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramConnection_edges(ctx, field) + return ec.fieldContext_Procedure_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProgramEdge) graphql.Marshaler { - return ec.marshalOProgramEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramEdge(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ProgramConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramEdge(ctx, field) + return obj.InternalNotes, nil }, - } - return fc, nil -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _ProgramConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramConnection_pageInfo(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramConnection_totalCount(ctx, field) + return ec.fieldContext_Procedure_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + return obj.SystemInternalID, nil }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ProgramConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramConnection", field, false, false, errors.New("field of type Int does not have child fields")) -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _ProgramEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramEdge_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Node, nil + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { - return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Program(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_procedureKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramEdge_cursor(ctx, field) + return ec.fieldContext_Procedure_procedureKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ProcedureKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_procedureKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_procedureKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_id(ctx, field) + return ec.fieldContext_Procedure_procedureKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.ProcedureKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_procedureKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ProgramMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + return ec.fieldContext_Procedure_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + return ec.fieldContext_Procedure_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + return ec.fieldContext_Procedure_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -118967,336 +121731,364 @@ func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + return ec.fieldContext_Procedure_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ProgramMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_role(ctx, field) + return ec.fieldContext_Procedure_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.WorkflowEligibleMarker, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { - return ec.marshalNProgramMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ProgramMembershipRole does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ProgramMembership_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_programID(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramID, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Procedure", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_userID(ctx, field) + return ec.fieldContext_Procedure_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProgramMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Procedure", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Procedure_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ProgramMembership_program(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_program(ctx, field) + return ec.fieldContext_Procedure_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Program(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProgramMembership_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Program(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Procedure_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_approver(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembership_user(ctx, field) + return ec.fieldContext_Procedure_approver(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.User(ctx) + return obj.Approver(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_approver(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_Group(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) + return ec.fieldContext_Procedure_delegate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.Delegate(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProgramMembershipEdge) graphql.Marshaler { - return ec.marshalOProgramMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipConnection", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembershipEdge(ctx, field) + return ec.childFields_Group(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_procedureKind(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) + return ec.fieldContext_Procedure_procedureKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ProcedureKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_procedureKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipConnection", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) + return ec.fieldContext_Procedure_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Procedure_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Procedure", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipEdge_node(ctx, field) + return ec.fieldContext_Procedure_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Scope(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembership) graphql.Marshaler { - return ec.marshalOProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipEdge", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembership(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) + return ec.fieldContext_Procedure_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProgramMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) -} - -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(string)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v generated.Noder) graphql.Marshaler { - return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + 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 ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -119306,41 +122098,41 @@ func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_controls_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) { +func (ec *executionContext) _Procedure_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_nodes(ctx, field) + return ec.fieldContext_Procedure_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Nodes(ctx, fc.Args["ids"].([]string)) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []generated.Noder) graphql.Marshaler { - return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + 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 ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -119350,41 +122142,41 @@ func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_subcontrols_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) { +func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_apiTokens(ctx, field) + return ec.fieldContext_Procedure_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().APITokens(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.APITokenOrder), fc.Args["where"].(*generated.APITokenWhereInput)) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { - return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_APITokenConnection(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -119394,41 +122186,41 @@ func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_internalPolicies_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) { +func (ec *executionContext) _Procedure_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_actionPlans(ctx, field) + return ec.fieldContext_Procedure_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -119438,41 +122230,41 @@ func (ec *executionContext) fieldContext_Query_actionPlans(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessments(ctx, field) + return ec.fieldContext_Procedure_narratives(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) + return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { - return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentConnection(ctx, field) + return ec.childFields_NarrativeConnection(ctx, field) }, } defer func() { @@ -119482,41 +122274,41 @@ func (ec *executionContext) fieldContext_Query_assessments(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessmentResponses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessmentResponses(ctx, field) + return ec.fieldContext_Procedure_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { - return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponseConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -119526,41 +122318,41 @@ func (ec *executionContext) fieldContext_Query_assessmentResponses(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assets(ctx, field) + return ec.fieldContext_Procedure_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -119570,41 +122362,41 @@ func (ec *executionContext) fieldContext_Query_assets(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_campaigns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaigns(ctx, field) + return ec.fieldContext_Procedure_comments(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } defer func() { @@ -119614,41 +122406,41 @@ func (ec *executionContext) fieldContext_Query_campaigns(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_campaignTargets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaignTargets(ctx, field) + return ec.fieldContext_Procedure_discussions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) + return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetConnection(ctx, field) + return ec.childFields_DiscussionConnection(ctx, field) }, } defer func() { @@ -119658,85 +122450,73 @@ func (ec *executionContext) fieldContext_Query_campaignTargets(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_checkResults(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_file(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_checkResults(ctx, field) + return ec.fieldContext_Procedure_file(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CheckResults(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.CheckResultOrder), fc.Args["where"].(*generated.CheckResultWhereInput)) + return obj.File(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResultConnection) graphql.Marshaler { - return ec.marshalNCheckResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_checkResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CheckResultConnection(ctx, field) + return ec.childFields_File(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_checkResults_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) { +func (ec *executionContext) _Procedure_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_contacts(ctx, field) + return ec.fieldContext_Procedure_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Contacts(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.ContactOrder), fc.Args["where"].(*generated.ContactWhereInput)) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { - return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ContactConnection(ctx, field) + return ec.childFields_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -119746,173 +122526,119 @@ func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_workflowObjectRefs_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) { +func (ec *executionContext) _Procedure_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controls(ctx, field) + return ec.fieldContext_Procedure_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return ec.Resolvers.Procedure().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Query_controlImplementations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlImplementations(ctx, field) + return ec.fieldContext_Procedure_hasWorkflowHistory(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) + return ec.Resolvers.Procedure().HasWorkflowHistory(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { - return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Procedure_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Procedure", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlObjectives(ctx, field) + return ec.fieldContext_Procedure_activeWorkflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return ec.Resolvers.Procedure().ActiveWorkflowInstances(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveConnection(ctx, field) + return ec.childFields_WorkflowInstance(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_customDomains(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Procedure_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_customDomains(ctx, field) + return ec.fieldContext_Procedure_workflowTimeline(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CustomDomains(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.CustomDomainOrder), fc.Args["where"].(*generated.CustomDomainWhereInput)) + return ec.Resolvers.Procedure().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { - return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_customDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomainConnection(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } defer func() { @@ -119922,1361 +122648,767 @@ func (ec *executionContext) fieldContext_Query_customDomains(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Procedure_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_customTypeEnums(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_customTypeEnums(ctx, field) + return ec.fieldContext_ProcedureConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CustomTypeEnums(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.CustomTypeEnumOrder), fc.Args["where"].(*generated.CustomTypeEnumWhereInput)) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { - return ec.marshalNCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProcedureEdge) graphql.Marshaler { + return ec.marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_customTypeEnums(ctx 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: "Query", + Object: "ProcedureConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnumConnection(ctx, field) + return ec.childFields_ProcedureEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_customTypeEnums_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_dnsVerifications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_dnsVerifications(ctx, field) + return ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DNSVerifications(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.DNSVerificationOrder), fc.Args["where"].(*generated.DNSVerificationWhereInput)) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerificationConnection) graphql.Marshaler { - return ec.marshalNDNSVerificationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_dnsVerifications(ctx 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: "Query", + Object: "ProcedureConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DNSVerificationConnection(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_dnsVerifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_directoryAccounts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryAccounts(ctx, field) + return ec.fieldContext_ProcedureConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { - return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccountConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProcedureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Query_directoryGroups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryGroups(ctx, field) + return ec.fieldContext_ProcedureEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { - return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { + return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_directoryGroups(ctx 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: "Query", + Object: "ProcedureEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroupConnection(ctx, field) + return ec.childFields_Procedure(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_directoryMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryMemberships(ctx, field) + return ec.fieldContext_ProcedureEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { - return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembershipConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProcedureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Query_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_id(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directorySyncRuns(ctx, field) + return ec.fieldContext_Program_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { - return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRunConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directorySyncRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Query_discussions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_discussions(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DiscussionConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_documentDataSlice(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DocumentDataSlice(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { - return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentDataConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Query_emailTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_emailTemplates(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { - return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_entities(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_entityTypes(ctx, field) + return ec.fieldContext_Program_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EntityTypes(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.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { - return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityTypeConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_events(ctx, field) + return ec.fieldContext_Program_tags(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EventConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_evidences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_evidences(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Evidences(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Query_exports(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_programKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_exports(ctx, field) + return ec.fieldContext_Program_programKindName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Exports(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.ExportOrder), fc.Args["where"].(*generated.ExportWhereInput)) + return obj.ProgramKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ExportConnection) graphql.Marshaler { - return ec.marshalNExportConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_exports(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ExportConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_exports_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_programKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_programKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_files(ctx, field) + return ec.fieldContext_Program_programKindID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.ProgramKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_programKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Query_findings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_findings(ctx, field) + return ec.fieldContext_Program_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_findingControls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_name(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_findingControls(ctx, field) + return ec.fieldContext_Program_name(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().FindingControls(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.FindingControlOrder), fc.Args["where"].(*generated.FindingControlWhereInput)) + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingControlConnection) graphql.Marshaler { - return ec.marshalNFindingControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_findingControls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_findingControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_description(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groups(ctx, field) + return ec.fieldContext_Program_description(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_status(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groupMemberships(ctx, field) + return ec.fieldContext_Program_status(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().GroupMemberships(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.GroupMembershipOrder), fc.Args["where"].(*generated.GroupMembershipWhereInput)) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { - return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ProgramStatus) graphql.Marshaler { + return ec.marshalNProgramProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐProgramStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupMembershipConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ProgramProgramStatus does not have child fields")) } -func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_frameworkName(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groupSettings(ctx, field) + return ec.fieldContext_Program_frameworkName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().GroupSettings(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.GroupSettingOrder), fc.Args["where"].(*generated.GroupSettingWhereInput)) + return obj.FrameworkName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupSettingConnection) graphql.Marshaler { - return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_groupSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupSettingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_frameworkName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_hushes(ctx, field) + return ec.fieldContext_Program_startDate(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Hushes(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.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) + return obj.StartDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { - return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_hushes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_HushConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hushes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Query_identityHolders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_identityHolders(ctx, field) + return ec.fieldContext_Program_endDate(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.EndDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_integrations(ctx, field) + return ec.fieldContext_Program_auditorReady(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.AuditorReady, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IntegrationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_internalPolicies(ctx, field) + return ec.fieldContext_Program_auditorWriteComments(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.AuditorWriteComments, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_invites(ctx, field) + return ec.fieldContext_Program_auditorReadComments(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Invites(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.InviteOrder), fc.Args["where"].(*generated.InviteWhereInput)) + return obj.AuditorReadComments, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { - return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InviteConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Query_jobResults(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditFirm(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobResults(ctx, field) + return ec.fieldContext_Program_auditFirm(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobResults(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.JobResultOrder), fc.Args["where"].(*generated.JobResultWhereInput)) + return obj.AuditFirm, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResultConnection) graphql.Marshaler { - return ec.marshalNJobResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_jobResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobResultConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditFirm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_jobRunners(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditor(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunners(ctx, field) + return ec.fieldContext_Program_auditor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunners(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.JobRunnerOrder), fc.Args["where"].(*generated.JobRunnerWhereInput)) + return obj.Auditor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { - return ec.marshalNJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_jobRunners(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunners_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_auditorEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunnerRegistrationTokens(ctx, field) + return ec.fieldContext_Program_auditorEmail(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunnerRegistrationTokens(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.JobRunnerRegistrationTokenOrder), fc.Args["where"].(*generated.JobRunnerRegistrationTokenWhereInput)) + return obj.AuditorEmail, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { - return ec.marshalNJobRunnerRegistrationTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerRegistrationTokenConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunnerRegistrationTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_auditorEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_jobRunnerTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_programOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunnerTokens(ctx, field) + return ec.fieldContext_Program_programOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunnerTokens(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.JobRunnerTokenOrder), fc.Args["where"].(*generated.JobRunnerTokenWhereInput)) + return obj.ProgramOwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerTokenConnection) graphql.Marshaler { - return ec.marshalNJobRunnerTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_jobRunnerTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerTokenConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunnerTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Program_programOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Program", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Query_jobTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobTemplates(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobTemplates(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.JobTemplateOrder), fc.Args["where"].(*generated.JobTemplateWhereInput)) + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { - return ec.marshalNJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_jobTemplates(ctx 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: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobTemplateConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_mappableDomains(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_mappableDomains(ctx, field) + return ec.fieldContext_Program_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().MappableDomains(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.MappableDomainOrder), fc.Args["where"].(*generated.MappableDomainWhereInput)) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.MappableDomainConnection) graphql.Marshaler { - return ec.marshalNMappableDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_mappableDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappableDomainConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -121286,41 +123418,41 @@ func (ec *executionContext) fieldContext_Query_mappableDomains(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_mappableDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_mappedControls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_mappedControls(ctx, field) + return ec.fieldContext_Program_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().MappedControls(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.MappedControlOrder), fc.Args["where"].(*generated.MappedControlWhereInput)) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControlConnection) graphql.Marshaler { - return ec.marshalNMappedControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_mappedControls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappedControlConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -121330,41 +123462,41 @@ func (ec *executionContext) fieldContext_Query_mappedControls(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_mappedControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_editors_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) { +func (ec *executionContext) _Program_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_narratives(ctx, field) + return ec.fieldContext_Program_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -121374,85 +123506,73 @@ func (ec *executionContext) fieldContext_Query_narratives(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_viewers_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) { +func (ec *executionContext) _Program_programKind(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notes(ctx, field) + return ec.fieldContext_Program_programKind(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.ProgramKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_programKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_notificationPreferences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notificationPreferences(ctx, field) + return ec.fieldContext_Program_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NotificationPreferences(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.NotificationPreferenceOrder), fc.Args["where"].(*generated.NotificationPreferenceWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreferenceConnection) graphql.Marshaler { - return ec.marshalNNotificationPreferenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_notificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationPreferenceConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -121462,41 +123582,41 @@ func (ec *executionContext) fieldContext_Query_notificationPreferences(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notificationPreferences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_notificationTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notificationTemplates(ctx, field) + return ec.fieldContext_Program_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { - return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_notificationTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplateConnection(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -121506,41 +123626,41 @@ func (ec *executionContext) fieldContext_Query_notificationTemplates(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_subcontrols_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) { +func (ec *executionContext) _Program_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_orgMemberships(ctx, field) + return ec.fieldContext_Program_controlObjectives(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrgMemberships(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) + return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { - return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgMembershipConnection(ctx, field) + return ec.childFields_ControlObjectiveConnection(ctx, field) }, } defer func() { @@ -121550,41 +123670,41 @@ func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_controlObjectives_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) { +func (ec *executionContext) _Program_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_orgSubscriptions(ctx, field) + return ec.fieldContext_Program_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrgSubscriptions(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.OrgSubscriptionOrder), fc.Args["where"].(*generated.OrgSubscriptionWhereInput)) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgSubscriptionConnection) graphql.Marshaler { - return ec.marshalNOrgSubscriptionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgSubscriptionConnection(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -121594,41 +123714,41 @@ func (ec *executionContext) fieldContext_Query_orgSubscriptions(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgSubscriptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_internalPolicies_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) { +func (ec *executionContext) _Program_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_organizations(ctx, field) + return ec.fieldContext_Program_procedures(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Organizations(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.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationConnection(ctx, field) + return ec.childFields_ProcedureConnection(ctx, field) }, } defer func() { @@ -121638,41 +123758,41 @@ func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_procedures_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) { +func (ec *executionContext) _Program_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_organizationSettings(ctx, field) + return ec.fieldContext_Program_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrganizationSettings(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.OrganizationSettingOrder), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSettingConnection) graphql.Marshaler { - return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationSettingConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -121682,41 +123802,41 @@ func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_risks_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) { +func (ec *executionContext) _Program_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_personalAccessTokens(ctx, field) + return ec.fieldContext_Program_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { - return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PersonalAccessTokenConnection(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -121726,41 +123846,41 @@ func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_platforms(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_platforms(ctx, field) + return ec.fieldContext_Program_notes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } defer func() { @@ -121770,41 +123890,41 @@ func (ec *executionContext) fieldContext_Query_platforms(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_notes_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) { +func (ec *executionContext) _Program_files(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_procedures(ctx, field) + return ec.fieldContext_Program_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -121814,41 +123934,41 @@ func (ec *executionContext) fieldContext_Query_procedures(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_files_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) { +func (ec *executionContext) _Program_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_programs(ctx, field) + return ec.fieldContext_Program_evidence(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_EvidenceConnection(ctx, field) }, } defer func() { @@ -121858,41 +123978,41 @@ func (ec *executionContext) fieldContext_Query_programs(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_evidence_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) { +func (ec *executionContext) _Program_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_programMemberships(ctx, field) + return ec.fieldContext_Program_narratives(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ProgramMemberships(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) + return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { - return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_programMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembershipConnection(ctx, field) + return ec.childFields_NarrativeConnection(ctx, field) }, } defer func() { @@ -121902,41 +124022,41 @@ func (ec *executionContext) fieldContext_Query_programMemberships(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_remediations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_remediations(ctx, field) + return ec.fieldContext_Program_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_ActionPlanConnection(ctx, field) }, } defer func() { @@ -121946,85 +124066,73 @@ func (ec *executionContext) fieldContext_Query_remediations(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_systemDetail(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_reviews(ctx, field) + return ec.fieldContext_Program_systemDetail(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.SystemDetail(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { + return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_systemDetail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewConnection(ctx, field) + return ec.childFields_SystemDetail(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_reviews_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) { +func (ec *executionContext) _Program_users(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_risks(ctx, field) + return ec.fieldContext_Program_users(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_UserConnection(ctx, field) }, } defer func() { @@ -122034,85 +124142,73 @@ func (ec *executionContext) fieldContext_Query_risks(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_slaDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_programOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_slaDefinitions(ctx, field) + return ec.fieldContext_Program_programOwner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SLADefinitions(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.SLADefinitionOrder), fc.Args["where"].(*generated.SLADefinitionWhereInput)) + return obj.ProgramOwner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinitionConnection) graphql.Marshaler { - return ec.marshalNSLADefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_slaDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_programOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SLADefinitionConnection(ctx, field) + return ec.childFields_User(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_slaDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_scans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Program_members(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scans(ctx, field) + return ec.fieldContext_Program_members(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.Members(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { + return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_members(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "Program", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) + return ec.childFields_ProgramMembershipConnection(ctx, field) }, } defer func() { @@ -122122,525 +124218,573 @@ func (ec *executionContext) fieldContext_Query_scans(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Program_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_scheduledJobs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scheduledJobs(ctx, field) + return ec.fieldContext_ProgramConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { - return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProgramEdge) graphql.Marshaler { + return ec.marshalOProgramEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_scheduledJobs(ctx 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: "Query", + Object: "ProgramConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobConnection(ctx, field) + return ec.childFields_ProgramEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_scheduledJobRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scheduledJobRuns(ctx, field) + return ec.fieldContext_ProgramConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ScheduledJobRuns(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.ScheduledJobRunOrder), fc.Args["where"].(*generated.ScheduledJobRunWhereInput)) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRunConnection) graphql.Marshaler { - return ec.marshalNScheduledJobRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_scheduledJobRuns(ctx 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: "Query", + Object: "ProgramConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobRunConnection(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scheduledJobRuns_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) { +func (ec *executionContext) _ProgramConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_standards(ctx, field) + return ec.fieldContext_ProgramConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Standards(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { - return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_standards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_StandardConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subcontrols(ctx, field) + return ec.fieldContext_ProgramEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { + return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_subcontrols(ctx 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: "Query", + Object: "ProgramEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_Program(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_subprocessors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subprocessors(ctx, field) + return ec.fieldContext_ProgramEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subprocessors(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.SubprocessorOrder), fc.Args["where"].(*generated.SubprocessorWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { - return ec.marshalNSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_subprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubprocessorConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subscribers(ctx, field) + return ec.fieldContext_ProgramMembership_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subscribers(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.SubscriberOrder), fc.Args["where"].(*generated.SubscriberWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { - return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubscriberConnection(ctx, field) +func (ec *executionContext) fieldContext_ProgramMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.CreatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Query_systemDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_systemDetails(ctx, field) + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SystemDetails(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.SystemDetailOrder), fc.Args["where"].(*generated.SystemDetailWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { - return ec.marshalNSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_Query_systemDetails(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) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_role(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Role, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { + return ec.marshalNProgramMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ProgramMembershipRole does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_programID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ProgramID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_userID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UserID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembership", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _ProgramMembership_program(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembership_program(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Program(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) + }, + true, + true, + ) +} +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) { - return ec.childFields_SystemDetailConnection(ctx, field) + return ec.childFields_Program(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_systemDetails_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) { +func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tfaSettings(ctx, field) + return ec.fieldContext_ProgramMembership_user(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TfaSettings(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.TFASettingOrder), fc.Args["where"].(*generated.TFASettingWhereInput)) + return obj.User(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { - return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_tfaSettings(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) { - return ec.childFields_TFASettingConnection(ctx, field) + return ec.childFields_User(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_tagDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tagDefinitions(ctx, field) + return ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { - return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ProgramMembershipEdge) graphql.Marshaler { + return ec.marshalOProgramMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_tagDefinitions(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) { - return ec.childFields_TagDefinitionConnection(ctx, field) + return ec.childFields_ProgramMembershipEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tagDefinitions_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) { +func (ec *executionContext) _ProgramMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tasks(ctx, field) + return ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_tasks(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) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tasks_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) { +func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_templates(ctx, field) + return ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { - return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_templates(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) { + return graphql.NewScalarFieldContext("ProgramMembershipConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembership) graphql.Marshaler { + return ec.marshalOProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, selections, v) + }, + true, + false, + ) +} +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) { - return ec.childFields_TemplateConnection(ctx, field) + return ec.childFields_ProgramMembership(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_trustCenters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenters(ctx, field) + return ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenters(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.TrustCenterOrder), fc.Args["where"].(*generated.TrustCenterWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterConnection) graphql.Marshaler { - return ec.marshalNTrustCenterConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenters(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) { + return graphql.NewScalarFieldContext("ProgramMembershipEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Query_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v generated.Noder) graphql.Marshaler { + return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterConnection(ctx, field) + return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") }, } defer func() { @@ -122650,41 +124794,41 @@ func (ec *executionContext) fieldContext_Query_trustCenters(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenters_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_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterCompliances(ctx, field) + return ec.fieldContext_Query_nodes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) + return ec.Resolvers.Query().Nodes(ctx, fc.Args["ids"].([]string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { - return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []generated.Noder) graphql.Marshaler { + return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterCompliances(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) { - return ec.childFields_TrustCenterComplianceConnection(ctx, field) + return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") }, } defer func() { @@ -122694,41 +124838,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterCompliances(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterCompliances_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_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_apiTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterDocs(ctx, field) + return ec.fieldContext_Query_apiTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) + return ec.Resolvers.Query().APITokens(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.APITokenOrder), fc.Args["where"].(*generated.APITokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { - return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { + return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterDocs(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDocConnection(ctx, field) + return ec.childFields_APITokenConnection(ctx, field) }, } defer func() { @@ -122738,41 +124882,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterDocs(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterDocs_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_trustCenterEntities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterEntities(ctx, field) + return ec.fieldContext_Query_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterEntities(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.TrustCenterEntityOrder), fc.Args["where"].(*generated.TrustCenterEntityWhereInput)) + return ec.Resolvers.Query().ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { - return ec.marshalNTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterEntities(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntityConnection(ctx, field) + return ec.childFields_ActionPlanConnection(ctx, field) }, } defer func() { @@ -122782,41 +124926,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterEntities(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterEntities_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_trustCenterFAQs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterFAQs(ctx, field) + return ec.fieldContext_Query_assessments(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterFAQs(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.TrustCenterFAQOrder), fc.Args["where"].(*generated.TrustCenterFAQWhereInput)) + return ec.Resolvers.Query().Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQConnection) graphql.Marshaler { - return ec.marshalNTrustCenterFAQConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { + return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterFAQs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterFAQConnection(ctx, field) + return ec.childFields_AssessmentConnection(ctx, field) }, } defer func() { @@ -122826,41 +124970,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterFAQs(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterFAQs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessmentResponses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterNdaRequests(ctx, field) + return ec.fieldContext_Query_assessmentResponses(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterNdaRequests(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.TrustCenterNDARequestOrder), fc.Args["where"].(*generated.TrustCenterNDARequestWhereInput)) + return ec.Resolvers.Query().AssessmentResponses(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.AssessmentResponseOrder), fc.Args["where"].(*generated.AssessmentResponseWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequestConnection) graphql.Marshaler { - return ec.marshalNTrustCenterNDARequestConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { + return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterNDARequestConnection(ctx, field) + return ec.childFields_AssessmentResponseConnection(ctx, field) }, } defer func() { @@ -122870,41 +125014,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterNdaRequests(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterNdaRequests_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterSettings(ctx, field) + return ec.fieldContext_Query_assets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterSettings(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.TrustCenterSettingOrder), fc.Args["where"].(*generated.TrustCenterSettingWhereInput)) + return ec.Resolvers.Query().Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSettingConnection) graphql.Marshaler { - return ec.marshalNTrustCenterSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSettingConnection(ctx, field) + return ec.childFields_AssetConnection(ctx, field) }, } defer func() { @@ -122914,41 +125058,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterSettings(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_campaigns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterSubprocessors(ctx, field) + return ec.fieldContext_Query_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) + return ec.Resolvers.Query().Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { - return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) + return ec.childFields_CampaignConnection(ctx, field) }, } defer func() { @@ -122958,41 +125102,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterSubprocessors(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_campaignTargets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterWatermarkConfigs(ctx, field) + return ec.fieldContext_Query_campaignTargets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterWatermarkConfigs(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.TrustCenterWatermarkConfigOrder), fc.Args["where"].(*generated.TrustCenterWatermarkConfigWhereInput)) + return ec.Resolvers.Query().CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfigConnection) graphql.Marshaler { - return ec.marshalNTrustCenterWatermarkConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfigConnection(ctx, field) + return ec.childFields_CampaignTargetConnection(ctx, field) }, } defer func() { @@ -123002,41 +125146,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfigs(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterWatermarkConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_campaignTargets_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) { +func (ec *executionContext) _Query_checkResults(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_users(ctx, field) + return ec.fieldContext_Query_checkResults(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) + return ec.Resolvers.Query().CheckResults(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.CheckResultOrder), fc.Args["where"].(*generated.CheckResultWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResultConnection) graphql.Marshaler { + return ec.marshalNCheckResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResultConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_checkResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserConnection(ctx, field) + return ec.childFields_CheckResultConnection(ctx, field) }, } defer func() { @@ -123046,41 +125190,41 @@ 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_checkResults_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) { +func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_userSettings(ctx, field) + return ec.fieldContext_Query_contacts(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().UserSettings(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.UserSettingOrder), fc.Args["where"].(*generated.UserSettingWhereInput)) + return ec.Resolvers.Query().Contacts(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.ContactOrder), fc.Args["where"].(*generated.ContactWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSettingConnection) graphql.Marshaler { - return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { + return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_userSettings(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserSettingConnection(ctx, field) + return ec.childFields_ContactConnection(ctx, field) }, } defer func() { @@ -123090,41 +125234,41 @@ 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_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vendorRiskScores(ctx, field) + return ec.fieldContext_Query_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) + return ec.Resolvers.Query().Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { - return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vendorRiskScores(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScoreConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -123134,41 +125278,41 @@ func (ec *executionContext) fieldContext_Query_vendorRiskScores(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vendorRiskScores_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_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlImplementations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vendorScoringConfigs(ctx, field) + return ec.fieldContext_Query_controlImplementations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VendorScoringConfigs(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.VendorScoringConfigOrder), fc.Args["where"].(*generated.VendorScoringConfigWhereInput)) + return ec.Resolvers.Query().ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfigConnection) graphql.Marshaler { - return ec.marshalNVendorScoringConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { + return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorScoringConfigConnection(ctx, field) + return ec.childFields_ControlImplementationConnection(ctx, field) }, } defer func() { @@ -123178,41 +125322,41 @@ func (ec *executionContext) fieldContext_Query_vendorScoringConfigs(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vendorScoringConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_vulnerabilities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vulnerabilities(ctx, field) + return ec.fieldContext_Query_controlObjectives(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return ec.Resolvers.Query().ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vulnerabilities(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityConnection(ctx, field) + return ec.childFields_ControlObjectiveConnection(ctx, field) }, } defer func() { @@ -123222,41 +125366,41 @@ func (ec *executionContext) fieldContext_Query_vulnerabilities(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vulnerabilities_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_webauthns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_customDomains(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_webauthns(ctx, field) + return ec.fieldContext_Query_customDomains(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Webauthns(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.WebauthnOrder), fc.Args["where"].(*generated.WebauthnWhereInput)) + return ec.Resolvers.Query().CustomDomains(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.CustomDomainOrder), fc.Args["where"].(*generated.CustomDomainWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WebauthnConnection) graphql.Marshaler { - return ec.marshalNWebauthnConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { + return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_webauthns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_customDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WebauthnConnection(ctx, field) + return ec.childFields_CustomDomainConnection(ctx, field) }, } defer func() { @@ -123266,41 +125410,41 @@ func (ec *executionContext) fieldContext_Query_webauthns(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_webauthns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowAssignments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_customTypeEnums(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowAssignments(ctx, field) + return ec.fieldContext_Query_customTypeEnums(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) + return ec.Resolvers.Query().CustomTypeEnums(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.CustomTypeEnumOrder), fc.Args["where"].(*generated.CustomTypeEnumWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { + return ec.marshalNCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_customTypeEnums(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentConnection(ctx, field) + return ec.childFields_CustomTypeEnumConnection(ctx, field) }, } defer func() { @@ -123310,41 +125454,41 @@ func (ec *executionContext) fieldContext_Query_workflowAssignments(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_customTypeEnums_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_dnsVerifications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowAssignmentTargets(ctx, field) + return ec.fieldContext_Query_dnsVerifications(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) + return ec.Resolvers.Query().DNSVerifications(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.DNSVerificationOrder), fc.Args["where"].(*generated.DNSVerificationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerificationConnection) graphql.Marshaler { + return ec.marshalNDNSVerificationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerificationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_dnsVerifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) + return ec.childFields_DNSVerificationConnection(ctx, field) }, } defer func() { @@ -123354,41 +125498,41 @@ func (ec *executionContext) fieldContext_Query_workflowAssignmentTargets(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_dnsVerifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directoryAccounts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowDefinitions(ctx, field) + return ec.fieldContext_Query_directoryAccounts(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowDefinitions(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.WorkflowDefinitionOrder), fc.Args["where"].(*generated.WorkflowDefinitionWhereInput)) + return ec.Resolvers.Query().DirectoryAccounts(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.DirectoryAccountOrder), fc.Args["where"].(*generated.DirectoryAccountWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinitionConnection) graphql.Marshaler { - return ec.marshalNWorkflowDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { + return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowDefinitionConnection(ctx, field) + return ec.childFields_DirectoryAccountConnection(ctx, field) }, } defer func() { @@ -123398,41 +125542,41 @@ func (ec *executionContext) fieldContext_Query_workflowDefinitions(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowEvents(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directoryGroups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowEvents(ctx, field) + return ec.fieldContext_Query_directoryGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) + return ec.Resolvers.Query().DirectoryGroups(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { + return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) + return ec.childFields_DirectoryGroupConnection(ctx, field) }, } defer func() { @@ -123442,41 +125586,41 @@ func (ec *executionContext) fieldContext_Query_workflowEvents(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowInstances(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directoryMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowInstances(ctx, field) + return ec.fieldContext_Query_directoryMemberships(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowInstances(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.WorkflowInstanceOrder), fc.Args["where"].(*generated.WorkflowInstanceWhereInput)) + return ec.Resolvers.Query().DirectoryMemberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstanceConnection) graphql.Marshaler { - return ec.marshalNWorkflowInstanceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { + return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstanceConnection(ctx, field) + return ec.childFields_DirectoryMembershipConnection(ctx, field) }, } defer func() { @@ -123486,41 +125630,41 @@ func (ec *executionContext) fieldContext_Query_workflowInstances(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowObjectRefs(ctx, field) + return ec.fieldContext_Query_directorySyncRuns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return ec.Resolvers.Query().DirectorySyncRuns(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.DirectorySyncRunOrder), fc.Args["where"].(*generated.DirectorySyncRunWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRunConnection) graphql.Marshaler { + return ec.marshalNDirectorySyncRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directorySyncRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) + return ec.childFields_DirectorySyncRunConnection(ctx, field) }, } defer func() { @@ -123530,41 +125674,41 @@ func (ec *executionContext) fieldContext_Query_workflowObjectRefs(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directorySyncRuns_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) { +func (ec *executionContext) _Query_discussions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_actionPlan(ctx, field) + return ec.fieldContext_Query_discussions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ActionPlan(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { - return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlan(ctx, field) + return ec.childFields_DiscussionConnection(ctx, field) }, } defer func() { @@ -123574,41 +125718,41 @@ 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_discussions_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) { +func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_apiToken(ctx, field) + return ec.fieldContext_Query_documentDataSlice(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().APIToken(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().DocumentDataSlice(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { + return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_apiToken(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_APIToken(ctx, field) + return ec.childFields_DocumentDataConnection(ctx, field) }, } defer func() { @@ -123618,41 +125762,41 @@ 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_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_emailTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessment(ctx, field) + return ec.fieldContext_Query_emailTemplates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Assessment(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { - return ec.marshalNAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { + return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_assessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Assessment(ctx, field) + return ec.childFields_EmailTemplateConnection(ctx, field) }, } defer func() { @@ -123662,41 +125806,41 @@ func (ec *executionContext) fieldContext_Query_assessment(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessmentResponse(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessmentResponse(ctx, field) + return ec.fieldContext_Query_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().AssessmentResponse(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { - return ec.marshalNAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_assessmentResponse(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponse(ctx, field) + return ec.childFields_EntityConnection(ctx, field) }, } defer func() { @@ -123706,41 +125850,41 @@ func (ec *executionContext) fieldContext_Query_assessmentResponse(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessmentResponse_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_asset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_asset(ctx, field) + return ec.fieldContext_Query_entityTypes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Asset(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().EntityTypes(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.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Asset) graphql.Marshaler { - return ec.marshalNAsset2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAsset(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { + return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_asset(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Asset(ctx, field) + return ec.childFields_EntityTypeConnection(ctx, field) }, } defer func() { @@ -123750,41 +125894,41 @@ func (ec *executionContext) fieldContext_Query_asset(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_asset_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_campaign(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaign(ctx, field) + return ec.fieldContext_Query_events(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Campaign(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalNCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_campaign(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Campaign(ctx, field) + return ec.childFields_EventConnection(ctx, field) }, } defer func() { @@ -123794,41 +125938,41 @@ func (ec *executionContext) fieldContext_Query_campaign(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaign_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_campaignTarget(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_evidences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaignTarget(ctx, field) + return ec.fieldContext_Query_evidences(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CampaignTarget(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Evidences(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { - return ec.marshalNCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_campaignTarget(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTarget(ctx, field) + return ec.childFields_EvidenceConnection(ctx, field) }, } defer func() { @@ -123838,41 +125982,41 @@ func (ec *executionContext) fieldContext_Query_campaignTarget(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaignTarget_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_checkResult(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_exports(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_checkResult(ctx, field) + return ec.fieldContext_Query_exports(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CheckResult(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Exports(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.ExportOrder), fc.Args["where"].(*generated.ExportWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResult) graphql.Marshaler { - return ec.marshalNCheckResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResult(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ExportConnection) graphql.Marshaler { + return ec.marshalNExportConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExportConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_checkResult(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_exports(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CheckResult(ctx, field) + return ec.childFields_ExportConnection(ctx, field) }, } defer func() { @@ -123882,41 +126026,41 @@ func (ec *executionContext) fieldContext_Query_checkResult(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_checkResult_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_exports_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) { +func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_contact(ctx, field) + return ec.fieldContext_Query_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Contact(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_contact(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Contact(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -123926,41 +126070,41 @@ 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_files_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) { +func (ec *executionContext) _Query_findings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_control(ctx, field) + return ec.fieldContext_Query_findings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Control(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { - return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_control(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Control(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } defer func() { @@ -123970,41 +126114,41 @@ 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_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_controlDiff(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_findingControls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlDiff(ctx, field) + return ec.fieldContext_Query_findingControls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlDiff(ctx, fc.Args["input"].(model.ControlDiffInput)) + return ec.Resolvers.Query().FindingControls(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.FindingControlOrder), fc.Args["where"].(*generated.FindingControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.ControlDiffPayload) graphql.Marshaler { - return ec.marshalNControlDiffPayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDiffPayload(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingControlConnection) graphql.Marshaler { + return ec.marshalNFindingControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlDiff(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_findingControls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlDiffPayload(ctx, field) + return ec.childFields_FindingControlConnection(ctx, field) }, } defer func() { @@ -124014,87 +126158,41 @@ func (ec *executionContext) fieldContext_Query_controlDiff(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlDiff_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_findingControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_controlCategories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlCategories(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().ControlCategories(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Query_controlCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Query", field, true, true, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Query_controlSubcategories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlSubcategories(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().ControlSubcategories(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Query_controlSubcategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Query", field, true, true, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Query_controlCategoriesByFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlCategoriesByFramework(ctx, field) + return ec.fieldContext_Query_groups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlCategoriesByFramework(ctx, fc.Args["orderBy"].([]*model.ControlCategoryOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return ec.Resolvers.Query().Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlCategoryEdge) graphql.Marshaler { - return ec.marshalOControlCategoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryEdgeᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_controlCategoriesByFramework(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlCategoryEdge(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -124104,41 +126202,41 @@ func (ec *executionContext) fieldContext_Query_controlCategoriesByFramework(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlCategoriesByFramework_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_controlSubcategoriesByFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlSubcategoriesByFramework(ctx, field) + return ec.fieldContext_Query_groupMemberships(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlSubcategoriesByFramework(ctx, fc.Args["orderBy"].([]*model.ControlCategoryOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return ec.Resolvers.Query().GroupMemberships(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.GroupMembershipOrder), fc.Args["where"].(*generated.GroupMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlCategoryEdge) graphql.Marshaler { - return ec.marshalOControlCategoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryEdgeᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { + return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_controlSubcategoriesByFramework(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlCategoryEdge(ctx, field) + return ec.childFields_GroupMembershipConnection(ctx, field) }, } defer func() { @@ -124148,41 +126246,41 @@ func (ec *executionContext) fieldContext_Query_controlSubcategoriesByFramework(c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlSubcategoriesByFramework_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_controlsGroupByCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlsGroupByCategory(ctx, field) + return ec.fieldContext_Query_groupSettings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlsGroupByCategory(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput), fc.Args["category"].(*string)) + return ec.Resolvers.Query().GroupSettings(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.GroupSettingOrder), fc.Args["where"].(*generated.GroupSettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.ControlGroupConnection) graphql.Marshaler { - return ec.marshalNControlGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupSettingConnection) graphql.Marshaler { + return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlsGroupByCategory(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlGroupConnection(ctx, field) + return ec.childFields_GroupSettingConnection(ctx, field) }, } defer func() { @@ -124192,41 +126290,41 @@ func (ec *executionContext) fieldContext_Query_controlsGroupByCategory(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlsGroupByCategory_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_controlImplementation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlImplementation(ctx, field) + return ec.fieldContext_Query_hushes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlImplementation(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Hushes(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.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementation) graphql.Marshaler { - return ec.marshalNControlImplementation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementation(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { + return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlImplementation(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementation(ctx, field) + return ec.childFields_HushConnection(ctx, field) }, } defer func() { @@ -124236,41 +126334,41 @@ func (ec *executionContext) fieldContext_Query_controlImplementation(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlImplementation_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_controlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_identityHolders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlObjective(ctx, field) + return ec.fieldContext_Query_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlObjective(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { - return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjective(ctx, field) + return ec.childFields_IdentityHolderConnection(ctx, field) }, } defer func() { @@ -124280,41 +126378,41 @@ 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_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_customDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_customDomain(ctx, field) + return ec.fieldContext_Query_integrations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CustomDomain(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { - return ec.marshalNCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_customDomain(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomain(ctx, field) + return ec.childFields_IntegrationConnection(ctx, field) }, } defer func() { @@ -124324,41 +126422,41 @@ func (ec *executionContext) fieldContext_Query_customDomain(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_customDomain_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_customTypeEnum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_customTypeEnum(ctx, field) + return ec.fieldContext_Query_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CustomTypeEnum(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalNCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_customTypeEnum(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -124368,41 +126466,41 @@ func (ec *executionContext) fieldContext_Query_customTypeEnum(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_customTypeEnum_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_directoryAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryAccount(ctx, field) + return ec.fieldContext_Query_invites(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryAccount(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Invites(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.InviteOrder), fc.Args["where"].(*generated.InviteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { - return ec.marshalNDirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { + return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directoryAccount(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccount(ctx, field) + return ec.childFields_InviteConnection(ctx, field) }, } defer func() { @@ -124412,41 +126510,41 @@ func (ec *executionContext) fieldContext_Query_directoryAccount(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryAccount_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_directoryGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobResults(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryGroup(ctx, field) + return ec.fieldContext_Query_jobResults(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryGroup(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobResults(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.JobResultOrder), fc.Args["where"].(*generated.JobResultWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { - return ec.marshalNDirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResultConnection) graphql.Marshaler { + return ec.marshalNJobResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResultConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directoryGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroup(ctx, field) + return ec.childFields_JobResultConnection(ctx, field) }, } defer func() { @@ -124456,41 +126554,41 @@ func (ec *executionContext) fieldContext_Query_directoryGroup(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_directoryMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunners(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directoryMembership(ctx, field) + return ec.fieldContext_Query_jobRunners(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectoryMembership(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobRunners(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.JobRunnerOrder), fc.Args["where"].(*generated.JobRunnerWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { - return ec.marshalNDirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { + return ec.marshalNJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directoryMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunners(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembership(ctx, field) + return ec.childFields_JobRunnerConnection(ctx, field) }, } defer func() { @@ -124500,41 +126598,41 @@ func (ec *executionContext) fieldContext_Query_directoryMembership(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directoryMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobRunners_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_directorySyncRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_directorySyncRun(ctx, field) + return ec.fieldContext_Query_jobRunnerRegistrationTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DirectorySyncRun(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobRunnerRegistrationTokens(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.JobRunnerRegistrationTokenOrder), fc.Args["where"].(*generated.JobRunnerRegistrationTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { - return ec.marshalNDirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { + return ec.marshalNJobRunnerRegistrationTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationTokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_directorySyncRun(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunnerRegistrationTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRun(ctx, field) + return ec.childFields_JobRunnerRegistrationTokenConnection(ctx, field) }, } defer func() { @@ -124544,41 +126642,41 @@ func (ec *executionContext) fieldContext_Query_directorySyncRun(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_directorySyncRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobRunnerRegistrationTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_discussion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunnerTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_discussion(ctx, field) + return ec.fieldContext_Query_jobRunnerTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Discussion(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobRunnerTokens(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.JobRunnerTokenOrder), fc.Args["where"].(*generated.JobRunnerTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Discussion) graphql.Marshaler { - return ec.marshalNDiscussion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussion(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerTokenConnection) graphql.Marshaler { + return ec.marshalNJobRunnerTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerTokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunnerTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Discussion(ctx, field) + return ec.childFields_JobRunnerTokenConnection(ctx, field) }, } defer func() { @@ -124588,41 +126686,41 @@ func (ec *executionContext) fieldContext_Query_discussion(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_discussion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobRunnerTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_dnsVerification(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_dnsVerification(ctx, field) + return ec.fieldContext_Query_jobTemplates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DNSVerification(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobTemplates(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.JobTemplateOrder), fc.Args["where"].(*generated.JobTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerification) graphql.Marshaler { - return ec.marshalNDNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { + return ec.marshalNJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_dnsVerification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DNSVerification(ctx, field) + return ec.childFields_JobTemplateConnection(ctx, field) }, } defer func() { @@ -124632,41 +126730,41 @@ func (ec *executionContext) fieldContext_Query_dnsVerification(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_dnsVerification_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobTemplates_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) { +func (ec *executionContext) _Query_mappableDomains(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_documentData(ctx, field) + return ec.fieldContext_Query_mappableDomains(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().DocumentData(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().MappableDomains(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.MappableDomainOrder), fc.Args["where"].(*generated.MappableDomainWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappableDomainConnection) graphql.Marshaler { + return ec.marshalNMappableDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomainConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_mappableDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentData(ctx, field) + return ec.childFields_MappableDomainConnection(ctx, field) }, } defer func() { @@ -124676,41 +126774,41 @@ 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_mappableDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_emailTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_mappedControls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_emailTemplate(ctx, field) + return ec.fieldContext_Query_mappedControls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EmailTemplate(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().MappedControls(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.MappedControlOrder), fc.Args["where"].(*generated.MappedControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplate) graphql.Marshaler { - return ec.marshalNEmailTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControlConnection) graphql.Marshaler { + return ec.marshalNMappedControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_emailTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_mappedControls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplate(ctx, field) + return ec.childFields_MappedControlConnection(ctx, field) }, } defer func() { @@ -124720,73 +126818,85 @@ func (ec *executionContext) fieldContext_Query_emailTemplate(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_emailTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_mappedControls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_emailTemplateCatalog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_narratives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_emailTemplateCatalog(ctx, field) + return ec.fieldContext_Query_narratives(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().EmailTemplateCatalog(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.EmailTemplateCatalog) graphql.Marshaler { - return ec.marshalNEmailTemplateCatalog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEmailTemplateCatalog(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_emailTemplateCatalog(_ 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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateCatalog(ctx, field) + return ec.childFields_NarrativeConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narratives_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) { +func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_entity(ctx, field) + return ec.fieldContext_Query_notes(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Entity(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Notes(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_entity(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Entity(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } defer func() { @@ -124796,41 +126906,41 @@ 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_notes_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) { +func (ec *executionContext) _Query_notificationPreferences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_entityType(ctx, field) + return ec.fieldContext_Query_notificationPreferences(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EntityType(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().NotificationPreferences(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.NotificationPreferenceOrder), fc.Args["where"].(*generated.NotificationPreferenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreferenceConnection) graphql.Marshaler { + return ec.marshalNNotificationPreferenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityType(ctx, field) + return ec.childFields_NotificationPreferenceConnection(ctx, field) }, } defer func() { @@ -124840,41 +126950,41 @@ 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_notificationPreferences_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) { +func (ec *executionContext) _Query_notificationTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_event(ctx, field) + return ec.fieldContext_Query_notificationTemplates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Event(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Event) graphql.Marshaler { - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { + return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notificationTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Event(ctx, field) + return ec.childFields_NotificationTemplateConnection(ctx, field) }, } defer func() { @@ -124884,41 +126994,41 @@ 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_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_evidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_evidence(ctx, field) + return ec.fieldContext_Query_orgMemberships(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Evidence(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().OrgMemberships(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { - return ec.marshalNEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { + return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_evidence(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Evidence(ctx, field) + return ec.childFields_OrgMembershipConnection(ctx, field) }, } defer func() { @@ -124928,41 +127038,41 @@ func (ec *executionContext) fieldContext_Query_evidence(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_evidence_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_export(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_export(ctx, field) + return ec.fieldContext_Query_orgSubscriptions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Export(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().OrgSubscriptions(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.OrgSubscriptionOrder), fc.Args["where"].(*generated.OrgSubscriptionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Export) graphql.Marshaler { - return ec.marshalNExport2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExport(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgSubscriptionConnection) graphql.Marshaler { + return ec.marshalNOrgSubscriptionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_export(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Export(ctx, field) + return ec.childFields_OrgSubscriptionConnection(ctx, field) }, } defer func() { @@ -124972,41 +127082,41 @@ func (ec *executionContext) fieldContext_Query_export(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_export_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_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_file(ctx, field) + return ec.fieldContext_Query_organizations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().File(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Organizations(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)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_file(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_OrganizationConnection(ctx, field) }, } defer func() { @@ -125016,41 +127126,41 @@ 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_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_finding(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_finding(ctx, field) + return ec.fieldContext_Query_organizationSettings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Finding(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().OrganizationSettings(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.OrganizationSettingOrder), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Finding) graphql.Marshaler { - return ec.marshalNFinding2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFinding(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSettingConnection) graphql.Marshaler { + return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_finding(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Finding(ctx, field) + return ec.childFields_OrganizationSettingConnection(ctx, field) }, } defer func() { @@ -125060,41 +127170,41 @@ func (ec *executionContext) fieldContext_Query_finding(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_finding_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_findingControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_findingControl(ctx, field) + return ec.fieldContext_Query_personalAccessTokens(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().FindingControl(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingControl) graphql.Marshaler { - return ec.marshalNFindingControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControl(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { + return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_findingControl(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingControl(ctx, field) + return ec.childFields_PersonalAccessTokenConnection(ctx, field) }, } defer func() { @@ -125104,41 +127214,41 @@ func (ec *executionContext) fieldContext_Query_findingControl(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_findingControl_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_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_platforms(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_group(ctx, field) + return ec.fieldContext_Query_platforms(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Group(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } defer func() { @@ -125148,41 +127258,41 @@ 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_platforms_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) { +func (ec *executionContext) _Query_procedures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groupMembership(ctx, field) + return ec.fieldContext_Query_procedures(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().GroupMembership(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_groupMembership(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupMembership(ctx, field) + return ec.childFields_ProcedureConnection(ctx, field) }, } defer func() { @@ -125192,41 +127302,41 @@ 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_procedures_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) { +func (ec *executionContext) _Query_programs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groupSetting(ctx, field) + return ec.fieldContext_Query_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().GroupSetting(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_groupSetting(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupSetting(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -125236,41 +127346,41 @@ 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_programs_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) { +func (ec *executionContext) _Query_programMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_hush(ctx, field) + return ec.fieldContext_Query_programMemberships(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Hush(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ProgramMemberships(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Hush) graphql.Marshaler { - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { + return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_hush(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Hush(ctx, field) + return ec.childFields_ProgramMembershipConnection(ctx, field) }, } defer func() { @@ -125280,41 +127390,41 @@ 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_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_identityHolder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_remediations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_identityHolder(ctx, field) + return ec.fieldContext_Query_remediations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().IdentityHolder(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { - return ec.marshalNIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_identityHolder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolder(ctx, field) + return ec.childFields_RemediationConnection(ctx, field) }, } defer func() { @@ -125324,41 +127434,41 @@ func (ec *executionContext) fieldContext_Query_identityHolder(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_identityHolder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_remediations_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) { +func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_integration(ctx, field) + return ec.fieldContext_Query_reviews(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Integration(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Integration(ctx, field) + return ec.childFields_ReviewConnection(ctx, field) }, } defer func() { @@ -125368,41 +127478,41 @@ 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_reviews_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) { +func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_internalPolicy(ctx, field) + return ec.fieldContext_Query_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().InternalPolicy(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { - return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_internalPolicy(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicy(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -125412,41 +127522,41 @@ 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_risks_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) { +func (ec *executionContext) _Query_slaDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_invite(ctx, field) + return ec.fieldContext_Query_slaDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Invite(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().SLADefinitions(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.SLADefinitionOrder), fc.Args["where"].(*generated.SLADefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Invite) graphql.Marshaler { - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinitionConnection) graphql.Marshaler { + return ec.marshalNSLADefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_slaDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Invite(ctx, field) + return ec.childFields_SLADefinitionConnection(ctx, field) }, } defer func() { @@ -125456,41 +127566,41 @@ 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_slaDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobResult(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobResult(ctx, field) + return ec.fieldContext_Query_scans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobResult(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResult) graphql.Marshaler { - return ec.marshalNJobResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResult(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_jobResult(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobResult(ctx, field) + return ec.childFields_ScanConnection(ctx, field) }, } defer func() { @@ -125500,41 +127610,41 @@ func (ec *executionContext) fieldContext_Query_jobResult(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobResult_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobRunner(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scheduledJobs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunner(ctx, field) + return ec.fieldContext_Query_scheduledJobs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunner(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { - return ec.marshalNJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { + return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_jobRunner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scheduledJobs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunner(ctx, field) + return ec.childFields_ScheduledJobConnection(ctx, field) }, } defer func() { @@ -125544,41 +127654,41 @@ func (ec *executionContext) fieldContext_Query_jobRunner(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobRunnerRegistrationToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scheduledJobRuns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunnerRegistrationToken(ctx, field) + return ec.fieldContext_Query_scheduledJobRuns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunnerRegistrationToken(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ScheduledJobRuns(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.ScheduledJobRunOrder), fc.Args["where"].(*generated.ScheduledJobRunWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationToken) graphql.Marshaler { - return ec.marshalNJobRunnerRegistrationToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationToken(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRunConnection) graphql.Marshaler { + return ec.marshalNScheduledJobRunConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_jobRunnerRegistrationToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scheduledJobRuns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerRegistrationToken(ctx, field) + return ec.childFields_ScheduledJobRunConnection(ctx, field) }, } defer func() { @@ -125588,41 +127698,41 @@ func (ec *executionContext) fieldContext_Query_jobRunnerRegistrationToken(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunnerRegistrationToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_scheduledJobRuns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobRunnerToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_standards(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunnerToken(ctx, field) + return ec.fieldContext_Query_standards(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunnerToken(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Standards(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.StandardOrder), fc.Args["where"].(*generated.StandardWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerToken) graphql.Marshaler { - return ec.marshalNJobRunnerToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerToken(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { + return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_jobRunnerToken(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerToken(ctx, field) + return ec.childFields_StandardConnection(ctx, field) }, } defer func() { @@ -125632,41 +127742,41 @@ func (ec *executionContext) fieldContext_Query_jobRunnerToken(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunnerToken_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_jobTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobTemplate(ctx, field) + return ec.fieldContext_Query_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobTemplate(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplate) graphql.Marshaler { - return ec.marshalNJobTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_jobTemplate(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobTemplate(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -125676,41 +127786,41 @@ func (ec *executionContext) fieldContext_Query_jobTemplate(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobTemplate_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_mappableDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subprocessors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_mappableDomain(ctx, field) + return ec.fieldContext_Query_subprocessors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().MappableDomain(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Subprocessors(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.SubprocessorOrder), fc.Args["where"].(*generated.SubprocessorWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.MappableDomain) graphql.Marshaler { - return ec.marshalNMappableDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { + return ec.marshalNSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_mappableDomain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappableDomain(ctx, field) + return ec.childFields_SubprocessorConnection(ctx, field) }, } defer func() { @@ -125720,41 +127830,41 @@ func (ec *executionContext) fieldContext_Query_mappableDomain(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_mappableDomain_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_subprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_mappedControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_mappedControl(ctx, field) + return ec.fieldContext_Query_subscribers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().MappedControl(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Subscribers(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.SubscriberOrder), fc.Args["where"].(*generated.SubscriberWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControl) graphql.Marshaler { - return ec.marshalNMappedControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControl(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { + return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_mappedControl(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappedControl(ctx, field) + return ec.childFields_SubscriberConnection(ctx, field) }, } defer func() { @@ -125764,41 +127874,41 @@ func (ec *executionContext) fieldContext_Query_mappedControl(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_mappedControl_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) { +func (ec *executionContext) _Query_systemDetails(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_narrative(ctx, field) + return ec.fieldContext_Query_systemDetails(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Narrative(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().SystemDetails(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.SystemDetailOrder), fc.Args["where"].(*generated.SystemDetailWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Narrative) graphql.Marshaler { - return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { + return ec.marshalNSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_narrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_systemDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Narrative(ctx, field) + return ec.childFields_SystemDetailConnection(ctx, field) }, } defer func() { @@ -125808,41 +127918,41 @@ 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_systemDetails_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_note(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_note(ctx, field) + return ec.fieldContext_Query_tfaSettings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Note(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TfaSettings(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.TFASettingOrder), fc.Args["where"].(*generated.TFASettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Note) graphql.Marshaler { - return ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { + return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_note(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) { - return ec.childFields_Note(ctx, field) + return ec.childFields_TFASettingConnection(ctx, field) }, } defer func() { @@ -125852,41 +127962,41 @@ func (ec *executionContext) fieldContext_Query_note(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_note_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_notificationPreference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tagDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notificationPreference(ctx, field) + return ec.fieldContext_Query_tagDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NotificationPreference(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreference) graphql.Marshaler { - return ec.marshalNNotificationPreference2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreference(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { + return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_notificationPreference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tagDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationPreference(ctx, field) + return ec.childFields_TagDefinitionConnection(ctx, field) }, } defer func() { @@ -125896,41 +128006,41 @@ func (ec *executionContext) fieldContext_Query_notificationPreference(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notificationPreference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_tagDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_notificationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notificationTemplate(ctx, field) + return ec.fieldContext_Query_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NotificationTemplate(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplate) graphql.Marshaler { - return ec.marshalNNotificationTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_notificationTemplate(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplate(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -125940,41 +128050,41 @@ func (ec *executionContext) fieldContext_Query_notificationTemplate(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notificationTemplate_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_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_templates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_organization(ctx, field) + return ec.fieldContext_Query_templates(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Organization(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { + return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_organization(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_TemplateConnection(ctx, field) }, } defer func() { @@ -125984,41 +128094,41 @@ 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_templates_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) { +func (ec *executionContext) _Query_trustCenters(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_organizationSetting(ctx, field) + return ec.fieldContext_Query_trustCenters(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrganizationSetting(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenters(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.TrustCenterOrder), fc.Args["where"].(*generated.TrustCenterWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterConnection) graphql.Marshaler { + return ec.marshalNTrustCenterConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationSetting(ctx, field) + return ec.childFields_TrustCenterConnection(ctx, field) }, } defer func() { @@ -126028,41 +128138,41 @@ 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_trustCenters_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) { +func (ec *executionContext) _Query_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_orgMembership(ctx, field) + return ec.fieldContext_Query_trustCenterCompliances(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrgMembership(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { + return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgMembership(ctx, field) + return ec.childFields_TrustCenterComplianceConnection(ctx, field) }, } defer func() { @@ -126072,41 +128182,41 @@ 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_trustCenterCompliances_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) { +func (ec *executionContext) _Query_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_orgSubscription(ctx, field) + return ec.fieldContext_Query_trustCenterDocs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrgSubscription(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgSubscription) graphql.Marshaler { - return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { + return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgSubscription(ctx, field) + return ec.childFields_TrustCenterDocConnection(ctx, field) }, } defer func() { @@ -126116,41 +128226,41 @@ 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_trustCenterDocs_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) { +func (ec *executionContext) _Query_trustCenterEntities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_personalAccessToken(ctx, field) + return ec.fieldContext_Query_trustCenterEntities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().PersonalAccessToken(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterEntities(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.TrustCenterEntityOrder), fc.Args["where"].(*generated.TrustCenterEntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { + return ec.marshalNTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterEntities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PersonalAccessToken(ctx, field) + return ec.childFields_TrustCenterEntityConnection(ctx, field) }, } defer func() { @@ -126160,41 +128270,41 @@ 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_trustCenterEntities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_platform(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterFAQs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_platform(ctx, field) + return ec.fieldContext_Query_trustCenterFAQs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Platform(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterFAQs(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.TrustCenterFAQOrder), fc.Args["where"].(*generated.TrustCenterFAQWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalNPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQConnection) graphql.Marshaler { + return ec.marshalNTrustCenterFAQConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterFAQs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) + return ec.childFields_TrustCenterFAQConnection(ctx, field) }, } defer func() { @@ -126204,41 +128314,41 @@ func (ec *executionContext) fieldContext_Query_platform(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_platform_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterFAQs_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) { +func (ec *executionContext) _Query_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_procedure(ctx, field) + return ec.fieldContext_Query_trustCenterNdaRequests(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Procedure(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterNdaRequests(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.TrustCenterNDARequestOrder), fc.Args["where"].(*generated.TrustCenterNDARequestWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { - return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequestConnection) graphql.Marshaler { + return ec.marshalNTrustCenterNDARequestConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Procedure(ctx, field) + return ec.childFields_TrustCenterNDARequestConnection(ctx, field) }, } defer func() { @@ -126248,41 +128358,41 @@ 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_trustCenterNdaRequests_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) { +func (ec *executionContext) _Query_trustCenterSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_program(ctx, field) + return ec.fieldContext_Query_trustCenterSettings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Program(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterSettings(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.TrustCenterSettingOrder), fc.Args["where"].(*generated.TrustCenterSettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSettingConnection) graphql.Marshaler { + return ec.marshalNTrustCenterSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_program(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Program(ctx, field) + return ec.childFields_TrustCenterSettingConnection(ctx, field) }, } defer func() { @@ -126292,41 +128402,41 @@ 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_trustCenterSettings_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) { +func (ec *executionContext) _Query_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_programMembership(ctx, field) + return ec.fieldContext_Query_trustCenterSubprocessors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ProgramMembership(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembership) graphql.Marshaler { - return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { + return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_programMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembership(ctx, field) + return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) }, } defer func() { @@ -126336,41 +128446,41 @@ 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_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_remediation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_remediation(ctx, field) + return ec.fieldContext_Query_trustCenterWatermarkConfigs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Remediation(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().TrustCenterWatermarkConfigs(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.TrustCenterWatermarkConfigOrder), fc.Args["where"].(*generated.TrustCenterWatermarkConfigWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Remediation) graphql.Marshaler { - return ec.marshalNRemediation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediation(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfigConnection) graphql.Marshaler { + return ec.marshalNTrustCenterWatermarkConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_remediation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Remediation(ctx, field) + return ec.childFields_TrustCenterWatermarkConfigConnection(ctx, field) }, } defer func() { @@ -126380,41 +128490,41 @@ func (ec *executionContext) fieldContext_Query_remediation(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_remediation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterWatermarkConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_review(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_review(ctx, field) + return ec.fieldContext_Query_users(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Review(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Users(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.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Review) graphql.Marshaler { - return ec.marshalNReview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReview(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_review(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Review(ctx, field) + return ec.childFields_UserConnection(ctx, field) }, } defer func() { @@ -126424,41 +128534,41 @@ func (ec *executionContext) fieldContext_Query_review(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_review_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_risk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_userSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_risk(ctx, field) + return ec.fieldContext_Query_userSettings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Risk(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().UserSettings(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.UserSettingOrder), fc.Args["where"].(*generated.UserSettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Risk) graphql.Marshaler { - return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSettingConnection) graphql.Marshaler { + return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_risk(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Risk(ctx, field) + return ec.childFields_UserSettingConnection(ctx, field) }, } defer func() { @@ -126468,41 +128578,41 @@ 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_userSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_scan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scan(ctx, field) + return ec.fieldContext_Query_vendorRiskScores(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Scan(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Scan) graphql.Marshaler { - return ec.marshalNScan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { + return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_scan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Scan(ctx, field) + return ec.childFields_VendorRiskScoreConnection(ctx, field) }, } defer func() { @@ -126512,41 +128622,41 @@ func (ec *executionContext) fieldContext_Query_scan(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_scheduledJob(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scheduledJob(ctx, field) + return ec.fieldContext_Query_vendorScoringConfigs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ScheduledJob(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().VendorScoringConfigs(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.VendorScoringConfigOrder), fc.Args["where"].(*generated.VendorScoringConfigWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { - return ec.marshalNScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfigConnection) graphql.Marshaler { + return ec.marshalNVendorScoringConfigConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_scheduledJob(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_vendorScoringConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJob(ctx, field) + return ec.childFields_VendorScoringConfigConnection(ctx, field) }, } defer func() { @@ -126556,41 +128666,41 @@ func (ec *executionContext) fieldContext_Query_scheduledJob(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scheduledJob_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_vendorScoringConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_scheduledJobRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vulnerabilities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scheduledJobRun(ctx, field) + return ec.fieldContext_Query_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ScheduledJobRun(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRun) graphql.Marshaler { - return ec.marshalNScheduledJobRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRun(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_scheduledJobRun(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobRun(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } defer func() { @@ -126600,41 +128710,41 @@ func (ec *executionContext) fieldContext_Query_scheduledJobRun(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scheduledJobRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_vulnerabilities_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) { +func (ec *executionContext) _Query_webauthns(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_actionPlanSearch(ctx, field) + return ec.fieldContext_Query_webauthns(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ActionPlanSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Webauthns(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.WebauthnOrder), fc.Args["where"].(*generated.WebauthnWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalOActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WebauthnConnection) graphql.Marshaler { + return ec.marshalNWebauthnConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_webauthns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_WebauthnConnection(ctx, field) }, } defer func() { @@ -126644,41 +128754,41 @@ 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_webauthns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessmentSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowAssignments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessmentSearch(ctx, field) + return ec.fieldContext_Query_workflowAssignments(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().AssessmentSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { - return ec.marshalOAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_assessmentSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentConnection(ctx, field) + return ec.childFields_WorkflowAssignmentConnection(ctx, field) }, } defer func() { @@ -126688,41 +128798,41 @@ func (ec *executionContext) fieldContext_Query_assessmentSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessmentSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assessmentResponseSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assessmentResponseSearch(ctx, field) + return ec.fieldContext_Query_workflowAssignmentTargets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().AssessmentResponseSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { - return ec.marshalOAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_assessmentResponseSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponseConnection(ctx, field) + return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) }, } defer func() { @@ -126732,41 +128842,41 @@ func (ec *executionContext) fieldContext_Query_assessmentResponseSearch(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assessmentResponseSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_assetSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_assetSearch(ctx, field) + return ec.fieldContext_Query_workflowDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().AssetSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowDefinitions(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.WorkflowDefinitionOrder), fc.Args["where"].(*generated.WorkflowDefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalOAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinitionConnection) graphql.Marshaler { + return ec.marshalNWorkflowDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_assetSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_WorkflowDefinitionConnection(ctx, field) }, } defer func() { @@ -126776,41 +128886,41 @@ func (ec *executionContext) fieldContext_Query_assetSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_assetSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_workflowDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_campaignSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowEvents(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaignSearch(ctx, field) + return ec.fieldContext_Query_workflowEvents(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CampaignSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalOCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_campaignSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } defer func() { @@ -126820,41 +128930,41 @@ func (ec *executionContext) fieldContext_Query_campaignSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaignSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_campaignTargetSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowInstances(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_campaignTargetSearch(ctx, field) + return ec.fieldContext_Query_workflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CampaignTargetSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowInstances(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.WorkflowInstanceOrder), fc.Args["where"].(*generated.WorkflowInstanceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalOCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstanceConnection) graphql.Marshaler { + return ec.marshalNWorkflowInstanceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_campaignTargetSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetConnection(ctx, field) + return ec.childFields_WorkflowInstanceConnection(ctx, field) }, } defer func() { @@ -126864,41 +128974,41 @@ func (ec *executionContext) fieldContext_Query_campaignTargetSearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_campaignTargetSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_workflowInstances_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) { +func (ec *executionContext) _Query_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_contactSearch(ctx, field) + return ec.fieldContext_Query_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ContactSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { - return ec.marshalOContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ContactConnection(ctx, field) + return ec.childFields_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -126908,41 +129018,41 @@ 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_workflowObjectRefs_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) { +func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlSearch(ctx, field) + return ec.fieldContext_Query_actionPlan(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ActionPlan(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalOControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_controlSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_ActionPlan(ctx, field) }, } defer func() { @@ -126952,41 +129062,41 @@ 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_actionPlan_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) { +func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_controlObjectiveSearch(ctx, field) + return ec.fieldContext_Query_apiToken(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ControlObjectiveSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().APIToken(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalOControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveConnection(ctx, field) + return ec.childFields_APIToken(ctx, field) }, } defer func() { @@ -126996,41 +129106,41 @@ 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_apiToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_customTypeEnumSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_customTypeEnumSearch(ctx, field) + return ec.fieldContext_Query_assessment(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().CustomTypeEnumSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Assessment(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { - return ec.marshalOCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { + return ec.marshalNAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_customTypeEnumSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnumConnection(ctx, field) + return ec.childFields_Assessment(ctx, field) }, } defer func() { @@ -127040,41 +129150,41 @@ func (ec *executionContext) fieldContext_Query_customTypeEnumSearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_customTypeEnumSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_emailTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessmentResponse(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_emailTemplateSearch(ctx, field) + return ec.fieldContext_Query_assessmentResponse(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EmailTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().AssessmentResponse(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { - return ec.marshalOEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { + return ec.marshalNAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_emailTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessmentResponse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateConnection(ctx, field) + return ec.childFields_AssessmentResponse(ctx, field) }, } defer func() { @@ -127084,41 +129194,41 @@ func (ec *executionContext) fieldContext_Query_emailTemplateSearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_emailTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessmentResponse_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) { +func (ec *executionContext) _Query_asset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_entitySearch(ctx, field) + return ec.fieldContext_Query_asset(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EntitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Asset(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalOEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Asset) graphql.Marshaler { + return ec.marshalNAsset2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAsset(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_asset(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) + return ec.childFields_Asset(ctx, field) }, } defer func() { @@ -127128,41 +129238,41 @@ 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_asset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_evidenceSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_campaign(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_evidenceSearch(ctx, field) + return ec.fieldContext_Query_campaign(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().EvidenceSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Campaign(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalNCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_evidenceSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaign(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceConnection(ctx, field) + return ec.childFields_Campaign(ctx, field) }, } defer func() { @@ -127172,41 +129282,41 @@ func (ec *executionContext) fieldContext_Query_evidenceSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_evidenceSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_campaign_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_findingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_campaignTarget(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_findingSearch(ctx, field) + return ec.fieldContext_Query_campaignTarget(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().FindingSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().CampaignTarget(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalOFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { + return ec.marshalNCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_findingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaignTarget(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) + return ec.childFields_CampaignTarget(ctx, field) }, } defer func() { @@ -127216,41 +129326,41 @@ func (ec *executionContext) fieldContext_Query_findingSearch(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_findingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_campaignTarget_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) { +func (ec *executionContext) _Query_checkResult(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_groupSearch(ctx, field) + return ec.fieldContext_Query_checkResult(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().GroupSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().CheckResult(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalOGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResult) graphql.Marshaler { + return ec.marshalNCheckResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCheckResult(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_checkResult(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_CheckResult(ctx, field) }, } defer func() { @@ -127260,41 +129370,41 @@ 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_checkResult_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_identityHolderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_identityHolderSearch(ctx, field) + return ec.fieldContext_Query_contact(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().IdentityHolderSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Contact(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalOIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_identityHolderSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_Contact(ctx, field) }, } defer func() { @@ -127304,41 +129414,41 @@ func (ec *executionContext) fieldContext_Query_identityHolderSearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_identityHolderSearch_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_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_control(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_integrationSearch(ctx, field) + return ec.fieldContext_Query_control(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().IntegrationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Control(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalOIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_integrationSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IntegrationConnection(ctx, field) + return ec.childFields_Control(ctx, field) }, } defer func() { @@ -127348,41 +129458,41 @@ 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_control_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) { +func (ec *executionContext) _Query_controlDiff(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_internalPolicySearch(ctx, field) + return ec.fieldContext_Query_controlDiff(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().InternalPolicySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlDiff(ctx, fc.Args["input"].(model.ControlDiffInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalOInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.ControlDiffPayload) graphql.Marshaler { + return ec.marshalNControlDiffPayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDiffPayload(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlDiff(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) + return ec.childFields_ControlDiffPayload(ctx, field) }, } defer func() { @@ -127392,41 +129502,87 @@ 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_controlDiff_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_inviteSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlCategories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_inviteSearch(ctx, field) + return ec.fieldContext_Query_controlCategories(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Query().ControlCategories(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Query_controlCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Query", field, true, true, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Query_controlSubcategories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Query_controlSubcategories(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Query().ControlSubcategories(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Query_controlSubcategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Query", field, true, true, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Query_controlCategoriesByFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Query_controlCategoriesByFramework(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().InviteSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlCategoriesByFramework(ctx, fc.Args["orderBy"].([]*model.ControlCategoryOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { - return ec.marshalOInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlCategoryEdge) graphql.Marshaler { + return ec.marshalOControlCategoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryEdgeᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Query_inviteSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlCategoriesByFramework(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InviteConnection(ctx, field) + return ec.childFields_ControlCategoryEdge(ctx, field) }, } defer func() { @@ -127436,41 +129592,41 @@ func (ec *executionContext) fieldContext_Query_inviteSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_inviteSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlCategoriesByFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobRunnerSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlSubcategoriesByFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobRunnerSearch(ctx, field) + return ec.fieldContext_Query_controlSubcategoriesByFramework(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobRunnerSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlSubcategoriesByFramework(ctx, fc.Args["orderBy"].([]*model.ControlCategoryOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { - return ec.marshalOJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlCategoryEdge) graphql.Marshaler { + return ec.marshalOControlCategoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCategoryEdgeᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Query_jobRunnerSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlSubcategoriesByFramework(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunnerConnection(ctx, field) + return ec.childFields_ControlCategoryEdge(ctx, field) }, } defer func() { @@ -127480,41 +129636,41 @@ func (ec *executionContext) fieldContext_Query_jobRunnerSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobRunnerSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlSubcategoriesByFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_jobTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlsGroupByCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_jobTemplateSearch(ctx, field) + return ec.fieldContext_Query_controlsGroupByCategory(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().JobTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlsGroupByCategory(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput), fc.Args["category"].(*string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { - return ec.marshalOJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.ControlGroupConnection) graphql.Marshaler { + return ec.marshalNControlGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_jobTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlsGroupByCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobTemplateConnection(ctx, field) + return ec.childFields_ControlGroupConnection(ctx, field) }, } defer func() { @@ -127524,41 +129680,41 @@ func (ec *executionContext) fieldContext_Query_jobTemplateSearch(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_jobTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlsGroupByCategory_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) { +func (ec *executionContext) _Query_controlImplementation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_narrativeSearch(ctx, field) + return ec.fieldContext_Query_controlImplementation(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NarrativeSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlImplementation(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalONarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementation) graphql.Marshaler { + return ec.marshalNControlImplementation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementation(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlImplementation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeConnection(ctx, field) + return ec.childFields_ControlImplementation(ctx, field) }, } defer func() { @@ -127568,41 +129724,41 @@ 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_controlImplementation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_notificationTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_notificationTemplateSearch(ctx, field) + return ec.fieldContext_Query_controlObjective(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().NotificationTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().ControlObjective(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { - return ec.marshalONotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_notificationTemplateSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplateConnection(ctx, field) + return ec.childFields_ControlObjective(ctx, field) }, } defer func() { @@ -127612,41 +129768,41 @@ func (ec *executionContext) fieldContext_Query_notificationTemplateSearch(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notificationTemplateSearch_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_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_customDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_organizationSearch(ctx, field) + return ec.fieldContext_Query_customDomain(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().OrganizationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().CustomDomain(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { - return ec.marshalOOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { + return ec.marshalNCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_customDomain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationConnection(ctx, field) + return ec.childFields_CustomDomain(ctx, field) }, } defer func() { @@ -127656,41 +129812,41 @@ 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_customDomain_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_platformSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_customTypeEnum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_platformSearch(ctx, field) + return ec.fieldContext_Query_customTypeEnum(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().PlatformSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().CustomTypeEnum(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalOPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalNCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_platformSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_customTypeEnum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } defer func() { @@ -127700,41 +129856,41 @@ func (ec *executionContext) fieldContext_Query_platformSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_platformSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_customTypeEnum_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) { +func (ec *executionContext) _Query_directoryAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_procedureSearch(ctx, field) + return ec.fieldContext_Query_directoryAccount(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ProcedureSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DirectoryAccount(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalOProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { + return ec.marshalNDirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureConnection(ctx, field) + return ec.childFields_DirectoryAccount(ctx, field) }, } defer func() { @@ -127744,41 +129900,41 @@ 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_directoryAccount_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) { +func (ec *executionContext) _Query_directoryGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_programSearch(ctx, field) + return ec.fieldContext_Query_directoryGroup(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ProgramSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DirectoryGroup(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalOProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { + return ec.marshalNDirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_programSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_DirectoryGroup(ctx, field) }, } defer func() { @@ -127788,41 +129944,41 @@ 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_directoryGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_remediationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directoryMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_remediationSearch(ctx, field) + return ec.fieldContext_Query_directoryMembership(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().RemediationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DirectoryMembership(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalORemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { + return ec.marshalNDirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_remediationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directoryMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_DirectoryMembership(ctx, field) }, } defer func() { @@ -127832,41 +129988,41 @@ func (ec *executionContext) fieldContext_Query_remediationSearch(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_remediationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directoryMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_reviewSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_directorySyncRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_reviewSearch(ctx, field) + return ec.fieldContext_Query_directorySyncRun(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ReviewSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DirectorySyncRun(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalOReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { + return ec.marshalNDirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_reviewSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_directorySyncRun(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewConnection(ctx, field) + return ec.childFields_DirectorySyncRun(ctx, field) }, } defer func() { @@ -127876,41 +130032,41 @@ func (ec *executionContext) fieldContext_Query_reviewSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_reviewSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_directorySyncRun_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) { +func (ec *executionContext) _Query_discussion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_riskSearch(ctx, field) + return ec.fieldContext_Query_discussion(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().RiskSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Discussion(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalORiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Discussion) graphql.Marshaler { + return ec.marshalNDiscussion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussion(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_Discussion(ctx, field) }, } defer func() { @@ -127920,41 +130076,41 @@ 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_discussion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_scanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_dnsVerification(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_scanSearch(ctx, field) + return ec.fieldContext_Query_dnsVerification(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ScanSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DNSVerification(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalOScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerification) graphql.Marshaler { + return ec.marshalNDNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_scanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_dnsVerification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) + return ec.childFields_DNSVerification(ctx, field) }, } defer func() { @@ -127964,41 +130120,41 @@ func (ec *executionContext) fieldContext_Query_scanSearch(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_scanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_dnsVerification_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) { +func (ec *executionContext) _Query_documentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_standardSearch(ctx, field) + return ec.fieldContext_Query_documentData(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().StandardSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().DocumentData(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { - return ec.marshalOStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_standardSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_StandardConnection(ctx, field) + return ec.childFields_DocumentData(ctx, field) }, } defer func() { @@ -128008,41 +130164,41 @@ 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_documentData_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) { +func (ec *executionContext) _Query_emailTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subcontrolSearch(ctx, field) + return ec.fieldContext_Query_emailTemplate(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SubcontrolSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().EmailTemplate(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalOSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplate) graphql.Marshaler { + return ec.marshalNEmailTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplate(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_emailTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_EmailTemplate(ctx, field) }, } defer func() { @@ -128052,85 +130208,73 @@ 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_emailTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subprocessorSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_emailTemplateCatalog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subprocessorSearch(ctx, field) + return ec.fieldContext_Query_emailTemplateCatalog(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SubprocessorSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().EmailTemplateCatalog(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { - return ec.marshalOSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.EmailTemplateCatalog) graphql.Marshaler { + return ec.marshalNEmailTemplateCatalog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEmailTemplateCatalog(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_subprocessorSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_emailTemplateCatalog(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubprocessorConnection(ctx, field) + return ec.childFields_EmailTemplateCatalog(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subprocessorSearch_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) { +func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subscriberSearch(ctx, field) + return ec.fieldContext_Query_entity(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SubscriberSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Entity(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { - return ec.marshalOSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_subscriberSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubscriberConnection(ctx, field) + return ec.childFields_Entity(ctx, field) }, } defer func() { @@ -128140,41 +130284,41 @@ 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_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_systemDetailSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_systemDetailSearch(ctx, field) + return ec.fieldContext_Query_entityType(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SystemDetailSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().EntityType(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { - return ec.marshalOSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_systemDetailSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SystemDetailConnection(ctx, field) + return ec.childFields_EntityType(ctx, field) }, } defer func() { @@ -128184,41 +130328,41 @@ func (ec *executionContext) fieldContext_Query_systemDetailSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_systemDetailSearch_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_tagDefinitionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_event(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tagDefinitionSearch(ctx, field) + return ec.fieldContext_Query_event(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TagDefinitionSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Event(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { - return ec.marshalOTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Event) graphql.Marshaler { + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_tagDefinitionSearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TagDefinitionConnection(ctx, field) + return ec.childFields_Event(ctx, field) }, } defer func() { @@ -128228,41 +130372,41 @@ func (ec *executionContext) fieldContext_Query_tagDefinitionSearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tagDefinitionSearch_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_taskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_evidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_taskSearch(ctx, field) + return ec.fieldContext_Query_evidence(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TaskSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Evidence(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalOTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { + return ec.marshalNEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_taskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_Evidence(ctx, field) }, } defer func() { @@ -128272,41 +130416,41 @@ 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_evidence_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) { +func (ec *executionContext) _Query_export(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_templateSearch(ctx, field) + return ec.fieldContext_Query_export(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Export(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { - return ec.marshalOTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Export) graphql.Marshaler { + return ec.marshalNExport2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐExport(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_export(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TemplateConnection(ctx, field) + return ec.childFields_Export(ctx, field) }, } defer func() { @@ -128316,41 +130460,41 @@ 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_export_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterEntitySearch(ctx, field) + return ec.fieldContext_Query_file(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterEntitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().File(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { - return ec.marshalOTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterEntitySearch(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, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntityConnection(ctx, field) + return ec.childFields_File(ctx, field) }, } defer func() { @@ -128360,41 +130504,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterEntitySearch(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterEntitySearch_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_vulnerabilitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_finding(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vulnerabilitySearch(ctx, field) + return ec.fieldContext_Query_finding(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VulnerabilitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().Finding(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalOVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Finding) graphql.Marshaler { + return ec.marshalNFinding2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFinding(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_vulnerabilitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_finding(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityConnection(ctx, field) + return ec.childFields_Finding(ctx, field) }, } defer func() { @@ -128404,41 +130548,41 @@ func (ec *executionContext) fieldContext_Query_vulnerabilitySearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vulnerabilitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_finding_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) { +func (ec *executionContext) _Query_findingControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_search(ctx, field) + return ec.fieldContext_Query_findingControl(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Search(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) + return ec.Resolvers.Query().FindingControl(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.SearchResults) graphql.Marshaler { - return ec.marshalOSearchResults2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResults(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingControl) graphql.Marshaler { + return ec.marshalNFindingControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingControl(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_findingControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SearchResults(ctx, field) + return ec.childFields_FindingControl(ctx, field) }, } defer func() { @@ -128448,41 +130592,41 @@ 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_findingControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_slaDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_slaDefinition(ctx, field) + return ec.fieldContext_Query_group(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SLADefinition(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Group(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinition) graphql.Marshaler { - return ec.marshalNSLADefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_slaDefinition(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: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SLADefinition(ctx, field) + return ec.childFields_Group(ctx, field) }, } defer func() { @@ -128492,41 +130636,41 @@ func (ec *executionContext) fieldContext_Query_slaDefinition(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_slaDefinition_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_standard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_groupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_standard(ctx, field) + return ec.fieldContext_Query_groupMembership(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Standard(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().GroupMembership(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { - return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_standard(ctx 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: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Standard(ctx, field) + return ec.childFields_GroupMembership(ctx, field) }, } defer func() { @@ -128536,41 +130680,41 @@ 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_groupMembership_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) { +func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subcontrol(ctx, field) + return ec.fieldContext_Query_groupSetting(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subcontrol(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().GroupSetting(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { - return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_subcontrol(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subcontrol(ctx, field) + return ec.childFields_GroupSetting(ctx, field) }, } defer func() { @@ -128580,41 +130724,41 @@ 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_groupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subprocessor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subprocessor(ctx, field) + return ec.fieldContext_Query_hush(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subprocessor(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Hush(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { - return ec.marshalNSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Hush) graphql.Marshaler { + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_subprocessor(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subprocessor(ctx, field) + return ec.childFields_Hush(ctx, field) }, } defer func() { @@ -128624,41 +130768,41 @@ func (ec *executionContext) fieldContext_Query_subprocessor(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subprocessor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_identityHolder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_subscriber(ctx, field) + return ec.fieldContext_Query_identityHolder(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Subscriber(ctx, fc.Args["email"].(string)) + return ec.Resolvers.Query().IdentityHolder(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { + return ec.marshalNIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_identityHolder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subscriber(ctx, field) + return ec.childFields_IdentityHolder(ctx, field) }, } defer func() { @@ -128668,41 +130812,41 @@ 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_identityHolder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_systemDetail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_integration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_systemDetail(ctx, field) + return ec.fieldContext_Query_integration(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SystemDetail(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Integration(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { - return ec.marshalNSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_systemDetail(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SystemDetail(ctx, field) + return ec.childFields_Integration(ctx, field) }, } defer func() { @@ -128712,41 +130856,41 @@ func (ec *executionContext) fieldContext_Query_systemDetail(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_systemDetail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_tagDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tagDefinition(ctx, field) + return ec.fieldContext_Query_internalPolicy(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TagDefinition(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().InternalPolicy(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinition) graphql.Marshaler { - return ec.marshalNTagDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_tagDefinition(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TagDefinition(ctx, field) + return ec.childFields_InternalPolicy(ctx, field) }, } defer func() { @@ -128756,41 +130900,41 @@ func (ec *executionContext) fieldContext_Query_tagDefinition(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tagDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_task(ctx, field) + return ec.fieldContext_Query_invite(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Task(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Invite(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { - return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Invite) graphql.Marshaler { + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_task(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Task(ctx, field) + return ec.childFields_Invite(ctx, field) }, } defer func() { @@ -128800,41 +130944,41 @@ 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_invite_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) { +func (ec *executionContext) _Query_jobResult(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_template(ctx, field) + return ec.fieldContext_Query_jobResult(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Template(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobResult(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobResult) graphql.Marshaler { + return ec.marshalNJobResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobResult(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_template(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobResult(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Template(ctx, field) + return ec.childFields_JobResult(ctx, field) }, } defer func() { @@ -128844,73 +130988,85 @@ 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_jobResult_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_templateContexts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunner(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_templateContexts(ctx, field) + return ec.fieldContext_Query_jobRunner(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().TemplateContexts(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().JobRunner(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*models.TemplateContextEntry) graphql.Marshaler { - return ec.marshalNTemplateContextEntry2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTemplateContextEntryᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { + return ec.marshalNJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_templateContexts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TemplateContextEntry(ctx, field) + return ec.childFields_JobRunner(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_jobRunner_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) { +func (ec *executionContext) _Query_jobRunnerRegistrationToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_tfaSetting(ctx, field) + return ec.fieldContext_Query_jobRunnerRegistrationToken(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TfaSetting(ctx, fc.Args["id"].(*string)) + return ec.Resolvers.Query().JobRunnerRegistrationToken(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerRegistrationToken) graphql.Marshaler { + return ec.marshalNJobRunnerRegistrationToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerRegistrationToken(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunnerRegistrationToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TFASetting(ctx, field) + return ec.childFields_JobRunnerRegistrationToken(ctx, field) }, } defer func() { @@ -128920,41 +131076,41 @@ 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_jobRunnerRegistrationToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenter(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunnerToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenter(ctx, field) + return ec.fieldContext_Query_jobRunnerToken(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenter(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobRunnerToken(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalNTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerToken) graphql.Marshaler { + return ec.marshalNJobRunnerToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerToken(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenter(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobRunnerToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenter(ctx, field) + return ec.childFields_JobRunnerToken(ctx, field) }, } defer func() { @@ -128964,41 +131120,41 @@ func (ec *executionContext) fieldContext_Query_trustCenter(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobRunnerToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterCompliance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterCompliance(ctx, field) + return ec.fieldContext_Query_jobTemplate(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterCompliance(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().JobTemplate(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterCompliance) graphql.Marshaler { - return ec.marshalNTrustCenterCompliance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterCompliance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplate) graphql.Marshaler { + return ec.marshalNJobTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplate(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterCompliance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_jobTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterCompliance(ctx, field) + return ec.childFields_JobTemplate(ctx, field) }, } defer func() { @@ -129008,41 +131164,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterCompliance(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterCompliance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_jobTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterDoc(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_mappableDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterDoc(ctx, field) + return ec.fieldContext_Query_mappableDomain(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterDoc(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().MappableDomain(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDoc) graphql.Marshaler { - return ec.marshalNTrustCenterDoc2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDoc(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappableDomain) graphql.Marshaler { + return ec.marshalNMappableDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappableDomain(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterDoc(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_mappableDomain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDoc(ctx, field) + return ec.childFields_MappableDomain(ctx, field) }, } defer func() { @@ -129052,41 +131208,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterDoc(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterDoc_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_mappableDomain_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_mappedControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterEntity(ctx, field) + return ec.fieldContext_Query_mappedControl(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterEntity(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().MappedControl(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntity) graphql.Marshaler { - return ec.marshalNTrustCenterEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntity(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappedControl) graphql.Marshaler { + return ec.marshalNMappedControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐMappedControl(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_mappedControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntity(ctx, field) + return ec.childFields_MappedControl(ctx, field) }, } defer func() { @@ -129096,41 +131252,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterEntity(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_mappedControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterFAQ(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterFAQ(ctx, field) + return ec.fieldContext_Query_narrative(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterFaq(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Narrative(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQ) graphql.Marshaler { - return ec.marshalNTrustCenterFAQ2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Narrative) graphql.Marshaler { + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterFAQ(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterFAQ(ctx, field) + return ec.childFields_Narrative(ctx, field) }, } defer func() { @@ -129140,41 +131296,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterFAQ(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterFAQ_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_trustCenterNDARequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_note(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterNDARequest(ctx, field) + return ec.fieldContext_Query_note(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterNDARequest(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Note(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequest) graphql.Marshaler { - return ec.marshalNTrustCenterNDARequest2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequest(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Note) graphql.Marshaler { + return ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterNDARequest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterNDARequest(ctx, field) + return ec.childFields_Note(ctx, field) }, } defer func() { @@ -129184,41 +131340,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterNDARequest(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterNDARequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_notificationPreference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterSetting(ctx, field) + return ec.fieldContext_Query_notificationPreference(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterSetting(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().NotificationPreference(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { - return ec.marshalNTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationPreference) graphql.Marshaler { + return ec.marshalNNotificationPreference2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationPreference(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notificationPreference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSetting(ctx, field) + return ec.childFields_NotificationPreference(ctx, field) }, } defer func() { @@ -129228,41 +131384,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterSetting(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_notificationPreference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterSubprocessor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_notificationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterSubprocessor(ctx, field) + return ec.fieldContext_Query_notificationTemplate(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterSubprocessor(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().NotificationTemplate(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessor) graphql.Marshaler { - return ec.marshalNTrustCenterSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplate) graphql.Marshaler { + return ec.marshalNNotificationTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplate(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterSubprocessor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notificationTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessor(ctx, field) + return ec.childFields_NotificationTemplate(ctx, field) }, } defer func() { @@ -129272,41 +131428,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterSubprocessor(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterSubprocessor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_notificationTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_trustCenterWatermarkConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_trustCenterWatermarkConfig(ctx, field) + return ec.fieldContext_Query_organization(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().TrustCenterWatermarkConfig(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Organization(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { - return ec.marshalNTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfig(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfig(ctx, field) + return ec.childFields_Organization(ctx, field) }, } defer func() { @@ -129316,41 +131472,41 @@ func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfig(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_trustCenterWatermarkConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_user(ctx, field) + return ec.fieldContext_Query_organizationSetting(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().User(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().OrganizationSetting(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_user(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_OrganizationSetting(ctx, field) }, } defer func() { @@ -129360,73 +131516,85 @@ 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_organizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_self(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_orgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_self(ctx, field) + return ec.fieldContext_Query_orgMembership(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().Self(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().OrgMembership(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_self(_ 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_OrgMembership(ctx, field) }, } - return fc, nil -} - -func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + defer func() { + if 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) _Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_userSetting(ctx, field) + return ec.fieldContext_Query_orgSubscription(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().UserSetting(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().OrgSubscription(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgSubscription) graphql.Marshaler { + return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_userSetting(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserSetting(ctx, field) + return ec.childFields_OrgSubscription(ctx, field) }, } defer func() { @@ -129436,41 +131604,41 @@ 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_orgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_vendorRiskScore(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vendorRiskScore(ctx, field) + return ec.fieldContext_Query_personalAccessToken(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VendorRiskScore(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().PersonalAccessToken(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScore) graphql.Marshaler { - return ec.marshalNVendorRiskScore2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScore(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vendorRiskScore(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScore(ctx, field) + return ec.childFields_PersonalAccessToken(ctx, field) }, } defer func() { @@ -129480,41 +131648,41 @@ func (ec *executionContext) fieldContext_Query_vendorRiskScore(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vendorRiskScore_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_vendorScoringConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_platform(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vendorScoringConfig(ctx, field) + return ec.fieldContext_Query_platform(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VendorScoringConfig(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Platform(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { - return ec.marshalNVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalNPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vendorScoringConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorScoringConfig(ctx, field) + return ec.childFields_Platform(ctx, field) }, } defer func() { @@ -129524,41 +131692,41 @@ func (ec *executionContext) fieldContext_Query_vendorScoringConfig(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vendorScoringConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_platform_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_vulnerability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vulnerability(ctx, field) + return ec.fieldContext_Query_procedure(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Vulnerability(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Procedure(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Vulnerability) graphql.Marshaler { - return ec.marshalNVulnerability2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerability(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vulnerability(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Vulnerability(ctx, field) + return ec.childFields_Procedure(ctx, field) }, } defer func() { @@ -129568,41 +131736,41 @@ func (ec *executionContext) fieldContext_Query_vulnerability(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vulnerability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_vulnerabilitySummary(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_program(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_vulnerabilitySummary(ctx, field) + return ec.fieldContext_Query_program(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().VulnerabilitySummary(ctx, fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return ec.Resolvers.Query().Program(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.VulnerabilitySummary) graphql.Marshaler { - return ec.marshalNVulnerabilitySummary2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐVulnerabilitySummary(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_vulnerabilitySummary(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilitySummary(ctx, field) + return ec.childFields_Program(ctx, field) }, } defer func() { @@ -129612,41 +131780,41 @@ func (ec *executionContext) fieldContext_Query_vulnerabilitySummary(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_vulnerabilitySummary_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_program_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowAssignment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_programMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowAssignment(ctx, field) + return ec.fieldContext_Query_programMembership(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowAssignment(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ProgramMembership(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { - return ec.marshalNWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembership) graphql.Marshaler { + return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowAssignment(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignment(ctx, field) + return ec.childFields_ProgramMembership(ctx, field) }, } defer func() { @@ -129656,41 +131824,41 @@ func (ec *executionContext) fieldContext_Query_workflowAssignment(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowAssignment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_programMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_myWorkflowAssignments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_remediation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_myWorkflowAssignments(ctx, field) + return ec.fieldContext_Query_remediation(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().MyWorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) + return ec.Resolvers.Query().Remediation(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Remediation) graphql.Marshaler { + return ec.marshalNRemediation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediation(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_myWorkflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_remediation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentConnection(ctx, field) + return ec.childFields_Remediation(ctx, field) }, } defer func() { @@ -129700,41 +131868,41 @@ func (ec *executionContext) fieldContext_Query_myWorkflowAssignments(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_myWorkflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_remediation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowAssignmentTarget(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_review(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowAssignmentTarget(ctx, field) + return ec.fieldContext_Query_review(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowAssignmentTarget(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Review(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTarget) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Review) graphql.Marshaler { + return ec.marshalNReview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReview(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowAssignmentTarget(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_review(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTarget(ctx, field) + return ec.childFields_Review(ctx, field) }, } defer func() { @@ -129744,41 +131912,41 @@ func (ec *executionContext) fieldContext_Query_workflowAssignmentTarget(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowAssignmentTarget_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_review_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowDefinition(ctx, field) + return ec.fieldContext_Query_risk(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowDefinition(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().Risk(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { - return ec.marshalNWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Risk) graphql.Marshaler { + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowDefinition(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowDefinition(ctx, field) + return ec.childFields_Risk(ctx, field) }, } defer func() { @@ -129788,73 +131956,85 @@ func (ec *executionContext) fieldContext_Query_workflowDefinition(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_workflowMetadata(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowMetadata(ctx, field) + return ec.fieldContext_Query_scan(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().WorkflowMetadata(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Scan(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowMetadata) graphql.Marshaler { - return ec.marshalNWorkflowMetadata2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowMetadata(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Scan) graphql.Marshaler { + return ec.marshalNScan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScan(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowMetadata(ctx, field) + return ec.childFields_Scan(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_scan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Query_workflowEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scheduledJob(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowEvent(ctx, field) + return ec.fieldContext_Query_scheduledJob(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowEvent(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ScheduledJob(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEvent) graphql.Marshaler { - return ec.marshalNWorkflowEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEvent(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { + return ec.marshalNScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scheduledJob(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEvent(ctx, field) + return ec.childFields_ScheduledJob(ctx, field) }, } defer func() { @@ -129864,41 +132044,41 @@ func (ec *executionContext) fieldContext_Query_workflowEvent(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_scheduledJob_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowEventTimeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scheduledJobRun(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowEventTimeline(ctx, field) + return ec.fieldContext_Query_scheduledJobRun(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowEventTimeline(ctx, fc.Args["workflowInstanceID"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + return ec.Resolvers.Query().ScheduledJobRun(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRun) graphql.Marshaler { + return ec.marshalNScheduledJobRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRun(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Query_workflowEventTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_scheduledJobRun(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) + return ec.childFields_ScheduledJobRun(ctx, field) }, } defer func() { @@ -129908,41 +132088,41 @@ func (ec *executionContext) fieldContext_Query_workflowEventTimeline(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowEventTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_scheduledJobRun_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowInstance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowInstance(ctx, field) + return ec.fieldContext_Query_actionPlanSearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowInstance(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().ActionPlanSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalOActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_workflowInstance(ctx 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: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_ActionPlanConnection(ctx, field) }, } defer func() { @@ -129952,41 +132132,41 @@ func (ec *executionContext) fieldContext_Query_workflowInstance(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowInstance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Query_workflowObjectRef(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessmentSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowObjectRef(ctx, field) + return ec.fieldContext_Query_assessmentSearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowObjectRef(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().AssessmentSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRef) graphql.Marshaler { - return ec.marshalNWorkflowObjectRef2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRef(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { + return ec.marshalOAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_workflowObjectRef(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessmentSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRef(ctx, field) + return ec.childFields_AssessmentConnection(ctx, field) }, } defer func() { @@ -129996,41 +132176,41 @@ func (ec *executionContext) fieldContext_Query_workflowObjectRef(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowObjectRef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessmentSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowProposal(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assessmentResponseSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowProposal(ctx, field) + return ec.fieldContext_Query_assessmentResponseSearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowProposal(ctx, fc.Args["id"].(string)) + return ec.Resolvers.Query().AssessmentResponseSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowProposal) graphql.Marshaler { - return ec.marshalNWorkflowProposal2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowProposal(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { + return ec.marshalOAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_workflowProposal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assessmentResponseSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowProposal(ctx, field) + return ec.childFields_AssessmentResponseConnection(ctx, field) }, } defer func() { @@ -130040,41 +132220,41 @@ func (ec *executionContext) fieldContext_Query_workflowProposal(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowProposal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assessmentResponseSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_workflowProposalsForObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_assetSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_workflowProposalsForObject(ctx, field) + return ec.fieldContext_Query_assetSearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().WorkflowProposalsForObject(ctx, fc.Args["objectType"].(string), fc.Args["objectID"].(string), fc.Args["includeStates"].([]enums.WorkflowProposalState)) + return ec.Resolvers.Query().AssetSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowProposal) graphql.Marshaler { - return ec.marshalNWorkflowProposal2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowProposalᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalOAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Query_workflowProposalsForObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_assetSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowProposal(ctx, field) + return ec.childFields_AssetConnection(ctx, field) }, } defer func() { @@ -130084,41 +132264,41 @@ func (ec *executionContext) fieldContext_Query_workflowProposalsForObject(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_workflowProposalsForObject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_assetSearch_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) { +func (ec *executionContext) _Query_campaignSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query___type(ctx, field) + return ec.fieldContext_Query_campaignSearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.IntrospectType(fc.Args["name"].(string)) + return ec.Resolvers.Query().CampaignSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalOCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaignSearch(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) { - return ec.childFields___Type(ctx, field) + return ec.childFields_CampaignConnection(ctx, field) }, } defer func() { @@ -130128,946 +132308,1581 @@ 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_campaignSearch_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) { +func (ec *executionContext) _Query_campaignTargetSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query___schema(ctx, field) + return ec.fieldContext_Query_campaignTargetSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.IntrospectSchema() + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().CampaignTargetSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalOCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_campaignTargetSearch(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) { - return ec.childFields___Schema(ctx, field) + return ec.childFields_CampaignTargetConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_campaignTargetSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Remediation_id(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_contactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_id(ctx, field) + return ec.fieldContext_Query_contactSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ContactSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { + return ec.marshalOContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Remediation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ContactConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_contactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_createdAt(ctx, field) + return ec.fieldContext_Query_controlSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ControlSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalOControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Query_controlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_updatedAt(ctx, field) + return ec.fieldContext_Query_controlObjectiveSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ControlObjectiveSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalOControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlObjectiveConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_customTypeEnumSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_createdBy(ctx, field) + return ec.fieldContext_Query_customTypeEnumSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().CustomTypeEnumSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnumConnection) graphql.Marshaler { + return ec.marshalOCustomTypeEnumConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_customTypeEnumSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnumConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_customTypeEnumSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_emailTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_updatedBy(ctx, field) + return ec.fieldContext_Query_emailTemplateSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().EmailTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { + return ec.marshalOEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_emailTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EmailTemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_emailTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_displayID(ctx, field) + return ec.fieldContext_Query_entitySearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().EntitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalOEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Remediation_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_evidenceSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_tags(ctx, field) + return ec.fieldContext_Query_evidenceSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().EvidenceSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_evidenceSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EvidenceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_evidenceSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_findingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_ownerID(ctx, field) + return ec.fieldContext_Query_findingSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().FindingSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalOFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_findingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_FindingConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_findingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_systemOwned(ctx, field) + return ec.fieldContext_Query_groupSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().GroupSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalOGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_identityHolderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_internalNotes(ctx, field) + return ec.fieldContext_Query_identityHolderSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().IdentityHolderSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalOIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_identityHolderSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolderConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_identityHolderSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_systemInternalID(ctx, field) + return ec.fieldContext_Query_integrationSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().IntegrationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalOIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IntegrationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_integrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_environmentName(ctx, field) + return ec.fieldContext_Query_internalPolicySearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().InternalPolicySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalOInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InternalPolicyConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_internalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_inviteSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_environmentID(ctx, field) + return ec.fieldContext_Query_inviteSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().InviteSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { + return ec.marshalOInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_inviteSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InviteConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_inviteSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobRunnerSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_scopeName(ctx, field) + return ec.fieldContext_Query_jobRunnerSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().JobRunnerSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunnerConnection) graphql.Marshaler { + return ec.marshalOJobRunnerConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunnerConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_jobRunnerSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_JobRunnerConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_jobRunnerSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_jobTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_scopeID(ctx, field) + return ec.fieldContext_Query_jobTemplateSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().JobTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplateConnection) graphql.Marshaler { + return ec.marshalOJobTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplateConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_jobTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_JobTemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_jobTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_externalID(ctx, field) + return ec.fieldContext_Query_narrativeSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().NarrativeSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalONarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NarrativeConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_notificationTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_externalOwnerID(ctx, field) + return ec.fieldContext_Query_notificationTemplateSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalOwnerID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().NotificationTemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { + return ec.marshalONotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_notificationTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NotificationTemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_notificationTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_title(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_title(ctx, field) + return ec.fieldContext_Query_organizationSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().OrganizationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + return ec.marshalOOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrganizationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_status(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_platformSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_status(ctx, field) + return ec.fieldContext_Query_platformSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().PlatformSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.RemediationStatus) graphql.Marshaler { - return ec.marshalORemediationRemediationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRemediationStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalOPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type RemediationRemediationStatus does not have child fields")) -} - -func (ec *executionContext) _Remediation_state(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_state(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Query_platformSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PlatformConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Remediation_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, 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_platformSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_intent(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_intent(ctx, field) + return ec.fieldContext_Query_procedureSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Intent, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ProcedureSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalOProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Remediation_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_summary(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Summary, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProcedureConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Remediation_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, 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_procedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_explanation(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_programSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_explanation(ctx, field) + return ec.fieldContext_Query_programSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Explanation, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ProgramSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalOProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_explanation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_programSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_programSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_instructions(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_remediationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_instructions(ctx, field) + return ec.fieldContext_Query_remediationSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Instructions, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().RemediationSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalORemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_instructions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_remediationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_RemediationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_remediationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_ownerReference(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_reviewSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_ownerReference(ctx, field) + return ec.fieldContext_Query_reviewSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerReference, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ReviewSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalOReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_ownerReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_reviewSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ReviewConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_reviewSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_repositoryURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_repositoryURI(ctx, field) + return ec.fieldContext_Query_riskSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RepositoryURI, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().RiskSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalORiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_repositoryURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_RiskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_riskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_pullRequestURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_scanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_pullRequestURI(ctx, field) + return ec.fieldContext_Query_scanSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PullRequestURI, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ScanSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalOScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_pullRequestURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_scanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_scanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_ticketReference(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_standardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_ticketReference(ctx, field) + return ec.fieldContext_Query_standardSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TicketReference, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().StandardSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { + return ec.marshalOStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_ticketReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_standardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_StandardConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_dueAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_dueAt(ctx, field) + return ec.fieldContext_Query_subcontrolSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().SubcontrolSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalOSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_dueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubcontrolConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subprocessorSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_completedAt(ctx, field) + return ec.fieldContext_Query_subprocessorSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().SubprocessorSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubprocessorConnection) graphql.Marshaler { + return ec.marshalOSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Query_subprocessorSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubprocessorConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subprocessorSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_prGeneratedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_prGeneratedAt(ctx, field) + return ec.fieldContext_Query_subscriberSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PrGeneratedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().SubscriberSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { + return ec.marshalOSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_prGeneratedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubscriberConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_error(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_systemDetailSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_error(ctx, field) + return ec.fieldContext_Query_systemDetailSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Error, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().SystemDetailSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetailConnection) graphql.Marshaler { + return ec.marshalOSystemDetailConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_systemDetailSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SystemDetailConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_systemDetailSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_source(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tagDefinitionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_source(ctx, field) + return ec.fieldContext_Query_tagDefinitionSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TagDefinitionSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { + return ec.marshalOTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_tagDefinitionSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TagDefinitionConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_tagDefinitionSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_taskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_externalURI(ctx, field) + return ec.fieldContext_Query_taskSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalURI, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TaskSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalOTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_taskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_taskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_templateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_metadata(ctx, field) + return ec.fieldContext_Query_templateSearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TemplateSearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { + return ec.marshalOTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_templateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Remediation_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_owner(ctx, field) + return ec.fieldContext_Query_trustCenterEntitySearch(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TrustCenterEntitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { + return ec.marshalOTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Remediation_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterEntitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_TrustCenterEntityConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_trustCenterEntitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Remediation_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vulnerabilitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_blockedGroups(ctx, field) + return ec.fieldContext_Query_vulnerabilitySearch(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return ec.Resolvers.Query().VulnerabilitySearch(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalOVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Remediation_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_vulnerabilitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } defer func() { @@ -131077,41 +133892,41 @@ func (ec *executionContext) fieldContext_Remediation_blockedGroups(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_vulnerabilitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_editors(ctx, field) + return ec.fieldContext_Query_search(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return ec.Resolvers.Query().Search(ctx, fc.Args["query"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.SearchResults) graphql.Marshaler { + return ec.marshalOSearchResults2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResults(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Remediation_editors(ctx 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_SearchResults(ctx, field) }, } defer func() { @@ -131121,41 +133936,41 @@ func (ec *executionContext) fieldContext_Remediation_editors(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Remediation_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_slaDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_viewers(ctx, field) + return ec.fieldContext_Query_slaDefinition(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return ec.Resolvers.Query().SLADefinition(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinition) graphql.Marshaler { + return ec.marshalNSLADefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinition(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_slaDefinition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_SLADefinition(ctx, field) }, } defer func() { @@ -131165,105 +133980,129 @@ func (ec *executionContext) fieldContext_Remediation_viewers(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_slaDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_environment(ctx, field) + return ec.fieldContext_Query_standard(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Standard(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Remediation_environment(_ 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_Standard(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Remediation_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_scope(ctx, field) + return ec.fieldContext_Query_subcontrol(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Subcontrol(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Remediation_scope(_ 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_Subcontrol(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Remediation_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subprocessor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_integrations(ctx, field) + return ec.fieldContext_Query_subprocessor(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return ec.Resolvers.Query().Subprocessor(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { + return ec.marshalNSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subprocessor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IntegrationConnection(ctx, field) + return ec.childFields_Subprocessor(ctx, field) }, } defer func() { @@ -131273,41 +134112,41 @@ func (ec *executionContext) fieldContext_Remediation_integrations(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_subprocessor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_scans(ctx, field) + return ec.fieldContext_Query_subscriber(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return ec.Resolvers.Query().Subscriber(ctx, fc.Args["email"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_scans(ctx 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) + return ec.childFields_Subscriber(ctx, field) }, } defer func() { @@ -131317,41 +134156,41 @@ func (ec *executionContext) fieldContext_Remediation_scans(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Remediation_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_systemDetail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_findings(ctx, field) + return ec.fieldContext_Query_systemDetail(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return ec.Resolvers.Query().SystemDetail(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { + return ec.marshalNSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_systemDetail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) + return ec.childFields_SystemDetail(ctx, field) }, } defer func() { @@ -131361,41 +134200,41 @@ func (ec *executionContext) fieldContext_Remediation_findings(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_systemDetail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tagDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_vulnerabilities(ctx, field) + return ec.fieldContext_Query_tagDefinition(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return ec.Resolvers.Query().TagDefinition(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinition) graphql.Marshaler { + return ec.marshalNTagDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinition(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tagDefinition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityConnection(ctx, field) + return ec.childFields_TagDefinition(ctx, field) }, } defer func() { @@ -131405,41 +134244,41 @@ func (ec *executionContext) fieldContext_Remediation_vulnerabilities(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_tagDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_actionPlans(ctx, field) + return ec.fieldContext_Query_task(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return ec.Resolvers.Query().Task(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { + return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_actionPlans(ctx 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_Task(ctx, field) }, } defer func() { @@ -131449,41 +134288,41 @@ func (ec *executionContext) fieldContext_Remediation_actionPlans(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Remediation_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_template(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_tasks(ctx, field) + return ec.fieldContext_Query_template(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return ec.Resolvers.Query().Template(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_tasks(ctx 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_Template(ctx, field) }, } defer func() { @@ -131493,85 +134332,73 @@ func (ec *executionContext) fieldContext_Remediation_tasks(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Remediation_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_templateContexts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_controls(ctx, field) + return ec.fieldContext_Query_templateContexts(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return ec.Resolvers.Query().TemplateContexts(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*models.TemplateContextEntry) graphql.Marshaler { + return ec.marshalNTemplateContextEntry2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTemplateContextEntryᚄ(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templateContexts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_TemplateContextEntry(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Remediation_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_subcontrols(ctx, field) + return ec.fieldContext_Query_tfaSetting(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return ec.Resolvers.Query().TfaSetting(ctx, fc.Args["id"].(*string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_subcontrols(ctx 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: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_TFASetting(ctx, field) }, } defer func() { @@ -131581,41 +134408,41 @@ func (ec *executionContext) fieldContext_Remediation_subcontrols(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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) _Remediation_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenter(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_risks(ctx, field) + return ec.fieldContext_Query_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return ec.Resolvers.Query().TrustCenter(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { + return ec.marshalNTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenter(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_TrustCenter(ctx, field) }, } defer func() { @@ -131625,41 +134452,41 @@ func (ec *executionContext) fieldContext_Remediation_risks(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterCompliance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_programs(ctx, field) + return ec.fieldContext_Query_trustCenterCompliance(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return ec.Resolvers.Query().TrustCenterCompliance(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterCompliance) graphql.Marshaler { + return ec.marshalNTrustCenterCompliance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterCompliance(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterCompliance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_TrustCenterCompliance(ctx, field) }, } defer func() { @@ -131669,41 +134496,41 @@ func (ec *executionContext) fieldContext_Remediation_programs(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterCompliance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterDoc(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_assets(ctx, field) + return ec.fieldContext_Query_trustCenterDoc(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return ec.Resolvers.Query().TrustCenterDoc(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDoc) graphql.Marshaler { + return ec.marshalNTrustCenterDoc2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDoc(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterDoc(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_TrustCenterDoc(ctx, field) }, } defer func() { @@ -131713,41 +134540,41 @@ func (ec *executionContext) fieldContext_Remediation_assets(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterDoc_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_entities(ctx, field) + return ec.fieldContext_Query_trustCenterEntity(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return ec.Resolvers.Query().TrustCenterEntity(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntity) graphql.Marshaler { + return ec.marshalNTrustCenterEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntity(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) + return ec.childFields_TrustCenterEntity(ctx, field) }, } defer func() { @@ -131757,41 +134584,41 @@ func (ec *executionContext) fieldContext_Remediation_entities(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterFAQ(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_reviews(ctx, field) + return ec.fieldContext_Query_trustCenterFAQ(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return ec.Resolvers.Query().TrustCenterFaq(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQ) graphql.Marshaler { + return ec.marshalNTrustCenterFAQ2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQ(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterFAQ(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewConnection(ctx, field) + return ec.childFields_TrustCenterFAQ(ctx, field) }, } defer func() { @@ -131801,41 +134628,41 @@ func (ec *executionContext) fieldContext_Remediation_reviews(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterFAQ_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterNDARequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_comments(ctx, field) + return ec.fieldContext_Query_trustCenterNDARequest(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return ec.Resolvers.Query().TrustCenterNDARequest(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequest) graphql.Marshaler { + return ec.marshalNTrustCenterNDARequest2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequest(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterNDARequest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) + return ec.childFields_TrustCenterNDARequest(ctx, field) }, } defer func() { @@ -131845,41 +134672,41 @@ func (ec *executionContext) fieldContext_Remediation_comments(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterNDARequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Remediation_files(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Remediation_files(ctx, field) + return ec.fieldContext_Query_trustCenterSetting(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return ec.Resolvers.Query().TrustCenterSetting(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { + return ec.marshalNTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Remediation_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Remediation", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) + return ec.childFields_TrustCenterSetting(ctx, field) }, } defer func() { @@ -131889,638 +134716,1024 @@ func (ec *executionContext) fieldContext_Remediation_files(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Remediation_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_trustCenterSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _RemediationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterSubprocessor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RemediationConnection_edges(ctx, field) + return ec.fieldContext_Query_trustCenterSubprocessor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TrustCenterSubprocessor(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.RemediationEdge) graphql.Marshaler { - return ec.marshalORemediationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessor) graphql.Marshaler { + return ec.marshalNTrustCenterSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_RemediationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterSubprocessor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RemediationConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationEdge(ctx, field) + return ec.childFields_TrustCenterSubprocessor(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_trustCenterSubprocessor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RemediationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_trustCenterWatermarkConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RemediationConnection_pageInfo(ctx, field) + return ec.fieldContext_Query_trustCenterWatermarkConfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().TrustCenterWatermarkConfig(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { + return ec.marshalNTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_RemediationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_trustCenterWatermarkConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RemediationConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_TrustCenterWatermarkConfig(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_trustCenterWatermarkConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RemediationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RemediationConnection_totalCount(ctx, field) + return ec.fieldContext_Query_user(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().User(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_RemediationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("RemediationConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _RemediationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_self(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RemediationEdge_node(ctx, field) + return ec.fieldContext_Query_self(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return ec.Resolvers.Query().Self(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Remediation) graphql.Marshaler { - return ec.marshalORemediation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediation(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_RemediationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_self(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RemediationEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Remediation(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _RemediationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RemediationEdge_cursor(ctx, field) + return ec.fieldContext_Query_userSetting(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().UserSetting(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_RemediationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("RemediationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_UserSetting(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_userSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_id(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vendorRiskScore(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_id(ctx, field) + return ec.fieldContext_Query_vendorRiskScore(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().VendorRiskScore(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScore) graphql.Marshaler { + return ec.marshalNVendorRiskScore2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScore(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Review_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_vendorRiskScore(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorRiskScore(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_vendorRiskScore_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vendorScoringConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_createdAt(ctx, field) + return ec.fieldContext_Query_vendorScoringConfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().VendorScoringConfig(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { + return ec.marshalNVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Query_vendorScoringConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorScoringConfig(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_vendorScoringConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vulnerability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_updatedAt(ctx, field) + return ec.fieldContext_Query_vulnerability(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Vulnerability(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Vulnerability) graphql.Marshaler { + return ec.marshalNVulnerability2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerability(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Query_vulnerability(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Vulnerability(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_vulnerability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_vulnerabilitySummary(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_createdBy(ctx, field) + return ec.fieldContext_Query_vulnerabilitySummary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().VulnerabilitySummary(ctx, fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.VulnerabilitySummary) graphql.Marshaler { + return ec.marshalNVulnerabilitySummary2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐVulnerabilitySummary(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_vulnerabilitySummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VulnerabilitySummary(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_vulnerabilitySummary_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowAssignment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_updatedBy(ctx, field) + return ec.fieldContext_Query_workflowAssignment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowAssignment(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { + return ec.marshalNWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowAssignment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowAssignment(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowAssignment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_myWorkflowAssignments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_tags(ctx, field) + return ec.fieldContext_Query_myWorkflowAssignments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().MyWorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_myWorkflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowAssignmentConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_myWorkflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowAssignmentTarget(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_ownerID(ctx, field) + return ec.fieldContext_Query_workflowAssignmentTarget(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowAssignmentTarget(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTarget) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTarget(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowAssignmentTarget(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowAssignmentTarget(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowAssignmentTarget_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_systemOwned(ctx, field) + return ec.fieldContext_Query_workflowDefinition(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowDefinition(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { + return ec.marshalNWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowDefinition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowDefinition(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowDefinition_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowMetadata(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_internalNotes(ctx, field) + return ec.fieldContext_Query_workflowMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return ec.Resolvers.Query().WorkflowMetadata(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowMetadata) graphql.Marshaler { + return ec.marshalNWorkflowMetadata2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowMetadata(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowMetadata(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Review_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_systemInternalID(ctx, field) + return ec.fieldContext_Query_workflowEvent(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowEvent(ctx, fc.Args["id"].(string)) }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEvent) graphql.Marshaler { + return ec.marshalNWorkflowEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEvent(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_workflowEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowEvent(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} - next = directive1 - return next +func (ec *executionContext) _Query_workflowEventTimeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Query_workflowEventTimeline(ctx, field) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowEventTimeline(ctx, fc.Args["workflowInstanceID"].(string), fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowEventTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowEventConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowEventTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowInstance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_environmentName(ctx, field) + return ec.fieldContext_Query_workflowInstance(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowInstance(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowInstance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowInstance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowObjectRef(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_environmentID(ctx, field) + return ec.fieldContext_Query_workflowObjectRef(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowObjectRef(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRef) graphql.Marshaler { + return ec.marshalNWorkflowObjectRef2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRef(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowObjectRef(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowObjectRef(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowObjectRef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowProposal(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_scopeName(ctx, field) + return ec.fieldContext_Query_workflowProposal(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowProposal(ctx, fc.Args["id"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowProposal) graphql.Marshaler { + return ec.marshalNWorkflowProposal2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowProposal(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowProposal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowProposal(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowProposal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query_workflowProposalsForObject(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_scopeID(ctx, field) + return ec.fieldContext_Query_workflowProposalsForObject(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().WorkflowProposalsForObject(ctx, fc.Args["objectType"].(string), fc.Args["objectID"].(string), fc.Args["includeStates"].([]enums.WorkflowProposalState)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowProposal) graphql.Marshaler { + return ec.marshalNWorkflowProposal2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowProposalᚄ(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Query_workflowProposalsForObject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowProposal(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_workflowProposalsForObject_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_externalID(ctx, field) + return ec.fieldContext_Query___type(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + fc := graphql.GetFieldContext(ctx) + return ec.IntrospectType(fc.Args["name"].(string)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler { + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields___Type(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Review_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_externalOwnerID(ctx, field) + return ec.fieldContext_Query___schema(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalOwnerID, nil + return ec.IntrospectSchema() }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields___Schema(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Review_title(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_id(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_title(ctx, field) + return ec.fieldContext_Remediation_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Review_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Review_state(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_state(ctx, field) + return ec.fieldContext_Remediation_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.State, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Review_status(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_status(ctx, field) + return ec.fieldContext_Remediation_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ReviewStatus) graphql.Marshaler { - return ec.marshalOReviewReviewStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐReviewStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ReviewReviewStatus does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Review_category(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_category(ctx, field) + return ec.fieldContext_Remediation_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Category, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -132530,20 +135743,20 @@ func (ec *executionContext) _Review_category(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Review_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_classification(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_classification(ctx, field) + return ec.fieldContext_Remediation_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Classification, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -132553,89 +135766,89 @@ func (ec *executionContext) _Review_classification(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_Review_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_summary(ctx, field) + return ec.fieldContext_Remediation_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Summary, nil + return obj.DisplayID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Review_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_details(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_details(ctx, field) + return ec.fieldContext_Remediation_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_reporter(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_reporter(ctx, field) + return ec.fieldContext_Remediation_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Reporter, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_reporter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Review_approved(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_approved(ctx, field) + return ec.fieldContext_Remediation_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Approved, nil + return obj.SystemOwned, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { @@ -132645,89 +135858,125 @@ func (ec *executionContext) _Review_approved(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Review_approved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Review_reviewedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_reviewedAt(ctx, field) + return ec.fieldContext_Remediation_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedAt, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_reviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_reportedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_reportedAt(ctx, field) + return ec.fieldContext_Remediation_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReportedAt, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_reportedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_approvedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_approvedAt(ctx, field) + return ec.fieldContext_Remediation_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovedAt, nil + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_approvedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_reviewerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_reviewerID(ctx, field) + return ec.fieldContext_Remediation_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewerID, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -132737,20 +135986,20 @@ func (ec *executionContext) _Review_reviewerID(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Review_reviewerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Review_source(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_source(ctx, field) + return ec.fieldContext_Remediation_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -132760,66 +136009,480 @@ func (ec *executionContext) _Review_source(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Review_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_externalURI(ctx, field) + return ec.fieldContext_Remediation_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalURI, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Review_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_metadata(ctx, field) + return ec.fieldContext_Remediation_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.ExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Review_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Review_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_rawPayload(ctx, field) + return ec.fieldContext_Remediation_externalOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawPayload, nil + return obj.ExternalOwnerID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_title(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_title(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Title, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_status(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_status(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Status, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.RemediationStatus) graphql.Marshaler { + return ec.marshalORemediationRemediationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRemediationStatus(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type RemediationRemediationStatus does not have child fields")) +} + +func (ec *executionContext) _Remediation_state(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_state(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.State, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_intent(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_intent(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Intent, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_intent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_summary(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Summary, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_explanation(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_explanation(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Explanation, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_explanation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_instructions(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_instructions(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Instructions, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_instructions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_ownerReference(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_ownerReference(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OwnerReference, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_ownerReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_repositoryURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_repositoryURI(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.RepositoryURI, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_repositoryURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_pullRequestURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_pullRequestURI(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PullRequestURI, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_pullRequestURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_ticketReference(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_ticketReference(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TicketReference, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_ticketReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_dueAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_dueAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DueAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_dueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _Remediation_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_completedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CompletedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _Remediation_prGeneratedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_prGeneratedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PrGeneratedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_prGeneratedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _Remediation_error(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_error(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Error, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_source(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_source(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Source, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_externalURI(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ExternalURI, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Remediation_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Remediation_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_metadata(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Metadata, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { @@ -132829,17 +136492,17 @@ func (ec *executionContext) _Review_rawPayload(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Review_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Remediation_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Remediation", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Review_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_owner(ctx, field) + return ec.fieldContext_Remediation_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -132852,9 +136515,9 @@ func (ec *executionContext) _Review_owner(ctx context.Context, field graphql.Col false, ) } -func (ec *executionContext) fieldContext_Review_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -132865,13 +136528,13 @@ func (ec *executionContext) fieldContext_Review_owner(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Review_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_blockedGroups(ctx, field) + return ec.fieldContext_Remediation_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -132885,9 +136548,9 @@ func (ec *executionContext) _Review_blockedGroups(ctx context.Context, field gra true, ) } -func (ec *executionContext) fieldContext_Review_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -132902,20 +136565,20 @@ func (ec *executionContext) fieldContext_Review_blockedGroups(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_editors(ctx, field) + return ec.fieldContext_Remediation_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -132929,9 +136592,9 @@ func (ec *executionContext) _Review_editors(ctx context.Context, field graphql.C true, ) } -func (ec *executionContext) fieldContext_Review_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -132946,20 +136609,20 @@ func (ec *executionContext) fieldContext_Review_editors(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_viewers(ctx, field) + return ec.fieldContext_Remediation_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -132973,9 +136636,9 @@ func (ec *executionContext) _Review_viewers(ctx context.Context, field graphql.C true, ) } -func (ec *executionContext) fieldContext_Review_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -132990,20 +136653,20 @@ func (ec *executionContext) fieldContext_Review_viewers(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_environment(ctx, field) + return ec.fieldContext_Remediation_environment(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Environment(ctx) @@ -133016,9 +136679,9 @@ func (ec *executionContext) _Review_environment(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Review_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133029,13 +136692,13 @@ func (ec *executionContext) fieldContext_Review_environment(_ context.Context, f return fc, nil } -func (ec *executionContext) _Review_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_scope(ctx, field) + return ec.fieldContext_Remediation_scope(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Scope(ctx) @@ -133048,9 +136711,9 @@ func (ec *executionContext) _Review_scope(ctx context.Context, field graphql.Col false, ) } -func (ec *executionContext) fieldContext_Review_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133061,13 +136724,13 @@ func (ec *executionContext) fieldContext_Review_scope(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Review_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_integrations(ctx, field) + return ec.fieldContext_Remediation_integrations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133081,9 +136744,9 @@ func (ec *executionContext) _Review_integrations(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_Review_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133098,20 +136761,64 @@ func (ec *executionContext) fieldContext_Review_integrations(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_findings(ctx, field) + return ec.fieldContext_Remediation_scans(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Remediation_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Remediation", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Remediation_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Remediation_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Remediation_findings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133125,9 +136832,9 @@ func (ec *executionContext) _Review_findings(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Review_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133142,20 +136849,20 @@ func (ec *executionContext) fieldContext_Review_findings(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_vulnerabilities(ctx, field) + return ec.fieldContext_Remediation_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133169,9 +136876,9 @@ func (ec *executionContext) _Review_vulnerabilities(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_Review_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133186,20 +136893,20 @@ func (ec *executionContext) fieldContext_Review_vulnerabilities(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_actionPlans(ctx, field) + return ec.fieldContext_Remediation_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133213,9 +136920,9 @@ func (ec *executionContext) _Review_actionPlans(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Review_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133230,41 +136937,41 @@ func (ec *executionContext) fieldContext_Review_actionPlans(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_remediations(ctx, field) + return ec.fieldContext_Remediation_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Review_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -133274,20 +136981,20 @@ func (ec *executionContext) fieldContext_Review_remediations(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_controls(ctx, field) + return ec.fieldContext_Remediation_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133301,9 +137008,9 @@ func (ec *executionContext) _Review_controls(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Review_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133318,20 +137025,20 @@ func (ec *executionContext) fieldContext_Review_controls(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_subcontrols(ctx, field) + return ec.fieldContext_Remediation_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133345,9 +137052,9 @@ func (ec *executionContext) _Review_subcontrols(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Review_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133362,20 +137069,20 @@ func (ec *executionContext) fieldContext_Review_subcontrols(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_risks(ctx, field) + return ec.fieldContext_Remediation_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133389,9 +137096,9 @@ func (ec *executionContext) _Review_risks(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Review_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133406,20 +137113,20 @@ func (ec *executionContext) fieldContext_Review_risks(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_programs(ctx, field) + return ec.fieldContext_Remediation_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133433,9 +137140,9 @@ func (ec *executionContext) _Review_programs(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Review_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133450,20 +137157,20 @@ func (ec *executionContext) fieldContext_Review_programs(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_assets(ctx, field) + return ec.fieldContext_Remediation_assets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133477,9 +137184,9 @@ func (ec *executionContext) _Review_assets(ctx context.Context, field graphql.Co true, ) } -func (ec *executionContext) fieldContext_Review_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133494,20 +137201,20 @@ func (ec *executionContext) fieldContext_Review_assets(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_entities(ctx, field) + return ec.fieldContext_Remediation_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133521,9 +137228,9 @@ func (ec *executionContext) _Review_entities(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Review_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133538,41 +137245,41 @@ func (ec *executionContext) fieldContext_Review_entities(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_tasks(ctx, field) + return ec.fieldContext_Remediation_reviews(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Review_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_ReviewConnection(ctx, field) }, } defer func() { @@ -133582,52 +137289,20 @@ func (ec *executionContext) fieldContext_Review_tasks(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_reviewer(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_reviewer(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Reviewer(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Review_reviewer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Review", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _Review_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_comments(ctx, field) + return ec.fieldContext_Remediation_comments(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133641,9 +137316,9 @@ func (ec *executionContext) _Review_comments(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Review_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133658,20 +137333,20 @@ func (ec *executionContext) fieldContext_Review_comments(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Review_files(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { +func (ec *executionContext) _Remediation_files(ctx context.Context, field graphql.CollectedField, obj *generated.Remediation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_files(ctx, field) + return ec.fieldContext_Remediation_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -133685,9 +137360,9 @@ func (ec *executionContext) _Review_files(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Review_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Remediation_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Review", + Object: "Remediation", Field: field, IsMethod: true, IsResolver: false, @@ -133702,96 +137377,52 @@ func (ec *executionContext) fieldContext_Review_files(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Review_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Review_internalPolicies(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Review_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Review", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Review_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Remediation_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ReviewConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _RemediationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ReviewConnection_edges(ctx, field) + return ec.fieldContext_RemediationConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ReviewEdge) graphql.Marshaler { - return ec.marshalOReviewEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.RemediationEdge) graphql.Marshaler { + return ec.marshalORemediationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ReviewConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RemediationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ReviewConnection", + Object: "RemediationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewEdge(ctx, field) + return ec.childFields_RemediationEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ReviewConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _RemediationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ReviewConnection_pageInfo(ctx, field) + return ec.fieldContext_RemediationConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -133804,9 +137435,9 @@ func (ec *executionContext) _ReviewConnection_pageInfo(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_ReviewConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RemediationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ReviewConnection", + Object: "RemediationConnection", Field: field, IsMethod: false, IsResolver: false, @@ -133817,13 +137448,13 @@ func (ec *executionContext) fieldContext_ReviewConnection_pageInfo(_ context.Con return fc, nil } -func (ec *executionContext) _ReviewConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _RemediationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ReviewConnection_totalCount(ctx, field) + return ec.fieldContext_RemediationConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -133836,49 +137467,49 @@ func (ec *executionContext) _ReviewConnection_totalCount(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_ReviewConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ReviewConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_RemediationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("RemediationConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ReviewEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _RemediationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ReviewEdge_node(ctx, field) + return ec.fieldContext_RemediationEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Review) graphql.Marshaler { - return ec.marshalOReview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReview(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Remediation) graphql.Marshaler { + return ec.marshalORemediation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediation(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ReviewEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RemediationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ReviewEdge", + Object: "RemediationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Review(ctx, field) + return ec.childFields_Remediation(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ReviewEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _RemediationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RemediationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ReviewEdge_cursor(ctx, field) + return ec.fieldContext_RemediationEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -133891,17 +137522,17 @@ func (ec *executionContext) _ReviewEdge_cursor(ctx context.Context, field graphq true, ) } -func (ec *executionContext) fieldContext_ReviewEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ReviewEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_RemediationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("RemediationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_id(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_id(ctx, field) + return ec.fieldContext_Review_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -133914,17 +137545,17 @@ func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.Collecte true, ) } -func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_createdAt(ctx, field) + return ec.fieldContext_Review_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -133937,17 +137568,17 @@ func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Review_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_updatedAt(ctx, field) + return ec.fieldContext_Review_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -133960,17 +137591,17 @@ func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Review_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_createdBy(ctx, field) + return ec.fieldContext_Review_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -133983,17 +137614,17 @@ func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Risk_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_updatedBy(ctx, field) + return ec.fieldContext_Review_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -134006,135 +137637,171 @@ func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Risk_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_displayID(ctx, field) + return ec.fieldContext_Review_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Risk_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_tags(ctx, field) + return ec.fieldContext_Review_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_ownerID(ctx, field) + return ec.fieldContext_Review_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Risk_riskKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskKindName(ctx, field) + return ec.fieldContext_Review_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskKindName, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_riskKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_riskKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskKindID(ctx, field) + return ec.fieldContext_Review_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskKindID, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_riskKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_riskCategoryName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskCategoryName(ctx, field) + return ec.fieldContext_Review_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskCategoryName, nil + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134144,20 +137811,20 @@ func (ec *executionContext) _Risk_riskCategoryName(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_Risk_riskCategoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_riskCategoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskCategoryID(ctx, field) + return ec.fieldContext_Review_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskCategoryID, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134167,20 +137834,20 @@ func (ec *executionContext) _Risk_riskCategoryID(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Risk_riskCategoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Risk_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_environmentName(ctx, field) + return ec.fieldContext_Review_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134190,20 +137857,20 @@ func (ec *executionContext) _Risk_environmentName(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Risk_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_environmentID(ctx, field) + return ec.fieldContext_Review_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134213,20 +137880,20 @@ func (ec *executionContext) _Risk_environmentID(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Risk_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Risk_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_scopeName(ctx, field) + return ec.fieldContext_Review_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.ExternalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134236,66 +137903,20 @@ func (ec *executionContext) _Risk_scopeName(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Risk_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_scopeID(ctx, field) + return ec.fieldContext_Review_externalOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _Risk_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_externalID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ExternalID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Risk_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_integrationID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.ExternalOwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134305,66 +137926,20 @@ func (ec *executionContext) _Risk_integrationID(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Risk_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Risk_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_observedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ObservedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) -} - -func (ec *executionContext) _Risk_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_externalUUID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_title(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_name(ctx, field) + return ec.fieldContext_Review_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Title, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134374,112 +137949,20 @@ func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.Collec true, ) } -func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.RiskStatus) graphql.Marshaler { - return ec.marshalORiskRiskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskStatus(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskStatus does not have child fields")) -} - -func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_impact(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Impact, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { - return ec.marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskImpact(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskImpact does not have child fields")) -} - -func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_likelihood(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Likelihood, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { - return ec.marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskLikelihood(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskLikelihood does not have child fields")) -} - -func (ec *executionContext) _Risk_score(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_score(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Score, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Review_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_state(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_mitigation(ctx, field) + return ec.fieldContext_Review_state(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Mitigation, nil + return obj.State, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134489,43 +137972,43 @@ func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Risk_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_mitigationJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_status(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_mitigationJSON(ctx, field) + return ec.fieldContext_Review_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MitigationJSON, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ReviewStatus) graphql.Marshaler { + return ec.marshalOReviewReviewStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐReviewStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_mitigationJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_Review_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ReviewReviewStatus does not have child fields")) } -func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_category(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_details(ctx, field) + return ec.fieldContext_Review_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.Category, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134535,43 +138018,43 @@ func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.Col false, ) } -func (ec *executionContext) fieldContext_Risk_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_classification(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_detailsJSON(ctx, field) + return ec.fieldContext_Review_classification(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil + return obj.Classification, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_Review_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_businessCosts(ctx, field) + return ec.fieldContext_Review_summary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessCosts, nil + return obj.Summary, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -134581,89 +138064,89 @@ func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Risk_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Review_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_businessCostsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_details(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_businessCostsJSON(ctx, field) + return ec.fieldContext_Review_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessCostsJSON, nil + return obj.Details, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_businessCostsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_Review_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_stakeholderID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_reporter(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_stakeholderID(ctx, field) + return ec.fieldContext_Review_reporter(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StakeholderID, nil + return obj.Reporter, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_stakeholderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_reporter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_approved(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_delegateID(ctx, field) + return ec.fieldContext_Review_approved(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, nil + return obj.Approved, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Review_approved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Risk_mitigatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_reviewedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_mitigatedAt(ctx, field) + return ec.fieldContext_Review_reviewedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MitigatedAt, nil + return obj.ReviewedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -134673,43 +138156,43 @@ func (ec *executionContext) _Risk_mitigatedAt(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Risk_mitigatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Review_reviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Risk_reviewRequired(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_reportedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_reviewRequired(ctx, field) + return ec.fieldContext_Review_reportedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewRequired, nil + return obj.ReportedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_reviewRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Review_reportedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Risk_lastReviewedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_approvedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_lastReviewedAt(ctx, field) + return ec.fieldContext_Review_approvedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastReviewedAt, nil + return obj.ApprovedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -134719,132 +138202,132 @@ func (ec *executionContext) _Risk_lastReviewedAt(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Risk_lastReviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Review_approvedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Risk_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_reviewerID(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_reviewFrequency(ctx, field) + return ec.fieldContext_Review_reviewerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil + return obj.ReviewerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalORiskFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskFrequency does not have child fields")) +func (ec *executionContext) fieldContext_Review_reviewerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Risk_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_source(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_dueDate(ctx, field) + return ec.fieldContext_Review_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueDate, nil + return obj.Source, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Review_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_nextReviewDueAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_nextReviewDueAt(ctx, field) + return ec.fieldContext_Review_externalURI(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NextReviewDueAt, nil + return obj.ExternalURI, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_nextReviewDueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Review_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Risk_residualScore(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_residualScore(ctx, field) + return ec.fieldContext_Review_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResidualScore, nil + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_residualScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Review_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Risk_riskDecision(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskDecision(ctx, field) + return ec.fieldContext_Review_rawPayload(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskDecision, nil + return obj.RawPayload, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.RiskDecision) graphql.Marshaler { - return ec.marshalORiskRiskDecision2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskDecision(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_riskDecision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskDecision does not have child fields")) +func (ec *executionContext) fieldContext_Review_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Review", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_owner(ctx, field) + return ec.fieldContext_Review_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -134857,9 +138340,9 @@ func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.Colle false, ) } -func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -134870,13 +138353,13 @@ func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_blockedGroups(ctx, field) + return ec.fieldContext_Review_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -134890,9 +138373,9 @@ func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Risk_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -134907,20 +138390,20 @@ func (ec *executionContext) fieldContext_Risk_blockedGroups(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_blockedGroups_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) { +func (ec *executionContext) _Review_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_editors(ctx, field) + return ec.fieldContext_Review_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -134934,9 +138417,9 @@ func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Risk_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -134951,20 +138434,20 @@ func (ec *executionContext) fieldContext_Risk_editors(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_editors_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) { +func (ec *executionContext) _Review_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_viewers(ctx, field) + return ec.fieldContext_Review_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -134978,9 +138461,9 @@ func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Risk_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -134995,23 +138478,23 @@ func (ec *executionContext) fieldContext_Risk_viewers(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_riskKind(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskKind(ctx, field) + return ec.fieldContext_Review_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskKind(ctx) + return obj.Environment(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -135021,9 +138504,9 @@ func (ec *executionContext) _Risk_riskKind(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Risk_riskKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -135034,16 +138517,16 @@ func (ec *executionContext) fieldContext_Risk_riskKind(_ context.Context, field return fc, nil } -func (ec *executionContext) _Risk_riskCategory(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_riskCategory(ctx, field) + return ec.fieldContext_Review_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskCategory(ctx) + return obj.Scope(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -135053,9 +138536,9 @@ func (ec *executionContext) _Risk_riskCategory(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Risk_riskCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -135066,98 +138549,78 @@ func (ec *executionContext) fieldContext_Risk_riskCategory(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Risk_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_environment(ctx, field) + return ec.fieldContext_Review_integrations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_scope(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Scope(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_Risk_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_IntegrationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Review_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_controls(ctx, field) + return ec.fieldContext_Review_findings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } defer func() { @@ -135167,41 +138630,41 @@ func (ec *executionContext) fieldContext_Risk_controls(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_subcontrols(ctx, field) + return ec.fieldContext_Review_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } defer func() { @@ -135211,41 +138674,41 @@ func (ec *executionContext) fieldContext_Risk_subcontrols(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_procedures(ctx, field) + return ec.fieldContext_Review_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureConnection(ctx, field) + return ec.childFields_ActionPlanConnection(ctx, field) }, } defer func() { @@ -135255,41 +138718,41 @@ func (ec *executionContext) fieldContext_Risk_procedures(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_internalPolicies(ctx, field) + return ec.fieldContext_Review_remediations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) + return ec.childFields_RemediationConnection(ctx, field) }, } defer func() { @@ -135299,41 +138762,41 @@ func (ec *executionContext) fieldContext_Risk_internalPolicies(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_remediations_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) { +func (ec *executionContext) _Review_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_programs(ctx, field) + return ec.fieldContext_Review_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -135343,41 +138806,41 @@ func (ec *executionContext) fieldContext_Risk_programs(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_platforms(ctx, field) + return ec.fieldContext_Review_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -135387,41 +138850,41 @@ func (ec *executionContext) fieldContext_Risk_platforms(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_subcontrols_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) { +func (ec *executionContext) _Review_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_actionPlans(ctx, field) + return ec.fieldContext_Review_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -135431,41 +138894,41 @@ func (ec *executionContext) fieldContext_Risk_actionPlans(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_tasks(ctx, field) + return ec.fieldContext_Review_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -135475,20 +138938,20 @@ func (ec *executionContext) fieldContext_Risk_tasks(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_assets(ctx, field) + return ec.fieldContext_Review_assets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -135502,9 +138965,9 @@ func (ec *executionContext) _Risk_assets(ctx context.Context, field graphql.Coll true, ) } -func (ec *executionContext) fieldContext_Risk_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -135519,20 +138982,20 @@ func (ec *executionContext) fieldContext_Risk_assets(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_entities(ctx, field) + return ec.fieldContext_Review_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -135546,9 +139009,9 @@ func (ec *executionContext) _Risk_entities(ctx context.Context, field graphql.Co true, ) } -func (ec *executionContext) fieldContext_Risk_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -135563,41 +139026,41 @@ func (ec *executionContext) fieldContext_Risk_entities(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_scans(ctx, field) + return ec.fieldContext_Review_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -135607,84 +139070,52 @@ func (ec *executionContext) fieldContext_Risk_scans(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_stakeholder(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_stakeholder(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Stakeholder(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Risk_stakeholder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_reviewer(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_delegate(ctx, field) + return ec.fieldContext_Review_reviewer(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Delegate(ctx) + return obj.Reviewer(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Risk_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_reviewer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Risk_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_comments(ctx, field) + return ec.fieldContext_Review_comments(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -135698,9 +139129,9 @@ func (ec *executionContext) _Risk_comments(ctx context.Context, field graphql.Co true, ) } -func (ec *executionContext) fieldContext_Risk_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, @@ -135715,85 +139146,41 @@ func (ec *executionContext) fieldContext_Risk_comments(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Risk_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_discussions(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Risk_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DiscussionConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_files(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_reviews(ctx, field) + return ec.fieldContext_Review_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -135803,41 +139190,41 @@ func (ec *executionContext) fieldContext_Risk_reviews(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Risk_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { +func (ec *executionContext) _Review_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Review) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Risk_remediations(ctx, field) + return ec.fieldContext_Review_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Risk_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Review_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Review", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -135847,52 +139234,52 @@ func (ec *executionContext) fieldContext_Risk_remediations(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Risk_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Review_internalPolicies_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) { +func (ec *executionContext) _ReviewConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RiskConnection_edges(ctx, field) + return ec.fieldContext_ReviewConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.RiskEdge) graphql.Marshaler { - return ec.marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ReviewEdge) graphql.Marshaler { + return ec.marshalOReviewEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ReviewConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskConnection", + Object: "ReviewConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskEdge(ctx, field) + return ec.childFields_ReviewEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ReviewConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RiskConnection_pageInfo(ctx, field) + return ec.fieldContext_ReviewConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -135905,9 +139292,9 @@ func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ReviewConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskConnection", + Object: "ReviewConnection", Field: field, IsMethod: false, IsResolver: false, @@ -135918,13 +139305,13 @@ func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Conte return fc, nil } -func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ReviewConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RiskConnection_totalCount(ctx, field) + return ec.fieldContext_ReviewConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -135937,49 +139324,49 @@ func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("RiskConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ReviewConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ReviewConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ReviewEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RiskEdge_node(ctx, field) + return ec.fieldContext_ReviewEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Risk) graphql.Marshaler { - return ec.marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Review) graphql.Marshaler { + return ec.marshalOReview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReview(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ReviewEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskEdge", + Object: "ReviewEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Risk(ctx, field) + return ec.childFields_Review(ctx, field) }, } return fc, nil } -func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ReviewEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ReviewEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_RiskEdge_cursor(ctx, field) + return ec.fieldContext_ReviewEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -135992,17 +139379,17 @@ func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("RiskEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ReviewEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ReviewEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _SLADefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -136015,17 +139402,17 @@ func (ec *executionContext) _SLADefinition_id(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_SLADefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SLADefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -136038,17 +139425,17 @@ func (ec *executionContext) _SLADefinition_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_SLADefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _SLADefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -136061,17 +139448,17 @@ func (ec *executionContext) _SLADefinition_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_SLADefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _SLADefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -136084,17 +139471,17 @@ func (ec *executionContext) _SLADefinition_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_SLADefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_updatedBy(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -136107,17 +139494,17 @@ func (ec *executionContext) _SLADefinition_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_SLADefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_displayID(ctx, field) + return ec.fieldContext_Risk_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -136130,17 +139517,17 @@ func (ec *executionContext) _SLADefinition_displayID(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_SLADefinition_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_tags(ctx, field) + return ec.fieldContext_Risk_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -136153,17 +139540,17 @@ func (ec *executionContext) _SLADefinition_tags(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_SLADefinition_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_ownerID(ctx, field) + return ec.fieldContext_Risk_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -136176,441 +139563,227 @@ func (ec *executionContext) _SLADefinition_ownerID(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_SLADefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SLADefinition_slaDays(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_slaDays(ctx, field) + return ec.fieldContext_Risk_riskKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SLADays, nil + return obj.RiskKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SLADefinition_slaDays(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Risk_riskKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_securityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_securityLevel(ctx, field) + return ec.fieldContext_Risk_riskKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityLevel, nil + return obj.RiskKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SecurityLevel) graphql.Marshaler { - return ec.marshalNSLADefinitionSecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SLADefinition_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type SLADefinitionSecurityLevel does not have child fields")) +func (ec *executionContext) fieldContext_Risk_riskKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SLADefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskCategoryName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_owner(ctx, field) + return ec.fieldContext_Risk_riskCategoryName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.RiskCategoryName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SLADefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Risk_riskCategoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinition_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskCategoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_blockedGroups(ctx, field) + return ec.fieldContext_Risk_riskCategoryID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.RiskCategoryID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SLADefinition_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SLADefinition_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SLADefinition_editors(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_editors(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_SLADefinition_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SLADefinition_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SLADefinition_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinition_viewers(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_SLADefinition_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SLADefinition_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Risk_riskCategoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SLADefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinitionConnection_edges(ctx, field) + return ec.fieldContext_Risk_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.SLADefinitionEdge) graphql.Marshaler { - return ec.marshalOSLADefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SLADefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinitionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SLADefinitionEdge(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _SLADefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinitionConnection_pageInfo(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_SLADefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinitionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _SLADefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinitionConnection_totalCount(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TotalCount, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_SLADefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Risk_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SLADefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinitionEdge_node(ctx, field) + return ec.fieldContext_Risk_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinition) graphql.Marshaler { - return ec.marshalOSLADefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SLADefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SLADefinitionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SLADefinition(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _SLADefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SLADefinitionEdge_cursor(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_SLADefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SLADefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Risk_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Scan_id(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_id(ctx, field) + return ec.fieldContext_Risk_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Scan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_createdAt(ctx, field) + return ec.fieldContext_Risk_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Risk_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Scan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_updatedAt(ctx, field) + return ec.fieldContext_Risk_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Risk_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_createdBy(ctx, field) + return ec.fieldContext_Risk_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.IntegrationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -136620,227 +139793,227 @@ func (ec *executionContext) _Scan_createdBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Scan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_updatedBy(ctx, field) + return ec.fieldContext_Risk_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.ObservedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Scan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_tags(ctx, field) + return ec.fieldContext_Risk_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_ownerID(ctx, field) + return ec.fieldContext_Risk_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Scan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_reviewedBy(ctx, field) + return ec.fieldContext_Risk_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedBy, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.RiskStatus) graphql.Marshaler { + return ec.marshalORiskRiskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskStatus does not have child fields")) } -func (ec *executionContext) _Scan_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_reviewedByUserID(ctx, field) + return ec.fieldContext_Risk_impact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByUserID, nil + return obj.Impact, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { + return ec.marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskImpact(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskImpact does not have child fields")) } -func (ec *executionContext) _Scan_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_reviewedByGroupID(ctx, field) + return ec.fieldContext_Risk_likelihood(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByGroupID, nil + return obj.Likelihood, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { + return ec.marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskLikelihood(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskLikelihood does not have child fields")) } -func (ec *executionContext) _Scan_assignedTo(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_score(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assignedTo(ctx, field) + return ec.fieldContext_Risk_score(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedTo, nil + return obj.Score, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Scan_assignedToUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assignedToUserID(ctx, field) + return ec.fieldContext_Risk_mitigation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToUserID, nil + return obj.Mitigation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_assignedToUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_assignedToGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_mitigationJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assignedToGroupID(ctx, field) + return ec.fieldContext_Risk_mitigationJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToGroupID, nil + return obj.MitigationJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_assignedToGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_mitigationJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Scan_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_environmentName(ctx, field) + return ec.fieldContext_Risk_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.Details, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -136850,43 +140023,43 @@ func (ec *executionContext) _Scan_environmentName(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Scan_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_environmentID(ctx, field) + return ec.fieldContext_Risk_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Scan_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scopeName(ctx, field) + return ec.fieldContext_Risk_businessCosts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.BusinessCosts, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -136896,112 +140069,89 @@ func (ec *executionContext) _Scan_scopeName(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Scan_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Scan_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_businessCostsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scopeID(ctx, field) + return ec.fieldContext_Risk_businessCostsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.BusinessCostsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_businessCostsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Scan_target(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_stakeholderID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_target(ctx, field) + return ec.fieldContext_Risk_stakeholderID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Target, nil + return obj.StakeholderID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Scan_target(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Scan_scanType(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scanType(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ScanType, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ScanType) graphql.Marshaler { - return ec.marshalNScanScanType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScanType(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Scan_scanType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ScanScanType does not have child fields")) +func (ec *executionContext) fieldContext_Risk_stakeholderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Scan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_metadata(ctx, field) + return ec.fieldContext_Risk_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.DelegateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Risk_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Scan_scanDate(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_mitigatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scanDate(ctx, field) + return ec.fieldContext_Risk_mitigatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScanDate, nil + return obj.MitigatedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -137011,43 +140161,43 @@ func (ec *executionContext) _Scan_scanDate(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Scan_scanDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Risk_mitigatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Scan_scanSchedule(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_reviewRequired(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scanSchedule(ctx, field) + return ec.fieldContext_Risk_reviewRequired(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScanSchedule, nil + return obj.ReviewRequired, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.Cron) graphql.Marshaler { - return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_scanSchedule(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_reviewRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Scan_nextScanRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_lastReviewedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_nextScanRunAt(ctx, field) + return ec.fieldContext_Risk_lastReviewedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NextScanRunAt, nil + return obj.LastReviewedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -137057,155 +140207,132 @@ func (ec *executionContext) _Scan_nextScanRunAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Scan_nextScanRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Risk_lastReviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Scan_performedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_performedBy(ctx, field) + return ec.fieldContext_Risk_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PerformedBy, nil + return obj.ReviewFrequency, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { + return ec.marshalORiskFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_performedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Risk_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskFrequency does not have child fields")) } -func (ec *executionContext) _Scan_performedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_performedByUserID(ctx, field) + return ec.fieldContext_Risk_dueDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PerformedByUserID, nil + return obj.DueDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_performedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Scan_performedByGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_nextReviewDueAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_performedByGroupID(ctx, field) + return ec.fieldContext_Risk_nextReviewDueAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PerformedByGroupID, nil + return obj.NextReviewDueAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_performedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_nextReviewDueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Scan_generatedByPlatformID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_residualScore(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_generatedByPlatformID(ctx, field) + return ec.fieldContext_Risk_residualScore(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GeneratedByPlatformID, nil + return obj.ResidualScore, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_generatedByPlatformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Risk_residualScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Scan_vulnerabilityIds(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskDecision(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_vulnerabilityIds(ctx, field) + return ec.fieldContext_Risk_riskDecision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VulnerabilityIds, nil + return obj.RiskDecision, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.RiskDecision) graphql.Marshaler { + return ec.marshalORiskRiskDecision2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRiskDecision(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_vulnerabilityIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Scan_status(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ScanStatus) graphql.Marshaler { - return ec.marshalNScanScanStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScanStatus(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Scan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ScanScanStatus does not have child fields")) +func (ec *executionContext) fieldContext_Risk_riskDecision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Risk", field, false, false, errors.New("field of type RiskRiskDecision does not have child fields")) } -func (ec *executionContext) _Scan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_owner(ctx, field) + return ec.fieldContext_Risk_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -137218,9 +140345,9 @@ func (ec *executionContext) _Scan_owner(ctx context.Context, field graphql.Colle false, ) } -func (ec *executionContext) fieldContext_Scan_owner(_ 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: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137231,13 +140358,13 @@ func (ec *executionContext) fieldContext_Scan_owner(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Scan_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_blockedGroups(ctx, field) + return ec.fieldContext_Risk_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -137251,9 +140378,9 @@ func (ec *executionContext) _Scan_blockedGroups(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Scan_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137268,20 +140395,20 @@ func (ec *executionContext) fieldContext_Scan_blockedGroups(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_editors(ctx, field) + return ec.fieldContext_Risk_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -137295,9 +140422,9 @@ func (ec *executionContext) _Scan_editors(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Scan_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137312,20 +140439,20 @@ func (ec *executionContext) fieldContext_Scan_editors(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_viewers(ctx, field) + return ec.fieldContext_Risk_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -137339,9 +140466,9 @@ func (ec *executionContext) _Scan_viewers(ctx context.Context, field graphql.Col true, ) } -func (ec *executionContext) fieldContext_Scan_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137356,151 +140483,119 @@ func (ec *executionContext) fieldContext_Scan_viewers(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_reviewedByUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_reviewedByUser(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ReviewedByUser(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Scan_reviewedByUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Scan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _Scan_reviewedByGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskKind(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_reviewedByGroup(ctx, field) + return ec.fieldContext_Risk_riskKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByGroup(ctx) + return obj.RiskKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_reviewedByGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_riskKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Scan_assignedToUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_riskCategory(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assignedToUser(ctx, field) + return ec.fieldContext_Risk_riskCategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToUser(ctx) + return obj.RiskCategory(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_assignedToUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_riskCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Scan_assignedToGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assignedToGroup(ctx, field) + return ec.fieldContext_Risk_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToGroup(ctx) + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_assignedToGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Scan_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_environment(ctx, field) + return ec.fieldContext_Risk_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.Scope(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -137510,9 +140605,9 @@ func (ec *executionContext) _Scan_environment(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Scan_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137523,66 +140618,78 @@ func (ec *executionContext) fieldContext_Scan_environment(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Scan_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_scope(ctx, field) + return ec.fieldContext_Risk_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Scan_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Risk_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Scan_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_assets(ctx, field) + return ec.fieldContext_Risk_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -137592,41 +140699,41 @@ func (ec *executionContext) fieldContext_Scan_assets(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_entities(ctx, field) + return ec.fieldContext_Risk_procedures(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) + return ec.childFields_ProcedureConnection(ctx, field) }, } defer func() { @@ -137636,41 +140743,41 @@ func (ec *executionContext) fieldContext_Scan_entities(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_evidence(ctx, field) + return ec.fieldContext_Risk_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceConnection(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -137680,41 +140787,41 @@ func (ec *executionContext) fieldContext_Scan_evidence(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_files(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_files(ctx, field) + return ec.fieldContext_Risk_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -137724,41 +140831,41 @@ func (ec *executionContext) fieldContext_Scan_files(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_remediations(ctx, field) + return ec.fieldContext_Risk_platforms(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } defer func() { @@ -137768,20 +140875,20 @@ func (ec *executionContext) fieldContext_Scan_remediations(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_actionPlans(ctx, field) + return ec.fieldContext_Risk_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -137795,9 +140902,9 @@ func (ec *executionContext) _Scan_actionPlans(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_Scan_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137812,20 +140919,20 @@ func (ec *executionContext) fieldContext_Scan_actionPlans(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_tasks(ctx, field) + return ec.fieldContext_Risk_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -137839,9 +140946,9 @@ func (ec *executionContext) _Scan_tasks(ctx context.Context, field graphql.Colle true, ) } -func (ec *executionContext) fieldContext_Scan_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -137856,41 +140963,41 @@ func (ec *executionContext) fieldContext_Scan_tasks(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_platforms(ctx, field) + return ec.fieldContext_Risk_assets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_AssetConnection(ctx, field) }, } defer func() { @@ -137900,41 +141007,41 @@ func (ec *executionContext) fieldContext_Scan_platforms(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_vulnerabilities(ctx, field) + return ec.fieldContext_Risk_entities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityConnection(ctx, field) + return ec.childFields_EntityConnection(ctx, field) }, } defer func() { @@ -137944,41 +141051,41 @@ func (ec *executionContext) fieldContext_Scan_vulnerabilities(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_controls(ctx, field) + return ec.fieldContext_Risk_scans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Scan_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_ScanConnection(ctx, field) }, } defer func() { @@ -137988,192 +141095,292 @@ func (ec *executionContext) fieldContext_Scan_controls(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Risk_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Scan_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_stakeholder(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_subcontrols(ctx, field) + return ec.fieldContext_Risk_stakeholder(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Stakeholder(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Scan_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_stakeholder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_Group(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Scan_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Scan_generatedByPlatform(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_generatedByPlatform(ctx, field) + return ec.fieldContext_Risk_delegate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GeneratedByPlatform(ctx) + return obj.Delegate(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Scan_generatedByPlatform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) + return ec.childFields_Group(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Scan_performedByUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_performedByUser(ctx, field) + return ec.fieldContext_Risk_comments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PerformedByUser(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Scan_performedByUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } - return fc, nil -} + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Risk_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} -func (ec *executionContext) _Scan_performedByGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Scan_performedByGroup(ctx, field) + return ec.fieldContext_Risk_discussions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PerformedByGroup(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Scan_performedByGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Scan", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_DiscussionConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Risk_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ScanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Risk_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScanConnection_edges(ctx, field) + return ec.fieldContext_Risk_reviews(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Risk_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Risk", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ReviewConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Risk_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Risk_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Risk_remediations(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Risk_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Risk", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_RemediationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Risk_remediations_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) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_RiskConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScanEdge) graphql.Marshaler { - return ec.marshalOScanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.RiskEdge) graphql.Marshaler { + return ec.marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScanConnection_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: "ScanConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanEdge(ctx, field) + return ec.childFields_RiskEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ScanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScanConnection_pageInfo(ctx, field) + return ec.fieldContext_RiskConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -138186,9 +141393,9 @@ func (ec *executionContext) _ScanConnection_pageInfo(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_ScanConnection_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: "ScanConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -138199,13 +141406,13 @@ func (ec *executionContext) fieldContext_ScanConnection_pageInfo(_ context.Conte return fc, nil } -func (ec *executionContext) _ScanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScanConnection_totalCount(ctx, field) + return ec.fieldContext_RiskConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -138218,49 +141425,49 @@ func (ec *executionContext) _ScanConnection_totalCount(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_ScanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScanConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("RiskConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ScanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScanEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScanEdge_node(ctx, field) + return ec.fieldContext_RiskEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Scan) graphql.Marshaler { - return ec.marshalOScan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Risk) graphql.Marshaler { + return ec.marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScanEdge_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: "ScanEdge", + Object: "RiskEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Scan(ctx, field) + return ec.childFields_Risk(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ScanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScanEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScanEdge_cursor(ctx, field) + return ec.fieldContext_RiskEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -138273,17 +141480,17 @@ func (ec *executionContext) _ScanEdge_cursor(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_ScanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScanEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("RiskEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ScheduledJob_id(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_id(ctx, field) + return ec.fieldContext_SLADefinition_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -138296,17 +141503,17 @@ func (ec *executionContext) _ScheduledJob_id(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJob_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_createdAt(ctx, field) + return ec.fieldContext_SLADefinition_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -138319,17 +141526,17 @@ func (ec *executionContext) _ScheduledJob_createdAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ScheduledJob_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_updatedAt(ctx, field) + return ec.fieldContext_SLADefinition_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -138342,17 +141549,17 @@ func (ec *executionContext) _ScheduledJob_updatedAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ScheduledJob_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_createdBy(ctx, field) + return ec.fieldContext_SLADefinition_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -138365,17 +141572,17 @@ func (ec *executionContext) _ScheduledJob_createdBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJob_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_updatedBy(ctx, field) + return ec.fieldContext_SLADefinition_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -138388,17 +141595,17 @@ func (ec *executionContext) _ScheduledJob_updatedBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJob_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_displayID(ctx, field) + return ec.fieldContext_SLADefinition_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -138411,155 +141618,109 @@ func (ec *executionContext) _ScheduledJob_displayID(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJob_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_ownerID(ctx, field) + return ec.fieldContext_SLADefinition_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJob_jobID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_jobID(ctx, field) + return ec.fieldContext_SLADefinition_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JobID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_jobID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJob_active(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_slaDays(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_active(ctx, field) + return ec.fieldContext_SLADefinition_slaDays(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Active, nil + return obj.SLADays, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _ScheduledJob_configuration(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_configuration(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Configuration, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v models.JobConfiguration) graphql.Marshaler { - return ec.marshalOJobConfiguration2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐJobConfiguration(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ScheduledJob_configuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type JobConfiguration does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_slaDays(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ScheduledJob_cron(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_securityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_cron(ctx, field) + return ec.fieldContext_SLADefinition_securityLevel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cron, nil + return obj.SecurityLevel, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.Cron) graphql.Marshaler { - return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SecurityLevel) graphql.Marshaler { + return ec.marshalNSLADefinitionSecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_ScheduledJob_cron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ScheduledJob_jobRunnerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_jobRunnerID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.JobRunnerID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_jobRunnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinition_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinition", field, false, false, errors.New("field of type SLADefinitionSecurityLevel does not have child fields")) } -func (ec *executionContext) _ScheduledJob_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_owner(ctx, field) + return ec.fieldContext_SLADefinition_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -138572,9 +141733,9 @@ func (ec *executionContext) _ScheduledJob_owner(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_ScheduledJob_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJob", + Object: "SLADefinition", Field: field, IsMethod: true, IsResolver: false, @@ -138585,66 +141746,78 @@ func (ec *executionContext) fieldContext_ScheduledJob_owner(_ context.Context, f return fc, nil } -func (ec *executionContext) _ScheduledJob_jobTemplate(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_jobTemplate(ctx, field) + return ec.fieldContext_SLADefinition_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JobTemplate(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplate) graphql.Marshaler { - return ec.marshalNJobTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_jobTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinition_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJob", + Object: "SLADefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobTemplate(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SLADefinition_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ScheduledJob_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_editors(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_controls(ctx, field) + return ec.fieldContext_SLADefinition_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinition_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJob", + Object: "SLADefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -138654,41 +141827,41 @@ func (ec *executionContext) fieldContext_ScheduledJob_controls(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ScheduledJob_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SLADefinition_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ScheduledJob_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinition_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_subcontrols(ctx, field) + return ec.fieldContext_SLADefinition_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ScheduledJob_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinition_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJob", + Object: "SLADefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -138698,84 +141871,52 @@ func (ec *executionContext) fieldContext_ScheduledJob_subcontrols(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ScheduledJob_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SLADefinition_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ScheduledJob_jobRunner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJob_jobRunner(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.JobRunner(ctx) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { - return ec.marshalOJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ScheduledJob_jobRunner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJob", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunner(ctx, field) - }, - } - return fc, nil -} - -func (ec *executionContext) _ScheduledJobConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobConnection_edges(ctx, field) + return ec.fieldContext_SLADefinitionConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScheduledJobEdge) graphql.Marshaler { - return ec.marshalOScheduledJobEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.SLADefinitionEdge) graphql.Marshaler { + return ec.marshalOSLADefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinitionEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJobConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJobConnection", + Object: "SLADefinitionConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobEdge(ctx, field) + return ec.childFields_SLADefinitionEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ScheduledJobConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobConnection_pageInfo(ctx, field) + return ec.fieldContext_SLADefinitionConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -138788,9 +141929,9 @@ func (ec *executionContext) _ScheduledJobConnection_pageInfo(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_ScheduledJobConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJobConnection", + Object: "SLADefinitionConnection", Field: field, IsMethod: false, IsResolver: false, @@ -138801,13 +141942,13 @@ func (ec *executionContext) fieldContext_ScheduledJobConnection_pageInfo(_ conte return fc, nil } -func (ec *executionContext) _ScheduledJobConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobConnection_totalCount(ctx, field) + return ec.fieldContext_SLADefinitionConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -138820,49 +141961,49 @@ func (ec *executionContext) _ScheduledJobConnection_totalCount(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_ScheduledJobConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ScheduledJobEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobEdge_node(ctx, field) + return ec.fieldContext_SLADefinitionEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { - return ec.marshalOScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SLADefinition) graphql.Marshaler { + return ec.marshalOSLADefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSLADefinition(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJobEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SLADefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ScheduledJobEdge", + Object: "SLADefinitionEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJob(ctx, field) + return ec.childFields_SLADefinition(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ScheduledJobEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SLADefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SLADefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobEdge_cursor(ctx, field) + return ec.fieldContext_SLADefinitionEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -138875,17 +142016,17 @@ func (ec *executionContext) _ScheduledJobEdge_cursor(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_ScheduledJobEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_SLADefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SLADefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_id(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_id(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_id(ctx, field) + return ec.fieldContext_Scan_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -138898,17 +142039,17 @@ func (ec *executionContext) _ScheduledJobRun_id(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_createdAt(ctx, field) + return ec.fieldContext_Scan_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -138921,17 +142062,17 @@ func (ec *executionContext) _ScheduledJobRun_createdAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Scan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_updatedAt(ctx, field) + return ec.fieldContext_Scan_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -138944,17 +142085,17 @@ func (ec *executionContext) _ScheduledJobRun_updatedAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Scan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_createdBy(ctx, field) + return ec.fieldContext_Scan_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -138967,17 +142108,17 @@ func (ec *executionContext) _ScheduledJobRun_createdBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_updatedBy(ctx, field) + return ec.fieldContext_Scan_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -138990,488 +142131,434 @@ func (ec *executionContext) _ScheduledJobRun_updatedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_ownerID(ctx, field) + return ec.fieldContext_Scan_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_jobRunnerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_jobRunnerID(ctx, field) + return ec.fieldContext_Scan_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JobRunnerID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_jobRunnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_status(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_status(ctx, field) + return ec.fieldContext_Scan_reviewedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ReviewedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ScheduledJobRunStatus) graphql.Marshaler { - return ec.marshalNScheduledJobRunScheduledJobRunStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScheduledJobRunStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ScheduledJobRunScheduledJobRunStatus does not have child fields")) +func (ec *executionContext) fieldContext_Scan_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_scheduledJobID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_scheduledJobID(ctx, field) + return ec.fieldContext_Scan_reviewedByUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScheduledJobID, nil + return obj.ReviewedByUserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_scheduledJobID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_expectedExecutionTime(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_expectedExecutionTime(ctx, field) + return ec.fieldContext_Scan_reviewedByGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExpectedExecutionTime, nil + return obj.ReviewedByGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalNTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_expectedExecutionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Scan_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_script(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assignedTo(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_script(ctx, field) + return ec.fieldContext_Scan_assignedTo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Script, nil + return obj.AssignedTo, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_script(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assignedToUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_owner(ctx, field) + return ec.fieldContext_Scan_assignedToUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.AssignedToUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRun", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_assignedToUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_scheduledJob(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assignedToGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_scheduledJob(ctx, field) + return ec.fieldContext_Scan_assignedToGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScheduledJob(ctx) + return obj.AssignedToGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { - return ec.marshalNScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_scheduledJob(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRun", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJob(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_assignedToGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRun_jobRunner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRun_jobRunner(ctx, field) + return ec.fieldContext_Scan_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JobRunner(ctx) + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { - return ec.marshalNJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRun_jobRunner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRun", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_JobRunner(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRunConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRunConnection_edges(ctx, field) + return ec.fieldContext_Scan_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScheduledJobRunEdge) graphql.Marshaler { - return ec.marshalOScheduledJobRunEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRunConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRunConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobRunEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRunConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRunConnection_pageInfo(ctx, field) + return ec.fieldContext_Scan_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRunConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRunConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRunConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRunConnection_totalCount(ctx, field) + return ec.fieldContext_Scan_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ScheduledJobRunConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRunConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Scan_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ScheduledJobRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_target(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRunEdge_node(ctx, field) + return ec.fieldContext_Scan_target(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Target, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRun) graphql.Marshaler { - return ec.marshalOScheduledJobRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRun(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ScheduledJobRunEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ScheduledJobRunEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScheduledJobRun(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Scan_target(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ScheduledJobRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scanType(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ScheduledJobRunEdge_cursor(ctx, field) + return ec.fieldContext_Scan_scanType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ScanType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ScanType) graphql.Marshaler { + return ec.marshalNScanScanType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScanType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ScheduledJobRunEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ScheduledJobRunEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Scan_scanType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ScanScanType does not have child fields")) } -func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_id(ctx, field) + return ec.fieldContext_Scan_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Standard_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scanDate(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_createdAt(ctx, field) + return ec.fieldContext_Scan_scanDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ScanDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Scan_scanDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scanSchedule(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_updatedAt(ctx, field) + return ec.fieldContext_Scan_scanSchedule(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ScanSchedule, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.Cron) graphql.Marshaler { + return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Scan_scanSchedule(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_nextScanRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_createdBy(ctx, field) + return ec.fieldContext_Scan_nextScanRunAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.NextScanRunAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_nextScanRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_performedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_updatedBy(ctx, field) + return ec.fieldContext_Scan_performedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.PerformedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -139481,66 +142568,66 @@ func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Standard_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_performedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_performedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_tags(ctx, field) + return ec.fieldContext_Scan_performedByUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.PerformedByUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_performedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Standard_revision(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_performedByGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_revision(ctx, field) + return ec.fieldContext_Scan_performedByGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.PerformedByGroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_performedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Standard_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_generatedByPlatformID(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_ownerID(ctx, field) + return ec.fieldContext_Scan_generatedByPlatformID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.GeneratedByPlatformID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -139550,533 +142637,616 @@ func (ec *executionContext) _Standard_ownerID(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Standard_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_generatedByPlatformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Standard_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_vulnerabilityIds(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_systemOwned(ctx, field) + return ec.fieldContext_Scan_vulnerabilityIds(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.VulnerabilityIds, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Scan_vulnerabilityIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Standard_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_status(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_internalNotes(ctx, field) + return ec.fieldContext_Scan_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Status, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.ScanStatus) graphql.Marshaler { + return ec.marshalNScanScanStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScanStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Scan", field, false, false, errors.New("field of type ScanScanStatus does not have child fields")) } -func (ec *executionContext) _Standard_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_systemInternalID(ctx, field) + return ec.fieldContext_Scan_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Owner(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_name(ctx, field) + return ec.fieldContext_Scan_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Standard_shortName(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_shortName(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ShortName, nil +func (ec *executionContext) fieldContext_Scan_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Standard_shortName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, 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_Scan_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_framework(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_framework(ctx, field) + return ec.fieldContext_Scan_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Framework, nil + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_description(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_description(ctx, field) + return ec.fieldContext_Scan_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + fc := graphql.GetFieldContext(ctx) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_governingBodyLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_reviewedByUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_governingBodyLogoURL(ctx, field) + return ec.fieldContext_Scan_reviewedByUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GoverningBodyLogoURL, nil + return obj.ReviewedByUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_governingBodyLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_reviewedByUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_governingBody(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_reviewedByGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_governingBody(ctx, field) + return ec.fieldContext_Scan_reviewedByGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GoverningBody, nil + return obj.ReviewedByGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_governingBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_reviewedByGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assignedToUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_domains(ctx, field) + return ec.fieldContext_Scan_assignedToUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Domains, nil + return obj.AssignedToUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_assignedToUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_link(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assignedToGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_link(ctx, field) + return ec.fieldContext_Scan_assignedToGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Link, nil + return obj.AssignedToGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_link(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_assignedToGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_status(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_status(ctx, field) + return ec.fieldContext_Scan_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.StandardStatus) graphql.Marshaler { - return ec.marshalOStandardStandardStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐStandardStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type StandardStandardStatus does not have child fields")) -} - -func (ec *executionContext) _Standard_isPublic(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_isPublic(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IsPublic, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal bool - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next - }, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) +func (ec *executionContext) fieldContext_Scan_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Standard_isPublic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _Standard_freeToUse(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_freeToUse(ctx, field) + return ec.fieldContext_Scan_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FreeToUse, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal bool - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Scope(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Standard_freeToUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Scan_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Standard_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_standardType(ctx, field) + return ec.fieldContext_Scan_assets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StandardType, nil + fc := graphql.GetFieldContext(ctx) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_version(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_version(ctx, field) + return ec.fieldContext_Scan_entities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Version, nil + fc := graphql.GetFieldContext(ctx) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Scan_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_logoFileID(ctx, field) + return ec.fieldContext_Scan_evidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFileID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Scan_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EvidenceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Standard_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_files(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_owner(ctx, field) + return ec.fieldContext_Scan_files(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Standard_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_controls(ctx, field) + return ec.fieldContext_Scan_remediations(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Standard_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) + return ec.childFields_RemediationConnection(ctx, field) }, } defer func() { @@ -140086,41 +143256,41 @@ func (ec *executionContext) fieldContext_Standard_controls(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Standard_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Scan_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Standard_trustCenterCompliances(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_trustCenterCompliances(ctx, field) + return ec.fieldContext_Scan_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { - return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Standard_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterComplianceConnection(ctx, field) + return ec.childFields_ActionPlanConnection(ctx, field) }, } defer func() { @@ -140130,41 +143300,41 @@ func (ec *executionContext) fieldContext_Standard_trustCenterCompliances(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Standard_trustCenterCompliances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Scan_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Standard_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_trustCenterDocs(ctx, field) + return ec.fieldContext_Scan_tasks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { - return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Standard_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDocConnection(ctx, field) + return ec.childFields_TaskConnection(ctx, field) }, } defer func() { @@ -140174,24 +143344,24 @@ func (ec *executionContext) fieldContext_Standard_trustCenterDocs(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Standard_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Scan_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Standard_applicablePlatforms(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_applicablePlatforms(ctx, field) + return ec.fieldContext_Scan_platforms(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.ApplicablePlatforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { @@ -140201,9 +143371,9 @@ func (ec *executionContext) _Standard_applicablePlatforms(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_Standard_applicablePlatforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, @@ -140218,401 +143388,464 @@ func (ec *executionContext) fieldContext_Standard_applicablePlatforms(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Standard_applicablePlatforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Scan_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Standard_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Standard_logoFile(ctx, field) + return ec.fieldContext_Scan_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFile(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Standard_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Scan", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_StandardConnection_edges(ctx, field) + return ec.fieldContext_Scan_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.StandardEdge) graphql.Marshaler { - return ec.marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_StandardConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardConnection", + Object: "Scan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_StandardEdge(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_StandardConnection_pageInfo(ctx, field) + return ec.fieldContext_Scan_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_StandardConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardConnection", + Object: "Scan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Scan_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_generatedByPlatform(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_StandardConnection_totalCount(ctx, field) + return ec.fieldContext_Scan_generatedByPlatform(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.GeneratedByPlatform(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("StandardConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Scan_generatedByPlatform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Platform(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _StandardEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_performedByUser(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_StandardEdge_node(ctx, field) + return ec.fieldContext_Scan_performedByUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.PerformedByUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { - return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_StandardEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Scan_performedByUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardEdge", + Object: "Scan", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Standard(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Scan_performedByGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Scan) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_StandardEdge_cursor(ctx, field) + return ec.fieldContext_Scan_performedByGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.PerformedByGroup(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("StandardEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Scan_performedByGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Scan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_id(ctx, field) + return ec.fieldContext_ScanConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScanEdge) graphql.Marshaler { + return ec.marshalOScanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_createdAt(ctx, field) + return ec.fieldContext_ScanConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ScanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScanConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + return ec.fieldContext_ScanConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ScanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScanConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScanEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_createdBy(ctx, field) + return ec.fieldContext_ScanEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Scan) graphql.Marshaler { + return ec.marshalOScan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScan(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScanEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Scan(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScanEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + return ec.fieldContext_ScanEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScanEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Subcontrol_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_id(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_displayID(ctx, field) + return ec.fieldContext_ScheduledJob_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_tags(ctx, field) + return ec.fieldContext_ScheduledJob_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_externalUUID(ctx, field) + return ec.fieldContext_ScheduledJob_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_title(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_title(ctx, field) + return ec.fieldContext_ScheduledJob_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.CreatedBy, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -140620,40 +143853,22 @@ func (ec *executionContext) _Subcontrol_title(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Subcontrol_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_description(ctx, field) + return ec.fieldContext_ScheduledJob_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.UpdatedBy, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -140661,1924 +143876,1695 @@ func (ec *executionContext) _Subcontrol_description(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Subcontrol_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_descriptionJSON(ctx, field) + return ec.fieldContext_ScheduledJob_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DescriptionJSON, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_aliases(ctx, field) + return ec.fieldContext_ScheduledJob_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Aliases, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_referenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_jobID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_referenceID(ctx, field) + return ec.fieldContext_ScheduledJob_jobID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceID, nil + return obj.JobID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_jobID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_active(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_auditorReferenceID(ctx, field) + return ec.fieldContext_ScheduledJob_active(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReferenceID, nil + return obj.Active, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Subcontrol_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_configuration(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_responsiblePartyID(ctx, field) + return ec.fieldContext_ScheduledJob_configuration(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponsiblePartyID, nil + return obj.Configuration, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.JobConfiguration) graphql.Marshaler { + return ec.marshalOJobConfiguration2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐJobConfiguration(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_configuration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type JobConfiguration does not have child fields")) } -func (ec *executionContext) _Subcontrol_status(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_cron(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_status(ctx, field) + return ec.fieldContext_ScheduledJob_cron(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.Cron, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlStatus) graphql.Marshaler { - return ec.marshalOSubcontrolControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.Cron) graphql.Marshaler { + return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlStatus does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_cron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_jobRunnerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + return ec.fieldContext_ScheduledJob_jobRunnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationStatus, nil + return obj.JobRunnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlImplementationStatus) graphql.Marshaler { - return ec.marshalOSubcontrolControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlImplementationStatus does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_jobRunnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJob", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_implementationDescription(ctx, field) + return ec.fieldContext_ScheduledJob_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationDescription, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJob", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_jobTemplate(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_publicRepresentation(ctx, field) + return ec.fieldContext_ScheduledJob_jobTemplate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PublicRepresentation, nil + return obj.JobTemplate(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobTemplate) graphql.Marshaler { + return ec.marshalNJobTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobTemplate(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_jobTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJob", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_JobTemplate(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_source(ctx, field) + return ec.fieldContext_ScheduledJob_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal enums.ControlSource - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal enums.ControlSource - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next - }, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { - return ec.marshalOSubcontrolControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlSource does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJob", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ScheduledJob_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Subcontrol_sourceName(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_sourceName(ctx, field) + return ec.fieldContext_ScheduledJob_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceName, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJob", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubcontrolConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ScheduledJob_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Subcontrol_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJob_jobRunner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJob) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_referenceFramework(ctx, field) + return ec.fieldContext_ScheduledJob_jobRunner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceFramework, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal *string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.JobRunner(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { + return ec.marshalOJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJob_jobRunner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJob", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_JobRunner(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_referenceFrameworkRevision(ctx, field) + return ec.fieldContext_ScheduledJobConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceFrameworkRevision, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal *string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.Edges, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScheduledJobEdge) graphql.Marshaler { + return ec.marshalOScheduledJobEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScheduledJobEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_category(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_category(ctx, field) + return ec.fieldContext_ScheduledJobConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.PageInfo, nil }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_categoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_categoryID(ctx, field) + return ec.fieldContext_ScheduledJobConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CategoryID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.TotalCount, nil }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Subcontrol_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_subcategory(ctx, field) + return ec.fieldContext_ScheduledJobEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subcategory, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.Node, nil }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { + return ec.marshalOScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScheduledJob(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_mappedCategories(ctx, field) + return ec.fieldContext_ScheduledJobEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappedCategories, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Subcontrol_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_id(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_assessmentObjectives(ctx, field) + return ec.fieldContext_ScheduledJobRun_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentObjectives, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.AssessmentObjective) graphql.Marshaler { - return ec.marshalOAssessmentObjective2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAssessmentObjectiveᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_assessmentMethods(ctx, field) + return ec.fieldContext_ScheduledJobRun_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentMethods, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.AssessmentMethod) graphql.Marshaler { - return ec.marshalOAssessmentMethod2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAssessmentMethodᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlQuestions(ctx, field) + return ec.fieldContext_ScheduledJobRun_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlQuestions, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_implementationGuidance(ctx, field) + return ec.fieldContext_ScheduledJobRun_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationGuidance, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.ImplementationGuidance) graphql.Marshaler { - return ec.marshalOImplementationGuidance2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐImplementationGuidanceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_exampleEvidence(ctx, field) + return ec.fieldContext_ScheduledJobRun_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExampleEvidence, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.ExampleEvidence) graphql.Marshaler { - return ec.marshalOExampleEvidence2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐExampleEvidenceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_references(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_references(ctx, field) + return ec.fieldContext_ScheduledJobRun_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.References, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.Reference) graphql.Marshaler { - return ec.marshalOReference2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐReferenceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Reference does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_jobRunnerID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_testingProcedures(ctx, field) + return ec.fieldContext_ScheduledJobRun_jobRunnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TestingProcedures, nil + return obj.JobRunnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.TestingProcedures) graphql.Marshaler { - return ec.marshalOTestingProcedures2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTestingProceduresᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_jobRunnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_status(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_evidenceRequests(ctx, field) + return ec.fieldContext_ScheduledJobRun_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EvidenceRequests, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []models.EvidenceRequests) graphql.Marshaler { - return ec.marshalOEvidenceRequests2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐEvidenceRequestsᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ScheduledJobRunStatus) graphql.Marshaler { + return ec.marshalNScheduledJobRunScheduledJobRunStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐScheduledJobRunStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ScheduledJobRunScheduledJobRunStatus does not have child fields")) } -func (ec *executionContext) _Subcontrol_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_scheduledJobID(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlOwnerID(ctx, field) + return ec.fieldContext_ScheduledJobRun_scheduledJobID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlOwnerID, nil + return obj.ScheduledJobID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_scheduledJobID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_expectedExecutionTime(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_delegateID(ctx, field) + return ec.fieldContext_ScheduledJobRun_expectedExecutionTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, nil + return obj.ExpectedExecutionTime, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_expectedExecutionTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_script(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_ownerID(ctx, field) + return ec.fieldContext_ScheduledJobRun_script(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Script, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_script(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_systemOwned(ctx, field) + return ec.fieldContext_ScheduledJobRun_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRun", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_scheduledJob(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_internalNotes(ctx, field) + return ec.fieldContext_ScheduledJobRun_scheduledJob(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.ScheduledJob(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJob) graphql.Marshaler { + return ec.marshalNScheduledJob2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJob(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_scheduledJob(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRun", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScheduledJob(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRun_jobRunner(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_systemInternalID(ctx, field) + return ec.fieldContext_ScheduledJobRun_jobRunner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.JobRunner(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.JobRunner) graphql.Marshaler { + return ec.marshalNJobRunner2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐJobRunner(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRun_jobRunner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRun", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_JobRunner(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_subcontrolKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRunConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_subcontrolKindName(ctx, field) + return ec.fieldContext_ScheduledJobRunConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubcontrolKindName, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ScheduledJobRunEdge) graphql.Marshaler { + return ec.marshalOScheduledJobRunEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRunEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_subcontrolKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRunConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRunConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScheduledJobRunEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_subcontrolKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRunConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_subcontrolKindID(ctx, field) + return ec.fieldContext_ScheduledJobRunConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubcontrolKindID, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_subcontrolKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRunConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRunConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRunConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_workflowEligibleMarker(ctx, field) + return ec.fieldContext_ScheduledJobRunConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subcontrol_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRunConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRunConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Subcontrol_refCode(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_refCode(ctx, field) + return ec.fieldContext_ScheduledJobRunEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RefCode, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal string - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal string - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.Node, nil }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobRun) graphql.Marshaler { + return ec.marshalOScheduledJobRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobRun(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRunEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ScheduledJobRunEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScheduledJobRun(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Subcontrol_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _ScheduledJobRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ScheduledJobRunEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlID(ctx, field) + return ec.fieldContext_ScheduledJobRunEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlID, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ScheduledJobRunEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ScheduledJobRunEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Subcontrol_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_evidence(ctx, field) + return ec.fieldContext_Standard_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_evidence(ctx 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) { - return ec.childFields_EvidenceConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlObjectives(ctx, field) + return ec.fieldContext_Standard_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlObjectives(ctx 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) { - return ec.childFields_ControlObjectiveConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_tasks(ctx, field) + return ec.fieldContext_Standard_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_tasks(ctx 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) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subcontrol_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_narratives(ctx, field) + return ec.fieldContext_Standard_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_narratives(ctx 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) { - return ec.childFields_NarrativeConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_risks(ctx, field) + return ec.fieldContext_Standard_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_risks(ctx 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) { - return ec.childFields_RiskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_actionPlans(ctx, field) + return ec.fieldContext_Standard_tags(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_actionPlans(ctx 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) { - return ec.childFields_ActionPlanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_revision(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_procedures(ctx, field) + return ec.fieldContext_Standard_revision(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.Revision, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_procedures(ctx 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) { - return ec.childFields_ProcedureConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_internalPolicies(ctx, field) + return ec.fieldContext_Standard_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_internalPolicies(ctx 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) { - return ec.childFields_InternalPolicyConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subcontrol_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_comments(ctx, field) + return ec.fieldContext_Standard_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_comments(ctx 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) { - return ec.childFields_NoteConnection(ctx, field) +func (ec *executionContext) fieldContext_Standard_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Standard_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Standard_internalNotes(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.InternalNotes, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Standard_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_discussions(ctx, field) + return ec.fieldContext_Standard_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) + return obj.SystemInternalID, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Standard_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Standard_name(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_discussions(ctx 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) { - return ec.childFields_DiscussionConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_controlOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_shortName(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlOwner(ctx, field) + return ec.fieldContext_Standard_shortName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlOwner(ctx) + return obj.ShortName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlOwner(_ 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) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_shortName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_framework(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_delegate(ctx, field) + return ec.fieldContext_Standard_framework(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Delegate(ctx) + return obj.Framework, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_delegate(_ 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) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_responsibleParty(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_description(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_responsibleParty(ctx, field) + return ec.fieldContext_Standard_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponsibleParty(ctx) + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_responsibleParty(_ 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) { - return ec.childFields_Entity(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_governingBodyLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_reviews(ctx, field) + return ec.fieldContext_Standard_governingBodyLogoURL(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.GoverningBodyLogoURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_reviews(ctx 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) { - return ec.childFields_ReviewConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_governingBodyLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_governingBody(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_remediations(ctx, field) + return ec.fieldContext_Standard_governingBody(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.GoverningBody, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_remediations(ctx 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) { - return ec.childFields_RemediationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_governingBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_scans(ctx, field) + return ec.fieldContext_Standard_domains(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.Domains, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_scans(ctx 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) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_link(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_owner(ctx, field) + return ec.fieldContext_Standard_link(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.Link, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_owner(_ 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) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_link(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_subcontrolKind(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_status(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_subcontrolKind(ctx, field) + return ec.fieldContext_Standard_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubcontrolKind(ctx) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.StandardStatus) graphql.Marshaler { + return ec.marshalOStandardStandardStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐStandardStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subcontrol_subcontrolKind(_ 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) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type StandardStandardStatus does not have child fields")) } -func (ec *executionContext) _Subcontrol_control(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_isPublic(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_control(ctx, field) + return ec.fieldContext_Standard_isPublic(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Control(ctx) + return obj.IsPublic, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { - return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal bool + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal bool + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_control(_ 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) { - return ec.childFields_Control(ctx, field) +func (ec *executionContext) fieldContext_Standard_isPublic(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Standard_freeToUse(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Standard_freeToUse(ctx, field) }, - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.FreeToUse, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal bool + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal bool + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Standard_freeToUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Subcontrol_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_controlImplementations(ctx, field) + return ec.fieldContext_Standard_standardType(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) + return obj.StandardType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { - return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_controlImplementations(ctx 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) { - return ec.childFields_ControlImplementationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_scheduledJobs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_version(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_scheduledJobs(ctx, field) + return ec.fieldContext_Standard_version(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) + return obj.Version, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { - return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_scheduledJobs(ctx 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) { - return ec.childFields_ScheduledJobConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Standard_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subcontrol_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_workflowObjectRefs(ctx, field) + return ec.fieldContext_Standard_logoFileID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.LogoFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_Standard_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Standard", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Standard_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Standard_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_owner(_ 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) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Subcontrol_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_assets(ctx, field) + return ec.fieldContext_Standard_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_controls(ctx 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) { - return ec.childFields_AssetConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -142588,41 +145574,41 @@ func (ec *executionContext) fieldContext_Subcontrol_assets(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Standard_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Subcontrol_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_trustCenterCompliances(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_entities(ctx, field) + return ec.fieldContext_Standard_trustCenterCompliances(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { + return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_trustCenterCompliances(ctx 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) { - return ec.childFields_EntityConnection(ctx, field) + return ec.childFields_TrustCenterComplianceConnection(ctx, field) }, } defer func() { @@ -142632,41 +145618,41 @@ func (ec *executionContext) fieldContext_Subcontrol_entities(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Standard_trustCenterCompliances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Subcontrol_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_identityHolders(ctx, field) + return ec.fieldContext_Standard_trustCenterDocs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { + return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_trustCenterDocs(ctx 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) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_TrustCenterDocConnection(ctx, field) }, } defer func() { @@ -142676,174 +145662,128 @@ func (ec *executionContext) fieldContext_Subcontrol_identityHolders(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Standard_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Subcontrol_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_hasPendingWorkflow(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Subcontrol().HasPendingWorkflow(ctx, obj) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Subcontrol_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, true, true, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _Subcontrol_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_hasWorkflowHistory(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Subcontrol().HasWorkflowHistory(ctx, obj) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Subcontrol_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subcontrol", field, true, true, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _Subcontrol_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_applicablePlatforms(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Standard_applicablePlatforms(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Subcontrol().ActiveWorkflowInstances(ctx, obj) + fc := graphql.GetFieldContext(ctx) + return obj.ApplicablePlatforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Subcontrol_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_applicablePlatforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Standard_applicablePlatforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Subcontrol_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { +func (ec *executionContext) _Standard_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subcontrol_workflowTimeline(ctx, field) + return ec.fieldContext_Standard_logoFile(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Subcontrol().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) + return obj.LogoFile(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subcontrol_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) + return ec.childFields_File(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subcontrol_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubcontrolConnection_edges(ctx, field) + return ec.fieldContext_StandardConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubcontrolEdge) graphql.Marshaler { - return ec.marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.StandardEdge) graphql.Marshaler { + return ec.marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, selections, v) }, true, false, ) } -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) { - return ec.childFields_SubcontrolEdge(ctx, field) + return ec.childFields_StandardEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) + return ec.fieldContext_StandardConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -142856,9 +145796,9 @@ func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, true, ) } -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, @@ -142869,13 +145809,13 @@ 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) { +func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) + return ec.fieldContext_StandardConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -142888,49 +145828,49 @@ func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubcontrolConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("StandardConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _SubcontrolEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _StandardEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubcontrolEdge_node(ctx, field) + return ec.fieldContext_StandardEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { - return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { + return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) }, true, false, ) } -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) { - return ec.childFields_Subcontrol(ctx, field) + return ec.childFields_Standard(ctx, field) }, } return fc, nil } -func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubcontrolEdge_cursor(ctx, field) + return ec.fieldContext_StandardEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -142943,17 +145883,17 @@ func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field gr true, ) } -func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubcontrolEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("StandardEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Subprocessor_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_id(ctx, field) + return ec.fieldContext_Subcontrol_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -142966,17 +145906,17 @@ func (ec *executionContext) _Subprocessor_id(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_Subprocessor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subprocessor_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -142989,17 +145929,17 @@ func (ec *executionContext) _Subprocessor_createdAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Subprocessor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subprocessor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -143012,17 +145952,17 @@ func (ec *executionContext) _Subprocessor_updatedAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Subprocessor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Subprocessor_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -143035,17 +145975,17 @@ func (ec *executionContext) _Subprocessor_createdBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Subprocessor_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -143058,1508 +145998,1826 @@ func (ec *executionContext) _Subprocessor_updatedBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Subprocessor_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_tags(ctx, field) + return ec.fieldContext_Subcontrol_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Subprocessor_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_systemOwned(ctx, field) + return ec.fieldContext_Subcontrol_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_title(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_internalNotes(ctx, field) + return ec.fieldContext_Subcontrol_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil + return obj.Title, nil }, func(ctx context.Context, next graphql.Resolver) graphql.Resolver { directive0 := next directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") if err != nil { - var zeroVal *string + var zeroVal string return zeroVal, err } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + return ec.Directives.ExternalSource(ctx, obj, directive0, source) } next = directive1 return next }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_systemInternalID(ctx, field) + return ec.fieldContext_Subcontrol_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil + return obj.Description, nil }, func(ctx context.Context, next graphql.Resolver) graphql.Resolver { directive0 := next directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") if err != nil { - var zeroVal *string + var zeroVal string return zeroVal, err } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + return ec.Directives.ExternalSource(ctx, obj, directive0, source) } next = directive1 return next }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_name(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_name(ctx, field) + return ec.fieldContext_Subcontrol_descriptionJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.DescriptionJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subprocessor_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Subprocessor_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_description(ctx, field) + return ec.fieldContext_Subcontrol_aliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.Aliases, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_referenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_logoRemoteURL(ctx, field) + return ec.fieldContext_Subcontrol_referenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoRemoteURL, nil + return obj.ReferenceID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_logoFileID(ctx, field) + return ec.fieldContext_Subcontrol_auditorReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFileID, nil + return obj.AuditorReferenceID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subprocessor_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_owner(ctx, field) + return ec.fieldContext_Subcontrol_responsiblePartyID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.ResponsiblePartyID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subprocessor", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subprocessor_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_status(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_logoFile(ctx, field) + return ec.fieldContext_Subcontrol_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFile(ctx) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlStatus) graphql.Marshaler { + return ec.marshalOSubcontrolControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subprocessor_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subprocessor", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlStatus does not have child fields")) } -func (ec *executionContext) _Subprocessor_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_trustCenterSubprocessors(ctx, field) + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) + return obj.ImplementationStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { - return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlImplementationStatus) graphql.Marshaler { + return ec.marshalOSubcontrolControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subprocessor_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subprocessor", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subprocessor_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlImplementationStatus does not have child fields")) } -func (ec *executionContext) _Subprocessor_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subprocessor_entities(ctx, field) + return ec.fieldContext_Subcontrol_implementationDescription(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.ImplementationDescription, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subprocessor_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subprocessor", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subprocessor_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubprocessorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubprocessorConnection_edges(ctx, field) + return ec.fieldContext_Subcontrol_publicRepresentation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.PublicRepresentation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubprocessorEdge) graphql.Marshaler { - return ec.marshalOSubprocessorEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SubprocessorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubprocessorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubprocessorEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubprocessorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubprocessorConnection_pageInfo(ctx, field) + return ec.fieldContext_Subcontrol_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Source, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal enums.ControlSource + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal enums.ControlSource + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { + return ec.marshalOSubcontrolControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubprocessorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubprocessorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type SubcontrolControlSource does not have child fields")) } -func (ec *executionContext) _SubprocessorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_sourceName(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubprocessorConnection_totalCount(ctx, field) + return ec.fieldContext_Subcontrol_sourceName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.SourceName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubprocessorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubprocessorConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubprocessorEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubprocessorEdge_node(ctx, field) + return ec.fieldContext_Subcontrol_referenceFramework(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.ReferenceFramework, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { - return ec.marshalOSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal *string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SubprocessorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubprocessorEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subprocessor(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubprocessorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubprocessorEdge_cursor(ctx, field) + return ec.fieldContext_Subcontrol_referenceFrameworkRevision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ReferenceFrameworkRevision, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal *string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubprocessorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubprocessorEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_category(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_id(ctx, field) + return ec.fieldContext_Subcontrol_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Category, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next }, - nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_categoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_categoryID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.CategoryID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_subcategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Subcategory, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_mappedCategories(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.MappedCategories, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_assessmentObjectives(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.AssessmentObjectives, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.AssessmentObjective) graphql.Marshaler { + return ec.marshalOAssessmentObjective2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAssessmentObjectiveᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) } -func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_tags(ctx, field) + return ec.fieldContext_Subcontrol_assessmentMethods(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.AssessmentMethods, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.AssessmentMethod) graphql.Marshaler { + return ec.marshalOAssessmentMethod2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAssessmentMethodᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) } -func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_controlQuestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.ControlQuestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_email(ctx, field) + return ec.fieldContext_Subcontrol_implementationGuidance(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.ImplementationGuidance, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.ImplementationGuidance) graphql.Marshaler { + return ec.marshalOImplementationGuidance2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐImplementationGuidanceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) } -func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + return ec.fieldContext_Subcontrol_exampleEvidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhoneNumber, nil + return obj.ExampleEvidence, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.ExampleEvidence) graphql.Marshaler { + return ec.marshalOExampleEvidence2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐExampleEvidenceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) } -func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_references(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + return ec.fieldContext_Subcontrol_references(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VerifiedEmail, nil + return obj.References, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.Reference) graphql.Marshaler { + return ec.marshalOReference2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐReferenceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Reference does not have child fields")) } -func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + return ec.fieldContext_Subcontrol_testingProcedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VerifiedPhone, nil + return obj.TestingProcedures, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.TestingProcedures) graphql.Marshaler { + return ec.marshalOTestingProcedures2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTestingProceduresᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) } -func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_active(ctx, field) + return ec.fieldContext_Subcontrol_evidenceRequests(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Active, nil + return obj.EvidenceRequests, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []models.EvidenceRequests) graphql.Marshaler { + return ec.marshalOEvidenceRequests2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐEvidenceRequestsᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) } -func (ec *executionContext) _Subscriber_unsubscribed(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_unsubscribed(ctx, field) + return ec.fieldContext_Subcontrol_controlOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Unsubscribed, nil + return obj.ControlOwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_unsubscribed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subscriber_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_sendAttempts(ctx, field) + return ec.fieldContext_Subcontrol_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SendAttempts, nil + return obj.DelegateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_owner(ctx, field) + return ec.fieldContext_Subcontrol_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -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) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Subscriber_events(ctx, field) + return ec.fieldContext_Subcontrol_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Subscriber_events(ctx 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) { - return ec.childFields_EventConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subscriber_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubscriberConnection_edges(ctx, field) + return ec.fieldContext_Subcontrol_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubscriberEdge) graphql.Marshaler { - return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubscriberEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) + return ec.fieldContext_Subcontrol_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_subcontrolKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) + return ec.fieldContext_Subcontrol_subcontrolKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.SubcontrolKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubscriberConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_subcontrolKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_subcontrolKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubscriberEdge_node(ctx, field) + return ec.fieldContext_Subcontrol_subcontrolKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.SubcontrolKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { - return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subscriber(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Subcontrol_subcontrolKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SubscriberEdge_cursor(ctx, field) + return ec.fieldContext_Subcontrol_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.WorkflowEligibleMarker, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SubscriberEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _SystemDetail_id(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_refCode(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_id(ctx, field) + return ec.fieldContext_Subcontrol_refCode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.RefCode, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal string + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal string + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } + + next = directive1 + return next }, - nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _SystemDetail_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_controlID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ControlID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _SystemDetail_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_evidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_evidence(ctx 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) { + return ec.childFields_EvidenceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_controlObjectives(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_controlObjectives(ctx 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) { + return ec.childFields_ControlObjectiveConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_tasks(ctx 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) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_displayID(ctx, field) + return ec.fieldContext_Subcontrol_narratives(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Narratives(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.NarrativeOrder), fc.Args["where"].(*generated.NarrativeWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetail_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_narratives(ctx 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) { + return ec.childFields_NarrativeConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_tags(ctx, field) + return ec.fieldContext_Subcontrol_risks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_risks(ctx 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) { + return ec.childFields_RiskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + fc := graphql.GetFieldContext(ctx) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_actionPlans(ctx 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) { + return ec.childFields_ActionPlanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_programID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_programID(ctx, field) + return ec.fieldContext_Subcontrol_procedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_procedures(ctx 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) { + return ec.childFields_ProcedureConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_platformID(ctx, field) + return ec.fieldContext_Subcontrol_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformID, nil + fc := graphql.GetFieldContext(ctx) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_internalPolicies(ctx 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) { + return ec.childFields_InternalPolicyConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_systemName(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_systemName(ctx, field) + return ec.fieldContext_Subcontrol_comments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemName, nil + fc := graphql.GetFieldContext(ctx) + return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetail_systemName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_comments(ctx 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) { + return ec.childFields_NoteConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_version(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_version(ctx, field) + return ec.fieldContext_Subcontrol_discussions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Version, nil + fc := graphql.GetFieldContext(ctx) + return obj.Discussions(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.DiscussionOrder), fc.Args["where"].(*generated.DiscussionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_discussions(ctx 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) { + return ec.childFields_DiscussionConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_description(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_description(ctx, field) + return ec.fieldContext_Subcontrol_controlOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.ControlOwner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SystemDetail_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_controlOwner(_ 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) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _SystemDetail_authorizationBoundary(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_authorizationBoundary(ctx, field) + return ec.fieldContext_Subcontrol_delegate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuthorizationBoundary, nil + return obj.Delegate(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SystemDetail_authorizationBoundary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_delegate(_ 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) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _SystemDetail_sensitivityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_responsibleParty(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_sensitivityLevel(ctx, field) + return ec.fieldContext_Subcontrol_responsibleParty(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SensitivityLevel, nil + return obj.ResponsibleParty(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SystemSensitivityLevel) graphql.Marshaler { - return ec.marshalOSystemDetailSystemSensitivityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSystemSensitivityLevel(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SystemDetail_sensitivityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type SystemDetailSystemSensitivityLevel does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_responsibleParty(_ 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) { + return ec.childFields_Entity(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _SystemDetail_lastReviewed(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_lastReviewed(ctx, field) + return ec.fieldContext_Subcontrol_reviews(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastReviewed, nil + fc := graphql.GetFieldContext(ctx) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_lastReviewed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_reviews(ctx 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) { + return ec.childFields_ReviewConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_revisionHistory(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_revisionHistory(ctx, field) + return ec.fieldContext_Subcontrol_remediations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RevisionHistory, nil + fc := graphql.GetFieldContext(ctx) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_revisionHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_remediations(ctx 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) { + return ec.childFields_RemediationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_oscalMetadataJSON(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_oscalMetadataJSON(ctx, field) + return ec.fieldContext_Subcontrol_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OscalMetadataJSON, nil + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_oscalMetadataJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_scans(ctx 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) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _SystemDetail_owner(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_owner(ctx, field) + return ec.fieldContext_Subcontrol_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -144572,9 +147830,9 @@ func (ec *executionContext) _SystemDetail_owner(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_SystemDetail_owner(_ 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: "SystemDetail", + Object: "Subcontrol", Field: field, IsMethod: true, IsResolver: false, @@ -144585,337 +147843,367 @@ func (ec *executionContext) fieldContext_SystemDetail_owner(_ context.Context, f return fc, nil } -func (ec *executionContext) _SystemDetail_program(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_subcontrolKind(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_program(ctx, field) + return ec.fieldContext_Subcontrol_subcontrolKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Program(ctx) + return obj.SubcontrolKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { - return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_SystemDetail_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_subcontrolKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SystemDetail", + Object: "Subcontrol", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Program(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _SystemDetail_platform(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_control(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetail_platform(ctx, field) + return ec.fieldContext_Subcontrol_control(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Platform(ctx) + return obj.Control(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetail_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SystemDetail", + Object: "Subcontrol", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) + return ec.childFields_Control(ctx, field) }, } return fc, nil } -func (ec *executionContext) _SystemDetailConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetailConnection_edges(ctx, field) + return ec.fieldContext_Subcontrol_controlImplementations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.SystemDetailEdge) graphql.Marshaler { - return ec.marshalOSystemDetailEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { + return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_SystemDetailConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SystemDetailConnection", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SystemDetailEdge(ctx, field) + return ec.childFields_ControlImplementationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SystemDetailConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_scheduledJobs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetailConnection_pageInfo(ctx, field) + return ec.fieldContext_Subcontrol_scheduledJobs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.ScheduledJobs(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.ScheduledJobOrder), fc.Args["where"].(*generated.ScheduledJobWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScheduledJobConnection) graphql.Marshaler { + return ec.marshalNScheduledJobConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScheduledJobConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetailConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_scheduledJobs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SystemDetailConnection", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_ScheduledJobConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_scheduledJobs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SystemDetailConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetailConnection_totalCount(ctx, field) + return ec.fieldContext_Subcontrol_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetailConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetailConnection", field, false, false, errors.New("field of type Int does not have child fields")) -} - -func (ec *executionContext) _SystemDetailEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetailEdge_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { - return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_SystemDetailEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SystemDetailEdge", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SystemDetail(ctx, field) + return ec.childFields_WorkflowObjectRefConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _SystemDetailEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_SystemDetailEdge_cursor(ctx, field) + return ec.fieldContext_Subcontrol_assets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_SystemDetailEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SystemDetailEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_assets(ctx 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) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_id(ctx, field) + return ec.fieldContext_Subcontrol_entities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) +func (ec *executionContext) fieldContext_Subcontrol_entities(ctx 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) { + return ec.childFields_EntityConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, 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_Subcontrol_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_identityHolders(ctx 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) { + return ec.childFields_IdentityHolderConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return ec.Resolvers.Subcontrol().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_verified(ctx, field) + return ec.fieldContext_Subcontrol_hasWorkflowHistory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Verified, nil + return ec.Resolvers.Subcontrol().HasWorkflowHistory(ctx, obj) }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { @@ -144925,104 +148213,125 @@ func (ec *executionContext) _TFASetting_verified(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subcontrol", field, true, true, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + return ec.fieldContext_Subcontrol_activeWorkflowInstances(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotpAllowed, nil + return ec.Resolvers.Subcontrol().ActiveWorkflowInstances(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subcontrol_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subcontrol", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { +func (ec *executionContext) _Subcontrol_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASetting_owner(ctx, field) + return ec.fieldContext_Subcontrol_workflowTimeline(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Subcontrol().WorkflowTimeline(ctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput), fc.Args["includeEmitFailures"].(*bool)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TFASetting_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "Subcontrol", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subcontrol_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASettingConnection_edges(ctx, field) + return ec.fieldContext_SubcontrolConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TFASettingEdge) graphql.Marshaler { - return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubcontrolEdge) graphql.Marshaler { + return ec.marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TFASettingConnection_edges(_ 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: "TFASettingConnection", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TFASettingEdge(ctx, field) + return ec.childFields_SubcontrolEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) + return ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -145035,9 +148344,9 @@ func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ 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: "TFASettingConnection", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, @@ -145048,13 +148357,13 @@ func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ context return fc, nil } -func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) + return ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -145067,49 +148376,49 @@ func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubcontrolConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SubcontrolEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASettingEdge_node(ctx, field) + return ec.fieldContext_SubcontrolEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { - return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { + return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TFASettingEdge_node(_ 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: "TFASettingEdge", + Object: "SubcontrolEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TFASetting(ctx, field) + return ec.childFields_Subcontrol(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TFASettingEdge_cursor(ctx, field) + return ec.fieldContext_SubcontrolEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -145122,17 +148431,17 @@ func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field gr true, ) } -func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TFASettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubcontrolEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TagDefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_id(ctx, field) + return ec.fieldContext_Subprocessor_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -145145,17 +148454,17 @@ func (ec *executionContext) _TagDefinition_id(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_TagDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TagDefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_createdAt(ctx, field) + return ec.fieldContext_Subprocessor_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -145168,17 +148477,17 @@ func (ec *executionContext) _TagDefinition_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_TagDefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TagDefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_updatedAt(ctx, field) + return ec.fieldContext_Subprocessor_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -145191,17 +148500,17 @@ func (ec *executionContext) _TagDefinition_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_TagDefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TagDefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_createdBy(ctx, field) + return ec.fieldContext_Subprocessor_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -145214,17 +148523,17 @@ func (ec *executionContext) _TagDefinition_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_TagDefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_updatedBy(ctx, field) + return ec.fieldContext_Subprocessor_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -145237,17 +148546,40 @@ func (ec *executionContext) _TagDefinition_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_TagDefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_ownerID(ctx, field) + return ec.fieldContext_Subprocessor_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Subprocessor_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Subprocessor_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Subprocessor_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -145260,17 +148592,17 @@ func (ec *executionContext) _TagDefinition_ownerID(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_TagDefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TagDefinition_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_systemOwned(ctx, field) + return ec.fieldContext_Subprocessor_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -145283,17 +148615,17 @@ func (ec *executionContext) _TagDefinition_systemOwned(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_TagDefinition_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TagDefinition_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_internalNotes(ctx, field) + return ec.fieldContext_Subprocessor_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -145324,17 +148656,17 @@ func (ec *executionContext) _TagDefinition_internalNotes(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_TagDefinition_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_systemInternalID(ctx, field) + return ec.fieldContext_Subprocessor_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -145365,17 +148697,17 @@ func (ec *executionContext) _TagDefinition_systemInternalID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_TagDefinition_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_name(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_name(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_name(ctx, field) + return ec.fieldContext_Subprocessor_name(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Name, nil @@ -145388,43 +148720,20 @@ func (ec *executionContext) _TagDefinition_name(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_TagDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TagDefinition_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_aliases(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Aliases, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TagDefinition_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_slug(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_slug(ctx, field) + return ec.fieldContext_Subprocessor_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Slug, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -145434,63 +148743,63 @@ func (ec *executionContext) _TagDefinition_slug(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_TagDefinition_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_description(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_description(ctx, field) + return ec.fieldContext_Subprocessor_logoRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.LogoRemoteURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TagDefinition_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TagDefinition_color(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_color(ctx, field) + return ec.fieldContext_Subprocessor_logoFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Color, nil + return obj.LogoFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TagDefinition_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subprocessor", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TagDefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinition_owner(ctx, field) + return ec.fieldContext_Subprocessor_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -145503,9 +148812,9 @@ func (ec *executionContext) _TagDefinition_owner(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_TagDefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subprocessor_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TagDefinition", + Object: "Subprocessor", Field: field, IsMethod: true, IsResolver: false, @@ -145516,178 +148825,298 @@ func (ec *executionContext) fieldContext_TagDefinition_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _TagDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinitionConnection_edges(ctx, field) + return ec.fieldContext_Subprocessor_logoFile(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.LogoFile(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TagDefinitionEdge) graphql.Marshaler { - return ec.marshalOTagDefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TagDefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subprocessor_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TagDefinitionConnection", + Object: "Subprocessor", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TagDefinitionEdge(ctx, field) + return ec.childFields_File(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TagDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinitionConnection_pageInfo(ctx, field) + return ec.fieldContext_Subprocessor_trustCenterSubprocessors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { + return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TagDefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subprocessor_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TagDefinitionConnection", + Object: "Subprocessor", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subprocessor_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TagDefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Subprocessor_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Subprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinitionConnection_totalCount(ctx, field) + return ec.fieldContext_Subprocessor_entities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TagDefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Subprocessor_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subprocessor", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subprocessor_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TagDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SubprocessorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinitionEdge_node(ctx, field) + return ec.fieldContext_SubprocessorConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinition) graphql.Marshaler { - return ec.marshalOTagDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubprocessorEdge) graphql.Marshaler { + return ec.marshalOSubprocessorEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessorEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TagDefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubprocessorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TagDefinitionEdge", + Object: "SubprocessorConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TagDefinition(ctx, field) + return ec.childFields_SubprocessorEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TagDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _SubprocessorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TagDefinitionEdge_cursor(ctx, field) + return ec.fieldContext_SubprocessorConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TagDefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TagDefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_SubprocessorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubprocessorConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubprocessorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_id(ctx, field) + return ec.fieldContext_SubprocessorConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) -} +func (ec *executionContext) fieldContext_SubprocessorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubprocessorConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} -func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubprocessorEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_createdAt(ctx, field) + return ec.fieldContext_SubprocessorEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { + return ec.marshalOSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_SubprocessorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubprocessorEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Subprocessor(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubprocessorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubprocessorEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_SubprocessorEdge_cursor(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Cursor, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_SubprocessorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubprocessorEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Subscriber_id(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Subscriber_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -145700,17 +149129,17 @@ func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_updatedAt(ctx, field) + return ec.fieldContext_Subscriber_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -145723,17 +149152,17 @@ func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_createdBy(ctx, field) + return ec.fieldContext_Subscriber_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -145746,17 +149175,17 @@ func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_updatedBy(ctx, field) + return ec.fieldContext_Subscriber_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -145769,89 +149198,89 @@ func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_Task_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_displayID(ctx, field) + return ec.fieldContext_Subscriber_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_tags(ctx, field) + return ec.fieldContext_Subscriber_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Task_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_ownerID(ctx, field) + return ec.fieldContext_Subscriber_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Email, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_taskKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_taskKindName(ctx, field) + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaskKindName, nil + return obj.PhoneNumber, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -145861,383 +149290,422 @@ func (ec *executionContext) _Task_taskKindName(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Task_taskKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_taskKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_taskKindID(ctx, field) + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaskKindID, nil + return obj.VerifiedEmail, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_taskKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_environmentName(ctx, field) + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.VerifiedPhone, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_environmentID(ctx, field) + return ec.fieldContext_Subscriber_active(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.Active, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_unsubscribed(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_scopeName(ctx, field) + return ec.fieldContext_Subscriber_unsubscribed(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.Unsubscribed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_unsubscribed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_scopeID(ctx, field) + return ec.fieldContext_Subscriber_sendAttempts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.SendAttempts, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Subscriber", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Task_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_externalUUID(ctx, field) + return ec.fieldContext_Subscriber_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +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) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Task_title(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_title(ctx, field) + return ec.fieldContext_Subscriber_events(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + fc := graphql.GetFieldContext(ctx) + return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Subscriber_events(ctx 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) { + return ec.childFields_EventConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subscriber_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Task_details(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_details(ctx, field) + return ec.fieldContext_SubscriberConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.SubscriberEdge) graphql.Marshaler { + return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubscriberEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Task_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_detailsJSON(ctx, field) + return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Task_status(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_status(ctx, field) + return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TaskStatus) graphql.Marshaler { - return ec.marshalNTaskTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTaskStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type TaskTaskStatus does not have child fields")) +func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubscriberConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Task_due(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_due(ctx, field) + return ec.fieldContext_SubscriberEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Due, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { + return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Subscriber(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Task_completed(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_completed(ctx, field) + return ec.fieldContext_SubscriberEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Completed, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SubscriberEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Task_assigneeID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_id(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_assigneeID(ctx, field) + return ec.fieldContext_SystemDetail_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssigneeID, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_assigneeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Task_assignerID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_assignerID(ctx, field) + return ec.fieldContext_SystemDetail_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignerID, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_assignerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_systemGenerated(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_systemGenerated(ctx, field) + return ec.fieldContext_SystemDetail_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemGenerated, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.ExternalSource == nil { - var zeroVal bool - return zeroVal, errors.New("directive externalSource is not implemented") - } - return ec.Directives.ExternalSource(ctx, obj, directive0, source) - } - - next = directive1 - return next + return obj.UpdatedAt, nil }, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_systemGenerated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_idempotencyKey(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_idempotencyKey(ctx, field) + return ec.fieldContext_SystemDetail_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdempotencyKey, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -146247,1143 +149715,802 @@ func (ec *executionContext) _Task_idempotencyKey(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Task_idempotencyKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_externalReferenceURL(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_externalReferenceURL(ctx, field) + return ec.fieldContext_SystemDetail_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalReferenceURL, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_externalReferenceURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_parentTaskID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_parentTaskID(ctx, field) + return ec.fieldContext_SystemDetail_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ParentTaskID, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Task_parentTaskID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_SystemDetail_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_owner(ctx, field) + return ec.fieldContext_SystemDetail_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_taskKind(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_taskKind(ctx, field) + return ec.fieldContext_SystemDetail_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaskKind(ctx) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_taskKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Task_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_programID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_environment(ctx, field) + return ec.fieldContext_SystemDetail_programID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.ProgramID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Task_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_scope(ctx, field) + return ec.fieldContext_SystemDetail_platformID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.PlatformID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) +func (ec *executionContext) fieldContext_SystemDetail_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _SystemDetail_systemName(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_SystemDetail_systemName(ctx, field) }, - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.SystemName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_SystemDetail_systemName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_assigner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_version(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_assigner(ctx, field) + return ec.fieldContext_SystemDetail_version(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Assigner(ctx) + return obj.Version, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_assigner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_description(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_assignee(ctx, field) + return ec.fieldContext_SystemDetail_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Assignee(ctx) + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_assignee(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_authorizationBoundary(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_comments(ctx, field) + return ec.fieldContext_SystemDetail_authorizationBoundary(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.AuthorizationBoundary, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_authorizationBoundary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_sensitivityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_groups(ctx, field) + return ec.fieldContext_SystemDetail_sensitivityLevel(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.SensitivityLevel, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SystemSensitivityLevel) graphql.Marshaler { + return ec.marshalOSystemDetailSystemSensitivityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSystemSensitivityLevel(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_sensitivityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type SystemDetailSystemSensitivityLevel does not have child fields")) } -func (ec *executionContext) _Task_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_lastReviewed(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_internalPolicies(ctx, field) + return ec.fieldContext_SystemDetail_lastReviewed(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.LastReviewed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_lastReviewed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Task_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_revisionHistory(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_procedures(ctx, field) + return ec.fieldContext_SystemDetail_revisionHistory(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.RevisionHistory, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_revisionHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Task_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_oscalMetadataJSON(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_controls(ctx, field) + return ec.fieldContext_SystemDetail_oscalMetadataJSON(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.OscalMetadataJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetail_oscalMetadataJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetail", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Task_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_owner(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_subcontrols(ctx, field) + return ec.fieldContext_SystemDetail_owner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetail_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetail", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_program(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_controlObjectives(ctx, field) + return ec.fieldContext_SystemDetail_program(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return obj.Program(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Program) graphql.Marshaler { + return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetail_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetail", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveConnection(ctx, field) + return ec.childFields_Program(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetail_platform(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetail) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_programs(ctx, field) + return ec.fieldContext_SystemDetail_platform(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.Platform(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetail_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetail", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) + return ec.childFields_Platform(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetailConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_risks(ctx, field) + return ec.fieldContext_SystemDetailConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.SystemDetailEdge) graphql.Marshaler { + return ec.marshalOSystemDetailEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetailEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetailConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetailConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) + return ec.childFields_SystemDetailEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetailConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_platforms(ctx, field) + return ec.fieldContext_SystemDetailConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetailConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetailConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetailConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_scans(ctx, field) + return ec.fieldContext_SystemDetailConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetailConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetailConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Task_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetailEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_identityHolders(ctx, field) + return ec.fieldContext_SystemDetailEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SystemDetail) graphql.Marshaler { + return ec.marshalOSystemDetail2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSystemDetail(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SystemDetailEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SystemDetailEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_SystemDetail(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Task_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _SystemDetailEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SystemDetailEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_controlImplementations(ctx, field) + return ec.fieldContext_SystemDetailEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { - return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_SystemDetailEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("SystemDetailEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Task_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_actionPlans(ctx, field) + return ec.fieldContext_TFASetting_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Task_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_evidence(ctx, field) + return ec.fieldContext_TFASetting_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_workflowObjectRefs(ctx, field) + return ec.fieldContext_TFASetting_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Task_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_vulnerabilities(ctx, field) + return ec.fieldContext_TFASetting_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Task_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityConnection(ctx, field) +func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TFASetting_updatedBy(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.UpdatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Task_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_findings(ctx, field) + return ec.fieldContext_TFASetting_verified(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return obj.Verified, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Task_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Task_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_parent(ctx, field) + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Parent(ctx) + return obj.TotpAllowed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { - return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Task(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Task_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Task_tasks(ctx, field) + return ec.fieldContext_TFASetting_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tasks(ctx) + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.Task) graphql.Marshaler { - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Task_tasks(_ 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: "Task", + Object: "TFASetting", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Task(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TaskConnection_edges(ctx, field) + return ec.fieldContext_TFASettingConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TaskEdge) graphql.Marshaler { - return ec.marshalOTaskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TFASettingEdge) graphql.Marshaler { + return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TaskConnection_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: "TaskConnection", + Object: "TFASettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskEdge(ctx, field) + return ec.childFields_TFASettingEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TaskConnection_pageInfo(ctx, field) + return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -147396,9 +150523,9 @@ func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_TaskConnection_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: "TaskConnection", + Object: "TFASettingConnection", Field: field, IsMethod: false, IsResolver: false, @@ -147409,13 +150536,13 @@ func (ec *executionContext) fieldContext_TaskConnection_pageInfo(_ context.Conte return fc, nil } -func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TaskConnection_totalCount(ctx, field) + return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -147428,49 +150555,49 @@ func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_TaskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TaskConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TaskEdge_node(ctx, field) + return ec.fieldContext_TFASettingEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { - return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { + return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TaskEdge_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: "TaskEdge", + Object: "TFASettingEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Task(ctx, field) + return ec.childFields_TFASetting(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TaskEdge_cursor(ctx, field) + return ec.fieldContext_TFASettingEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -147483,17 +150610,17 @@ func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TaskEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TFASettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_id(ctx, field) + return ec.fieldContext_TagDefinition_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -147506,17 +150633,17 @@ func (ec *executionContext) _Template_id(ctx context.Context, field graphql.Coll true, ) } -func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_createdAt(ctx, field) + return ec.fieldContext_TagDefinition_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -147529,17 +150656,17 @@ func (ec *executionContext) _Template_createdAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_updatedAt(ctx, field) + return ec.fieldContext_TagDefinition_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -147552,17 +150679,17 @@ func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_createdBy(ctx, field) + return ec.fieldContext_TagDefinition_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -147575,17 +150702,17 @@ func (ec *executionContext) _Template_createdBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_updatedBy(ctx, field) + return ec.fieldContext_TagDefinition_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -147598,40 +150725,17 @@ func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_ownerID(ctx, field) + return ec.fieldContext_TagDefinition_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -147644,17 +150748,17 @@ func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Template_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_systemOwned(ctx, field) + return ec.fieldContext_TagDefinition_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -147667,17 +150771,17 @@ func (ec *executionContext) _Template_systemOwned(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Template_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Template_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_internalNotes(ctx, field) + return ec.fieldContext_TagDefinition_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -147708,17 +150812,17 @@ func (ec *executionContext) _Template_internalNotes(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Template_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_systemInternalID(ctx, field) + return ec.fieldContext_TagDefinition_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -147749,66 +150853,66 @@ func (ec *executionContext) _Template_systemInternalID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_Template_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_name(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_environmentName(ctx, field) + return ec.fieldContext_TagDefinition_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Template_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_environmentID(ctx, field) + return ec.fieldContext_TagDefinition_aliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.Aliases, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_slug(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_scopeName(ctx, field) + return ec.fieldContext_TagDefinition_slug(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.Slug, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -147818,855 +150922,723 @@ func (ec *executionContext) _Template_scopeName(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Template_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_description(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_scopeID(ctx, field) + return ec.fieldContext_TagDefinition_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_color(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_name(ctx, field) + return ec.fieldContext_TagDefinition_color(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Color, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_templateType(ctx, field) + return ec.fieldContext_TagDefinition_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateType, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { - return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateDocumentType does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TagDefinition", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_description(ctx, field) + return ec.fieldContext_TagDefinitionConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TagDefinitionEdge) graphql.Marshaler { + return ec.marshalOTagDefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TagDefinitionConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TagDefinitionEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Template_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_kind(ctx, field) + return ec.fieldContext_TagDefinitionConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Kind, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TemplateKind) graphql.Marshaler { - return ec.marshalOTemplateTemplateKind2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateKind(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Template_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateTemplateKind does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TagDefinitionConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_jsonconfig(ctx, field) + return ec.fieldContext_TagDefinitionConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Jsonconfig, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalNMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_uischema(ctx, field) + return ec.fieldContext_TagDefinitionEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Uischema, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinition) graphql.Marshaler { + return ec.marshalOTagDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinition(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TagDefinitionEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TagDefinition(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Template_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _TagDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TagDefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_trustCenterID(ctx, field) + return ec.fieldContext_TagDefinitionEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Template_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TagDefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TagDefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Template_transformConfiguration(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_transformConfiguration(ctx, field) + return ec.fieldContext_Task_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TransformConfiguration, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.TemplateProjectionConfig) graphql.Marshaler { - return ec.marshalOTemplateProjectionConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTemplateProjectionConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Template_transformConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateProjectionConfig does not have child fields")) +func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_owner(ctx, field) + return ec.fieldContext_Task_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Template_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_environment(ctx, field) + return ec.fieldContext_Task_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Template_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_scope(ctx, field) + return ec.fieldContext_Task_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_documents(ctx, field) + return ec.fieldContext_Task_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Documents(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { - return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentDataConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Template_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Task_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_files(ctx, field) + return ec.fieldContext_Task_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Template_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Template_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Task_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_trustCenter(ctx, field) + return ec.fieldContext_Task_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenter(ctx) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Template_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenter(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_assessments(ctx, field) + return ec.fieldContext_Task_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { - return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Template_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Task_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Template_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_taskKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_campaigns(ctx, field) + return ec.fieldContext_Task_taskKindName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + return obj.TaskKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Template_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Task_taskKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Template_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_taskKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Template_identityHolders(ctx, field) + return ec.fieldContext_Task_taskKindID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.TaskKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Template_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Template_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Task_taskKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TemplateConnection_edges(ctx, field) + return ec.fieldContext_Task_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TemplateEdge) graphql.Marshaler { - return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TemplateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TemplateEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) + return ec.fieldContext_Task_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TemplateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TemplateConnection_totalCount(ctx, field) + return ec.fieldContext_Task_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TemplateConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Task_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TemplateEdge_node(ctx, field) + return ec.fieldContext_Task_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { - return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TemplateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Template(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Task_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TemplateEdge_cursor(ctx, field) + return ec.fieldContext_Task_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TemplateEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Task_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenter_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_title(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_id(ctx, field) + return ec.fieldContext_Task_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Title, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Task_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenter_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_details(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_createdAt(ctx, field) + return ec.fieldContext_Task_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.Details, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Task_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenter_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) + return ec.fieldContext_Task_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Task_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _TrustCenter_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_status(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_createdBy(ctx, field) + return ec.fieldContext_Task_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TaskStatus) graphql.Marshaler { + return ec.marshalNTaskTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTaskStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenter_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type TaskTaskStatus does not have child fields")) } -func (ec *executionContext) _TrustCenter_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_due(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_updatedBy(ctx, field) + return ec.fieldContext_Task_due(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.Due, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _TrustCenter_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_completed(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_tags(ctx, field) + return ec.fieldContext_Task_completed(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Completed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _TrustCenter_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_assigneeID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_ownerID(ctx, field) + return ec.fieldContext_Task_assigneeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.AssigneeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -148676,135 +151648,84 @@ func (ec *executionContext) _TrustCenter_ownerID(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_TrustCenter_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Task_assigneeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenter_slug(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_assignerID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_slug(ctx, field) + return ec.fieldContext_Task_assignerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Slug, nil + return obj.AssignerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_assignerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenter_customDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_systemGenerated(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_customDomainID(ctx, field) + return ec.fieldContext_Task_systemGenerated(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CustomDomainID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + return obj.SystemGenerated, nil }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenter_customDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _TrustCenter_previewDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_previewDomainID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PreviewDomainID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenter_previewDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) -} + directive1 := func(ctx context.Context) (any, error) { + source, err := ec.unmarshalOControlControlSource2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, "FRAMEWORK") + if err != nil { + var zeroVal bool + return zeroVal, err + } + if ec.Directives.ExternalSource == nil { + var zeroVal bool + return zeroVal, errors.New("directive externalSource is not implemented") + } + return ec.Directives.ExternalSource(ctx, obj, directive0, source) + } -func (ec *executionContext) _TrustCenter_pirschDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_pirschDomainID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PirschDomainID, nil + next = directive1 + return next }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenter_pirschDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenter_pirschIdentificationCode(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_pirschIdentificationCode(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PirschIdentificationCode, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_TrustCenter_pirschIdentificationCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_systemGenerated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TrustCenter_pirschAccessLink(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_idempotencyKey(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_pirschAccessLink(ctx, field) + return ec.fieldContext_Task_idempotencyKey(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PirschAccessLink, nil + return obj.IdempotencyKey, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -148814,63 +151735,63 @@ func (ec *executionContext) _TrustCenter_pirschAccessLink(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_TrustCenter_pirschAccessLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_idempotencyKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenter_previewStatus(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_externalReferenceURL(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_previewStatus(ctx, field) + return ec.fieldContext_Task_externalReferenceURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PreviewStatus, nil + return obj.ExternalReferenceURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterPreviewStatus) graphql.Marshaler { - return ec.marshalOTrustCenterTrustCenterPreviewStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterPreviewStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_previewStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type TrustCenterTrustCenterPreviewStatus does not have child fields")) +func (ec *executionContext) fieldContext_Task_externalReferenceURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenter_subprocessorURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_parentTaskID(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_subprocessorURL(ctx, field) + return ec.fieldContext_Task_parentTaskID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubprocessorURL, nil + return obj.ParentTaskID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_subprocessorURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_parentTaskID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Task", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenter_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_owner(ctx, field) + return ec.fieldContext_Task_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -148883,9 +151804,9 @@ func (ec *executionContext) _TrustCenter_owner(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_TrustCenter_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, @@ -148896,282 +151817,282 @@ func (ec *executionContext) fieldContext_TrustCenter_owner(_ context.Context, fi return fc, nil } -func (ec *executionContext) _TrustCenter_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_taskKind(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_blockedGroups(ctx, field) + return ec.fieldContext_Task_taskKind(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.TaskKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenter_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_taskKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TrustCenter_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_editors(ctx, field) + return ec.fieldContext_Task_environment(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenter_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TrustCenter_customDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_customDomain(ctx, field) + return ec.fieldContext_Task_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CustomDomain(ctx) + return obj.Scope(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { - return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_customDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomain(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenter_previewDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_assigner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_previewDomain(ctx, field) + return ec.fieldContext_Task_assigner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PreviewDomain(ctx) + return obj.Assigner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { - return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_previewDomain(_ 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: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomain(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenter_setting(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_setting(ctx, field) + return ec.fieldContext_Task_assignee(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Setting(ctx) + return obj.Assignee(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { - return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenter_setting(_ 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: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSetting(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenter_previewSetting(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_previewSetting(ctx, field) + return ec.fieldContext_Task_comments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PreviewSetting(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { - return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenter_previewSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSetting(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenter_watermarkConfig(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_watermarkConfig(ctx, field) + return ec.fieldContext_Task_groups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WatermarkConfig(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { - return ec.marshalOTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenter_watermarkConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfig(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterSubprocessors(ctx, field) + return ec.fieldContext_Task_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) + return obj.InternalPolicies(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.InternalPolicyOrder), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { - return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) + return ec.childFields_InternalPolicyConnection(ctx, field) }, } defer func() { @@ -149181,41 +152102,41 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterSubprocessors(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterDocs(ctx, field) + return ec.fieldContext_Task_procedures(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) + return obj.Procedures(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.ProcedureOrder), fc.Args["where"].(*generated.ProcedureWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { - return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDocConnection(ctx, field) + return ec.childFields_ProcedureConnection(ctx, field) }, } defer func() { @@ -149225,41 +152146,41 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterDocs(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterCompliances(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterCompliances(ctx, field) + return ec.fieldContext_Task_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { - return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterComplianceConnection(ctx, field) + return ec.childFields_ControlConnection(ctx, field) }, } defer func() { @@ -149269,41 +152190,41 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterCompliances(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterCompliances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_templates(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_templates(ctx, field) + return ec.fieldContext_Task_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { - return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TemplateConnection(ctx, field) + return ec.childFields_SubcontrolConnection(ctx, field) }, } defer func() { @@ -149313,41 +152234,41 @@ func (ec *executionContext) fieldContext_TrustCenter_templates(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_posts(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_posts(ctx, field) + return ec.fieldContext_Task_controlObjectives(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Posts(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.ControlObjectives(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.ControlObjectiveOrder), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_posts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) + return ec.childFields_ControlObjectiveConnection(ctx, field) }, } defer func() { @@ -149357,41 +152278,41 @@ func (ec *executionContext) fieldContext_TrustCenter_posts(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_posts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterEntities(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterEntities(ctx, field) + return ec.fieldContext_Task_programs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterEntities(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.TrustCenterEntityOrder), fc.Args["where"].(*generated.TrustCenterEntityWhereInput)) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { - return ec.marshalNTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterEntities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntityConnection(ctx, field) + return ec.childFields_ProgramConnection(ctx, field) }, } defer func() { @@ -149401,41 +152322,41 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterEntities(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterEntities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterNdaRequests(ctx, field) + return ec.fieldContext_Task_risks(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterNdaRequests(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.TrustCenterNDARequestOrder), fc.Args["where"].(*generated.TrustCenterNDARequestWhereInput)) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequestConnection) graphql.Marshaler { - return ec.marshalNTrustCenterNDARequestConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterNDARequestConnection(ctx, field) + return ec.childFields_RiskConnection(ctx, field) }, } defer func() { @@ -149445,41 +152366,41 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterNdaRequests(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterNdaRequests_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenter_trustCenterFaqs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenter_trustCenterFaqs(ctx, field) + return ec.fieldContext_Task_platforms(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterFaqs(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.TrustCenterFAQOrder), fc.Args["where"].(*generated.TrustCenterFAQWhereInput)) + return obj.Platforms(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQConnection) graphql.Marshaler { - return ec.marshalNTrustCenterFAQConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenter_trustCenterFaqs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenter", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterFAQConnection(ctx, field) + return ec.childFields_PlatformConnection(ctx, field) }, } defer func() { @@ -149489,225 +152410,305 @@ func (ec *executionContext) fieldContext_TrustCenter_trustCenterFaqs(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenter_trustCenterFaqs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_id(ctx, field) + return ec.fieldContext_Task_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _TrustCenterCompliance_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) +func (ec *executionContext) fieldContext_Task_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterCompliance_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, 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_Task_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_updatedAt(ctx, field) + return ec.fieldContext_Task_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterCompliance_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _TrustCenterCompliance_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolderConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_updatedBy(ctx, field) + return ec.fieldContext_Task_controlImplementations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.ControlImplementations(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.ControlImplementationOrder), fc.Args["where"].(*generated.ControlImplementationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { + return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlImplementationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_tags(ctx, field) + return ec.fieldContext_Task_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Task_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ActionPlanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_standardID(ctx, field) + return ec.fieldContext_Task_evidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StandardID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Evidence(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.EvidenceOrder), fc.Args["where"].(*generated.EvidenceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Task_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EvidenceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_trustCenterID(ctx, field) + return ec.fieldContext_Task_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Task_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Task", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowObjectRefConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Task_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_blockedGroups(ctx, field) + return ec.fieldContext_Task_vulnerabilities(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Vulnerabilities(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.VulnerabilityOrder), fc.Args["where"].(*generated.VulnerabilityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { + return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterCompliance", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_VulnerabilityConnection(ctx, field) }, } defer func() { @@ -149717,41 +152718,41 @@ func (ec *executionContext) fieldContext_TrustCenterCompliance_blockedGroups(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterCompliance_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_editors(ctx, field) + return ec.fieldContext_Task_findings(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterCompliance", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } defer func() { @@ -149761,116 +152762,116 @@ func (ec *executionContext) fieldContext_TrustCenterCompliance_editors(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterCompliance_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Task_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_trustCenter(ctx, field) + return ec.fieldContext_Task_parent(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenter(ctx) + return obj.Parent(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { + return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterCompliance", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenter(ctx, field) + return ec.childFields_Task(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterCompliance_standard(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { +func (ec *executionContext) _Task_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterCompliance_standard(ctx, field) + return ec.fieldContext_Task_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Standard(ctx) + return obj.Tasks(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { - return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.Task) graphql.Marshaler { + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterCompliance_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterCompliance", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Standard(ctx, field) + return ec.childFields_Task(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterComplianceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterComplianceConnection_edges(ctx, field) + return ec.fieldContext_TaskConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterComplianceEdge) graphql.Marshaler { - return ec.marshalOTrustCenterComplianceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TaskEdge) graphql.Marshaler { + return ec.marshalOTaskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterComplianceConnection", + Object: "TaskConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterComplianceEdge(ctx, field) + return ec.childFields_TaskEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterComplianceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterComplianceConnection_pageInfo(ctx, field) + return ec.fieldContext_TaskConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -149883,9 +152884,9 @@ func (ec *executionContext) _TrustCenterComplianceConnection_pageInfo(ctx contex true, ) } -func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_pageInfo(_ 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: "TrustCenterComplianceConnection", + Object: "TaskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -149896,13 +152897,13 @@ func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_pageInf return fc, nil } -func (ec *executionContext) _TrustCenterComplianceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterComplianceConnection_totalCount(ctx, field) + return ec.fieldContext_TaskConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -149915,49 +152916,49 @@ func (ec *executionContext) _TrustCenterComplianceConnection_totalCount(ctx cont true, ) } -func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterComplianceConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TaskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TaskConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterComplianceEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterComplianceEdge_node(ctx, field) + return ec.fieldContext_TaskEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterCompliance) graphql.Marshaler { - return ec.marshalOTrustCenterCompliance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterCompliance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { + return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterComplianceEdge_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: "TrustCenterComplianceEdge", + Object: "TaskEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterCompliance(ctx, field) + return ec.childFields_Task(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterComplianceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterComplianceEdge_cursor(ctx, field) + return ec.fieldContext_TaskEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -149970,245 +152971,286 @@ func (ec *executionContext) _TrustCenterComplianceEdge_cursor(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_TrustCenterComplianceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterComplianceEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TaskEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterConnection_edges(ctx, field) + return ec.fieldContext_Template_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterEdge) graphql.Marshaler { - return ec.marshalOTrustCenterEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterConnection_pageInfo(ctx, field) + return ec.fieldContext_Template_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil -} +func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Time does not have child fields")) +} -func (ec *executionContext) _TrustCenterConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterConnection_totalCount(ctx, field) + return ec.fieldContext_Template_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_id(ctx, field) + return ec.fieldContext_Template_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_createdAt(ctx, field) + return ec.fieldContext_Template_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_updatedAt(ctx, field) + return ec.fieldContext_Template_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_createdBy(ctx, field) + return ec.fieldContext_Template_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_updatedBy(ctx, field) + return ec.fieldContext_Template_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Template_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_tags(ctx, field) + return ec.fieldContext_Template_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Template_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_trustCenterDocKindName(ctx, field) + return ec.fieldContext_Template_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterDocKindName, nil + return obj.SystemInternalID, nil + }, + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Template_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Template_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Template_environmentName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150218,20 +153260,20 @@ func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindName(ctx context.C false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Template_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_trustCenterDocKindID(ctx, field) + return ec.fieldContext_Template_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterDocKindID, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150241,20 +153283,43 @@ func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindID(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_trustCenterID(ctx, field) + return ec.fieldContext_Template_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.ScopeName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Template_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Template_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Template_scopeID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150264,20 +153329,20 @@ func (ec *executionContext) _TrustCenterDoc_trustCenterID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_title(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_title(ctx, field) + return ec.fieldContext_Template_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150287,135 +153352,135 @@ func (ec *executionContext) _TrustCenterDoc_title(ctx context.Context, field gra true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_fileID(ctx, field) + return ec.fieldContext_Template_templateType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, nil + return obj.TemplateType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { + return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateDocumentType does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_originalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_originalFileID(ctx, field) + return ec.fieldContext_Template_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OriginalFileID, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_originalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_watermarkingEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_watermarkingEnabled(ctx, field) + return ec.fieldContext_Template_kind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WatermarkingEnabled, nil + return obj.Kind, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TemplateKind) graphql.Marshaler { + return ec.marshalOTemplateTemplateKind2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateKind(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_watermarkingEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Template_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateTemplateKind does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_watermarkStatus(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_watermarkStatus(ctx, field) + return ec.fieldContext_Template_jsonconfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WatermarkStatus, nil + return obj.Jsonconfig, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WatermarkStatus) graphql.Marshaler { - return ec.marshalOTrustCenterDocWatermarkStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWatermarkStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalNMap2map(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_watermarkStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type TrustCenterDocWatermarkStatus does not have child fields")) +func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_visibility(ctx, field) + return ec.fieldContext_Template_uischema(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Visibility, nil + return obj.Uischema, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterDocumentVisibility) graphql.Marshaler { - return ec.marshalOTrustCenterDocTrustCenterDocumentVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterDocumentVisibility(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type TrustCenterDocTrustCenterDocumentVisibility does not have child fields")) +func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_standardID(ctx, field) + return ec.fieldContext_Template_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StandardID, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150425,20 +153490,75 @@ func (ec *executionContext) _TrustCenterDoc_standardID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Template_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterDoc_trustCenterDocKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_transformConfiguration(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_trustCenterDocKind(ctx, field) + return ec.fieldContext_Template_transformConfiguration(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterDocKind(ctx) + return obj.TransformConfiguration, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v models.TemplateProjectionConfig) graphql.Marshaler { + return ec.marshalOTemplateProjectionConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTemplateProjectionConfig(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Template_transformConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Template", field, false, false, errors.New("field of type TemplateProjectionConfig does not have child fields")) +} + +func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Template_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Template", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _Template_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Template_environment(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Environment(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -150448,9 +153568,9 @@ func (ec *executionContext) _TrustCenterDoc_trustCenterDocKind(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, @@ -150461,34 +153581,66 @@ func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKind(_ con return fc, nil } -func (ec *executionContext) _TrustCenterDoc_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_blockedGroups(ctx, field) + return ec.fieldContext_Template_scope(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Scope(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Template_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Template", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Template_documents(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Documents(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.DocumentDataOrder), fc.Args["where"].(*generated.DocumentDataWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { + return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_DocumentDataConnection(ctx, field) }, } defer func() { @@ -150498,41 +153650,41 @@ func (ec *executionContext) fieldContext_TrustCenterDoc_blockedGroups(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterDoc_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Template_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterDoc_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_editors(ctx, field) + return ec.fieldContext_Template_files(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } defer func() { @@ -150542,20 +153694,20 @@ func (ec *executionContext) fieldContext_TrustCenterDoc_editors(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterDoc_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Template_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterDoc_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_trustCenter(ctx, field) + return ec.fieldContext_Template_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenter(ctx) @@ -150568,9 +153720,9 @@ func (ec *executionContext) _TrustCenterDoc_trustCenter(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, @@ -150581,141 +153733,177 @@ func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenter(_ context.Co return fc, nil } -func (ec *executionContext) _TrustCenterDoc_standard(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_assessments(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_standard(ctx, field) + return ec.fieldContext_Template_assessments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Standard(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Assessments(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.AssessmentOrder), fc.Args["where"].(*generated.AssessmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { - return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentConnection) graphql.Marshaler { + return ec.marshalNAssessmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_assessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Standard(ctx, field) + return ec.childFields_AssessmentConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Template_assessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenterDoc_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_file(ctx, field) + return ec.fieldContext_Template_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.File(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_CampaignConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Template_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenterDoc_originalFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { +func (ec *executionContext) _Template_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDoc_originalFile(ctx, field) + return ec.fieldContext_Template_identityHolders(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OriginalFile(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.IdentityHolders(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterDoc_originalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterDoc", + Object: "Template", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_IdentityHolderConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Template_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenterDocConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDocConnection_edges(ctx, field) + return ec.fieldContext_TemplateConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterDocEdge) graphql.Marshaler { - return ec.marshalOTrustCenterDocEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TemplateEdge) graphql.Marshaler { + return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDocConnection_edges(_ 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: "TrustCenterDocConnection", + Object: "TemplateConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDocEdge(ctx, field) + return ec.childFields_TemplateEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterDocConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDocConnection_pageInfo(ctx, field) + return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -150728,9 +153916,9 @@ func (ec *executionContext) _TrustCenterDocConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_TrustCenterDocConnection_pageInfo(_ 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: "TrustCenterDocConnection", + Object: "TemplateConnection", Field: field, IsMethod: false, IsResolver: false, @@ -150741,13 +153929,13 @@ func (ec *executionContext) fieldContext_TrustCenterDocConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _TrustCenterDocConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDocConnection_totalCount(ctx, field) + return ec.fieldContext_TemplateConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -150760,49 +153948,49 @@ func (ec *executionContext) _TrustCenterDocConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_TrustCenterDocConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDocConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TemplateConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterDocEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDocEdge_node(ctx, field) + return ec.fieldContext_TemplateEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDoc) graphql.Marshaler { - return ec.marshalOTrustCenterDoc2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDoc(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { + return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterDocEdge_node(_ 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: "TrustCenterDocEdge", + Object: "TemplateEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDoc(ctx, field) + return ec.childFields_Template(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterDocEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterDocEdge_cursor(ctx, field) + return ec.fieldContext_TemplateEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -150815,167 +154003,181 @@ func (ec *executionContext) _TrustCenterDocEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_TrustCenterDocEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterDocEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TemplateEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEdge_node(ctx, field) + return ec.fieldContext_TrustCenter_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenter(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenter_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenter_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _TrustCenter_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenter_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_id(ctx, field) + return ec.fieldContext_TrustCenter_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_createdAt(ctx, field) + return ec.fieldContext_TrustCenter_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_updatedAt(ctx, field) + return ec.fieldContext_TrustCenter_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_createdBy(ctx, field) + return ec.fieldContext_TrustCenter_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_slug(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_updatedBy(ctx, field) + return ec.fieldContext_TrustCenter_slug(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.Slug, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -150985,20 +154187,20 @@ func (ec *executionContext) _TrustCenterEntity_updatedBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_customDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_logoFileID(ctx, field) + return ec.fieldContext_TrustCenter_customDomainID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFileID, nil + return obj.CustomDomainID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -151008,20 +154210,43 @@ func (ec *executionContext) _TrustCenterEntity_logoFileID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_customDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_url(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_previewDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_url(ctx, field) + return ec.fieldContext_TrustCenter_previewDomainID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URL, nil + return obj.PreviewDomainID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenter_previewDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenter_pirschDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenter_pirschDomainID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PirschDomainID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -151031,86 +154256,141 @@ func (ec *executionContext) _TrustCenterEntity_url(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_pirschDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_pirschIdentificationCode(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenter_pirschIdentificationCode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.PirschIdentificationCode, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_pirschIdentificationCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_name(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_pirschAccessLink(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_name(ctx, field) + return ec.fieldContext_TrustCenter_pirschAccessLink(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.PirschAccessLink, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenter_pirschAccessLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenter_previewStatus(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenter_previewStatus(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PreviewStatus, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterPreviewStatus) graphql.Marshaler { + return ec.marshalOTrustCenterTrustCenterPreviewStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterPreviewStatus(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_previewStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type TrustCenterTrustCenterPreviewStatus does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_subprocessorURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_entityTypeID(ctx, field) + return ec.fieldContext_TrustCenter_subprocessorURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityTypeID, nil + return obj.SubprocessorURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_subprocessorURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenter", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterEntity_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenter_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenter_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _TrustCenter_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenter_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -151124,9 +154404,9 @@ func (ec *executionContext) _TrustCenterEntity_blockedGroups(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntity", + Object: "TrustCenter", Field: field, IsMethod: true, IsResolver: false, @@ -151141,20 +154421,20 @@ func (ec *executionContext) fieldContext_TrustCenterEntity_blockedGroups(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterEntity_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenter_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterEntity_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_editors(ctx, field) + return ec.fieldContext_TrustCenter_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -151168,9 +154448,9 @@ func (ec *executionContext) _TrustCenterEntity_editors(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntity", + Object: "TrustCenter", Field: field, IsMethod: true, IsResolver: false, @@ -151185,468 +154465,627 @@ func (ec *executionContext) fieldContext_TrustCenterEntity_editors(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterEntity_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenter_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterEntity_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_customDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_logoFile(ctx, field) + return ec.fieldContext_TrustCenter_customDomain(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFile(ctx) + return obj.CustomDomain(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { + return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_customDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntity", + Object: "TrustCenter", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_CustomDomain(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterEntity_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_previewDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_trustCenter(ctx, field) + return ec.fieldContext_TrustCenter_previewDomain(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenter(ctx) + return obj.PreviewDomain(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { + return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_previewDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntity", + Object: "TrustCenter", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenter(ctx, field) + return ec.childFields_CustomDomain(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterEntity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_setting(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntity_entityType(ctx, field) + return ec.fieldContext_TrustCenter_setting(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityType(ctx) + return obj.Setting(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { - return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { + return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntity", + Object: "TrustCenter", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityType(ctx, field) + return ec.childFields_TrustCenterSetting(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterEntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_previewSetting(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntityConnection_edges(ctx, field) + return ec.fieldContext_TrustCenter_previewSetting(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.PreviewSetting(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterEntityEdge) graphql.Marshaler { - return ec.marshalOTrustCenterEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { + return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_previewSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntityConnection", + Object: "TrustCenter", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntityEdge(ctx, field) + return ec.childFields_TrustCenterSetting(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterEntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_watermarkConfig(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntityConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenter_watermarkConfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.WatermarkConfig(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { + return ec.marshalOTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterEntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_watermarkConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntityConnection", + Object: "TrustCenter", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_TrustCenterWatermarkConfig(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterEntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntityConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterSubprocessors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterSubprocessors(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.TrustCenterSubprocessorOrder), fc.Args["where"].(*generated.TrustCenterSubprocessorWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessorConnection) graphql.Marshaler { + return ec.marshalNTrustCenterSubprocessorConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterEntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntityConnection", field, false, false, errors.New("field of type Int does not have child fields")) -} - -func (ec *executionContext) _TrustCenterEntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntityEdge_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntity) graphql.Marshaler { - return ec.marshalOTrustCenterEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntity(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterEntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenter_trustCenterSubprocessors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterEntityEdge", + Object: "TrustCenter", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterEntity(ctx, field) + return ec.childFields_TrustCenterSubprocessorConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterSubprocessors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _TrustCenterEntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterEntityEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterDocs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { + return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterEntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterEntityEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterDocConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterCompliances(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_id(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterCompliances(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterCompliances(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.TrustCenterComplianceOrder), fc.Args["where"].(*generated.TrustCenterComplianceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterComplianceConnection) graphql.Marshaler { + return ec.marshalNTrustCenterComplianceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_trustCenterCompliances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterComplianceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterCompliances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_templates(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_createdAt(ctx, field) + return ec.fieldContext_TrustCenter_templates(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Templates(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.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { + return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TemplateConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_posts(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_updatedAt(ctx, field) + return ec.fieldContext_TrustCenter_posts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Posts(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_posts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NoteConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_posts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterEntities(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_createdBy(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterEntities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterEntities(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.TrustCenterEntityOrder), fc.Args["where"].(*generated.TrustCenterEntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntityConnection) graphql.Marshaler { + return ec.marshalNTrustCenterEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_trustCenterEntities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterEntityConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterEntities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_updatedBy(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterNdaRequests(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterNdaRequests(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.TrustCenterNDARequestOrder), fc.Args["where"].(*generated.TrustCenterNDARequestWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequestConnection) graphql.Marshaler { + return ec.marshalNTrustCenterNDARequestConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_trustCenterNdaRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterNDARequestConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterNdaRequests_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenter_trustCenterFaqs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenter) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKindName(ctx, field) + return ec.fieldContext_TrustCenter_trustCenterFaqs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterFaqKindName, nil + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterFaqs(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.TrustCenterFAQOrder), fc.Args["where"].(*generated.TrustCenterFAQWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQConnection) graphql.Marshaler { + return ec.marshalNTrustCenterFAQConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenter_trustCenterFaqs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenter", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterFAQConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenter_trustCenterFaqs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKindID(ctx, field) + return ec.fieldContext_TrustCenterCompliance_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterFaqKindID, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterCompliance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_noteID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_noteID(ctx, field) + return ec.fieldContext_TrustCenterCompliance_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NoteID, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterCompliance_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _TrustCenterCompliance_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterCompliance_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_noteID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterCompliance_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenterCompliance_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterCompliance_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_referenceLink(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_referenceLink(ctx, field) + return ec.fieldContext_TrustCenterCompliance_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceLink, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -151656,72 +155095,86 @@ func (ec *executionContext) _TrustCenterFAQ_referenceLink(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_referenceLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterCompliance_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_displayOrder(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_displayOrder(ctx, field) + return ec.fieldContext_TrustCenterCompliance_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayOrder, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_displayOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterCompliance_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKind(ctx, field) + return ec.fieldContext_TrustCenterCompliance_standardID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterFaqKind(ctx) + return obj.StandardID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFAQ", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) +func (ec *executionContext) fieldContext_TrustCenterCompliance_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterCompliance_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterCompliance_trustCenterID(ctx, field) }, - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.TrustCenterID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterCompliance_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterCompliance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQ_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenterCompliance_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -151735,9 +155188,9 @@ func (ec *executionContext) _TrustCenterFAQ_blockedGroups(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterCompliance_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQ", + Object: "TrustCenterCompliance", Field: field, IsMethod: true, IsResolver: false, @@ -151752,20 +155205,20 @@ func (ec *executionContext) fieldContext_TrustCenterFAQ_blockedGroups(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterFAQ_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterCompliance_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_editors(ctx, field) + return ec.fieldContext_TrustCenterCompliance_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -151779,9 +155232,9 @@ func (ec *executionContext) _TrustCenterFAQ_editors(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterCompliance_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQ", + Object: "TrustCenterCompliance", Field: field, IsMethod: true, IsResolver: false, @@ -151796,20 +155249,20 @@ func (ec *executionContext) fieldContext_TrustCenterFAQ_editors(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterFAQ_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterCompliance_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_trustCenter(ctx, field) + return ec.fieldContext_TrustCenterCompliance_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenter(ctx) @@ -151822,9 +155275,9 @@ func (ec *executionContext) _TrustCenterFAQ_trustCenter(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterCompliance_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQ", + Object: "TrustCenterCompliance", Field: field, IsMethod: true, IsResolver: false, @@ -151835,77 +155288,77 @@ func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenter(_ context.Co return fc, nil } -func (ec *executionContext) _TrustCenterFAQ_note(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterCompliance_standard(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterCompliance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQ_note(ctx, field) + return ec.fieldContext_TrustCenterCompliance_standard(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Note(ctx) + return obj.Standard(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Note) graphql.Marshaler { - return ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQ_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterCompliance_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQ", + Object: "TrustCenterCompliance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Note(ctx, field) + return ec.childFields_Standard(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterFAQConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterComplianceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterComplianceConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterFAQEdge) graphql.Marshaler { - return ec.marshalOTrustCenterFAQEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterComplianceEdge) graphql.Marshaler { + return ec.marshalOTrustCenterComplianceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterComplianceEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQConnection", + Object: "TrustCenterComplianceConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterFAQEdge(ctx, field) + return ec.childFields_TrustCenterComplianceEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterFAQConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterComplianceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterComplianceConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -151918,9 +155371,9 @@ func (ec *executionContext) _TrustCenterFAQConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQConnection", + Object: "TrustCenterComplianceConnection", Field: field, IsMethod: false, IsResolver: false, @@ -151931,13 +155384,13 @@ func (ec *executionContext) fieldContext_TrustCenterFAQConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _TrustCenterFAQConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterComplianceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterComplianceConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -151950,49 +155403,49 @@ func (ec *executionContext) _TrustCenterFAQConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterComplianceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterComplianceConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterFAQEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterComplianceEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQEdge_node(ctx, field) + return ec.fieldContext_TrustCenterComplianceEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQ) graphql.Marshaler { - return ec.marshalOTrustCenterFAQ2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterCompliance) graphql.Marshaler { + return ec.marshalOTrustCenterCompliance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterCompliance(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterComplianceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterFAQEdge", + Object: "TrustCenterComplianceEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterFAQ(ctx, field) + return ec.childFields_TrustCenterCompliance(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterFAQEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterComplianceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterComplianceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterFAQEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterComplianceEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -152005,454 +155458,504 @@ func (ec *executionContext) _TrustCenterFAQEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_TrustCenterFAQEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterFAQEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterComplianceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterComplianceEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_id(ctx, field) + return ec.fieldContext_TrustCenterConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterEdge) graphql.Marshaler { + return ec.marshalOTrustCenterEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_createdAt(ctx, field) + return ec.fieldContext_TrustCenterConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_createdBy(ctx, field) + return ec.fieldContext_TrustCenterDoc_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterDoc_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_tags(ctx, field) + return ec.fieldContext_TrustCenterDoc_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenterDoc_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_firstName(ctx, field) + return ec.fieldContext_TrustCenterDoc_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FirstName, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterDoc_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterDoc_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterDoc_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_lastName(ctx, field) + return ec.fieldContext_TrustCenterDoc_trustCenterDocKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastName, nil + return obj.TrustCenterDocKindName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_email(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_trustCenterDocKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_email(ctx, field) + return ec.fieldContext_TrustCenterDoc_trustCenterDocKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.TrustCenterDocKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_companyName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_companyName(ctx, field) + return ec.fieldContext_TrustCenterDoc_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompanyName, nil + return obj.TrustCenterID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_companyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_reason(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_title(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_reason(ctx, field) + return ec.fieldContext_TrustCenterDoc_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Reason, nil + return obj.Title, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_accessLevel(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_accessLevel(ctx, field) + return ec.fieldContext_TrustCenterDoc_fileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessLevel, nil + return obj.FileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterNDARequestAccessLevel) graphql.Marshaler { - return ec.marshalOTrustCenterNDARequestTrustCenterNDARequestAccessLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterNDARequestAccessLevel(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_accessLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type TrustCenterNDARequestTrustCenterNDARequestAccessLevel does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_status(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_originalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_status(ctx, field) + return ec.fieldContext_TrustCenterDoc_originalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.OriginalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterNDARequestStatus) graphql.Marshaler { - return ec.marshalOTrustCenterNDARequestTrustCenterNDARequestStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterNDARequestStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type TrustCenterNDARequestTrustCenterNDARequestStatus does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_originalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_approvedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_watermarkingEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_approvedAt(ctx, field) + return ec.fieldContext_TrustCenterDoc_watermarkingEnabled(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovedAt, nil + return obj.WatermarkingEnabled, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_approvedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_watermarkingEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_approvedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_watermarkStatus(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_approvedByUserID(ctx, field) + return ec.fieldContext_TrustCenterDoc_watermarkStatus(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovedByUserID, nil + return obj.WatermarkStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.WatermarkStatus) graphql.Marshaler { + return ec.marshalOTrustCenterDocWatermarkStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWatermarkStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_approvedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_watermarkStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type TrustCenterDocWatermarkStatus does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_signedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_signedAt(ctx, field) + return ec.fieldContext_TrustCenterDoc_visibility(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SignedAt, nil + return obj.Visibility, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterDocumentVisibility) graphql.Marshaler { + return ec.marshalOTrustCenterDocTrustCenterDocumentVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterDocumentVisibility(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type TrustCenterDocTrustCenterDocumentVisibility does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_documentDataID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_documentDataID(ctx, field) + return ec.fieldContext_TrustCenterDoc_standardID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DocumentDataID, nil + return obj.StandardID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_documentDataID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDoc", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequest_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_trustCenterDocKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_fileID(ctx, field) + return ec.fieldContext_TrustCenterDoc_trustCenterDocKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, nil + return obj.TrustCenterDocKind(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenterDocKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterDoc", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenterDoc_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -152466,9 +155969,9 @@ func (ec *executionContext) _TrustCenterNDARequest_blockedGroups(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, @@ -152483,20 +155986,20 @@ func (ec *executionContext) fieldContext_TrustCenterNDARequest_blockedGroups(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterNDARequest_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterDoc_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_editors(ctx, field) + return ec.fieldContext_TrustCenterDoc_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -152510,9 +156013,9 @@ func (ec *executionContext) _TrustCenterNDARequest_editors(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, @@ -152527,20 +156030,20 @@ func (ec *executionContext) fieldContext_TrustCenterNDARequest_editors(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterNDARequest_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterDoc_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_trustCenter(ctx, field) + return ec.fieldContext_TrustCenterDoc_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenter(ctx) @@ -152553,9 +156056,9 @@ func (ec *executionContext) _TrustCenterNDARequest_trustCenter(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, @@ -152566,92 +156069,80 @@ func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenter(_ con return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_standard(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_trustCenterDocs(ctx, field) + return ec.fieldContext_TrustCenterDoc_standard(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) + return obj.Standard(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { - return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { + return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterDocConnection(ctx, field) + return ec.childFields_Standard(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterNDARequest_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_document(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_document(ctx, field) + return ec.fieldContext_TrustCenterDoc_file(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Document(ctx) + return obj.File(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { - return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentData(ctx, field) + return ec.childFields_File(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequest_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDoc_originalFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDoc) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequest_file(ctx, field) + return ec.fieldContext_TrustCenterDoc_originalFile(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.File(ctx) + return obj.OriginalFile(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { @@ -152661,9 +156152,9 @@ func (ec *executionContext) _TrustCenterNDARequest_file(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequest_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDoc_originalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequest", + Object: "TrustCenterDoc", Field: field, IsMethod: true, IsResolver: false, @@ -152674,45 +156165,45 @@ func (ec *executionContext) fieldContext_TrustCenterNDARequest_file(_ context.Co return fc, nil } -func (ec *executionContext) _TrustCenterNDARequestConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDocConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequestConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterDocConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterNDARequestEdge) graphql.Marshaler { - return ec.marshalOTrustCenterNDARequestEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterDocEdge) graphql.Marshaler { + return ec.marshalOTrustCenterDocEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDocConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequestConnection", + Object: "TrustCenterDocConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterNDARequestEdge(ctx, field) + return ec.childFields_TrustCenterDocEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequestConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDocConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequestConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterDocConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -152725,9 +156216,9 @@ func (ec *executionContext) _TrustCenterNDARequestConnection_pageInfo(ctx contex true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDocConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequestConnection", + Object: "TrustCenterDocConnection", Field: field, IsMethod: false, IsResolver: false, @@ -152738,13 +156229,13 @@ func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_pageInf return fc, nil } -func (ec *executionContext) _TrustCenterNDARequestConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDocConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequestConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterDocConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -152757,49 +156248,49 @@ func (ec *executionContext) _TrustCenterNDARequestConnection_totalCount(ctx cont true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequestConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDocConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDocConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterNDARequestEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDocEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequestEdge_node(ctx, field) + return ec.fieldContext_TrustCenterDocEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequest) graphql.Marshaler { - return ec.marshalOTrustCenterNDARequest2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequest(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDoc) graphql.Marshaler { + return ec.marshalOTrustCenterDoc2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDoc(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequestEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterDocEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterNDARequestEdge", + Object: "TrustCenterDocEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterNDARequest(ctx, field) + return ec.childFields_TrustCenterDoc(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterNDARequestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterDocEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterDocEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterNDARequestEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterDocEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -152812,135 +156303,144 @@ func (ec *executionContext) _TrustCenterNDARequestEdge_cursor(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_TrustCenterNDARequestEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterNDARequestEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterDocEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterDocEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_id(ctx, field) + return ec.fieldContext_TrustCenterEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenter(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _TrustCenterSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_createdAt(ctx, field) + return ec.fieldContext_TrustCenterEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterEntity_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_createdBy(ctx, field) + return ec.fieldContext_TrustCenterEntity_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterEntity_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenterEntity_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -152950,89 +156450,20 @@ func (ec *executionContext) _TrustCenterSetting_trustCenterID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_title(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_title(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_companyName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_companyName(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CompanyName, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_companyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_companyDescription(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_companyDescription(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CompanyDescription, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_companyDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_overview(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_overview(ctx, field) + return ec.fieldContext_TrustCenterEntity_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Overview, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -153042,112 +156473,20 @@ func (ec *executionContext) _TrustCenterSetting_overview(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_overview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_logoRemoteURL(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LogoRemoteURL, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_logoLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_logoLocalFileID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LogoLocalFileID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_logoLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_faviconRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_faviconRemoteURL(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.FaviconRemoteURL, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_faviconRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_faviconLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_faviconLocalFileID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.FaviconLocalFileID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_faviconLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_heroImageLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_logoFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_heroImageLocalFileID(ctx, field) + return ec.fieldContext_TrustCenterEntity_logoFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HeroImageLocalFileID, nil + return obj.LogoFileID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -153157,89 +156496,20 @@ func (ec *executionContext) _TrustCenterSetting_heroImageLocalFileID(ctx context false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_heroImageLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_themeMode(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_themeMode(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ThemeMode, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterThemeMode) graphql.Marshaler { - return ec.marshalOTrustCenterSettingTrustCenterThemeMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterThemeMode(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_themeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type TrustCenterSettingTrustCenterThemeMode does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_primaryColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_primaryColor(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PrimaryColor, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_primaryColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_font(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_font(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Font, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_font(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_foregroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_url(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_foregroundColor(ctx, field) + return ec.fieldContext_TrustCenterEntity_url(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ForegroundColor, nil + return obj.URL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -153249,247 +156519,86 @@ func (ec *executionContext) _TrustCenterSetting_foregroundColor(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_foregroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_backgroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_backgroundColor(ctx, field) + return ec.fieldContext_TrustCenterEntity_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BackgroundColor, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_backgroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_accentColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_name(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_accentColor(ctx, field) + return ec.fieldContext_TrustCenterEntity_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccentColor, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_accentColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_secondaryBackgroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_secondaryBackgroundColor(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.SecondaryBackgroundColor, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_secondaryBackgroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_secondaryForegroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_secondaryForegroundColor(ctx, field) + return ec.fieldContext_TrustCenterEntity_entityTypeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecondaryForegroundColor, nil + return obj.EntityTypeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_secondaryForegroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_environment(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_environment(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Environment, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterEnvironment) graphql.Marshaler { - return ec.marshalOTrustCenterSettingTrustCenterEnvironment2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterEnvironment(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type TrustCenterSettingTrustCenterEnvironment does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_removeBranding(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_removeBranding(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RemoveBranding, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_removeBranding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_companyDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_companyDomain(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CompanyDomain, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_companyDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_securityContact(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_securityContact(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.SecurityContact, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_securityContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_ndaApprovalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_ndaApprovalRequired(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.NdaApprovalRequired, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_TrustCenterSetting_ndaApprovalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _TrustCenterSetting_statusPageURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_statusPageURL(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.StatusPageURL, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_statusPageURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntity", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSetting_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenterEntity_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -153503,9 +156612,9 @@ func (ec *executionContext) _TrustCenterSetting_blockedGroups(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntity_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSetting", + Object: "TrustCenterEntity", Field: field, IsMethod: true, IsResolver: false, @@ -153520,20 +156629,20 @@ func (ec *executionContext) fieldContext_TrustCenterSetting_blockedGroups(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterSetting_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterEntity_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterSetting_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_editors(ctx, field) + return ec.fieldContext_TrustCenterEntity_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -153547,9 +156656,9 @@ func (ec *executionContext) _TrustCenterSetting_editors(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntity_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSetting", + Object: "TrustCenterEntity", Field: field, IsMethod: true, IsResolver: false, @@ -153564,20 +156673,20 @@ func (ec *executionContext) fieldContext_TrustCenterSetting_editors(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterSetting_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterEntity_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterSetting_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_logoFile(ctx, field) + return ec.fieldContext_TrustCenterEntity_logoFile(ctx, field) }, func(ctx context.Context) (any, error) { return obj.LogoFile(ctx) @@ -153590,9 +156699,9 @@ func (ec *executionContext) _TrustCenterSetting_logoFile(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntity_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSetting", + Object: "TrustCenterEntity", Field: field, IsMethod: true, IsResolver: false, @@ -153603,109 +156712,109 @@ func (ec *executionContext) fieldContext_TrustCenterSetting_logoFile(_ context.C return fc, nil } -func (ec *executionContext) _TrustCenterSetting_faviconFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_faviconFile(ctx, field) + return ec.fieldContext_TrustCenterEntity_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FaviconFile(ctx) + return obj.TrustCenter(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_faviconFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntity_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSetting", + Object: "TrustCenterEntity", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_TrustCenter(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSetting_heroImageFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntity) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSetting_heroImageFile(ctx, field) + return ec.fieldContext_TrustCenterEntity_entityType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HeroImageFile(ctx) + return obj.EntityType(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { + return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSetting_heroImageFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSetting", + Object: "TrustCenterEntity", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_File(ctx, field) + return ec.childFields_EntityType(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSettingConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterEntityConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterSettingEdge) graphql.Marshaler { - return ec.marshalOTrustCenterSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterEntityEdge) graphql.Marshaler { + return ec.marshalOTrustCenterEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSettingConnection", + Object: "TrustCenterEntityConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSettingEdge(ctx, field) + return ec.childFields_TrustCenterEntityEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSettingConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterEntityConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -153718,9 +156827,9 @@ func (ec *executionContext) _TrustCenterSettingConnection_pageInfo(ctx context.C true, ) } -func (ec *executionContext) fieldContext_TrustCenterSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSettingConnection", + Object: "TrustCenterEntityConnection", Field: field, IsMethod: false, IsResolver: false, @@ -153731,13 +156840,13 @@ func (ec *executionContext) fieldContext_TrustCenterSettingConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _TrustCenterSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSettingConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterEntityConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -153750,49 +156859,49 @@ func (ec *executionContext) _TrustCenterSettingConnection_totalCount(ctx context true, ) } -func (ec *executionContext) fieldContext_TrustCenterSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntityConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSettingEdge_node(ctx, field) + return ec.fieldContext_TrustCenterEntityEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { - return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterEntity) graphql.Marshaler { + return ec.marshalOTrustCenterEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterEntity(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterEntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSettingEdge", + Object: "TrustCenterEntityEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSetting(ctx, field) + return ec.childFields_TrustCenterEntity(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterEntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterEntityEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSettingEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterEntityEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -153805,17 +156914,17 @@ func (ec *executionContext) _TrustCenterSettingEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_TrustCenterSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterEntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterEntityEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_id(ctx, field) + return ec.fieldContext_TrustCenterFAQ_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -153828,17 +156937,17 @@ func (ec *executionContext) _TrustCenterSubprocessor_id(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_createdAt(ctx, field) + return ec.fieldContext_TrustCenterFAQ_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -153851,17 +156960,17 @@ func (ec *executionContext) _TrustCenterSubprocessor_createdAt(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterFAQ_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -153874,17 +156983,17 @@ func (ec *executionContext) _TrustCenterSubprocessor_updatedAt(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_createdBy(ctx, field) + return ec.fieldContext_TrustCenterFAQ_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -153897,17 +157006,17 @@ func (ec *executionContext) _TrustCenterSubprocessor_createdBy(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterFAQ_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -153920,20 +157029,20 @@ func (ec *executionContext) _TrustCenterSubprocessor_updatedBy(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindName(ctx, field) + return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterSubprocessorKindName, nil + return obj.TrustCenterFaqKindName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -153943,20 +157052,20 @@ func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKind false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindID(ctx, field) + return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterSubprocessorKindID, nil + return obj.TrustCenterFaqKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -153966,20 +157075,20 @@ func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKind false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_subprocessorID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_noteID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_subprocessorID(ctx, field) + return ec.fieldContext_TrustCenterFAQ_noteID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubprocessorID, nil + return obj.NoteID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -153989,17 +157098,17 @@ func (ec *executionContext) _TrustCenterSubprocessor_subprocessorID(ctx context. true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_subprocessorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_noteID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenterFAQ_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenterID, nil @@ -154012,43 +157121,66 @@ func (ec *executionContext) _TrustCenterSubprocessor_trustCenterID(ctx context.C false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_countries(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_referenceLink(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_countries(ctx, field) + return ec.fieldContext_TrustCenterFAQ_referenceLink(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Countries, nil + return obj.ReferenceLink, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_countries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQ_referenceLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_displayOrder(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKind(ctx, field) + return ec.fieldContext_TrustCenterFAQ_displayOrder(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterSubprocessorKind(ctx) + return obj.DisplayOrder, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterFAQ_displayOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQ", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _TrustCenterFAQ_trustCenterFaqKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterFAQ_trustCenterFaqKind(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterFaqKind(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { @@ -154058,9 +157190,9 @@ func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKind false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenterFaqKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessor", + Object: "TrustCenterFAQ", Field: field, IsMethod: true, IsResolver: false, @@ -154071,13 +157203,13 @@ func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubp return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessor_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenterFAQ_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -154091,9 +157223,9 @@ func (ec *executionContext) _TrustCenterSubprocessor_blockedGroups(ctx context.C true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQ_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessor", + Object: "TrustCenterFAQ", Field: field, IsMethod: true, IsResolver: false, @@ -154108,20 +157240,20 @@ func (ec *executionContext) fieldContext_TrustCenterSubprocessor_blockedGroups(c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterSubprocessor_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterFAQ_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessor_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_editors(ctx, field) + return ec.fieldContext_TrustCenterFAQ_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -154135,9 +157267,9 @@ func (ec *executionContext) _TrustCenterSubprocessor_editors(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQ_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessor", + Object: "TrustCenterFAQ", Field: field, IsMethod: true, IsResolver: false, @@ -154152,20 +157284,20 @@ func (ec *executionContext) fieldContext_TrustCenterSubprocessor_editors(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterSubprocessor_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterFAQ_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessor_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_trustCenter(ctx, field) + return ec.fieldContext_TrustCenterFAQ_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenter(ctx) @@ -154178,9 +157310,9 @@ func (ec *executionContext) _TrustCenterSubprocessor_trustCenter(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQ_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessor", + Object: "TrustCenterFAQ", Field: field, IsMethod: true, IsResolver: false, @@ -154191,77 +157323,77 @@ func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenter(_ c return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessor_subprocessor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQ_note(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQ) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessor_subprocessor(ctx, field) + return ec.fieldContext_TrustCenterFAQ_note(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subprocessor(ctx) + return obj.Note(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { - return ec.marshalNSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Note) graphql.Marshaler { + return ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessor_subprocessor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQ_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessor", + Object: "TrustCenterFAQ", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subprocessor(ctx, field) + return ec.childFields_Note(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessorConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterFAQConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterSubprocessorEdge) graphql.Marshaler { - return ec.marshalOTrustCenterSubprocessorEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterFAQEdge) graphql.Marshaler { + return ec.marshalOTrustCenterFAQEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessorConnection", + Object: "TrustCenterFAQConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessorEdge(ctx, field) + return ec.childFields_TrustCenterFAQEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessorConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterFAQConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -154274,9 +157406,9 @@ func (ec *executionContext) _TrustCenterSubprocessorConnection_pageInfo(ctx cont true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessorConnection", + Object: "TrustCenterFAQConnection", Field: field, IsMethod: false, IsResolver: false, @@ -154287,13 +157419,13 @@ func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_pageI return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessorConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterFAQConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -154306,49 +157438,49 @@ func (ec *executionContext) _TrustCenterSubprocessorConnection_totalCount(ctx co true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessorConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterSubprocessorEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessorEdge_node(ctx, field) + return ec.fieldContext_TrustCenterFAQEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessor) graphql.Marshaler { - return ec.marshalOTrustCenterSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterFAQ) graphql.Marshaler { + return ec.marshalOTrustCenterFAQ2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterFAQ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterFAQEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterSubprocessorEdge", + Object: "TrustCenterFAQEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterSubprocessor(ctx, field) + return ec.childFields_TrustCenterFAQ(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterSubprocessorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterFAQEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterFAQEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterSubprocessorEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterFAQEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -154361,17 +157493,17 @@ func (ec *executionContext) _TrustCenterSubprocessorEdge_cursor(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_TrustCenterSubprocessorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterSubprocessorEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterFAQEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterFAQEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_id(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -154384,17 +157516,17 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_id(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_createdAt(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -154407,17 +157539,17 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_createdAt(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -154430,17 +157562,17 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_updatedAt(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_createdBy(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -154453,17 +157585,17 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_createdBy(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -154476,302 +157608,362 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_updatedBy(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_ownerID(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_trustCenterID(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_isEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_isEnabled(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_firstName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsEnabled, nil + return obj.FirstName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_isEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_logoID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_logoID(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_lastName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoID, nil + return obj.LastName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_logoID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_text(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_email(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_text(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Text, nil + return obj.Email, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_fontSize(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_companyName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_fontSize(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_companyName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FontSize, nil + return obj.CompanyName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_fontSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_companyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_opacity(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_reason(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_opacity(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_reason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Opacity, nil + return obj.Reason, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_opacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_rotation(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_accessLevel(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_rotation(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_accessLevel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Rotation, nil + return obj.AccessLevel, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterNDARequestAccessLevel) graphql.Marshaler { + return ec.marshalOTrustCenterNDARequestTrustCenterNDARequestAccessLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterNDARequestAccessLevel(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_rotation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_accessLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type TrustCenterNDARequestTrustCenterNDARequestAccessLevel does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_color(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_status(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_color(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Color, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterNDARequestStatus) graphql.Marshaler { + return ec.marshalOTrustCenterNDARequestTrustCenterNDARequestStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterNDARequestStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type TrustCenterNDARequestTrustCenterNDARequestStatus does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_font(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_approvedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_font(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_approvedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Font, nil + return obj.ApprovedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Font) graphql.Marshaler { - return ec.marshalOTrustCenterWatermarkConfigFont2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFont(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_font(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type TrustCenterWatermarkConfigFont does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_approvedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_approvedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_owner(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_approvedByUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.ApprovedByUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfig", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterNDARequest_approvedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfig_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_signedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_blockedGroups(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_signedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.SignedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfig", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) +func (ec *executionContext) fieldContext_TrustCenterNDARequest_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _TrustCenterNDARequest_documentDataID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterNDARequest_documentDataID(ctx, field) }, - } + func(ctx context.Context) (any, error) { + return obj.DocumentDataID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterNDARequest_documentDataID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterNDARequest_fileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterNDARequest_fileID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FileID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterNDARequest_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequest", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterNDARequest_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterNDARequest_blockedGroups(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_TrustCenterNDARequest_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterNDARequest", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } defer func() { if r := recover(); r != nil { err = ec.Recover(ctx, r) @@ -154779,20 +157971,20 @@ func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_blockedGroup } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterWatermarkConfig_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterNDARequest_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfig_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_editors(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -154806,9 +157998,9 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_editors(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequest_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfig", + Object: "TrustCenterNDARequest", Field: field, IsMethod: true, IsResolver: false, @@ -154823,35 +158015,35 @@ func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_editors(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_TrustCenterWatermarkConfig_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterNDARequest_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfig_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_trustCenter(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TrustCenter(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfig", + Object: "TrustCenterNDARequest", Field: field, IsMethod: true, IsResolver: false, @@ -154862,13 +158054,89 @@ func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_trustCenter( return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfig_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequest_trustCenterDocs(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfig_file(ctx, field) + return ec.fieldContext_TrustCenterNDARequest_trustCenterDocs(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.TrustCenterDocs(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.TrustCenterDocOrder), fc.Args["where"].(*generated.TrustCenterDocWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterDocConnection) graphql.Marshaler { + return ec.marshalNTrustCenterDocConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterDocConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_TrustCenterNDARequest_trustCenterDocs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterNDARequest", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TrustCenterDocConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenterNDARequest_trustCenterDocs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _TrustCenterNDARequest_document(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterNDARequest_document(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Document(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { + return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterNDARequest_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterNDARequest", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DocumentData(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _TrustCenterNDARequest_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequest) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterNDARequest_file(ctx, field) }, func(ctx context.Context) (any, error) { return obj.File(ctx) @@ -154881,9 +158149,9 @@ func (ec *executionContext) _TrustCenterWatermarkConfig_file(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequest_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfig", + Object: "TrustCenterNDARequest", Field: field, IsMethod: true, IsResolver: false, @@ -154894,45 +158162,45 @@ func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_file(_ conte return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfigConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequestConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfigConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterNDARequestConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterWatermarkConfigEdge) graphql.Marshaler { - return ec.marshalOTrustCenterWatermarkConfigEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterNDARequestEdge) graphql.Marshaler { + return ec.marshalOTrustCenterNDARequestEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequestEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfigConnection", + Object: "TrustCenterNDARequestConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfigEdge(ctx, field) + return ec.childFields_TrustCenterNDARequestEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfigConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequestConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfigConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterNDARequestConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -154945,9 +158213,9 @@ func (ec *executionContext) _TrustCenterWatermarkConfigConnection_pageInfo(ctx c true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfigConnection", + Object: "TrustCenterNDARequestConnection", Field: field, IsMethod: false, IsResolver: false, @@ -154958,13 +158226,13 @@ func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_pa return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfigConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequestConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfigConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterNDARequestConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -154977,49 +158245,49 @@ func (ec *executionContext) _TrustCenterWatermarkConfigConnection_totalCount(ctx true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfigConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequestConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequestConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _TrustCenterWatermarkConfigEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequestEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfigEdge_node(ctx, field) + return ec.fieldContext_TrustCenterNDARequestEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { - return ec.marshalOTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterNDARequest) graphql.Marshaler { + return ec.marshalOTrustCenterNDARequest2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterNDARequest(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterNDARequestEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TrustCenterWatermarkConfigEdge", + Object: "TrustCenterNDARequestEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TrustCenterWatermarkConfig(ctx, field) + return ec.childFields_TrustCenterNDARequest(ctx, field) }, } return fc, nil } -func (ec *executionContext) _TrustCenterWatermarkConfigEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterNDARequestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterNDARequestEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_TrustCenterWatermarkConfigEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterNDARequestEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -155032,17 +158300,17 @@ func (ec *executionContext) _TrustCenterWatermarkConfigEdge_cursor(ctx context.C true, ) } -func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("TrustCenterWatermarkConfigEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterNDARequestEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterNDARequestEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_id(ctx, field) + return ec.fieldContext_TrustCenterSetting_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -155055,17 +158323,17 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte true, ) } -func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_TrustCenterSetting_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -155078,17 +158346,17 @@ func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterSetting_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -155101,17 +158369,17 @@ func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_TrustCenterSetting_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -155124,17 +158392,17 @@ func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterSetting_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -155147,89 +158415,89 @@ func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_displayID(ctx, field) + return ec.fieldContext_TrustCenterSetting_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_title(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_tags(ctx, field) + return ec.fieldContext_TrustCenterSetting_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Title, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_companyName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_email(ctx, field) + return ec.fieldContext_TrustCenterSetting_companyName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.CompanyName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_companyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_companyDescription(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_firstName(ctx, field) + return ec.fieldContext_TrustCenterSetting_companyDescription(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FirstName, nil + return obj.CompanyDescription, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -155239,20 +158507,20 @@ func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.C false, ) } -func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_companyDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_overview(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_lastName(ctx, field) + return ec.fieldContext_TrustCenterSetting_overview(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastName, nil + return obj.Overview, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -155262,43 +158530,66 @@ func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_overview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_displayName(ctx, field) + return ec.fieldContext_TrustCenterSetting_logoRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.LogoRemoteURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSetting_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSetting_logoLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSetting_logoLocalFileID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.LogoLocalFileID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_logoLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_faviconRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_avatarRemoteURL(ctx, field) + return ec.fieldContext_TrustCenterSetting_faviconRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarRemoteURL, nil + return obj.FaviconRemoteURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -155308,20 +158599,20 @@ func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_faviconRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_faviconLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_avatarLocalFileID(ctx, field) + return ec.fieldContext_TrustCenterSetting_faviconLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarLocalFileID, nil + return obj.FaviconLocalFileID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -155331,89 +158622,89 @@ func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_faviconLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_heroImageLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + return ec.fieldContext_TrustCenterSetting_heroImageLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarUpdatedAt, nil + return obj.HeroImageLocalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_heroImageLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_themeMode(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_lastSeen(ctx, field) + return ec.fieldContext_TrustCenterSetting_themeMode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastSeen, nil + return obj.ThemeMode, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterThemeMode) graphql.Marshaler { + return ec.marshalOTrustCenterSettingTrustCenterThemeMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterThemeMode(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_themeMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type TrustCenterSettingTrustCenterThemeMode does not have child fields")) } -func (ec *executionContext) _User_lastLoginProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_primaryColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_lastLoginProvider(ctx, field) + return ec.fieldContext_TrustCenterSetting_primaryColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastLoginProvider, nil + return obj.PrimaryColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { - return ec.marshalOUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAuthProvider(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_lastLoginProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserAuthProvider does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_primaryColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_font(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_sub(ctx, field) + return ec.fieldContext_TrustCenterSetting_font(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Sub, nil + return obj.Font, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -155423,363 +158714,291 @@ func (ec *executionContext) _User_sub(ctx context.Context, field graphql.Collect false, ) } -func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_font(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_foregroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_authProvider(ctx, field) + return ec.fieldContext_TrustCenterSetting_foregroundColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuthProvider, nil + return obj.ForegroundColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { - return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAuthProvider(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserAuthProvider does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_foregroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_backgroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_role(ctx, field) + return ec.fieldContext_TrustCenterSetting_backgroundColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.BackgroundColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { - return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserRole does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_backgroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_scimExternalID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_accentColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_scimExternalID(ctx, field) + return ec.fieldContext_TrustCenterSetting_accentColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimExternalID, nil + return obj.AccentColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_scimExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_accentColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_scimUsername(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_secondaryBackgroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_scimUsername(ctx, field) + return ec.fieldContext_TrustCenterSetting_secondaryBackgroundColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimUsername, nil + return obj.SecondaryBackgroundColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_scimUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_secondaryBackgroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_scimActive(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_secondaryForegroundColor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_scimActive(ctx, field) + return ec.fieldContext_TrustCenterSetting_secondaryForegroundColor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimActive, nil + return obj.SecondaryForegroundColor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_scimActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_secondaryForegroundColor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_scimPreferredLanguage(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_environment(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_scimPreferredLanguage(ctx, field) + return ec.fieldContext_TrustCenterSetting_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimPreferredLanguage, nil + return obj.Environment, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterEnvironment) graphql.Marshaler { + return ec.marshalOTrustCenterSettingTrustCenterEnvironment2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterEnvironment(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_scimPreferredLanguage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type TrustCenterSettingTrustCenterEnvironment does not have child fields")) } -func (ec *executionContext) _User_scimLocale(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_removeBranding(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_scimLocale(ctx, field) + return ec.fieldContext_TrustCenterSetting_removeBranding(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimLocale, nil + return obj.RemoveBranding, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_User_scimLocale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSetting_removeBranding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_companyDomain(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_personalAccessTokens(ctx, field) + return ec.fieldContext_TrustCenterSetting_companyDomain(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) + return obj.CompanyDomain, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { - return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PersonalAccessTokenConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSetting_companyDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_securityContact(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_tfaSettings(ctx, field) + return ec.fieldContext_TrustCenterSetting_securityContact(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TfaSettings(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.TFASettingOrder), fc.Args["where"].(*generated.TFASettingWhereInput)) + return obj.SecurityContact, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { - return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_tfaSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TFASettingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSetting_securityContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_ndaApprovalRequired(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_setting(ctx, field) + return ec.fieldContext_TrustCenterSetting_ndaApprovalRequired(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Setting(ctx) + return obj.NdaApprovalRequired, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserSetting(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSetting_ndaApprovalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_statusPageURL(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_groups(ctx, field) + return ec.fieldContext_TrustCenterSetting_statusPageURL(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.StatusPageURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSetting_statusPageURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_organizations(ctx, field) + return ec.fieldContext_TrustCenterSetting_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Organizations(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.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSetting_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSetting", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -155789,41 +159008,41 @@ func (ec *executionContext) fieldContext_User_organizations(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterSetting_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _User_webauthns(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_webauthns(ctx, field) + return ec.fieldContext_TrustCenterSetting_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Webauthns(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.WebauthnOrder), fc.Args["where"].(*generated.WebauthnWhereInput)) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WebauthnConnection) graphql.Marshaler { - return ec.marshalNWebauthnConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_webauthns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSetting_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSetting", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WebauthnConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -155833,23 +159052,23 @@ func (ec *executionContext) fieldContext_User_webauthns(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_webauthns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterSetting_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _User_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_logoFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_avatarFile(ctx, field) + return ec.fieldContext_TrustCenterSetting_logoFile(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarFile(ctx) + return obj.LogoFile(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { @@ -155859,9 +159078,9 @@ func (ec *executionContext) _User_avatarFile(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_User_avatarFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSetting_logoFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSetting", Field: field, IsMethod: true, IsResolver: false, @@ -155872,474 +159091,502 @@ func (ec *executionContext) fieldContext_User_avatarFile(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_faviconFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_events(ctx, field) + return ec.fieldContext_TrustCenterSetting_faviconFile(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) + return obj.FaviconFile(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSetting_faviconFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSetting", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EventConnection(ctx, field) + return ec.childFields_File(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSetting_heroImageFile(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_actionPlans(ctx, field) + return ec.fieldContext_TrustCenterSetting_heroImageFile(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.HeroImageFile(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSetting_heroImageFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSetting", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) + return ec.childFields_File(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_campaigns(ctx, field) + return ec.fieldContext_TrustCenterSettingConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterSettingEdge) graphql.Marshaler { + return ec.marshalOTrustCenterSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSettingEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSettingConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) + return ec.childFields_TrustCenterSettingEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_campaignTargets(ctx, field) + return ec.fieldContext_TrustCenterSettingConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSettingConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetConnection(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_subcontrols(ctx, field) + return ec.fieldContext_TrustCenterSettingConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_assignerTasks(ctx, field) + return ec.fieldContext_TrustCenterSettingEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.AssignerTasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSetting) graphql.Marshaler { + return ec.marshalOTrustCenterSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSetting(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_assignerTasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSettingEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) + return ec.childFields_TrustCenterSetting(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_assignerTasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_assigneeTasks(ctx, field) + return ec.fieldContext_TrustCenterSettingEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.AssigneeTasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_assigneeTasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_assigneeTasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _User_programs(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_programs(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _User_programsOwned(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_programsOwned(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ProgramsOwned(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_programsOwned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_programsOwned_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _User_platformsOwned(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_platformsOwned(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.PlatformsOwned(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_createdBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_User_platformsOwned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_updatedBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKindName(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterSubprocessorKindName, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKindID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterSubprocessorKindID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_subprocessorID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_subprocessorID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SubprocessorID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_subprocessorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_trustCenterID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_countries(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_countries(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Countries, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_countries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessor", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _TrustCenterSubprocessor_trustCenterSubprocessorKind(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKind(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterSubprocessorKind(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenterSubprocessorKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSubprocessor", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformConnection(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_platformsOwned_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_identityHolderProfiles(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_identityHolderProfiles(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.IdentityHolderProfiles(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_identityHolderProfiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSubprocessor", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -156349,41 +159596,41 @@ func (ec *executionContext) fieldContext_User_identityHolderProfiles(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_identityHolderProfiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterSubprocessor_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_groupMemberships(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.GroupMemberships(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.GroupMembershipOrder), fc.Args["where"].(*generated.GroupMembershipWhereInput)) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { - return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSubprocessor", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupMembershipConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -156393,140 +159640,116 @@ func (ec *executionContext) fieldContext_User_groupMemberships(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_TrustCenterSubprocessor_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_orgMemberships(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.OrgMemberships(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) + return obj.TrustCenter(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { - return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_User_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSubprocessor", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgMembershipConnection(ctx, field) + return ec.childFields_TrustCenter(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _User_programMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessor_subprocessor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessor) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_TrustCenterSubprocessor_subprocessor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ProgramMemberships(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) + return obj.Subprocessor(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { - return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subprocessor) graphql.Marshaler { + return ec.marshalNSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubprocessor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_User_programMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessor_subprocessor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TrustCenterSubprocessor", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembershipConnection(ctx, field) + return ec.childFields_Subprocessor(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterSubprocessorConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.UserEdge) graphql.Marshaler { - return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterSubprocessorEdge) graphql.Marshaler { + return ec.marshalOTrustCenterSubprocessorEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessorEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserConnection", + Object: "TrustCenterSubprocessorConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserEdge(ctx, field) + return ec.childFields_TrustCenterSubprocessorEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterSubprocessorConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -156539,9 +159762,9 @@ func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserConnection", + Object: "TrustCenterSubprocessorConnection", Field: field, IsMethod: false, IsResolver: false, @@ -156552,13 +159775,13 @@ func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Conte return fc, nil } -func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterSubprocessorConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -156571,49 +159794,49 @@ func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSubprocessorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessorConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessorEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserEdge_node(ctx, field) + return ec.fieldContext_TrustCenterSubprocessorEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterSubprocessor) graphql.Marshaler { + return ec.marshalOTrustCenterSubprocessor2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterSubprocessor(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterSubprocessorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserEdge", + Object: "TrustCenterSubprocessorEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_TrustCenterSubprocessor(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterSubprocessorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterSubprocessorEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterSubprocessorEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -156626,17 +159849,17 @@ func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterSubprocessorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterSubprocessorEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_id(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_id(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -156649,17 +159872,17 @@ func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.C true, ) } -func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_createdAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -156672,17 +159895,17 @@ func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_updatedAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -156695,17 +159918,17 @@ func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_createdBy(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -156718,17 +159941,17 @@ func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_updatedBy(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -156741,389 +159964,463 @@ func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_tags(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_userID(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _UserSetting_delegateUserID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_isEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_delegateUserID(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_isEnabled(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateUserID, nil + return obj.IsEnabled, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_delegateUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_isEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _UserSetting_delegateStartAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_logoID(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_delegateStartAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_logoID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateStartAt, nil + return obj.LogoID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_delegateStartAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_logoID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _UserSetting_delegateEndAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_text(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_delegateEndAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_text(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateEndAt, nil + return obj.Text, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_delegateEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_fontSize(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_locked(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_fontSize(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Locked, nil + return obj.FontSize, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_fontSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_opacity(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_silencedAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_opacity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SilencedAt, nil + return obj.Opacity, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_opacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_rotation(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_rotation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SuspendedAt, nil + return obj.Rotation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_rotation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_color(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_status(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_color(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.Color, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type UserSettingUserStatus does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_font(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_font(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailConfirmed, nil + return obj.Font, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Font) graphql.Marshaler { + return ec.marshalOTrustCenterWatermarkConfigFont2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFont(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_font(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfig", field, false, false, errors.New("field of type TrustCenterWatermarkConfigFont does not have child fields")) } -func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsWebauthnAllowed, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterWatermarkConfig", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsTfaEnabled, nil + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterWatermarkConfig", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenterWatermarkConfig_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_editors(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_user(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.User(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TrustCenterWatermarkConfig", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_TrustCenterWatermarkConfig_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _TrustCenterWatermarkConfig_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_TrustCenterWatermarkConfig_trustCenter(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenter(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "TrustCenterWatermarkConfig", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_TrustCenter(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfig_file(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfig_file(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DefaultOrg(ctx) + return obj.File(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfig_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "TrustCenterWatermarkConfig", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_File(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfigConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSettingConnection_edges(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfigConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.UserSettingEdge) graphql.Marshaler { - return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.TrustCenterWatermarkConfigEdge) graphql.Marshaler { + return ec.marshalOTrustCenterWatermarkConfigEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingConnection", + Object: "TrustCenterWatermarkConfigConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserSettingEdge(ctx, field) + return ec.childFields_TrustCenterWatermarkConfigEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfigConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfigConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -157136,9 +160433,9 @@ func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingConnection", + Object: "TrustCenterWatermarkConfigConnection", Field: field, IsMethod: false, IsResolver: false, @@ -157149,13 +160446,13 @@ func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfigConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfigConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -157168,49 +160465,49 @@ func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfigConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfigEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSettingEdge_node(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfigEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { - return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenterWatermarkConfig) graphql.Marshaler { + return ec.marshalOTrustCenterWatermarkConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfig(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingEdge", + Object: "TrustCenterWatermarkConfigEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_UserSetting(ctx, field) + return ec.childFields_TrustCenterWatermarkConfig(ctx, field) }, } return fc, nil } -func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _TrustCenterWatermarkConfigEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TrustCenterWatermarkConfigEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_UserSettingEdge_cursor(ctx, field) + return ec.fieldContext_TrustCenterWatermarkConfigEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -157223,17 +160520,17 @@ func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("UserSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_TrustCenterWatermarkConfigEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("TrustCenterWatermarkConfigEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_id(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_id(ctx, field) + return ec.fieldContext_User_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -157246,17 +160543,17 @@ func (ec *executionContext) _VendorRiskScore_id(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_createdAt(ctx, field) + return ec.fieldContext_User_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -157269,17 +160566,17 @@ func (ec *executionContext) _VendorRiskScore_createdAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_updatedAt(ctx, field) + return ec.fieldContext_User_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -157292,17 +160589,17 @@ func (ec *executionContext) _VendorRiskScore_updatedAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_createdBy(ctx, field) + return ec.fieldContext_User_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -157315,17 +160612,17 @@ func (ec *executionContext) _VendorRiskScore_createdBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_updatedBy(ctx, field) + return ec.fieldContext_User_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -157338,66 +160635,66 @@ func (ec *executionContext) _VendorRiskScore_updatedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_tags(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_tags(ctx, field) + return ec.fieldContext_User_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_ownerID(ctx, field) + return ec.fieldContext_User_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_questionKey(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_questionKey(ctx, field) + return ec.fieldContext_User_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuestionKey, nil + return obj.Email, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -157407,846 +160704,1218 @@ func (ec *executionContext) _VendorRiskScore_questionKey(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_questionKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_questionName(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_questionName(ctx, field) + return ec.fieldContext_User_firstName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuestionName, nil + return obj.FirstName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_questionName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_questionDescription(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_questionDescription(ctx, field) + return ec.fieldContext_User_lastName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuestionDescription, nil + return obj.LastName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_questionDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_questionCategory(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_questionCategory(ctx, field) + return ec.fieldContext_User_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuestionCategory, nil + return obj.DisplayName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringCategory) graphql.Marshaler { - return ec.marshalNVendorRiskScoreVendorScoringCategory2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringCategory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_questionCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorScoringCategory does not have child fields")) +func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_answerType(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_answerType(ctx, field) + return ec.fieldContext_User_avatarRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AnswerType, nil + return obj.AvatarRemoteURL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringAnswerType) graphql.Marshaler { - return ec.marshalNVendorRiskScoreVendorScoringAnswerType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringAnswerType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_answerType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorScoringAnswerType does not have child fields")) +func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_impact(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_impact(ctx, field) + return ec.fieldContext_User_avatarLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Impact, nil + return obj.AvatarLocalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorRiskImpact) graphql.Marshaler { - return ec.marshalNVendorRiskScoreVendorRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorRiskImpact(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorRiskImpact does not have child fields")) +func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_likelihood(ctx, field) + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Likelihood, nil + return obj.AvatarUpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorRiskLikelihood) graphql.Marshaler { - return ec.marshalNVendorRiskScoreVendorRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorRiskLikelihood(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorRiskLikelihood does not have child fields")) +func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_score(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_score(ctx, field) + return ec.fieldContext_User_lastSeen(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Score, nil + return obj.LastSeen, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalNFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_User_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_answer(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_lastLoginProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_answer(ctx, field) + return ec.fieldContext_User_lastLoginProvider(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Answer, nil + return obj.LastLoginProvider, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { + return ec.marshalOUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAuthProvider(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_answer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_lastLoginProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserAuthProvider does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_notes(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_notes(ctx, field) + return ec.fieldContext_User_sub(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Notes, nil + return obj.Sub, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_vendorScoringConfigID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_vendorScoringConfigID(ctx, field) + return ec.fieldContext_User_authProvider(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VendorScoringConfigID, nil + return obj.AuthProvider, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { + return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAuthProvider(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_vendorScoringConfigID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserAuthProvider does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_entityID(ctx, field) + return ec.fieldContext_User_role(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityID, nil + return obj.Role, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { + return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type UserRole does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_assessmentResponseID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_scimExternalID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_assessmentResponseID(ctx, field) + return ec.fieldContext_User_scimExternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentResponseID, nil + return obj.ScimExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_assessmentResponseID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_scimExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_owner(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_scimUsername(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_owner(ctx, field) + return ec.fieldContext_User_scimUsername(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.ScimUsername, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskScore", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_User_scimUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VendorRiskScore_vendorScoringConfig(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_scimActive(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_vendorScoringConfig(ctx, field) + return ec.fieldContext_User_scimActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VendorScoringConfig(ctx) + return obj.ScimActive, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { - return ec.marshalOVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_vendorScoringConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskScore", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorScoringConfig(ctx, field) +func (ec *executionContext) fieldContext_User_scimActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _User_scimPreferredLanguage(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_User_scimPreferredLanguage(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ScimPreferredLanguage, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_User_scimPreferredLanguage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _User_scimLocale(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_User_scimLocale(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ScimLocale, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_User_scimLocale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_User_personalAccessTokens(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.PersonalAccessTokens(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.PersonalAccessTokenOrder), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { + return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_User_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PersonalAccessTokenConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _VendorRiskScore_entity(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_entity(ctx, field) + return ec.fieldContext_User_tfaSettings(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Entity(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.TfaSettings(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.TFASettingOrder), fc.Args["where"].(*generated.TFASettingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { + return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_tfaSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorRiskScore", + Object: "User", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Entity(ctx, field) + return ec.childFields_TFASettingConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _VendorRiskScore_assessmentResponse(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { +func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScore_assessmentResponse(ctx, field) + return ec.fieldContext_User_setting(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentResponse(ctx) + return obj.Setting(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { - return ec.marshalOAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorRiskScore_assessmentResponse(_ 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: "VendorRiskScore", + Object: "User", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssessmentResponse(ctx, field) + return ec.childFields_UserSetting(ctx, field) }, } return fc, nil } -func (ec *executionContext) _VendorRiskScoreConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScoreConnection_edges(ctx, field) + return ec.fieldContext_User_groups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + fc := graphql.GetFieldContext(ctx) + return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.VendorRiskScoreEdge) graphql.Marshaler { - return ec.marshalOVendorRiskScoreEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorRiskScoreConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorRiskScoreConnection", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScoreEdge(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _VendorRiskScoreConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScoreConnection_pageInfo(ctx, field) + return ec.fieldContext_User_organizations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + fc := graphql.GetFieldContext(ctx) + return obj.Organizations(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)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorRiskScoreConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorRiskScoreConnection", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_OrganizationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _VendorRiskScoreConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _User_webauthns(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScoreConnection_totalCount(ctx, field) + return ec.fieldContext_User_webauthns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.Webauthns(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.WebauthnOrder), fc.Args["where"].(*generated.WebauthnWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WebauthnConnection) graphql.Marshaler { + return ec.marshalNWebauthnConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorRiskScoreConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScoreConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_User_webauthns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WebauthnConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_webauthns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorRiskScoreEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _User_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScoreEdge_node(ctx, field) + return ec.fieldContext_User_avatarFile(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.AvatarFile(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScore) graphql.Marshaler { - return ec.marshalOVendorRiskScore2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScore(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorRiskScoreEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorRiskScoreEdge", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScore(ctx, field) + return ec.childFields_File(ctx, field) }, } return fc, nil } -func (ec *executionContext) _VendorRiskScoreEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorRiskScoreEdge_cursor(ctx, field) + return ec.fieldContext_User_events(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.Events(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.EventOrder), fc.Args["where"].(*generated.EventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorRiskScoreEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorRiskScoreEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_User_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EventConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_id(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_id(ctx, field) + return ec.fieldContext_User_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ActionPlanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_createdAt(ctx, field) + return ec.fieldContext_User_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Campaigns(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.CampaignOrder), fc.Args["where"].(*generated.CampaignWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_User_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_updatedAt(ctx, field) + return ec.fieldContext_User_campaignTargets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.CampaignTargets(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.CampaignTargetOrder), fc.Args["where"].(*generated.CampaignTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_User_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignTargetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_createdBy(ctx, field) + return ec.fieldContext_User_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubcontrolConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_updatedBy(ctx, field) + return ec.fieldContext_User_assignerTasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + fc := graphql.GetFieldContext(ctx) + return obj.AssignerTasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_assignerTasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_assignerTasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_tags(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_tags(ctx, field) + return ec.fieldContext_User_assigneeTasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + fc := graphql.GetFieldContext(ctx) + return obj.AssigneeTasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_User_assigneeTasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_assigneeTasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_programs(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_ownerID(ctx, field) + return ec.fieldContext_User_programs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_User_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_questions(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_programsOwned(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_questions(ctx, field) + return ec.fieldContext_User_programsOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Questions, nil + fc := graphql.GetFieldContext(ctx) + return obj.ProgramsOwned(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.VendorScoringQuestionsConfig) graphql.Marshaler { - return ec.marshalNVendorScoringQuestionsConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐVendorScoringQuestionsConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_questions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type VendorScoringQuestionsConfig does not have child fields")) +func (ec *executionContext) fieldContext_User_programsOwned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_programsOwned_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_scoringMode(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_platformsOwned(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_scoringMode(ctx, field) + return ec.fieldContext_User_platformsOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScoringMode, nil + fc := graphql.GetFieldContext(ctx) + return obj.PlatformsOwned(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.PlatformOrder), fc.Args["where"].(*generated.PlatformWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringMode) graphql.Marshaler { - return ec.marshalNVendorScoringConfigVendorScoringMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringMode(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_scoringMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type VendorScoringConfigVendorScoringMode does not have child fields")) +func (ec *executionContext) fieldContext_User_platformsOwned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PlatformConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_platformsOwned_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_riskThresholds(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_identityHolderProfiles(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_riskThresholds(ctx, field) + return ec.fieldContext_User_identityHolderProfiles(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskThresholds, nil + fc := graphql.GetFieldContext(ctx) + return obj.IdentityHolderProfiles(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.IdentityHolderOrder), fc.Args["where"].(*generated.IdentityHolderWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.RiskThresholdsConfig) graphql.Marshaler { - return ec.marshalNRiskThresholdsConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐRiskThresholdsConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_riskThresholds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type RiskThresholdsConfig does not have child fields")) +func (ec *executionContext) fieldContext_User_identityHolderProfiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolderConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_identityHolderProfiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _VendorScoringConfig_owner(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_owner(ctx, field) + return ec.fieldContext_User_groupMemberships(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.GroupMemberships(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.GroupMembershipOrder), fc.Args["where"].(*generated.GroupMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { + return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorScoringConfig", + Object: "User", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_GroupMembershipConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _VendorScoringConfig_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { +func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfig_vendorRiskScores(ctx, field) + return ec.fieldContext_User_orgMemberships(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) + return obj.OrgMemberships(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.OrgMembershipOrder), fc.Args["where"].(*generated.OrgMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { - return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { + return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfig_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "VendorScoringConfig", + Object: "User", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorRiskScoreConnection(ctx, field) + return ec.childFields_OrgMembershipConnection(ctx, field) }, } defer func() { @@ -158256,52 +161925,96 @@ func (ec *executionContext) fieldContext_VendorScoringConfig_vendorRiskScores(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_VendorScoringConfig_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_User_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _VendorScoringConfigConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _User_programMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfigConnection_edges(ctx, field) + return ec.fieldContext_User_programMemberships(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.ProgramMemberships(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.ProgramMembershipOrder), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramMembershipConnection) graphql.Marshaler { + return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_User_programMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramMembershipConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_User_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_UserConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.VendorScoringConfigEdge) graphql.Marshaler { - return ec.marshalOVendorScoringConfigEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.UserEdge) graphql.Marshaler { + return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorScoringConfigConnection_edges(_ 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: "VendorScoringConfigConnection", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorScoringConfigEdge(ctx, field) + return ec.childFields_UserEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _VendorScoringConfigConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfigConnection_pageInfo(ctx, field) + return ec.fieldContext_UserConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -158314,9 +162027,9 @@ func (ec *executionContext) _VendorScoringConfigConnection_pageInfo(ctx context. true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfigConnection_pageInfo(_ 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: "VendorScoringConfigConnection", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, @@ -158327,13 +162040,13 @@ func (ec *executionContext) fieldContext_VendorScoringConfigConnection_pageInfo( return fc, nil } -func (ec *executionContext) _VendorScoringConfigConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfigConnection_totalCount(ctx, field) + return ec.fieldContext_UserConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -158346,49 +162059,49 @@ func (ec *executionContext) _VendorScoringConfigConnection_totalCount(ctx contex true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfigConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfigConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _VendorScoringConfigEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfigEdge_node(ctx, field) + return ec.fieldContext_UserEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { - return ec.marshalOVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VendorScoringConfigEdge_node(_ 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: "VendorScoringConfigEdge", + Object: "UserEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VendorScoringConfig(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _VendorScoringConfigEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VendorScoringConfigEdge_cursor(ctx, field) + return ec.fieldContext_UserEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -158401,17 +162114,17 @@ func (ec *executionContext) _VendorScoringConfigEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_VendorScoringConfigEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VendorScoringConfigEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Vulnerability_id(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_id(ctx, field) + return ec.fieldContext_UserSetting_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -158424,17 +162137,17 @@ func (ec *executionContext) _Vulnerability_id(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_Vulnerability_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_createdAt(ctx, field) + return ec.fieldContext_UserSetting_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -158447,17 +162160,17 @@ func (ec *executionContext) _Vulnerability_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Vulnerability_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_updatedAt(ctx, field) + return ec.fieldContext_UserSetting_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -158470,17 +162183,17 @@ func (ec *executionContext) _Vulnerability_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Vulnerability_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_createdBy(ctx, field) + return ec.fieldContext_UserSetting_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -158493,17 +162206,17 @@ func (ec *executionContext) _Vulnerability_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Vulnerability_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_updatedBy(ctx, field) + return ec.fieldContext_UserSetting_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -158516,585 +162229,594 @@ func (ec *executionContext) _Vulnerability_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Vulnerability_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_displayID(ctx, field) + return ec.fieldContext_UserSetting_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_tags(ctx, field) + return ec.fieldContext_UserSetting_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.UserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_delegateUserID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_ownerID(ctx, field) + return ec.fieldContext_UserSetting_delegateUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.DelegateUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_delegateUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_delegateStartAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_systemOwned(ctx, field) + return ec.fieldContext_UserSetting_delegateStartAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.DelegateStartAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_delegateStartAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_delegateEndAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_internalNotes(ctx, field) + return ec.fieldContext_UserSetting_delegateEndAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.DelegateEndAt, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_delegateEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_systemInternalID(ctx, field) + return ec.fieldContext_UserSetting_locked(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } - - next = directive1 - return next + return obj.Locked, nil }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Vulnerability_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_environmentName(ctx, field) + return ec.fieldContext_UserSetting_silencedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.SilencedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_environmentID(ctx, field) + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.SuspendedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_scopeName(ctx, field) + return ec.fieldContext_UserSetting_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { + return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type UserSettingUserStatus does not have child fields")) } -func (ec *executionContext) _Vulnerability_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_scopeID(ctx, field) + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.EmailConfirmed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Vulnerability_vulnerabilityStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_vulnerabilityStatusName(ctx, field) + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VulnerabilityStatusName, nil + return obj.IsWebauthnAllowed, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Vulnerability_vulnerabilityStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_vulnerabilityStatusID(ctx, field) + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VulnerabilityStatusID, nil + return obj.IsTfaEnabled, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSetting", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Vulnerability_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_externalOwnerID(ctx, field) + return ec.fieldContext_UserSetting_user(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalOwnerID, nil + return obj.User(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSetting", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_securityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_securityLevel(ctx, field) + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityLevel, nil + return obj.DefaultOrg(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SecurityLevel) graphql.Marshaler { - return ec.marshalOVulnerabilitySecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type VulnerabilitySecurityLevel does not have child fields")) +func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSetting", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_externalID(ctx, field) + return ec.fieldContext_UserSettingConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.UserSettingEdge) graphql.Marshaler { + return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_UserSettingEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_cveID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_cveID(ctx, field) + return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CveID, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_cveID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_source(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_source(ctx, field) + return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSettingConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Vulnerability_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_displayName(ctx, field) + return ec.fieldContext_UserSettingEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { + return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_UserSetting(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_category(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_category(ctx, field) + return ec.fieldContext_UserSettingEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Category, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("UserSettingEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Vulnerability_severity(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_id(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_severity(ctx, field) + return ec.fieldContext_VendorRiskScore_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Severity, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_score(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_score(ctx, field) + return ec.fieldContext_VendorRiskScore_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Score, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_impact(ctx, field) + return ec.fieldContext_VendorRiskScore_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Impact, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_exploitability(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_exploitability(ctx, field) + return ec.fieldContext_VendorRiskScore_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Exploitability, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { - return ec.marshalOFloat2float64(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_exploitability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_priority(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_priority(ctx, field) + return ec.fieldContext_VendorRiskScore_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Priority, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -159104,641 +162826,704 @@ func (ec *executionContext) _Vulnerability_priority(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Vulnerability_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_tags(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_summary(ctx, field) + return ec.fieldContext_VendorRiskScore_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Summary, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_description(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_description(ctx, field) + return ec.fieldContext_VendorRiskScore_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_vector(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_questionKey(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_vector(ctx, field) + return ec.fieldContext_VendorRiskScore_questionKey(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Vector, nil + return obj.QuestionKey, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_questionKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_remediationSLA(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_questionName(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_remediationSLA(ctx, field) + return ec.fieldContext_VendorRiskScore_questionName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RemediationSLA, nil + return obj.QuestionName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalOInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_remediationSLA(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_questionName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_open(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_questionDescription(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_open(ctx, field) + return ec.fieldContext_VendorRiskScore_questionDescription(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Open, nil + return obj.QuestionDescription, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_open(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_questionDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_blocking(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_questionCategory(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_blocking(ctx, field) + return ec.fieldContext_VendorRiskScore_questionCategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Blocking, nil + return obj.QuestionCategory, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringCategory) graphql.Marshaler { + return ec.marshalNVendorRiskScoreVendorScoringCategory2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringCategory(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_blocking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_questionCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorScoringCategory does not have child fields")) } -func (ec *executionContext) _Vulnerability_production(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_answerType(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_production(ctx, field) + return ec.fieldContext_VendorRiskScore_answerType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Production, nil + return obj.AnswerType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringAnswerType) graphql.Marshaler { + return ec.marshalNVendorRiskScoreVendorScoringAnswerType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringAnswerType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_production(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_answerType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorScoringAnswerType does not have child fields")) } -func (ec *executionContext) _Vulnerability_public(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_impact(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_public(ctx, field) + return ec.fieldContext_VendorRiskScore_impact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Public, nil + return obj.Impact, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.VendorRiskImpact) graphql.Marshaler { + return ec.marshalNVendorRiskScoreVendorRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorRiskImpact(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_public(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorRiskImpact does not have child fields")) } -func (ec *executionContext) _Vulnerability_validated(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_validated(ctx, field) + return ec.fieldContext_VendorRiskScore_likelihood(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Validated, nil + return obj.Likelihood, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.VendorRiskLikelihood) graphql.Marshaler { + return ec.marshalNVendorRiskScoreVendorRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorRiskLikelihood(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_validated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type VendorRiskScoreVendorRiskLikelihood does not have child fields")) } -func (ec *executionContext) _Vulnerability_references(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_score(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_references(ctx, field) + return ec.fieldContext_VendorRiskScore_score(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.References, nil + return obj.Score, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalNFloat2float64(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _Vulnerability_impacts(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_answer(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_impacts(ctx, field) + return ec.fieldContext_VendorRiskScore_answer(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Impacts, nil + return obj.Answer, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_impacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_answer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_cweIds(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_notes(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_cweIds(ctx, field) + return ec.fieldContext_VendorRiskScore_notes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CweIds, nil + return obj.Notes, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_cweIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_vulnerableVersionRange(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_vendorScoringConfigID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_vulnerableVersionRange(ctx, field) + return ec.fieldContext_VendorRiskScore_vendorScoringConfigID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VulnerableVersionRange, nil + return obj.VendorScoringConfigID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_vulnerableVersionRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_vendorScoringConfigID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_firstPatchedVersion(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_firstPatchedVersion(ctx, field) + return ec.fieldContext_VendorRiskScore_entityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FirstPatchedVersion, nil + return obj.EntityID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_firstPatchedVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_fixAvailable(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_assessmentResponseID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_fixAvailable(ctx, field) + return ec.fieldContext_VendorRiskScore_assessmentResponseID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FixAvailable, nil + return obj.AssessmentResponseID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_fixAvailable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_assessmentResponseID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScore", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_packageName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_owner(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_packageName(ctx, field) + return ec.fieldContext_VendorRiskScore_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PackageName, nil + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_packageName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScore", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_packageEcosystem(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_vendorScoringConfig(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_packageEcosystem(ctx, field) + return ec.fieldContext_VendorRiskScore_vendorScoringConfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PackageEcosystem, nil + return obj.VendorScoringConfig(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { + return ec.marshalOVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_packageEcosystem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_vendorScoringConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScore", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorScoringConfig(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_manifestPath(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_entity(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_manifestPath(ctx, field) + return ec.fieldContext_VendorRiskScore_entity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ManifestPath, nil + return obj.Entity(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_manifestPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScore", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Entity(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_dependencyScope(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScore_assessmentResponse(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScore) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_dependencyScope(ctx, field) + return ec.fieldContext_VendorRiskScore_assessmentResponse(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DependencyScope, nil + return obj.AssessmentResponse(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponse) graphql.Marshaler { + return ec.marshalOAssessmentResponse2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssessmentResponse(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_dependencyScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScore_assessmentResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScore", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssessmentResponse(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_publishedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScoreConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_publishedAt(ctx, field) + return ec.fieldContext_VendorRiskScoreConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PublishedAt, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.VendorRiskScoreEdge) graphql.Marshaler { + return ec.marshalOVendorRiskScoreEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScoreConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScoreConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorRiskScoreEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_discoveredAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScoreConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_discoveredAt(ctx, field) + return ec.fieldContext_VendorRiskScoreConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DiscoveredAt, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_discoveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScoreConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScoreConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_sourceUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScoreConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_sourceUpdatedAt(ctx, field) + return ec.fieldContext_VendorRiskScoreConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceUpdatedAt, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_sourceUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScoreConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScoreConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Vulnerability_dismissedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScoreEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_dismissedAt(ctx, field) + return ec.fieldContext_VendorRiskScoreEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedAt, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScore) graphql.Marshaler { + return ec.marshalOVendorRiskScore2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScore(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_dismissedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScoreEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "VendorRiskScoreEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_VendorRiskScore(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Vulnerability_dismissedReason(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorRiskScoreEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VendorRiskScoreEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_dismissedReason(ctx, field) + return ec.fieldContext_VendorRiskScoreEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedReason, nil + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_dismissedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorRiskScoreEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorRiskScoreEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Vulnerability_dismissedComment(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_id(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_dismissedComment(ctx, field) + return ec.fieldContext_VendorScoringConfig_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedComment, nil + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_dismissedComment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_fixedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_fixedAt(ctx, field) + return ec.fieldContext_VendorScoringConfig_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FixedAt, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_fixedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_autoDismissedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_autoDismissedAt(ctx, field) + return ec.fieldContext_VendorScoringConfig_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AutoDismissedAt, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_autoDismissedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_externalURI(ctx, field) + return ec.fieldContext_VendorScoringConfig_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalURI, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -159748,204 +163533,208 @@ func (ec *executionContext) _Vulnerability_externalURI(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_Vulnerability_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_metadata(ctx, field) + return ec.fieldContext_VendorScoringConfig_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_tags(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_rawPayload(ctx, field) + return ec.fieldContext_VendorScoringConfig_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawPayload, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_VendorScoringConfig_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_owner(ctx, field) + return ec.fieldContext_VendorScoringConfig_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_VendorScoringConfig_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_questions(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_blockedGroups(ctx, field) + return ec.fieldContext_VendorScoringConfig_questions(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Questions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.VendorScoringQuestionsConfig) graphql.Marshaler { + return ec.marshalNVendorScoringQuestionsConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐVendorScoringQuestionsConfig(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) +func (ec *executionContext) fieldContext_VendorScoringConfig_questions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type VendorScoringQuestionsConfig does not have child fields")) +} + +func (ec *executionContext) _VendorScoringConfig_scoringMode(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_VendorScoringConfig_scoringMode(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.ScoringMode, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.VendorScoringMode) graphql.Marshaler { + return ec.marshalNVendorScoringConfigVendorScoringMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorScoringMode(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_VendorScoringConfig_scoringMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type VendorScoringConfigVendorScoringMode does not have child fields")) } -func (ec *executionContext) _Vulnerability_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_riskThresholds(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_editors(ctx, field) + return ec.fieldContext_VendorScoringConfig_riskThresholds(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.RiskThresholds, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.RiskThresholdsConfig) graphql.Marshaler { + return ec.marshalNRiskThresholdsConfig2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐRiskThresholdsConfig(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VendorScoringConfig_riskThresholds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfig", field, false, false, errors.New("field of type RiskThresholdsConfig does not have child fields")) +} + +func (ec *executionContext) _VendorScoringConfig_owner(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_VendorScoringConfig_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_VendorScoringConfig_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Vulnerability", + Object: "VendorScoringConfig", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Vulnerability_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfig_vendorRiskScores(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfig) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_viewers(ctx, field) + return ec.fieldContext_VendorScoringConfig_vendorRiskScores(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.VendorRiskScores(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.VendorRiskScoreOrder), fc.Args["where"].(*generated.VendorRiskScoreWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorRiskScoreConnection) graphql.Marshaler { + return ec.marshalNVendorRiskScoreConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VendorScoringConfig_vendorRiskScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Vulnerability", + Object: "VendorScoringConfig", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_VendorRiskScoreConnection(ctx, field) }, } defer func() { @@ -159955,990 +163744,684 @@ func (ec *executionContext) fieldContext_Vulnerability_viewers(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_VendorScoringConfig_vendorRiskScores_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Vulnerability_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfigConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_environment(ctx, field) + return ec.fieldContext_VendorScoringConfigConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.VendorScoringConfigEdge) graphql.Marshaler { + return ec.marshalOVendorScoringConfigEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Vulnerability_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VendorScoringConfigConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Vulnerability", + Object: "VendorScoringConfigConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_VendorScoringConfigEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Vulnerability_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfigConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_scope(ctx, field) + return ec.fieldContext_VendorScoringConfigConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VendorScoringConfigConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Vulnerability", + Object: "VendorScoringConfigConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Vulnerability_vulnerabilityStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfigConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_vulnerabilityStatus(ctx, field) + return ec.fieldContext_VendorScoringConfigConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VulnerabilityStatus(ctx) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_VendorScoringConfigConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfigConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Vulnerability_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfigEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_integrations(ctx, field) + return ec.fieldContext_VendorScoringConfigEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.VendorScoringConfig) graphql.Marshaler { + return ec.marshalOVendorScoringConfig2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVendorScoringConfig(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VendorScoringConfigEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Vulnerability", + Object: "VendorScoringConfigEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IntegrationConnection(ctx, field) + return ec.childFields_VendorScoringConfig(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Vulnerability_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _VendorScoringConfigEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VendorScoringConfigEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_findings(ctx, field) + return ec.fieldContext_VendorScoringConfigEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_VendorScoringConfigEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VendorScoringConfigEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Vulnerability_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_id(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_actionPlans(ctx, field) + return ec.fieldContext_Vulnerability_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_controls(ctx, field) + return ec.fieldContext_Vulnerability_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_subcontrols(ctx, field) + return ec.fieldContext_Vulnerability_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubcontrolConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Vulnerability_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_risks(ctx, field) + return ec.fieldContext_Vulnerability_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RiskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_programs(ctx, field) + return ec.fieldContext_Vulnerability_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_assets(ctx, field) + return ec.fieldContext_Vulnerability_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Vulnerability_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_AssetConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_entities(ctx, field) + return ec.fieldContext_Vulnerability_tags(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_scans(ctx, field) + return ec.fieldContext_Vulnerability_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ScanConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Vulnerability_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_tasks(ctx, field) + return ec.fieldContext_Vulnerability_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TaskConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _Vulnerability_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_remediations(ctx, field) + return ec.fieldContext_Vulnerability_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_RemediationConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_reviews(ctx, field) + return ec.fieldContext_Vulnerability_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ReviewConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_comments(ctx, field) + return ec.fieldContext_Vulnerability_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.EnvironmentName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Vulnerability_files(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Vulnerability_files(ctx, field) + return ec.fieldContext_Vulnerability_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Vulnerability_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vulnerability", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Vulnerability_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _VulnerabilityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VulnerabilityConnection_edges(ctx, field) + return ec.fieldContext_Vulnerability_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.VulnerabilityEdge) graphql.Marshaler { - return ec.marshalOVulnerabilityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VulnerabilityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VulnerabilityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_VulnerabilityEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VulnerabilityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VulnerabilityConnection_pageInfo(ctx, field) + return ec.fieldContext_Vulnerability_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VulnerabilityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VulnerabilityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _VulnerabilityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_vulnerabilityStatusName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VulnerabilityConnection_totalCount(ctx, field) + return ec.fieldContext_Vulnerability_vulnerabilityStatusName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.VulnerabilityStatusName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VulnerabilityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VulnerabilityConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _VulnerabilityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_vulnerabilityStatusID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VulnerabilityEdge_node(ctx, field) + return ec.fieldContext_Vulnerability_vulnerabilityStatusID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.VulnerabilityStatusID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Vulnerability) graphql.Marshaler { - return ec.marshalOVulnerability2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerability(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_VulnerabilityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VulnerabilityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Vulnerability(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _VulnerabilityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_VulnerabilityEdge_cursor(ctx, field) + return ec.fieldContext_Vulnerability_externalOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ExternalOwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_VulnerabilityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("VulnerabilityEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_id(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_securityLevel(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_id(ctx, field) + return ec.fieldContext_Vulnerability_securityLevel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.SecurityLevel, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SecurityLevel) graphql.Marshaler { + return ec.marshalOVulnerabilitySecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Webauthn_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type VulnerabilitySecurityLevel does not have child fields")) } -func (ec *executionContext) _Webauthn_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_createdAt(ctx, field) + return ec.fieldContext_Vulnerability_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Webauthn_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_cveID(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_updatedAt(ctx, field) + return ec.fieldContext_Vulnerability_cveID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.CveID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Webauthn_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_cveID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_source(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_createdBy(ctx, field) + return ec.fieldContext_Vulnerability_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Source, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -160948,20 +164431,20 @@ func (ec *executionContext) _Webauthn_createdBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Webauthn_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_updatedBy(ctx, field) + return ec.fieldContext_Vulnerability_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.DisplayName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -160971,424 +164454,388 @@ func (ec *executionContext) _Webauthn_updatedBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Webauthn_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_category(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_tags(ctx, field) + return ec.fieldContext_Vulnerability_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Category, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Webauthn_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_aaguid(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_severity(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_aaguid(ctx, field) + return ec.fieldContext_Vulnerability_severity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Aaguid, nil + return obj.Severity, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.AAGUID) graphql.Marshaler { - return ec.marshalNAAGUID2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAAGUID(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Webauthn_aaguid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type AAGUID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Webauthn_backupEligible(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_score(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_backupEligible(ctx, field) + return ec.fieldContext_Vulnerability_score(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BackupEligible, nil + return obj.Score, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Webauthn_backupEligible(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _Webauthn_backupState(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_backupState(ctx, field) + return ec.fieldContext_Vulnerability_impact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BackupState, nil + return obj.Impact, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Webauthn_backupState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _Webauthn_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_exploitability(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Webauthn_owner(ctx, field) + return ec.fieldContext_Vulnerability_exploitability(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.Exploitability, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Webauthn_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webauthn", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_exploitability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _WebauthnConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_priority(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WebauthnConnection_edges(ctx, field) + return ec.fieldContext_Vulnerability_priority(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.Priority, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WebauthnEdge) graphql.Marshaler { - return ec.marshalOWebauthnEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WebauthnConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebauthnConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WebauthnEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WebauthnConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_summary(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WebauthnConnection_pageInfo(ctx, field) + return ec.fieldContext_Vulnerability_summary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Summary, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WebauthnConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebauthnConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WebauthnConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_description(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WebauthnConnection_totalCount(ctx, field) + return ec.fieldContext_Vulnerability_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WebauthnConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WebauthnConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WebauthnEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_vector(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WebauthnEdge_node(ctx, field) + return ec.fieldContext_Vulnerability_vector(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Vector, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Webauthn) graphql.Marshaler { - return ec.marshalOWebauthn2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthn(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WebauthnEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebauthnEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Webauthn(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Vulnerability_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WebauthnEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_remediationSLA(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WebauthnEdge_cursor(ctx, field) + return ec.fieldContext_Vulnerability_remediationSLA(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.RemediationSLA, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WebauthnEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WebauthnEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_remediationSLA(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_open(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_id(ctx, field) + return ec.fieldContext_Vulnerability_open(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Open, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_open(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_blocking(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_createdAt(ctx, field) + return ec.fieldContext_Vulnerability_blocking(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.Blocking, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_blocking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_production(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_updatedAt(ctx, field) + return ec.fieldContext_Vulnerability_production(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Production, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_production(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_public(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_createdBy(ctx, field) + return ec.fieldContext_Vulnerability_public(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Public, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_public(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_validated(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_updatedBy(ctx, field) + return ec.fieldContext_Vulnerability_validated(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.Validated, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_validated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_references(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_displayID(ctx, field) + return ec.fieldContext_Vulnerability_references(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.References, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_impacts(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_tags(ctx, field) + return ec.fieldContext_Vulnerability_impacts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Impacts, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { @@ -161398,112 +164845,112 @@ func (ec *executionContext) _WorkflowAssignment_tags(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_impacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_cweIds(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_ownerID(ctx, field) + return ec.fieldContext_Vulnerability_cweIds(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.CweIds, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_cweIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_vulnerableVersionRange(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_workflowInstanceID(ctx, field) + return ec.fieldContext_Vulnerability_vulnerableVersionRange(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstanceID, nil + return obj.VulnerableVersionRange, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_vulnerableVersionRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_assignmentKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_firstPatchedVersion(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_assignmentKey(ctx, field) + return ec.fieldContext_Vulnerability_firstPatchedVersion(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignmentKey, nil + return obj.FirstPatchedVersion, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_assignmentKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_firstPatchedVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_role(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_fixAvailable(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_role(ctx, field) + return ec.fieldContext_Vulnerability_fixAvailable(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.FixAvailable, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_fixAvailable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_label(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_packageName(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_label(ctx, field) + return ec.fieldContext_Vulnerability_packageName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Label, nil + return obj.PackageName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -161513,227 +164960,273 @@ func (ec *executionContext) _WorkflowAssignment_label(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_packageName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_required(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_packageEcosystem(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_required(ctx, field) + return ec.fieldContext_Vulnerability_packageEcosystem(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Required, nil + return obj.PackageEcosystem, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_required(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_packageEcosystem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_status(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_manifestPath(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_status(ctx, field) + return ec.fieldContext_Vulnerability_manifestPath(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ManifestPath, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowAssignmentStatus) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentWorkflowAssignmentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowAssignmentStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentWorkflowAssignmentStatus does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_manifestPath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_dependencyScope(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_metadata(ctx, field) + return ec.fieldContext_Vulnerability_dependencyScope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.DependencyScope, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_dependencyScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_approvalMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_publishedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_approvalMetadata(ctx, field) + return ec.fieldContext_Vulnerability_publishedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovalMetadata, nil + return obj.PublishedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentApproval) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentApproval2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentApproval(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_approvalMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentApproval does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_rejectionMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_discoveredAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_rejectionMetadata(ctx, field) + return ec.fieldContext_Vulnerability_discoveredAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RejectionMetadata, nil + return obj.DiscoveredAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentRejection) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentRejection2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentRejection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_rejectionMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentRejection does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_discoveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_invalidationMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_sourceUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_invalidationMetadata(ctx, field) + return ec.fieldContext_Vulnerability_sourceUpdatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InvalidationMetadata, nil + return obj.SourceUpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentInvalidation) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentInvalidation2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentInvalidation(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_invalidationMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentInvalidation does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_sourceUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_decidedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_dismissedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_decidedAt(ctx, field) + return ec.fieldContext_Vulnerability_dismissedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DecidedAt, nil + return obj.DismissedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_decidedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_dismissedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_actorUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_dismissedReason(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_actorUserID(ctx, field) + return ec.fieldContext_Vulnerability_dismissedReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActorUserID, nil + return obj.DismissedReason, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_actorUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_dismissedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_actorGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_dismissedComment(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_actorGroupID(ctx, field) + return ec.fieldContext_Vulnerability_dismissedComment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActorGroupID, nil + return obj.DismissedComment, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_actorGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_dismissedComment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_notes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_fixedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_notes(ctx, field) + return ec.fieldContext_Vulnerability_fixedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Notes, nil + return obj.FixedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Vulnerability_fixedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _Vulnerability_autoDismissedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Vulnerability_autoDismissedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AutoDismissedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Vulnerability_autoDismissedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _Vulnerability_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Vulnerability_externalURI(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ExternalURI, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -161743,40 +165236,63 @@ func (ec *executionContext) _WorkflowAssignment_notes(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_dueAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_dueAt(ctx, field) + return ec.fieldContext_Vulnerability_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueAt, nil + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_dueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _WorkflowAssignment_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_rawPayload(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_owner(ctx, field) + return ec.fieldContext_Vulnerability_rawPayload(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.RawPayload, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Vulnerability_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Vulnerability", field, false, false, errors.New("field of type Map does not have child fields")) +} + +func (ec *executionContext) _Vulnerability_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Vulnerability_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -161789,9 +165305,9 @@ func (ec *executionContext) _WorkflowAssignment_owner(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignment", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, @@ -161802,66 +165318,78 @@ func (ec *executionContext) fieldContext_WorkflowAssignment_owner(_ context.Cont return fc, nil } -func (ec *executionContext) _WorkflowAssignment_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_workflowInstance(ctx, field) + return ec.fieldContext_Vulnerability_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstance(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignment", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignment_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_workflowAssignmentTargets(ctx, field) + return ec.fieldContext_Vulnerability_editors(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignment", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } defer func() { @@ -161871,685 +165399,852 @@ func (ec *executionContext) fieldContext_WorkflowAssignment_workflowAssignmentTa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowAssignment_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Vulnerability_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _WorkflowAssignment_user(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_user(ctx, field) + return ec.fieldContext_Vulnerability_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.User(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignment", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignment_group(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignment_group(ctx, field) + return ec.fieldContext_Vulnerability_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Group(ctx) + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignment_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignment", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentConnection_edges(ctx, field) + return ec.fieldContext_Vulnerability_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.Scope(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowAssignmentEdge) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentConnection", + Object: "Vulnerability", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentEdge(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_vulnerabilityStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentConnection_pageInfo(ctx, field) + return ec.fieldContext_Vulnerability_vulnerabilityStatus(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.VulnerabilityStatus(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_vulnerabilityStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentConnection", + Object: "Vulnerability", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) + return ec.childFields_CustomTypeEnum(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentConnection_totalCount(ctx, field) + return ec.fieldContext_Vulnerability_integrations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + fc := graphql.GetFieldContext(ctx) + return obj.Integrations(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.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IntegrationConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentEdge_node(ctx, field) + return ec.fieldContext_Vulnerability_findings(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + fc := graphql.GetFieldContext(ctx) + return obj.Findings(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.FindingOrder), fc.Args["where"].(*generated.FindingWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { - return ec.marshalOWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentEdge", + Object: "Vulnerability", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignment(ctx, field) + return ec.childFields_FindingConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentEdge_cursor(ctx, field) + return ec.fieldContext_Vulnerability_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + fc := graphql.GetFieldContext(ctx) + return obj.ActionPlans(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.ActionPlanOrder), fc.Args["where"].(*generated.ActionPlanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ActionPlanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_id(ctx, field) + return ec.fieldContext_Vulnerability_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Controls(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.ControlOrder), fc.Args["where"].(*generated.ControlWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _WorkflowAssignmentTarget_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) +func (ec *executionContext) fieldContext_Vulnerability_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, 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_Vulnerability_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_updatedAt(ctx, field) + return ec.fieldContext_Vulnerability_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.Subcontrols(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.SubcontrolOrder), fc.Args["where"].(*generated.SubcontrolWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalOTime2timeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _WorkflowAssignmentTarget_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_createdBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _WorkflowAssignmentTarget_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_updatedBy(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Vulnerability_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_SubcontrolConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, 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_Vulnerability_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_displayID(ctx, field) + return ec.fieldContext_Vulnerability_risks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Risks(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.RiskOrder), fc.Args["where"].(*generated.RiskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _WorkflowAssignmentTarget_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_tags(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Tags, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) +func (ec *executionContext) fieldContext_Vulnerability_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_RiskConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, 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_Vulnerability_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_ownerID(ctx, field) + return ec.fieldContext_Vulnerability_programs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Programs(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.ProgramOrder), fc.Args["where"].(*generated.ProgramWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_workflowAssignmentID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_workflowAssignmentID(ctx, field) + return ec.fieldContext_Vulnerability_assets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowAssignmentID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Assets(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.AssetOrder), fc.Args["where"].(*generated.AssetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_workflowAssignmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AssetConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_targetType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_targetType(ctx, field) + return ec.fieldContext_Vulnerability_entities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TargetType, nil + fc := graphql.GetFieldContext(ctx) + return obj.Entities(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.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowTargetType) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentTargetWorkflowTargetType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowTargetType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type WorkflowAssignmentTargetWorkflowTargetType does not have child fields")) -} - -func (ec *executionContext) _WorkflowAssignmentTarget_targetUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_targetUserID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TargetUserID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Vulnerability_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, 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_Vulnerability_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_targetGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_targetGroupID(ctx, field) + return ec.fieldContext_Vulnerability_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TargetGroupID, nil + fc := graphql.GetFieldContext(ctx) + return obj.Scans(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.ScanOrder), fc.Args["where"].(*generated.ScanWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { + return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ScanConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_resolverKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_resolverKey(ctx, field) + return ec.fieldContext_Vulnerability_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResolverKey, nil + fc := graphql.GetFieldContext(ctx) + return obj.Tasks(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.TaskOrder), fc.Args["where"].(*generated.TaskWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_resolverKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Vulnerability_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Vulnerability", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_TaskConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_owner(ctx, field) + return ec.fieldContext_Vulnerability_remediations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Remediations(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.RemediationOrder), fc.Args["where"].(*generated.RemediationWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTarget", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) + return ec.childFields_RemediationConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_workflowAssignment(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_workflowAssignment(ctx, field) + return ec.fieldContext_Vulnerability_reviews(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowAssignment(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Reviews(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.ReviewOrder), fc.Args["where"].(*generated.ReviewWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { - return ec.marshalNWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_workflowAssignment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTarget", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignment(ctx, field) + return ec.childFields_ReviewConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_user(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_user(ctx, field) + return ec.fieldContext_Vulnerability_comments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.User(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Comments(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.NoteOrder), fc.Args["where"].(*generated.NoteWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTarget", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_User(ctx, field) + return ec.childFields_NoteConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTarget_group(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Vulnerability_files(ctx context.Context, field graphql.CollectedField, obj *generated.Vulnerability) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTarget_group(ctx, field) + return ec.fieldContext_Vulnerability_files(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Group(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Files(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.FileOrder), fc.Args["where"].(*generated.FileWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Vulnerability_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTarget", + Object: "Vulnerability", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) + return ec.childFields_FileConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Vulnerability_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTargetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _VulnerabilityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTargetConnection_edges(ctx, field) + return ec.fieldContext_VulnerabilityConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowAssignmentTargetEdge) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentTargetEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.VulnerabilityEdge) graphql.Marshaler { + return ec.marshalOVulnerabilityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerabilityEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VulnerabilityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTargetConnection", + Object: "VulnerabilityConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTargetEdge(ctx, field) + return ec.childFields_VulnerabilityEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTargetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _VulnerabilityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTargetConnection_pageInfo(ctx, field) + return ec.fieldContext_VulnerabilityConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -162562,9 +166257,9 @@ func (ec *executionContext) _WorkflowAssignmentTargetConnection_pageInfo(ctx con true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VulnerabilityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTargetConnection", + Object: "VulnerabilityConnection", Field: field, IsMethod: false, IsResolver: false, @@ -162575,13 +166270,13 @@ func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_page return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTargetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _VulnerabilityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTargetConnection_totalCount(ctx, field) + return ec.fieldContext_VulnerabilityConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -162594,49 +166289,49 @@ func (ec *executionContext) _WorkflowAssignmentTargetConnection_totalCount(ctx c true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTargetConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_VulnerabilityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VulnerabilityConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowAssignmentTargetEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _VulnerabilityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTargetEdge_node(ctx, field) + return ec.fieldContext_VulnerabilityEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTarget) graphql.Marshaler { - return ec.marshalOWorkflowAssignmentTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Vulnerability) graphql.Marshaler { + return ec.marshalOVulnerability2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐVulnerability(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTargetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_VulnerabilityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowAssignmentTargetEdge", + Object: "VulnerabilityEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentTarget(ctx, field) + return ec.childFields_Vulnerability(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowAssignmentTargetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _VulnerabilityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.VulnerabilityEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowAssignmentTargetEdge_cursor(ctx, field) + return ec.fieldContext_VulnerabilityEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -162649,17 +166344,17 @@ func (ec *executionContext) _WorkflowAssignmentTargetEdge_cursor(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_WorkflowAssignmentTargetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowAssignmentTargetEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_VulnerabilityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("VulnerabilityEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_id(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_id(ctx, field) + return ec.fieldContext_Webauthn_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -162672,17 +166367,17 @@ func (ec *executionContext) _WorkflowDefinition_id(ctx context.Context, field gr true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_createdAt(ctx, field) + return ec.fieldContext_Webauthn_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -162695,17 +166390,17 @@ func (ec *executionContext) _WorkflowDefinition_createdAt(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_updatedAt(ctx, field) + return ec.fieldContext_Webauthn_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -162718,17 +166413,17 @@ func (ec *executionContext) _WorkflowDefinition_updatedAt(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_createdBy(ctx, field) + return ec.fieldContext_Webauthn_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -162741,17 +166436,17 @@ func (ec *executionContext) _WorkflowDefinition_createdBy(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_updatedBy(ctx, field) + return ec.fieldContext_Webauthn_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -162764,217 +166459,355 @@ func (ec *executionContext) _WorkflowDefinition_updatedBy(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_displayID(ctx, field) + return ec.fieldContext_Webauthn_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_aaguid(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_tags(ctx, field) + return ec.fieldContext_Webauthn_aaguid(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Aaguid, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.AAGUID) graphql.Marshaler { + return ec.marshalNAAGUID2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAAGUID(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_aaguid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type AAGUID does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_backupEligible(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_ownerID(ctx, field) + return ec.fieldContext_Webauthn_backupEligible(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.BackupEligible, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_backupEligible(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_backupState(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_systemOwned(ctx, field) + return ec.fieldContext_Webauthn_backupState(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.BackupState, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalOBoolean2bool(ctx, selections, v) + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Webauthn_backupState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Webauthn", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _Webauthn_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Webauthn) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_internalNotes(ctx, field) + return ec.fieldContext_Webauthn_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil + return obj.Owner(ctx) }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Webauthn_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Webauthn", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil +} - next = directive1 - return next +func (ec *executionContext) _WebauthnConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WebauthnConnection_edges(ctx, field) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WebauthnEdge) graphql.Marshaler { + return ec.marshalOWebauthnEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthnEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WebauthnConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WebauthnConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WebauthnEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _WorkflowDefinition_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WebauthnConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_systemInternalID(ctx, field) + return ec.fieldContext_WebauthnConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil + return obj.PageInfo, nil }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WebauthnConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WebauthnConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil +} - directive1 := func(ctx context.Context) (any, error) { - ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Hidden == nil { - var zeroVal *string - return zeroVal, errors.New("directive hidden is not implemented") - } - return ec.Directives.Hidden(ctx, obj, directive0, ifArg) - } +func (ec *executionContext) _WebauthnConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WebauthnConnection_totalCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TotalCount, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WebauthnConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WebauthnConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} - next = directive1 - return next +func (ec *executionContext) _WebauthnEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WebauthnEdge_node(ctx, field) }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Webauthn) graphql.Marshaler { + return ec.marshalOWebauthn2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebauthn(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WebauthnEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WebauthnEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Webauthn(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _WorkflowDefinition_name(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WebauthnEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebauthnEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_name(ctx, field) + return ec.fieldContext_WebauthnEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Cursor, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WebauthnEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WebauthnEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_id(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_description(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_description(ctx, field) + return ec.fieldContext_WorkflowAssignment_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.CreatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_createdBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -162984,43 +166817,43 @@ func (ec *executionContext) _WorkflowDefinition_description(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_workflowKind(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_workflowKind(ctx, field) + return ec.fieldContext_WorkflowAssignment_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowKind, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowKind) graphql.Marshaler { - return ec.marshalNWorkflowDefinitionWorkflowKind2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowKind(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_workflowKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type WorkflowDefinitionWorkflowKind does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_schemaType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_schemaType(ctx, field) + return ec.fieldContext_WorkflowAssignment_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SchemaType, nil + return obj.DisplayID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -163030,112 +166863,158 @@ func (ec *executionContext) _WorkflowDefinition_schemaType(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_schemaType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_revision(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_revision(ctx, field) + return ec.fieldContext_WorkflowAssignment_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_ownerID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OwnerID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_draft(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_draft(ctx, field) + return ec.fieldContext_WorkflowAssignment_workflowInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Draft, nil + return obj.WorkflowInstanceID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_draft(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_publishedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_assignmentKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_publishedAt(ctx, field) + return ec.fieldContext_WorkflowAssignment_assignmentKey(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PublishedAt, nil + return obj.AssignmentKey, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_assignmentKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_cooldownSeconds(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_role(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_cooldownSeconds(ctx, field) + return ec.fieldContext_WorkflowAssignment_role(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CooldownSeconds, nil + return obj.Role, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_cooldownSeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_isDefault(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_label(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_isDefault(ctx, field) + return ec.fieldContext_WorkflowAssignment_label(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsDefault, nil + return obj.Label, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_required(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_required(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Required, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { @@ -163145,315 +167024,332 @@ func (ec *executionContext) _WorkflowDefinition_isDefault(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_required(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_active(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_status(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_active(ctx, field) + return ec.fieldContext_WorkflowAssignment_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Active, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowAssignmentStatus) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentWorkflowAssignmentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowAssignmentStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentWorkflowAssignmentStatus does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_definitionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_definitionJSON(ctx, field) + return ec.fieldContext_WorkflowAssignment_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DefinitionJSON, nil + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowDefinitionDocument) graphql.Marshaler { - return ec.marshalOWorkflowDefinitionDocument2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowDefinitionDocument(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_definitionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type WorkflowDefinitionDocument does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_trackedFields(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_approvalMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_trackedFields(ctx, field) + return ec.fieldContext_WorkflowAssignment_approvalMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrackedFields, nil + return obj.ApprovalMetadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentApproval) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentApproval2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentApproval(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_trackedFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignment_approvalMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentApproval does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_rejectionMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_owner(ctx, field) + return ec.fieldContext_WorkflowAssignment_rejectionMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.RejectionMetadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentRejection) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentRejection2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentRejection(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowAssignment_rejectionMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentRejection does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_invalidationMetadata(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_blockedGroups(ctx, field) + return ec.fieldContext_WorkflowAssignment_invalidationMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.InvalidationMetadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowAssignmentInvalidation) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentInvalidation2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowAssignmentInvalidation(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) +func (ec *executionContext) fieldContext_WorkflowAssignment_invalidationMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type WorkflowAssignmentInvalidation does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_decidedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_decidedAt(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.DecidedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_decidedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_editors(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_actorUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_editors(ctx, field) + return ec.fieldContext_WorkflowAssignment_actorUserID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.ActorUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_actorUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_actorGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_actorGroupID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ActorGroupID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) +func (ec *executionContext) fieldContext_WorkflowAssignment_actorGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_notes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_notes(ctx, field) }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.Notes, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowDefinition_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_dueAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_viewers(ctx, field) + return ec.fieldContext_WorkflowAssignment_dueAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.DueAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignment_dueAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignment", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignment_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignment_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignment_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", + Object: "WorkflowAssignment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_Organization(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _WorkflowDefinition_tagDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_tagDefinitions(ctx, field) + return ec.fieldContext_WorkflowAssignment_workflowInstance(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) + return obj.WorkflowInstance(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { - return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_tagDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignment_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", + Object: "WorkflowAssignment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_TagDefinitionConnection(ctx, field) + return ec.childFields_WorkflowInstance(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_tagDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _WorkflowDefinition_groups(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_groups(ctx, field) + return ec.fieldContext_WorkflowAssignment_workflowAssignmentTargets(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.WorkflowAssignmentTargets(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.WorkflowAssignmentTargetOrder), fc.Args["where"].(*generated.WorkflowAssignmentTargetWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTargetConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignment_workflowAssignmentTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", + Object: "WorkflowAssignment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupConnection(ctx, field) + return ec.childFields_WorkflowAssignmentTargetConnection(ctx, field) }, } defer func() { @@ -163463,140 +167359,116 @@ func (ec *executionContext) fieldContext_WorkflowDefinition_groups(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_WorkflowAssignment_workflowAssignmentTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _WorkflowDefinition_notificationTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_user(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_notificationTemplates(ctx, field) + return ec.fieldContext_WorkflowAssignment_user(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) + return obj.User(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { - return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_notificationTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignment_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", + Object: "WorkflowAssignment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplateConnection(ctx, field) + return ec.childFields_User(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _WorkflowDefinition_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignment_group(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignment) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinition_emailTemplates(ctx, field) + return ec.fieldContext_WorkflowAssignment_group(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) + return obj.Group(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { - return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinition_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignment_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinition", + Object: "WorkflowAssignment", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateConnection(ctx, field) + return ec.childFields_Group(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowDefinition_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _WorkflowDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinitionConnection_edges(ctx, field) + return ec.fieldContext_WorkflowAssignmentConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowDefinitionEdge) graphql.Marshaler { - return ec.marshalOWorkflowDefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowAssignmentEdge) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinitionConnection", + Object: "WorkflowAssignmentConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowDefinitionEdge(ctx, field) + return ec.childFields_WorkflowAssignmentEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinitionConnection_pageInfo(ctx, field) + return ec.fieldContext_WorkflowAssignmentConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -163609,9 +167481,9 @@ func (ec *executionContext) _WorkflowDefinitionConnection_pageInfo(ctx context.C true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinitionConnection", + Object: "WorkflowAssignmentConnection", Field: field, IsMethod: false, IsResolver: false, @@ -163622,13 +167494,13 @@ func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _WorkflowDefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinitionConnection_totalCount(ctx, field) + return ec.fieldContext_WorkflowAssignmentConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -163641,49 +167513,49 @@ func (ec *executionContext) _WorkflowDefinitionConnection_totalCount(ctx context true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinitionEdge_node(ctx, field) + return ec.fieldContext_WorkflowAssignmentEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { - return ec.marshalOWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { + return ec.marshalOWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowDefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowDefinitionEdge", + Object: "WorkflowAssignmentEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowDefinition(ctx, field) + return ec.childFields_WorkflowAssignment(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowDefinitionEdge_cursor(ctx, field) + return ec.fieldContext_WorkflowAssignmentEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -163696,17 +167568,17 @@ func (ec *executionContext) _WorkflowDefinitionEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_WorkflowDefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowDefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_id(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -163719,17 +167591,17 @@ func (ec *executionContext) _WorkflowEvent_id(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_createdAt(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -163742,17 +167614,17 @@ func (ec *executionContext) _WorkflowEvent_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_updatedAt(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -163765,17 +167637,17 @@ func (ec *executionContext) _WorkflowEvent_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_createdBy(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -163788,17 +167660,17 @@ func (ec *executionContext) _WorkflowEvent_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_updatedBy(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -163811,17 +167683,17 @@ func (ec *executionContext) _WorkflowEvent_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_displayID(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -163834,17 +167706,17 @@ func (ec *executionContext) _WorkflowEvent_displayID(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_tags(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -163857,17 +167729,17 @@ func (ec *executionContext) _WorkflowEvent_tags(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_ownerID(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -163880,20 +167752,20 @@ func (ec *executionContext) _WorkflowEvent_ownerID(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_workflowAssignmentID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_workflowInstanceID(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_workflowAssignmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstanceID, nil + return obj.WorkflowAssignmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -163903,78 +167775,124 @@ func (ec *executionContext) _WorkflowEvent_workflowInstanceID(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_workflowAssignmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_targetType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_eventType(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_targetType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EventType, nil + return obj.TargetType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowEventType) graphql.Marshaler { - return ec.marshalNWorkflowEventWorkflowEventType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowEventType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowTargetType) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentTargetWorkflowTargetType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowTargetType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type WorkflowEventWorkflowEventType does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type WorkflowAssignmentTargetWorkflowTargetType does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_payload(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_targetUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_payload(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_targetUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Payload, nil + return obj.TargetUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowEventPayload) graphql.Marshaler { - return ec.marshalOWorkflowEventPayload2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowEventPayload(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_payload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type WorkflowEventPayload does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowEvent_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_targetGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_owner(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_targetGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.TargetGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_targetGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignmentTarget_resolverKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignmentTarget_resolverKey(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ResolverKey, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_resolverKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTarget", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowAssignmentTarget_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignmentTarget_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowEvent", + Object: "WorkflowAssignmentTarget", Field: field, IsMethod: true, IsResolver: false, @@ -163985,77 +167903,141 @@ func (ec *executionContext) fieldContext_WorkflowEvent_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _WorkflowEvent_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_workflowAssignment(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEvent_workflowInstance(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_workflowAssignment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstance(ctx) + return obj.WorkflowAssignment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignment) graphql.Marshaler { + return ec.marshalNWorkflowAssignment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignment(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowEvent_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_workflowAssignment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowEvent", + Object: "WorkflowAssignmentTarget", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_WorkflowAssignment(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTarget_user(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEventConnection_edges(ctx, field) + return ec.fieldContext_WorkflowAssignmentTarget_user(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.User(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowAssignmentTarget", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_User(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowAssignmentTarget_group(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignmentTarget_group(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Group(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowAssignmentTarget_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowAssignmentTarget", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowAssignmentTargetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowAssignmentTargetConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowEventEdge) graphql.Marshaler { - return ec.marshalOWorkflowEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowAssignmentTargetEdge) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentTargetEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowEventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowEventConnection", + Object: "WorkflowAssignmentTargetConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventEdge(ctx, field) + return ec.childFields_WorkflowAssignmentTargetEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTargetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEventConnection_pageInfo(ctx, field) + return ec.fieldContext_WorkflowAssignmentTargetConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -164068,9 +168050,9 @@ func (ec *executionContext) _WorkflowEventConnection_pageInfo(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_WorkflowEventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowEventConnection", + Object: "WorkflowAssignmentTargetConnection", Field: field, IsMethod: false, IsResolver: false, @@ -164081,13 +168063,13 @@ func (ec *executionContext) fieldContext_WorkflowEventConnection_pageInfo(_ cont return fc, nil } -func (ec *executionContext) _WorkflowEventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTargetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEventConnection_totalCount(ctx, field) + return ec.fieldContext_WorkflowAssignmentTargetConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -164100,49 +168082,49 @@ func (ec *executionContext) _WorkflowEventConnection_totalCount(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_WorkflowEventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEventConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTargetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTargetConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTargetEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEventEdge_node(ctx, field) + return ec.fieldContext_WorkflowAssignmentTargetEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEvent) graphql.Marshaler { - return ec.marshalOWorkflowEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEvent(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentTarget) graphql.Marshaler { + return ec.marshalOWorkflowAssignmentTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTarget(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowEventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowAssignmentTargetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowEventEdge", + Object: "WorkflowAssignmentTargetEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEvent(ctx, field) + return ec.childFields_WorkflowAssignmentTarget(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowAssignmentTargetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowAssignmentTargetEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowEventEdge_cursor(ctx, field) + return ec.fieldContext_WorkflowAssignmentTargetEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -164155,17 +168137,17 @@ func (ec *executionContext) _WorkflowEventEdge_cursor(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_WorkflowEventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowEventEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowAssignmentTargetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowAssignmentTargetEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_id(ctx, field) + return ec.fieldContext_WorkflowDefinition_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -164178,17 +168160,17 @@ func (ec *executionContext) _WorkflowInstance_id(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_createdAt(ctx, field) + return ec.fieldContext_WorkflowDefinition_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -164201,17 +168183,17 @@ func (ec *executionContext) _WorkflowInstance_createdAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_updatedAt(ctx, field) + return ec.fieldContext_WorkflowDefinition_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -164224,17 +168206,17 @@ func (ec *executionContext) _WorkflowInstance_updatedAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_createdBy(ctx, field) + return ec.fieldContext_WorkflowDefinition_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -164247,17 +168229,17 @@ func (ec *executionContext) _WorkflowInstance_createdBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_updatedBy(ctx, field) + return ec.fieldContext_WorkflowDefinition_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -164270,17 +168252,17 @@ func (ec *executionContext) _WorkflowInstance_updatedBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_displayID(ctx, field) + return ec.fieldContext_WorkflowDefinition_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -164293,17 +168275,17 @@ func (ec *executionContext) _WorkflowInstance_displayID(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_tags(ctx, field) + return ec.fieldContext_WorkflowDefinition_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -164316,17 +168298,17 @@ func (ec *executionContext) _WorkflowInstance_tags(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_ownerID(ctx, field) + return ec.fieldContext_WorkflowDefinition_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -164339,408 +168321,398 @@ func (ec *executionContext) _WorkflowInstance_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowDefinitionID(ctx, field) + return ec.fieldContext_WorkflowDefinition_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowDefinitionID, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_workflowProposalID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowProposalID(ctx, field) + return ec.fieldContext_WorkflowDefinition_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowProposalID, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next + + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowProposalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_state(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_state(ctx, field) + return ec.fieldContext_WorkflowDefinition_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowInstanceState) graphql.Marshaler { - return ec.marshalNWorkflowInstanceWorkflowInstanceState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowInstanceState(ctx, selections, v) + return obj.SystemInternalID, nil }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_WorkflowInstance_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowInstanceWorkflowInstanceState does not have child fields")) -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _WorkflowInstance_context(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_context(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Context, nil + directive1 := func(ctx context.Context) (any, error) { + ifArg, err := ec.unmarshalOBoolean2ᚖbool(ctx, true) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.Directives.Hidden == nil { + var zeroVal *string + return zeroVal, errors.New("directive hidden is not implemented") + } + return ec.Directives.Hidden(ctx, obj, directive0, ifArg) + } + + next = directive1 + return next }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowInstanceContext) graphql.Marshaler { - return ec.marshalOWorkflowInstanceContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowInstanceContext(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowInstanceContext does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_lastEvaluatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_name(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_lastEvaluatedAt(ctx, field) + return ec.fieldContext_WorkflowDefinition_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastEvaluatedAt, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_lastEvaluatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_definitionSnapshot(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_description(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_definitionSnapshot(ctx, field) + return ec.fieldContext_WorkflowDefinition_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DefinitionSnapshot, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowDefinitionDocument) graphql.Marshaler { - return ec.marshalOWorkflowDefinitionDocument2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowDefinitionDocument(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_definitionSnapshot(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowDefinitionDocument does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_currentActionIndex(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_workflowKind(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_currentActionIndex(ctx, field) + return ec.fieldContext_WorkflowDefinition_workflowKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CurrentActionIndex, nil + return obj.WorkflowKind, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowKind) graphql.Marshaler { + return ec.marshalNWorkflowDefinitionWorkflowKind2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowKind(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_currentActionIndex(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_workflowKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type WorkflowDefinitionWorkflowKind does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_schemaType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_controlID(ctx, field) + return ec.fieldContext_WorkflowDefinition_schemaType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlID, nil + return obj.SchemaType, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + return ec.marshalNString2string(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_WorkflowInstance_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _WorkflowInstance_internalPolicyID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_internalPolicyID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.InternalPolicyID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_internalPolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_schemaType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_evidenceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_revision(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_evidenceID(ctx, field) + return ec.fieldContext_WorkflowDefinition_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EvidenceID, nil + return obj.Revision, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_evidenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_subcontrolID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_draft(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_subcontrolID(ctx, field) + return ec.fieldContext_WorkflowDefinition_draft(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubcontrolID, nil + return obj.Draft, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_subcontrolID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_draft(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_actionPlanID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_publishedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_actionPlanID(ctx, field) + return ec.fieldContext_WorkflowDefinition_publishedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlanID, nil + return obj.PublishedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_actionPlanID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_procedureID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_cooldownSeconds(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_procedureID(ctx, field) + return ec.fieldContext_WorkflowDefinition_cooldownSeconds(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProcedureID, nil + return obj.CooldownSeconds, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_procedureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_cooldownSeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_isDefault(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_campaignID(ctx, field) + return ec.fieldContext_WorkflowDefinition_isDefault(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignID, nil + return obj.IsDefault, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_campaignTargetID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_active(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_campaignTargetID(ctx, field) + return ec.fieldContext_WorkflowDefinition_active(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignTargetID, nil + return obj.Active, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_campaignTargetID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_definitionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_identityHolderID(ctx, field) + return ec.fieldContext_WorkflowDefinition_definitionJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolderID, nil + return obj.DefinitionJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowDefinitionDocument) graphql.Marshaler { + return ec.marshalOWorkflowDefinitionDocument2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowDefinitionDocument(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_definitionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type WorkflowDefinitionDocument does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_trackedFields(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_platformID(ctx, field) + return ec.fieldContext_WorkflowDefinition_trackedFields(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformID, nil + return obj.TrackedFields, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowDefinition_trackedFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinition", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_owner(ctx, field) + return ec.fieldContext_WorkflowDefinition_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -164753,9 +168725,9 @@ func (ec *executionContext) _WorkflowInstance_owner(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, @@ -164766,605 +168738,812 @@ func (ec *executionContext) fieldContext_WorkflowInstance_owner(_ context.Contex return fc, nil } -func (ec *executionContext) _WorkflowInstance_workflowDefinition(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowDefinition(ctx, field) + return ec.fieldContext_WorkflowDefinition_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowDefinition(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.BlockedGroups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { - return ec.marshalNWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowDefinition(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_control(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_editors(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_control(ctx, field) + return ec.fieldContext_WorkflowDefinition_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Control(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Editors(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { - return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Control(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_internalPolicy(ctx, field) + return ec.fieldContext_WorkflowDefinition_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalPolicy(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Viewers(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { - return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicy(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_tagDefinitions(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_evidence(ctx, field) + return ec.fieldContext_WorkflowDefinition_tagDefinitions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Evidence(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.TagDefinitions(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.TagDefinitionOrder), fc.Args["where"].(*generated.TagDefinitionWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { - return ec.marshalOEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TagDefinitionConnection) graphql.Marshaler { + return ec.marshalNTagDefinitionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTagDefinitionConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_tagDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Evidence(ctx, field) + return ec.childFields_TagDefinitionConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_tagDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_groups(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_subcontrol(ctx, field) + return ec.fieldContext_WorkflowDefinition_groups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subcontrol(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Groups(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.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { - return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subcontrol(ctx, field) + return ec.childFields_GroupConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_actionPlan(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_notificationTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_actionPlan(ctx, field) + return ec.fieldContext_WorkflowDefinition_notificationTemplates(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlan(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.NotificationTemplates(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.NotificationTemplateOrder), fc.Args["where"].(*generated.NotificationTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { - return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NotificationTemplateConnection) graphql.Marshaler { + return ec.marshalNNotificationTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNotificationTemplateConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_notificationTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlan(ctx, field) + return ec.childFields_NotificationTemplateConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_notificationTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinition_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinition) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_procedure(ctx, field) + return ec.fieldContext_WorkflowDefinition_emailTemplates(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Procedure(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { - return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { + return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinition_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinition", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Procedure(ctx, field) + return ec.childFields_EmailTemplateConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowDefinition_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowInstance_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_campaign(ctx, field) + return ec.fieldContext_WorkflowDefinitionConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Campaign(ctx) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowDefinitionEdge) graphql.Marshaler { + return ec.marshalOWorkflowDefinitionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinitionConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Campaign(ctx, field) + return ec.childFields_WorkflowDefinitionEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowInstance_campaignTarget(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_campaignTarget(ctx, field) + return ec.fieldContext_WorkflowDefinitionConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignTarget(ctx) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { - return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_campaignTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinitionConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTarget(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowInstance_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinitionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_identityHolder(ctx, field) + return ec.fieldContext_WorkflowDefinitionConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolder(ctx) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { - return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolder(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowDefinitionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinitionConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_platform(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_platform(ctx, field) + return ec.fieldContext_WorkflowDefinitionEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Platform(ctx) + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { + return ec.marshalOWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowDefinitionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstance", + Object: "WorkflowDefinitionEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) + return ec.childFields_WorkflowDefinition(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowInstance_workflowAssignments(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowDefinitionEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowAssignments(ctx, field) + return ec.fieldContext_WorkflowDefinitionEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) + return obj.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { - return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowAssignmentConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowInstance_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowDefinitionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowDefinitionEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_workflowEvents(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEvent_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowEvents(ctx, field) + return ec.fieldContext_WorkflowEvent_id(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowEventConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowInstance_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_emailTemplates(ctx, field) + return ec.fieldContext_WorkflowEvent_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { - return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowInstance_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEvent_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_workflowObjectRefs(ctx, field) + return ec.fieldContext_WorkflowEvent_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_WorkflowInstance_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowEvent_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowInstance_proposalPreview(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEvent_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstance_proposalPreview(ctx, field) + return ec.fieldContext_WorkflowEvent_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.WorkflowInstance().ProposalPreview(ctx, obj) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowProposalPreview) graphql.Marshaler { - return ec.marshalOWorkflowProposalPreview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowProposalPreview(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstance_proposalPreview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WorkflowInstance", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowProposalPreview(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_WorkflowEvent_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowInstanceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEvent_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstanceConnection_edges(ctx, field) + return ec.fieldContext_WorkflowEvent_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstanceEdge) graphql.Marshaler { - return ec.marshalOWorkflowInstanceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstanceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowEvent_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_displayID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DisplayID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_ownerID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OwnerID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_workflowInstanceID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.WorkflowInstanceID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_eventType(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EventType, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowEventType) graphql.Marshaler { + return ec.marshalNWorkflowEventWorkflowEventType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowEventType(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type WorkflowEventWorkflowEventType does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_payload(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_payload(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Payload, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowEventPayload) graphql.Marshaler { + return ec.marshalOWorkflowEventPayload2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowEventPayload(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_payload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEvent", field, false, false, errors.New("field of type WorkflowEventPayload does not have child fields")) +} + +func (ec *executionContext) _WorkflowEvent_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstanceConnection", + Object: "WorkflowEvent", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowEvent_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEvent) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEvent_workflowInstance(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.WorkflowInstance(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowEvent_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowEvent", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowEventConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowEventEdge) graphql.Marshaler { + return ec.marshalOWorkflowEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowEventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowEventConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstanceEdge(ctx, field) + return ec.childFields_WorkflowEventEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowInstanceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstanceConnection_pageInfo(ctx, field) + return ec.fieldContext_WorkflowEventConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -165377,9 +169556,9 @@ func (ec *executionContext) _WorkflowInstanceConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_WorkflowInstanceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowEventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstanceConnection", + Object: "WorkflowEventConnection", Field: field, IsMethod: false, IsResolver: false, @@ -165390,13 +169569,13 @@ func (ec *executionContext) fieldContext_WorkflowInstanceConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _WorkflowInstanceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstanceConnection_totalCount(ctx, field) + return ec.fieldContext_WorkflowEventConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -165409,49 +169588,49 @@ func (ec *executionContext) _WorkflowInstanceConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_WorkflowInstanceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstanceConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowEventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEventConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowInstanceEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstanceEdge_node(ctx, field) + return ec.fieldContext_WorkflowEventEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalOWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEvent) graphql.Marshaler { + return ec.marshalOWorkflowEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEvent(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowInstanceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowEventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowInstanceEdge", + Object: "WorkflowEventEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_WorkflowEvent(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowInstanceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowEventEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowInstanceEdge_cursor(ctx, field) + return ec.fieldContext_WorkflowEventEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -165464,17 +169643,17 @@ func (ec *executionContext) _WorkflowInstanceEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_WorkflowInstanceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowInstanceEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowEventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowEventEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_id(ctx, field) + return ec.fieldContext_WorkflowInstance_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -165487,17 +169666,17 @@ func (ec *executionContext) _WorkflowObjectRef_id(ctx context.Context, field gra true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_createdAt(ctx, field) + return ec.fieldContext_WorkflowInstance_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -165510,17 +169689,17 @@ func (ec *executionContext) _WorkflowObjectRef_createdAt(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_updatedAt(ctx, field) + return ec.fieldContext_WorkflowInstance_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -165533,17 +169712,17 @@ func (ec *executionContext) _WorkflowObjectRef_updatedAt(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_createdBy(ctx, field) + return ec.fieldContext_WorkflowInstance_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -165556,17 +169735,17 @@ func (ec *executionContext) _WorkflowObjectRef_createdBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_updatedBy(ctx, field) + return ec.fieldContext_WorkflowInstance_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -165579,17 +169758,17 @@ func (ec *executionContext) _WorkflowObjectRef_updatedBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_displayID(ctx, field) + return ec.fieldContext_WorkflowInstance_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -165602,17 +169781,40 @@ func (ec *executionContext) _WorkflowObjectRef_displayID(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_ownerID(ctx, field) + return ec.fieldContext_WorkflowInstance_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowInstance_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowInstance_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowInstance_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -165625,20 +169827,20 @@ func (ec *executionContext) _WorkflowObjectRef_ownerID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_workflowInstanceID(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowDefinitionID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstanceID, nil + return obj.WorkflowDefinitionID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -165648,20 +169850,20 @@ func (ec *executionContext) _WorkflowObjectRef_workflowInstanceID(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowProposalID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_controlID(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowProposalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlID, nil + return obj.WorkflowProposalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -165671,112 +169873,135 @@ func (ec *executionContext) _WorkflowObjectRef_controlID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_workflowProposalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_taskID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_state(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_taskID(ctx, field) + return ec.fieldContext_WorkflowInstance_state(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaskID, nil + return obj.State, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowInstanceState) graphql.Marshaler { + return ec.marshalNWorkflowInstanceWorkflowInstanceState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowInstanceState(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_taskID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowInstanceWorkflowInstanceState does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_internalPolicyID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_context(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_internalPolicyID(ctx, field) + return ec.fieldContext_WorkflowInstance_context(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalPolicyID, nil + return obj.Context, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowInstanceContext) graphql.Marshaler { + return ec.marshalOWorkflowInstanceContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowInstanceContext(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_internalPolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowInstanceContext does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_findingID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_lastEvaluatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_findingID(ctx, field) + return ec.fieldContext_WorkflowInstance_lastEvaluatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FindingID, nil + return obj.LastEvaluatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_findingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_lastEvaluatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_directoryAccountID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_definitionSnapshot(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryAccountID(ctx, field) + return ec.fieldContext_WorkflowInstance_definitionSnapshot(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryAccountID, nil + return obj.DefinitionSnapshot, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v models.WorkflowDefinitionDocument) graphql.Marshaler { + return ec.marshalOWorkflowDefinitionDocument2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐWorkflowDefinitionDocument(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryAccountID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_definitionSnapshot(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type WorkflowDefinitionDocument does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_directoryGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_currentActionIndex(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryGroupID(ctx, field) + return ec.fieldContext_WorkflowInstance_currentActionIndex(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryGroupID, nil + return obj.CurrentActionIndex, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowInstance_currentActionIndex(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _WorkflowInstance_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowInstance_controlID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ControlID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -165786,20 +170011,20 @@ func (ec *executionContext) _WorkflowObjectRef_directoryGroupID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_directoryMembershipID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_internalPolicyID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryMembershipID(ctx, field) + return ec.fieldContext_WorkflowInstance_internalPolicyID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryMembershipID, nil + return obj.InternalPolicyID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -165809,17 +170034,17 @@ func (ec *executionContext) _WorkflowObjectRef_directoryMembershipID(ctx context false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryMembershipID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_internalPolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_evidenceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_evidenceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_evidenceID(ctx, field) + return ec.fieldContext_WorkflowInstance_evidenceID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EvidenceID, nil @@ -165832,17 +170057,17 @@ func (ec *executionContext) _WorkflowObjectRef_evidenceID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_evidenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_evidenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_subcontrolID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_subcontrolID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_subcontrolID(ctx, field) + return ec.fieldContext_WorkflowInstance_subcontrolID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SubcontrolID, nil @@ -165855,17 +170080,17 @@ func (ec *executionContext) _WorkflowObjectRef_subcontrolID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_subcontrolID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_subcontrolID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_actionPlanID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_actionPlanID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_actionPlanID(ctx, field) + return ec.fieldContext_WorkflowInstance_actionPlanID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ActionPlanID, nil @@ -165878,17 +170103,17 @@ func (ec *executionContext) _WorkflowObjectRef_actionPlanID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_actionPlanID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_actionPlanID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_procedureID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_procedureID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_procedureID(ctx, field) + return ec.fieldContext_WorkflowInstance_procedureID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ProcedureID, nil @@ -165901,17 +170126,17 @@ func (ec *executionContext) _WorkflowObjectRef_procedureID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_procedureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_procedureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_campaignID(ctx, field) + return ec.fieldContext_WorkflowInstance_campaignID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CampaignID, nil @@ -165924,17 +170149,17 @@ func (ec *executionContext) _WorkflowObjectRef_campaignID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_campaignTargetID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_campaignTargetID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_campaignTargetID(ctx, field) + return ec.fieldContext_WorkflowInstance_campaignTargetID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CampaignTargetID, nil @@ -165947,17 +170172,17 @@ func (ec *executionContext) _WorkflowObjectRef_campaignTargetID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignTargetID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_campaignTargetID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_identityHolderID(ctx, field) + return ec.fieldContext_WorkflowInstance_identityHolderID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.IdentityHolderID, nil @@ -165970,17 +170195,17 @@ func (ec *executionContext) _WorkflowObjectRef_identityHolderID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_platformID(ctx, field) + return ec.fieldContext_WorkflowInstance_platformID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PlatformID, nil @@ -165993,17 +170218,17 @@ func (ec *executionContext) _WorkflowObjectRef_platformID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstance_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstance", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRef_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_owner(ctx, field) + return ec.fieldContext_WorkflowInstance_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -166016,9 +170241,9 @@ func (ec *executionContext) _WorkflowObjectRef_owner(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, @@ -166029,45 +170254,45 @@ func (ec *executionContext) fieldContext_WorkflowObjectRef_owner(_ context.Conte return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowDefinition(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_workflowInstance(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowDefinition(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstance(ctx) + return obj.WorkflowDefinition(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowDefinition) graphql.Marshaler { + return ec.marshalNWorkflowDefinition2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowDefinition(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_workflowDefinition(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) + return ec.childFields_WorkflowDefinition(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_control(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_control(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_control(ctx, field) + return ec.fieldContext_WorkflowInstance_control(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Control(ctx) @@ -166080,9 +170305,9 @@ func (ec *executionContext) _WorkflowObjectRef_control(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, @@ -166093,493 +170318,541 @@ func (ec *executionContext) fieldContext_WorkflowObjectRef_control(_ context.Con return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_task(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_task(ctx, field) + return ec.fieldContext_WorkflowInstance_internalPolicy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Task(ctx) + return obj.InternalPolicy(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { - return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { + return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Task(ctx, field) + return ec.childFields_InternalPolicy(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_internalPolicy(ctx, field) + return ec.fieldContext_WorkflowInstance_evidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalPolicy(ctx) + return obj.Evidence(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { - return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { + return ec.marshalOEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicy(ctx, field) + return ec.childFields_Evidence(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_finding(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_finding(ctx, field) + return ec.fieldContext_WorkflowInstance_subcontrol(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Finding(ctx) + return obj.Subcontrol(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Finding) graphql.Marshaler { - return ec.marshalOFinding2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFinding(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { + return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_finding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Finding(ctx, field) + return ec.childFields_Subcontrol(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_directoryAccount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_actionPlan(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryAccount(ctx, field) + return ec.fieldContext_WorkflowInstance_actionPlan(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryAccount(ctx) + return obj.ActionPlan(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { - return ec.marshalODirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { + return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryAccount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccount(ctx, field) + return ec.childFields_ActionPlan(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_directoryGroup(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryGroup(ctx, field) + return ec.fieldContext_WorkflowInstance_procedure(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryGroup(ctx) + return obj.Procedure(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { - return ec.marshalODirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { + return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroup(ctx, field) + return ec.childFields_Procedure(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_directoryMembership(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_directoryMembership(ctx, field) + return ec.fieldContext_WorkflowInstance_campaign(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryMembership(ctx) + return obj.Campaign(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { - return ec.marshalODirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembership(ctx, field) + return ec.childFields_Campaign(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_campaignTarget(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_evidence(ctx, field) + return ec.fieldContext_WorkflowInstance_campaignTarget(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Evidence(ctx) + return obj.CampaignTarget(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { - return ec.marshalOEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { + return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_campaignTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Evidence(ctx, field) + return ec.childFields_CampaignTarget(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_subcontrol(ctx, field) + return ec.fieldContext_WorkflowInstance_identityHolder(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subcontrol(ctx) + return obj.IdentityHolder(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { - return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { + return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subcontrol(ctx, field) + return ec.childFields_IdentityHolder(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_actionPlan(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_platform(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_actionPlan(ctx, field) + return ec.fieldContext_WorkflowInstance_platform(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ActionPlan(ctx) + return obj.Platform(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { - return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ActionPlan(ctx, field) + return ec.childFields_Platform(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowAssignments(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_procedure(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowAssignments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Procedure(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowAssignments(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.WorkflowAssignmentOrder), fc.Args["where"].(*generated.WorkflowAssignmentWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { - return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowAssignmentConnection) graphql.Marshaler { + return ec.marshalNWorkflowAssignmentConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_workflowAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Procedure(ctx, field) + return ec.childFields_WorkflowAssignmentConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowInstance_workflowAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowEvents(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_campaign(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowEvents(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Campaign(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowEvents(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.WorkflowEventOrder), fc.Args["where"].(*generated.WorkflowEventWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_workflowEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Campaign(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowInstance_workflowEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_campaignTarget(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_emailTemplates(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_campaignTarget(ctx, field) + return ec.fieldContext_WorkflowInstance_emailTemplates(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignTarget(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.EmailTemplates(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.EmailTemplateOrder), fc.Args["where"].(*generated.EmailTemplateWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { - return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplateConnection) graphql.Marshaler { + return ec.marshalNEmailTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEmailTemplateConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_emailTemplates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTarget(ctx, field) + return ec.childFields_EmailTemplateConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowInstance_emailTemplates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_identityHolder(ctx, field) + return ec.fieldContext_WorkflowInstance_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolder(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.WorkflowObjectRefs(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.WorkflowObjectRefOrder), fc.Args["where"].(*generated.WorkflowObjectRefWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { - return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolder(ctx, field) + return ec.childFields_WorkflowObjectRefConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_WorkflowInstance_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _WorkflowObjectRef_platform(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstance_proposalPreview(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstance) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRef_platform(ctx, field) + return ec.fieldContext_WorkflowInstance_proposalPreview(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Platform(ctx) + return ec.Resolvers.WorkflowInstance().ProposalPreview(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowProposalPreview) graphql.Marshaler { + return ec.marshalOWorkflowProposalPreview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowProposalPreview(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRef_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstance_proposalPreview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRef", + Object: "WorkflowInstance", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Platform(ctx, field) + return ec.childFields_WorkflowProposalPreview(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRefConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstanceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRefConnection_edges(ctx, field) + return ec.fieldContext_WorkflowInstanceConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowObjectRefEdge) graphql.Marshaler { - return ec.marshalOWorkflowObjectRefEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstanceEdge) graphql.Marshaler { + return ec.marshalOWorkflowInstanceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstanceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRefConnection", + Object: "WorkflowInstanceConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefEdge(ctx, field) + return ec.childFields_WorkflowInstanceEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRefConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstanceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRefConnection_pageInfo(ctx, field) + return ec.fieldContext_WorkflowInstanceConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -166592,9 +170865,9 @@ func (ec *executionContext) _WorkflowObjectRefConnection_pageInfo(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstanceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRefConnection", + Object: "WorkflowInstanceConnection", Field: field, IsMethod: false, IsResolver: false, @@ -166605,13 +170878,13 @@ func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _WorkflowObjectRefConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstanceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRefConnection_totalCount(ctx, field) + return ec.fieldContext_WorkflowInstanceConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -166624,49 +170897,49 @@ func (ec *executionContext) _WorkflowObjectRefConnection_totalCount(ctx context. true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRefConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstanceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstanceConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _WorkflowObjectRefEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstanceEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRefEdge_node(ctx, field) + return ec.fieldContext_WorkflowInstanceEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRef) graphql.Marshaler { - return ec.marshalOWorkflowObjectRef2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRef(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalOWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRefEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowInstanceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowObjectRefEdge", + Object: "WorkflowInstanceEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRef(ctx, field) + return ec.childFields_WorkflowInstance(ctx, field) }, } return fc, nil } -func (ec *executionContext) _WorkflowObjectRefEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowInstanceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowInstanceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowObjectRefEdge_cursor(ctx, field) + return ec.fieldContext_WorkflowInstanceEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -166679,17 +170952,17 @@ func (ec *executionContext) _WorkflowObjectRefEdge_cursor(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_WorkflowObjectRefEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowObjectRefEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowInstanceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowInstanceEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_id(ctx, field) + return ec.fieldContext_WorkflowObjectRef_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -166702,17 +170975,17 @@ func (ec *executionContext) _WorkflowProposal_id(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_createdAt(ctx, field) + return ec.fieldContext_WorkflowObjectRef_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -166725,17 +170998,17 @@ func (ec *executionContext) _WorkflowProposal_createdAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_updatedAt(ctx, field) + return ec.fieldContext_WorkflowObjectRef_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -166748,17 +171021,17 @@ func (ec *executionContext) _WorkflowProposal_updatedAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_createdBy(ctx, field) + return ec.fieldContext_WorkflowObjectRef_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -166771,17 +171044,17 @@ func (ec *executionContext) _WorkflowProposal_createdBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_updatedBy(ctx, field) + return ec.fieldContext_WorkflowObjectRef_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -166794,40 +171067,40 @@ func (ec *executionContext) _WorkflowProposal_updatedBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_tags(ctx, field) + return ec.fieldContext_WorkflowObjectRef_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_ownerID(ctx, field) + return ec.fieldContext_WorkflowObjectRef_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -166840,20 +171113,20 @@ func (ec *executionContext) _WorkflowProposal_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_workflowObjectRefID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_workflowObjectRefID(ctx, field) + return ec.fieldContext_WorkflowObjectRef_workflowInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowObjectRefID, nil + return obj.WorkflowInstanceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -166863,181 +171136,181 @@ func (ec *executionContext) _WorkflowProposal_workflowObjectRefID(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_workflowObjectRefID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_domainKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_controlID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_domainKey(ctx, field) + return ec.fieldContext_WorkflowObjectRef_controlID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DomainKey, nil + return obj.ControlID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_domainKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_state(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_taskID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_state(ctx, field) + return ec.fieldContext_WorkflowObjectRef_taskID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.State, nil + return obj.TaskID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowProposalState) graphql.Marshaler { - return ec.marshalNWorkflowProposalWorkflowProposalState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowProposalState(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type WorkflowProposalWorkflowProposalState does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_taskID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_revision(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_internalPolicyID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_revision(ctx, field) + return ec.fieldContext_WorkflowObjectRef_internalPolicyID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.InternalPolicyID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_internalPolicyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_changes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_findingID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_changes(ctx, field) + return ec.fieldContext_WorkflowObjectRef_findingID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Changes, nil + return obj.FindingID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_findingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_proposedHash(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_directoryAccountID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_proposedHash(ctx, field) + return ec.fieldContext_WorkflowObjectRef_directoryAccountID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProposedHash, nil + return obj.DirectoryAccountID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_proposedHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryAccountID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_approvedHash(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_directoryGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_approvedHash(ctx, field) + return ec.fieldContext_WorkflowObjectRef_directoryGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovedHash, nil + return obj.DirectoryGroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_approvedHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_submittedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_directoryMembershipID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_submittedAt(ctx, field) + return ec.fieldContext_WorkflowObjectRef_directoryMembershipID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubmittedAt, nil + return obj.DirectoryMembershipID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_submittedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryMembershipID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_submittedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_evidenceID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_submittedByUserID(ctx, field) + return ec.fieldContext_WorkflowObjectRef_evidenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubmittedByUserID, nil + return obj.EvidenceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -167047,17 +171320,178 @@ func (ec *executionContext) _WorkflowProposal_submittedByUserID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_submittedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_WorkflowObjectRef_evidenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _WorkflowProposal_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_subcontrolID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_owner(ctx, field) + return ec.fieldContext_WorkflowObjectRef_subcontrolID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SubcontrolID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_subcontrolID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_actionPlanID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_actionPlanID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ActionPlanID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_actionPlanID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_procedureID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_procedureID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ProcedureID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_procedureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_campaignID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CampaignID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_campaignTargetID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_campaignTargetID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CampaignTargetID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignTargetID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_identityHolderID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IdentityHolderID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_platformID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PlatformID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRef", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRef_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -167070,9 +171504,9 @@ func (ec *executionContext) _WorkflowProposal_owner(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowObjectRef_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowProposal", + Object: "WorkflowObjectRef", Field: field, IsMethod: true, IsResolver: false, @@ -167083,755 +171517,1809 @@ func (ec *executionContext) fieldContext_WorkflowProposal_owner(_ context.Contex return fc, nil } -func (ec *executionContext) _WorkflowProposal_preview(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { +func (ec *executionContext) _WorkflowObjectRef_workflowInstance(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_WorkflowProposal_preview(ctx, field) + return ec.fieldContext_WorkflowObjectRef_workflowInstance(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.WorkflowProposal().Preview(ctx, obj) + return obj.WorkflowInstance(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowProposalPreview) graphql.Marshaler { - return ec.marshalOWorkflowProposalPreview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowProposalPreview(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowInstance(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_workflowInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_control(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_control(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Control(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { + return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_WorkflowProposal_preview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WorkflowObjectRef_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "WorkflowProposal", + Object: "WorkflowObjectRef", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowProposalPreview(ctx, field) + return ec.childFields_Control(ctx, field) }, } return fc, nil } -// endregion **************************** field.gotpl ***************************** +func (ec *executionContext) _WorkflowObjectRef_task(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_task(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Task(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Task) graphql.Marshaler { + return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Task(ctx, field) + }, + } + return fc, nil +} -// region **************************** input.gotpl ***************************** +func (ec *executionContext) _WorkflowObjectRef_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_internalPolicy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.InternalPolicy(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { + return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InternalPolicy(ctx, field) + }, + } + return fc, nil +} -func (ec *executionContext) unmarshalInputAPITokenOrder(ctx context.Context, obj any) (generated.APITokenOrder, error) { - var it generated.APITokenOrder - if obj == nil { - return it, nil +func (ec *executionContext) _WorkflowObjectRef_finding(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_finding(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Finding(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Finding) graphql.Marshaler { + return ec.marshalOFinding2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFinding(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_finding(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Finding(ctx, field) + }, } + return fc, nil +} - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v +func (ec *executionContext) _WorkflowObjectRef_directoryAccount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_directoryAccount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryAccount(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { + return ec.marshalODirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryAccount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectoryAccount(ctx, field) + }, } + return fc, nil +} - if _, present := asMap["direction"]; !present { - asMap["direction"] = "ASC" +func (ec *executionContext) _WorkflowObjectRef_directoryGroup(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_directoryGroup(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryGroup(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { + return ec.marshalODirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectoryGroup(ctx, field) + }, } + return fc, nil +} - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNAPITokenOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } +func (ec *executionContext) _WorkflowObjectRef_directoryMembership(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_directoryMembership(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryMembership(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { + return ec.marshalODirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_directoryMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectoryMembership(ctx, field) + }, } - return it, nil + return fc, nil } -func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context, obj any) (generated.APITokenWhereInput, error) { - var it generated.APITokenWhereInput - if obj == nil { - return it, nil +func (ec *executionContext) _WorkflowObjectRef_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_evidence(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Evidence(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Evidence) graphql.Marshaler { + return ec.marshalOEvidence2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvidence(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_evidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Evidence(ctx, field) + }, } + return fc, nil +} - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v +func (ec *executionContext) _WorkflowObjectRef_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_subcontrol(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Subcontrol(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { + return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Subcontrol(ctx, field) + }, } + return fc, nil +} - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "isActive", "isActiveNEQ", "isActiveIsNil", "isActiveNotNil", "revokedReason", "revokedReasonNEQ", "revokedReasonIn", "revokedReasonNotIn", "revokedReasonGT", "revokedReasonGTE", "revokedReasonLT", "revokedReasonLTE", "revokedReasonContains", "revokedReasonHasPrefix", "revokedReasonHasSuffix", "revokedReasonIsNil", "revokedReasonNotNil", "revokedReasonEqualFold", "revokedReasonContainsFold", "revokedBy", "revokedByNEQ", "revokedByIn", "revokedByNotIn", "revokedByGT", "revokedByGTE", "revokedByLT", "revokedByLTE", "revokedByContains", "revokedByHasPrefix", "revokedByHasSuffix", "revokedByIsNil", "revokedByNotNil", "revokedByEqualFold", "revokedByContainsFold", "revokedAt", "revokedAtNEQ", "revokedAtIn", "revokedAtNotIn", "revokedAtGT", "revokedAtGTE", "revokedAtLT", "revokedAtLTE", "revokedAtIsNil", "revokedAtNotNil", "hasOwner", "hasOwnerWith", "tagsHas", "scopesHas"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedBy = data - case "createdByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByContains = data - case "createdByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByContainsFold = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedBy = data - case "updatedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByNEQ = data - case "updatedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByIn = data - case "updatedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByContains = data - case "updatedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByHasPrefix = data - case "updatedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByEqualFold = data - case "updatedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "ownerIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) +func (ec *executionContext) _WorkflowObjectRef_actionPlan(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_actionPlan(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ActionPlan(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { + return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ActionPlan(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_procedure(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Procedure(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { + return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Procedure(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_campaign(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Campaign(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Campaign(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_campaignTarget(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_campaignTarget(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CampaignTarget(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { + return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_campaignTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignTarget(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_identityHolder(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IdentityHolder(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { + return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_IdentityHolder(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRef_platform(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRef) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRef_platform(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Platform(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { + return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRef_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRef", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Platform(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRefConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRefConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowObjectRefEdge) graphql.Marshaler { + return ec.marshalOWorkflowObjectRefEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRefConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowObjectRefEdge(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRefConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRefConnection_pageInfo(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PageInfo, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRefConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRefConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRefConnection_totalCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TotalCount, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRefConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRefConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _WorkflowObjectRefEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRefEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRef) graphql.Marshaler { + return ec.marshalOWorkflowObjectRef2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRef(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRefEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowObjectRefEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowObjectRef(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowObjectRefEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowObjectRefEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowObjectRefEdge_cursor(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Cursor, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowObjectRefEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowObjectRefEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_id(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_id(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_createdAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_updatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_createdBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CreatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_updatedBy(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedBy, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_tags(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Tags, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_ownerID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OwnerID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_workflowObjectRefID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_workflowObjectRefID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.WorkflowObjectRefID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_workflowObjectRefID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_domainKey(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_domainKey(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DomainKey, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_domainKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_state(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_state(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.State, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.WorkflowProposalState) graphql.Marshaler { + return ec.marshalNWorkflowProposalWorkflowProposalState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐWorkflowProposalState(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type WorkflowProposalWorkflowProposalState does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_revision(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_revision(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Revision, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_changes(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_changes(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Changes, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Map does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_proposedHash(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_proposedHash(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ProposedHash, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_proposedHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_approvedHash(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_approvedHash(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ApprovedHash, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_approvedHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_submittedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_submittedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SubmittedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_submittedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_submittedByUserID(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_submittedByUserID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SubmittedByUserID, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOID2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_submittedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("WorkflowProposal", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _WorkflowProposal_owner(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_owner(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Owner(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowProposal", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _WorkflowProposal_preview(ctx context.Context, field graphql.CollectedField, obj *generated.WorkflowProposal) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_WorkflowProposal_preview(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.WorkflowProposal().Preview(ctx, obj) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.WorkflowProposalPreview) graphql.Marshaler { + return ec.marshalOWorkflowProposalPreview2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐWorkflowProposalPreview(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_WorkflowProposal_preview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "WorkflowProposal", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowProposalPreview(ctx, field) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputAPITokenOrder(ctx context.Context, obj any) (generated.APITokenOrder, error) { + var it generated.APITokenOrder + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + if _, present := asMap["direction"]; !present { + asMap["direction"] = "ASC" + } + + fieldsInOrder := [...]string{"direction", "field"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "direction": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) + data, err := ec.unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNAPITokenOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenOrderField(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Field = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context, obj any) (generated.APITokenWhereInput, error) { + var it generated.APITokenWhereInput + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "isActive", "isActiveNEQ", "isActiveIsNil", "isActiveNotNil", "revokedReason", "revokedReasonNEQ", "revokedReasonIn", "revokedReasonNotIn", "revokedReasonGT", "revokedReasonGTE", "revokedReasonLT", "revokedReasonLTE", "revokedReasonContains", "revokedReasonHasPrefix", "revokedReasonHasSuffix", "revokedReasonIsNil", "revokedReasonNotNil", "revokedReasonEqualFold", "revokedReasonContainsFold", "revokedBy", "revokedByNEQ", "revokedByIn", "revokedByNotIn", "revokedByGT", "revokedByGTE", "revokedByLT", "revokedByLTE", "revokedByContains", "revokedByHasPrefix", "revokedByHasSuffix", "revokedByIsNil", "revokedByNotNil", "revokedByEqualFold", "revokedByContainsFold", "revokedAt", "revokedAtNEQ", "revokedAtIn", "revokedAtNotIn", "revokedAtGT", "revokedAtGTE", "revokedAtLT", "revokedAtLTE", "revokedAtIsNil", "revokedAtNotNil", "hasOwner", "hasOwnerWith", "tagsHas", "scopesHas"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Name = data - case "nameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameNEQ = data - case "nameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameIn = data - case "nameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameContains = data - case "nameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameHasPrefix = data - case "nameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NameHasSuffix = data - case "nameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameEqualFold = data - case "nameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "expiresAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ExpiresAtNEQ = data - case "expiresAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "expiresAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNEQ = data + case "expiresAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } @@ -204321,7 +209809,7 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co asMap[k] = v } - fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "personalOrg", "avatarRemoteURL", "avatarUpdatedAt", "dedicatedDb", "controlCreatorIDs", "controlImplementationCreatorIDs", "controlObjectiveCreatorIDs", "evidenceCreatorIDs", "assetCreatorIDs", "findingCreatorIDs", "vulnerabilityCreatorIDs", "groupCreatorIDs", "internalPolicyCreatorIDs", "mappedControlCreatorIDs", "narrativeCreatorIDs", "procedureCreatorIDs", "programCreatorIDs", "riskCreatorIDs", "identityHolderCreatorIDs", "scheduledJobCreatorIDs", "standardCreatorIDs", "templateCreatorIDs", "subprocessorCreatorIDs", "trustCenterDocCreatorIDs", "trustCenterSubprocessorCreatorIDs", "actionPlanCreatorIDs", "parentID", "settingID", "personalAccessTokenIDs", "apiTokenIDs", "emailTemplateIDs", "notificationPreferenceIDs", "notificationTemplateIDs", "fileIDs", "eventIDs", "secretIDs", "avatarFileID", "groupIDs", "templateIDs", "integrationIDs", "documentIDs", "orgSubscriptionIDs", "inviteIDs", "subscriberIDs", "entityIDs", "platformIDs", "identityHolderIDs", "campaignIDs", "campaignTargetIDs", "entityTypeIDs", "contactIDs", "noteIDs", "taskIDs", "programIDs", "systemDetailIDs", "procedureIDs", "internalPolicyIDs", "riskIDs", "controlObjectiveIDs", "narrativeIDs", "controlIDs", "subcontrolIDs", "controlImplementationIDs", "mappedControlIDs", "evidenceIDs", "standardIDs", "actionPlanIDs", "customDomainIDs", "jobRunnerIDs", "jobRunnerTokenIDs", "jobRunnerRegistrationTokenIDs", "dnsVerificationIDs", "jobTemplateIDs", "scheduledJobIDs", "jobResultIDs", "scheduledJobRunIDs", "trustCenterIDs", "assetIDs", "scanIDs", "slaDefinitionIDs", "subprocessorIDs", "exportIDs", "trustCenterWatermarkConfigIDs", "impersonationEventIDs", "assessmentIDs", "assessmentResponseIDs", "customTypeEnumIDs", "tagDefinitionIDs", "remediationIDs", "findingIDs", "reviewIDs", "vulnerabilityIDs", "workflowDefinitionIDs", "workflowInstanceIDs", "workflowEventIDs", "workflowAssignmentIDs", "workflowAssignmentTargetIDs", "workflowObjectRefIDs", "directoryAccountIDs", "directoryGroupIDs", "directorySyncRunIDs", "discussionIDs", "vendorScoringConfigIDs", "vendorRiskScoreIDs", "createOrgSettings"} + fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "personalOrg", "avatarRemoteURL", "avatarUpdatedAt", "dedicatedDb", "actionPlanCreatorIDs", "apiTokenCreatorIDs", "assessmentCreatorIDs", "assetCreatorIDs", "campaignCreatorIDs", "campaignTargetCreatorIDs", "checkResultCreatorIDs", "contactCreatorIDs", "controlCreatorIDs", "controlImplementationCreatorIDs", "controlObjectiveCreatorIDs", "customTypeEnumCreatorIDs", "discussionCreatorIDs", "emailTemplateCreatorIDs", "entityCreatorIDs", "entityTypeCreatorIDs", "evidenceCreatorIDs", "exportCreatorIDs", "fileCreatorIDs", "findingCreatorIDs", "groupCreatorIDs", "identityHolderCreatorIDs", "integrationCreatorIDs", "integrationWebhookCreatorIDs", "internalPolicyCreatorIDs", "jobRunnerCreatorIDs", "jobRunnerRegistrationTokenCreatorIDs", "jobRunnerTokenCreatorIDs", "jobTemplateCreatorIDs", "mappedControlCreatorIDs", "narrativeCreatorIDs", "noteCreatorIDs", "notificationTemplateCreatorIDs", "organizationCreatorIDs", "platformCreatorIDs", "procedureCreatorIDs", "programCreatorIDs", "remediationCreatorIDs", "reviewCreatorIDs", "riskCreatorIDs", "scanCreatorIDs", "scheduledJobCreatorIDs", "scheduledJobRunCreatorIDs", "standardCreatorIDs", "subcontrolCreatorIDs", "subprocessorCreatorIDs", "subscriberCreatorIDs", "systemDetailCreatorIDs", "tagDefinitionCreatorIDs", "taskCreatorIDs", "templateCreatorIDs", "trustCenterCreatorIDs", "trustCenterComplianceCreatorIDs", "trustCenterDocCreatorIDs", "trustCenterEntityCreatorIDs", "trustCenterFaqCreatorIDs", "trustCenterNdaRequestCreatorIDs", "trustCenterSubprocessorCreatorIDs", "trustCenterWatermarkConfigCreatorIDs", "userCreatorIDs", "userSettingCreatorIDs", "vendorRiskScoreCreatorIDs", "vulnerabilityCreatorIDs", "workflowAssignmentCreatorIDs", "workflowAssignmentTargetCreatorIDs", "workflowDefinitionCreatorIDs", "workflowEventCreatorIDs", "workflowInstanceCreatorIDs", "workflowObjectRefCreatorIDs", "workflowProposalCreatorIDs", "campaignsManagerIDs", "complianceManagerIDs", "groupManagerIDs", "policiesManagerIDs", "registryManagerIDs", "riskManagerIDs", "trustCenterManagerIDs", "workflowsManagerIDs", "parentID", "settingID", "personalAccessTokenIDs", "apiTokenIDs", "emailTemplateIDs", "notificationPreferenceIDs", "notificationTemplateIDs", "fileIDs", "eventIDs", "secretIDs", "avatarFileID", "groupIDs", "templateIDs", "integrationIDs", "documentIDs", "orgSubscriptionIDs", "inviteIDs", "subscriberIDs", "entityIDs", "platformIDs", "identityHolderIDs", "campaignIDs", "campaignTargetIDs", "entityTypeIDs", "contactIDs", "noteIDs", "taskIDs", "programIDs", "systemDetailIDs", "procedureIDs", "internalPolicyIDs", "riskIDs", "controlObjectiveIDs", "narrativeIDs", "controlIDs", "subcontrolIDs", "controlImplementationIDs", "mappedControlIDs", "evidenceIDs", "standardIDs", "actionPlanIDs", "customDomainIDs", "jobRunnerIDs", "jobRunnerTokenIDs", "jobRunnerRegistrationTokenIDs", "dnsVerificationIDs", "jobTemplateIDs", "scheduledJobIDs", "jobResultIDs", "scheduledJobRunIDs", "trustCenterIDs", "assetIDs", "scanIDs", "slaDefinitionIDs", "subprocessorIDs", "exportIDs", "trustCenterWatermarkConfigIDs", "impersonationEventIDs", "assessmentIDs", "assessmentResponseIDs", "customTypeEnumIDs", "tagDefinitionIDs", "remediationIDs", "findingIDs", "reviewIDs", "vulnerabilityIDs", "workflowDefinitionIDs", "workflowInstanceIDs", "workflowEventIDs", "workflowAssignmentIDs", "workflowAssignmentTargetIDs", "workflowObjectRefIDs", "directoryAccountIDs", "directoryGroupIDs", "directorySyncRunIDs", "discussionIDs", "vendorScoringConfigIDs", "vendorRiskScoreIDs", "createOrgSettings"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -204384,6 +209872,62 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.DedicatedDb = data + case "actionPlanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionPlanCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionPlanCreatorIDs = data + case "apiTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.APITokenCreatorIDs = data + case "assessmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assessmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AssessmentCreatorIDs = data + case "assetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AssetCreatorIDs = data + case "campaignCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CampaignCreatorIDs = data + case "campaignTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CampaignTargetCreatorIDs = data + case "checkResultCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checkResultCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CheckResultCreatorIDs = data + case "contactCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactCreatorIDs = data case "controlCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204405,6 +209949,41 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.ControlObjectiveCreatorIDs = data + case "customTypeEnumCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customTypeEnumCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CustomTypeEnumCreatorIDs = data + case "discussionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discussionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DiscussionCreatorIDs = data + case "emailTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailTemplateCreatorIDs = data + case "entityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityCreatorIDs = data + case "entityTypeCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeCreatorIDs = data case "evidenceCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204412,27 +209991,27 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.EvidenceCreatorIDs = data - case "assetCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetCreatorIDs")) + case "exportCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exportCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AssetCreatorIDs = data - case "findingCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("findingCreatorIDs")) + it.ExportCreatorIDs = data + case "fileCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.FindingCreatorIDs = data - case "vulnerabilityCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vulnerabilityCreatorIDs")) + it.FileCreatorIDs = data + case "findingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("findingCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.VulnerabilityCreatorIDs = data + it.FindingCreatorIDs = data case "groupCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204440,6 +210019,27 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.GroupCreatorIDs = data + case "identityHolderCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderCreatorIDs = data + case "integrationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationCreatorIDs = data + case "integrationWebhookCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationWebhookCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationWebhookCreatorIDs = data case "internalPolicyCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalPolicyCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204447,6 +210047,34 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.InternalPolicyCreatorIDs = data + case "jobRunnerCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobRunnerCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.JobRunnerCreatorIDs = data + case "jobRunnerRegistrationTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobRunnerRegistrationTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.JobRunnerRegistrationTokenCreatorIDs = data + case "jobRunnerTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobRunnerTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.JobRunnerTokenCreatorIDs = data + case "jobTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.JobTemplateCreatorIDs = data case "mappedControlCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedControlCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204461,6 +210089,34 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.NarrativeCreatorIDs = data + case "noteCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("noteCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NoteCreatorIDs = data + case "notificationTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notificationTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NotificationTemplateCreatorIDs = data + case "organizationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationCreatorIDs = data + case "platformCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlatformCreatorIDs = data case "procedureCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204475,6 +210131,20 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.ProgramCreatorIDs = data + case "remediationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remediationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemediationCreatorIDs = data + case "reviewCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reviewCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ReviewCreatorIDs = data case "riskCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204482,13 +210152,13 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.RiskCreatorIDs = data - case "identityHolderCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderCreatorIDs")) + case "scanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scanCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IdentityHolderCreatorIDs = data + it.ScanCreatorIDs = data case "scheduledJobCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scheduledJobCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204496,6 +210166,13 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.ScheduledJobCreatorIDs = data + case "scheduledJobRunCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scheduledJobRunCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ScheduledJobRunCreatorIDs = data case "standardCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204503,13 +210180,13 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.StandardCreatorIDs = data - case "templateCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateCreatorIDs")) + case "subcontrolCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TemplateCreatorIDs = data + it.SubcontrolCreatorIDs = data case "subprocessorCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204517,6 +210194,55 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.SubprocessorCreatorIDs = data + case "subscriberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberCreatorIDs = data + case "systemDetailCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("systemDetailCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SystemDetailCreatorIDs = data + case "tagDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tagDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TagDefinitionCreatorIDs = data + case "taskCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TaskCreatorIDs = data + case "templateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateCreatorIDs = data + case "trustCenterCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterCreatorIDs = data + case "trustCenterComplianceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterComplianceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterComplianceCreatorIDs = data case "trustCenterDocCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterDocCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204524,6 +210250,27 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.TrustCenterDocCreatorIDs = data + case "trustCenterEntityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterEntityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterEntityCreatorIDs = data + case "trustCenterFaqCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterFaqCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterFaqCreatorIDs = data + case "trustCenterNdaRequestCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterNdaRequestCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterNdaRequestCreatorIDs = data case "trustCenterSubprocessorCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterSubprocessorCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -204531,13 +210278,146 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.TrustCenterSubprocessorCreatorIDs = data - case "actionPlanCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionPlanCreatorIDs")) + case "trustCenterWatermarkConfigCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterWatermarkConfigCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ActionPlanCreatorIDs = data + it.TrustCenterWatermarkConfigCreatorIDs = data + case "userCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserCreatorIDs = data + case "userSettingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userSettingCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserSettingCreatorIDs = data + case "vendorRiskScoreCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorRiskScoreCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VendorRiskScoreCreatorIDs = data + case "vulnerabilityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vulnerabilityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VulnerabilityCreatorIDs = data + case "workflowAssignmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowAssignmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowAssignmentCreatorIDs = data + case "workflowAssignmentTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowAssignmentTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowAssignmentTargetCreatorIDs = data + case "workflowDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowDefinitionCreatorIDs = data + case "workflowEventCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowEventCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowEventCreatorIDs = data + case "workflowInstanceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowInstanceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowInstanceCreatorIDs = data + case "workflowObjectRefCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowObjectRefCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowObjectRefCreatorIDs = data + case "workflowProposalCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowProposalCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowProposalCreatorIDs = data + case "campaignsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CampaignsManagerIDs = data + case "complianceManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("complianceManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ComplianceManagerIDs = data + case "groupManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupManagerIDs = data + case "policiesManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policiesManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PoliciesManagerIDs = data + case "registryManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("registryManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RegistryManagerIDs = data + case "riskManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskManagerIDs = data + case "trustCenterManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TrustCenterManagerIDs = data + case "workflowsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workflowsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WorkflowsManagerIDs = data case "parentID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) @@ -284890,7 +290770,7 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "hasControlCreators", "hasControlCreatorsWith", "hasControlImplementationCreators", "hasControlImplementationCreatorsWith", "hasControlObjectiveCreators", "hasControlObjectiveCreatorsWith", "hasEvidenceCreators", "hasEvidenceCreatorsWith", "hasAssetCreators", "hasAssetCreatorsWith", "hasFindingCreators", "hasFindingCreatorsWith", "hasVulnerabilityCreators", "hasVulnerabilityCreatorsWith", "hasGroupCreators", "hasGroupCreatorsWith", "hasInternalPolicyCreators", "hasInternalPolicyCreatorsWith", "hasMappedControlCreators", "hasMappedControlCreatorsWith", "hasNarrativeCreators", "hasNarrativeCreatorsWith", "hasProcedureCreators", "hasProcedureCreatorsWith", "hasProgramCreators", "hasProgramCreatorsWith", "hasRiskCreators", "hasRiskCreatorsWith", "hasIdentityHolderCreators", "hasIdentityHolderCreatorsWith", "hasScheduledJobCreators", "hasScheduledJobCreatorsWith", "hasStandardCreators", "hasStandardCreatorsWith", "hasTemplateCreators", "hasTemplateCreatorsWith", "hasSubprocessorCreators", "hasSubprocessorCreatorsWith", "hasTrustCenterDocCreators", "hasTrustCenterDocCreatorsWith", "hasTrustCenterSubprocessorCreators", "hasTrustCenterSubprocessorCreatorsWith", "hasActionPlanCreators", "hasActionPlanCreatorsWith", "hasParent", "hasParentWith", "hasChildren", "hasChildrenWith", "hasSetting", "hasSettingWith", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasAPITokens", "hasAPITokensWith", "hasEmailTemplates", "hasEmailTemplatesWith", "hasNotificationPreferences", "hasNotificationPreferencesWith", "hasNotificationTemplates", "hasNotificationTemplatesWith", "hasUsers", "hasUsersWith", "hasFiles", "hasFilesWith", "hasEvents", "hasEventsWith", "hasSecrets", "hasSecretsWith", "hasAvatarFile", "hasAvatarFileWith", "hasGroups", "hasGroupsWith", "hasTemplates", "hasTemplatesWith", "hasIntegrations", "hasIntegrationsWith", "hasDocuments", "hasDocumentsWith", "hasOrgSubscriptions", "hasOrgSubscriptionsWith", "hasInvites", "hasInvitesWith", "hasSubscribers", "hasSubscribersWith", "hasEntities", "hasEntitiesWith", "hasPlatforms", "hasPlatformsWith", "hasIdentityHolders", "hasIdentityHoldersWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasEntityTypes", "hasEntityTypesWith", "hasContacts", "hasContactsWith", "hasNotes", "hasNotesWith", "hasTasks", "hasTasksWith", "hasPrograms", "hasProgramsWith", "hasSystemDetails", "hasSystemDetailsWith", "hasProcedures", "hasProceduresWith", "hasInternalPolicies", "hasInternalPoliciesWith", "hasRisks", "hasRisksWith", "hasControlObjectives", "hasControlObjectivesWith", "hasNarratives", "hasNarrativesWith", "hasControls", "hasControlsWith", "hasSubcontrols", "hasSubcontrolsWith", "hasControlImplementations", "hasControlImplementationsWith", "hasMappedControls", "hasMappedControlsWith", "hasEvidence", "hasEvidenceWith", "hasStandards", "hasStandardsWith", "hasActionPlans", "hasActionPlansWith", "hasCustomDomains", "hasCustomDomainsWith", "hasJobRunners", "hasJobRunnersWith", "hasJobRunnerTokens", "hasJobRunnerTokensWith", "hasJobRunnerRegistrationTokens", "hasJobRunnerRegistrationTokensWith", "hasDNSVerifications", "hasDNSVerificationsWith", "hasJobTemplates", "hasJobTemplatesWith", "hasScheduledJobs", "hasScheduledJobsWith", "hasJobResults", "hasJobResultsWith", "hasScheduledJobRuns", "hasScheduledJobRunsWith", "hasTrustCenters", "hasTrustCentersWith", "hasAssets", "hasAssetsWith", "hasScans", "hasScansWith", "hasSLADefinitions", "hasSLADefinitionsWith", "hasSubprocessors", "hasSubprocessorsWith", "hasExports", "hasExportsWith", "hasTrustCenterWatermarkConfigs", "hasTrustCenterWatermarkConfigsWith", "hasAssessments", "hasAssessmentsWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasCustomTypeEnums", "hasCustomTypeEnumsWith", "hasTagDefinitions", "hasTagDefinitionsWith", "hasRemediations", "hasRemediationsWith", "hasFindings", "hasFindingsWith", "hasReviews", "hasReviewsWith", "hasVulnerabilities", "hasVulnerabilitiesWith", "hasWorkflowDefinitions", "hasWorkflowDefinitionsWith", "hasWorkflowInstances", "hasWorkflowInstancesWith", "hasWorkflowEvents", "hasWorkflowEventsWith", "hasWorkflowAssignments", "hasWorkflowAssignmentsWith", "hasWorkflowAssignmentTargets", "hasWorkflowAssignmentTargetsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "hasDirectoryAccounts", "hasDirectoryAccountsWith", "hasDirectoryGroups", "hasDirectoryGroupsWith", "hasDirectoryMemberships", "hasDirectoryMembershipsWith", "hasDirectorySyncRuns", "hasDirectorySyncRunsWith", "hasDiscussions", "hasDiscussionsWith", "hasVendorScoringConfigs", "hasVendorScoringConfigsWith", "hasVendorRiskScores", "hasVendorRiskScoresWith", "hasMembers", "hasMembersWith", "tagsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "hasActionPlanCreators", "hasActionPlanCreatorsWith", "hasAPITokenCreators", "hasAPITokenCreatorsWith", "hasAssessmentCreators", "hasAssessmentCreatorsWith", "hasAssetCreators", "hasAssetCreatorsWith", "hasCampaignCreators", "hasCampaignCreatorsWith", "hasCampaignTargetCreators", "hasCampaignTargetCreatorsWith", "hasCheckResultCreators", "hasCheckResultCreatorsWith", "hasContactCreators", "hasContactCreatorsWith", "hasControlCreators", "hasControlCreatorsWith", "hasControlImplementationCreators", "hasControlImplementationCreatorsWith", "hasControlObjectiveCreators", "hasControlObjectiveCreatorsWith", "hasCustomTypeEnumCreators", "hasCustomTypeEnumCreatorsWith", "hasDiscussionCreators", "hasDiscussionCreatorsWith", "hasEmailTemplateCreators", "hasEmailTemplateCreatorsWith", "hasEntityCreators", "hasEntityCreatorsWith", "hasEntityTypeCreators", "hasEntityTypeCreatorsWith", "hasEvidenceCreators", "hasEvidenceCreatorsWith", "hasExportCreators", "hasExportCreatorsWith", "hasFileCreators", "hasFileCreatorsWith", "hasFindingCreators", "hasFindingCreatorsWith", "hasGroupCreators", "hasGroupCreatorsWith", "hasIdentityHolderCreators", "hasIdentityHolderCreatorsWith", "hasIntegrationCreators", "hasIntegrationCreatorsWith", "hasIntegrationWebhookCreators", "hasIntegrationWebhookCreatorsWith", "hasInternalPolicyCreators", "hasInternalPolicyCreatorsWith", "hasJobRunnerCreators", "hasJobRunnerCreatorsWith", "hasJobRunnerRegistrationTokenCreators", "hasJobRunnerRegistrationTokenCreatorsWith", "hasJobRunnerTokenCreators", "hasJobRunnerTokenCreatorsWith", "hasJobTemplateCreators", "hasJobTemplateCreatorsWith", "hasMappedControlCreators", "hasMappedControlCreatorsWith", "hasNarrativeCreators", "hasNarrativeCreatorsWith", "hasNoteCreators", "hasNoteCreatorsWith", "hasNotificationTemplateCreators", "hasNotificationTemplateCreatorsWith", "hasOrganizationCreators", "hasOrganizationCreatorsWith", "hasPlatformCreators", "hasPlatformCreatorsWith", "hasProcedureCreators", "hasProcedureCreatorsWith", "hasProgramCreators", "hasProgramCreatorsWith", "hasRemediationCreators", "hasRemediationCreatorsWith", "hasReviewCreators", "hasReviewCreatorsWith", "hasRiskCreators", "hasRiskCreatorsWith", "hasScanCreators", "hasScanCreatorsWith", "hasScheduledJobCreators", "hasScheduledJobCreatorsWith", "hasScheduledJobRunCreators", "hasScheduledJobRunCreatorsWith", "hasStandardCreators", "hasStandardCreatorsWith", "hasSubcontrolCreators", "hasSubcontrolCreatorsWith", "hasSubprocessorCreators", "hasSubprocessorCreatorsWith", "hasSubscriberCreators", "hasSubscriberCreatorsWith", "hasSystemDetailCreators", "hasSystemDetailCreatorsWith", "hasTagDefinitionCreators", "hasTagDefinitionCreatorsWith", "hasTaskCreators", "hasTaskCreatorsWith", "hasTemplateCreators", "hasTemplateCreatorsWith", "hasTrustCenterCreators", "hasTrustCenterCreatorsWith", "hasTrustCenterComplianceCreators", "hasTrustCenterComplianceCreatorsWith", "hasTrustCenterDocCreators", "hasTrustCenterDocCreatorsWith", "hasTrustCenterEntityCreators", "hasTrustCenterEntityCreatorsWith", "hasTrustCenterFaqCreators", "hasTrustCenterFaqCreatorsWith", "hasTrustCenterNdaRequestCreators", "hasTrustCenterNdaRequestCreatorsWith", "hasTrustCenterSubprocessorCreators", "hasTrustCenterSubprocessorCreatorsWith", "hasTrustCenterWatermarkConfigCreators", "hasTrustCenterWatermarkConfigCreatorsWith", "hasUserCreators", "hasUserCreatorsWith", "hasUserSettingCreators", "hasUserSettingCreatorsWith", "hasVendorRiskScoreCreators", "hasVendorRiskScoreCreatorsWith", "hasVulnerabilityCreators", "hasVulnerabilityCreatorsWith", "hasWorkflowAssignmentCreators", "hasWorkflowAssignmentCreatorsWith", "hasWorkflowAssignmentTargetCreators", "hasWorkflowAssignmentTargetCreatorsWith", "hasWorkflowDefinitionCreators", "hasWorkflowDefinitionCreatorsWith", "hasWorkflowEventCreators", "hasWorkflowEventCreatorsWith", "hasWorkflowInstanceCreators", "hasWorkflowInstanceCreatorsWith", "hasWorkflowObjectRefCreators", "hasWorkflowObjectRefCreatorsWith", "hasWorkflowProposalCreators", "hasWorkflowProposalCreatorsWith", "hasCampaignsManager", "hasCampaignsManagerWith", "hasComplianceManager", "hasComplianceManagerWith", "hasGroupManager", "hasGroupManagerWith", "hasPoliciesManager", "hasPoliciesManagerWith", "hasRegistryManager", "hasRegistryManagerWith", "hasRiskManager", "hasRiskManagerWith", "hasTrustCenterManager", "hasTrustCenterManagerWith", "hasWorkflowsManager", "hasWorkflowsManagerWith", "hasParent", "hasParentWith", "hasChildren", "hasChildrenWith", "hasSetting", "hasSettingWith", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasAPITokens", "hasAPITokensWith", "hasEmailTemplates", "hasEmailTemplatesWith", "hasNotificationPreferences", "hasNotificationPreferencesWith", "hasNotificationTemplates", "hasNotificationTemplatesWith", "hasUsers", "hasUsersWith", "hasFiles", "hasFilesWith", "hasEvents", "hasEventsWith", "hasSecrets", "hasSecretsWith", "hasAvatarFile", "hasAvatarFileWith", "hasGroups", "hasGroupsWith", "hasTemplates", "hasTemplatesWith", "hasIntegrations", "hasIntegrationsWith", "hasDocuments", "hasDocumentsWith", "hasOrgSubscriptions", "hasOrgSubscriptionsWith", "hasInvites", "hasInvitesWith", "hasSubscribers", "hasSubscribersWith", "hasEntities", "hasEntitiesWith", "hasPlatforms", "hasPlatformsWith", "hasIdentityHolders", "hasIdentityHoldersWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasEntityTypes", "hasEntityTypesWith", "hasContacts", "hasContactsWith", "hasNotes", "hasNotesWith", "hasTasks", "hasTasksWith", "hasPrograms", "hasProgramsWith", "hasSystemDetails", "hasSystemDetailsWith", "hasProcedures", "hasProceduresWith", "hasInternalPolicies", "hasInternalPoliciesWith", "hasRisks", "hasRisksWith", "hasControlObjectives", "hasControlObjectivesWith", "hasNarratives", "hasNarrativesWith", "hasControls", "hasControlsWith", "hasSubcontrols", "hasSubcontrolsWith", "hasControlImplementations", "hasControlImplementationsWith", "hasMappedControls", "hasMappedControlsWith", "hasEvidence", "hasEvidenceWith", "hasStandards", "hasStandardsWith", "hasActionPlans", "hasActionPlansWith", "hasCustomDomains", "hasCustomDomainsWith", "hasJobRunners", "hasJobRunnersWith", "hasJobRunnerTokens", "hasJobRunnerTokensWith", "hasJobRunnerRegistrationTokens", "hasJobRunnerRegistrationTokensWith", "hasDNSVerifications", "hasDNSVerificationsWith", "hasJobTemplates", "hasJobTemplatesWith", "hasScheduledJobs", "hasScheduledJobsWith", "hasJobResults", "hasJobResultsWith", "hasScheduledJobRuns", "hasScheduledJobRunsWith", "hasTrustCenters", "hasTrustCentersWith", "hasAssets", "hasAssetsWith", "hasScans", "hasScansWith", "hasSLADefinitions", "hasSLADefinitionsWith", "hasSubprocessors", "hasSubprocessorsWith", "hasExports", "hasExportsWith", "hasTrustCenterWatermarkConfigs", "hasTrustCenterWatermarkConfigsWith", "hasAssessments", "hasAssessmentsWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasCustomTypeEnums", "hasCustomTypeEnumsWith", "hasTagDefinitions", "hasTagDefinitionsWith", "hasRemediations", "hasRemediationsWith", "hasFindings", "hasFindingsWith", "hasReviews", "hasReviewsWith", "hasVulnerabilities", "hasVulnerabilitiesWith", "hasWorkflowDefinitions", "hasWorkflowDefinitionsWith", "hasWorkflowInstances", "hasWorkflowInstancesWith", "hasWorkflowEvents", "hasWorkflowEventsWith", "hasWorkflowAssignments", "hasWorkflowAssignmentsWith", "hasWorkflowAssignmentTargets", "hasWorkflowAssignmentTargetsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "hasDirectoryAccounts", "hasDirectoryAccountsWith", "hasDirectoryGroups", "hasDirectoryGroupsWith", "hasDirectoryMemberships", "hasDirectoryMembershipsWith", "hasDirectorySyncRuns", "hasDirectorySyncRunsWith", "hasDiscussions", "hasDiscussionsWith", "hasVendorScoringConfigs", "hasVendorScoringConfigsWith", "hasVendorRiskScores", "hasVendorRiskScoresWith", "hasMembers", "hasMembersWith", "tagsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -285842,6 +291722,118 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.AvatarUpdatedAtNotNil = data + case "hasActionPlanCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionPlanCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasActionPlanCreators = data + case "hasActionPlanCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionPlanCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasActionPlanCreatorsWith = data + case "hasAPITokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokenCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAPITokenCreators = data + case "hasAPITokenCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokenCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAPITokenCreatorsWith = data + case "hasAssessmentCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssessmentCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAssessmentCreators = data + case "hasAssessmentCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssessmentCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAssessmentCreatorsWith = data + case "hasAssetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAssetCreators = data + case "hasAssetCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAssetCreatorsWith = data + case "hasCampaignCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignCreators = data + case "hasCampaignCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignCreatorsWith = data + case "hasCampaignTargetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignTargetCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignTargetCreators = data + case "hasCampaignTargetCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignTargetCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignTargetCreatorsWith = data + case "hasCheckResultCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCheckResultCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCheckResultCreators = data + case "hasCheckResultCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCheckResultCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCheckResultCreatorsWith = data + case "hasContactCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasContactCreators = data + case "hasContactCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasContactCreatorsWith = data case "hasControlCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -285884,6 +291876,76 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasControlObjectiveCreatorsWith = data + case "hasCustomTypeEnumCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCustomTypeEnumCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCustomTypeEnumCreators = data + case "hasCustomTypeEnumCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCustomTypeEnumCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCustomTypeEnumCreatorsWith = data + case "hasDiscussionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDiscussionCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasDiscussionCreators = data + case "hasDiscussionCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDiscussionCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasDiscussionCreatorsWith = data + case "hasEmailTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEmailTemplateCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEmailTemplateCreators = data + case "hasEmailTemplateCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEmailTemplateCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEmailTemplateCreatorsWith = data + case "hasEntityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntityCreators = data + case "hasEntityCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntityCreatorsWith = data + case "hasEntityTypeCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityTypeCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntityTypeCreators = data + case "hasEntityTypeCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityTypeCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntityTypeCreatorsWith = data case "hasEvidenceCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvidenceCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -285898,48 +291960,48 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasEvidenceCreatorsWith = data - case "hasAssetCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetCreators")) + case "hasExportCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasExportCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasAssetCreators = data - case "hasAssetCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetCreatorsWith")) + it.HasExportCreators = data + case "hasExportCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasExportCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasAssetCreatorsWith = data - case "hasFindingCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingCreators")) + it.HasExportCreatorsWith = data + case "hasFileCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFindingCreators = data - case "hasFindingCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingCreatorsWith")) + it.HasFileCreators = data + case "hasFileCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFindingCreatorsWith = data - case "hasVulnerabilityCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilityCreators")) + it.HasFileCreatorsWith = data + case "hasFindingCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasVulnerabilityCreators = data - case "hasVulnerabilityCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilityCreatorsWith")) + it.HasFindingCreators = data + case "hasFindingCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasVulnerabilityCreatorsWith = data + it.HasFindingCreatorsWith = data case "hasGroupCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -285954,6 +292016,48 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasGroupCreatorsWith = data + case "hasIdentityHolderCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolderCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHolderCreators = data + case "hasIdentityHolderCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolderCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHolderCreatorsWith = data + case "hasIntegrationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationCreators = data + case "hasIntegrationCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationCreatorsWith = data + case "hasIntegrationWebhookCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWebhookCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationWebhookCreators = data + case "hasIntegrationWebhookCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWebhookCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationWebhookCreatorsWith = data case "hasInternalPolicyCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalPolicyCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -285968,6 +292072,62 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasInternalPolicyCreatorsWith = data + case "hasJobRunnerCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerCreators = data + case "hasJobRunnerCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerCreatorsWith = data + case "hasJobRunnerRegistrationTokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerRegistrationTokenCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerRegistrationTokenCreators = data + case "hasJobRunnerRegistrationTokenCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerRegistrationTokenCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerRegistrationTokenCreatorsWith = data + case "hasJobRunnerTokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerTokenCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerTokenCreators = data + case "hasJobRunnerTokenCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobRunnerTokenCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasJobRunnerTokenCreatorsWith = data + case "hasJobTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobTemplateCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasJobTemplateCreators = data + case "hasJobTemplateCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasJobTemplateCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasJobTemplateCreatorsWith = data case "hasMappedControlCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMappedControlCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -285996,6 +292156,62 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasNarrativeCreatorsWith = data + case "hasNoteCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNoteCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNoteCreators = data + case "hasNoteCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNoteCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNoteCreatorsWith = data + case "hasNotificationTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotificationTemplateCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNotificationTemplateCreators = data + case "hasNotificationTemplateCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotificationTemplateCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNotificationTemplateCreatorsWith = data + case "hasOrganizationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationCreators = data + case "hasOrganizationCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationCreatorsWith = data + case "hasPlatformCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatformCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPlatformCreators = data + case "hasPlatformCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatformCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPlatformCreatorsWith = data case "hasProcedureCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedureCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286024,6 +292240,34 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasProgramCreatorsWith = data + case "hasRemediationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediationCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRemediationCreators = data + case "hasRemediationCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediationCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRemediationCreatorsWith = data + case "hasReviewCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviewCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasReviewCreators = data + case "hasReviewCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviewCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasReviewCreatorsWith = data case "hasRiskCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRiskCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286038,20 +292282,20 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasRiskCreatorsWith = data - case "hasIdentityHolderCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolderCreators")) + case "hasScanCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScanCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasIdentityHolderCreators = data - case "hasIdentityHolderCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolderCreatorsWith")) + it.HasScanCreators = data + case "hasScanCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScanCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasIdentityHolderCreatorsWith = data + it.HasScanCreatorsWith = data case "hasScheduledJobCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScheduledJobCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286066,6 +292310,20 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasScheduledJobCreatorsWith = data + case "hasScheduledJobRunCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScheduledJobRunCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasScheduledJobRunCreators = data + case "hasScheduledJobRunCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScheduledJobRunCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasScheduledJobRunCreatorsWith = data case "hasStandardCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandardCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286080,20 +292338,20 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasStandardCreatorsWith = data - case "hasTemplateCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateCreators")) + case "hasSubcontrolCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrolCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasTemplateCreators = data - case "hasTemplateCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateCreatorsWith")) + it.HasSubcontrolCreators = data + case "hasSubcontrolCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrolCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasTemplateCreatorsWith = data + it.HasSubcontrolCreatorsWith = data case "hasSubprocessorCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubprocessorCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286108,6 +292366,104 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasSubprocessorCreatorsWith = data + case "hasSubscriberCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscriberCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSubscriberCreators = data + case "hasSubscriberCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscriberCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubscriberCreatorsWith = data + case "hasSystemDetailCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetailCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSystemDetailCreators = data + case "hasSystemDetailCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetailCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSystemDetailCreatorsWith = data + case "hasTagDefinitionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTagDefinitionCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTagDefinitionCreators = data + case "hasTagDefinitionCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTagDefinitionCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTagDefinitionCreatorsWith = data + case "hasTaskCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTaskCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTaskCreators = data + case "hasTaskCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTaskCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTaskCreatorsWith = data + case "hasTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTemplateCreators = data + case "hasTemplateCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTemplateCreatorsWith = data + case "hasTrustCenterCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterCreators = data + case "hasTrustCenterCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterCreatorsWith = data + case "hasTrustCenterComplianceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterComplianceCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterComplianceCreators = data + case "hasTrustCenterComplianceCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterComplianceCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterComplianceCreatorsWith = data case "hasTrustCenterDocCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterDocCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286122,6 +292478,48 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasTrustCenterDocCreatorsWith = data + case "hasTrustCenterEntityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterEntityCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterEntityCreators = data + case "hasTrustCenterEntityCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterEntityCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterEntityCreatorsWith = data + case "hasTrustCenterFaqCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterFaqCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterFaqCreators = data + case "hasTrustCenterFaqCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterFaqCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterFaqCreatorsWith = data + case "hasTrustCenterNdaRequestCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterNdaRequestCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterNdaRequestCreators = data + case "hasTrustCenterNdaRequestCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterNdaRequestCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterNdaRequestCreatorsWith = data case "hasTrustCenterSubprocessorCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterSubprocessorCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -286136,20 +292534,286 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasTrustCenterSubprocessorCreatorsWith = data - case "hasActionPlanCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionPlanCreators")) + case "hasTrustCenterWatermarkConfigCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterWatermarkConfigCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasActionPlanCreators = data - case "hasActionPlanCreatorsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionPlanCreatorsWith")) + it.HasTrustCenterWatermarkConfigCreators = data + case "hasTrustCenterWatermarkConfigCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterWatermarkConfigCreatorsWith")) data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasActionPlanCreatorsWith = data + it.HasTrustCenterWatermarkConfigCreatorsWith = data + case "hasUserCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasUserCreators = data + case "hasUserCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUserCreatorsWith = data + case "hasUserSettingCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserSettingCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasUserSettingCreators = data + case "hasUserSettingCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserSettingCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUserSettingCreatorsWith = data + case "hasVendorRiskScoreCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVendorRiskScoreCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasVendorRiskScoreCreators = data + case "hasVendorRiskScoreCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVendorRiskScoreCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasVendorRiskScoreCreatorsWith = data + case "hasVulnerabilityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilityCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasVulnerabilityCreators = data + case "hasVulnerabilityCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilityCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasVulnerabilityCreatorsWith = data + case "hasWorkflowAssignmentCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowAssignmentCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowAssignmentCreators = data + case "hasWorkflowAssignmentCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowAssignmentCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowAssignmentCreatorsWith = data + case "hasWorkflowAssignmentTargetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowAssignmentTargetCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowAssignmentTargetCreators = data + case "hasWorkflowAssignmentTargetCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowAssignmentTargetCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowAssignmentTargetCreatorsWith = data + case "hasWorkflowDefinitionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowDefinitionCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowDefinitionCreators = data + case "hasWorkflowDefinitionCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowDefinitionCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowDefinitionCreatorsWith = data + case "hasWorkflowEventCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowEventCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowEventCreators = data + case "hasWorkflowEventCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowEventCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowEventCreatorsWith = data + case "hasWorkflowInstanceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowInstanceCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowInstanceCreators = data + case "hasWorkflowInstanceCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowInstanceCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowInstanceCreatorsWith = data + case "hasWorkflowObjectRefCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowObjectRefCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowObjectRefCreators = data + case "hasWorkflowObjectRefCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowObjectRefCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowObjectRefCreatorsWith = data + case "hasWorkflowProposalCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowProposalCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowProposalCreators = data + case "hasWorkflowProposalCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowProposalCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowProposalCreatorsWith = data + case "hasCampaignsManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignsManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignsManager = data + case "hasCampaignsManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignsManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCampaignsManagerWith = data + case "hasComplianceManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasComplianceManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasComplianceManager = data + case "hasComplianceManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasComplianceManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasComplianceManagerWith = data + case "hasGroupManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroupManager = data + case "hasGroupManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupManagerWith = data + case "hasPoliciesManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPoliciesManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPoliciesManager = data + case "hasPoliciesManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPoliciesManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPoliciesManagerWith = data + case "hasRegistryManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRegistryManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRegistryManager = data + case "hasRegistryManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRegistryManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRegistryManagerWith = data + case "hasRiskManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRiskManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRiskManager = data + case "hasRiskManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRiskManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRiskManagerWith = data + case "hasTrustCenterManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterManager = data + case "hasTrustCenterManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTrustCenterManagerWith = data + case "hasWorkflowsManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowsManager")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowsManager = data + case "hasWorkflowsManagerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWorkflowsManagerWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWorkflowsManagerWith = data case "hasParent": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasParent")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -345016,7 +351680,7 @@ func (ec *executionContext) unmarshalInputUpdateAssessmentInput(ctx context.Cont asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalNotes", "clearInternalNotes", "systemInternalID", "clearSystemInternalID", "name", "jsonconfig", "clearJsonconfig", "uischema", "clearUischema", "responseDueDuration", "clearResponseDueDuration", "ownerID", "clearOwner", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "templateID", "clearTemplate", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalNotes", "clearInternalNotes", "systemInternalID", "clearSystemInternalID", "name", "jsonconfig", "clearJsonconfig", "uischema", "clearUischema", "responseDueDuration", "clearResponseDueDuration", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "templateID", "clearTemplate", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -345170,20 +351834,6 @@ func (ec *executionContext) unmarshalInputUpdateAssessmentInput(ctx context.Cont return it, err } it.ClearResponseDueDuration = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ClearOwner = data case "addBlockedGroupIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addBlockedGroupIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -363601,7 +370251,7 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "description", "clearDescription", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarUpdatedAt", "clearAvatarUpdatedAt", "addControlCreatorIDs", "removeControlCreatorIDs", "clearControlCreators", "addControlImplementationCreatorIDs", "removeControlImplementationCreatorIDs", "clearControlImplementationCreators", "addControlObjectiveCreatorIDs", "removeControlObjectiveCreatorIDs", "clearControlObjectiveCreators", "addEvidenceCreatorIDs", "removeEvidenceCreatorIDs", "clearEvidenceCreators", "addAssetCreatorIDs", "removeAssetCreatorIDs", "clearAssetCreators", "addFindingCreatorIDs", "removeFindingCreatorIDs", "clearFindingCreators", "addVulnerabilityCreatorIDs", "removeVulnerabilityCreatorIDs", "clearVulnerabilityCreators", "addGroupCreatorIDs", "removeGroupCreatorIDs", "clearGroupCreators", "addInternalPolicyCreatorIDs", "removeInternalPolicyCreatorIDs", "clearInternalPolicyCreators", "addMappedControlCreatorIDs", "removeMappedControlCreatorIDs", "clearMappedControlCreators", "addNarrativeCreatorIDs", "removeNarrativeCreatorIDs", "clearNarrativeCreators", "addProcedureCreatorIDs", "removeProcedureCreatorIDs", "clearProcedureCreators", "addProgramCreatorIDs", "removeProgramCreatorIDs", "clearProgramCreators", "addRiskCreatorIDs", "removeRiskCreatorIDs", "clearRiskCreators", "addIdentityHolderCreatorIDs", "removeIdentityHolderCreatorIDs", "clearIdentityHolderCreators", "addScheduledJobCreatorIDs", "removeScheduledJobCreatorIDs", "clearScheduledJobCreators", "addStandardCreatorIDs", "removeStandardCreatorIDs", "clearStandardCreators", "addTemplateCreatorIDs", "removeTemplateCreatorIDs", "clearTemplateCreators", "addSubprocessorCreatorIDs", "removeSubprocessorCreatorIDs", "clearSubprocessorCreators", "addTrustCenterDocCreatorIDs", "removeTrustCenterDocCreatorIDs", "clearTrustCenterDocCreators", "addTrustCenterSubprocessorCreatorIDs", "removeTrustCenterSubprocessorCreatorIDs", "clearTrustCenterSubprocessorCreators", "addActionPlanCreatorIDs", "removeActionPlanCreatorIDs", "clearActionPlanCreators", "settingID", "clearSetting", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addAPITokenIDs", "removeAPITokenIDs", "clearAPITokens", "addEmailTemplateIDs", "removeEmailTemplateIDs", "clearEmailTemplates", "addNotificationPreferenceIDs", "removeNotificationPreferenceIDs", "clearNotificationPreferences", "addNotificationTemplateIDs", "removeNotificationTemplateIDs", "clearNotificationTemplates", "addFileIDs", "removeFileIDs", "clearFiles", "addEventIDs", "removeEventIDs", "clearEvents", "addSecretIDs", "removeSecretIDs", "clearSecrets", "avatarFileID", "clearAvatarFile", "addGroupIDs", "removeGroupIDs", "clearGroups", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addOrgSubscriptionIDs", "removeOrgSubscriptionIDs", "clearOrgSubscriptions", "addInviteIDs", "removeInviteIDs", "clearInvites", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addEntityIDs", "removeEntityIDs", "clearEntities", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addEntityTypeIDs", "removeEntityTypeIDs", "clearEntityTypes", "addContactIDs", "removeContactIDs", "clearContacts", "addNoteIDs", "removeNoteIDs", "clearNotes", "addTaskIDs", "removeTaskIDs", "clearTasks", "addProgramIDs", "removeProgramIDs", "clearPrograms", "addSystemDetailIDs", "removeSystemDetailIDs", "clearSystemDetails", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addInternalPolicyIDs", "removeInternalPolicyIDs", "clearInternalPolicies", "addRiskIDs", "removeRiskIDs", "clearRisks", "addControlObjectiveIDs", "removeControlObjectiveIDs", "clearControlObjectives", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives", "addControlIDs", "removeControlIDs", "clearControls", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addControlImplementationIDs", "removeControlImplementationIDs", "clearControlImplementations", "addMappedControlIDs", "removeMappedControlIDs", "clearMappedControls", "addEvidenceIDs", "removeEvidenceIDs", "clearEvidence", "addStandardIDs", "removeStandardIDs", "clearStandards", "addActionPlanIDs", "removeActionPlanIDs", "clearActionPlans", "addCustomDomainIDs", "removeCustomDomainIDs", "clearCustomDomains", "addJobRunnerIDs", "removeJobRunnerIDs", "clearJobRunners", "addJobRunnerTokenIDs", "removeJobRunnerTokenIDs", "clearJobRunnerTokens", "addJobRunnerRegistrationTokenIDs", "removeJobRunnerRegistrationTokenIDs", "clearJobRunnerRegistrationTokens", "addDNSVerificationIDs", "removeDNSVerificationIDs", "clearDNSVerifications", "addJobTemplateIDs", "removeJobTemplateIDs", "clearJobTemplates", "addScheduledJobIDs", "removeScheduledJobIDs", "clearScheduledJobs", "addJobResultIDs", "removeJobResultIDs", "clearJobResults", "addScheduledJobRunIDs", "removeScheduledJobRunIDs", "clearScheduledJobRuns", "addTrustCenterIDs", "removeTrustCenterIDs", "clearTrustCenters", "addAssetIDs", "removeAssetIDs", "clearAssets", "addScanIDs", "removeScanIDs", "clearScans", "addSLADefinitionIDs", "removeSLADefinitionIDs", "clearSLADefinitions", "addSubprocessorIDs", "removeSubprocessorIDs", "clearSubprocessors", "addExportIDs", "removeExportIDs", "clearExports", "addTrustCenterWatermarkConfigIDs", "removeTrustCenterWatermarkConfigIDs", "clearTrustCenterWatermarkConfigs", "addImpersonationEventIDs", "removeImpersonationEventIDs", "clearImpersonationEvents", "addAssessmentIDs", "removeAssessmentIDs", "clearAssessments", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addCustomTypeEnumIDs", "removeCustomTypeEnumIDs", "clearCustomTypeEnums", "addTagDefinitionIDs", "removeTagDefinitionIDs", "clearTagDefinitions", "addRemediationIDs", "removeRemediationIDs", "clearRemediations", "addFindingIDs", "removeFindingIDs", "clearFindings", "addReviewIDs", "removeReviewIDs", "clearReviews", "addVulnerabilityIDs", "removeVulnerabilityIDs", "clearVulnerabilities", "addWorkflowDefinitionIDs", "removeWorkflowDefinitionIDs", "clearWorkflowDefinitions", "addWorkflowInstanceIDs", "removeWorkflowInstanceIDs", "clearWorkflowInstances", "addWorkflowEventIDs", "removeWorkflowEventIDs", "clearWorkflowEvents", "addWorkflowAssignmentIDs", "removeWorkflowAssignmentIDs", "clearWorkflowAssignments", "addWorkflowAssignmentTargetIDs", "removeWorkflowAssignmentTargetIDs", "clearWorkflowAssignmentTargets", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs", "addDirectoryAccountIDs", "removeDirectoryAccountIDs", "clearDirectoryAccounts", "addDirectoryGroupIDs", "removeDirectoryGroupIDs", "clearDirectoryGroups", "addDirectorySyncRunIDs", "removeDirectorySyncRunIDs", "clearDirectorySyncRuns", "addDiscussionIDs", "removeDiscussionIDs", "clearDiscussions", "addVendorScoringConfigIDs", "removeVendorScoringConfigIDs", "clearVendorScoringConfigs", "addVendorRiskScoreIDs", "removeVendorRiskScoreIDs", "clearVendorRiskScores", "addOrgMembers", "removeOrgMembers", "updateOrgSettings"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "description", "clearDescription", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarUpdatedAt", "clearAvatarUpdatedAt", "addActionPlanCreatorIDs", "removeActionPlanCreatorIDs", "clearActionPlanCreators", "addAPITokenCreatorIDs", "removeAPITokenCreatorIDs", "clearAPITokenCreators", "addAssessmentCreatorIDs", "removeAssessmentCreatorIDs", "clearAssessmentCreators", "addAssetCreatorIDs", "removeAssetCreatorIDs", "clearAssetCreators", "addCampaignCreatorIDs", "removeCampaignCreatorIDs", "clearCampaignCreators", "addCampaignTargetCreatorIDs", "removeCampaignTargetCreatorIDs", "clearCampaignTargetCreators", "addCheckResultCreatorIDs", "removeCheckResultCreatorIDs", "clearCheckResultCreators", "addContactCreatorIDs", "removeContactCreatorIDs", "clearContactCreators", "addControlCreatorIDs", "removeControlCreatorIDs", "clearControlCreators", "addControlImplementationCreatorIDs", "removeControlImplementationCreatorIDs", "clearControlImplementationCreators", "addControlObjectiveCreatorIDs", "removeControlObjectiveCreatorIDs", "clearControlObjectiveCreators", "addCustomTypeEnumCreatorIDs", "removeCustomTypeEnumCreatorIDs", "clearCustomTypeEnumCreators", "addDiscussionCreatorIDs", "removeDiscussionCreatorIDs", "clearDiscussionCreators", "addEmailTemplateCreatorIDs", "removeEmailTemplateCreatorIDs", "clearEmailTemplateCreators", "addEntityCreatorIDs", "removeEntityCreatorIDs", "clearEntityCreators", "addEntityTypeCreatorIDs", "removeEntityTypeCreatorIDs", "clearEntityTypeCreators", "addEvidenceCreatorIDs", "removeEvidenceCreatorIDs", "clearEvidenceCreators", "addExportCreatorIDs", "removeExportCreatorIDs", "clearExportCreators", "addFileCreatorIDs", "removeFileCreatorIDs", "clearFileCreators", "addFindingCreatorIDs", "removeFindingCreatorIDs", "clearFindingCreators", "addGroupCreatorIDs", "removeGroupCreatorIDs", "clearGroupCreators", "addIdentityHolderCreatorIDs", "removeIdentityHolderCreatorIDs", "clearIdentityHolderCreators", "addIntegrationCreatorIDs", "removeIntegrationCreatorIDs", "clearIntegrationCreators", "addIntegrationWebhookCreatorIDs", "removeIntegrationWebhookCreatorIDs", "clearIntegrationWebhookCreators", "addInternalPolicyCreatorIDs", "removeInternalPolicyCreatorIDs", "clearInternalPolicyCreators", "addJobRunnerCreatorIDs", "removeJobRunnerCreatorIDs", "clearJobRunnerCreators", "addJobRunnerRegistrationTokenCreatorIDs", "removeJobRunnerRegistrationTokenCreatorIDs", "clearJobRunnerRegistrationTokenCreators", "addJobRunnerTokenCreatorIDs", "removeJobRunnerTokenCreatorIDs", "clearJobRunnerTokenCreators", "addJobTemplateCreatorIDs", "removeJobTemplateCreatorIDs", "clearJobTemplateCreators", "addMappedControlCreatorIDs", "removeMappedControlCreatorIDs", "clearMappedControlCreators", "addNarrativeCreatorIDs", "removeNarrativeCreatorIDs", "clearNarrativeCreators", "addNoteCreatorIDs", "removeNoteCreatorIDs", "clearNoteCreators", "addNotificationTemplateCreatorIDs", "removeNotificationTemplateCreatorIDs", "clearNotificationTemplateCreators", "addOrganizationCreatorIDs", "removeOrganizationCreatorIDs", "clearOrganizationCreators", "addPlatformCreatorIDs", "removePlatformCreatorIDs", "clearPlatformCreators", "addProcedureCreatorIDs", "removeProcedureCreatorIDs", "clearProcedureCreators", "addProgramCreatorIDs", "removeProgramCreatorIDs", "clearProgramCreators", "addRemediationCreatorIDs", "removeRemediationCreatorIDs", "clearRemediationCreators", "addReviewCreatorIDs", "removeReviewCreatorIDs", "clearReviewCreators", "addRiskCreatorIDs", "removeRiskCreatorIDs", "clearRiskCreators", "addScanCreatorIDs", "removeScanCreatorIDs", "clearScanCreators", "addScheduledJobCreatorIDs", "removeScheduledJobCreatorIDs", "clearScheduledJobCreators", "addScheduledJobRunCreatorIDs", "removeScheduledJobRunCreatorIDs", "clearScheduledJobRunCreators", "addStandardCreatorIDs", "removeStandardCreatorIDs", "clearStandardCreators", "addSubcontrolCreatorIDs", "removeSubcontrolCreatorIDs", "clearSubcontrolCreators", "addSubprocessorCreatorIDs", "removeSubprocessorCreatorIDs", "clearSubprocessorCreators", "addSubscriberCreatorIDs", "removeSubscriberCreatorIDs", "clearSubscriberCreators", "addSystemDetailCreatorIDs", "removeSystemDetailCreatorIDs", "clearSystemDetailCreators", "addTagDefinitionCreatorIDs", "removeTagDefinitionCreatorIDs", "clearTagDefinitionCreators", "addTaskCreatorIDs", "removeTaskCreatorIDs", "clearTaskCreators", "addTemplateCreatorIDs", "removeTemplateCreatorIDs", "clearTemplateCreators", "addTrustCenterCreatorIDs", "removeTrustCenterCreatorIDs", "clearTrustCenterCreators", "addTrustCenterComplianceCreatorIDs", "removeTrustCenterComplianceCreatorIDs", "clearTrustCenterComplianceCreators", "addTrustCenterDocCreatorIDs", "removeTrustCenterDocCreatorIDs", "clearTrustCenterDocCreators", "addTrustCenterEntityCreatorIDs", "removeTrustCenterEntityCreatorIDs", "clearTrustCenterEntityCreators", "addTrustCenterFaqCreatorIDs", "removeTrustCenterFaqCreatorIDs", "clearTrustCenterFaqCreators", "addTrustCenterNdaRequestCreatorIDs", "removeTrustCenterNdaRequestCreatorIDs", "clearTrustCenterNdaRequestCreators", "addTrustCenterSubprocessorCreatorIDs", "removeTrustCenterSubprocessorCreatorIDs", "clearTrustCenterSubprocessorCreators", "addTrustCenterWatermarkConfigCreatorIDs", "removeTrustCenterWatermarkConfigCreatorIDs", "clearTrustCenterWatermarkConfigCreators", "addUserCreatorIDs", "removeUserCreatorIDs", "clearUserCreators", "addUserSettingCreatorIDs", "removeUserSettingCreatorIDs", "clearUserSettingCreators", "addVendorRiskScoreCreatorIDs", "removeVendorRiskScoreCreatorIDs", "clearVendorRiskScoreCreators", "addVulnerabilityCreatorIDs", "removeVulnerabilityCreatorIDs", "clearVulnerabilityCreators", "addWorkflowAssignmentCreatorIDs", "removeWorkflowAssignmentCreatorIDs", "clearWorkflowAssignmentCreators", "addWorkflowAssignmentTargetCreatorIDs", "removeWorkflowAssignmentTargetCreatorIDs", "clearWorkflowAssignmentTargetCreators", "addWorkflowDefinitionCreatorIDs", "removeWorkflowDefinitionCreatorIDs", "clearWorkflowDefinitionCreators", "addWorkflowEventCreatorIDs", "removeWorkflowEventCreatorIDs", "clearWorkflowEventCreators", "addWorkflowInstanceCreatorIDs", "removeWorkflowInstanceCreatorIDs", "clearWorkflowInstanceCreators", "addWorkflowObjectRefCreatorIDs", "removeWorkflowObjectRefCreatorIDs", "clearWorkflowObjectRefCreators", "addWorkflowProposalCreatorIDs", "removeWorkflowProposalCreatorIDs", "clearWorkflowProposalCreators", "addCampaignsManagerIDs", "removeCampaignsManagerIDs", "clearCampaignsManager", "addComplianceManagerIDs", "removeComplianceManagerIDs", "clearComplianceManager", "addGroupManagerIDs", "removeGroupManagerIDs", "clearGroupManager", "addPoliciesManagerIDs", "removePoliciesManagerIDs", "clearPoliciesManager", "addRegistryManagerIDs", "removeRegistryManagerIDs", "clearRegistryManager", "addRiskManagerIDs", "removeRiskManagerIDs", "clearRiskManager", "addTrustCenterManagerIDs", "removeTrustCenterManagerIDs", "clearTrustCenterManager", "addWorkflowsManagerIDs", "removeWorkflowsManagerIDs", "clearWorkflowsManager", "settingID", "clearSetting", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addAPITokenIDs", "removeAPITokenIDs", "clearAPITokens", "addEmailTemplateIDs", "removeEmailTemplateIDs", "clearEmailTemplates", "addNotificationPreferenceIDs", "removeNotificationPreferenceIDs", "clearNotificationPreferences", "addNotificationTemplateIDs", "removeNotificationTemplateIDs", "clearNotificationTemplates", "addFileIDs", "removeFileIDs", "clearFiles", "addEventIDs", "removeEventIDs", "clearEvents", "addSecretIDs", "removeSecretIDs", "clearSecrets", "avatarFileID", "clearAvatarFile", "addGroupIDs", "removeGroupIDs", "clearGroups", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addOrgSubscriptionIDs", "removeOrgSubscriptionIDs", "clearOrgSubscriptions", "addInviteIDs", "removeInviteIDs", "clearInvites", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addEntityIDs", "removeEntityIDs", "clearEntities", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addEntityTypeIDs", "removeEntityTypeIDs", "clearEntityTypes", "addContactIDs", "removeContactIDs", "clearContacts", "addNoteIDs", "removeNoteIDs", "clearNotes", "addTaskIDs", "removeTaskIDs", "clearTasks", "addProgramIDs", "removeProgramIDs", "clearPrograms", "addSystemDetailIDs", "removeSystemDetailIDs", "clearSystemDetails", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addInternalPolicyIDs", "removeInternalPolicyIDs", "clearInternalPolicies", "addRiskIDs", "removeRiskIDs", "clearRisks", "addControlObjectiveIDs", "removeControlObjectiveIDs", "clearControlObjectives", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives", "addControlIDs", "removeControlIDs", "clearControls", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addControlImplementationIDs", "removeControlImplementationIDs", "clearControlImplementations", "addMappedControlIDs", "removeMappedControlIDs", "clearMappedControls", "addEvidenceIDs", "removeEvidenceIDs", "clearEvidence", "addStandardIDs", "removeStandardIDs", "clearStandards", "addActionPlanIDs", "removeActionPlanIDs", "clearActionPlans", "addCustomDomainIDs", "removeCustomDomainIDs", "clearCustomDomains", "addJobRunnerIDs", "removeJobRunnerIDs", "clearJobRunners", "addJobRunnerTokenIDs", "removeJobRunnerTokenIDs", "clearJobRunnerTokens", "addJobRunnerRegistrationTokenIDs", "removeJobRunnerRegistrationTokenIDs", "clearJobRunnerRegistrationTokens", "addDNSVerificationIDs", "removeDNSVerificationIDs", "clearDNSVerifications", "addJobTemplateIDs", "removeJobTemplateIDs", "clearJobTemplates", "addScheduledJobIDs", "removeScheduledJobIDs", "clearScheduledJobs", "addJobResultIDs", "removeJobResultIDs", "clearJobResults", "addScheduledJobRunIDs", "removeScheduledJobRunIDs", "clearScheduledJobRuns", "addTrustCenterIDs", "removeTrustCenterIDs", "clearTrustCenters", "addAssetIDs", "removeAssetIDs", "clearAssets", "addScanIDs", "removeScanIDs", "clearScans", "addSLADefinitionIDs", "removeSLADefinitionIDs", "clearSLADefinitions", "addSubprocessorIDs", "removeSubprocessorIDs", "clearSubprocessors", "addExportIDs", "removeExportIDs", "clearExports", "addTrustCenterWatermarkConfigIDs", "removeTrustCenterWatermarkConfigIDs", "clearTrustCenterWatermarkConfigs", "addImpersonationEventIDs", "removeImpersonationEventIDs", "clearImpersonationEvents", "addAssessmentIDs", "removeAssessmentIDs", "clearAssessments", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addCustomTypeEnumIDs", "removeCustomTypeEnumIDs", "clearCustomTypeEnums", "addTagDefinitionIDs", "removeTagDefinitionIDs", "clearTagDefinitions", "addRemediationIDs", "removeRemediationIDs", "clearRemediations", "addFindingIDs", "removeFindingIDs", "clearFindings", "addReviewIDs", "removeReviewIDs", "clearReviews", "addVulnerabilityIDs", "removeVulnerabilityIDs", "clearVulnerabilities", "addWorkflowDefinitionIDs", "removeWorkflowDefinitionIDs", "clearWorkflowDefinitions", "addWorkflowInstanceIDs", "removeWorkflowInstanceIDs", "clearWorkflowInstances", "addWorkflowEventIDs", "removeWorkflowEventIDs", "clearWorkflowEvents", "addWorkflowAssignmentIDs", "removeWorkflowAssignmentIDs", "clearWorkflowAssignments", "addWorkflowAssignmentTargetIDs", "removeWorkflowAssignmentTargetIDs", "clearWorkflowAssignmentTargets", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs", "addDirectoryAccountIDs", "removeDirectoryAccountIDs", "clearDirectoryAccounts", "addDirectoryGroupIDs", "removeDirectoryGroupIDs", "clearDirectoryGroups", "addDirectorySyncRunIDs", "removeDirectorySyncRunIDs", "clearDirectorySyncRuns", "addDiscussionIDs", "removeDiscussionIDs", "clearDiscussions", "addVendorScoringConfigIDs", "removeVendorScoringConfigIDs", "clearVendorScoringConfigs", "addVendorRiskScoreIDs", "removeVendorRiskScoreIDs", "clearVendorRiskScores", "addOrgMembers", "removeOrgMembers", "updateOrgSettings"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -363678,6 +370328,174 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearAvatarUpdatedAt = data + case "addActionPlanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionPlanCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddActionPlanCreatorIDs = data + case "removeActionPlanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionPlanCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveActionPlanCreatorIDs = data + case "clearActionPlanCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionPlanCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearActionPlanCreators = data + case "addAPITokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAPITokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAPITokenCreatorIDs = data + case "removeAPITokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAPITokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAPITokenCreatorIDs = data + case "clearAPITokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAPITokenCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAPITokenCreators = data + case "addAssessmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAssessmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAssessmentCreatorIDs = data + case "removeAssessmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAssessmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAssessmentCreatorIDs = data + case "clearAssessmentCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAssessmentCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAssessmentCreators = data + case "addAssetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAssetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAssetCreatorIDs = data + case "removeAssetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAssetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAssetCreatorIDs = data + case "clearAssetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAssetCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAssetCreators = data + case "addCampaignCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCampaignCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddCampaignCreatorIDs = data + case "removeCampaignCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCampaignCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveCampaignCreatorIDs = data + case "clearCampaignCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCampaignCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearCampaignCreators = data + case "addCampaignTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCampaignTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddCampaignTargetCreatorIDs = data + case "removeCampaignTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCampaignTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveCampaignTargetCreatorIDs = data + case "clearCampaignTargetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCampaignTargetCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearCampaignTargetCreators = data + case "addCheckResultCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCheckResultCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddCheckResultCreatorIDs = data + case "removeCheckResultCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCheckResultCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveCheckResultCreatorIDs = data + case "clearCheckResultCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCheckResultCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearCheckResultCreators = data + case "addContactCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddContactCreatorIDs = data + case "removeContactCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveContactCreatorIDs = data + case "clearContactCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContactCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearContactCreators = data case "addControlCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -363741,237 +370559,216 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearControlObjectiveCreators = data - case "addEvidenceCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEvidenceCreatorIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.AddEvidenceCreatorIDs = data - case "removeEvidenceCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEvidenceCreatorIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.RemoveEvidenceCreatorIDs = data - case "clearEvidenceCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvidenceCreators")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ClearEvidenceCreators = data - case "addAssetCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAssetCreatorIDs")) + case "addCustomTypeEnumCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCustomTypeEnumCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddAssetCreatorIDs = data - case "removeAssetCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAssetCreatorIDs")) + it.AddCustomTypeEnumCreatorIDs = data + case "removeCustomTypeEnumCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCustomTypeEnumCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveAssetCreatorIDs = data - case "clearAssetCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAssetCreators")) + it.RemoveCustomTypeEnumCreatorIDs = data + case "clearCustomTypeEnumCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCustomTypeEnumCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearAssetCreators = data - case "addFindingCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFindingCreatorIDs")) + it.ClearCustomTypeEnumCreators = data + case "addDiscussionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDiscussionCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddFindingCreatorIDs = data - case "removeFindingCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFindingCreatorIDs")) + it.AddDiscussionCreatorIDs = data + case "removeDiscussionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDiscussionCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveFindingCreatorIDs = data - case "clearFindingCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFindingCreators")) + it.RemoveDiscussionCreatorIDs = data + case "clearDiscussionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDiscussionCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearFindingCreators = data - case "addVulnerabilityCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addVulnerabilityCreatorIDs")) + it.ClearDiscussionCreators = data + case "addEmailTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEmailTemplateCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddVulnerabilityCreatorIDs = data - case "removeVulnerabilityCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeVulnerabilityCreatorIDs")) + it.AddEmailTemplateCreatorIDs = data + case "removeEmailTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEmailTemplateCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveVulnerabilityCreatorIDs = data - case "clearVulnerabilityCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVulnerabilityCreators")) + it.RemoveEmailTemplateCreatorIDs = data + case "clearEmailTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEmailTemplateCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearVulnerabilityCreators = data - case "addGroupCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupCreatorIDs")) + it.ClearEmailTemplateCreators = data + case "addEntityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddGroupCreatorIDs = data - case "removeGroupCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupCreatorIDs")) + it.AddEntityCreatorIDs = data + case "removeEntityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveGroupCreatorIDs = data - case "clearGroupCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroupCreators")) + it.RemoveEntityCreatorIDs = data + case "clearEntityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntityCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearGroupCreators = data - case "addInternalPolicyCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInternalPolicyCreatorIDs")) + it.ClearEntityCreators = data + case "addEntityTypeCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityTypeCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddInternalPolicyCreatorIDs = data - case "removeInternalPolicyCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInternalPolicyCreatorIDs")) + it.AddEntityTypeCreatorIDs = data + case "removeEntityTypeCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityTypeCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveInternalPolicyCreatorIDs = data - case "clearInternalPolicyCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInternalPolicyCreators")) + it.RemoveEntityTypeCreatorIDs = data + case "clearEntityTypeCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntityTypeCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearInternalPolicyCreators = data - case "addMappedControlCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addMappedControlCreatorIDs")) + it.ClearEntityTypeCreators = data + case "addEvidenceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEvidenceCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddMappedControlCreatorIDs = data - case "removeMappedControlCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeMappedControlCreatorIDs")) + it.AddEvidenceCreatorIDs = data + case "removeEvidenceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEvidenceCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveMappedControlCreatorIDs = data - case "clearMappedControlCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMappedControlCreators")) + it.RemoveEvidenceCreatorIDs = data + case "clearEvidenceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvidenceCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearMappedControlCreators = data - case "addNarrativeCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeCreatorIDs")) + it.ClearEvidenceCreators = data + case "addExportCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addExportCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddNarrativeCreatorIDs = data - case "removeNarrativeCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeCreatorIDs")) + it.AddExportCreatorIDs = data + case "removeExportCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeExportCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveNarrativeCreatorIDs = data - case "clearNarrativeCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarrativeCreators")) + it.RemoveExportCreatorIDs = data + case "clearExportCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExportCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearNarrativeCreators = data - case "addProcedureCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureCreatorIDs")) + it.ClearExportCreators = data + case "addFileCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddProcedureCreatorIDs = data - case "removeProcedureCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureCreatorIDs")) + it.AddFileCreatorIDs = data + case "removeFileCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveProcedureCreatorIDs = data - case "clearProcedureCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedureCreators")) + it.RemoveFileCreatorIDs = data + case "clearFileCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFileCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearProcedureCreators = data - case "addProgramCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProgramCreatorIDs")) + it.ClearFileCreators = data + case "addFindingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFindingCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddProgramCreatorIDs = data - case "removeProgramCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProgramCreatorIDs")) + it.AddFindingCreatorIDs = data + case "removeFindingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFindingCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveProgramCreatorIDs = data - case "clearProgramCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProgramCreators")) + it.RemoveFindingCreatorIDs = data + case "clearFindingCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFindingCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearProgramCreators = data - case "addRiskCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskCreatorIDs")) + it.ClearFindingCreators = data + case "addGroupCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddRiskCreatorIDs = data - case "removeRiskCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskCreatorIDs")) + it.AddGroupCreatorIDs = data + case "removeGroupCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveRiskCreatorIDs = data - case "clearRiskCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRiskCreators")) + it.RemoveGroupCreatorIDs = data + case "clearGroupCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroupCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearRiskCreators = data + it.ClearGroupCreators = data case "addIdentityHolderCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIdentityHolderCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -363993,6 +370790,405 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearIdentityHolderCreators = data + case "addIntegrationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddIntegrationCreatorIDs = data + case "removeIntegrationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveIntegrationCreatorIDs = data + case "clearIntegrationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrationCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIntegrationCreators = data + case "addIntegrationWebhookCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationWebhookCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddIntegrationWebhookCreatorIDs = data + case "removeIntegrationWebhookCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationWebhookCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveIntegrationWebhookCreatorIDs = data + case "clearIntegrationWebhookCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrationWebhookCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIntegrationWebhookCreators = data + case "addInternalPolicyCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInternalPolicyCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddInternalPolicyCreatorIDs = data + case "removeInternalPolicyCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInternalPolicyCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveInternalPolicyCreatorIDs = data + case "clearInternalPolicyCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInternalPolicyCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearInternalPolicyCreators = data + case "addJobRunnerCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addJobRunnerCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddJobRunnerCreatorIDs = data + case "removeJobRunnerCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeJobRunnerCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveJobRunnerCreatorIDs = data + case "clearJobRunnerCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearJobRunnerCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearJobRunnerCreators = data + case "addJobRunnerRegistrationTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addJobRunnerRegistrationTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddJobRunnerRegistrationTokenCreatorIDs = data + case "removeJobRunnerRegistrationTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeJobRunnerRegistrationTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveJobRunnerRegistrationTokenCreatorIDs = data + case "clearJobRunnerRegistrationTokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearJobRunnerRegistrationTokenCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearJobRunnerRegistrationTokenCreators = data + case "addJobRunnerTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addJobRunnerTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddJobRunnerTokenCreatorIDs = data + case "removeJobRunnerTokenCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeJobRunnerTokenCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveJobRunnerTokenCreatorIDs = data + case "clearJobRunnerTokenCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearJobRunnerTokenCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearJobRunnerTokenCreators = data + case "addJobTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addJobTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddJobTemplateCreatorIDs = data + case "removeJobTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeJobTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveJobTemplateCreatorIDs = data + case "clearJobTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearJobTemplateCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearJobTemplateCreators = data + case "addMappedControlCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addMappedControlCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddMappedControlCreatorIDs = data + case "removeMappedControlCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeMappedControlCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveMappedControlCreatorIDs = data + case "clearMappedControlCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMappedControlCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearMappedControlCreators = data + case "addNarrativeCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddNarrativeCreatorIDs = data + case "removeNarrativeCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveNarrativeCreatorIDs = data + case "clearNarrativeCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarrativeCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearNarrativeCreators = data + case "addNoteCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNoteCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddNoteCreatorIDs = data + case "removeNoteCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNoteCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveNoteCreatorIDs = data + case "clearNoteCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNoteCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearNoteCreators = data + case "addNotificationTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNotificationTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddNotificationTemplateCreatorIDs = data + case "removeNotificationTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNotificationTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveNotificationTemplateCreatorIDs = data + case "clearNotificationTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotificationTemplateCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearNotificationTemplateCreators = data + case "addOrganizationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddOrganizationCreatorIDs = data + case "removeOrganizationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveOrganizationCreatorIDs = data + case "clearOrganizationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizationCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearOrganizationCreators = data + case "addPlatformCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPlatformCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddPlatformCreatorIDs = data + case "removePlatformCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePlatformCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemovePlatformCreatorIDs = data + case "clearPlatformCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPlatformCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearPlatformCreators = data + case "addProcedureCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddProcedureCreatorIDs = data + case "removeProcedureCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveProcedureCreatorIDs = data + case "clearProcedureCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedureCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearProcedureCreators = data + case "addProgramCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProgramCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddProgramCreatorIDs = data + case "removeProgramCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProgramCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveProgramCreatorIDs = data + case "clearProgramCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProgramCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearProgramCreators = data + case "addRemediationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRemediationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddRemediationCreatorIDs = data + case "removeRemediationCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRemediationCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveRemediationCreatorIDs = data + case "clearRemediationCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRemediationCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearRemediationCreators = data + case "addReviewCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addReviewCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddReviewCreatorIDs = data + case "removeReviewCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeReviewCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveReviewCreatorIDs = data + case "clearReviewCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearReviewCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearReviewCreators = data + case "addRiskCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddRiskCreatorIDs = data + case "removeRiskCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveRiskCreatorIDs = data + case "clearRiskCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRiskCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearRiskCreators = data + case "addScanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addScanCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddScanCreatorIDs = data + case "removeScanCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeScanCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveScanCreatorIDs = data + case "clearScanCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScanCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearScanCreators = data case "addScheduledJobCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addScheduledJobCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -364014,6 +371210,27 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearScheduledJobCreators = data + case "addScheduledJobRunCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addScheduledJobRunCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddScheduledJobRunCreatorIDs = data + case "removeScheduledJobRunCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeScheduledJobRunCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveScheduledJobRunCreatorIDs = data + case "clearScheduledJobRunCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScheduledJobRunCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearScheduledJobRunCreators = data case "addStandardCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addStandardCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -364035,27 +371252,27 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearStandardCreators = data - case "addTemplateCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateCreatorIDs")) + case "addSubcontrolCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddTemplateCreatorIDs = data - case "removeTemplateCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateCreatorIDs")) + it.AddSubcontrolCreatorIDs = data + case "removeSubcontrolCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubcontrolCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveTemplateCreatorIDs = data - case "clearTemplateCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplateCreators")) + it.RemoveSubcontrolCreatorIDs = data + case "clearSubcontrolCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrolCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearTemplateCreators = data + it.ClearSubcontrolCreators = data case "addSubprocessorCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubprocessorCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -364077,6 +371294,153 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearSubprocessorCreators = data + case "addSubscriberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubscriberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddSubscriberCreatorIDs = data + case "removeSubscriberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubscriberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveSubscriberCreatorIDs = data + case "clearSubscriberCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscriberCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSubscriberCreators = data + case "addSystemDetailCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSystemDetailCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddSystemDetailCreatorIDs = data + case "removeSystemDetailCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSystemDetailCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveSystemDetailCreatorIDs = data + case "clearSystemDetailCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSystemDetailCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSystemDetailCreators = data + case "addTagDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTagDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTagDefinitionCreatorIDs = data + case "removeTagDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTagDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTagDefinitionCreatorIDs = data + case "clearTagDefinitionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTagDefinitionCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTagDefinitionCreators = data + case "addTaskCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTaskCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTaskCreatorIDs = data + case "removeTaskCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTaskCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTaskCreatorIDs = data + case "clearTaskCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTaskCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTaskCreators = data + case "addTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTemplateCreatorIDs = data + case "removeTemplateCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTemplateCreatorIDs = data + case "clearTemplateCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplateCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTemplateCreators = data + case "addTrustCenterCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterCreatorIDs = data + case "removeTrustCenterCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterCreatorIDs = data + case "clearTrustCenterCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterCreators = data + case "addTrustCenterComplianceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterComplianceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterComplianceCreatorIDs = data + case "removeTrustCenterComplianceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterComplianceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterComplianceCreatorIDs = data + case "clearTrustCenterComplianceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterComplianceCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterComplianceCreators = data case "addTrustCenterDocCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterDocCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -364098,6 +371462,69 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearTrustCenterDocCreators = data + case "addTrustCenterEntityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterEntityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterEntityCreatorIDs = data + case "removeTrustCenterEntityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterEntityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterEntityCreatorIDs = data + case "clearTrustCenterEntityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterEntityCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterEntityCreators = data + case "addTrustCenterFaqCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterFaqCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterFaqCreatorIDs = data + case "removeTrustCenterFaqCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterFaqCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterFaqCreatorIDs = data + case "clearTrustCenterFaqCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterFaqCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterFaqCreators = data + case "addTrustCenterNdaRequestCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterNdaRequestCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterNdaRequestCreatorIDs = data + case "removeTrustCenterNdaRequestCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterNdaRequestCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterNdaRequestCreatorIDs = data + case "clearTrustCenterNdaRequestCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterNdaRequestCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterNdaRequestCreators = data case "addTrustCenterSubprocessorCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterSubprocessorCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -364119,27 +371546,426 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearTrustCenterSubprocessorCreators = data - case "addActionPlanCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionPlanCreatorIDs")) + case "addTrustCenterWatermarkConfigCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterWatermarkConfigCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddActionPlanCreatorIDs = data - case "removeActionPlanCreatorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionPlanCreatorIDs")) + it.AddTrustCenterWatermarkConfigCreatorIDs = data + case "removeTrustCenterWatermarkConfigCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterWatermarkConfigCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveActionPlanCreatorIDs = data - case "clearActionPlanCreators": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionPlanCreators")) + it.RemoveTrustCenterWatermarkConfigCreatorIDs = data + case "clearTrustCenterWatermarkConfigCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterWatermarkConfigCreators")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearActionPlanCreators = data + it.ClearTrustCenterWatermarkConfigCreators = data + case "addUserCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddUserCreatorIDs = data + case "removeUserCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveUserCreatorIDs = data + case "clearUserCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUserCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearUserCreators = data + case "addUserSettingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserSettingCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddUserSettingCreatorIDs = data + case "removeUserSettingCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserSettingCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveUserSettingCreatorIDs = data + case "clearUserSettingCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUserSettingCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearUserSettingCreators = data + case "addVendorRiskScoreCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addVendorRiskScoreCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddVendorRiskScoreCreatorIDs = data + case "removeVendorRiskScoreCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeVendorRiskScoreCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveVendorRiskScoreCreatorIDs = data + case "clearVendorRiskScoreCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVendorRiskScoreCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearVendorRiskScoreCreators = data + case "addVulnerabilityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addVulnerabilityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddVulnerabilityCreatorIDs = data + case "removeVulnerabilityCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeVulnerabilityCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveVulnerabilityCreatorIDs = data + case "clearVulnerabilityCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVulnerabilityCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearVulnerabilityCreators = data + case "addWorkflowAssignmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowAssignmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowAssignmentCreatorIDs = data + case "removeWorkflowAssignmentCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowAssignmentCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowAssignmentCreatorIDs = data + case "clearWorkflowAssignmentCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowAssignmentCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowAssignmentCreators = data + case "addWorkflowAssignmentTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowAssignmentTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowAssignmentTargetCreatorIDs = data + case "removeWorkflowAssignmentTargetCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowAssignmentTargetCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowAssignmentTargetCreatorIDs = data + case "clearWorkflowAssignmentTargetCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowAssignmentTargetCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowAssignmentTargetCreators = data + case "addWorkflowDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowDefinitionCreatorIDs = data + case "removeWorkflowDefinitionCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowDefinitionCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowDefinitionCreatorIDs = data + case "clearWorkflowDefinitionCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowDefinitionCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowDefinitionCreators = data + case "addWorkflowEventCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowEventCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowEventCreatorIDs = data + case "removeWorkflowEventCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowEventCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowEventCreatorIDs = data + case "clearWorkflowEventCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowEventCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowEventCreators = data + case "addWorkflowInstanceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowInstanceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowInstanceCreatorIDs = data + case "removeWorkflowInstanceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowInstanceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowInstanceCreatorIDs = data + case "clearWorkflowInstanceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowInstanceCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowInstanceCreators = data + case "addWorkflowObjectRefCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowObjectRefCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowObjectRefCreatorIDs = data + case "removeWorkflowObjectRefCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowObjectRefCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowObjectRefCreatorIDs = data + case "clearWorkflowObjectRefCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowObjectRefCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowObjectRefCreators = data + case "addWorkflowProposalCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowProposalCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowProposalCreatorIDs = data + case "removeWorkflowProposalCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowProposalCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowProposalCreatorIDs = data + case "clearWorkflowProposalCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowProposalCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowProposalCreators = data + case "addCampaignsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCampaignsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddCampaignsManagerIDs = data + case "removeCampaignsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCampaignsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveCampaignsManagerIDs = data + case "clearCampaignsManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCampaignsManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearCampaignsManager = data + case "addComplianceManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addComplianceManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddComplianceManagerIDs = data + case "removeComplianceManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeComplianceManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveComplianceManagerIDs = data + case "clearComplianceManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearComplianceManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearComplianceManager = data + case "addGroupManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddGroupManagerIDs = data + case "removeGroupManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveGroupManagerIDs = data + case "clearGroupManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroupManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearGroupManager = data + case "addPoliciesManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPoliciesManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddPoliciesManagerIDs = data + case "removePoliciesManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePoliciesManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemovePoliciesManagerIDs = data + case "clearPoliciesManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPoliciesManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearPoliciesManager = data + case "addRegistryManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRegistryManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddRegistryManagerIDs = data + case "removeRegistryManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRegistryManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveRegistryManagerIDs = data + case "clearRegistryManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRegistryManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearRegistryManager = data + case "addRiskManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddRiskManagerIDs = data + case "removeRiskManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveRiskManagerIDs = data + case "clearRiskManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRiskManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearRiskManager = data + case "addTrustCenterManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTrustCenterManagerIDs = data + case "removeTrustCenterManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTrustCenterManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTrustCenterManagerIDs = data + case "clearTrustCenterManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTrustCenterManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTrustCenterManager = data + case "addWorkflowsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWorkflowsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddWorkflowsManagerIDs = data + case "removeWorkflowsManagerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWorkflowsManagerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWorkflowsManagerIDs = data + case "clearWorkflowsManager": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWorkflowsManager")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWorkflowsManager = data case "settingID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) @@ -402818,76 +410644,1308 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj if obj == nil { return graphql.Null } - return ec._APIToken(ctx, sel, obj) - default: - if typedObj, ok := obj.(graphql.Marshaler); ok { - return typedObj - } else { - panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj)) + return ec._APIToken(ctx, sel, obj) + default: + if typedObj, ok := obj.(graphql.Marshaler); ok { + return typedObj + } else { + panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj)) + } + } +} + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var aPITokenImplementors = []string{"APIToken", "Node"} + +func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, obj *generated.APIToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APIToken") + case "id": + out.Values[i] = ec._APIToken_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._APIToken_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._APIToken_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._APIToken_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._APIToken_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._APIToken_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._APIToken_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._APIToken_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "token": + out.Values[i] = ec._APIToken_token(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "expiresAt": + out.Values[i] = ec._APIToken_expiresAt(ctx, field, obj) + case "description": + out.Values[i] = ec._APIToken_description(ctx, field, obj) + case "scopes": + out.Values[i] = ec._APIToken_scopes(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._APIToken_lastUsedAt(ctx, field, obj) + case "isActive": + out.Values[i] = ec._APIToken_isActive(ctx, field, obj) + case "revokedReason": + out.Values[i] = ec._APIToken_revokedReason(ctx, field, obj) + case "revokedBy": + out.Values[i] = ec._APIToken_revokedBy(ctx, field, obj) + case "revokedAt": + out.Values[i] = ec._APIToken_revokedAt(ctx, field, obj) + case "ssoAuthorizations": + out.Values[i] = ec._APIToken_ssoAuthorizations(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._APIToken_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenConnection") + case "edges": + out.Values[i] = ec._APITokenConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._APITokenConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._APITokenConnection_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenEdge") + case "node": + out.Values[i] = ec._APITokenEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._APITokenEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlan") + case "id": + out.Values[i] = ec._ActionPlan_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._ActionPlan_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ActionPlan_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ActionPlan_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ActionPlan_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ActionPlan_tags(ctx, field, obj) + case "revision": + out.Values[i] = ec._ActionPlan_revision(ctx, field, obj) + case "name": + out.Values[i] = ec._ActionPlan_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._ActionPlan_status(ctx, field, obj) + case "managementMode": + out.Values[i] = ec._ActionPlan_managementMode(ctx, field, obj) + case "details": + out.Values[i] = ec._ActionPlan_details(ctx, field, obj) + case "detailsJSON": + out.Values[i] = ec._ActionPlan_detailsJSON(ctx, field, obj) + case "approvalRequired": + out.Values[i] = ec._ActionPlan_approvalRequired(ctx, field, obj) + case "reviewDue": + out.Values[i] = ec._ActionPlan_reviewDue(ctx, field, obj) + case "reviewFrequency": + out.Values[i] = ec._ActionPlan_reviewFrequency(ctx, field, obj) + case "approverID": + out.Values[i] = ec._ActionPlan_approverID(ctx, field, obj) + case "delegateID": + out.Values[i] = ec._ActionPlan_delegateID(ctx, field, obj) + case "summary": + out.Values[i] = ec._ActionPlan_summary(ctx, field, obj) + case "tagSuggestions": + out.Values[i] = ec._ActionPlan_tagSuggestions(ctx, field, obj) + case "dismissedTagSuggestions": + out.Values[i] = ec._ActionPlan_dismissedTagSuggestions(ctx, field, obj) + case "controlSuggestions": + out.Values[i] = ec._ActionPlan_controlSuggestions(ctx, field, obj) + case "dismissedControlSuggestions": + out.Values[i] = ec._ActionPlan_dismissedControlSuggestions(ctx, field, obj) + case "improvementSuggestions": + out.Values[i] = ec._ActionPlan_improvementSuggestions(ctx, field, obj) + case "dismissedImprovementSuggestions": + out.Values[i] = ec._ActionPlan_dismissedImprovementSuggestions(ctx, field, obj) + case "url": + out.Values[i] = ec._ActionPlan_url(ctx, field, obj) + case "fileID": + out.Values[i] = ec._ActionPlan_fileID(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._ActionPlan_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._ActionPlan_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._ActionPlan_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._ActionPlan_systemInternalID(ctx, field, obj) + case "actionPlanKindName": + out.Values[i] = ec._ActionPlan_actionPlanKindName(ctx, field, obj) + case "actionPlanKindID": + out.Values[i] = ec._ActionPlan_actionPlanKindID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._ActionPlan_workflowEligibleMarker(ctx, field, obj) + case "title": + out.Values[i] = ec._ActionPlan_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._ActionPlan_description(ctx, field, obj) + case "dueDate": + out.Values[i] = ec._ActionPlan_dueDate(ctx, field, obj) + case "completedAt": + out.Values[i] = ec._ActionPlan_completedAt(ctx, field, obj) + case "priority": + out.Values[i] = ec._ActionPlan_priority(ctx, field, obj) + case "requiresApproval": + out.Values[i] = ec._ActionPlan_requiresApproval(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "blocked": + out.Values[i] = ec._ActionPlan_blocked(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "blockerReason": + out.Values[i] = ec._ActionPlan_blockerReason(ctx, field, obj) + case "metadata": + out.Values[i] = ec._ActionPlan_metadata(ctx, field, obj) + case "rawPayload": + out.Values[i] = ec._ActionPlan_rawPayload(ctx, field, obj) + case "source": + out.Values[i] = ec._ActionPlan_source(ctx, field, obj) + case "approver": + 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._ActionPlan_approver(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 "delegate": + 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._ActionPlan_delegate(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 "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "blockedGroups": + 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._ActionPlan_blockedGroups(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 "editors": + 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._ActionPlan_editors(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 "viewers": + 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._ActionPlan_viewers(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 "actionPlanKind": + 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._ActionPlan_actionPlanKind(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 "risks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_risks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controls": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_controls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "programs": + 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._ActionPlan_programs(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 "findings": + 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._ActionPlan_findings(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 "vulnerabilities": + 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._ActionPlan_vulnerabilities(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 "scans": + 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._ActionPlan_scans(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 "reviews": + 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._ActionPlan_reviews(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 "remediations": + 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._ActionPlan_remediations(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tasks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_tasks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "integrations": + 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._ActionPlan_integrations(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 "file": + 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._ActionPlan_file(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 "workflowObjectRefs": + 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._ActionPlan_workflowObjectRefs(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 "hasPendingWorkflow": + 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._ActionPlan_hasPendingWorkflow(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 "hasWorkflowHistory": + 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._ActionPlan_hasWorkflowHistory(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 "activeWorkflowInstances": + 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._ActionPlan_activeWorkflowInstances(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 "workflowTimeline": + 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._ActionPlan_workflowTimeline(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanConnection") + case "edges": + out.Values[i] = ec._ActionPlanConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ActionPlanConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._ActionPlanConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -// endregion ************************** interface.gotpl *************************** +var actionPlanEdgeImplementors = []string{"ActionPlanEdge"} -// region **************************** object.gotpl **************************** +func (ec *executionContext) _ActionPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanEdgeImplementors) -var aPITokenImplementors = []string{"APIToken", "Node"} + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanEdge") + case "node": + out.Values[i] = ec._ActionPlanEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ActionPlanEdge_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 + } -func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, obj *generated.APIToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenImplementors) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var assessmentImplementors = []string{"Assessment", "Node"} + +func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSet, obj *generated.Assessment) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APIToken") + out.Values[i] = graphql.MarshalString("Assessment") case "id": - out.Values[i] = ec._APIToken_id(ctx, field, obj) + out.Values[i] = ec._Assessment_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._APIToken_createdAt(ctx, field, obj) + out.Values[i] = ec._Assessment_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._APIToken_updatedAt(ctx, field, obj) + out.Values[i] = ec._Assessment_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._APIToken_createdBy(ctx, field, obj) + out.Values[i] = ec._Assessment_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._APIToken_updatedBy(ctx, field, obj) + out.Values[i] = ec._Assessment_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._APIToken_tags(ctx, field, obj) + out.Values[i] = ec._Assessment_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._APIToken_ownerID(ctx, field, obj) + out.Values[i] = ec._Assessment_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Assessment_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Assessment_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Assessment_systemInternalID(ctx, field, obj) case "name": - out.Values[i] = ec._APIToken_name(ctx, field, obj) + out.Values[i] = ec._Assessment_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "token": - out.Values[i] = ec._APIToken_token(ctx, field, obj) + case "assessmentType": + out.Values[i] = ec._Assessment_assessmentType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "expiresAt": - out.Values[i] = ec._APIToken_expiresAt(ctx, field, obj) - case "description": - out.Values[i] = ec._APIToken_description(ctx, field, obj) - case "scopes": - out.Values[i] = ec._APIToken_scopes(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._APIToken_lastUsedAt(ctx, field, obj) - case "isActive": - out.Values[i] = ec._APIToken_isActive(ctx, field, obj) - case "revokedReason": - out.Values[i] = ec._APIToken_revokedReason(ctx, field, obj) - case "revokedBy": - out.Values[i] = ec._APIToken_revokedBy(ctx, field, obj) - case "revokedAt": - out.Values[i] = ec._APIToken_revokedAt(ctx, field, obj) - case "ssoAuthorizations": - out.Values[i] = ec._APIToken_ssoAuthorizations(ctx, field, obj) + case "templateID": + out.Values[i] = ec._Assessment_templateID(ctx, field, obj) + case "jsonconfig": + out.Values[i] = ec._Assessment_jsonconfig(ctx, field, obj) + case "uischema": + out.Values[i] = ec._Assessment_uischema(ctx, field, obj) + case "responseDueDuration": + out.Values[i] = ec._Assessment_responseDueDuration(ctx, field, obj) case "owner": field := field @@ -402897,7 +411955,292 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._APIToken_owner(ctx, field, obj) + res = ec._Assessment_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "blockedGroups": + 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._Assessment_blockedGroups(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 "editors": + 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._Assessment_editors(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 "viewers": + 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._Assessment_viewers(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 "template": + 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._Assessment_template(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 "platforms": + 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._Assessment_platforms(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 "identityHolders": + 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._Assessment_identityHolders(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 "assessmentResponses": + 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._Assessment_assessmentResponses(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 "campaigns": + 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._Assessment_campaigns(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -402921,6 +412264,8 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "accessURL": + out.Values[i] = ec._Assessment_accessURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -402944,26 +412289,26 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, return out } -var aPITokenConnectionImplementors = []string{"APITokenConnection"} +var assessmentConnectionImplementors = []string{"AssessmentConnection"} -func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenConnectionImplementors) +func (ec *executionContext) _AssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenConnection") + out.Values[i] = graphql.MarshalString("AssessmentConnection") case "edges": - out.Values[i] = ec._APITokenConnection_edges(ctx, field, obj) + out.Values[i] = ec._AssessmentConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._APITokenConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._AssessmentConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._APITokenConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._AssessmentConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -402990,21 +412335,21 @@ func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.Sel return out } -var aPITokenEdgeImplementors = []string{"APITokenEdge"} +var assessmentEdgeImplementors = []string{"AssessmentEdge"} -func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenEdgeImplementors) +func (ec *executionContext) _AssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenEdge") + out.Values[i] = graphql.MarshalString("AssessmentEdge") case "node": - out.Values[i] = ec._APITokenEdge_node(ctx, field, obj) + out.Values[i] = ec._AssessmentEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._APITokenEdge_cursor(ctx, field, obj) + out.Values[i] = ec._AssessmentEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -403031,121 +412376,564 @@ func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.Selection return out } -var actionPlanImplementors = []string{"ActionPlan", "Node"} +var assessmentResponseImplementors = []string{"AssessmentResponse", "Node"} -func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlan) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanImplementors) +func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponse) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlan") + out.Values[i] = graphql.MarshalString("AssessmentResponse") case "id": - out.Values[i] = ec._ActionPlan_id(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._ActionPlan_createdAt(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._ActionPlan_updatedAt(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._ActionPlan_createdBy(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._ActionPlan_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._ActionPlan_tags(ctx, field, obj) - case "revision": - out.Values[i] = ec._ActionPlan_revision(ctx, field, obj) - case "name": - out.Values[i] = ec._ActionPlan_name(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_updatedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._AssessmentResponse_ownerID(ctx, field, obj) + case "assessmentID": + out.Values[i] = ec._AssessmentResponse_assessmentID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isTest": + out.Values[i] = ec._AssessmentResponse_isTest(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "campaignID": + out.Values[i] = ec._AssessmentResponse_campaignID(ctx, field, obj) + case "identityHolderID": + out.Values[i] = ec._AssessmentResponse_identityHolderID(ctx, field, obj) + case "entityID": + out.Values[i] = ec._AssessmentResponse_entityID(ctx, field, obj) + case "displayName": + out.Values[i] = ec._AssessmentResponse_displayName(ctx, field, obj) + case "email": + out.Values[i] = ec._AssessmentResponse_email(ctx, field, obj) + case "sendAttempts": + out.Values[i] = ec._AssessmentResponse_sendAttempts(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "emailDeliveredAt": + out.Values[i] = ec._AssessmentResponse_emailDeliveredAt(ctx, field, obj) + case "emailOpenedAt": + out.Values[i] = ec._AssessmentResponse_emailOpenedAt(ctx, field, obj) + case "emailClickedAt": + out.Values[i] = ec._AssessmentResponse_emailClickedAt(ctx, field, obj) + case "emailOpenCount": + out.Values[i] = ec._AssessmentResponse_emailOpenCount(ctx, field, obj) + case "emailClickCount": + out.Values[i] = ec._AssessmentResponse_emailClickCount(ctx, field, obj) + case "lastEmailEventAt": + out.Values[i] = ec._AssessmentResponse_lastEmailEventAt(ctx, field, obj) + case "emailMetadata": + out.Values[i] = ec._AssessmentResponse_emailMetadata(ctx, field, obj) case "status": - out.Values[i] = ec._ActionPlan_status(ctx, field, obj) - case "managementMode": - out.Values[i] = ec._ActionPlan_managementMode(ctx, field, obj) - case "details": - out.Values[i] = ec._ActionPlan_details(ctx, field, obj) - case "detailsJSON": - out.Values[i] = ec._ActionPlan_detailsJSON(ctx, field, obj) - case "approvalRequired": - out.Values[i] = ec._ActionPlan_approvalRequired(ctx, field, obj) - case "reviewDue": - out.Values[i] = ec._ActionPlan_reviewDue(ctx, field, obj) - case "reviewFrequency": - out.Values[i] = ec._ActionPlan_reviewFrequency(ctx, field, obj) - case "approverID": - out.Values[i] = ec._ActionPlan_approverID(ctx, field, obj) - case "delegateID": - out.Values[i] = ec._ActionPlan_delegateID(ctx, field, obj) - case "summary": - out.Values[i] = ec._ActionPlan_summary(ctx, field, obj) - case "tagSuggestions": - out.Values[i] = ec._ActionPlan_tagSuggestions(ctx, field, obj) - case "dismissedTagSuggestions": - out.Values[i] = ec._ActionPlan_dismissedTagSuggestions(ctx, field, obj) - case "controlSuggestions": - out.Values[i] = ec._ActionPlan_controlSuggestions(ctx, field, obj) - case "dismissedControlSuggestions": - out.Values[i] = ec._ActionPlan_dismissedControlSuggestions(ctx, field, obj) - case "improvementSuggestions": - out.Values[i] = ec._ActionPlan_improvementSuggestions(ctx, field, obj) - case "dismissedImprovementSuggestions": - out.Values[i] = ec._ActionPlan_dismissedImprovementSuggestions(ctx, field, obj) - case "url": - out.Values[i] = ec._ActionPlan_url(ctx, field, obj) - case "fileID": - out.Values[i] = ec._ActionPlan_fileID(ctx, field, obj) + out.Values[i] = ec._AssessmentResponse_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "assignedAt": + out.Values[i] = ec._AssessmentResponse_assignedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "startedAt": + out.Values[i] = ec._AssessmentResponse_startedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "completedAt": + out.Values[i] = ec._AssessmentResponse_completedAt(ctx, field, obj) + case "dueDate": + out.Values[i] = ec._AssessmentResponse_dueDate(ctx, field, obj) + case "documentDataID": + out.Values[i] = ec._AssessmentResponse_documentDataID(ctx, field, obj) + case "isDraft": + out.Values[i] = ec._AssessmentResponse_isDraft(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AssessmentResponse_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "assessment": + 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._AssessmentResponse_assessment(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 "campaign": + 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._AssessmentResponse_campaign(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 "identityHolder": + 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._AssessmentResponse_identityHolder(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 "entity": + 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._AssessmentResponse_entity(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 "document": + 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._AssessmentResponse_document(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 "vendorRiskScores": + 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._AssessmentResponse_vendorRiskScores(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var assessmentResponseConnectionImplementors = []string{"AssessmentResponseConnection"} + +func (ec *executionContext) _AssessmentResponseConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponseConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssessmentResponseConnection") + case "edges": + out.Values[i] = ec._AssessmentResponseConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._AssessmentResponseConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AssessmentResponseConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var assessmentResponseEdgeImplementors = []string{"AssessmentResponseEdge"} + +func (ec *executionContext) _AssessmentResponseEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponseEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssessmentResponseEdge") + case "node": + out.Values[i] = ec._AssessmentResponseEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._AssessmentResponseEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var assetImplementors = []string{"Asset", "Node"} + +func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, obj *generated.Asset) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Asset") + case "id": + out.Values[i] = ec._Asset_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Asset_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Asset_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Asset_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Asset_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Asset_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._ActionPlan_ownerID(ctx, field, obj) + out.Values[i] = ec._Asset_ownerID(ctx, field, obj) + case "internalOwner": + out.Values[i] = ec._Asset_internalOwner(ctx, field, obj) + case "internalOwnerUserID": + out.Values[i] = ec._Asset_internalOwnerUserID(ctx, field, obj) + case "internalOwnerGroupID": + out.Values[i] = ec._Asset_internalOwnerGroupID(ctx, field, obj) + case "assetSubtypeName": + out.Values[i] = ec._Asset_assetSubtypeName(ctx, field, obj) + case "assetSubtypeID": + out.Values[i] = ec._Asset_assetSubtypeID(ctx, field, obj) + case "assetDataClassificationName": + out.Values[i] = ec._Asset_assetDataClassificationName(ctx, field, obj) + case "assetDataClassificationID": + out.Values[i] = ec._Asset_assetDataClassificationID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._Asset_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._Asset_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._Asset_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._Asset_scopeID(ctx, field, obj) + case "accessModelName": + out.Values[i] = ec._Asset_accessModelName(ctx, field, obj) + case "accessModelID": + out.Values[i] = ec._Asset_accessModelID(ctx, field, obj) + case "encryptionStatusName": + out.Values[i] = ec._Asset_encryptionStatusName(ctx, field, obj) + case "encryptionStatusID": + out.Values[i] = ec._Asset_encryptionStatusID(ctx, field, obj) + case "securityTierName": + out.Values[i] = ec._Asset_securityTierName(ctx, field, obj) + case "securityTierID": + out.Values[i] = ec._Asset_securityTierID(ctx, field, obj) + case "criticalityName": + out.Values[i] = ec._Asset_criticalityName(ctx, field, obj) + case "criticalityID": + out.Values[i] = ec._Asset_criticalityID(ctx, field, obj) case "systemOwned": - out.Values[i] = ec._ActionPlan_systemOwned(ctx, field, obj) + out.Values[i] = ec._Asset_systemOwned(ctx, field, obj) case "internalNotes": - out.Values[i] = ec._ActionPlan_internalNotes(ctx, field, obj) + out.Values[i] = ec._Asset_internalNotes(ctx, field, obj) case "systemInternalID": - out.Values[i] = ec._ActionPlan_systemInternalID(ctx, field, obj) - case "actionPlanKindName": - out.Values[i] = ec._ActionPlan_actionPlanKindName(ctx, field, obj) - case "actionPlanKindID": - out.Values[i] = ec._ActionPlan_actionPlanKindID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._ActionPlan_workflowEligibleMarker(ctx, field, obj) - case "title": - out.Values[i] = ec._ActionPlan_title(ctx, field, obj) + out.Values[i] = ec._Asset_systemInternalID(ctx, field, obj) + case "assetType": + out.Values[i] = ec._Asset_assetType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "description": - out.Values[i] = ec._ActionPlan_description(ctx, field, obj) - case "dueDate": - out.Values[i] = ec._ActionPlan_dueDate(ctx, field, obj) - case "completedAt": - out.Values[i] = ec._ActionPlan_completedAt(ctx, field, obj) - case "priority": - out.Values[i] = ec._ActionPlan_priority(ctx, field, obj) - case "requiresApproval": - out.Values[i] = ec._ActionPlan_requiresApproval(ctx, field, obj) + case "name": + out.Values[i] = ec._Asset_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "blocked": - out.Values[i] = ec._ActionPlan_blocked(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Asset_displayName(ctx, field, obj) + case "description": + out.Values[i] = ec._Asset_description(ctx, field, obj) + case "identifier": + out.Values[i] = ec._Asset_identifier(ctx, field, obj) + case "website": + out.Values[i] = ec._Asset_website(ctx, field, obj) + case "physicalLocation": + out.Values[i] = ec._Asset_physicalLocation(ctx, field, obj) + case "region": + out.Values[i] = ec._Asset_region(ctx, field, obj) + case "containsPii": + out.Values[i] = ec._Asset_containsPii(ctx, field, obj) + case "sourceType": + out.Values[i] = ec._Asset_sourceType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "blockerReason": - out.Values[i] = ec._ActionPlan_blockerReason(ctx, field, obj) - case "metadata": - out.Values[i] = ec._ActionPlan_metadata(ctx, field, obj) - case "rawPayload": - out.Values[i] = ec._ActionPlan_rawPayload(ctx, field, obj) - case "source": - out.Values[i] = ec._ActionPlan_source(ctx, field, obj) - case "approver": + case "sourcePlatformID": + out.Values[i] = ec._Asset_sourcePlatformID(ctx, field, obj) + case "sourceIdentifier": + out.Values[i] = ec._Asset_sourceIdentifier(ctx, field, obj) + case "costCenter": + out.Values[i] = ec._Asset_costCenter(ctx, field, obj) + case "estimatedMonthlyCost": + out.Values[i] = ec._Asset_estimatedMonthlyCost(ctx, field, obj) + case "purchaseDate": + out.Values[i] = ec._Asset_purchaseDate(ctx, field, obj) + case "cpe": + out.Values[i] = ec._Asset_cpe(ctx, field, obj) + case "categories": + out.Values[i] = ec._Asset_categories(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._Asset_integrationID(ctx, field, obj) + case "observedAt": + out.Values[i] = ec._Asset_observedAt(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -403154,7 +412942,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_approver(ctx, field, obj) + res = ec._Asset_owner(ctx, field, obj) return res } @@ -403178,16 +412966,19 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "delegate": + case "blockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_delegate(ctx, field, obj) + res = ec._Asset_blockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -403211,16 +413002,19 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "owner": + case "editors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_owner(ctx, field, obj) + res = ec._Asset_editors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -403244,7 +413038,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403253,7 +413047,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_blockedGroups(ctx, field, obj) + res = ec._Asset_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403280,19 +413074,16 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "internalOwnerUser": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_editors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Asset_internalOwnerUser(ctx, field, obj) return res } @@ -403316,19 +413107,16 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "internalOwnerGroup": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_viewers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Asset_internalOwnerGroup(ctx, field, obj) return res } @@ -403352,7 +413140,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlanKind": + case "assetSubtype": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -403361,7 +413149,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_actionPlanKind(ctx, field, obj) + res = ec._Asset_assetSubtype(ctx, field, obj) return res } @@ -403385,19 +413173,16 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "assetDataClassification": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_risks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Asset_assetDataClassification(ctx, field, obj) return res } @@ -403421,19 +413206,16 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Asset_environment(ctx, field, obj) return res } @@ -403457,19 +413239,16 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_programs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Asset_scope(ctx, field, obj) return res } @@ -403493,19 +413272,49 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + case "accessModel": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_findings(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._Asset_accessModel(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 "encryptionStatus": + 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._Asset_encryptionStatus(ctx, field, obj) return res } @@ -403529,19 +413338,49 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vulnerabilities": + case "securityTier": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_vulnerabilities(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._Asset_securityTier(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 "criticality": + 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._Asset_criticality(ctx, field, obj) return res } @@ -403574,7 +413413,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_scans(ctx, field, obj) + res = ec._Asset_scans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403601,7 +413440,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviews": + case "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403610,7 +413449,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_reviews(ctx, field, obj) + res = ec._Asset_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403637,7 +413476,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "remediations": + case "platforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403646,7 +413485,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_remediations(ctx, field, obj) + res = ec._Asset_platforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403673,7 +413512,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "outOfScopePlatforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403682,7 +413521,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_tasks(ctx, field, obj) + res = ec._Asset_outOfScopePlatforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403709,7 +413548,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "identityHolders": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403718,7 +413557,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_integrations(ctx, field, obj) + res = ec._Asset_identityHolders(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403745,16 +413584,19 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "file": + case "controls": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_file(ctx, field, obj) + res = ec._Asset_controls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -403778,7 +413620,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403787,7 +413629,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_workflowObjectRefs(ctx, field, obj) + res = ec._Asset_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403814,7 +413656,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "internalPolicies": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403823,7 +413665,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_hasPendingWorkflow(ctx, field, obj) + res = ec._Asset_internalPolicies(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403850,19 +413692,49 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "sourcePlatform": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ActionPlan_hasWorkflowHistory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._Asset_sourcePlatform(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 "integration": + 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._Asset_integration(ctx, field, obj) return res } @@ -403886,7 +413758,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "connectedAssets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403895,7 +413767,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_activeWorkflowInstances(ctx, field, obj) + res = ec._Asset_connectedAssets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403922,7 +413794,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "connectedFrom": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403931,7 +413803,7 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ActionPlan_workflowTimeline(ctx, field, obj) + res = ec._Asset_connectedFrom(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403981,26 +413853,26 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe return out } -var actionPlanConnectionImplementors = []string{"ActionPlanConnection"} +var assetConnectionImplementors = []string{"AssetConnection"} -func (ec *executionContext) _ActionPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanConnectionImplementors) +func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssetConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanConnection") + out.Values[i] = graphql.MarshalString("AssetConnection") case "edges": - out.Values[i] = ec._ActionPlanConnection_edges(ctx, field, obj) + out.Values[i] = ec._AssetConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ActionPlanConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._AssetConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ActionPlanConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._AssetConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -404027,21 +413899,21 @@ func (ec *executionContext) _ActionPlanConnection(ctx context.Context, sel ast.S return out } -var actionPlanEdgeImplementors = []string{"ActionPlanEdge"} +var assetEdgeImplementors = []string{"AssetEdge"} -func (ec *executionContext) _ActionPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanEdgeImplementors) +func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssetEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanEdge") + out.Values[i] = graphql.MarshalString("AssetEdge") case "node": - out.Values[i] = ec._ActionPlanEdge_node(ctx, field, obj) + out.Values[i] = ec._AssetEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ActionPlanEdge_cursor(ctx, field, obj) + out.Values[i] = ec._AssetEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -404068,58 +413940,116 @@ func (ec *executionContext) _ActionPlanEdge(ctx context.Context, sel ast.Selecti return out } -var assessmentImplementors = []string{"Assessment", "Node"} +var campaignImplementors = []string{"Campaign", "Node"} -func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSet, obj *generated.Assessment) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentImplementors) +func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, obj *generated.Campaign) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Assessment") + out.Values[i] = graphql.MarshalString("Campaign") case "id": - out.Values[i] = ec._Assessment_id(ctx, field, obj) + out.Values[i] = ec._Campaign_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Assessment_createdAt(ctx, field, obj) + out.Values[i] = ec._Campaign_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Assessment_updatedAt(ctx, field, obj) + out.Values[i] = ec._Campaign_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Assessment_createdBy(ctx, field, obj) + out.Values[i] = ec._Campaign_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Assessment_updatedBy(ctx, field, obj) + out.Values[i] = ec._Campaign_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Campaign_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "tags": - out.Values[i] = ec._Assessment_tags(ctx, field, obj) + out.Values[i] = ec._Campaign_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Assessment_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Assessment_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Assessment_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Assessment_systemInternalID(ctx, field, obj) + out.Values[i] = ec._Campaign_ownerID(ctx, field, obj) + case "internalOwner": + out.Values[i] = ec._Campaign_internalOwner(ctx, field, obj) + case "internalOwnerUserID": + out.Values[i] = ec._Campaign_internalOwnerUserID(ctx, field, obj) + case "internalOwnerGroupID": + out.Values[i] = ec._Campaign_internalOwnerGroupID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._Campaign_workflowEligibleMarker(ctx, field, obj) case "name": - out.Values[i] = ec._Assessment_name(ctx, field, obj) + out.Values[i] = ec._Campaign_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "assessmentType": - out.Values[i] = ec._Assessment_assessmentType(ctx, field, obj) + case "description": + out.Values[i] = ec._Campaign_description(ctx, field, obj) + case "campaignType": + out.Values[i] = ec._Campaign_campaignType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._Campaign_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isActive": + out.Values[i] = ec._Campaign_isActive(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "scheduledAt": + out.Values[i] = ec._Campaign_scheduledAt(ctx, field, obj) + case "launchedAt": + out.Values[i] = ec._Campaign_launchedAt(ctx, field, obj) + case "completedAt": + out.Values[i] = ec._Campaign_completedAt(ctx, field, obj) + case "dueDate": + out.Values[i] = ec._Campaign_dueDate(ctx, field, obj) + case "isRecurring": + out.Values[i] = ec._Campaign_isRecurring(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "recurrenceFrequency": + out.Values[i] = ec._Campaign_recurrenceFrequency(ctx, field, obj) + case "recurrenceInterval": + out.Values[i] = ec._Campaign_recurrenceInterval(ctx, field, obj) + case "recurrenceTimezone": + out.Values[i] = ec._Campaign_recurrenceTimezone(ctx, field, obj) + case "recurrenceCron": + out.Values[i] = ec._Campaign_recurrenceCron(ctx, field, obj) + case "lastRunAt": + out.Values[i] = ec._Campaign_lastRunAt(ctx, field, obj) + case "nextRunAt": + out.Values[i] = ec._Campaign_nextRunAt(ctx, field, obj) + case "recurrenceEndAt": + out.Values[i] = ec._Campaign_recurrenceEndAt(ctx, field, obj) + case "recipientCount": + out.Values[i] = ec._Campaign_recipientCount(ctx, field, obj) + case "resendCount": + out.Values[i] = ec._Campaign_resendCount(ctx, field, obj) + case "lastResentAt": + out.Values[i] = ec._Campaign_lastResentAt(ctx, field, obj) + case "entityID": + out.Values[i] = ec._Campaign_entityID(ctx, field, obj) case "templateID": - out.Values[i] = ec._Assessment_templateID(ctx, field, obj) - case "jsonconfig": - out.Values[i] = ec._Assessment_jsonconfig(ctx, field, obj) - case "uischema": - out.Values[i] = ec._Assessment_uischema(ctx, field, obj) - case "responseDueDuration": - out.Values[i] = ec._Assessment_responseDueDuration(ctx, field, obj) + out.Values[i] = ec._Campaign_templateID(ctx, field, obj) + case "assessmentID": + out.Values[i] = ec._Campaign_assessmentID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Campaign_metadata(ctx, field, obj) + case "emailTemplateID": + out.Values[i] = ec._Campaign_emailTemplateID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._Campaign_integrationID(ctx, field, obj) + case "emailBrandingID": + out.Values[i] = ec._Campaign_emailBrandingID(ctx, field, obj) case "owner": field := field @@ -404129,7 +414059,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Assessment_owner(ctx, field, obj) + res = ec._Campaign_owner(ctx, field, obj) return res } @@ -404162,7 +414092,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Assessment_blockedGroups(ctx, field, obj) + res = ec._Campaign_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -404198,7 +414128,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Assessment_editors(ctx, field, obj) + res = ec._Campaign_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -404234,7 +414164,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Assessment_viewers(ctx, field, obj) + res = ec._Campaign_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -404261,7 +414191,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "template": + case "internalOwnerUser": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -404270,7 +414200,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Assessment_template(ctx, field, obj) + res = ec._Campaign_internalOwnerUser(ctx, field, obj) return res } @@ -404294,19 +414224,16 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "internalOwnerGroup": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Assessment_platforms(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Campaign_internalOwnerGroup(ctx, field, obj) return res } @@ -404330,19 +414257,16 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "assessment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Assessment_identityHolders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Campaign_assessment(ctx, field, obj) return res } @@ -404366,19 +414290,16 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessmentResponses": + case "template": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Assessment_assessmentResponses(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Campaign_template(ctx, field, obj) return res } @@ -404402,19 +414323,16 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "integration": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Assessment_campaigns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Campaign_integration(ctx, field, obj) return res } @@ -404438,210 +414356,7 @@ func (ec *executionContext) _Assessment(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "accessURL": - out.Values[i] = ec._Assessment_accessURL(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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assessmentConnectionImplementors = []string{"AssessmentConnection"} - -func (ec *executionContext) _AssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AssessmentConnection") - case "edges": - out.Values[i] = ec._AssessmentConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._AssessmentConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._AssessmentConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assessmentEdgeImplementors = []string{"AssessmentEdge"} - -func (ec *executionContext) _AssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AssessmentEdge") - case "node": - out.Values[i] = ec._AssessmentEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._AssessmentEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assessmentResponseImplementors = []string{"AssessmentResponse", "Node"} - -func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponse) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AssessmentResponse") - case "id": - out.Values[i] = ec._AssessmentResponse_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._AssessmentResponse_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._AssessmentResponse_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._AssessmentResponse_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._AssessmentResponse_updatedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._AssessmentResponse_ownerID(ctx, field, obj) - case "assessmentID": - out.Values[i] = ec._AssessmentResponse_assessmentID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isTest": - out.Values[i] = ec._AssessmentResponse_isTest(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "campaignID": - out.Values[i] = ec._AssessmentResponse_campaignID(ctx, field, obj) - case "identityHolderID": - out.Values[i] = ec._AssessmentResponse_identityHolderID(ctx, field, obj) - case "entityID": - out.Values[i] = ec._AssessmentResponse_entityID(ctx, field, obj) - case "displayName": - out.Values[i] = ec._AssessmentResponse_displayName(ctx, field, obj) - case "email": - out.Values[i] = ec._AssessmentResponse_email(ctx, field, obj) - case "sendAttempts": - out.Values[i] = ec._AssessmentResponse_sendAttempts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailDeliveredAt": - out.Values[i] = ec._AssessmentResponse_emailDeliveredAt(ctx, field, obj) - case "emailOpenedAt": - out.Values[i] = ec._AssessmentResponse_emailOpenedAt(ctx, field, obj) - case "emailClickedAt": - out.Values[i] = ec._AssessmentResponse_emailClickedAt(ctx, field, obj) - case "emailOpenCount": - out.Values[i] = ec._AssessmentResponse_emailOpenCount(ctx, field, obj) - case "emailClickCount": - out.Values[i] = ec._AssessmentResponse_emailClickCount(ctx, field, obj) - case "lastEmailEventAt": - out.Values[i] = ec._AssessmentResponse_lastEmailEventAt(ctx, field, obj) - case "emailMetadata": - out.Values[i] = ec._AssessmentResponse_emailMetadata(ctx, field, obj) - case "status": - out.Values[i] = ec._AssessmentResponse_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "assignedAt": - out.Values[i] = ec._AssessmentResponse_assignedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "startedAt": - out.Values[i] = ec._AssessmentResponse_startedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "completedAt": - out.Values[i] = ec._AssessmentResponse_completedAt(ctx, field, obj) - case "dueDate": - out.Values[i] = ec._AssessmentResponse_dueDate(ctx, field, obj) - case "documentDataID": - out.Values[i] = ec._AssessmentResponse_documentDataID(ctx, field, obj) - case "isDraft": - out.Values[i] = ec._AssessmentResponse_isDraft(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": + case "emailTemplate": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -404650,7 +414365,7 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._AssessmentResponse_owner(ctx, field, obj) + res = ec._Campaign_emailTemplate(ctx, field, obj) return res } @@ -404674,19 +414389,16 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessment": + case "entity": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._AssessmentResponse_assessment(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Campaign_entity(ctx, field, obj) return res } @@ -404710,16 +414422,19 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaign": + case "campaignTargets": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._AssessmentResponse_campaign(ctx, field, obj) + res = ec._Campaign_campaignTargets(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -404743,16 +414458,19 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolder": + case "assessmentResponses": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._AssessmentResponse_identityHolder(ctx, field, obj) + res = ec._Campaign_assessmentResponses(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -404776,16 +414494,19 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entity": + case "contacts": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._AssessmentResponse_entity(ctx, field, obj) + res = ec._Campaign_contacts(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -404809,16 +414530,19 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "document": + case "users": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._AssessmentResponse_document(ctx, field, obj) + res = ec._Campaign_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -404842,7 +414566,7 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendorRiskScores": + case "groups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -404851,7 +414575,7 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._AssessmentResponse_vendorRiskScores(ctx, field, obj) + res = ec._Campaign_groups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -404865,258 +414589,32 @@ func (ec *executionContext) _AssessmentResponse(ctx context.Context, sel ast.Sel 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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assessmentResponseConnectionImplementors = []string{"AssessmentResponseConnection"} - -func (ec *executionContext) _AssessmentResponseConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponseConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AssessmentResponseConnection") - case "edges": - out.Values[i] = ec._AssessmentResponseConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._AssessmentResponseConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._AssessmentResponseConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assessmentResponseEdgeImplementors = []string{"AssessmentResponseEdge"} - -func (ec *executionContext) _AssessmentResponseEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssessmentResponseEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessmentResponseEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AssessmentResponseEdge") - case "node": - out.Values[i] = ec._AssessmentResponseEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._AssessmentResponseEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var assetImplementors = []string{"Asset", "Node"} - -func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, obj *generated.Asset) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Asset") - case "id": - out.Values[i] = ec._Asset_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Asset_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Asset_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Asset_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Asset_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Asset_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Asset_ownerID(ctx, field, obj) - case "internalOwner": - out.Values[i] = ec._Asset_internalOwner(ctx, field, obj) - case "internalOwnerUserID": - out.Values[i] = ec._Asset_internalOwnerUserID(ctx, field, obj) - case "internalOwnerGroupID": - out.Values[i] = ec._Asset_internalOwnerGroupID(ctx, field, obj) - case "assetSubtypeName": - out.Values[i] = ec._Asset_assetSubtypeName(ctx, field, obj) - case "assetSubtypeID": - out.Values[i] = ec._Asset_assetSubtypeID(ctx, field, obj) - case "assetDataClassificationName": - out.Values[i] = ec._Asset_assetDataClassificationName(ctx, field, obj) - case "assetDataClassificationID": - out.Values[i] = ec._Asset_assetDataClassificationID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._Asset_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._Asset_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._Asset_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._Asset_scopeID(ctx, field, obj) - case "accessModelName": - out.Values[i] = ec._Asset_accessModelName(ctx, field, obj) - case "accessModelID": - out.Values[i] = ec._Asset_accessModelID(ctx, field, obj) - case "encryptionStatusName": - out.Values[i] = ec._Asset_encryptionStatusName(ctx, field, obj) - case "encryptionStatusID": - out.Values[i] = ec._Asset_encryptionStatusID(ctx, field, obj) - case "securityTierName": - out.Values[i] = ec._Asset_securityTierName(ctx, field, obj) - case "securityTierID": - out.Values[i] = ec._Asset_securityTierID(ctx, field, obj) - case "criticalityName": - out.Values[i] = ec._Asset_criticalityName(ctx, field, obj) - case "criticalityID": - out.Values[i] = ec._Asset_criticalityID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Asset_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Asset_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Asset_systemInternalID(ctx, field, obj) - case "assetType": - out.Values[i] = ec._Asset_assetType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Asset_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "displayName": - out.Values[i] = ec._Asset_displayName(ctx, field, obj) - case "description": - out.Values[i] = ec._Asset_description(ctx, field, obj) - case "identifier": - out.Values[i] = ec._Asset_identifier(ctx, field, obj) - case "website": - out.Values[i] = ec._Asset_website(ctx, field, obj) - case "physicalLocation": - out.Values[i] = ec._Asset_physicalLocation(ctx, field, obj) - case "region": - out.Values[i] = ec._Asset_region(ctx, field, obj) - case "containsPii": - out.Values[i] = ec._Asset_containsPii(ctx, field, obj) - case "sourceType": - out.Values[i] = ec._Asset_sourceType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + 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 } - case "sourcePlatformID": - out.Values[i] = ec._Asset_sourcePlatformID(ctx, field, obj) - case "sourceIdentifier": - out.Values[i] = ec._Asset_sourceIdentifier(ctx, field, obj) - case "costCenter": - out.Values[i] = ec._Asset_costCenter(ctx, field, obj) - case "estimatedMonthlyCost": - out.Values[i] = ec._Asset_estimatedMonthlyCost(ctx, field, obj) - case "purchaseDate": - out.Values[i] = ec._Asset_purchaseDate(ctx, field, obj) - case "cpe": - out.Values[i] = ec._Asset_cpe(ctx, field, obj) - case "categories": - out.Values[i] = ec._Asset_categories(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._Asset_integrationID(ctx, field, obj) - case "observedAt": - out.Values[i] = ec._Asset_observedAt(ctx, field, obj) - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "identityHolders": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_owner(ctx, field, obj) + res = ec._Campaign_identityHolders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405140,7 +414638,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405149,7 +414647,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_blockedGroups(ctx, field, obj) + res = ec._Campaign_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405176,7 +414674,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405185,7 +414683,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_editors(ctx, field, obj) + res = ec._Campaign_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405212,7 +414710,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "hasPendingWorkflow": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405221,7 +414719,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_viewers(ctx, field, obj) + res = ec._Campaign_hasPendingWorkflow(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405248,16 +414746,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerUser": + case "hasWorkflowHistory": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_internalOwnerUser(ctx, field, obj) + res = ec._Campaign_hasWorkflowHistory(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405281,16 +414782,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerGroup": + case "activeWorkflowInstances": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_internalOwnerGroup(ctx, field, obj) + res = ec._Campaign_activeWorkflowInstances(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405314,16 +414818,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assetSubtype": + case "workflowTimeline": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_assetSubtype(ctx, field, obj) + res = ec._Campaign_workflowTimeline(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405347,7 +414854,174 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assetDataClassification": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var campaignConnectionImplementors = []string{"CampaignConnection"} + +func (ec *executionContext) _CampaignConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CampaignConnection") + case "edges": + out.Values[i] = ec._CampaignConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._CampaignConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._CampaignConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var campaignEdgeImplementors = []string{"CampaignEdge"} + +func (ec *executionContext) _CampaignEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CampaignEdge") + case "node": + out.Values[i] = ec._CampaignEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._CampaignEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var campaignTargetImplementors = []string{"CampaignTarget", "Node"} + +func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTarget) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CampaignTarget") + case "id": + out.Values[i] = ec._CampaignTarget_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._CampaignTarget_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._CampaignTarget_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._CampaignTarget_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._CampaignTarget_updatedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._CampaignTarget_ownerID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._CampaignTarget_workflowEligibleMarker(ctx, field, obj) + case "campaignID": + out.Values[i] = ec._CampaignTarget_campaignID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "contactID": + out.Values[i] = ec._CampaignTarget_contactID(ctx, field, obj) + case "userID": + out.Values[i] = ec._CampaignTarget_userID(ctx, field, obj) + case "groupID": + out.Values[i] = ec._CampaignTarget_groupID(ctx, field, obj) + case "email": + out.Values[i] = ec._CampaignTarget_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fullName": + out.Values[i] = ec._CampaignTarget_fullName(ctx, field, obj) + case "status": + out.Values[i] = ec._CampaignTarget_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "sentAt": + out.Values[i] = ec._CampaignTarget_sentAt(ctx, field, obj) + case "completedAt": + out.Values[i] = ec._CampaignTarget_completedAt(ctx, field, obj) + case "metadata": + out.Values[i] = ec._CampaignTarget_metadata(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405356,7 +415030,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_assetDataClassification(ctx, field, obj) + res = ec._CampaignTarget_owner(ctx, field, obj) return res } @@ -405380,16 +415054,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "campaign": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_environment(ctx, field, obj) + res = ec._CampaignTarget_campaign(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405413,7 +415090,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "contact": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405422,7 +415099,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_scope(ctx, field, obj) + res = ec._CampaignTarget_contact(ctx, field, obj) return res } @@ -405446,7 +415123,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "accessModel": + case "user": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405455,7 +415132,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_accessModel(ctx, field, obj) + res = ec._CampaignTarget_user(ctx, field, obj) return res } @@ -405479,7 +415156,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "encryptionStatus": + case "group": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405488,7 +415165,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_encryptionStatus(ctx, field, obj) + res = ec._CampaignTarget_group(ctx, field, obj) return res } @@ -405512,16 +415189,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "securityTier": + case "workflowObjectRefs": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_securityTier(ctx, field, obj) + res = ec._CampaignTarget_workflowObjectRefs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405545,16 +415225,19 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "criticality": + case "hasPendingWorkflow": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_criticality(ctx, field, obj) + res = ec._CampaignTarget_hasPendingWorkflow(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -405578,7 +415261,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scans": + case "hasWorkflowHistory": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405587,7 +415270,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_scans(ctx, field, obj) + res = ec._CampaignTarget_hasWorkflowHistory(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405614,7 +415297,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "activeWorkflowInstances": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405623,7 +415306,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_entities(ctx, field, obj) + res = ec._CampaignTarget_activeWorkflowInstances(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405650,7 +415333,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "workflowTimeline": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405659,7 +415342,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_platforms(ctx, field, obj) + res = ec._CampaignTarget_workflowTimeline(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405686,7 +415369,163 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "outOfScopePlatforms": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var campaignTargetConnectionImplementors = []string{"CampaignTargetConnection"} + +func (ec *executionContext) _CampaignTargetConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTargetConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CampaignTargetConnection") + case "edges": + out.Values[i] = ec._CampaignTargetConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._CampaignTargetConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._CampaignTargetConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var campaignTargetEdgeImplementors = []string{"CampaignTargetEdge"} + +func (ec *executionContext) _CampaignTargetEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTargetEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CampaignTargetEdge") + case "node": + out.Values[i] = ec._CampaignTargetEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._CampaignTargetEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var checkResultImplementors = []string{"CheckResult", "Node"} + +func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, checkResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CheckResult") + case "id": + out.Values[i] = ec._CheckResult_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._CheckResult_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._CheckResult_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._CheckResult_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._CheckResult_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._CheckResult_tags(ctx, field, obj) + case "status": + out.Values[i] = ec._CheckResult_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "source": + out.Values[i] = ec._CheckResult_source(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastObservedAt": + out.Values[i] = ec._CheckResult_lastObservedAt(ctx, field, obj) + case "externalURI": + out.Values[i] = ec._CheckResult_externalURI(ctx, field, obj) + case "details": + out.Values[i] = ec._CheckResult_details(ctx, field, obj) + case "parentExternalID": + out.Values[i] = ec._CheckResult_parentExternalID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._CheckResult_integrationID(ctx, field, obj) + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405695,7 +415534,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_outOfScopePlatforms(ctx, field, obj) + res = ec._CheckResult_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405722,7 +415561,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405731,7 +415570,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_identityHolders(ctx, field, obj) + res = ec._CheckResult_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405758,7 +415597,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405767,7 +415606,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_controls(ctx, field, obj) + res = ec._CheckResult_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405794,7 +415633,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405803,7 +415642,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_subcontrols(ctx, field, obj) + res = ec._CheckResult_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405830,7 +415669,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405839,7 +415678,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_internalPolicies(ctx, field, obj) + res = ec._CheckResult_findings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405866,7 +415705,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "sourcePlatform": + case "integration": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405875,7 +415714,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_sourcePlatform(ctx, field, obj) + res = ec._CheckResult_integration(ctx, field, obj) return res } @@ -405899,7 +415738,168 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var checkResultConnectionImplementors = []string{"CheckResultConnection"} + +func (ec *executionContext) _CheckResultConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResultConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, checkResultConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CheckResultConnection") + case "edges": + out.Values[i] = ec._CheckResultConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._CheckResultConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._CheckResultConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var checkResultEdgeImplementors = []string{"CheckResultEdge"} + +func (ec *executionContext) _CheckResultEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResultEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, checkResultEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CheckResultEdge") + case "node": + out.Values[i] = ec._CheckResultEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._CheckResultEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, contactImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Contact") + case "id": + out.Values[i] = ec._Contact_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Contact_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Contact_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Contact_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Contact_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Contact_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Contact_ownerID(ctx, field, obj) + case "fullName": + out.Values[i] = ec._Contact_fullName(ctx, field, obj) + case "title": + out.Values[i] = ec._Contact_title(ctx, field, obj) + case "company": + out.Values[i] = ec._Contact_company(ctx, field, obj) + case "email": + out.Values[i] = ec._Contact_email(ctx, field, obj) + case "phoneNumber": + out.Values[i] = ec._Contact_phoneNumber(ctx, field, obj) + case "address": + out.Values[i] = ec._Contact_address(ctx, field, obj) + case "status": + out.Values[i] = ec._Contact_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "externalID": + out.Values[i] = ec._Contact_externalID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._Contact_integrationID(ctx, field, obj) + case "observedAt": + out.Values[i] = ec._Contact_observedAt(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -405908,7 +415908,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_integration(ctx, field, obj) + res = ec._Contact_owner(ctx, field, obj) return res } @@ -405932,7 +415932,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "connectedAssets": + case "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405941,7 +415941,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_connectedAssets(ctx, field, obj) + res = ec._Contact_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -405968,7 +415968,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "connectedFrom": + case "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -405977,7 +415977,79 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_connectedFrom(ctx, field, obj) + res = ec._Contact_campaigns(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 "campaignTargets": + 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._Contact_campaignTargets(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 "files": + 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._Contact_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406027,26 +416099,26 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob return out } -var assetConnectionImplementors = []string{"AssetConnection"} +var contactConnectionImplementors = []string{"ContactConnection"} -func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AssetConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetConnectionImplementors) +func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetConnection") + out.Values[i] = graphql.MarshalString("ContactConnection") case "edges": - out.Values[i] = ec._AssetConnection_edges(ctx, field, obj) + out.Values[i] = ec._ContactConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._AssetConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._ContactConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._AssetConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._ContactConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -406073,21 +416145,21 @@ func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.Select return out } -var assetEdgeImplementors = []string{"AssetEdge"} +var contactEdgeImplementors = []string{"ContactEdge"} -func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AssetEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetEdgeImplementors) +func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetEdge") + out.Values[i] = graphql.MarshalString("ContactEdge") case "node": - out.Values[i] = ec._AssetEdge_node(ctx, field, obj) + out.Values[i] = ec._ContactEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._AssetEdge_cursor(ctx, field, obj) + out.Values[i] = ec._ContactEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -406114,126 +416186,179 @@ func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet return out } -var campaignImplementors = []string{"Campaign", "Node"} +var controlImplementors = []string{"Control", "Node"} -func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, obj *generated.Campaign) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignImplementors) +func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, obj *generated.Control) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Campaign") + out.Values[i] = graphql.MarshalString("Control") case "id": - out.Values[i] = ec._Campaign_id(ctx, field, obj) + out.Values[i] = ec._Control_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Campaign_createdAt(ctx, field, obj) + out.Values[i] = ec._Control_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Campaign_updatedAt(ctx, field, obj) + out.Values[i] = ec._Control_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Campaign_createdBy(ctx, field, obj) + out.Values[i] = ec._Control_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Campaign_updatedBy(ctx, field, obj) + out.Values[i] = ec._Control_updatedBy(ctx, field, obj) case "displayID": - out.Values[i] = ec._Campaign_displayID(ctx, field, obj) + out.Values[i] = ec._Control_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "tags": - out.Values[i] = ec._Campaign_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Campaign_ownerID(ctx, field, obj) - case "internalOwner": - out.Values[i] = ec._Campaign_internalOwner(ctx, field, obj) - case "internalOwnerUserID": - out.Values[i] = ec._Campaign_internalOwnerUserID(ctx, field, obj) - case "internalOwnerGroupID": - out.Values[i] = ec._Campaign_internalOwnerGroupID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._Campaign_workflowEligibleMarker(ctx, field, obj) - case "name": - out.Values[i] = ec._Campaign_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._Control_tags(ctx, field, obj) + case "externalUUID": + out.Values[i] = ec._Control_externalUUID(ctx, field, obj) + case "title": + out.Values[i] = ec._Control_title(ctx, field, obj) case "description": - out.Values[i] = ec._Campaign_description(ctx, field, obj) - case "campaignType": - out.Values[i] = ec._Campaign_campaignType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._Control_description(ctx, field, obj) + case "descriptionJSON": + out.Values[i] = ec._Control_descriptionJSON(ctx, field, obj) + case "aliases": + out.Values[i] = ec._Control_aliases(ctx, field, obj) + case "referenceID": + out.Values[i] = ec._Control_referenceID(ctx, field, obj) + case "auditorReferenceID": + out.Values[i] = ec._Control_auditorReferenceID(ctx, field, obj) + case "responsiblePartyID": + out.Values[i] = ec._Control_responsiblePartyID(ctx, field, obj) case "status": - out.Values[i] = ec._Campaign_status(ctx, field, obj) + out.Values[i] = ec._Control_status(ctx, field, obj) + case "implementationStatus": + out.Values[i] = ec._Control_implementationStatus(ctx, field, obj) + case "implementationDescription": + out.Values[i] = ec._Control_implementationDescription(ctx, field, obj) + case "publicRepresentation": + out.Values[i] = ec._Control_publicRepresentation(ctx, field, obj) + case "source": + out.Values[i] = ec._Control_source(ctx, field, obj) + case "sourceName": + out.Values[i] = ec._Control_sourceName(ctx, field, obj) + case "referenceFramework": + out.Values[i] = ec._Control_referenceFramework(ctx, field, obj) + case "referenceFrameworkRevision": + out.Values[i] = ec._Control_referenceFrameworkRevision(ctx, field, obj) + case "category": + out.Values[i] = ec._Control_category(ctx, field, obj) + case "categoryID": + out.Values[i] = ec._Control_categoryID(ctx, field, obj) + case "subcategory": + out.Values[i] = ec._Control_subcategory(ctx, field, obj) + case "mappedCategories": + out.Values[i] = ec._Control_mappedCategories(ctx, field, obj) + case "assessmentObjectives": + out.Values[i] = ec._Control_assessmentObjectives(ctx, field, obj) + case "assessmentMethods": + out.Values[i] = ec._Control_assessmentMethods(ctx, field, obj) + case "controlQuestions": + out.Values[i] = ec._Control_controlQuestions(ctx, field, obj) + case "implementationGuidance": + out.Values[i] = ec._Control_implementationGuidance(ctx, field, obj) + case "exampleEvidence": + out.Values[i] = ec._Control_exampleEvidence(ctx, field, obj) + case "references": + out.Values[i] = ec._Control_references(ctx, field, obj) + case "testingProcedures": + out.Values[i] = ec._Control_testingProcedures(ctx, field, obj) + case "evidenceRequests": + out.Values[i] = ec._Control_evidenceRequests(ctx, field, obj) + case "controlOwnerID": + out.Values[i] = ec._Control_controlOwnerID(ctx, field, obj) + case "delegateID": + out.Values[i] = ec._Control_delegateID(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Control_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Control_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Control_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Control_systemInternalID(ctx, field, obj) + case "controlKindName": + out.Values[i] = ec._Control_controlKindName(ctx, field, obj) + case "controlKindID": + out.Values[i] = ec._Control_controlKindID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._Control_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._Control_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._Control_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._Control_scopeID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._Control_workflowEligibleMarker(ctx, field, obj) + case "refCode": + out.Values[i] = ec._Control_refCode(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "isActive": - out.Values[i] = ec._Campaign_isActive(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + case "standardID": + out.Values[i] = ec._Control_standardID(ctx, field, obj) + case "trustCenterVisibility": + out.Values[i] = ec._Control_trustCenterVisibility(ctx, field, obj) + case "isTrustCenterControl": + out.Values[i] = ec._Control_isTrustCenterControl(ctx, field, obj) + case "evidence": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_evidence(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "scheduledAt": - out.Values[i] = ec._Campaign_scheduledAt(ctx, field, obj) - case "launchedAt": - out.Values[i] = ec._Campaign_launchedAt(ctx, field, obj) - case "completedAt": - out.Values[i] = ec._Campaign_completedAt(ctx, field, obj) - case "dueDate": - out.Values[i] = ec._Campaign_dueDate(ctx, field, obj) - case "isRecurring": - out.Values[i] = ec._Campaign_isRecurring(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + 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 } - case "recurrenceFrequency": - out.Values[i] = ec._Campaign_recurrenceFrequency(ctx, field, obj) - case "recurrenceInterval": - out.Values[i] = ec._Campaign_recurrenceInterval(ctx, field, obj) - case "recurrenceTimezone": - out.Values[i] = ec._Campaign_recurrenceTimezone(ctx, field, obj) - case "recurrenceCron": - out.Values[i] = ec._Campaign_recurrenceCron(ctx, field, obj) - case "lastRunAt": - out.Values[i] = ec._Campaign_lastRunAt(ctx, field, obj) - case "nextRunAt": - out.Values[i] = ec._Campaign_nextRunAt(ctx, field, obj) - case "recurrenceEndAt": - out.Values[i] = ec._Campaign_recurrenceEndAt(ctx, field, obj) - case "recipientCount": - out.Values[i] = ec._Campaign_recipientCount(ctx, field, obj) - case "resendCount": - out.Values[i] = ec._Campaign_resendCount(ctx, field, obj) - case "lastResentAt": - out.Values[i] = ec._Campaign_lastResentAt(ctx, field, obj) - case "entityID": - out.Values[i] = ec._Campaign_entityID(ctx, field, obj) - case "templateID": - out.Values[i] = ec._Campaign_templateID(ctx, field, obj) - case "assessmentID": - out.Values[i] = ec._Campaign_assessmentID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._Campaign_metadata(ctx, field, obj) - case "emailTemplateID": - out.Values[i] = ec._Campaign_emailTemplateID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._Campaign_integrationID(ctx, field, obj) - case "emailBrandingID": - out.Values[i] = ec._Campaign_emailBrandingID(ctx, field, obj) - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controlObjectives": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_owner(ctx, field, obj) + res = ec._Control_controlObjectives(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406257,7 +416382,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406266,7 +416391,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_blockedGroups(ctx, field, obj) + res = ec._Control_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406293,7 +416418,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "narratives": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406302,7 +416427,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_editors(ctx, field, obj) + res = ec._Control_narratives(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406329,7 +416454,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "risks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406338,7 +416463,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_viewers(ctx, field, obj) + res = ec._Control_risks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406365,16 +416490,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerUser": + case "actionPlans": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_internalOwnerUser(ctx, field, obj) + res = ec._Control_actionPlans(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406398,16 +416526,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerGroup": + case "procedures": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_internalOwnerGroup(ctx, field, obj) + res = ec._Control_procedures(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406431,16 +416562,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessment": + case "internalPolicies": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_assessment(ctx, field, obj) + res = ec._Control_internalPolicies(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406464,16 +416598,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "template": + case "comments": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_template(ctx, field, obj) + res = ec._Control_comments(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406497,16 +416634,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "discussions": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_integration(ctx, field, obj) + res = ec._Control_discussions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -406530,7 +416670,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "emailTemplate": + case "controlOwner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -406539,7 +416679,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_emailTemplate(ctx, field, obj) + res = ec._Control_controlOwner(ctx, field, obj) return res } @@ -406563,7 +416703,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entity": + case "delegate": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -406572,7 +416712,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_entity(ctx, field, obj) + res = ec._Control_delegate(ctx, field, obj) return res } @@ -406596,19 +416736,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignTargets": + case "responsibleParty": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_campaignTargets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_responsibleParty(ctx, field, obj) return res } @@ -406632,7 +416769,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessmentResponses": + case "reviews": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406641,7 +416778,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_assessmentResponses(ctx, field, obj) + res = ec._Control_reviews(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406668,7 +416805,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contacts": + case "remediations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406677,7 +416814,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_contacts(ctx, field, obj) + res = ec._Control_remediations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406704,7 +416841,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "users": + case "scans": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406713,7 +416850,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_users(ctx, field, obj) + res = ec._Control_scans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406740,19 +416877,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_groups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_owner(ctx, field, obj) return res } @@ -406776,7 +416910,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406785,7 +416919,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_identityHolders(ctx, field, obj) + res = ec._Control_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406812,7 +416946,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -406821,7 +416955,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_controls(ctx, field, obj) + res = ec._Control_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -406848,19 +416982,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "controlKind": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_workflowObjectRefs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_controlKind(ctx, field, obj) return res } @@ -406884,19 +417015,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_hasPendingWorkflow(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_environment(ctx, field, obj) return res } @@ -406920,19 +417048,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_hasWorkflowHistory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_scope(ctx, field, obj) return res } @@ -406956,19 +417081,16 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "standard": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Campaign_activeWorkflowInstances(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Control_standard(ctx, field, obj) return res } @@ -406992,7 +417114,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "checkResults": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407001,7 +417123,7 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Campaign_workflowTimeline(ctx, field, obj) + res = ec._Control_checkResults(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407028,183 +417150,19 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var campaignConnectionImplementors = []string{"CampaignConnection"} - -func (ec *executionContext) _CampaignConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CampaignConnection") - case "edges": - out.Values[i] = ec._CampaignConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._CampaignConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._CampaignConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var campaignEdgeImplementors = []string{"CampaignEdge"} - -func (ec *executionContext) _CampaignEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CampaignEdge") - case "node": - out.Values[i] = ec._CampaignEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._CampaignEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var campaignTargetImplementors = []string{"CampaignTarget", "Node"} - -func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTarget) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CampaignTarget") - case "id": - out.Values[i] = ec._CampaignTarget_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._CampaignTarget_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._CampaignTarget_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._CampaignTarget_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._CampaignTarget_updatedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._CampaignTarget_ownerID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._CampaignTarget_workflowEligibleMarker(ctx, field, obj) - case "campaignID": - out.Values[i] = ec._CampaignTarget_campaignID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "contactID": - out.Values[i] = ec._CampaignTarget_contactID(ctx, field, obj) - case "userID": - out.Values[i] = ec._CampaignTarget_userID(ctx, field, obj) - case "groupID": - out.Values[i] = ec._CampaignTarget_groupID(ctx, field, obj) - case "email": - out.Values[i] = ec._CampaignTarget_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fullName": - out.Values[i] = ec._CampaignTarget_fullName(ctx, field, obj) - case "status": - out.Values[i] = ec._CampaignTarget_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "sentAt": - out.Values[i] = ec._CampaignTarget_sentAt(ctx, field, obj) - case "completedAt": - out.Values[i] = ec._CampaignTarget_completedAt(ctx, field, obj) - case "metadata": - out.Values[i] = ec._CampaignTarget_metadata(ctx, field, obj) - case "owner": + case "programs": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._CampaignTarget_owner(ctx, field, obj) + res = ec._Control_programs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -407228,7 +417186,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaign": + case "platforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407237,7 +417195,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_campaign(ctx, field, obj) + res = ec._Control_platforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407264,16 +417222,19 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contact": + case "assets": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._CampaignTarget_contact(ctx, field, obj) + res = ec._Control_assets(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -407297,16 +417258,19 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "entities": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._CampaignTarget_user(ctx, field, obj) + res = ec._Control_entities(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -407330,16 +417294,19 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "group": + case "identityHolders": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._CampaignTarget_group(ctx, field, obj) + res = ec._Control_identityHolders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -407363,7 +417330,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407372,7 +417339,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_workflowObjectRefs(ctx, field, obj) + res = ec._Control_campaigns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407399,7 +417366,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407408,7 +417375,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_hasPendingWorkflow(ctx, field, obj) + res = ec._Control_findings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407435,7 +417402,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "controlImplementations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407444,7 +417411,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_hasWorkflowHistory(ctx, field, obj) + res = ec._Control_controlImplementations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407471,7 +417438,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407480,7 +417447,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_activeWorkflowInstances(ctx, field, obj) + res = ec._Control_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407507,7 +417474,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "scheduledJobs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407516,7 +417483,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CampaignTarget_workflowTimeline(ctx, field, obj) + res = ec._Control_scheduledJobs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407543,163 +417510,7 @@ func (ec *executionContext) _CampaignTarget(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var campaignTargetConnectionImplementors = []string{"CampaignTargetConnection"} - -func (ec *executionContext) _CampaignTargetConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTargetConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CampaignTargetConnection") - case "edges": - out.Values[i] = ec._CampaignTargetConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._CampaignTargetConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._CampaignTargetConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var campaignTargetEdgeImplementors = []string{"CampaignTargetEdge"} - -func (ec *executionContext) _CampaignTargetEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CampaignTargetEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, campaignTargetEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CampaignTargetEdge") - case "node": - out.Values[i] = ec._CampaignTargetEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._CampaignTargetEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var checkResultImplementors = []string{"CheckResult", "Node"} - -func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, checkResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CheckResult") - case "id": - out.Values[i] = ec._CheckResult_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._CheckResult_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._CheckResult_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._CheckResult_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._CheckResult_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._CheckResult_tags(ctx, field, obj) - case "status": - out.Values[i] = ec._CheckResult_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "source": - out.Values[i] = ec._CheckResult_source(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastObservedAt": - out.Values[i] = ec._CheckResult_lastObservedAt(ctx, field, obj) - case "externalURI": - out.Values[i] = ec._CheckResult_externalURI(ctx, field, obj) - case "details": - out.Values[i] = ec._CheckResult_details(ctx, field, obj) - case "parentExternalID": - out.Values[i] = ec._CheckResult_parentExternalID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._CheckResult_integrationID(ctx, field, obj) - case "blockedGroups": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407708,7 +417519,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CheckResult_blockedGroups(ctx, field, obj) + res = ec._Control_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407735,7 +417546,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "controlMappings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407744,7 +417555,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CheckResult_editors(ctx, field, obj) + res = ec._Control_controlMappings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407771,7 +417582,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "hasPendingWorkflow": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407780,7 +417591,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CheckResult_viewers(ctx, field, obj) + res = ec._Control_hasPendingWorkflow(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407807,7 +417618,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "hasWorkflowHistory": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407816,7 +417627,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CheckResult_controls(ctx, field, obj) + res = ec._Control_hasWorkflowHistory(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407843,7 +417654,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + case "activeWorkflowInstances": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -407852,7 +417663,7 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CheckResult_findings(ctx, field, obj) + res = ec._Control_activeWorkflowInstances(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -407879,16 +417690,19 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "workflowTimeline": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._CheckResult_integration(ctx, field, obj) + res = ec._Control_workflowTimeline(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -407935,26 +417749,26 @@ func (ec *executionContext) _CheckResult(ctx context.Context, sel ast.SelectionS return out } -var checkResultConnectionImplementors = []string{"CheckResultConnection"} +var controlConnectionImplementors = []string{"ControlConnection"} -func (ec *executionContext) _CheckResultConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResultConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, checkResultConnectionImplementors) +func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CheckResultConnection") + out.Values[i] = graphql.MarshalString("ControlConnection") case "edges": - out.Values[i] = ec._CheckResultConnection_edges(ctx, field, obj) + out.Values[i] = ec._ControlConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._CheckResultConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._ControlConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._CheckResultConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._ControlConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -407981,21 +417795,21 @@ func (ec *executionContext) _CheckResultConnection(ctx context.Context, sel ast. return out } -var checkResultEdgeImplementors = []string{"CheckResultEdge"} +var controlEdgeImplementors = []string{"ControlEdge"} -func (ec *executionContext) _CheckResultEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CheckResultEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, checkResultEdgeImplementors) +func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CheckResultEdge") + out.Values[i] = graphql.MarshalString("ControlEdge") case "node": - out.Values[i] = ec._CheckResultEdge_node(ctx, field, obj) + out.Values[i] = ec._ControlEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._CheckResultEdge_cursor(ctx, field, obj) + out.Values[i] = ec._ControlEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -408022,57 +417836,52 @@ func (ec *executionContext) _CheckResultEdge(ctx context.Context, sel ast.Select return out } -var contactImplementors = []string{"Contact", "Node"} +var controlImplementationImplementors = []string{"ControlImplementation", "Node"} -func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, obj *generated.Contact) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactImplementors) +func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Contact") + out.Values[i] = graphql.MarshalString("ControlImplementation") case "id": - out.Values[i] = ec._Contact_id(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Contact_createdAt(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Contact_updatedAt(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Contact_createdBy(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Contact_updatedBy(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._Contact_tags(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Contact_ownerID(ctx, field, obj) - case "fullName": - out.Values[i] = ec._Contact_fullName(ctx, field, obj) - case "title": - out.Values[i] = ec._Contact_title(ctx, field, obj) - case "company": - out.Values[i] = ec._Contact_company(ctx, field, obj) - case "email": - out.Values[i] = ec._Contact_email(ctx, field, obj) - case "phoneNumber": - out.Values[i] = ec._Contact_phoneNumber(ctx, field, obj) - case "address": - out.Values[i] = ec._Contact_address(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._ControlImplementation_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._ControlImplementation_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._ControlImplementation_systemInternalID(ctx, field, obj) case "status": - out.Values[i] = ec._Contact_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "externalID": - out.Values[i] = ec._Contact_externalID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._Contact_integrationID(ctx, field, obj) - case "observedAt": - out.Values[i] = ec._Contact_observedAt(ctx, field, obj) + out.Values[i] = ec._ControlImplementation_status(ctx, field, obj) + case "implementationDate": + out.Values[i] = ec._ControlImplementation_implementationDate(ctx, field, obj) + case "verified": + out.Values[i] = ec._ControlImplementation_verified(ctx, field, obj) + case "verificationDate": + out.Values[i] = ec._ControlImplementation_verificationDate(ctx, field, obj) + case "details": + out.Values[i] = ec._ControlImplementation_details(ctx, field, obj) + case "detailsJSON": + out.Values[i] = ec._ControlImplementation_detailsJSON(ctx, field, obj) case "owner": field := field @@ -408082,7 +417891,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_owner(ctx, field, obj) + res = ec._ControlImplementation_owner(ctx, field, obj) return res } @@ -408106,7 +417915,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408115,7 +417924,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_entities(ctx, field, obj) + res = ec._ControlImplementation_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408142,7 +417951,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408151,7 +417960,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_campaigns(ctx, field, obj) + res = ec._ControlImplementation_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408178,7 +417987,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignTargets": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408187,7 +417996,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_campaignTargets(ctx, field, obj) + res = ec._ControlImplementation_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408214,7 +418023,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408223,7 +418032,79 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_files(ctx, field, obj) + res = ec._ControlImplementation_controls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subcontrols": + 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._ControlImplementation_subcontrols(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tasks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlImplementation_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408273,26 +418154,26 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, return out } -var contactConnectionImplementors = []string{"ContactConnection"} +var controlImplementationConnectionImplementors = []string{"ControlImplementationConnection"} -func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactConnectionImplementors) +func (ec *executionContext) _ControlImplementationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactConnection") + out.Values[i] = graphql.MarshalString("ControlImplementationConnection") case "edges": - out.Values[i] = ec._ContactConnection_edges(ctx, field, obj) + out.Values[i] = ec._ControlImplementationConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ContactConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._ControlImplementationConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ContactConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._ControlImplementationConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -408319,21 +418200,21 @@ func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.Sele return out } -var contactEdgeImplementors = []string{"ContactEdge"} +var controlImplementationEdgeImplementors = []string{"ControlImplementationEdge"} -func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactEdgeImplementors) +func (ec *executionContext) _ControlImplementationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactEdge") + out.Values[i] = graphql.MarshalString("ControlImplementationEdge") case "node": - out.Values[i] = ec._ContactEdge_node(ctx, field, obj) + out.Values[i] = ec._ControlImplementationEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ContactEdge_cursor(ctx, field, obj) + out.Values[i] = ec._ControlImplementationEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -408360,131 +418241,100 @@ func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionS return out } -var controlImplementors = []string{"Control", "Node"} +var controlObjectiveImplementors = []string{"ControlObjective", "Node"} -func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, obj *generated.Control) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementors) +func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjective) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Control") + out.Values[i] = graphql.MarshalString("ControlObjective") case "id": - out.Values[i] = ec._Control_id(ctx, field, obj) + out.Values[i] = ec._ControlObjective_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Control_createdAt(ctx, field, obj) + out.Values[i] = ec._ControlObjective_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Control_updatedAt(ctx, field, obj) + out.Values[i] = ec._ControlObjective_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Control_createdBy(ctx, field, obj) + out.Values[i] = ec._ControlObjective_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Control_updatedBy(ctx, field, obj) + out.Values[i] = ec._ControlObjective_updatedBy(ctx, field, obj) case "displayID": - out.Values[i] = ec._Control_displayID(ctx, field, obj) + out.Values[i] = ec._ControlObjective_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "tags": - out.Values[i] = ec._Control_tags(ctx, field, obj) - case "externalUUID": - out.Values[i] = ec._Control_externalUUID(ctx, field, obj) - case "title": - out.Values[i] = ec._Control_title(ctx, field, obj) - case "description": - out.Values[i] = ec._Control_description(ctx, field, obj) - case "descriptionJSON": - out.Values[i] = ec._Control_descriptionJSON(ctx, field, obj) - case "aliases": - out.Values[i] = ec._Control_aliases(ctx, field, obj) - case "referenceID": - out.Values[i] = ec._Control_referenceID(ctx, field, obj) - case "auditorReferenceID": - out.Values[i] = ec._Control_auditorReferenceID(ctx, field, obj) - case "responsiblePartyID": - out.Values[i] = ec._Control_responsiblePartyID(ctx, field, obj) - case "status": - out.Values[i] = ec._Control_status(ctx, field, obj) - case "implementationStatus": - out.Values[i] = ec._Control_implementationStatus(ctx, field, obj) - case "implementationDescription": - out.Values[i] = ec._Control_implementationDescription(ctx, field, obj) - case "publicRepresentation": - out.Values[i] = ec._Control_publicRepresentation(ctx, field, obj) - case "source": - out.Values[i] = ec._Control_source(ctx, field, obj) - case "sourceName": - out.Values[i] = ec._Control_sourceName(ctx, field, obj) - case "referenceFramework": - out.Values[i] = ec._Control_referenceFramework(ctx, field, obj) - case "referenceFrameworkRevision": - out.Values[i] = ec._Control_referenceFrameworkRevision(ctx, field, obj) - case "category": - out.Values[i] = ec._Control_category(ctx, field, obj) - case "categoryID": - out.Values[i] = ec._Control_categoryID(ctx, field, obj) - case "subcategory": - out.Values[i] = ec._Control_subcategory(ctx, field, obj) - case "mappedCategories": - out.Values[i] = ec._Control_mappedCategories(ctx, field, obj) - case "assessmentObjectives": - out.Values[i] = ec._Control_assessmentObjectives(ctx, field, obj) - case "assessmentMethods": - out.Values[i] = ec._Control_assessmentMethods(ctx, field, obj) - case "controlQuestions": - out.Values[i] = ec._Control_controlQuestions(ctx, field, obj) - case "implementationGuidance": - out.Values[i] = ec._Control_implementationGuidance(ctx, field, obj) - case "exampleEvidence": - out.Values[i] = ec._Control_exampleEvidence(ctx, field, obj) - case "references": - out.Values[i] = ec._Control_references(ctx, field, obj) - case "testingProcedures": - out.Values[i] = ec._Control_testingProcedures(ctx, field, obj) - case "evidenceRequests": - out.Values[i] = ec._Control_evidenceRequests(ctx, field, obj) - case "controlOwnerID": - out.Values[i] = ec._Control_controlOwnerID(ctx, field, obj) - case "delegateID": - out.Values[i] = ec._Control_delegateID(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Control_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Control_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Control_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Control_systemInternalID(ctx, field, obj) - case "controlKindName": - out.Values[i] = ec._Control_controlKindName(ctx, field, obj) - case "controlKindID": - out.Values[i] = ec._Control_controlKindID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._Control_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._Control_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._Control_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._Control_scopeID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._Control_workflowEligibleMarker(ctx, field, obj) - case "refCode": - out.Values[i] = ec._Control_refCode(ctx, field, obj) + case "tags": + out.Values[i] = ec._ControlObjective_tags(ctx, field, obj) + case "revision": + out.Values[i] = ec._ControlObjective_revision(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._ControlObjective_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._ControlObjective_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._ControlObjective_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._ControlObjective_systemInternalID(ctx, field, obj) + case "name": + out.Values[i] = ec._ControlObjective_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "standardID": - out.Values[i] = ec._Control_standardID(ctx, field, obj) - case "trustCenterVisibility": - out.Values[i] = ec._Control_trustCenterVisibility(ctx, field, obj) - case "isTrustCenterControl": - out.Values[i] = ec._Control_isTrustCenterControl(ctx, field, obj) - case "evidence": + case "desiredOutcome": + out.Values[i] = ec._ControlObjective_desiredOutcome(ctx, field, obj) + case "desiredOutcomeJSON": + out.Values[i] = ec._ControlObjective_desiredOutcomeJSON(ctx, field, obj) + case "status": + out.Values[i] = ec._ControlObjective_status(ctx, field, obj) + case "source": + out.Values[i] = ec._ControlObjective_source(ctx, field, obj) + case "controlObjectiveType": + out.Values[i] = ec._ControlObjective_controlObjectiveType(ctx, field, obj) + case "category": + out.Values[i] = ec._ControlObjective_category(ctx, field, obj) + case "subcategory": + out.Values[i] = ec._ControlObjective_subcategory(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408493,7 +418343,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_evidence(ctx, field, obj) + res = ec._ControlObjective_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408520,7 +418370,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectives": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408529,7 +418379,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_controlObjectives(ctx, field, obj) + res = ec._ControlObjective_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408556,7 +418406,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408565,7 +418415,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_tasks(ctx, field, obj) + res = ec._ControlObjective_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408592,7 +418442,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narratives": + case "programs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408601,7 +418451,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_narratives(ctx, field, obj) + res = ec._ControlObjective_programs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408628,7 +418478,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "evidence": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408637,7 +418487,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_risks(ctx, field, obj) + res = ec._ControlObjective_evidence(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408664,7 +418514,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlans": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408673,7 +418523,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_actionPlans(ctx, field, obj) + res = ec._ControlObjective_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408700,7 +418550,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedures": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408709,7 +418559,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_procedures(ctx, field, obj) + res = ec._ControlObjective_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408745,7 +418595,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_internalPolicies(ctx, field, obj) + res = ec._ControlObjective_internalPolicies(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408772,7 +418622,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "comments": + case "procedures": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408781,7 +418631,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_comments(ctx, field, obj) + res = ec._ControlObjective_procedures(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408808,7 +418658,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussions": + case "risks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408817,7 +418667,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_discussions(ctx, field, obj) + res = ec._ControlObjective_risks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408844,16 +418694,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlOwner": + case "narratives": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_controlOwner(ctx, field, obj) + res = ec._ControlObjective_narratives(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -408877,16 +418730,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "delegate": + case "tasks": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_delegate(ctx, field, obj) + res = ec._ControlObjective_tasks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -408910,7 +418766,170 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "responsibleParty": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveConnection") + case "edges": + out.Values[i] = ec._ControlObjectiveConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ControlObjectiveConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._ControlObjectiveConnection_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveEdge") + case "node": + out.Values[i] = ec._ControlObjectiveEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ControlObjectiveEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customDomainImplementors = []string{"CustomDomain", "Node"} + +func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomain) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customDomainImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomDomain") + case "id": + out.Values[i] = ec._CustomDomain_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._CustomDomain_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._CustomDomain_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._CustomDomain_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._CustomDomain_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._CustomDomain_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._CustomDomain_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._CustomDomain_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._CustomDomain_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._CustomDomain_systemInternalID(ctx, field, obj) + case "cnameRecord": + out.Values[i] = ec._CustomDomain_cnameRecord(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "mappableDomainID": + out.Values[i] = ec._CustomDomain_mappableDomainID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dnsVerificationID": + out.Values[i] = ec._CustomDomain_dnsVerificationID(ctx, field, obj) + case "trustCenterID": + out.Values[i] = ec._CustomDomain_trustCenterID(ctx, field, obj) + case "domainType": + out.Values[i] = ec._CustomDomain_domainType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -408919,7 +418938,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_responsibleParty(ctx, field, obj) + res = ec._CustomDomain_owner(ctx, field, obj) return res } @@ -408943,7 +418962,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviews": + case "mappableDomain": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -408952,7 +418971,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_reviews(ctx, field, obj) + res = ec._CustomDomain_mappableDomain(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -408979,19 +418998,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "remediations": + case "dnsVerification": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_remediations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._CustomDomain_dnsVerification(ctx, field, obj) return res } @@ -409015,19 +419031,179 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scans": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customDomainConnectionImplementors = []string{"CustomDomainConnection"} + +func (ec *executionContext) _CustomDomainConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomainConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customDomainConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomDomainConnection") + case "edges": + out.Values[i] = ec._CustomDomainConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._CustomDomainConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._CustomDomainConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customDomainEdgeImplementors = []string{"CustomDomainEdge"} + +func (ec *executionContext) _CustomDomainEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomainEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customDomainEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomDomainEdge") + case "node": + out.Values[i] = ec._CustomDomainEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._CustomDomainEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customTypeEnumImplementors = []string{"CustomTypeEnum", "Node"} + +func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnum) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomTypeEnum") + case "id": + out.Values[i] = ec._CustomTypeEnum_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._CustomTypeEnum_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._CustomTypeEnum_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._CustomTypeEnum_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._CustomTypeEnum_updatedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._CustomTypeEnum_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._CustomTypeEnum_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._CustomTypeEnum_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._CustomTypeEnum_systemInternalID(ctx, field, obj) + case "objectType": + out.Values[i] = ec._CustomTypeEnum_objectType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "field": + out.Values[i] = ec._CustomTypeEnum_field(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._CustomTypeEnum_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._CustomTypeEnum_description(ctx, field, obj) + case "color": + out.Values[i] = ec._CustomTypeEnum_color(ctx, field, obj) + case "icon": + out.Values[i] = ec._CustomTypeEnum_icon(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_scans(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._CustomTypeEnum_owner(ctx, field, obj) return res } @@ -409051,16 +419227,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "owner": + case "tasks": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_owner(ctx, field, obj) + res = ec._CustomTypeEnum_tasks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -409084,7 +419263,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409093,7 +419272,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_blockedGroups(ctx, field, obj) + res = ec._CustomTypeEnum_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409120,7 +419299,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409129,7 +419308,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_editors(ctx, field, obj) + res = ec._CustomTypeEnum_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409156,16 +419335,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlKind": + case "risks": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_controlKind(ctx, field, obj) + res = ec._CustomTypeEnum_risks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -409189,16 +419371,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "riskCategories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_environment(ctx, field, obj) + res = ec._CustomTypeEnum_riskCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -409222,16 +419407,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "internalPolicies": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_scope(ctx, field, obj) + res = ec._CustomTypeEnum_internalPolicies(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -409255,16 +419443,19 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "standard": + case "procedures": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_standard(ctx, field, obj) + res = ec._CustomTypeEnum_procedures(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -409288,7 +419479,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "checkResults": + case "actionPlans": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409297,7 +419488,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_checkResults(ctx, field, obj) + res = ec._CustomTypeEnum_actionPlans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409333,7 +419524,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_programs(ctx, field, obj) + res = ec._CustomTypeEnum_programs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409369,7 +419560,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_platforms(ctx, field, obj) + res = ec._CustomTypeEnum_platforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409396,19 +419587,187 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customTypeEnumConnectionImplementors = []string{"CustomTypeEnumConnection"} + +func (ec *executionContext) _CustomTypeEnumConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnumConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomTypeEnumConnection") + case "edges": + out.Values[i] = ec._CustomTypeEnumConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._CustomTypeEnumConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._CustomTypeEnumConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var customTypeEnumEdgeImplementors = []string{"CustomTypeEnumEdge"} + +func (ec *executionContext) _CustomTypeEnumEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnumEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CustomTypeEnumEdge") + case "node": + out.Values[i] = ec._CustomTypeEnumEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._CustomTypeEnumEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var dNSVerificationImplementors = []string{"DNSVerification", "Node"} + +func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DNSVerification") + case "id": + out.Values[i] = ec._DNSVerification_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._DNSVerification_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._DNSVerification_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._DNSVerification_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._DNSVerification_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._DNSVerification_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._DNSVerification_ownerID(ctx, field, obj) + case "cloudflareHostnameID": + out.Values[i] = ec._DNSVerification_cloudflareHostnameID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dnsTxtRecord": + out.Values[i] = ec._DNSVerification_dnsTxtRecord(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dnsTxtValue": + out.Values[i] = ec._DNSVerification_dnsTxtValue(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dnsVerificationStatus": + out.Values[i] = ec._DNSVerification_dnsVerificationStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dnsVerificationStatusReason": + out.Values[i] = ec._DNSVerification_dnsVerificationStatusReason(ctx, field, obj) + case "acmeChallengePath": + out.Values[i] = ec._DNSVerification_acmeChallengePath(ctx, field, obj) + case "expectedAcmeChallengeValue": + out.Values[i] = ec._DNSVerification_expectedAcmeChallengeValue(ctx, field, obj) + case "acmeChallengeStatus": + out.Values[i] = ec._DNSVerification_acmeChallengeStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "acmeChallengeStatusReason": + out.Values[i] = ec._DNSVerification_acmeChallengeStatusReason(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_assets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DNSVerification_owner(ctx, field, obj) return res } @@ -409432,7 +419791,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "customDomains": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409441,7 +419800,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_entities(ctx, field, obj) + res = ec._DNSVerification_customDomains(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409468,19 +419827,257 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var dNSVerificationConnectionImplementors = []string{"DNSVerificationConnection"} + +func (ec *executionContext) _DNSVerificationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerificationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DNSVerificationConnection") + case "edges": + out.Values[i] = ec._DNSVerificationConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._DNSVerificationConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._DNSVerificationConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var dNSVerificationEdgeImplementors = []string{"DNSVerificationEdge"} + +func (ec *executionContext) _DNSVerificationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerificationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DNSVerificationEdge") + case "node": + out.Values[i] = ec._DNSVerificationEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._DNSVerificationEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var directoryAccountImplementors = []string{"DirectoryAccount", "Node"} + +func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccount) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DirectoryAccount") + case "id": + out.Values[i] = ec._DirectoryAccount_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._DirectoryAccount_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._DirectoryAccount_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._DirectoryAccount_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._DirectoryAccount_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._DirectoryAccount_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._DirectoryAccount_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._DirectoryAccount_ownerID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._DirectoryAccount_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._DirectoryAccount_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._DirectoryAccount_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._DirectoryAccount_scopeID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._DirectoryAccount_integrationID(ctx, field, obj) + case "directorySyncRunID": + out.Values[i] = ec._DirectoryAccount_directorySyncRunID(ctx, field, obj) + case "platformID": + out.Values[i] = ec._DirectoryAccount_platformID(ctx, field, obj) + case "directoryInstanceID": + out.Values[i] = ec._DirectoryAccount_directoryInstanceID(ctx, field, obj) + case "identityHolderID": + out.Values[i] = ec._DirectoryAccount_identityHolderID(ctx, field, obj) + case "directoryName": + out.Values[i] = ec._DirectoryAccount_directoryName(ctx, field, obj) + case "externalID": + out.Values[i] = ec._DirectoryAccount_externalID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "secondaryKey": + out.Values[i] = ec._DirectoryAccount_secondaryKey(ctx, field, obj) + case "canonicalEmail": + out.Values[i] = ec._DirectoryAccount_canonicalEmail(ctx, field, obj) + case "emailAliases": + out.Values[i] = ec._DirectoryAccount_emailAliases(ctx, field, obj) + case "phoneNumber": + out.Values[i] = ec._DirectoryAccount_phoneNumber(ctx, field, obj) + case "displayName": + out.Values[i] = ec._DirectoryAccount_displayName(ctx, field, obj) + case "avatarRemoteURL": + out.Values[i] = ec._DirectoryAccount_avatarRemoteURL(ctx, field, obj) + case "avatarLocalFileID": + out.Values[i] = ec._DirectoryAccount_avatarLocalFileID(ctx, field, obj) + case "avatarUpdatedAt": + out.Values[i] = ec._DirectoryAccount_avatarUpdatedAt(ctx, field, obj) + case "givenName": + out.Values[i] = ec._DirectoryAccount_givenName(ctx, field, obj) + case "familyName": + out.Values[i] = ec._DirectoryAccount_familyName(ctx, field, obj) + case "jobTitle": + out.Values[i] = ec._DirectoryAccount_jobTitle(ctx, field, obj) + case "department": + out.Values[i] = ec._DirectoryAccount_department(ctx, field, obj) + case "organizationUnit": + out.Values[i] = ec._DirectoryAccount_organizationUnit(ctx, field, obj) + case "accountType": + out.Values[i] = ec._DirectoryAccount_accountType(ctx, field, obj) + case "status": + out.Values[i] = ec._DirectoryAccount_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "mfaState": + out.Values[i] = ec._DirectoryAccount_mfaState(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastSeenIP": + out.Values[i] = ec._DirectoryAccount_lastSeenIP(ctx, field, obj) + case "lastLoginAt": + out.Values[i] = ec._DirectoryAccount_lastLoginAt(ctx, field, obj) + case "firstSeenAt": + out.Values[i] = ec._DirectoryAccount_firstSeenAt(ctx, field, obj) + case "lastSeenAt": + out.Values[i] = ec._DirectoryAccount_lastSeenAt(ctx, field, obj) + case "addedAt": + out.Values[i] = ec._DirectoryAccount_addedAt(ctx, field, obj) + case "removedAt": + out.Values[i] = ec._DirectoryAccount_removedAt(ctx, field, obj) + case "observedAt": + out.Values[i] = ec._DirectoryAccount_observedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "profileHash": + out.Values[i] = ec._DirectoryAccount_profileHash(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "profile": + out.Values[i] = ec._DirectoryAccount_profile(ctx, field, obj) + case "metadata": + out.Values[i] = ec._DirectoryAccount_metadata(ctx, field, obj) + case "rawProfileFileID": + out.Values[i] = ec._DirectoryAccount_rawProfileFileID(ctx, field, obj) + case "sourceVersion": + out.Values[i] = ec._DirectoryAccount_sourceVersion(ctx, field, obj) + case "primarySource": + out.Values[i] = ec._DirectoryAccount_primarySource(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_identityHolders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_owner(ctx, field, obj) return res } @@ -409504,19 +420101,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_campaigns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_environment(ctx, field, obj) return res } @@ -409540,19 +420134,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_findings(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_scope(ctx, field, obj) return res } @@ -409576,19 +420167,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementations": + case "integration": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_controlImplementations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_integration(ctx, field, obj) return res } @@ -409612,19 +420200,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "directorySyncRun": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_subcontrols(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_directorySyncRun(ctx, field, obj) return res } @@ -409648,19 +420233,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scheduledJobs": + case "platform": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_scheduledJobs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_platform(ctx, field, obj) return res } @@ -409684,19 +420266,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "identityHolder": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_workflowObjectRefs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_identityHolder(ctx, field, obj) return res } @@ -409720,19 +420299,16 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlMappings": + case "avatarFile": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Control_controlMappings(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryAccount_avatarFile(ctx, field, obj) return res } @@ -409756,7 +420332,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "groups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409765,7 +420341,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_hasPendingWorkflow(ctx, field, obj) + res = ec._DirectoryAccount_groups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409792,7 +420368,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409801,7 +420377,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_hasWorkflowHistory(ctx, field, obj) + res = ec._DirectoryAccount_findings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409828,7 +420404,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409837,7 +420413,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_activeWorkflowInstances(ctx, field, obj) + res = ec._DirectoryAccount_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409864,7 +420440,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "memberships": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -409873,7 +420449,7 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Control_workflowTimeline(ctx, field, obj) + res = ec._DirectoryAccount_memberships(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -409923,26 +420499,26 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, return out } -var controlConnectionImplementors = []string{"ControlConnection"} +var directoryAccountConnectionImplementors = []string{"DirectoryAccountConnection"} -func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlConnectionImplementors) +func (ec *executionContext) _DirectoryAccountConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccountConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlConnection") + out.Values[i] = graphql.MarshalString("DirectoryAccountConnection") case "edges": - out.Values[i] = ec._ControlConnection_edges(ctx, field, obj) + out.Values[i] = ec._DirectoryAccountConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ControlConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._DirectoryAccountConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ControlConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._DirectoryAccountConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -409969,21 +420545,21 @@ func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.Sele return out } -var controlEdgeImplementors = []string{"ControlEdge"} +var directoryAccountEdgeImplementors = []string{"DirectoryAccountEdge"} -func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlEdgeImplementors) +func (ec *executionContext) _DirectoryAccountEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccountEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlEdge") + out.Values[i] = graphql.MarshalString("DirectoryAccountEdge") case "node": - out.Values[i] = ec._ControlEdge_node(ctx, field, obj) + out.Values[i] = ec._DirectoryAccountEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ControlEdge_cursor(ctx, field, obj) + out.Values[i] = ec._DirectoryAccountEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -410010,52 +420586,114 @@ func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionS return out } -var controlImplementationImplementors = []string{"ControlImplementation", "Node"} +var directoryGroupImplementors = []string{"DirectoryGroup", "Node"} -func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationImplementors) +func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroup) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlImplementation") + out.Values[i] = graphql.MarshalString("DirectoryGroup") case "id": - out.Values[i] = ec._ControlImplementation_id(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._ControlImplementation_createdAt(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._ControlImplementation_updatedAt(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._ControlImplementation_createdBy(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._ControlImplementation_updatedBy(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._DirectoryGroup_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "tags": - out.Values[i] = ec._ControlImplementation_tags(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._ControlImplementation_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._ControlImplementation_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._ControlImplementation_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._ControlImplementation_systemInternalID(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_ownerID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._DirectoryGroup_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._DirectoryGroup_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._DirectoryGroup_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._DirectoryGroup_scopeID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._DirectoryGroup_integrationID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "platformID": + out.Values[i] = ec._DirectoryGroup_platformID(ctx, field, obj) + case "directoryInstanceID": + out.Values[i] = ec._DirectoryGroup_directoryInstanceID(ctx, field, obj) + case "directorySyncRunID": + out.Values[i] = ec._DirectoryGroup_directorySyncRunID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "externalID": + out.Values[i] = ec._DirectoryGroup_externalID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "email": + out.Values[i] = ec._DirectoryGroup_email(ctx, field, obj) + case "displayName": + out.Values[i] = ec._DirectoryGroup_displayName(ctx, field, obj) + case "description": + out.Values[i] = ec._DirectoryGroup_description(ctx, field, obj) + case "classification": + out.Values[i] = ec._DirectoryGroup_classification(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "status": - out.Values[i] = ec._ControlImplementation_status(ctx, field, obj) - case "implementationDate": - out.Values[i] = ec._ControlImplementation_implementationDate(ctx, field, obj) - case "verified": - out.Values[i] = ec._ControlImplementation_verified(ctx, field, obj) - case "verificationDate": - out.Values[i] = ec._ControlImplementation_verificationDate(ctx, field, obj) - case "details": - out.Values[i] = ec._ControlImplementation_details(ctx, field, obj) - case "detailsJSON": - out.Values[i] = ec._ControlImplementation_detailsJSON(ctx, field, obj) + out.Values[i] = ec._DirectoryGroup_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "externalSharingAllowed": + out.Values[i] = ec._DirectoryGroup_externalSharingAllowed(ctx, field, obj) + case "memberCount": + out.Values[i] = ec._DirectoryGroup_memberCount(ctx, field, obj) + case "firstSeenAt": + out.Values[i] = ec._DirectoryGroup_firstSeenAt(ctx, field, obj) + case "lastSeenAt": + out.Values[i] = ec._DirectoryGroup_lastSeenAt(ctx, field, obj) + case "addedAt": + out.Values[i] = ec._DirectoryGroup_addedAt(ctx, field, obj) + case "removedAt": + out.Values[i] = ec._DirectoryGroup_removedAt(ctx, field, obj) + case "observedAt": + out.Values[i] = ec._DirectoryGroup_observedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "profileHash": + out.Values[i] = ec._DirectoryGroup_profileHash(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "profile": + out.Values[i] = ec._DirectoryGroup_profile(ctx, field, obj) + case "metadata": + out.Values[i] = ec._DirectoryGroup_metadata(ctx, field, obj) + case "rawProfileFileID": + out.Values[i] = ec._DirectoryGroup_rawProfileFileID(ctx, field, obj) + case "sourceVersion": + out.Values[i] = ec._DirectoryGroup_sourceVersion(ctx, field, obj) + case "directoryName": + out.Values[i] = ec._DirectoryGroup_directoryName(ctx, field, obj) case "owner": field := field @@ -410065,7 +420703,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_owner(ctx, field, obj) + res = ec._DirectoryGroup_owner(ctx, field, obj) return res } @@ -410089,19 +420727,49 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ControlImplementation_blockedGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._DirectoryGroup_environment(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 "scope": + 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._DirectoryGroup_scope(ctx, field, obj) return res } @@ -410125,7 +420793,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "integration": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410134,7 +420802,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_editors(ctx, field, obj) + res = ec._DirectoryGroup_integration(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410161,7 +420829,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "directorySyncRun": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410170,7 +420838,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_viewers(ctx, field, obj) + res = ec._DirectoryGroup_directorySyncRun(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410197,7 +420865,40 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "platform": + 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._DirectoryGroup_platform(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 "accounts": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410206,7 +420907,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_controls(ctx, field, obj) + res = ec._DirectoryGroup_accounts(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410233,7 +420934,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410242,7 +420943,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_subcontrols(ctx, field, obj) + res = ec._DirectoryGroup_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410269,7 +420970,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "members": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410278,7 +420979,7 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlImplementation_tasks(ctx, field, obj) + res = ec._DirectoryGroup_members(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410328,26 +421029,26 @@ func (ec *executionContext) _ControlImplementation(ctx context.Context, sel ast. return out } -var controlImplementationConnectionImplementors = []string{"ControlImplementationConnection"} +var directoryGroupConnectionImplementors = []string{"DirectoryGroupConnection"} -func (ec *executionContext) _ControlImplementationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationConnectionImplementors) +func (ec *executionContext) _DirectoryGroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroupConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlImplementationConnection") + out.Values[i] = graphql.MarshalString("DirectoryGroupConnection") case "edges": - out.Values[i] = ec._ControlImplementationConnection_edges(ctx, field, obj) + out.Values[i] = ec._DirectoryGroupConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ControlImplementationConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._DirectoryGroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ControlImplementationConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._DirectoryGroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -410374,21 +421075,21 @@ func (ec *executionContext) _ControlImplementationConnection(ctx context.Context return out } -var controlImplementationEdgeImplementors = []string{"ControlImplementationEdge"} +var directoryGroupEdgeImplementors = []string{"DirectoryGroupEdge"} -func (ec *executionContext) _ControlImplementationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlImplementationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementationEdgeImplementors) +func (ec *executionContext) _DirectoryGroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroupEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlImplementationEdge") + out.Values[i] = graphql.MarshalString("DirectoryGroupEdge") case "node": - out.Values[i] = ec._ControlImplementationEdge_node(ctx, field, obj) + out.Values[i] = ec._DirectoryGroupEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ControlImplementationEdge_cursor(ctx, field, obj) + out.Values[i] = ec._DirectoryGroupEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -410415,184 +421116,102 @@ func (ec *executionContext) _ControlImplementationEdge(ctx context.Context, sel return out } -var controlObjectiveImplementors = []string{"ControlObjective", "Node"} +var directoryMembershipImplementors = []string{"DirectoryMembership", "Node"} -func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjective) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveImplementors) +func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembership) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjective") + out.Values[i] = graphql.MarshalString("DirectoryMembership") case "id": - out.Values[i] = ec._ControlObjective_id(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._ControlObjective_createdAt(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._ControlObjective_updatedAt(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._ControlObjective_createdBy(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._ControlObjective_updatedBy(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_updatedBy(ctx, field, obj) case "displayID": - out.Values[i] = ec._ControlObjective_displayID(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "tags": - out.Values[i] = ec._ControlObjective_tags(ctx, field, obj) - case "revision": - out.Values[i] = ec._ControlObjective_revision(ctx, field, obj) case "ownerID": - out.Values[i] = ec._ControlObjective_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._ControlObjective_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._ControlObjective_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._ControlObjective_systemInternalID(ctx, field, obj) - case "name": - out.Values[i] = ec._ControlObjective_name(ctx, field, obj) + out.Values[i] = ec._DirectoryMembership_ownerID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._DirectoryMembership_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._DirectoryMembership_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._DirectoryMembership_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._DirectoryMembership_scopeID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._DirectoryMembership_integrationID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "desiredOutcome": - out.Values[i] = ec._ControlObjective_desiredOutcome(ctx, field, obj) - case "desiredOutcomeJSON": - out.Values[i] = ec._ControlObjective_desiredOutcomeJSON(ctx, field, obj) - case "status": - out.Values[i] = ec._ControlObjective_status(ctx, field, obj) - case "source": - out.Values[i] = ec._ControlObjective_source(ctx, field, obj) - case "controlObjectiveType": - out.Values[i] = ec._ControlObjective_controlObjectiveType(ctx, field, obj) - case "category": - out.Values[i] = ec._ControlObjective_category(ctx, field, obj) - case "subcategory": - out.Values[i] = ec._ControlObjective_subcategory(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ControlObjective_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": - 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._ControlObjective_blockedGroups(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 + case "platformID": + out.Values[i] = ec._DirectoryMembership_platformID(ctx, field, obj) + case "directoryInstanceID": + out.Values[i] = ec._DirectoryMembership_directoryInstanceID(ctx, field, obj) + case "directorySyncRunID": + out.Values[i] = ec._DirectoryMembership_directorySyncRunID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": - 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._ControlObjective_editors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "directoryAccountID": + out.Values[i] = ec._DirectoryMembership_directoryAccountID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - 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 + case "directoryGroupID": + out.Values[i] = ec._DirectoryMembership_directoryGroupID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "role": + out.Values[i] = ec._DirectoryMembership_role(ctx, field, obj) + case "source": + out.Values[i] = ec._DirectoryMembership_source(ctx, field, obj) + case "directoryName": + out.Values[i] = ec._DirectoryMembership_directoryName(ctx, field, obj) + case "firstSeenAt": + out.Values[i] = ec._DirectoryMembership_firstSeenAt(ctx, field, obj) + case "lastSeenAt": + out.Values[i] = ec._DirectoryMembership_lastSeenAt(ctx, field, obj) + case "addedAt": + out.Values[i] = ec._DirectoryMembership_addedAt(ctx, field, obj) + case "removedAt": + out.Values[i] = ec._DirectoryMembership_removedAt(ctx, field, obj) + case "observedAt": + out.Values[i] = ec._DirectoryMembership_observedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastConfirmedRunID": + out.Values[i] = ec._DirectoryMembership_lastConfirmedRunID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._DirectoryMembership_metadata(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ControlObjective_viewers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryMembership_owner(ctx, field, obj) return res } @@ -410616,19 +421235,16 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ControlObjective_programs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryMembership_environment(ctx, field, obj) return res } @@ -410652,19 +421268,16 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidence": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ControlObjective_evidence(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryMembership_scope(ctx, field, obj) return res } @@ -410688,7 +421301,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "integration": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410697,7 +421310,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_controls(ctx, field, obj) + res = ec._DirectoryMembership_integration(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410724,7 +421337,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "directorySyncRun": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410733,7 +421346,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_subcontrols(ctx, field, obj) + res = ec._DirectoryMembership_directorySyncRun(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410760,19 +421373,16 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "platform": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._ControlObjective_internalPolicies(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectoryMembership_platform(ctx, field, obj) return res } @@ -410796,7 +421406,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedures": + case "directoryAccount": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410805,7 +421415,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_procedures(ctx, field, obj) + res = ec._DirectoryMembership_directoryAccount(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410832,7 +421442,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "directoryGroup": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410841,7 +421451,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_risks(ctx, field, obj) + res = ec._DirectoryMembership_directoryGroup(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410868,7 +421478,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narratives": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410877,7 +421487,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_narratives(ctx, field, obj) + res = ec._DirectoryMembership_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410904,7 +421514,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -410913,7 +421523,7 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._ControlObjective_tasks(ctx, field, obj) + res = ec._DirectoryMembership_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -410963,26 +421573,26 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec return out } -var controlObjectiveConnectionImplementors = []string{"ControlObjectiveConnection"} +var directoryMembershipConnectionImplementors = []string{"DirectoryMembershipConnection"} -func (ec *executionContext) _ControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveConnectionImplementors) +func (ec *executionContext) _DirectoryMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembershipConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveConnection") + out.Values[i] = graphql.MarshalString("DirectoryMembershipConnection") case "edges": - out.Values[i] = ec._ControlObjectiveConnection_edges(ctx, field, obj) + out.Values[i] = ec._DirectoryMembershipConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ControlObjectiveConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._DirectoryMembershipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ControlObjectiveConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._DirectoryMembershipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -411009,21 +421619,21 @@ func (ec *executionContext) _ControlObjectiveConnection(ctx context.Context, sel return out } -var controlObjectiveEdgeImplementors = []string{"ControlObjectiveEdge"} +var directoryMembershipEdgeImplementors = []string{"DirectoryMembershipEdge"} -func (ec *executionContext) _ControlObjectiveEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveEdgeImplementors) +func (ec *executionContext) _DirectoryMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembershipEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveEdge") + out.Values[i] = graphql.MarshalString("DirectoryMembershipEdge") case "node": - out.Values[i] = ec._ControlObjectiveEdge_node(ctx, field, obj) + out.Values[i] = ec._DirectoryMembershipEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ControlObjectiveEdge_cursor(ctx, field, obj) + out.Values[i] = ec._DirectoryMembershipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -411050,59 +421660,84 @@ func (ec *executionContext) _ControlObjectiveEdge(ctx context.Context, sel ast.S return out } -var customDomainImplementors = []string{"CustomDomain", "Node"} +var directorySyncRunImplementors = []string{"DirectorySyncRun", "Node"} -func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomain) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customDomainImplementors) +func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRun) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CustomDomain") + out.Values[i] = graphql.MarshalString("DirectorySyncRun") case "id": - out.Values[i] = ec._CustomDomain_id(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._CustomDomain_createdAt(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._CustomDomain_updatedAt(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._CustomDomain_createdBy(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._CustomDomain_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._CustomDomain_tags(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._DirectorySyncRun_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "ownerID": - out.Values[i] = ec._CustomDomain_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._CustomDomain_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._CustomDomain_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._CustomDomain_systemInternalID(ctx, field, obj) - case "cnameRecord": - out.Values[i] = ec._CustomDomain_cnameRecord(ctx, field, obj) + out.Values[i] = ec._DirectorySyncRun_ownerID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._DirectorySyncRun_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._DirectorySyncRun_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._DirectorySyncRun_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._DirectorySyncRun_scopeID(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._DirectorySyncRun_integrationID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "mappableDomainID": - out.Values[i] = ec._CustomDomain_mappableDomainID(ctx, field, obj) + case "platformID": + out.Values[i] = ec._DirectorySyncRun_platformID(ctx, field, obj) + case "directoryInstanceID": + out.Values[i] = ec._DirectorySyncRun_directoryInstanceID(ctx, field, obj) + case "status": + out.Values[i] = ec._DirectorySyncRun_status(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "dnsVerificationID": - out.Values[i] = ec._CustomDomain_dnsVerificationID(ctx, field, obj) - case "trustCenterID": - out.Values[i] = ec._CustomDomain_trustCenterID(ctx, field, obj) - case "domainType": - out.Values[i] = ec._CustomDomain_domainType(ctx, field, obj) + case "startedAt": + out.Values[i] = ec._DirectorySyncRun_startedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "completedAt": + out.Values[i] = ec._DirectorySyncRun_completedAt(ctx, field, obj) + case "sourceCursor": + out.Values[i] = ec._DirectorySyncRun_sourceCursor(ctx, field, obj) + case "fullCount": + out.Values[i] = ec._DirectorySyncRun_fullCount(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "deltaCount": + out.Values[i] = ec._DirectorySyncRun_deltaCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "error": + out.Values[i] = ec._DirectorySyncRun_error(ctx, field, obj) + case "rawManifestFileID": + out.Values[i] = ec._DirectorySyncRun_rawManifestFileID(ctx, field, obj) + case "stats": + out.Values[i] = ec._DirectorySyncRun_stats(ctx, field, obj) case "owner": field := field @@ -411112,7 +421747,7 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomDomain_owner(ctx, field, obj) + res = ec._DirectorySyncRun_owner(ctx, field, obj) return res } @@ -411136,19 +421771,16 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "mappableDomain": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomDomain_mappableDomain(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._DirectorySyncRun_environment(ctx, field, obj) return res } @@ -411172,7 +421804,7 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dnsVerification": + case "scope": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -411181,7 +421813,7 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomDomain_dnsVerification(ctx, field, obj) + res = ec._DirectorySyncRun_scope(ctx, field, obj) return res } @@ -411205,170 +421837,43 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var customDomainConnectionImplementors = []string{"CustomDomainConnection"} - -func (ec *executionContext) _CustomDomainConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomainConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customDomainConnectionImplementors) + case "integration": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CustomDomainConnection") - case "edges": - out.Values[i] = ec._CustomDomainConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._CustomDomainConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._CustomDomainConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + 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._DirectorySyncRun_integration(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var customDomainEdgeImplementors = []string{"CustomDomainEdge"} -func (ec *executionContext) _CustomDomainEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomDomainEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customDomainEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CustomDomainEdge") - case "node": - out.Values[i] = ec._CustomDomainEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._CustomDomainEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var customTypeEnumImplementors = []string{"CustomTypeEnum", "Node"} - -func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnum) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CustomTypeEnum") - case "id": - out.Values[i] = ec._CustomTypeEnum_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._CustomTypeEnum_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._CustomTypeEnum_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._CustomTypeEnum_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._CustomTypeEnum_updatedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._CustomTypeEnum_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._CustomTypeEnum_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._CustomTypeEnum_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._CustomTypeEnum_systemInternalID(ctx, field, obj) - case "objectType": - out.Values[i] = ec._CustomTypeEnum_objectType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "field": - out.Values[i] = ec._CustomTypeEnum_field(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._CustomTypeEnum_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._CustomTypeEnum_description(ctx, field, obj) - case "color": - out.Values[i] = ec._CustomTypeEnum_color(ctx, field, obj) - case "icon": - out.Values[i] = ec._CustomTypeEnum_icon(ctx, field, obj) - case "owner": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "platform": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -411377,7 +421882,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomTypeEnum_owner(ctx, field, obj) + res = ec._DirectorySyncRun_platform(ctx, field, obj) return res } @@ -411401,7 +421906,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "directoryAccounts": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -411410,7 +421915,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomTypeEnum_tasks(ctx, field, obj) + res = ec._DirectorySyncRun_directoryAccounts(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -411437,7 +421942,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "directoryGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -411446,7 +421951,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomTypeEnum_controls(ctx, field, obj) + res = ec._DirectorySyncRun_directoryGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -411473,7 +421978,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "directoryMemberships": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -411482,7 +421987,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomTypeEnum_subcontrols(ctx, field, obj) + res = ec._DirectorySyncRun_directoryMemberships(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -411509,19 +422014,159 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var directorySyncRunConnectionImplementors = []string{"DirectorySyncRunConnection"} + +func (ec *executionContext) _DirectorySyncRunConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRunConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DirectorySyncRunConnection") + case "edges": + out.Values[i] = ec._DirectorySyncRunConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._DirectorySyncRunConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._DirectorySyncRunConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var directorySyncRunEdgeImplementors = []string{"DirectorySyncRunEdge"} + +func (ec *executionContext) _DirectorySyncRunEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRunEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DirectorySyncRunEdge") + case "node": + out.Values[i] = ec._DirectorySyncRunEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._DirectorySyncRunEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var discussionImplementors = []string{"Discussion", "Node"} + +func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSet, obj *generated.Discussion) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Discussion") + case "id": + out.Values[i] = ec._Discussion_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Discussion_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Discussion_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Discussion_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Discussion_updatedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Discussion_ownerID(ctx, field, obj) + case "externalID": + out.Values[i] = ec._Discussion_externalID(ctx, field, obj) + case "isResolved": + out.Values[i] = ec._Discussion_isResolved(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_risks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_owner(ctx, field, obj) return res } @@ -411545,7 +422190,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskCategories": + case "comments": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -411554,7 +422199,7 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._CustomTypeEnum_riskCategories(ctx, field, obj) + res = ec._Discussion_comments(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -411581,19 +422226,16 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "control": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_internalPolicies(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_control(ctx, field, obj) return res } @@ -411617,19 +422259,16 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedures": + case "subcontrol": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_procedures(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_subcontrol(ctx, field, obj) return res } @@ -411653,19 +422292,16 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlans": + case "procedure": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_actionPlans(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_procedure(ctx, field, obj) return res } @@ -411689,19 +422325,16 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "risk": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_programs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_risk(ctx, field, obj) return res } @@ -411725,19 +422358,16 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "internalPolicy": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._CustomTypeEnum_platforms(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Discussion_internalPolicy(ctx, field, obj) return res } @@ -411784,26 +422414,26 @@ func (ec *executionContext) _CustomTypeEnum(ctx context.Context, sel ast.Selecti return out } -var customTypeEnumConnectionImplementors = []string{"CustomTypeEnumConnection"} +var discussionConnectionImplementors = []string{"DiscussionConnection"} -func (ec *executionContext) _CustomTypeEnumConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnumConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumConnectionImplementors) +func (ec *executionContext) _DiscussionConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DiscussionConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CustomTypeEnumConnection") + out.Values[i] = graphql.MarshalString("DiscussionConnection") case "edges": - out.Values[i] = ec._CustomTypeEnumConnection_edges(ctx, field, obj) + out.Values[i] = ec._DiscussionConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._CustomTypeEnumConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._DiscussionConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._CustomTypeEnumConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._DiscussionConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -411830,21 +422460,21 @@ func (ec *executionContext) _CustomTypeEnumConnection(ctx context.Context, sel a return out } -var customTypeEnumEdgeImplementors = []string{"CustomTypeEnumEdge"} +var discussionEdgeImplementors = []string{"DiscussionEdge"} -func (ec *executionContext) _CustomTypeEnumEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.CustomTypeEnumEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customTypeEnumEdgeImplementors) +func (ec *executionContext) _DiscussionEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DiscussionEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CustomTypeEnumEdge") + out.Values[i] = graphql.MarshalString("DiscussionEdge") case "node": - out.Values[i] = ec._CustomTypeEnumEdge_node(ctx, field, obj) + out.Values[i] = ec._DiscussionEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._CustomTypeEnumEdge_cursor(ctx, field, obj) + out.Values[i] = ec._DiscussionEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -411871,68 +422501,116 @@ func (ec *executionContext) _CustomTypeEnumEdge(ctx context.Context, sel ast.Sel return out } -var dNSVerificationImplementors = []string{"DNSVerification", "Node"} +var documentDataImplementors = []string{"DocumentData", "Node"} -func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerification) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationImplementors) +func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentData) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DNSVerification") + out.Values[i] = graphql.MarshalString("DocumentData") case "id": - out.Values[i] = ec._DNSVerification_id(ctx, field, obj) + out.Values[i] = ec._DocumentData_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._DNSVerification_createdAt(ctx, field, obj) + out.Values[i] = ec._DocumentData_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._DNSVerification_updatedAt(ctx, field, obj) + out.Values[i] = ec._DocumentData_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._DNSVerification_createdBy(ctx, field, obj) + out.Values[i] = ec._DocumentData_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._DNSVerification_updatedBy(ctx, field, obj) + out.Values[i] = ec._DocumentData_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._DNSVerification_tags(ctx, field, obj) + out.Values[i] = ec._DocumentData_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._DNSVerification_ownerID(ctx, field, obj) - case "cloudflareHostnameID": - out.Values[i] = ec._DNSVerification_cloudflareHostnameID(ctx, field, obj) + out.Values[i] = ec._DocumentData_ownerID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._DocumentData_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._DocumentData_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._DocumentData_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._DocumentData_scopeID(ctx, field, obj) + case "templateID": + out.Values[i] = ec._DocumentData_templateID(ctx, field, obj) + case "data": + out.Values[i] = ec._DocumentData_data(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "dnsTxtRecord": - out.Values[i] = ec._DNSVerification_dnsTxtRecord(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DocumentData_owner(ctx, field, obj) + return res } - case "dnsTxtValue": - out.Values[i] = ec._DNSVerification_dnsTxtValue(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + 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 } - case "dnsVerificationStatus": - out.Values[i] = ec._DNSVerification_dnsVerificationStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "environment": + 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_environment(ctx, field, obj) + return res } - case "dnsVerificationStatusReason": - out.Values[i] = ec._DNSVerification_dnsVerificationStatusReason(ctx, field, obj) - case "acmeChallengePath": - out.Values[i] = ec._DNSVerification_acmeChallengePath(ctx, field, obj) - case "expectedAcmeChallengeValue": - out.Values[i] = ec._DNSVerification_expectedAcmeChallengeValue(ctx, field, obj) - case "acmeChallengeStatus": - out.Values[i] = ec._DNSVerification_acmeChallengeStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + 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 } - case "acmeChallengeStatusReason": - out.Values[i] = ec._DNSVerification_acmeChallengeStatusReason(ctx, field, obj) - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "scope": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -411941,7 +422619,7 @@ func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DNSVerification_owner(ctx, field, obj) + res = ec._DocumentData_scope(ctx, field, obj) return res } @@ -411965,7 +422643,40 @@ func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "customDomains": + case "template": + 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_template(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 "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -411974,7 +422685,43 @@ func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DNSVerification_customDomains(ctx, field, obj) + res = ec._DocumentData_entities(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 "files": + 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._DocumentData_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -412024,26 +422771,26 @@ func (ec *executionContext) _DNSVerification(ctx context.Context, sel ast.Select return out } -var dNSVerificationConnectionImplementors = []string{"DNSVerificationConnection"} +var documentDataConnectionImplementors = []string{"DocumentDataConnection"} -func (ec *executionContext) _DNSVerificationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerificationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationConnectionImplementors) +func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DNSVerificationConnection") + out.Values[i] = graphql.MarshalString("DocumentDataConnection") case "edges": - out.Values[i] = ec._DNSVerificationConnection_edges(ctx, field, obj) + out.Values[i] = ec._DocumentDataConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._DNSVerificationConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._DocumentDataConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._DNSVerificationConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._DocumentDataConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -412070,21 +422817,21 @@ func (ec *executionContext) _DNSVerificationConnection(ctx context.Context, sel return out } -var dNSVerificationEdgeImplementors = []string{"DNSVerificationEdge"} +var documentDataEdgeImplementors = []string{"DocumentDataEdge"} -func (ec *executionContext) _DNSVerificationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DNSVerificationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dNSVerificationEdgeImplementors) +func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DNSVerificationEdge") + out.Values[i] = graphql.MarshalString("DocumentDataEdge") case "node": - out.Values[i] = ec._DNSVerificationEdge_node(ctx, field, obj) + out.Values[i] = ec._DocumentDataEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._DNSVerificationEdge_cursor(ctx, field, obj) + out.Values[i] = ec._DocumentDataEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -412111,137 +422858,81 @@ func (ec *executionContext) _DNSVerificationEdge(ctx context.Context, sel ast.Se return out } -var directoryAccountImplementors = []string{"DirectoryAccount", "Node"} +var emailTemplateImplementors = []string{"EmailTemplate", "Node"} -func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccount) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountImplementors) +func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplate) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryAccount") + out.Values[i] = graphql.MarshalString("EmailTemplate") case "id": - out.Values[i] = ec._DirectoryAccount_id(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._DirectoryAccount_createdAt(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._DirectoryAccount_updatedAt(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._DirectoryAccount_createdBy(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._DirectoryAccount_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._DirectoryAccount_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._DirectoryAccount_tags(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_updatedBy(ctx, field, obj) + case "revision": + out.Values[i] = ec._EmailTemplate_revision(ctx, field, obj) case "ownerID": - out.Values[i] = ec._DirectoryAccount_ownerID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._DirectoryAccount_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._DirectoryAccount_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._DirectoryAccount_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._DirectoryAccount_scopeID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._DirectoryAccount_integrationID(ctx, field, obj) - case "directorySyncRunID": - out.Values[i] = ec._DirectoryAccount_directorySyncRunID(ctx, field, obj) - case "platformID": - out.Values[i] = ec._DirectoryAccount_platformID(ctx, field, obj) - case "directoryInstanceID": - out.Values[i] = ec._DirectoryAccount_directoryInstanceID(ctx, field, obj) - case "identityHolderID": - out.Values[i] = ec._DirectoryAccount_identityHolderID(ctx, field, obj) - case "directoryName": - out.Values[i] = ec._DirectoryAccount_directoryName(ctx, field, obj) - case "externalID": - out.Values[i] = ec._DirectoryAccount_externalID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "secondaryKey": - out.Values[i] = ec._DirectoryAccount_secondaryKey(ctx, field, obj) - case "canonicalEmail": - out.Values[i] = ec._DirectoryAccount_canonicalEmail(ctx, field, obj) - case "emailAliases": - out.Values[i] = ec._DirectoryAccount_emailAliases(ctx, field, obj) - case "phoneNumber": - out.Values[i] = ec._DirectoryAccount_phoneNumber(ctx, field, obj) - case "displayName": - out.Values[i] = ec._DirectoryAccount_displayName(ctx, field, obj) - case "avatarRemoteURL": - out.Values[i] = ec._DirectoryAccount_avatarRemoteURL(ctx, field, obj) - case "avatarLocalFileID": - out.Values[i] = ec._DirectoryAccount_avatarLocalFileID(ctx, field, obj) - case "avatarUpdatedAt": - out.Values[i] = ec._DirectoryAccount_avatarUpdatedAt(ctx, field, obj) - case "givenName": - out.Values[i] = ec._DirectoryAccount_givenName(ctx, field, obj) - case "familyName": - out.Values[i] = ec._DirectoryAccount_familyName(ctx, field, obj) - case "jobTitle": - out.Values[i] = ec._DirectoryAccount_jobTitle(ctx, field, obj) - case "department": - out.Values[i] = ec._DirectoryAccount_department(ctx, field, obj) - case "organizationUnit": - out.Values[i] = ec._DirectoryAccount_organizationUnit(ctx, field, obj) - case "accountType": - out.Values[i] = ec._DirectoryAccount_accountType(ctx, field, obj) - case "status": - out.Values[i] = ec._DirectoryAccount_status(ctx, field, obj) + out.Values[i] = ec._EmailTemplate_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._EmailTemplate_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._EmailTemplate_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._EmailTemplate_systemInternalID(ctx, field, obj) + case "key": + out.Values[i] = ec._EmailTemplate_key(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "mfaState": - out.Values[i] = ec._DirectoryAccount_mfaState(ctx, field, obj) + case "name": + out.Values[i] = ec._EmailTemplate_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "lastSeenIP": - out.Values[i] = ec._DirectoryAccount_lastSeenIP(ctx, field, obj) - case "lastLoginAt": - out.Values[i] = ec._DirectoryAccount_lastLoginAt(ctx, field, obj) - case "firstSeenAt": - out.Values[i] = ec._DirectoryAccount_firstSeenAt(ctx, field, obj) - case "lastSeenAt": - out.Values[i] = ec._DirectoryAccount_lastSeenAt(ctx, field, obj) - case "addedAt": - out.Values[i] = ec._DirectoryAccount_addedAt(ctx, field, obj) - case "removedAt": - out.Values[i] = ec._DirectoryAccount_removedAt(ctx, field, obj) - case "observedAt": - out.Values[i] = ec._DirectoryAccount_observedAt(ctx, field, obj) + case "description": + out.Values[i] = ec._EmailTemplate_description(ctx, field, obj) + case "format": + out.Values[i] = ec._EmailTemplate_format(ctx, field, obj) + case "locale": + out.Values[i] = ec._EmailTemplate_locale(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "profileHash": - out.Values[i] = ec._DirectoryAccount_profileHash(ctx, field, obj) + case "metadata": + out.Values[i] = ec._EmailTemplate_metadata(ctx, field, obj) + case "active": + out.Values[i] = ec._EmailTemplate_active(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "profile": - out.Values[i] = ec._DirectoryAccount_profile(ctx, field, obj) - case "metadata": - out.Values[i] = ec._DirectoryAccount_metadata(ctx, field, obj) - case "rawProfileFileID": - out.Values[i] = ec._DirectoryAccount_rawProfileFileID(ctx, field, obj) - case "sourceVersion": - out.Values[i] = ec._DirectoryAccount_sourceVersion(ctx, field, obj) - case "primarySource": - out.Values[i] = ec._DirectoryAccount_primarySource(ctx, field, obj) + case "version": + out.Values[i] = ec._EmailTemplate_version(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "templateContext": + out.Values[i] = ec._EmailTemplate_templateContext(ctx, field, obj) + case "defaults": + out.Values[i] = ec._EmailTemplate_defaults(ctx, field, obj) + case "integrationID": + out.Values[i] = ec._EmailTemplate_integrationID(ctx, field, obj) + case "workflowDefinitionID": + out.Values[i] = ec._EmailTemplate_workflowDefinitionID(ctx, field, obj) + case "workflowInstanceID": + out.Values[i] = ec._EmailTemplate_workflowInstanceID(ctx, field, obj) case "owner": field := field @@ -412251,7 +422942,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_owner(ctx, field, obj) + res = ec._EmailTemplate_owner(ctx, field, obj) return res } @@ -412275,49 +422966,19 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "blockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryAccount_environment(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 + res = ec._EmailTemplate_blockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - 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 "scope": - 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._DirectoryAccount_scope(ctx, field, obj) return res } @@ -412341,49 +423002,19 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "editors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryAccount_integration(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 + res = ec._EmailTemplate_editors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - 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 "directorySyncRun": - 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._DirectoryAccount_directorySyncRun(ctx, field, obj) return res } @@ -412407,16 +423038,19 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + case "viewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryAccount_platform(ctx, field, obj) + res = ec._EmailTemplate_viewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -412440,7 +423074,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolder": + case "integration": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -412449,7 +423083,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_identityHolder(ctx, field, obj) + res = ec._EmailTemplate_integration(ctx, field, obj) return res } @@ -412473,7 +423107,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "avatarFile": + case "workflowDefinition": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -412482,7 +423116,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_avatarFile(ctx, field, obj) + res = ec._EmailTemplate_workflowDefinition(ctx, field, obj) return res } @@ -412506,19 +423140,16 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": + case "workflowInstance": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryAccount_groups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._EmailTemplate_workflowInstance(ctx, field, obj) return res } @@ -412542,7 +423173,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + case "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -412551,7 +423182,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_findings(ctx, field, obj) + res = ec._EmailTemplate_campaigns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -412578,7 +423209,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "notificationTemplates": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -412587,7 +423218,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_workflowObjectRefs(ctx, field, obj) + res = ec._EmailTemplate_notificationTemplates(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -412614,7 +423245,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "memberships": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -412623,7 +423254,7 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryAccount_memberships(ctx, field, obj) + res = ec._EmailTemplate_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -412673,26 +423304,26 @@ func (ec *executionContext) _DirectoryAccount(ctx context.Context, sel ast.Selec return out } -var directoryAccountConnectionImplementors = []string{"DirectoryAccountConnection"} +var emailTemplateConnectionImplementors = []string{"EmailTemplateConnection"} -func (ec *executionContext) _DirectoryAccountConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccountConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountConnectionImplementors) +func (ec *executionContext) _EmailTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplateConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryAccountConnection") + out.Values[i] = graphql.MarshalString("EmailTemplateConnection") case "edges": - out.Values[i] = ec._DirectoryAccountConnection_edges(ctx, field, obj) + out.Values[i] = ec._EmailTemplateConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._DirectoryAccountConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._EmailTemplateConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._DirectoryAccountConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._EmailTemplateConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -412719,21 +423350,21 @@ func (ec *executionContext) _DirectoryAccountConnection(ctx context.Context, sel return out } -var directoryAccountEdgeImplementors = []string{"DirectoryAccountEdge"} +var emailTemplateEdgeImplementors = []string{"EmailTemplateEdge"} -func (ec *executionContext) _DirectoryAccountEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryAccountEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryAccountEdgeImplementors) +func (ec *executionContext) _EmailTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplateEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryAccountEdge") + out.Values[i] = graphql.MarshalString("EmailTemplateEdge") case "node": - out.Values[i] = ec._DirectoryAccountEdge_node(ctx, field, obj) + out.Values[i] = ec._EmailTemplateEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._DirectoryAccountEdge_cursor(ctx, field, obj) + out.Values[i] = ec._EmailTemplateEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -412760,114 +423391,146 @@ func (ec *executionContext) _DirectoryAccountEdge(ctx context.Context, sel ast.S return out } -var directoryGroupImplementors = []string{"DirectoryGroup", "Node"} +var entityImplementors = []string{"Entity", "Node"} -func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroup) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupImplementors) +func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, obj *generated.Entity) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryGroup") + out.Values[i] = graphql.MarshalString("Entity") case "id": - out.Values[i] = ec._DirectoryGroup_id(ctx, field, obj) + out.Values[i] = ec._Entity_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._DirectoryGroup_createdAt(ctx, field, obj) + out.Values[i] = ec._Entity_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._DirectoryGroup_updatedAt(ctx, field, obj) + out.Values[i] = ec._Entity_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._DirectoryGroup_createdBy(ctx, field, obj) + out.Values[i] = ec._Entity_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._DirectoryGroup_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._DirectoryGroup_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._Entity_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._DirectoryGroup_tags(ctx, field, obj) + out.Values[i] = ec._Entity_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._DirectoryGroup_ownerID(ctx, field, obj) + out.Values[i] = ec._Entity_ownerID(ctx, field, obj) + case "internalOwner": + out.Values[i] = ec._Entity_internalOwner(ctx, field, obj) + case "internalOwnerUserID": + out.Values[i] = ec._Entity_internalOwnerUserID(ctx, field, obj) + case "internalOwnerGroupID": + out.Values[i] = ec._Entity_internalOwnerGroupID(ctx, field, obj) + case "reviewedBy": + out.Values[i] = ec._Entity_reviewedBy(ctx, field, obj) + case "reviewedByUserID": + out.Values[i] = ec._Entity_reviewedByUserID(ctx, field, obj) + case "reviewedByGroupID": + out.Values[i] = ec._Entity_reviewedByGroupID(ctx, field, obj) + case "lastReviewedAt": + out.Values[i] = ec._Entity_lastReviewedAt(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Entity_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Entity_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Entity_systemInternalID(ctx, field, obj) + case "entityRelationshipStateName": + out.Values[i] = ec._Entity_entityRelationshipStateName(ctx, field, obj) + case "entityRelationshipStateID": + out.Values[i] = ec._Entity_entityRelationshipStateID(ctx, field, obj) + case "entitySecurityQuestionnaireStatusName": + out.Values[i] = ec._Entity_entitySecurityQuestionnaireStatusName(ctx, field, obj) + case "entitySecurityQuestionnaireStatusID": + out.Values[i] = ec._Entity_entitySecurityQuestionnaireStatusID(ctx, field, obj) + case "entitySourceTypeName": + out.Values[i] = ec._Entity_entitySourceTypeName(ctx, field, obj) + case "entitySourceTypeID": + out.Values[i] = ec._Entity_entitySourceTypeID(ctx, field, obj) case "environmentName": - out.Values[i] = ec._DirectoryGroup_environmentName(ctx, field, obj) + out.Values[i] = ec._Entity_environmentName(ctx, field, obj) case "environmentID": - out.Values[i] = ec._DirectoryGroup_environmentID(ctx, field, obj) + out.Values[i] = ec._Entity_environmentID(ctx, field, obj) case "scopeName": - out.Values[i] = ec._DirectoryGroup_scopeName(ctx, field, obj) + out.Values[i] = ec._Entity_scopeName(ctx, field, obj) case "scopeID": - out.Values[i] = ec._DirectoryGroup_scopeID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._DirectoryGroup_integrationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "platformID": - out.Values[i] = ec._DirectoryGroup_platformID(ctx, field, obj) - case "directoryInstanceID": - out.Values[i] = ec._DirectoryGroup_directoryInstanceID(ctx, field, obj) - case "directorySyncRunID": - out.Values[i] = ec._DirectoryGroup_directorySyncRunID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "externalID": - out.Values[i] = ec._DirectoryGroup_externalID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "email": - out.Values[i] = ec._DirectoryGroup_email(ctx, field, obj) + out.Values[i] = ec._Entity_scopeID(ctx, field, obj) + case "name": + out.Values[i] = ec._Entity_name(ctx, field, obj) case "displayName": - out.Values[i] = ec._DirectoryGroup_displayName(ctx, field, obj) + out.Values[i] = ec._Entity_displayName(ctx, field, obj) case "description": - out.Values[i] = ec._DirectoryGroup_description(ctx, field, obj) - case "classification": - out.Values[i] = ec._DirectoryGroup_classification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._Entity_description(ctx, field, obj) + case "domains": + out.Values[i] = ec._Entity_domains(ctx, field, obj) + case "entityTypeID": + out.Values[i] = ec._Entity_entityTypeID(ctx, field, obj) case "status": - out.Values[i] = ec._DirectoryGroup_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "externalSharingAllowed": - out.Values[i] = ec._DirectoryGroup_externalSharingAllowed(ctx, field, obj) - case "memberCount": - out.Values[i] = ec._DirectoryGroup_memberCount(ctx, field, obj) - case "firstSeenAt": - out.Values[i] = ec._DirectoryGroup_firstSeenAt(ctx, field, obj) - case "lastSeenAt": - out.Values[i] = ec._DirectoryGroup_lastSeenAt(ctx, field, obj) - case "addedAt": - out.Values[i] = ec._DirectoryGroup_addedAt(ctx, field, obj) - case "removedAt": - out.Values[i] = ec._DirectoryGroup_removedAt(ctx, field, obj) + out.Values[i] = ec._Entity_status(ctx, field, obj) + case "approvedForUse": + out.Values[i] = ec._Entity_approvedForUse(ctx, field, obj) + case "linkedAssetIds": + out.Values[i] = ec._Entity_linkedAssetIds(ctx, field, obj) + case "hasSoc2": + out.Values[i] = ec._Entity_hasSoc2(ctx, field, obj) + case "soc2PeriodEnd": + out.Values[i] = ec._Entity_soc2PeriodEnd(ctx, field, obj) + case "contractStartDate": + out.Values[i] = ec._Entity_contractStartDate(ctx, field, obj) + case "contractEndDate": + out.Values[i] = ec._Entity_contractEndDate(ctx, field, obj) + case "autoRenews": + out.Values[i] = ec._Entity_autoRenews(ctx, field, obj) + case "terminationNoticeDays": + out.Values[i] = ec._Entity_terminationNoticeDays(ctx, field, obj) + case "annualSpend": + out.Values[i] = ec._Entity_annualSpend(ctx, field, obj) + case "spendCurrency": + out.Values[i] = ec._Entity_spendCurrency(ctx, field, obj) + case "billingModel": + out.Values[i] = ec._Entity_billingModel(ctx, field, obj) + case "renewalRisk": + out.Values[i] = ec._Entity_renewalRisk(ctx, field, obj) + case "ssoEnforced": + out.Values[i] = ec._Entity_ssoEnforced(ctx, field, obj) + case "mfaSupported": + out.Values[i] = ec._Entity_mfaSupported(ctx, field, obj) + case "mfaEnforced": + out.Values[i] = ec._Entity_mfaEnforced(ctx, field, obj) + case "statusPageURL": + out.Values[i] = ec._Entity_statusPageURL(ctx, field, obj) + case "providedServices": + out.Values[i] = ec._Entity_providedServices(ctx, field, obj) + case "links": + out.Values[i] = ec._Entity_links(ctx, field, obj) + case "riskRating": + out.Values[i] = ec._Entity_riskRating(ctx, field, obj) + case "riskScore": + out.Values[i] = ec._Entity_riskScore(ctx, field, obj) + case "riskScoreCoverage": + out.Values[i] = ec._Entity_riskScoreCoverage(ctx, field, obj) + case "tier": + out.Values[i] = ec._Entity_tier(ctx, field, obj) + case "reviewFrequency": + out.Values[i] = ec._Entity_reviewFrequency(ctx, field, obj) + case "nextReviewAt": + out.Values[i] = ec._Entity_nextReviewAt(ctx, field, obj) + case "contractRenewalAt": + out.Values[i] = ec._Entity_contractRenewalAt(ctx, field, obj) + case "vendorMetadata": + out.Values[i] = ec._Entity_vendorMetadata(ctx, field, obj) + case "logoRemoteURL": + out.Values[i] = ec._Entity_logoRemoteURL(ctx, field, obj) + case "logoFileID": + out.Values[i] = ec._Entity_logoFileID(ctx, field, obj) + case "externalID": + out.Values[i] = ec._Entity_externalID(ctx, field, obj) case "observedAt": - out.Values[i] = ec._DirectoryGroup_observedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "profileHash": - out.Values[i] = ec._DirectoryGroup_profileHash(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "profile": - out.Values[i] = ec._DirectoryGroup_profile(ctx, field, obj) - case "metadata": - out.Values[i] = ec._DirectoryGroup_metadata(ctx, field, obj) - case "rawProfileFileID": - out.Values[i] = ec._DirectoryGroup_rawProfileFileID(ctx, field, obj) - case "sourceVersion": - out.Values[i] = ec._DirectoryGroup_sourceVersion(ctx, field, obj) - case "directoryName": - out.Values[i] = ec._DirectoryGroup_directoryName(ctx, field, obj) + out.Values[i] = ec._Entity_observedAt(ctx, field, obj) case "owner": field := field @@ -412877,7 +423540,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryGroup_owner(ctx, field, obj) + res = ec._Entity_owner(ctx, field, obj) return res } @@ -412901,49 +423564,19 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "blockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryGroup_environment(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 + res = ec._Entity_blockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - 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 "scope": - 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._DirectoryGroup_scope(ctx, field, obj) return res } @@ -412967,7 +423600,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -412976,7 +423609,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryGroup_integration(ctx, field, obj) + res = ec._Entity_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413003,7 +423636,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directorySyncRun": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -413012,7 +423645,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryGroup_directorySyncRun(ctx, field, obj) + res = ec._Entity_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413039,7 +423672,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + case "internalOwnerUser": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -413048,7 +423681,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryGroup_platform(ctx, field, obj) + res = ec._Entity_internalOwnerUser(ctx, field, obj) return res } @@ -413072,19 +423705,16 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "accounts": + case "internalOwnerGroup": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryGroup_accounts(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Entity_internalOwnerGroup(ctx, field, obj) return res } @@ -413108,19 +423738,16 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "reviewedByUser": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryGroup_workflowObjectRefs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Entity_reviewedByUser(ctx, field, obj) return res } @@ -413144,19 +423771,16 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "members": + case "reviewedByGroup": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryGroup_members(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Entity_reviewedByGroup(ctx, field, obj) return res } @@ -413180,203 +423804,7 @@ func (ec *executionContext) _DirectoryGroup(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directoryGroupConnectionImplementors = []string{"DirectoryGroupConnection"} - -func (ec *executionContext) _DirectoryGroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroupConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryGroupConnection") - case "edges": - out.Values[i] = ec._DirectoryGroupConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._DirectoryGroupConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._DirectoryGroupConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directoryGroupEdgeImplementors = []string{"DirectoryGroupEdge"} - -func (ec *executionContext) _DirectoryGroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryGroupEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryGroupEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryGroupEdge") - case "node": - out.Values[i] = ec._DirectoryGroupEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._DirectoryGroupEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directoryMembershipImplementors = []string{"DirectoryMembership", "Node"} - -func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryMembership") - case "id": - out.Values[i] = ec._DirectoryMembership_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._DirectoryMembership_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._DirectoryMembership_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._DirectoryMembership_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._DirectoryMembership_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._DirectoryMembership_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ownerID": - out.Values[i] = ec._DirectoryMembership_ownerID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._DirectoryMembership_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._DirectoryMembership_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._DirectoryMembership_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._DirectoryMembership_scopeID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._DirectoryMembership_integrationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "platformID": - out.Values[i] = ec._DirectoryMembership_platformID(ctx, field, obj) - case "directoryInstanceID": - out.Values[i] = ec._DirectoryMembership_directoryInstanceID(ctx, field, obj) - case "directorySyncRunID": - out.Values[i] = ec._DirectoryMembership_directorySyncRunID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "directoryAccountID": - out.Values[i] = ec._DirectoryMembership_directoryAccountID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "directoryGroupID": - out.Values[i] = ec._DirectoryMembership_directoryGroupID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "role": - out.Values[i] = ec._DirectoryMembership_role(ctx, field, obj) - case "source": - out.Values[i] = ec._DirectoryMembership_source(ctx, field, obj) - case "directoryName": - out.Values[i] = ec._DirectoryMembership_directoryName(ctx, field, obj) - case "firstSeenAt": - out.Values[i] = ec._DirectoryMembership_firstSeenAt(ctx, field, obj) - case "lastSeenAt": - out.Values[i] = ec._DirectoryMembership_lastSeenAt(ctx, field, obj) - case "addedAt": - out.Values[i] = ec._DirectoryMembership_addedAt(ctx, field, obj) - case "removedAt": - out.Values[i] = ec._DirectoryMembership_removedAt(ctx, field, obj) - case "observedAt": - out.Values[i] = ec._DirectoryMembership_observedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastConfirmedRunID": - out.Values[i] = ec._DirectoryMembership_lastConfirmedRunID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._DirectoryMembership_metadata(ctx, field, obj) - case "owner": + case "entityRelationshipState": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -413385,7 +423813,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_owner(ctx, field, obj) + res = ec._Entity_entityRelationshipState(ctx, field, obj) return res } @@ -413409,7 +423837,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "entitySecurityQuestionnaireStatus": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -413418,7 +423846,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_environment(ctx, field, obj) + res = ec._Entity_entitySecurityQuestionnaireStatus(ctx, field, obj) return res } @@ -413442,7 +423870,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "entitySourceType": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -413451,7 +423879,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_scope(ctx, field, obj) + res = ec._Entity_entitySourceType(ctx, field, obj) return res } @@ -413475,19 +423903,16 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryMembership_integration(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Entity_environment(ctx, field, obj) return res } @@ -413511,19 +423936,16 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directorySyncRun": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryMembership_directorySyncRun(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Entity_scope(ctx, field, obj) return res } @@ -413547,16 +423969,19 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + case "contacts": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectoryMembership_platform(ctx, field, obj) + res = ec._Entity_contacts(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -413580,7 +424005,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryAccount": + case "documents": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -413589,7 +424014,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_directoryAccount(ctx, field, obj) + res = ec._Entity_documents(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413616,7 +424041,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryGroup": + case "notes": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -413625,7 +424050,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_directoryGroup(ctx, field, obj) + res = ec._Entity_notes(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413652,7 +424077,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -413661,7 +424086,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_events(ctx, field, obj) + res = ec._Entity_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413688,7 +424113,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -413697,7 +424122,7 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectoryMembership_workflowObjectRefs(ctx, field, obj) + res = ec._Entity_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -413724,204 +424149,19 @@ func (ec *executionContext) _DirectoryMembership(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directoryMembershipConnectionImplementors = []string{"DirectoryMembershipConnection"} - -func (ec *executionContext) _DirectoryMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembershipConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryMembershipConnection") - case "edges": - out.Values[i] = ec._DirectoryMembershipConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._DirectoryMembershipConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._DirectoryMembershipConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directoryMembershipEdgeImplementors = []string{"DirectoryMembershipEdge"} - -func (ec *executionContext) _DirectoryMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectoryMembershipEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directoryMembershipEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectoryMembershipEdge") - case "node": - out.Values[i] = ec._DirectoryMembershipEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._DirectoryMembershipEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directorySyncRunImplementors = []string{"DirectorySyncRun", "Node"} - -func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRun) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectorySyncRun") - case "id": - out.Values[i] = ec._DirectorySyncRun_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._DirectorySyncRun_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._DirectorySyncRun_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._DirectorySyncRun_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._DirectorySyncRun_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._DirectorySyncRun_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ownerID": - out.Values[i] = ec._DirectorySyncRun_ownerID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._DirectorySyncRun_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._DirectorySyncRun_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._DirectorySyncRun_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._DirectorySyncRun_scopeID(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._DirectorySyncRun_integrationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "platformID": - out.Values[i] = ec._DirectorySyncRun_platformID(ctx, field, obj) - case "directoryInstanceID": - out.Values[i] = ec._DirectorySyncRun_directoryInstanceID(ctx, field, obj) - case "status": - out.Values[i] = ec._DirectorySyncRun_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "startedAt": - out.Values[i] = ec._DirectorySyncRun_startedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "completedAt": - out.Values[i] = ec._DirectorySyncRun_completedAt(ctx, field, obj) - case "sourceCursor": - out.Values[i] = ec._DirectorySyncRun_sourceCursor(ctx, field, obj) - case "fullCount": - out.Values[i] = ec._DirectorySyncRun_fullCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "deltaCount": - out.Values[i] = ec._DirectorySyncRun_deltaCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "error": - out.Values[i] = ec._DirectorySyncRun_error(ctx, field, obj) - case "rawManifestFileID": - out.Values[i] = ec._DirectorySyncRun_rawManifestFileID(ctx, field, obj) - case "stats": - out.Values[i] = ec._DirectorySyncRun_stats(ctx, field, obj) - case "owner": + case "scans": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectorySyncRun_owner(ctx, field, obj) + res = ec._Entity_scans(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -413945,16 +424185,19 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "campaigns": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectorySyncRun_environment(ctx, field, obj) + res = ec._Entity_campaigns(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -413978,16 +424221,19 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "assessmentResponses": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectorySyncRun_scope(ctx, field, obj) + res = ec._Entity_assessmentResponses(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414011,7 +424257,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "vendorRiskScores": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -414020,7 +424266,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectorySyncRun_integration(ctx, field, obj) + res = ec._Entity_vendorRiskScores(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414047,16 +424293,19 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + case "integrations": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._DirectorySyncRun_platform(ctx, field, obj) + res = ec._Entity_integrations(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414080,7 +424329,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryAccounts": + case "subprocessors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -414089,7 +424338,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectorySyncRun_directoryAccounts(ctx, field, obj) + res = ec._Entity_subprocessors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414116,7 +424365,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryGroups": + case "authMethods": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -414125,7 +424374,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectorySyncRun_directoryGroups(ctx, field, obj) + res = ec._Entity_authMethods(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414152,7 +424401,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryMemberships": + case "employerIdentityHolders": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -414161,7 +424410,7 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DirectorySyncRun_directoryMemberships(ctx, field, obj) + res = ec._Entity_employerIdentityHolders(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414173,174 +424422,106 @@ func (ec *executionContext) _DirectorySyncRun(ctx context.Context, sel ast.Selec 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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var directorySyncRunConnectionImplementors = []string{"DirectorySyncRunConnection"} - -func (ec *executionContext) _DirectorySyncRunConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRunConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectorySyncRunConnection") - case "edges": - out.Values[i] = ec._DirectorySyncRunConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._DirectorySyncRunConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._DirectorySyncRunConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} + 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) + }) -var directorySyncRunEdgeImplementors = []string{"DirectorySyncRunEdge"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _DirectorySyncRunEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DirectorySyncRunEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, directorySyncRunEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "identityHolders": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DirectorySyncRunEdge") - case "node": - out.Values[i] = ec._DirectorySyncRunEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._DirectorySyncRunEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + 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._Entity_identityHolders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + 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) + }) - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controls": + field := field -var discussionImplementors = []string{"Discussion", "Node"} + 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._Entity_controls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSet, obj *generated.Discussion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Discussion") - case "id": - out.Values[i] = ec._Discussion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Discussion_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Discussion_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Discussion_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Discussion_updatedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Discussion_ownerID(ctx, field, obj) - case "externalID": - out.Values[i] = ec._Discussion_externalID(ctx, field, obj) - case "isResolved": - out.Values[i] = ec._Discussion_isResolved(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subcontrols": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Discussion_owner(ctx, field, obj) + res = ec._Entity_subcontrols(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414364,7 +424545,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "comments": + case "platforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -414373,7 +424554,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Discussion_comments(ctx, field, obj) + res = ec._Entity_platforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414400,16 +424581,19 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "control": + case "outOfScopePlatforms": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Discussion_control(ctx, field, obj) + res = ec._Entity_outOfScopePlatforms(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414433,16 +424617,19 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrol": + case "sourcePlatforms": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Discussion_subcontrol(ctx, field, obj) + res = ec._Entity_sourcePlatforms(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414466,7 +424653,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedure": + case "entityType": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -414475,7 +424662,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Discussion_procedure(ctx, field, obj) + res = ec._Entity_entityType(ctx, field, obj) return res } @@ -414499,7 +424686,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risk": + case "logoFile": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -414508,7 +424695,7 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Discussion_risk(ctx, field, obj) + res = ec._Entity_logoFile(ctx, field, obj) return res } @@ -414532,16 +424719,19 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicy": + case "internalPolicies": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Discussion_internalPolicy(ctx, field, obj) + res = ec._Entity_internalPolicies(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -414588,26 +424778,26 @@ func (ec *executionContext) _Discussion(ctx context.Context, sel ast.SelectionSe return out } -var discussionConnectionImplementors = []string{"DiscussionConnection"} +var entityConnectionImplementors = []string{"EntityConnection"} -func (ec *executionContext) _DiscussionConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DiscussionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionConnectionImplementors) +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("DiscussionConnection") + out.Values[i] = graphql.MarshalString("EntityConnection") case "edges": - out.Values[i] = ec._DiscussionConnection_edges(ctx, field, obj) + out.Values[i] = ec._EntityConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._DiscussionConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._EntityConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._DiscussionConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._EntityConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -414634,21 +424824,21 @@ func (ec *executionContext) _DiscussionConnection(ctx context.Context, sel ast.S return out } -var discussionEdgeImplementors = []string{"DiscussionEdge"} +var entityEdgeImplementors = []string{"EntityEdge"} -func (ec *executionContext) _DiscussionEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DiscussionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionEdgeImplementors) +func (ec *executionContext) _EntityEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DiscussionEdge") + out.Values[i] = graphql.MarshalString("EntityEdge") case "node": - out.Values[i] = ec._DiscussionEdge_node(ctx, field, obj) + out.Values[i] = ec._EntityEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._DiscussionEdge_cursor(ctx, field, obj) + out.Values[i] = ec._EntityEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -414675,46 +424865,42 @@ func (ec *executionContext) _DiscussionEdge(ctx context.Context, sel ast.Selecti return out } -var documentDataImplementors = []string{"DocumentData", "Node"} +var entityTypeImplementors = []string{"EntityType", "Node"} -func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentData) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataImplementors) +func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentData") + out.Values[i] = graphql.MarshalString("EntityType") case "id": - out.Values[i] = ec._DocumentData_id(ctx, field, obj) + out.Values[i] = ec._EntityType_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._DocumentData_createdAt(ctx, field, obj) + out.Values[i] = ec._EntityType_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._DocumentData_updatedAt(ctx, field, obj) + out.Values[i] = ec._EntityType_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._DocumentData_createdBy(ctx, field, obj) + out.Values[i] = ec._EntityType_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._DocumentData_updatedBy(ctx, field, obj) + out.Values[i] = ec._EntityType_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._DocumentData_tags(ctx, field, obj) + out.Values[i] = ec._EntityType_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._DocumentData_ownerID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._DocumentData_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._DocumentData_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._DocumentData_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._DocumentData_scopeID(ctx, field, obj) - case "templateID": - out.Values[i] = ec._DocumentData_templateID(ctx, field, obj) - case "data": - out.Values[i] = ec._DocumentData_data(ctx, field, obj) + out.Values[i] = ec._EntityType_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._EntityType_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._EntityType_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._EntityType_systemInternalID(ctx, field, obj) + case "name": + out.Values[i] = ec._EntityType_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } @@ -414727,106 +424913,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": - 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_environment(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 "scope": - 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_scope(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 "template": - 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_template(ctx, field, obj) + res = ec._EntityType_owner(ctx, field, obj) return res } @@ -414859,43 +424946,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_entities(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 "files": - 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._DocumentData_files(ctx, field, obj) + res = ec._EntityType_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -414945,26 +424996,26 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection return out } -var documentDataConnectionImplementors = []string{"DocumentDataConnection"} +var entityTypeConnectionImplementors = []string{"EntityTypeConnection"} -func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataConnectionImplementors) +func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataConnection") + out.Values[i] = graphql.MarshalString("EntityTypeConnection") case "edges": - out.Values[i] = ec._DocumentDataConnection_edges(ctx, field, obj) + out.Values[i] = ec._EntityTypeConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._DocumentDataConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._EntityTypeConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._DocumentDataConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._EntityTypeConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -414991,21 +425042,21 @@ func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast return out } -var documentDataEdgeImplementors = []string{"DocumentDataEdge"} +var entityTypeEdgeImplementors = []string{"EntityTypeEdge"} -func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataEdgeImplementors) +func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataEdge") + out.Values[i] = graphql.MarshalString("EntityTypeEdge") case "node": - out.Values[i] = ec._DocumentDataEdge_node(ctx, field, obj) + out.Values[i] = ec._EntityTypeEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._DocumentDataEdge_cursor(ctx, field, obj) + out.Values[i] = ec._EntityTypeEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -415032,91 +425083,92 @@ func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.Selec return out } -var emailTemplateImplementors = []string{"EmailTemplate", "Node"} +var eventImplementors = []string{"Event", "Node"} -func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplate) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateImplementors) +func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj *generated.Event) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EmailTemplate") + out.Values[i] = graphql.MarshalString("Event") case "id": - out.Values[i] = ec._EmailTemplate_id(ctx, field, obj) + out.Values[i] = ec._Event_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._EmailTemplate_createdAt(ctx, field, obj) + out.Values[i] = ec._Event_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EmailTemplate_updatedAt(ctx, field, obj) + out.Values[i] = ec._Event_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EmailTemplate_createdBy(ctx, field, obj) + out.Values[i] = ec._Event_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EmailTemplate_updatedBy(ctx, field, obj) - case "revision": - out.Values[i] = ec._EmailTemplate_revision(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EmailTemplate_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._EmailTemplate_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._EmailTemplate_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._EmailTemplate_systemInternalID(ctx, field, obj) - case "key": - out.Values[i] = ec._EmailTemplate_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._EmailTemplate_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._EmailTemplate_description(ctx, field, obj) - case "format": - out.Values[i] = ec._EmailTemplate_format(ctx, field, obj) - case "locale": - out.Values[i] = ec._EmailTemplate_locale(ctx, field, obj) + out.Values[i] = ec._Event_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Event_tags(ctx, field, obj) + case "eventID": + out.Values[i] = ec._Event_eventID(ctx, field, obj) + case "correlationID": + out.Values[i] = ec._Event_correlationID(ctx, field, obj) + case "eventType": + out.Values[i] = ec._Event_eventType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "metadata": - out.Values[i] = ec._EmailTemplate_metadata(ctx, field, obj) - case "active": - out.Values[i] = ec._EmailTemplate_active(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Values[i] = ec._Event_metadata(ctx, field, obj) + case "users": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "version": - out.Values[i] = ec._EmailTemplate_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + 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 } - case "templateContext": - out.Values[i] = ec._EmailTemplate_templateContext(ctx, field, obj) - case "defaults": - out.Values[i] = ec._EmailTemplate_defaults(ctx, field, obj) - case "integrationID": - out.Values[i] = ec._EmailTemplate_integrationID(ctx, field, obj) - case "workflowDefinitionID": - out.Values[i] = ec._EmailTemplate_workflowDefinitionID(ctx, field, obj) - case "workflowInstanceID": - out.Values[i] = ec._EmailTemplate_workflowInstanceID(ctx, field, obj) - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "groups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._EmailTemplate_owner(ctx, field, obj) + res = ec._Event_groups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415140,7 +425192,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "integrations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415149,7 +425201,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_blockedGroups(ctx, field, obj) + res = ec._Event_integrations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415176,7 +425228,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "organizations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415185,7 +425237,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_editors(ctx, field, obj) + res = ec._Event_organizations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415212,7 +425264,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "invites": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415221,7 +425273,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_viewers(ctx, field, obj) + res = ec._Event_invites(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415248,16 +425300,19 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "personalAccessTokens": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._EmailTemplate_integration(ctx, field, obj) + res = ec._Event_personalAccessTokens(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415281,16 +425336,19 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowDefinition": + case "secrets": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._EmailTemplate_workflowDefinition(ctx, field, obj) + res = ec._Event_secrets(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415314,16 +425372,19 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowInstance": + case "orgMemberships": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._EmailTemplate_workflowInstance(ctx, field, obj) + res = ec._Event_orgMemberships(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415347,7 +425408,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "groupMemberships": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415356,7 +425417,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_campaigns(ctx, field, obj) + res = ec._Event_groupMemberships(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415383,7 +425444,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notificationTemplates": + case "subscribers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415392,7 +425453,7 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_notificationTemplates(ctx, field, obj) + res = ec._Event_subscribers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415428,7 +425489,43 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EmailTemplate_files(ctx, field, obj) + res = ec._Event_files(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 "orgSubscriptions": + 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._Event_orgSubscriptions(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415478,26 +425575,26 @@ func (ec *executionContext) _EmailTemplate(ctx context.Context, sel ast.Selectio return out } -var emailTemplateConnectionImplementors = []string{"EmailTemplateConnection"} +var eventConnectionImplementors = []string{"EventConnection"} -func (ec *executionContext) _EmailTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateConnectionImplementors) +func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EmailTemplateConnection") + out.Values[i] = graphql.MarshalString("EventConnection") case "edges": - out.Values[i] = ec._EmailTemplateConnection_edges(ctx, field, obj) + out.Values[i] = ec._EventConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EmailTemplateConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._EventConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EmailTemplateConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._EventConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -415524,21 +425621,21 @@ func (ec *executionContext) _EmailTemplateConnection(ctx context.Context, sel as return out } -var emailTemplateEdgeImplementors = []string{"EmailTemplateEdge"} +var eventEdgeImplementors = []string{"EventEdge"} -func (ec *executionContext) _EmailTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EmailTemplateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, emailTemplateEdgeImplementors) +func (ec *executionContext) _EventEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EmailTemplateEdge") + out.Values[i] = graphql.MarshalString("EventEdge") case "node": - out.Values[i] = ec._EmailTemplateEdge_node(ctx, field, obj) + out.Values[i] = ec._EventEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EmailTemplateEdge_cursor(ctx, field, obj) + out.Values[i] = ec._EventEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -415565,146 +425662,77 @@ func (ec *executionContext) _EmailTemplateEdge(ctx context.Context, sel ast.Sele return out } -var entityImplementors = []string{"Entity", "Node"} +var evidenceImplementors = []string{"Evidence", "Node"} -func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, obj *generated.Entity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors) +func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *generated.Evidence) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Entity") + out.Values[i] = graphql.MarshalString("Evidence") case "id": - out.Values[i] = ec._Entity_id(ctx, field, obj) + out.Values[i] = ec._Evidence_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Entity_createdAt(ctx, field, obj) + out.Values[i] = ec._Evidence_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Entity_updatedAt(ctx, field, obj) + out.Values[i] = ec._Evidence_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Entity_createdBy(ctx, field, obj) + out.Values[i] = ec._Evidence_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Entity_updatedBy(ctx, field, obj) + out.Values[i] = ec._Evidence_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Evidence_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "tags": - out.Values[i] = ec._Entity_tags(ctx, field, obj) + out.Values[i] = ec._Evidence_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Entity_ownerID(ctx, field, obj) - case "internalOwner": - out.Values[i] = ec._Entity_internalOwner(ctx, field, obj) - case "internalOwnerUserID": - out.Values[i] = ec._Entity_internalOwnerUserID(ctx, field, obj) - case "internalOwnerGroupID": - out.Values[i] = ec._Entity_internalOwnerGroupID(ctx, field, obj) - case "reviewedBy": - out.Values[i] = ec._Entity_reviewedBy(ctx, field, obj) - case "reviewedByUserID": - out.Values[i] = ec._Entity_reviewedByUserID(ctx, field, obj) - case "reviewedByGroupID": - out.Values[i] = ec._Entity_reviewedByGroupID(ctx, field, obj) - case "lastReviewedAt": - out.Values[i] = ec._Entity_lastReviewedAt(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Entity_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Entity_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Entity_systemInternalID(ctx, field, obj) - case "entityRelationshipStateName": - out.Values[i] = ec._Entity_entityRelationshipStateName(ctx, field, obj) - case "entityRelationshipStateID": - out.Values[i] = ec._Entity_entityRelationshipStateID(ctx, field, obj) - case "entitySecurityQuestionnaireStatusName": - out.Values[i] = ec._Entity_entitySecurityQuestionnaireStatusName(ctx, field, obj) - case "entitySecurityQuestionnaireStatusID": - out.Values[i] = ec._Entity_entitySecurityQuestionnaireStatusID(ctx, field, obj) - case "entitySourceTypeName": - out.Values[i] = ec._Entity_entitySourceTypeName(ctx, field, obj) - case "entitySourceTypeID": - out.Values[i] = ec._Entity_entitySourceTypeID(ctx, field, obj) + out.Values[i] = ec._Evidence_ownerID(ctx, field, obj) case "environmentName": - out.Values[i] = ec._Entity_environmentName(ctx, field, obj) + out.Values[i] = ec._Evidence_environmentName(ctx, field, obj) case "environmentID": - out.Values[i] = ec._Entity_environmentID(ctx, field, obj) + out.Values[i] = ec._Evidence_environmentID(ctx, field, obj) case "scopeName": - out.Values[i] = ec._Entity_scopeName(ctx, field, obj) + out.Values[i] = ec._Evidence_scopeName(ctx, field, obj) case "scopeID": - out.Values[i] = ec._Entity_scopeID(ctx, field, obj) + out.Values[i] = ec._Evidence_scopeID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._Evidence_workflowEligibleMarker(ctx, field, obj) + case "externalUUID": + out.Values[i] = ec._Evidence_externalUUID(ctx, field, obj) case "name": - out.Values[i] = ec._Entity_name(ctx, field, obj) - case "displayName": - out.Values[i] = ec._Entity_displayName(ctx, field, obj) + out.Values[i] = ec._Evidence_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "description": - out.Values[i] = ec._Entity_description(ctx, field, obj) - case "domains": - out.Values[i] = ec._Entity_domains(ctx, field, obj) - case "entityTypeID": - out.Values[i] = ec._Entity_entityTypeID(ctx, field, obj) + out.Values[i] = ec._Evidence_description(ctx, field, obj) + case "collectionProcedure": + out.Values[i] = ec._Evidence_collectionProcedure(ctx, field, obj) + case "creationDate": + out.Values[i] = ec._Evidence_creationDate(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "renewalDate": + out.Values[i] = ec._Evidence_renewalDate(ctx, field, obj) + case "source": + out.Values[i] = ec._Evidence_source(ctx, field, obj) + case "isAutomated": + out.Values[i] = ec._Evidence_isAutomated(ctx, field, obj) + case "url": + out.Values[i] = ec._Evidence_url(ctx, field, obj) case "status": - out.Values[i] = ec._Entity_status(ctx, field, obj) - case "approvedForUse": - out.Values[i] = ec._Entity_approvedForUse(ctx, field, obj) - case "linkedAssetIds": - out.Values[i] = ec._Entity_linkedAssetIds(ctx, field, obj) - case "hasSoc2": - out.Values[i] = ec._Entity_hasSoc2(ctx, field, obj) - case "soc2PeriodEnd": - out.Values[i] = ec._Entity_soc2PeriodEnd(ctx, field, obj) - case "contractStartDate": - out.Values[i] = ec._Entity_contractStartDate(ctx, field, obj) - case "contractEndDate": - out.Values[i] = ec._Entity_contractEndDate(ctx, field, obj) - case "autoRenews": - out.Values[i] = ec._Entity_autoRenews(ctx, field, obj) - case "terminationNoticeDays": - out.Values[i] = ec._Entity_terminationNoticeDays(ctx, field, obj) - case "annualSpend": - out.Values[i] = ec._Entity_annualSpend(ctx, field, obj) - case "spendCurrency": - out.Values[i] = ec._Entity_spendCurrency(ctx, field, obj) - case "billingModel": - out.Values[i] = ec._Entity_billingModel(ctx, field, obj) - case "renewalRisk": - out.Values[i] = ec._Entity_renewalRisk(ctx, field, obj) - case "ssoEnforced": - out.Values[i] = ec._Entity_ssoEnforced(ctx, field, obj) - case "mfaSupported": - out.Values[i] = ec._Entity_mfaSupported(ctx, field, obj) - case "mfaEnforced": - out.Values[i] = ec._Entity_mfaEnforced(ctx, field, obj) - case "statusPageURL": - out.Values[i] = ec._Entity_statusPageURL(ctx, field, obj) - case "providedServices": - out.Values[i] = ec._Entity_providedServices(ctx, field, obj) - case "links": - out.Values[i] = ec._Entity_links(ctx, field, obj) - case "riskRating": - out.Values[i] = ec._Entity_riskRating(ctx, field, obj) - case "riskScore": - out.Values[i] = ec._Entity_riskScore(ctx, field, obj) - case "riskScoreCoverage": - out.Values[i] = ec._Entity_riskScoreCoverage(ctx, field, obj) - case "tier": - out.Values[i] = ec._Entity_tier(ctx, field, obj) + out.Values[i] = ec._Evidence_status(ctx, field, obj) case "reviewFrequency": - out.Values[i] = ec._Entity_reviewFrequency(ctx, field, obj) - case "nextReviewAt": - out.Values[i] = ec._Entity_nextReviewAt(ctx, field, obj) - case "contractRenewalAt": - out.Values[i] = ec._Entity_contractRenewalAt(ctx, field, obj) - case "vendorMetadata": - out.Values[i] = ec._Entity_vendorMetadata(ctx, field, obj) - case "logoRemoteURL": - out.Values[i] = ec._Entity_logoRemoteURL(ctx, field, obj) - case "logoFileID": - out.Values[i] = ec._Entity_logoFileID(ctx, field, obj) - case "externalID": - out.Values[i] = ec._Entity_externalID(ctx, field, obj) - case "observedAt": - out.Values[i] = ec._Entity_observedAt(ctx, field, obj) + out.Values[i] = ec._Evidence_reviewFrequency(ctx, field, obj) case "owner": field := field @@ -415714,7 +425742,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_owner(ctx, field, obj) + res = ec._Evidence_owner(ctx, field, obj) return res } @@ -415738,7 +425766,73 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "environment": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Evidence_environment(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 "scope": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Evidence_scope(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 "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415747,7 +425841,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_blockedGroups(ctx, field, obj) + res = ec._Evidence_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415774,7 +425868,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415783,7 +425877,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_editors(ctx, field, obj) + res = ec._Evidence_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415810,7 +425904,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "controlObjectives": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -415819,7 +425913,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_viewers(ctx, field, obj) + res = ec._Evidence_controlObjectives(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -415846,16 +425940,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerUser": + case "controlImplementations": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_internalOwnerUser(ctx, field, obj) + res = ec._Evidence_controlImplementations(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415879,16 +425976,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerGroup": + case "files": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_internalOwnerGroup(ctx, field, obj) + res = ec._Evidence_files(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415912,16 +426012,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviewedByUser": + case "programs": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_reviewedByUser(ctx, field, obj) + res = ec._Evidence_programs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415945,16 +426048,127 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviewedByGroup": + case "tasks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Evidence_tasks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "platforms": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Evidence_platforms(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 "scans": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Evidence_scans(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 "comments": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_reviewedByGroup(ctx, field, obj) + res = ec._Evidence_comments(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -415978,16 +426192,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityRelationshipState": + case "workflowObjectRefs": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_entityRelationshipState(ctx, field, obj) + res = ec._Evidence_workflowObjectRefs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416011,16 +426228,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitySecurityQuestionnaireStatus": + case "hasPendingWorkflow": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_entitySecurityQuestionnaireStatus(ctx, field, obj) + res = ec._Evidence_hasPendingWorkflow(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416044,16 +426264,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitySourceType": + case "hasWorkflowHistory": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_entitySourceType(ctx, field, obj) + res = ec._Evidence_hasWorkflowHistory(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416077,16 +426300,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "activeWorkflowInstances": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_environment(ctx, field, obj) + res = ec._Evidence_activeWorkflowInstances(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416110,16 +426336,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "workflowTimeline": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_scope(ctx, field, obj) + res = ec._Evidence_workflowTimeline(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416143,19 +426372,182 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contacts": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var evidenceConnectionImplementors = []string{"EvidenceConnection"} + +func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EvidenceConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EvidenceConnection") + case "edges": + out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EvidenceConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._EvidenceConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var evidenceEdgeImplementors = []string{"EvidenceEdge"} + +func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EvidenceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EvidenceEdge") + case "node": + out.Values[i] = ec._EvidenceEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EvidenceEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var exportImplementors = []string{"Export", "Node"} + +func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, obj *generated.Export) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, exportImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Export") + case "id": + out.Values[i] = ec._Export_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Export_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Export_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Export_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Export_updatedBy(ctx, field, obj) + case "requestorID": + out.Values[i] = ec._Export_requestorID(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Export_ownerID(ctx, field, obj) + case "exportType": + out.Values[i] = ec._Export_exportType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "format": + out.Values[i] = ec._Export_format(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._Export_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fields": + out.Values[i] = ec._Export_fields(ctx, field, obj) + case "filters": + out.Values[i] = ec._Export_filters(ctx, field, obj) + case "errorMessage": + out.Values[i] = ec._Export_errorMessage(ctx, field, obj) + case "mode": + out.Values[i] = ec._Export_mode(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "exportMetadata": + out.Values[i] = ec._Export_exportMetadata(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_contacts(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Export_owner(ctx, field, obj) return res } @@ -416179,7 +426571,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documents": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -416188,7 +426580,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_documents(ctx, field, obj) + res = ec._Export_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -416215,7 +426607,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notes": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -416224,7 +426616,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_notes(ctx, field, obj) + res = ec._Export_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -416251,19 +426643,215 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var exportConnectionImplementors = []string{"ExportConnection"} + +func (ec *executionContext) _ExportConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ExportConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, exportConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExportConnection") + case "edges": + out.Values[i] = ec._ExportConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ExportConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._ExportConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var exportEdgeImplementors = []string{"ExportEdge"} + +func (ec *executionContext) _ExportEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ExportEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, exportEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExportEdge") + case "node": + out.Values[i] = ec._ExportEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ExportEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, fileImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("File") + case "id": + out.Values[i] = ec._File_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._File_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._File_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._File_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._File_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._File_tags(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._File_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._File_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._File_systemInternalID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._File_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._File_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._File_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._File_scopeID(ctx, field, obj) + case "categoryName": + out.Values[i] = ec._File_categoryName(ctx, field, obj) + case "categoryID": + out.Values[i] = ec._File_categoryID(ctx, field, obj) + case "name": + out.Values[i] = ec._File_name(ctx, field, obj) + case "providedFileName": + out.Values[i] = ec._File_providedFileName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "providedFileExtension": + out.Values[i] = ec._File_providedFileExtension(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "providedFileSize": + out.Values[i] = ec._File_providedFileSize(ctx, field, obj) + case "persistedFileSize": + out.Values[i] = ec._File_persistedFileSize(ctx, field, obj) + case "detectedMimeType": + out.Values[i] = ec._File_detectedMimeType(ctx, field, obj) + case "md5Hash": + out.Values[i] = ec._File_md5Hash(ctx, field, obj) + case "detectedContentType": + out.Values[i] = ec._File_detectedContentType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "storeKey": + out.Values[i] = ec._File_storeKey(ctx, field, obj) + case "categoryType": + out.Values[i] = ec._File_categoryType(ctx, field, obj) + case "uri": + out.Values[i] = ec._File_uri(ctx, field, obj) + case "storageScheme": + out.Values[i] = ec._File_storageScheme(ctx, field, obj) + case "storageVolume": + out.Values[i] = ec._File_storageVolume(ctx, field, obj) + case "storagePath": + out.Values[i] = ec._File_storagePath(ctx, field, obj) + case "metadata": + out.Values[i] = ec._File_metadata(ctx, field, obj) + case "storageRegion": + out.Values[i] = ec._File_storageRegion(ctx, field, obj) + case "storageProvider": + out.Values[i] = ec._File_storageProvider(ctx, field, obj) + case "lastAccessedAt": + out.Values[i] = ec._File_lastAccessedAt(ctx, field, obj) + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_files(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_environment(ctx, field, obj) return res } @@ -416287,19 +426875,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_assets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_scope(ctx, field, obj) return res } @@ -416323,19 +426908,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scans": + case "category": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_scans(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_category(ctx, field, obj) return res } @@ -416359,19 +426941,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "organization": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_campaigns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_organization(ctx, field, obj) return res } @@ -416395,7 +426974,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessmentResponses": + case "groups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -416404,7 +426983,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_assessmentResponses(ctx, field, obj) + res = ec._File_groups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -416431,19 +427010,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendorRiskScores": + case "contact": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_vendorRiskScores(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_contact(ctx, field, obj) return res } @@ -416467,19 +427043,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "entity": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_integrations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_entity(ctx, field, obj) return res } @@ -416503,19 +427076,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subprocessors": + case "organizationSetting": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_subprocessors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_organizationSetting(ctx, field, obj) return res } @@ -416539,19 +427109,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "authMethods": + case "template": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_authMethods(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_template(ctx, field, obj) return res } @@ -416575,19 +427142,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "employerIdentityHolders": + case "document": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_employerIdentityHolders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_document(ctx, field, obj) return res } @@ -416611,19 +427175,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "program": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_identityHolders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_program(ctx, field, obj) return res } @@ -416647,19 +427208,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "platform": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_platform(ctx, field, obj) return res } @@ -416683,19 +427241,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "evidence": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_subcontrols(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_evidence(ctx, field, obj) return res } @@ -416719,19 +427274,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "identityHolder": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_platforms(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_identityHolder(ctx, field, obj) return res } @@ -416755,19 +427307,16 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "outOfScopePlatforms": + case "scan": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_outOfScopePlatforms(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_scan(ctx, field, obj) return res } @@ -416791,7 +427340,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "sourcePlatforms": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -416800,7 +427349,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_sourcePlatforms(ctx, field, obj) + res = ec._File_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -416827,16 +427376,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityType": + case "integrations": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_entityType(ctx, field, obj) + res = ec._File_integrations(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416860,16 +427412,19 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "logoFile": + case "secrets": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Entity_logoFile(ctx, field, obj) + res = ec._File_secrets(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -416893,7 +427448,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "trustCenterEntities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -416902,7 +427457,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_internalPolicies(ctx, field, obj) + res = ec._File_trustCenterEntities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -416929,156 +427484,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityEdgeImplementors = []string{"EntityEdge"} - -func (ec *executionContext) _EntityEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityEdge") - case "node": - out.Values[i] = ec._EntityEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntityEdge_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityType") - case "id": - out.Values[i] = ec._EntityType_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._EntityType_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._EntityType_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._EntityType_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._EntityType_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntityType_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntityType_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._EntityType_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._EntityType_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._EntityType_systemInternalID(ctx, field, obj) - case "name": - out.Values[i] = ec._EntityType_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": + case "trustCenterDoc": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -417087,7 +427493,7 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntityType_owner(ctx, field, obj) + res = ec._File_trustCenterDoc(ctx, field, obj) return res } @@ -417111,19 +427517,16 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "originalTrustCenterDoc": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._EntityType_entities(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._File_originalTrustCenterDoc(ctx, field, obj) return res } @@ -417147,6 +427550,10 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "presignedURL": + out.Values[i] = ec._File_presignedURL(ctx, field, obj) + case "base64": + out.Values[i] = ec._File_base64(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -417170,26 +427577,26 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe return out } -var entityTypeConnectionImplementors = []string{"EntityTypeConnection"} +var fileConnectionImplementors = []string{"FileConnection"} -func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeConnectionImplementors) +func (ec *executionContext) _FileConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeConnection") + out.Values[i] = graphql.MarshalString("FileConnection") case "edges": - out.Values[i] = ec._EntityTypeConnection_edges(ctx, field, obj) + out.Values[i] = ec._FileConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntityTypeConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._FileConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntityTypeConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._FileConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -417216,21 +427623,21 @@ func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.S return out } -var entityTypeEdgeImplementors = []string{"EntityTypeEdge"} +var fileEdgeImplementors = []string{"FileEdge"} -func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeEdgeImplementors) +func (ec *executionContext) _FileEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeEdge") + out.Values[i] = graphql.MarshalString("FileEdge") case "node": - out.Values[i] = ec._EntityTypeEdge_node(ctx, field, obj) + out.Values[i] = ec._FileEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntityTypeEdge_cursor(ctx, field, obj) + out.Values[i] = ec._FileEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -417257,164 +427664,141 @@ func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.Selecti return out } -var eventImplementors = []string{"Event", "Node"} +var findingImplementors = []string{"Finding", "Node"} -func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj *generated.Event) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventImplementors) +func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, obj *generated.Finding) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Event") + out.Values[i] = graphql.MarshalString("Finding") case "id": - out.Values[i] = ec._Event_id(ctx, field, obj) + out.Values[i] = ec._Finding_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Event_createdAt(ctx, field, obj) + out.Values[i] = ec._Finding_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Event_updatedAt(ctx, field, obj) + out.Values[i] = ec._Finding_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Event_createdBy(ctx, field, obj) + out.Values[i] = ec._Finding_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Event_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Event_tags(ctx, field, obj) - case "eventID": - out.Values[i] = ec._Event_eventID(ctx, field, obj) - case "correlationID": - out.Values[i] = ec._Event_correlationID(ctx, field, obj) - case "eventType": - out.Values[i] = ec._Event_eventType(ctx, field, obj) + out.Values[i] = ec._Finding_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Finding_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "tags": + out.Values[i] = ec._Finding_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Finding_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Finding_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Finding_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Finding_systemInternalID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._Finding_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._Finding_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._Finding_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._Finding_scopeID(ctx, field, obj) + case "findingStatusName": + out.Values[i] = ec._Finding_findingStatusName(ctx, field, obj) + case "findingStatusID": + out.Values[i] = ec._Finding_findingStatusID(ctx, field, obj) + case "externalID": + out.Values[i] = ec._Finding_externalID(ctx, field, obj) + case "securityLevel": + out.Values[i] = ec._Finding_securityLevel(ctx, field, obj) + case "externalOwnerID": + out.Values[i] = ec._Finding_externalOwnerID(ctx, field, obj) + case "source": + out.Values[i] = ec._Finding_source(ctx, field, obj) + case "resourceName": + out.Values[i] = ec._Finding_resourceName(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Finding_displayName(ctx, field, obj) + case "state": + out.Values[i] = ec._Finding_state(ctx, field, obj) + case "category": + out.Values[i] = ec._Finding_category(ctx, field, obj) + case "categories": + out.Values[i] = ec._Finding_categories(ctx, field, obj) + case "findingClass": + out.Values[i] = ec._Finding_findingClass(ctx, field, obj) + case "severity": + out.Values[i] = ec._Finding_severity(ctx, field, obj) + case "numericSeverity": + out.Values[i] = ec._Finding_numericSeverity(ctx, field, obj) + case "score": + out.Values[i] = ec._Finding_score(ctx, field, obj) + case "impact": + out.Values[i] = ec._Finding_impact(ctx, field, obj) + case "exploitability": + out.Values[i] = ec._Finding_exploitability(ctx, field, obj) + case "priority": + out.Values[i] = ec._Finding_priority(ctx, field, obj) + case "open": + out.Values[i] = ec._Finding_open(ctx, field, obj) + case "blocksProduction": + out.Values[i] = ec._Finding_blocksProduction(ctx, field, obj) + case "production": + out.Values[i] = ec._Finding_production(ctx, field, obj) + case "public": + out.Values[i] = ec._Finding_public(ctx, field, obj) + case "validated": + out.Values[i] = ec._Finding_validated(ctx, field, obj) + case "assessmentID": + out.Values[i] = ec._Finding_assessmentID(ctx, field, obj) + case "description": + out.Values[i] = ec._Finding_description(ctx, field, obj) + case "recommendation": + out.Values[i] = ec._Finding_recommendation(ctx, field, obj) + case "recommendedActions": + out.Values[i] = ec._Finding_recommendedActions(ctx, field, obj) + case "references": + out.Values[i] = ec._Finding_references(ctx, field, obj) + case "stepsToReproduce": + out.Values[i] = ec._Finding_stepsToReproduce(ctx, field, obj) + case "targets": + out.Values[i] = ec._Finding_targets(ctx, field, obj) + case "targetDetails": + out.Values[i] = ec._Finding_targetDetails(ctx, field, obj) + case "vector": + out.Values[i] = ec._Finding_vector(ctx, field, obj) + case "remediationSLA": + out.Values[i] = ec._Finding_remediationSLA(ctx, field, obj) + case "eventTime": + out.Values[i] = ec._Finding_eventTime(ctx, field, obj) + case "reportedAt": + out.Values[i] = ec._Finding_reportedAt(ctx, field, obj) + case "sourceUpdatedAt": + out.Values[i] = ec._Finding_sourceUpdatedAt(ctx, field, obj) + case "externalURI": + out.Values[i] = ec._Finding_externalURI(ctx, field, obj) case "metadata": - out.Values[i] = ec._Event_metadata(ctx, field, obj) - case "users": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_users(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": - 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._Event_groups(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 "integrations": - 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._Event_integrations(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 "organizations": + out.Values[i] = ec._Finding_metadata(ctx, field, obj) + case "rawPayload": + out.Values[i] = ec._Finding_rawPayload(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Event_organizations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Finding_owner(ctx, field, obj) return res } @@ -417438,7 +427822,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "invites": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417447,7 +427831,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_invites(ctx, field, obj) + res = ec._Finding_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -417474,7 +427858,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "personalAccessTokens": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417483,7 +427867,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_personalAccessTokens(ctx, field, obj) + res = ec._Finding_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -417510,7 +427894,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "secrets": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417519,7 +427903,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_secrets(ctx, field, obj) + res = ec._Finding_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -417546,19 +427930,16 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "orgMemberships": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Event_orgMemberships(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Finding_environment(ctx, field, obj) return res } @@ -417582,19 +427963,16 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groupMemberships": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Event_groupMemberships(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Finding_scope(ctx, field, obj) return res } @@ -417618,19 +427996,16 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subscribers": + case "findingStatus": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Event_subscribers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Finding_findingStatus(ctx, field, obj) return res } @@ -417654,7 +428029,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "integrations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417663,7 +428038,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_files(ctx, field, obj) + res = ec._Finding_integrations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -417690,7 +428065,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "orgSubscriptions": + case "vulnerabilities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417699,7 +428074,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_orgSubscriptions(ctx, field, obj) + res = ec._Finding_vulnerabilities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -417726,197 +428101,19 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, eventConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventConnection") - case "edges": - out.Values[i] = ec._EventConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EventConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._EventConnection_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, eventEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventEdge") - case "node": - out.Values[i] = ec._EventEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EventEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceImplementors = []string{"Evidence", "Node"} - -func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *generated.Evidence) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Evidence") - case "id": - out.Values[i] = ec._Evidence_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Evidence_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Evidence_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Evidence_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Evidence_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._Evidence_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._Evidence_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Evidence_ownerID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._Evidence_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._Evidence_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._Evidence_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._Evidence_scopeID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._Evidence_workflowEligibleMarker(ctx, field, obj) - case "externalUUID": - out.Values[i] = ec._Evidence_externalUUID(ctx, field, obj) - case "name": - out.Values[i] = ec._Evidence_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Evidence_description(ctx, field, obj) - case "collectionProcedure": - out.Values[i] = ec._Evidence_collectionProcedure(ctx, field, obj) - case "creationDate": - out.Values[i] = ec._Evidence_creationDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "renewalDate": - out.Values[i] = ec._Evidence_renewalDate(ctx, field, obj) - case "source": - out.Values[i] = ec._Evidence_source(ctx, field, obj) - case "isAutomated": - out.Values[i] = ec._Evidence_isAutomated(ctx, field, obj) - case "url": - out.Values[i] = ec._Evidence_url(ctx, field, obj) - case "status": - out.Values[i] = ec._Evidence_status(ctx, field, obj) - case "reviewFrequency": - out.Values[i] = ec._Evidence_reviewFrequency(ctx, field, obj) - case "owner": + case "actionPlans": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_owner(ctx, field, obj) + res = ec._Finding_actionPlans(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -417940,16 +428137,19 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "controls": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_environment(ctx, field, obj) + res = ec._Finding_controls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -417973,16 +428173,19 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "subcontrols": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_scope(ctx, field, obj) + res = ec._Finding_subcontrols(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -418006,7 +428209,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "risks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418015,7 +428218,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_controls(ctx, field, obj) + res = ec._Finding_risks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418042,7 +428245,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "programs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418051,7 +428254,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_subcontrols(ctx, field, obj) + res = ec._Finding_programs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418078,7 +428281,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectives": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418087,7 +428290,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_controlObjectives(ctx, field, obj) + res = ec._Finding_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418114,7 +428317,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementations": + case "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418123,7 +428326,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_controlImplementations(ctx, field, obj) + res = ec._Finding_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418150,7 +428353,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "scans": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418159,7 +428362,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_files(ctx, field, obj) + res = ec._Finding_scans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418186,7 +428389,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418195,7 +428398,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_programs(ctx, field, obj) + res = ec._Finding_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418222,7 +428425,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "directoryAccounts": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418231,7 +428434,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_tasks(ctx, field, obj) + res = ec._Finding_directoryAccounts(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418258,7 +428461,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "identityHolders": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418267,7 +428470,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_platforms(ctx, field, obj) + res = ec._Finding_identityHolders(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418294,7 +428497,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scans": + case "remediations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418303,7 +428506,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_scans(ctx, field, obj) + res = ec._Finding_remediations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418330,7 +428533,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "comments": + case "reviews": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418339,7 +428542,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_comments(ctx, field, obj) + res = ec._Finding_reviews(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418366,7 +428569,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "comments": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418375,7 +428578,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_workflowObjectRefs(ctx, field, obj) + res = ec._Finding_comments(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418402,7 +428605,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418411,7 +428614,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_hasPendingWorkflow(ctx, field, obj) + res = ec._Finding_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418438,7 +428641,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418447,7 +428650,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_hasWorkflowHistory(ctx, field, obj) + res = ec._Finding_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418474,7 +428677,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "checkResults": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418483,7 +428686,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_activeWorkflowInstances(ctx, field, obj) + res = ec._Finding_checkResults(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418510,7 +428713,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "controlMappings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418519,7 +428722,7 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Evidence_workflowTimeline(ctx, field, obj) + res = ec._Finding_controlMappings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418569,67 +428772,26 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, return out } -var evidenceConnectionImplementors = []string{"EvidenceConnection"} +var findingConnectionImplementors = []string{"FindingConnection"} -func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EvidenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) +func (ec *executionContext) _FindingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceConnection") + out.Values[i] = graphql.MarshalString("FindingConnection") case "edges": - out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) + out.Values[i] = ec._FindingConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EvidenceConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._FindingConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EvidenceConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceEdgeImplementors = []string{"EvidenceEdge"} - -func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EvidenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceEdge") - case "node": - out.Values[i] = ec._EvidenceEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj) + out.Values[i] = ec._FindingConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -418656,72 +428818,67 @@ func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.Selection return out } -var exportImplementors = []string{"Export", "Node"} +var findingControlImplementors = []string{"FindingControl", "Node"} -func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, obj *generated.Export) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportImplementors) +func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControl) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingControlImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Export") + out.Values[i] = graphql.MarshalString("FindingControl") case "id": - out.Values[i] = ec._Export_id(ctx, field, obj) + out.Values[i] = ec._FindingControl_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Export_createdAt(ctx, field, obj) + out.Values[i] = ec._FindingControl_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Export_updatedAt(ctx, field, obj) + out.Values[i] = ec._FindingControl_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Export_createdBy(ctx, field, obj) + out.Values[i] = ec._FindingControl_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Export_updatedBy(ctx, field, obj) - case "requestorID": - out.Values[i] = ec._Export_requestorID(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Export_ownerID(ctx, field, obj) - case "exportType": - out.Values[i] = ec._Export_exportType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "format": - out.Values[i] = ec._Export_format(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._Export_status(ctx, field, obj) + out.Values[i] = ec._FindingControl_updatedBy(ctx, field, obj) + case "findingID": + out.Values[i] = ec._FindingControl_findingID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "fields": - out.Values[i] = ec._Export_fields(ctx, field, obj) - case "filters": - out.Values[i] = ec._Export_filters(ctx, field, obj) - case "errorMessage": - out.Values[i] = ec._Export_errorMessage(ctx, field, obj) - case "mode": - out.Values[i] = ec._Export_mode(ctx, field, obj) + case "controlID": + out.Values[i] = ec._FindingControl_controlID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "exportMetadata": - out.Values[i] = ec._Export_exportMetadata(ctx, field, obj) - case "owner": + case "standardID": + out.Values[i] = ec._FindingControl_standardID(ctx, field, obj) + case "externalStandard": + out.Values[i] = ec._FindingControl_externalStandard(ctx, field, obj) + case "externalStandardVersion": + out.Values[i] = ec._FindingControl_externalStandardVersion(ctx, field, obj) + case "externalControlID": + out.Values[i] = ec._FindingControl_externalControlID(ctx, field, obj) + case "source": + out.Values[i] = ec._FindingControl_source(ctx, field, obj) + case "metadata": + out.Values[i] = ec._FindingControl_metadata(ctx, field, obj) + case "discoveredAt": + out.Values[i] = ec._FindingControl_discoveredAt(ctx, field, obj) + case "finding": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Export_owner(ctx, field, obj) + res = ec._FindingControl_finding(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -418745,7 +428902,7 @@ func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "control": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418754,7 +428911,7 @@ func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Export_events(ctx, field, obj) + res = ec._FindingControl_control(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418781,19 +428938,16 @@ func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "standard": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Export_files(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._FindingControl_standard(ctx, field, obj) return res } @@ -418840,26 +428994,26 @@ func (ec *executionContext) _Export(ctx context.Context, sel ast.SelectionSet, o return out } -var exportConnectionImplementors = []string{"ExportConnection"} +var findingControlConnectionImplementors = []string{"FindingControlConnection"} -func (ec *executionContext) _ExportConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ExportConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportConnectionImplementors) +func (ec *executionContext) _FindingControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControlConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingControlConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ExportConnection") + out.Values[i] = graphql.MarshalString("FindingControlConnection") case "edges": - out.Values[i] = ec._ExportConnection_edges(ctx, field, obj) + out.Values[i] = ec._FindingControlConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ExportConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._FindingControlConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ExportConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._FindingControlConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -418886,21 +429040,21 @@ func (ec *executionContext) _ExportConnection(ctx context.Context, sel ast.Selec return out } -var exportEdgeImplementors = []string{"ExportEdge"} +var findingControlEdgeImplementors = []string{"FindingControlEdge"} -func (ec *executionContext) _ExportEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ExportEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportEdgeImplementors) +func (ec *executionContext) _FindingControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControlEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingControlEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ExportEdge") + out.Values[i] = graphql.MarshalString("FindingControlEdge") case "node": - out.Values[i] = ec._ExportEdge_node(ctx, field, obj) + out.Values[i] = ec._FindingControlEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ExportEdge_cursor(ctx, field, obj) + out.Values[i] = ec._FindingControlEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -418927,96 +429081,115 @@ func (ec *executionContext) _ExportEdge(ctx context.Context, sel ast.SelectionSe return out } -var fileImplementors = []string{"File", "Node"} +var findingEdgeImplementors = []string{"FindingEdge"} -func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj *generated.File) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileImplementors) +func (ec *executionContext) _FindingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, findingEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("File") + out.Values[i] = graphql.MarshalString("FindingEdge") + case "node": + out.Values[i] = ec._FindingEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._FindingEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, groupImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Group") case "id": - out.Values[i] = ec._File_id(ctx, field, obj) + out.Values[i] = ec._Group_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._File_createdAt(ctx, field, obj) + out.Values[i] = ec._Group_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._File_updatedAt(ctx, field, obj) + out.Values[i] = ec._Group_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._File_createdBy(ctx, field, obj) + out.Values[i] = ec._Group_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._File_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._File_tags(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._File_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._File_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._File_systemInternalID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._File_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._File_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._File_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._File_scopeID(ctx, field, obj) - case "categoryName": - out.Values[i] = ec._File_categoryName(ctx, field, obj) - case "categoryID": - out.Values[i] = ec._File_categoryID(ctx, field, obj) - case "name": - out.Values[i] = ec._File_name(ctx, field, obj) - case "providedFileName": - out.Values[i] = ec._File_providedFileName(ctx, field, obj) + out.Values[i] = ec._Group_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Group_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "providedFileExtension": - out.Values[i] = ec._File_providedFileExtension(ctx, field, obj) + case "tags": + out.Values[i] = ec._Group_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Group_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Group_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "providedFileSize": - out.Values[i] = ec._File_providedFileSize(ctx, field, obj) - case "persistedFileSize": - out.Values[i] = ec._File_persistedFileSize(ctx, field, obj) - case "detectedMimeType": - out.Values[i] = ec._File_detectedMimeType(ctx, field, obj) - case "md5Hash": - out.Values[i] = ec._File_md5Hash(ctx, field, obj) - case "detectedContentType": - out.Values[i] = ec._File_detectedContentType(ctx, field, obj) + case "description": + out.Values[i] = ec._Group_description(ctx, field, obj) + case "isManaged": + out.Values[i] = ec._Group_isManaged(ctx, field, obj) + case "gravatarLogoURL": + out.Values[i] = ec._Group_gravatarLogoURL(ctx, field, obj) + case "logoURL": + out.Values[i] = ec._Group_logoURL(ctx, field, obj) + case "avatarLocalFileID": + out.Values[i] = ec._Group_avatarLocalFileID(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Group_displayName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "storeKey": - out.Values[i] = ec._File_storeKey(ctx, field, obj) - case "categoryType": - out.Values[i] = ec._File_categoryType(ctx, field, obj) - case "uri": - out.Values[i] = ec._File_uri(ctx, field, obj) - case "storageScheme": - out.Values[i] = ec._File_storageScheme(ctx, field, obj) - case "storageVolume": - out.Values[i] = ec._File_storageVolume(ctx, field, obj) - case "storagePath": - out.Values[i] = ec._File_storagePath(ctx, field, obj) - case "metadata": - out.Values[i] = ec._File_metadata(ctx, field, obj) - case "storageRegion": - out.Values[i] = ec._File_storageRegion(ctx, field, obj) - case "storageProvider": - out.Values[i] = ec._File_storageProvider(ctx, field, obj) - case "lastAccessedAt": - out.Values[i] = ec._File_lastAccessedAt(ctx, field, obj) - case "environment": + case "oscalRole": + out.Values[i] = ec._Group_oscalRole(ctx, field, obj) + case "oscalPartyUUID": + out.Values[i] = ec._Group_oscalPartyUUID(ctx, field, obj) + case "oscalContactUuids": + out.Values[i] = ec._Group_oscalContactUuids(ctx, field, obj) + case "scimExternalID": + out.Values[i] = ec._Group_scimExternalID(ctx, field, obj) + case "scimDisplayName": + out.Values[i] = ec._Group_scimDisplayName(ctx, field, obj) + case "scimActive": + out.Values[i] = ec._Group_scimActive(ctx, field, obj) + case "scimGroupMailing": + out.Values[i] = ec._Group_scimGroupMailing(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -419025,7 +429198,79 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_environment(ctx, field, obj) + res = ec._Group_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "programEditors": + 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._Group_programEditors(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 "programBlockedGroups": + 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._Group_programBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419049,16 +429294,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "programViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_scope(ctx, field, obj) + res = ec._Group_programViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419082,16 +429330,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "category": + case "riskEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_category(ctx, field, obj) + res = ec._Group_riskEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419115,16 +429366,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": + case "riskBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_organization(ctx, field, obj) + res = ec._Group_riskBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419148,7 +429402,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": + case "riskViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -419157,7 +429411,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_groups(ctx, field, obj) + res = ec._Group_riskViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -419184,16 +429438,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contact": + case "controlObjectiveEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_contact(ctx, field, obj) + res = ec._Group_controlObjectiveEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419217,16 +429474,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entity": + case "controlObjectiveBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_entity(ctx, field, obj) + res = ec._Group_controlObjectiveBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419250,16 +429510,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizationSetting": + case "controlObjectiveViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_organizationSetting(ctx, field, obj) + res = ec._Group_controlObjectiveViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419283,16 +429546,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "template": + case "narrativeEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_template(ctx, field, obj) + res = ec._Group_narrativeEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419316,16 +429582,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "document": + case "narrativeBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_document(ctx, field, obj) + res = ec._Group_narrativeBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419349,16 +429618,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "program": + case "narrativeViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_program(ctx, field, obj) + res = ec._Group_narrativeViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419382,16 +429654,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + case "controlImplementationEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_platform(ctx, field, obj) + res = ec._Group_controlImplementationEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419415,16 +429690,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidence": + case "controlImplementationBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_evidence(ctx, field, obj) + res = ec._Group_controlImplementationBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419448,16 +429726,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolder": + case "controlImplementationViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_identityHolder(ctx, field, obj) + res = ec._Group_controlImplementationViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419481,16 +429762,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scan": + case "scanEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_scan(ctx, field, obj) + res = ec._Group_scanEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419514,7 +429798,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "scanBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -419523,7 +429807,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_events(ctx, field, obj) + res = ec._Group_scanBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -419550,7 +429834,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "scanViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -419559,7 +429843,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_integrations(ctx, field, obj) + res = ec._Group_scanViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -419586,7 +429870,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "secrets": + case "entityEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -419595,7 +429879,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_secrets(ctx, field, obj) + res = ec._Group_entityEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -419622,7 +429906,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterEntities": + case "entityBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -419631,7 +429915,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_trustCenterEntities(ctx, field, obj) + res = ec._Group_entityBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -419658,16 +429942,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterDoc": + case "entityViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_trustCenterDoc(ctx, field, obj) + res = ec._Group_entityViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419691,16 +429978,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "originalTrustCenterDoc": + case "actionPlanEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._File_originalTrustCenterDoc(ctx, field, obj) + res = ec._Group_actionPlanEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419724,255 +430014,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "presignedURL": - out.Values[i] = ec._File_presignedURL(ctx, field, obj) - case "base64": - out.Values[i] = ec._File_base64(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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var fileConnectionImplementors = []string{"FileConnection"} - -func (ec *executionContext) _FileConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileConnection") - case "edges": - out.Values[i] = ec._FileConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._FileConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._FileConnection_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, fileEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileEdge") - case "node": - out.Values[i] = ec._FileEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._FileEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var findingImplementors = []string{"Finding", "Node"} - -func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, obj *generated.Finding) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Finding") - case "id": - out.Values[i] = ec._Finding_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Finding_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Finding_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Finding_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Finding_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._Finding_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._Finding_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Finding_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Finding_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Finding_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Finding_systemInternalID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._Finding_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._Finding_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._Finding_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._Finding_scopeID(ctx, field, obj) - case "findingStatusName": - out.Values[i] = ec._Finding_findingStatusName(ctx, field, obj) - case "findingStatusID": - out.Values[i] = ec._Finding_findingStatusID(ctx, field, obj) - case "externalID": - out.Values[i] = ec._Finding_externalID(ctx, field, obj) - case "securityLevel": - out.Values[i] = ec._Finding_securityLevel(ctx, field, obj) - case "externalOwnerID": - out.Values[i] = ec._Finding_externalOwnerID(ctx, field, obj) - case "source": - out.Values[i] = ec._Finding_source(ctx, field, obj) - case "resourceName": - out.Values[i] = ec._Finding_resourceName(ctx, field, obj) - case "displayName": - out.Values[i] = ec._Finding_displayName(ctx, field, obj) - case "state": - out.Values[i] = ec._Finding_state(ctx, field, obj) - case "category": - out.Values[i] = ec._Finding_category(ctx, field, obj) - case "categories": - out.Values[i] = ec._Finding_categories(ctx, field, obj) - case "findingClass": - out.Values[i] = ec._Finding_findingClass(ctx, field, obj) - case "severity": - out.Values[i] = ec._Finding_severity(ctx, field, obj) - case "numericSeverity": - out.Values[i] = ec._Finding_numericSeverity(ctx, field, obj) - case "score": - out.Values[i] = ec._Finding_score(ctx, field, obj) - case "impact": - out.Values[i] = ec._Finding_impact(ctx, field, obj) - case "exploitability": - out.Values[i] = ec._Finding_exploitability(ctx, field, obj) - case "priority": - out.Values[i] = ec._Finding_priority(ctx, field, obj) - case "open": - out.Values[i] = ec._Finding_open(ctx, field, obj) - case "blocksProduction": - out.Values[i] = ec._Finding_blocksProduction(ctx, field, obj) - case "production": - out.Values[i] = ec._Finding_production(ctx, field, obj) - case "public": - out.Values[i] = ec._Finding_public(ctx, field, obj) - case "validated": - out.Values[i] = ec._Finding_validated(ctx, field, obj) - case "assessmentID": - out.Values[i] = ec._Finding_assessmentID(ctx, field, obj) - case "description": - out.Values[i] = ec._Finding_description(ctx, field, obj) - case "recommendation": - out.Values[i] = ec._Finding_recommendation(ctx, field, obj) - case "recommendedActions": - out.Values[i] = ec._Finding_recommendedActions(ctx, field, obj) - case "references": - out.Values[i] = ec._Finding_references(ctx, field, obj) - case "stepsToReproduce": - out.Values[i] = ec._Finding_stepsToReproduce(ctx, field, obj) - case "targets": - out.Values[i] = ec._Finding_targets(ctx, field, obj) - case "targetDetails": - out.Values[i] = ec._Finding_targetDetails(ctx, field, obj) - case "vector": - out.Values[i] = ec._Finding_vector(ctx, field, obj) - case "remediationSLA": - out.Values[i] = ec._Finding_remediationSLA(ctx, field, obj) - case "eventTime": - out.Values[i] = ec._Finding_eventTime(ctx, field, obj) - case "reportedAt": - out.Values[i] = ec._Finding_reportedAt(ctx, field, obj) - case "sourceUpdatedAt": - out.Values[i] = ec._Finding_sourceUpdatedAt(ctx, field, obj) - case "externalURI": - out.Values[i] = ec._Finding_externalURI(ctx, field, obj) - case "metadata": - out.Values[i] = ec._Finding_metadata(ctx, field, obj) - case "rawPayload": - out.Values[i] = ec._Finding_rawPayload(ctx, field, obj) - case "owner": + case "actionPlanBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_owner(ctx, field, obj) + res = ec._Group_actionPlanBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -419996,7 +430050,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "actionPlanViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420005,7 +430059,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_blockedGroups(ctx, field, obj) + res = ec._Group_actionPlanViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420032,7 +430086,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "platformEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420041,7 +430095,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_editors(ctx, field, obj) + res = ec._Group_platformEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420068,7 +430122,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "platformBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420077,7 +430131,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_viewers(ctx, field, obj) + res = ec._Group_platformBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420104,16 +430158,19 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "platformViewers": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_environment(ctx, field, obj) + res = ec._Group_platformViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -420137,16 +430194,19 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": + case "campaignEditors": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_scope(ctx, field, obj) + res = ec._Group_campaignEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -420170,16 +430230,19 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findingStatus": + case "campaignBlockedGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_findingStatus(ctx, field, obj) + res = ec._Group_campaignBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -420203,7 +430266,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "campaignViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420212,7 +430275,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_integrations(ctx, field, obj) + res = ec._Group_campaignViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420239,7 +430302,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vulnerabilities": + case "procedureEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420248,7 +430311,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_vulnerabilities(ctx, field, obj) + res = ec._Group_procedureEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420275,7 +430338,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlans": + case "procedureBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420284,7 +430347,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_actionPlans(ctx, field, obj) + res = ec._Group_procedureBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420311,7 +430374,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "internalPolicyEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420320,7 +430383,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_controls(ctx, field, obj) + res = ec._Group_internalPolicyEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420347,7 +430410,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "internalPolicyBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420356,7 +430419,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_subcontrols(ctx, field, obj) + res = ec._Group_internalPolicyBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420383,7 +430446,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "controlEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420392,7 +430455,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_risks(ctx, field, obj) + res = ec._Group_controlEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420419,7 +430482,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "controlBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420428,7 +430491,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_programs(ctx, field, obj) + res = ec._Group_controlBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420455,7 +430518,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": + case "mappedControlEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420464,7 +430527,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_assets(ctx, field, obj) + res = ec._Group_mappedControlEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420491,7 +430554,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "mappedControlBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420500,7 +430563,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_entities(ctx, field, obj) + res = ec._Group_mappedControlBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420527,19 +430590,16 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scans": + case "setting": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_scans(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Group_setting(ctx, field, obj) return res } @@ -420563,7 +430623,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "users": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420572,7 +430632,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_tasks(ctx, field, obj) + res = ec._Group_users(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420599,7 +430659,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryAccounts": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420608,7 +430668,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_directoryAccounts(ctx, field, obj) + res = ec._Group_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420635,7 +430695,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "integrations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420644,7 +430704,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_identityHolders(ctx, field, obj) + res = ec._Group_integrations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420671,19 +430731,16 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "remediations": + case "avatarFile": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Finding_remediations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Group_avatarFile(ctx, field, obj) return res } @@ -420707,7 +430764,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviews": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420716,7 +430773,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_reviews(ctx, field, obj) + res = ec._Group_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420743,7 +430800,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "comments": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420752,7 +430809,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_comments(ctx, field, obj) + res = ec._Group_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420779,7 +430836,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420788,7 +430845,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_files(ctx, field, obj) + res = ec._Group_campaigns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420815,7 +430872,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "campaignTargets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420824,7 +430881,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_workflowObjectRefs(ctx, field, obj) + res = ec._Group_campaignTargets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420851,7 +430908,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "checkResults": + case "members": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420860,7 +430917,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_checkResults(ctx, field, obj) + res = ec._Group_members(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420887,7 +430944,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlMappings": + case "permissions": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -420896,7 +430953,7 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Finding_controlMappings(ctx, field, obj) + res = ec._Group_permissions(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -420946,26 +431003,26 @@ func (ec *executionContext) _Finding(ctx context.Context, sel ast.SelectionSet, return out } -var findingConnectionImplementors = []string{"FindingConnection"} +var groupConnectionImplementors = []string{"GroupConnection"} -func (ec *executionContext) _FindingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingConnectionImplementors) +func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FindingConnection") + out.Values[i] = graphql.MarshalString("GroupConnection") case "edges": - out.Values[i] = ec._FindingConnection_edges(ctx, field, obj) + out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._FindingConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._FindingConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -420992,55 +431049,87 @@ func (ec *executionContext) _FindingConnection(ctx context.Context, sel ast.Sele return out } -var findingControlImplementors = []string{"FindingControl", "Node"} +var groupEdgeImplementors = []string{"GroupEdge"} -func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControl) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingControlImplementors) +func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FindingControl") + out.Values[i] = graphql.MarshalString("GroupEdge") + case "node": + out.Values[i] = ec._GroupEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipImplementors = []string{"GroupMembership", "Node"} + +func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembership) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembership") case "id": - out.Values[i] = ec._FindingControl_id(ctx, field, obj) + out.Values[i] = ec._GroupMembership_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._FindingControl_createdAt(ctx, field, obj) + out.Values[i] = ec._GroupMembership_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._FindingControl_updatedAt(ctx, field, obj) + out.Values[i] = ec._GroupMembership_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._FindingControl_createdBy(ctx, field, obj) + out.Values[i] = ec._GroupMembership_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._FindingControl_updatedBy(ctx, field, obj) - case "findingID": - out.Values[i] = ec._FindingControl_findingID(ctx, field, obj) + out.Values[i] = ec._GroupMembership_updatedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._GroupMembership_role(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "controlID": - out.Values[i] = ec._FindingControl_controlID(ctx, field, obj) + case "groupID": + out.Values[i] = ec._GroupMembership_groupID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "standardID": - out.Values[i] = ec._FindingControl_standardID(ctx, field, obj) - case "externalStandard": - out.Values[i] = ec._FindingControl_externalStandard(ctx, field, obj) - case "externalStandardVersion": - out.Values[i] = ec._FindingControl_externalStandardVersion(ctx, field, obj) - case "externalControlID": - out.Values[i] = ec._FindingControl_externalControlID(ctx, field, obj) - case "source": - out.Values[i] = ec._FindingControl_source(ctx, field, obj) - case "metadata": - out.Values[i] = ec._FindingControl_metadata(ctx, field, obj) - case "discoveredAt": - out.Values[i] = ec._FindingControl_discoveredAt(ctx, field, obj) - case "finding": + case "userID": + out.Values[i] = ec._GroupMembership_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "group": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421049,7 +431138,7 @@ func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._FindingControl_finding(ctx, field, obj) + res = ec._GroupMembership_group(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421076,7 +431165,7 @@ func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "control": + case "user": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421085,7 +431174,7 @@ func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._FindingControl_control(ctx, field, obj) + res = ec._GroupMembership_user(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421112,16 +431201,19 @@ func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "standard": + case "events": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._FindingControl_standard(ctx, field, obj) + res = ec._GroupMembership_events(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -421168,26 +431260,26 @@ func (ec *executionContext) _FindingControl(ctx context.Context, sel ast.Selecti return out } -var findingControlConnectionImplementors = []string{"FindingControlConnection"} +var groupMembershipConnectionImplementors = []string{"GroupMembershipConnection"} -func (ec *executionContext) _FindingControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControlConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingControlConnectionImplementors) +func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FindingControlConnection") + out.Values[i] = graphql.MarshalString("GroupMembershipConnection") case "edges": - out.Values[i] = ec._FindingControlConnection_edges(ctx, field, obj) + out.Values[i] = ec._GroupMembershipConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._FindingControlConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._GroupMembershipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._FindingControlConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._GroupMembershipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -421214,21 +431306,21 @@ func (ec *executionContext) _FindingControlConnection(ctx context.Context, sel a return out } -var findingControlEdgeImplementors = []string{"FindingControlEdge"} +var groupMembershipEdgeImplementors = []string{"GroupMembershipEdge"} -func (ec *executionContext) _FindingControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingControlEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingControlEdgeImplementors) +func (ec *executionContext) _GroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FindingControlEdge") + out.Values[i] = graphql.MarshalString("GroupMembershipEdge") case "node": - out.Values[i] = ec._FindingControlEdge_node(ctx, field, obj) + out.Values[i] = ec._GroupMembershipEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._FindingControlEdge_cursor(ctx, field, obj) + out.Values[i] = ec._GroupMembershipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -421255,21 +431347,163 @@ func (ec *executionContext) _FindingControlEdge(ctx context.Context, sel ast.Sel return out } -var findingEdgeImplementors = []string{"FindingEdge"} +var groupSettingImplementors = []string{"GroupSetting", "Node"} -func (ec *executionContext) _FindingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FindingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, findingEdgeImplementors) +func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSetting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FindingEdge") + out.Values[i] = graphql.MarshalString("GroupSetting") + case "id": + out.Values[i] = ec._GroupSetting_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._GroupSetting_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupSetting_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupSetting_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupSetting_updatedBy(ctx, field, obj) + case "visibility": + out.Values[i] = ec._GroupSetting_visibility(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "joinPolicy": + out.Values[i] = ec._GroupSetting_joinPolicy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "syncToSlack": + out.Values[i] = ec._GroupSetting_syncToSlack(ctx, field, obj) + case "syncToGithub": + out.Values[i] = ec._GroupSetting_syncToGithub(ctx, field, obj) + case "groupID": + out.Values[i] = ec._GroupSetting_groupID(ctx, field, obj) + case "group": + 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._GroupSetting_group(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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingConnection") + case "edges": + out.Values[i] = ec._GroupSettingConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupSettingConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._GroupSettingConnection_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingEdge") case "node": - out.Values[i] = ec._FindingEdge_node(ctx, field, obj) + out.Values[i] = ec._GroupSettingEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._FindingEdge_cursor(ctx, field, obj) + out.Values[i] = ec._GroupSettingEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -421296,73 +431530,57 @@ func (ec *executionContext) _FindingEdge(ctx context.Context, sel ast.SelectionS return out } -var groupImplementors = []string{"Group", "Node"} +var hushImplementors = []string{"Hush", "Node"} -func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, obj *generated.Group) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupImplementors) +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("Group") + out.Values[i] = graphql.MarshalString("Hush") case "id": - out.Values[i] = ec._Group_id(ctx, field, obj) + 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._Group_createdAt(ctx, field, obj) + out.Values[i] = ec._Hush_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Group_updatedAt(ctx, field, obj) + out.Values[i] = ec._Hush_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Group_createdBy(ctx, field, obj) + out.Values[i] = ec._Hush_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Group_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._Group_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._Group_tags(ctx, field, obj) + out.Values[i] = ec._Hush_updatedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Group_ownerID(ctx, field, obj) + out.Values[i] = ec._Hush_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Hush_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Hush_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Hush_systemInternalID(ctx, field, obj) case "name": - out.Values[i] = ec._Group_name(ctx, field, obj) + 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._Group_description(ctx, field, obj) - case "isManaged": - out.Values[i] = ec._Group_isManaged(ctx, field, obj) - case "gravatarLogoURL": - out.Values[i] = ec._Group_gravatarLogoURL(ctx, field, obj) - case "logoURL": - out.Values[i] = ec._Group_logoURL(ctx, field, obj) - case "avatarLocalFileID": - out.Values[i] = ec._Group_avatarLocalFileID(ctx, field, obj) - case "displayName": - out.Values[i] = ec._Group_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "oscalRole": - out.Values[i] = ec._Group_oscalRole(ctx, field, obj) - case "oscalPartyUUID": - out.Values[i] = ec._Group_oscalPartyUUID(ctx, field, obj) - case "oscalContactUuids": - out.Values[i] = ec._Group_oscalContactUuids(ctx, field, obj) - case "scimExternalID": - out.Values[i] = ec._Group_scimExternalID(ctx, field, obj) - case "scimDisplayName": - out.Values[i] = ec._Group_scimDisplayName(ctx, field, obj) - case "scimActive": - out.Values[i] = ec._Group_scimActive(ctx, field, obj) - case "scimGroupMailing": - out.Values[i] = ec._Group_scimGroupMailing(ctx, field, obj) + 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 "credentialSet": + out.Values[i] = ec._Hush_credentialSet(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Hush_metadata(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._Hush_lastUsedAt(ctx, field, obj) + case "expiresAt": + out.Values[i] = ec._Hush_expiresAt(ctx, field, obj) case "owner": field := field @@ -421372,7 +431590,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_owner(ctx, field, obj) + res = ec._Hush_owner(ctx, field, obj) return res } @@ -421396,7 +431614,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programEditors": + case "integrations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421405,7 +431623,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_programEditors(ctx, field, obj) + res = ec._Hush_integrations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421432,7 +431650,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programBlockedGroups": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421441,7 +431659,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_programBlockedGroups(ctx, field, obj) + res = ec._Hush_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421468,7 +431686,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programViewers": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421477,7 +431695,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_programViewers(ctx, field, obj) + res = ec._Hush_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421504,19 +431722,232 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskEditors": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + 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"} + +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("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++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var hushEdgeImplementors = []string{"HushEdge"} + +func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("HushEdge") + case "node": + out.Values[i] = ec._HushEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._HushEdge_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var identityHolderImplementors = []string{"IdentityHolder", "Node"} + +func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolder) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IdentityHolder") + case "id": + out.Values[i] = ec._IdentityHolder_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._IdentityHolder_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._IdentityHolder_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._IdentityHolder_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._IdentityHolder_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._IdentityHolder_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._IdentityHolder_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._IdentityHolder_ownerID(ctx, field, obj) + case "internalOwner": + out.Values[i] = ec._IdentityHolder_internalOwner(ctx, field, obj) + case "internalOwnerUserID": + out.Values[i] = ec._IdentityHolder_internalOwnerUserID(ctx, field, obj) + case "internalOwnerGroupID": + out.Values[i] = ec._IdentityHolder_internalOwnerGroupID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._IdentityHolder_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._IdentityHolder_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._IdentityHolder_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._IdentityHolder_scopeID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._IdentityHolder_workflowEligibleMarker(ctx, field, obj) + case "fullName": + out.Values[i] = ec._IdentityHolder_fullName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "email": + out.Values[i] = ec._IdentityHolder_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "alternateEmail": + out.Values[i] = ec._IdentityHolder_alternateEmail(ctx, field, obj) + case "emailAliases": + out.Values[i] = ec._IdentityHolder_emailAliases(ctx, field, obj) + case "phoneNumber": + out.Values[i] = ec._IdentityHolder_phoneNumber(ctx, field, obj) + case "isOpenlaneUser": + out.Values[i] = ec._IdentityHolder_isOpenlaneUser(ctx, field, obj) + case "userID": + out.Values[i] = ec._IdentityHolder_userID(ctx, field, obj) + case "identityHolderType": + out.Values[i] = ec._IdentityHolder_identityHolderType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._IdentityHolder_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isActive": + out.Values[i] = ec._IdentityHolder_isActive(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "title": + out.Values[i] = ec._IdentityHolder_title(ctx, field, obj) + case "department": + out.Values[i] = ec._IdentityHolder_department(ctx, field, obj) + case "team": + out.Values[i] = ec._IdentityHolder_team(ctx, field, obj) + case "location": + out.Values[i] = ec._IdentityHolder_location(ctx, field, obj) + case "startDate": + out.Values[i] = ec._IdentityHolder_startDate(ctx, field, obj) + case "endDate": + out.Values[i] = ec._IdentityHolder_endDate(ctx, field, obj) + case "employerEntityID": + out.Values[i] = ec._IdentityHolder_employerEntityID(ctx, field, obj) + case "externalUserID": + out.Values[i] = ec._IdentityHolder_externalUserID(ctx, field, obj) + case "externalReferenceID": + out.Values[i] = ec._IdentityHolder_externalReferenceID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._IdentityHolder_metadata(ctx, field, obj) + case "avatarRemoteURL": + out.Values[i] = ec._IdentityHolder_avatarRemoteURL(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_riskEditors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._IdentityHolder_owner(ctx, field, obj) return res } @@ -421540,7 +431971,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskBlockedGroups": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421549,7 +431980,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_riskBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421576,7 +432007,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskViewers": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421585,7 +432016,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_riskViewers(ctx, field, obj) + res = ec._IdentityHolder_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421612,7 +432043,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectiveEditors": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421621,7 +432052,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlObjectiveEditors(ctx, field, obj) + res = ec._IdentityHolder_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421648,19 +432079,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectiveBlockedGroups": + case "internalOwnerUser": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_controlObjectiveBlockedGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._IdentityHolder_internalOwnerUser(ctx, field, obj) return res } @@ -421684,19 +432112,49 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectiveViewers": + case "internalOwnerGroup": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_controlObjectiveViewers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._IdentityHolder_internalOwnerGroup(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 "environment": + 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._IdentityHolder_environment(ctx, field, obj) return res } @@ -421720,19 +432178,49 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narrativeEditors": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_narrativeEditors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + res = ec._IdentityHolder_scope(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 "employer": + 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._IdentityHolder_employer(ctx, field, obj) return res } @@ -421756,7 +432244,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narrativeBlockedGroups": + case "assessmentResponses": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421765,7 +432253,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_narrativeBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_assessmentResponses(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421792,7 +432280,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narrativeViewers": + case "assessments": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421801,7 +432289,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_narrativeViewers(ctx, field, obj) + res = ec._IdentityHolder_assessments(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421828,7 +432316,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementationEditors": + case "templates": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421837,7 +432325,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlImplementationEditors(ctx, field, obj) + res = ec._IdentityHolder_templates(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421864,7 +432352,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementationBlockedGroups": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421873,7 +432361,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlImplementationBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421900,7 +432388,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementationViewers": + case "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421909,7 +432397,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlImplementationViewers(ctx, field, obj) + res = ec._IdentityHolder_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421936,7 +432424,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scanEditors": + case "directoryAccounts": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421945,7 +432433,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_scanEditors(ctx, field, obj) + res = ec._IdentityHolder_directoryAccounts(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -421972,7 +432460,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scanBlockedGroups": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -421981,7 +432469,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_scanBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422008,7 +432496,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scanViewers": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422017,7 +432505,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_scanViewers(ctx, field, obj) + res = ec._IdentityHolder_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422044,7 +432532,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityEditors": + case "platforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422053,7 +432541,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_entityEditors(ctx, field, obj) + res = ec._IdentityHolder_platforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422080,7 +432568,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityBlockedGroups": + case "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422089,7 +432577,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_entityBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_campaigns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422116,7 +432604,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityViewers": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422125,7 +432613,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_entityViewers(ctx, field, obj) + res = ec._IdentityHolder_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422152,7 +432640,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlanEditors": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422161,7 +432649,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_actionPlanEditors(ctx, field, obj) + res = ec._IdentityHolder_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422188,7 +432676,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlanBlockedGroups": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422197,7 +432685,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_actionPlanBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_findings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422224,7 +432712,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlanViewers": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422233,7 +432721,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_actionPlanViewers(ctx, field, obj) + res = ec._IdentityHolder_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422260,7 +432748,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platformEditors": + case "accessPlatforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422269,7 +432757,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_platformEditors(ctx, field, obj) + res = ec._IdentityHolder_accessPlatforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422296,19 +432784,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platformBlockedGroups": + case "user": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_platformBlockedGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._IdentityHolder_user(ctx, field, obj) return res } @@ -422332,7 +432817,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platformViewers": + case "internalPolicies": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422341,7 +432826,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_platformViewers(ctx, field, obj) + res = ec._IdentityHolder_internalPolicies(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422368,7 +432853,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignEditors": + case "hasPendingWorkflow": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422377,7 +432862,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_campaignEditors(ctx, field, obj) + res = ec._IdentityHolder_hasPendingWorkflow(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422404,7 +432889,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignBlockedGroups": + case "hasWorkflowHistory": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422413,7 +432898,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_campaignBlockedGroups(ctx, field, obj) + res = ec._IdentityHolder_hasWorkflowHistory(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422440,7 +432925,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignViewers": + case "activeWorkflowInstances": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422449,7 +432934,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_campaignViewers(ctx, field, obj) + res = ec._IdentityHolder_activeWorkflowInstances(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422476,7 +432961,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedureEditors": + case "workflowTimeline": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422485,7 +432970,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_procedureEditors(ctx, field, obj) + res = ec._IdentityHolder_workflowTimeline(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422512,19 +432997,208 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedureBlockedGroups": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var identityHolderConnectionImplementors = []string{"IdentityHolderConnection"} + +func (ec *executionContext) _IdentityHolderConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolderConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IdentityHolderConnection") + case "edges": + out.Values[i] = ec._IdentityHolderConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._IdentityHolderConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._IdentityHolderConnection_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(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var identityHolderEdgeImplementors = []string{"IdentityHolderEdge"} + +func (ec *executionContext) _IdentityHolderEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolderEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IdentityHolderEdge") + case "node": + out.Values[i] = ec._IdentityHolderEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._IdentityHolderEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Integration") + case "id": + out.Values[i] = ec._Integration_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Integration_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Integration_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Integration_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Integration_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Integration_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Integration_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Integration_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Integration_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Integration_systemInternalID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._Integration_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._Integration_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._Integration_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._Integration_scopeID(ctx, field, obj) + case "name": + out.Values[i] = ec._Integration_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._Integration_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._Integration_kind(ctx, field, obj) + case "integrationType": + out.Values[i] = ec._Integration_integrationType(ctx, field, obj) + case "platformID": + out.Values[i] = ec._Integration_platformID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Integration_metadata(ctx, field, obj) + case "definitionID": + out.Values[i] = ec._Integration_definitionID(ctx, field, obj) + case "definitionVersion": + out.Values[i] = ec._Integration_definitionVersion(ctx, field, obj) + case "definitionSlug": + out.Values[i] = ec._Integration_definitionSlug(ctx, field, obj) + case "family": + out.Values[i] = ec._Integration_family(ctx, field, obj) + case "status": + out.Values[i] = ec._Integration_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "providerMetadataSnapshot": + out.Values[i] = ec._Integration_providerMetadataSnapshot(ctx, field, obj) + case "primaryDirectory": + out.Values[i] = ec._Integration_primaryDirectory(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "campaignEmail": + out.Values[i] = ec._Integration_campaignEmail(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_procedureBlockedGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_owner(ctx, field, obj) return res } @@ -422548,19 +433222,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicyEditors": + case "environment": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_internalPolicyEditors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_environment(ctx, field, obj) return res } @@ -422584,19 +433255,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicyBlockedGroups": + case "scope": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_internalPolicyBlockedGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_scope(ctx, field, obj) return res } @@ -422620,7 +433288,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlEditors": + case "secrets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422629,7 +433297,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlEditors(ctx, field, obj) + res = ec._Integration_secrets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422656,7 +433324,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlBlockedGroups": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422665,7 +433333,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_controlBlockedGroups(ctx, field, obj) + res = ec._Integration_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422692,7 +433360,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "mappedControlEditors": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422701,7 +433369,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_mappedControlEditors(ctx, field, obj) + res = ec._Integration_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422728,7 +433396,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "mappedControlBlockedGroups": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422737,7 +433405,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_mappedControlBlockedGroups(ctx, field, obj) + res = ec._Integration_findings(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422764,16 +433432,19 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "setting": + case "vulnerabilities": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_setting(ctx, field, obj) + res = ec._Integration_vulnerabilities(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -422797,7 +433468,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "users": + case "reviews": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422806,7 +433477,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_users(ctx, field, obj) + res = ec._Integration_reviews(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422833,7 +433504,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "remediations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422842,7 +433513,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_events(ctx, field, obj) + res = ec._Integration_remediations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422869,7 +433540,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422878,7 +433549,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_integrations(ctx, field, obj) + res = ec._Integration_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422905,16 +433576,19 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "avatarFile": + case "actionPlans": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Group_avatarFile(ctx, field, obj) + res = ec._Integration_actionPlans(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -422938,7 +433612,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422947,7 +433621,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_files(ctx, field, obj) + res = ec._Integration_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -422974,7 +433648,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "directoryAccounts": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -422983,7 +433657,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_tasks(ctx, field, obj) + res = ec._Integration_directoryAccounts(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423010,7 +433684,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "directoryGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423019,7 +433693,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_campaigns(ctx, field, obj) + res = ec._Integration_directoryGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423046,7 +433720,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaignTargets": + case "directoryMemberships": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423055,7 +433729,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_campaignTargets(ctx, field, obj) + res = ec._Integration_directoryMemberships(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423082,7 +433756,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "members": + case "directorySyncRuns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423091,7 +433765,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_members(ctx, field, obj) + res = ec._Integration_directorySyncRuns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423118,7 +433792,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "permissions": + case "checkResults": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423127,7 +433801,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_permissions(ctx, field, obj) + res = ec._Integration_checkResults(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423154,168 +433828,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupConnection") - case "edges": - out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._GroupConnection_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupEdge") - case "node": - out.Values[i] = ec._GroupEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var groupMembershipImplementors = []string{"GroupMembership", "Node"} - -func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembership") - case "id": - out.Values[i] = ec._GroupMembership_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._GroupMembership_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._GroupMembership_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._GroupMembership_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._GroupMembership_updatedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._GroupMembership_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "groupID": - out.Values[i] = ec._GroupMembership_groupID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._GroupMembership_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "group": + case "platform": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._GroupMembership_group(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_platform(ctx, field, obj) return res } @@ -423339,7 +433861,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "notificationTemplates": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423348,7 +433870,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._GroupMembership_user(ctx, field, obj) + res = ec._Integration_notificationTemplates(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423375,7 +433897,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "emailTemplates": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -423384,7 +433906,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._GroupMembership_events(ctx, field, obj) + res = ec._Integration_emailTemplates(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -423411,166 +433933,19 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipConnection") - case "edges": - out.Values[i] = ec._GroupMembershipConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._GroupMembershipConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._GroupMembershipConnection_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipEdge") - case "node": - out.Values[i] = ec._GroupMembershipEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupMembershipEdge_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSetting") - case "id": - out.Values[i] = ec._GroupSetting_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._GroupSetting_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._GroupSetting_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._GroupSetting_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._GroupSetting_updatedBy(ctx, field, obj) - case "visibility": - out.Values[i] = ec._GroupSetting_visibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "joinPolicy": - out.Values[i] = ec._GroupSetting_joinPolicy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "syncToSlack": - out.Values[i] = ec._GroupSetting_syncToSlack(ctx, field, obj) - case "syncToGithub": - out.Values[i] = ec._GroupSetting_syncToGithub(ctx, field, obj) - case "groupID": - out.Values[i] = ec._GroupSetting_groupID(ctx, field, obj) - case "group": + case "campaigns": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._GroupSetting_group(ctx, field, obj) + res = ec._Integration_campaigns(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -423594,177 +433969,19 @@ func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingConnection") - case "edges": - out.Values[i] = ec._GroupSettingConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._GroupSettingConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._GroupSettingConnection_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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingEdge") - case "node": - out.Values[i] = ec._GroupSettingEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupSettingEdge_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(min(len(deferred), math.MaxInt32))) - - 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 "ownerID": - out.Values[i] = ec._Hush_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Hush_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Hush_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Hush_systemInternalID(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 "credentialSet": - out.Values[i] = ec._Hush_credentialSet(ctx, field, obj) - case "metadata": - out.Values[i] = ec._Hush_metadata(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._Hush_lastUsedAt(ctx, field, obj) - case "expiresAt": - out.Values[i] = ec._Hush_expiresAt(ctx, field, obj) - case "owner": + case "entities": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Hush_owner(ctx, field, obj) + res = ec._Integration_entities(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -423788,19 +434005,16 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "webhookURLs": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_webhookURLs(ctx, field, obj) return res } @@ -423824,19 +434038,16 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "credentials": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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_files(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_credentials(ctx, field, obj) return res } @@ -423860,19 +434071,16 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "config": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Integration_config(ctx, field, obj) return res } @@ -423919,26 +434127,26 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj return out } -var hushConnectionImplementors = []string{"HushConnection"} +var integrationConnectionImplementors = []string{"IntegrationConnection"} -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) _IntegrationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationConnectionImplementors) out := 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") + out.Values[i] = graphql.MarshalString("IntegrationConnection") case "edges": - out.Values[i] = ec._HushConnection_edges(ctx, field, obj) + out.Values[i] = ec._IntegrationConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._HushConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._IntegrationConnection_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] = ec._IntegrationConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -423965,21 +434173,21 @@ func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.Selecti return out } -var hushEdgeImplementors = []string{"HushEdge"} +var integrationEdgeImplementors = []string{"IntegrationEdge"} -func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushEdgeImplementors) +func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushEdge") + out.Values[i] = graphql.MarshalString("IntegrationEdge") case "node": - out.Values[i] = ec._HushEdge_node(ctx, field, obj) + out.Values[i] = ec._IntegrationEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._HushEdge_cursor(ctx, field, obj) + out.Values[i] = ec._IntegrationEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -424006,112 +434214,104 @@ func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, return out } -var identityHolderImplementors = []string{"IdentityHolder", "Node"} +var internalPolicyImplementors = []string{"InternalPolicy", "Node"} -func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolder) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderImplementors) +func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicy) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IdentityHolder") + out.Values[i] = graphql.MarshalString("InternalPolicy") case "id": - out.Values[i] = ec._IdentityHolder_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._IdentityHolder_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._IdentityHolder_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._IdentityHolder_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._IdentityHolder_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._IdentityHolder_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._IdentityHolder_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._IdentityHolder_ownerID(ctx, field, obj) - case "internalOwner": - out.Values[i] = ec._IdentityHolder_internalOwner(ctx, field, obj) - case "internalOwnerUserID": - out.Values[i] = ec._IdentityHolder_internalOwnerUserID(ctx, field, obj) - case "internalOwnerGroupID": - out.Values[i] = ec._IdentityHolder_internalOwnerGroupID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._IdentityHolder_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._IdentityHolder_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._IdentityHolder_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._IdentityHolder_scopeID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._IdentityHolder_workflowEligibleMarker(ctx, field, obj) - case "fullName": - out.Values[i] = ec._IdentityHolder_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "email": - out.Values[i] = ec._IdentityHolder_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "alternateEmail": - out.Values[i] = ec._IdentityHolder_alternateEmail(ctx, field, obj) - case "emailAliases": - out.Values[i] = ec._IdentityHolder_emailAliases(ctx, field, obj) - case "phoneNumber": - out.Values[i] = ec._IdentityHolder_phoneNumber(ctx, field, obj) - case "isOpenlaneUser": - out.Values[i] = ec._IdentityHolder_isOpenlaneUser(ctx, field, obj) - case "userID": - out.Values[i] = ec._IdentityHolder_userID(ctx, field, obj) - case "identityHolderType": - out.Values[i] = ec._IdentityHolder_identityHolderType(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "status": - out.Values[i] = ec._IdentityHolder_status(ctx, field, obj) + case "createdAt": + out.Values[i] = ec._InternalPolicy_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._InternalPolicy_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._InternalPolicy_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._InternalPolicy_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._InternalPolicy_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "isActive": - out.Values[i] = ec._IdentityHolder_isActive(ctx, field, obj) + case "tags": + out.Values[i] = ec._InternalPolicy_tags(ctx, field, obj) + case "revision": + out.Values[i] = ec._InternalPolicy_revision(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._InternalPolicy_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._InternalPolicy_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._InternalPolicy_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._InternalPolicy_systemInternalID(ctx, field, obj) + case "name": + out.Values[i] = ec._InternalPolicy_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "title": - out.Values[i] = ec._IdentityHolder_title(ctx, field, obj) - case "department": - out.Values[i] = ec._IdentityHolder_department(ctx, field, obj) - case "team": - out.Values[i] = ec._IdentityHolder_team(ctx, field, obj) - case "location": - out.Values[i] = ec._IdentityHolder_location(ctx, field, obj) - case "startDate": - out.Values[i] = ec._IdentityHolder_startDate(ctx, field, obj) - case "endDate": - out.Values[i] = ec._IdentityHolder_endDate(ctx, field, obj) - case "employerEntityID": - out.Values[i] = ec._IdentityHolder_employerEntityID(ctx, field, obj) - case "externalUserID": - out.Values[i] = ec._IdentityHolder_externalUserID(ctx, field, obj) - case "externalReferenceID": - out.Values[i] = ec._IdentityHolder_externalReferenceID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._IdentityHolder_metadata(ctx, field, obj) - case "avatarRemoteURL": - out.Values[i] = ec._IdentityHolder_avatarRemoteURL(ctx, field, obj) + case "status": + out.Values[i] = ec._InternalPolicy_status(ctx, field, obj) + case "managementMode": + out.Values[i] = ec._InternalPolicy_managementMode(ctx, field, obj) + case "details": + out.Values[i] = ec._InternalPolicy_details(ctx, field, obj) + case "detailsJSON": + out.Values[i] = ec._InternalPolicy_detailsJSON(ctx, field, obj) + case "approvalRequired": + out.Values[i] = ec._InternalPolicy_approvalRequired(ctx, field, obj) + case "reviewDue": + out.Values[i] = ec._InternalPolicy_reviewDue(ctx, field, obj) + case "reviewFrequency": + out.Values[i] = ec._InternalPolicy_reviewFrequency(ctx, field, obj) + case "approverID": + out.Values[i] = ec._InternalPolicy_approverID(ctx, field, obj) + case "delegateID": + out.Values[i] = ec._InternalPolicy_delegateID(ctx, field, obj) + case "summary": + out.Values[i] = ec._InternalPolicy_summary(ctx, field, obj) + case "tagSuggestions": + out.Values[i] = ec._InternalPolicy_tagSuggestions(ctx, field, obj) + case "dismissedTagSuggestions": + out.Values[i] = ec._InternalPolicy_dismissedTagSuggestions(ctx, field, obj) + case "controlSuggestions": + out.Values[i] = ec._InternalPolicy_controlSuggestions(ctx, field, obj) + case "dismissedControlSuggestions": + out.Values[i] = ec._InternalPolicy_dismissedControlSuggestions(ctx, field, obj) + case "improvementSuggestions": + out.Values[i] = ec._InternalPolicy_improvementSuggestions(ctx, field, obj) + case "dismissedImprovementSuggestions": + out.Values[i] = ec._InternalPolicy_dismissedImprovementSuggestions(ctx, field, obj) + case "url": + out.Values[i] = ec._InternalPolicy_url(ctx, field, obj) + case "fileID": + out.Values[i] = ec._InternalPolicy_fileID(ctx, field, obj) + case "internalPolicyKindName": + out.Values[i] = ec._InternalPolicy_internalPolicyKindName(ctx, field, obj) + case "internalPolicyKindID": + out.Values[i] = ec._InternalPolicy_internalPolicyKindID(ctx, field, obj) + case "environmentName": + out.Values[i] = ec._InternalPolicy_environmentName(ctx, field, obj) + case "environmentID": + out.Values[i] = ec._InternalPolicy_environmentID(ctx, field, obj) + case "scopeName": + out.Values[i] = ec._InternalPolicy_scopeName(ctx, field, obj) + case "scopeID": + out.Values[i] = ec._InternalPolicy_scopeID(ctx, field, obj) + case "workflowEligibleMarker": + out.Values[i] = ec._InternalPolicy_workflowEligibleMarker(ctx, field, obj) + case "externalUUID": + out.Values[i] = ec._InternalPolicy_externalUUID(ctx, field, obj) case "owner": field := field @@ -424121,7 +434321,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_owner(ctx, field, obj) + res = ec._InternalPolicy_owner(ctx, field, obj) return res } @@ -424154,7 +434354,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_blockedGroups(ctx, field, obj) + res = ec._InternalPolicy_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424190,7 +434390,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_editors(ctx, field, obj) + res = ec._InternalPolicy_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424217,19 +434417,16 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "approver": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._IdentityHolder_viewers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._InternalPolicy_approver(ctx, field, obj) return res } @@ -424253,7 +434450,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerUser": + case "delegate": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -424262,7 +434459,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_internalOwnerUser(ctx, field, obj) + res = ec._InternalPolicy_delegate(ctx, field, obj) return res } @@ -424286,7 +434483,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalOwnerGroup": + case "internalPolicyKind": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -424295,7 +434492,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_internalOwnerGroup(ctx, field, obj) + res = ec._InternalPolicy_internalPolicyKind(ctx, field, obj) return res } @@ -424328,7 +434525,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_environment(ctx, field, obj) + res = ec._InternalPolicy_environment(ctx, field, obj) return res } @@ -424361,40 +434558,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_scope(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 "employer": - 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._IdentityHolder_employer(ctx, field, obj) + res = ec._InternalPolicy_scope(ctx, field, obj) return res } @@ -424418,7 +434582,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessmentResponses": + case "controlObjectives": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424427,7 +434591,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_assessmentResponses(ctx, field, obj) + res = ec._InternalPolicy_controlObjectives(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424454,7 +434618,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assessments": + case "controlImplementations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424463,7 +434627,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_assessments(ctx, field, obj) + res = ec._InternalPolicy_controlImplementations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424490,7 +434654,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "templates": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424499,7 +434663,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_templates(ctx, field, obj) + res = ec._InternalPolicy_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424526,7 +434690,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424535,7 +434699,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_assets(ctx, field, obj) + res = ec._InternalPolicy_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424562,7 +434726,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "procedures": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424571,7 +434735,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_entities(ctx, field, obj) + res = ec._InternalPolicy_procedures(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424598,7 +434762,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryAccounts": + case "narratives": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424607,7 +434771,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_directoryAccounts(ctx, field, obj) + res = ec._InternalPolicy_narratives(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424634,7 +434798,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "tasks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424643,7 +434807,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_controls(ctx, field, obj) + res = ec._InternalPolicy_tasks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424670,7 +434834,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "risks": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424679,7 +434843,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_subcontrols(ctx, field, obj) + res = ec._InternalPolicy_risks(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424706,7 +434870,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platforms": + case "programs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424715,7 +434879,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_platforms(ctx, field, obj) + res = ec._InternalPolicy_programs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424742,19 +434906,16 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + case "file": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._IdentityHolder_campaigns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._InternalPolicy_file(ctx, field, obj) return res } @@ -424778,7 +434939,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "comments": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424787,7 +434948,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_tasks(ctx, field, obj) + res = ec._InternalPolicy_comments(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424814,7 +434975,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "discussions": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424823,7 +434984,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_files(ctx, field, obj) + res = ec._InternalPolicy_discussions(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424850,7 +435011,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + case "workflowObjectRefs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424859,7 +435020,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_findings(ctx, field, obj) + res = ec._InternalPolicy_workflowObjectRefs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424886,7 +435047,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424895,7 +435056,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_workflowObjectRefs(ctx, field, obj) + res = ec._InternalPolicy_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424922,7 +435083,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "accessPlatforms": + case "entities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -424931,7 +435092,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_accessPlatforms(ctx, field, obj) + res = ec._InternalPolicy_entities(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -424958,16 +435119,19 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "identityHolders": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._IdentityHolder_user(ctx, field, obj) + res = ec._InternalPolicy_identityHolders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -424991,7 +435155,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "reviews": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -425000,7 +435164,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_internalPolicies(ctx, field, obj) + res = ec._InternalPolicy_reviews(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425036,7 +435200,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_hasPendingWorkflow(ctx, field, obj) + res = ec._InternalPolicy_hasPendingWorkflow(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425072,7 +435236,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_hasWorkflowHistory(ctx, field, obj) + res = ec._InternalPolicy_hasWorkflowHistory(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425108,7 +435272,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_activeWorkflowInstances(ctx, field, obj) + res = ec._InternalPolicy_activeWorkflowInstances(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425144,7 +435308,7 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._IdentityHolder_workflowTimeline(ctx, field, obj) + res = ec._InternalPolicy_workflowTimeline(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425194,26 +435358,26 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti return out } -var identityHolderConnectionImplementors = []string{"IdentityHolderConnection"} +var internalPolicyConnectionImplementors = []string{"InternalPolicyConnection"} -func (ec *executionContext) _IdentityHolderConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolderConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderConnectionImplementors) +func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IdentityHolderConnection") + out.Values[i] = graphql.MarshalString("InternalPolicyConnection") case "edges": - out.Values[i] = ec._IdentityHolderConnection_edges(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._IdentityHolderConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._IdentityHolderConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -425240,21 +435404,21 @@ func (ec *executionContext) _IdentityHolderConnection(ctx context.Context, sel a return out } -var identityHolderEdgeImplementors = []string{"IdentityHolderEdge"} +var internalPolicyEdgeImplementors = []string{"InternalPolicyEdge"} -func (ec *executionContext) _IdentityHolderEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IdentityHolderEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, identityHolderEdgeImplementors) +func (ec *executionContext) _InternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IdentityHolderEdge") + out.Values[i] = graphql.MarshalString("InternalPolicyEdge") case "node": - out.Values[i] = ec._IdentityHolderEdge_node(ctx, field, obj) + out.Values[i] = ec._InternalPolicyEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._IdentityHolderEdge_cursor(ctx, field, obj) + out.Values[i] = ec._InternalPolicyEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -425281,88 +435445,58 @@ func (ec *executionContext) _IdentityHolderEdge(ctx context.Context, sel ast.Sel return out } -var integrationImplementors = []string{"Integration", "Node"} +var inviteImplementors = []string{"Invite", "Node"} -func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionSet, obj *generated.Integration) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationImplementors) +func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, obj *generated.Invite) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Integration") + out.Values[i] = graphql.MarshalString("Invite") case "id": - out.Values[i] = ec._Integration_id(ctx, field, obj) + out.Values[i] = ec._Invite_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Integration_createdAt(ctx, field, obj) + out.Values[i] = ec._Invite_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Integration_updatedAt(ctx, field, obj) + out.Values[i] = ec._Invite_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Integration_createdBy(ctx, field, obj) + out.Values[i] = ec._Invite_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Integration_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Integration_tags(ctx, field, obj) + out.Values[i] = ec._Invite_updatedBy(ctx, field, obj) + case "requestorID": + out.Values[i] = ec._Invite_requestorID(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Integration_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Integration_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Integration_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Integration_systemInternalID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._Integration_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._Integration_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._Integration_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._Integration_scopeID(ctx, field, obj) - case "name": - out.Values[i] = ec._Integration_name(ctx, field, obj) + out.Values[i] = ec._Invite_ownerID(ctx, field, obj) + case "expires": + out.Values[i] = ec._Invite_expires(ctx, field, obj) + case "recipient": + out.Values[i] = ec._Invite_recipient(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "description": - out.Values[i] = ec._Integration_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._Integration_kind(ctx, field, obj) - case "integrationType": - out.Values[i] = ec._Integration_integrationType(ctx, field, obj) - case "platformID": - out.Values[i] = ec._Integration_platformID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._Integration_metadata(ctx, field, obj) - case "definitionID": - out.Values[i] = ec._Integration_definitionID(ctx, field, obj) - case "definitionVersion": - out.Values[i] = ec._Integration_definitionVersion(ctx, field, obj) - case "definitionSlug": - out.Values[i] = ec._Integration_definitionSlug(ctx, field, obj) - case "family": - out.Values[i] = ec._Integration_family(ctx, field, obj) case "status": - out.Values[i] = ec._Integration_status(ctx, field, obj) + out.Values[i] = ec._Invite_status(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "providerMetadataSnapshot": - out.Values[i] = ec._Integration_providerMetadataSnapshot(ctx, field, obj) - case "primaryDirectory": - out.Values[i] = ec._Integration_primaryDirectory(ctx, field, obj) + case "role": + out.Values[i] = ec._Invite_role(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "campaignEmail": - out.Values[i] = ec._Integration_campaignEmail(ctx, field, obj) + case "sendAttempts": + out.Values[i] = ec._Invite_sendAttempts(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "ownershipTransfer": + out.Values[i] = ec._Invite_ownershipTransfer(ctx, field, obj) case "owner": field := field @@ -425372,7 +435506,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_owner(ctx, field, obj) + res = ec._Invite_owner(ctx, field, obj) return res } @@ -425396,49 +435530,19 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "events": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_environment(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 + res = ec._Invite_events(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - 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 "scope": - 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._Integration_scope(ctx, field, obj) return res } @@ -425462,7 +435566,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "secrets": + case "groups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -425471,7 +435575,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_secrets(ctx, field, obj) + res = ec._Invite_groups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425498,91 +435602,184 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_files(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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) - }) + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field +var inviteConnectionImplementors = []string{"InviteConnection"} - 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._Integration_events(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res +func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteConnection") + case "edges": + out.Values[i] = ec._InviteConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._InviteConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._InviteConnection_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteEdge") + case "node": + out.Values[i] = ec._InviteEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._InviteEdge_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findings": + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobResultImplementors = []string{"JobResult", "Node"} + +func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobResult") + case "id": + out.Values[i] = ec._JobResult_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._JobResult_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._JobResult_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._JobResult_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._JobResult_updatedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._JobResult_ownerID(ctx, field, obj) + case "scheduledJobID": + out.Values[i] = ec._JobResult_scheduledJobID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._JobResult_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "exitCode": + out.Values[i] = ec._JobResult_exitCode(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "finishedAt": + out.Values[i] = ec._JobResult_finishedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "startedAt": + out.Values[i] = ec._JobResult_startedAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fileID": + out.Values[i] = ec._JobResult_fileID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "log": + out.Values[i] = ec._JobResult_log(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_findings(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._JobResult_owner(ctx, field, obj) return res } @@ -425606,7 +435803,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vulnerabilities": + case "scheduledJob": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -425615,7 +435812,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_vulnerabilities(ctx, field, obj) + res = ec._JobResult_scheduledJob(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425642,7 +435839,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviews": + case "file": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -425651,7 +435848,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_reviews(ctx, field, obj) + res = ec._JobResult_file(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425678,55 +435875,183 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "remediations": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_remediations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobResultConnectionImplementors = []string{"JobResultConnection"} + +func (ec *executionContext) _JobResultConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResultConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobResultConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobResultConnection") + case "edges": + out.Values[i] = ec._JobResultConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._JobResultConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._JobResultConnection_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobResultEdgeImplementors = []string{"JobResultEdge"} + +func (ec *executionContext) _JobResultEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResultEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobResultEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobResultEdge") + case "node": + out.Values[i] = ec._JobResultEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._JobResultEdge_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerImplementors = []string{"JobRunner", "Node"} + +func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunner) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunner") + case "id": + out.Values[i] = ec._JobRunner_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._JobRunner_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._JobRunner_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._JobRunner_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._JobRunner_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._JobRunner_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._JobRunner_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._JobRunner_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._JobRunner_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._JobRunner_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._JobRunner_systemInternalID(ctx, field, obj) + case "name": + out.Values[i] = ec._JobRunner_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._JobRunner_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "ipAddress": + out.Values[i] = ec._JobRunner_ipAddress(ctx, field, obj) + case "lastSeen": + out.Values[i] = ec._JobRunner_lastSeen(ctx, field, obj) + case "version": + out.Values[i] = ec._JobRunner_version(ctx, field, obj) + case "os": + out.Values[i] = ec._JobRunner_os(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_tasks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._JobRunner_owner(ctx, field, obj) return res } @@ -425750,7 +436075,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlans": + case "jobRunnerTokens": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -425759,7 +436084,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_actionPlans(ctx, field, obj) + res = ec._JobRunner_jobRunnerTokens(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425786,91 +436111,168 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_assets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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) - }) + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return out +} + +var jobRunnerConnectionImplementors = []string{"JobRunnerConnection"} + +func (ec *executionContext) _JobRunnerConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerConnection") + case "edges": + out.Values[i] = ec._JobRunnerConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._JobRunnerConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._JobRunnerConnection_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryAccounts": - field := field + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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._Integration_directoryAccounts(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerEdgeImplementors = []string{"JobRunnerEdge"} + +func (ec *executionContext) _JobRunnerEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerEdge") + case "node": + out.Values[i] = ec._JobRunnerEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._JobRunnerEdge_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerRegistrationTokenImplementors = []string{"JobRunnerRegistrationToken", "Node"} + +func (ec *executionContext) _JobRunnerRegistrationToken(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerRegistrationToken") + case "id": + out.Values[i] = ec._JobRunnerRegistrationToken_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._JobRunnerRegistrationToken_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._JobRunnerRegistrationToken_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._JobRunnerRegistrationToken_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._JobRunnerRegistrationToken_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._JobRunnerRegistrationToken_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._JobRunnerRegistrationToken_ownerID(ctx, field, obj) + case "token": + out.Values[i] = ec._JobRunnerRegistrationToken_token(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryGroups": + case "expiresAt": + out.Values[i] = ec._JobRunnerRegistrationToken_expiresAt(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastUsedAt": + out.Values[i] = ec._JobRunnerRegistrationToken_lastUsedAt(ctx, field, obj) + case "jobRunnerID": + out.Values[i] = ec._JobRunnerRegistrationToken_jobRunnerID(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_directoryGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._JobRunnerRegistrationToken_owner(ctx, field, obj) return res } @@ -425894,19 +436296,16 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directoryMemberships": + case "jobRunner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_directoryMemberships(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._JobRunnerRegistrationToken_jobRunner(ctx, field, obj) return res } @@ -425930,79 +436329,162 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "directorySyncRuns": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_directorySyncRuns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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) - }) + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "checkResults": - field := field +var jobRunnerRegistrationTokenConnectionImplementors = []string{"JobRunnerRegistrationTokenConnection"} - 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._Integration_checkResults(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res +func (ec *executionContext) _JobRunnerRegistrationTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerRegistrationTokenConnection") + case "edges": + out.Values[i] = ec._JobRunnerRegistrationTokenConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._JobRunnerRegistrationTokenConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._JobRunnerRegistrationTokenConnection_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerRegistrationTokenEdgeImplementors = []string{"JobRunnerRegistrationTokenEdge"} + +func (ec *executionContext) _JobRunnerRegistrationTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationTokenEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerRegistrationTokenEdge") + case "node": + out.Values[i] = ec._JobRunnerRegistrationTokenEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._JobRunnerRegistrationTokenEdge_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "platform": + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerTokenImplementors = []string{"JobRunnerToken", "Node"} + +func (ec *executionContext) _JobRunnerToken(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerToken") + case "id": + out.Values[i] = ec._JobRunnerToken_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._JobRunnerToken_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._JobRunnerToken_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._JobRunnerToken_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._JobRunnerToken_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._JobRunnerToken_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._JobRunnerToken_ownerID(ctx, field, obj) + case "token": + out.Values[i] = ec._JobRunnerToken_token(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "expiresAt": + out.Values[i] = ec._JobRunnerToken_expiresAt(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._JobRunnerToken_lastUsedAt(ctx, field, obj) + case "isActive": + out.Values[i] = ec._JobRunnerToken_isActive(ctx, field, obj) + case "revokedReason": + out.Values[i] = ec._JobRunnerToken_revokedReason(ctx, field, obj) + case "revokedBy": + out.Values[i] = ec._JobRunnerToken_revokedBy(ctx, field, obj) + case "revokedAt": + out.Values[i] = ec._JobRunnerToken_revokedAt(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -426011,7 +436493,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_platform(ctx, field, obj) + res = ec._JobRunnerToken_owner(ctx, field, obj) return res } @@ -426035,7 +436517,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notificationTemplates": + case "jobRunners": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426044,7 +436526,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_notificationTemplates(ctx, field, obj) + res = ec._JobRunnerToken_jobRunners(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426071,55 +436553,186 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "emailTemplates": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_emailTemplates(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerTokenConnectionImplementors = []string{"JobRunnerTokenConnection"} + +func (ec *executionContext) _JobRunnerTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerTokenConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerTokenConnection") + case "edges": + out.Values[i] = ec._JobRunnerTokenConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._JobRunnerTokenConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._JobRunnerTokenConnection_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobRunnerTokenEdgeImplementors = []string{"JobRunnerTokenEdge"} + +func (ec *executionContext) _JobRunnerTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerTokenEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobRunnerTokenEdge") + case "node": + out.Values[i] = ec._JobRunnerTokenEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._JobRunnerTokenEdge_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "campaigns": + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobTemplateImplementors = []string{"JobTemplate", "Node"} + +func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplate) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobTemplate") + case "id": + out.Values[i] = ec._JobTemplate_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._JobTemplate_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._JobTemplate_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._JobTemplate_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._JobTemplate_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._JobTemplate_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._JobTemplate_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._JobTemplate_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._JobTemplate_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._JobTemplate_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._JobTemplate_systemInternalID(ctx, field, obj) + case "title": + out.Values[i] = ec._JobTemplate_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._JobTemplate_description(ctx, field, obj) + case "platform": + out.Values[i] = ec._JobTemplate_platform(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "downloadURL": + out.Values[i] = ec._JobTemplate_downloadURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "configuration": + out.Values[i] = ec._JobTemplate_configuration(ctx, field, obj) + case "cron": + out.Values[i] = ec._JobTemplate_cron(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_campaigns(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._JobTemplate_owner(ctx, field, obj) return res } @@ -426143,7 +436756,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "scheduledJobs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426152,7 +436765,7 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_entities(ctx, field, obj) + res = ec._JobTemplate_scheduledJobs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426179,82 +436792,165 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "webhookURLs": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._Integration_webhookURLs(ctx, field, obj) - return res - } + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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) - }) + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "credentials": - field := field +var jobTemplateConnectionImplementors = []string{"JobTemplateConnection"} - 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._Integration_credentials(ctx, field, obj) - return res +func (ec *executionContext) _JobTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplateConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobTemplateConnection") + case "edges": + out.Values[i] = ec._JobTemplateConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._JobTemplateConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._JobTemplateConnection_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var jobTemplateEdgeImplementors = []string{"JobTemplateEdge"} + +func (ec *executionContext) _JobTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplateEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("JobTemplateEdge") + case "node": + out.Values[i] = ec._JobTemplateEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._JobTemplateEdge_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "config": + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mappableDomainImplementors = []string{"MappableDomain", "Node"} + +func (ec *executionContext) _MappableDomain(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomain) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MappableDomain") + case "id": + out.Values[i] = ec._MappableDomain_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._MappableDomain_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._MappableDomain_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._MappableDomain_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._MappableDomain_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._MappableDomain_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._MappableDomain_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "zoneID": + out.Values[i] = ec._MappableDomain_zoneID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "customDomains": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Integration_config(ctx, field, obj) + res = ec._MappableDomain_customDomains(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -426301,26 +436997,26 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS return out } -var integrationConnectionImplementors = []string{"IntegrationConnection"} +var mappableDomainConnectionImplementors = []string{"MappableDomainConnection"} -func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationConnectionImplementors) +func (ec *executionContext) _MappableDomainConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomainConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationConnection") + out.Values[i] = graphql.MarshalString("MappableDomainConnection") case "edges": - out.Values[i] = ec._IntegrationConnection_edges(ctx, field, obj) + out.Values[i] = ec._MappableDomainConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._IntegrationConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._MappableDomainConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._IntegrationConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._MappableDomainConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -426347,21 +437043,21 @@ func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast. return out } -var integrationEdgeImplementors = []string{"IntegrationEdge"} +var mappableDomainEdgeImplementors = []string{"MappableDomainEdge"} -func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationEdgeImplementors) +func (ec *executionContext) _MappableDomainEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomainEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationEdge") + out.Values[i] = graphql.MarshalString("MappableDomainEdge") case "node": - out.Values[i] = ec._IntegrationEdge_node(ctx, field, obj) + out.Values[i] = ec._MappableDomainEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._IntegrationEdge_cursor(ctx, field, obj) + out.Values[i] = ec._MappableDomainEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -426388,104 +437084,51 @@ func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.Select return out } -var internalPolicyImplementors = []string{"InternalPolicy", "Node"} +var mappedControlImplementors = []string{"MappedControl", "Node"} -func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicy) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyImplementors) +func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControl) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicy") + out.Values[i] = graphql.MarshalString("MappedControl") case "id": - out.Values[i] = ec._InternalPolicy_id(ctx, field, obj) + out.Values[i] = ec._MappedControl_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._InternalPolicy_createdAt(ctx, field, obj) + out.Values[i] = ec._MappedControl_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._InternalPolicy_updatedAt(ctx, field, obj) + out.Values[i] = ec._MappedControl_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._InternalPolicy_createdBy(ctx, field, obj) + out.Values[i] = ec._MappedControl_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._InternalPolicy_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._InternalPolicy_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._MappedControl_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._InternalPolicy_tags(ctx, field, obj) - case "revision": - out.Values[i] = ec._InternalPolicy_revision(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._InternalPolicy_ownerID(ctx, field, obj) + out.Values[i] = ec._MappedControl_tags(ctx, field, obj) case "systemOwned": - out.Values[i] = ec._InternalPolicy_systemOwned(ctx, field, obj) + out.Values[i] = ec._MappedControl_systemOwned(ctx, field, obj) case "internalNotes": - out.Values[i] = ec._InternalPolicy_internalNotes(ctx, field, obj) + out.Values[i] = ec._MappedControl_internalNotes(ctx, field, obj) case "systemInternalID": - out.Values[i] = ec._InternalPolicy_systemInternalID(ctx, field, obj) - case "name": - out.Values[i] = ec._InternalPolicy_name(ctx, field, obj) + out.Values[i] = ec._MappedControl_systemInternalID(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._MappedControl_ownerID(ctx, field, obj) + case "mappingType": + out.Values[i] = ec._MappedControl_mappingType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "status": - out.Values[i] = ec._InternalPolicy_status(ctx, field, obj) - case "managementMode": - out.Values[i] = ec._InternalPolicy_managementMode(ctx, field, obj) - case "details": - out.Values[i] = ec._InternalPolicy_details(ctx, field, obj) - case "detailsJSON": - out.Values[i] = ec._InternalPolicy_detailsJSON(ctx, field, obj) - case "approvalRequired": - out.Values[i] = ec._InternalPolicy_approvalRequired(ctx, field, obj) - case "reviewDue": - out.Values[i] = ec._InternalPolicy_reviewDue(ctx, field, obj) - case "reviewFrequency": - out.Values[i] = ec._InternalPolicy_reviewFrequency(ctx, field, obj) - case "approverID": - out.Values[i] = ec._InternalPolicy_approverID(ctx, field, obj) - case "delegateID": - out.Values[i] = ec._InternalPolicy_delegateID(ctx, field, obj) - case "summary": - out.Values[i] = ec._InternalPolicy_summary(ctx, field, obj) - case "tagSuggestions": - out.Values[i] = ec._InternalPolicy_tagSuggestions(ctx, field, obj) - case "dismissedTagSuggestions": - out.Values[i] = ec._InternalPolicy_dismissedTagSuggestions(ctx, field, obj) - case "controlSuggestions": - out.Values[i] = ec._InternalPolicy_controlSuggestions(ctx, field, obj) - case "dismissedControlSuggestions": - out.Values[i] = ec._InternalPolicy_dismissedControlSuggestions(ctx, field, obj) - case "improvementSuggestions": - out.Values[i] = ec._InternalPolicy_improvementSuggestions(ctx, field, obj) - case "dismissedImprovementSuggestions": - out.Values[i] = ec._InternalPolicy_dismissedImprovementSuggestions(ctx, field, obj) - case "url": - out.Values[i] = ec._InternalPolicy_url(ctx, field, obj) - case "fileID": - out.Values[i] = ec._InternalPolicy_fileID(ctx, field, obj) - case "internalPolicyKindName": - out.Values[i] = ec._InternalPolicy_internalPolicyKindName(ctx, field, obj) - case "internalPolicyKindID": - out.Values[i] = ec._InternalPolicy_internalPolicyKindID(ctx, field, obj) - case "environmentName": - out.Values[i] = ec._InternalPolicy_environmentName(ctx, field, obj) - case "environmentID": - out.Values[i] = ec._InternalPolicy_environmentID(ctx, field, obj) - case "scopeName": - out.Values[i] = ec._InternalPolicy_scopeName(ctx, field, obj) - case "scopeID": - out.Values[i] = ec._InternalPolicy_scopeID(ctx, field, obj) - case "workflowEligibleMarker": - out.Values[i] = ec._InternalPolicy_workflowEligibleMarker(ctx, field, obj) - case "externalUUID": - out.Values[i] = ec._InternalPolicy_externalUUID(ctx, field, obj) + case "relation": + out.Values[i] = ec._MappedControl_relation(ctx, field, obj) + case "confidence": + out.Values[i] = ec._MappedControl_confidence(ctx, field, obj) + case "source": + out.Values[i] = ec._MappedControl_source(ctx, field, obj) case "owner": field := field @@ -426495,7 +437138,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_owner(ctx, field, obj) + res = ec._MappedControl_owner(ctx, field, obj) return res } @@ -426528,7 +437171,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_blockedGroups(ctx, field, obj) + res = ec._MappedControl_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426564,7 +437207,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_editors(ctx, field, obj) + res = ec._MappedControl_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426591,16 +437234,19 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "approver": + case "fromControls": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_approver(ctx, field, obj) + res = ec._MappedControl_fromControls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -426624,16 +437270,19 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "delegate": + case "toControls": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_delegate(ctx, field, obj) + res = ec._MappedControl_toControls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -426657,16 +437306,19 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicyKind": + case "fromSubcontrols": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_internalPolicyKind(ctx, field, obj) + res = ec._MappedControl_fromSubcontrols(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -426690,16 +437342,19 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "environment": + case "toSubcontrols": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_environment(ctx, field, obj) + res = ec._MappedControl_toSubcontrols(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -426723,88 +437378,174 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scope": - field := field + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - 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._InternalPolicy_scope(ctx, field, obj) - return res - } + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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) - }) + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return out +} + +var mappedControlConnectionImplementors = []string{"MappedControlConnection"} + +func (ec *executionContext) _MappedControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControlConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MappedControlConnection") + case "edges": + out.Values[i] = ec._MappedControlConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._MappedControlConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._MappedControlConnection_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 + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectives": - field := field + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - 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._InternalPolicy_controlObjectives(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + for label, dfs := range deferred { + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mappedControlEdgeImplementors = []string{"MappedControlEdge"} + +func (ec *executionContext) _MappedControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControlEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MappedControlEdge") + case "node": + out.Values[i] = ec._MappedControlEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._MappedControlEdge_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 + } - 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) - }) + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Narrative") + case "id": + out.Values[i] = ec._Narrative_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Narrative_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Narrative_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Narrative_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Narrative_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Narrative_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._Narrative_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Narrative_ownerID(ctx, field, obj) + case "systemOwned": + out.Values[i] = ec._Narrative_systemOwned(ctx, field, obj) + case "internalNotes": + out.Values[i] = ec._Narrative_internalNotes(ctx, field, obj) + case "systemInternalID": + out.Values[i] = ec._Narrative_systemInternalID(ctx, field, obj) + case "name": + out.Values[i] = ec._Narrative_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementations": + case "description": + out.Values[i] = ec._Narrative_description(ctx, field, obj) + case "details": + out.Values[i] = ec._Narrative_details(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_controlImplementations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Narrative_owner(ctx, field, obj) return res } @@ -426828,7 +437569,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426837,7 +437578,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_controls(ctx, field, obj) + res = ec._Narrative_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426864,7 +437605,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrols": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426873,7 +437614,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_subcontrols(ctx, field, obj) + res = ec._Narrative_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426900,7 +437641,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedures": + case "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426909,7 +437650,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_procedures(ctx, field, obj) + res = ec._Narrative_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426936,7 +437677,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narratives": + case "satisfies": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426945,7 +437686,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_narratives(ctx, field, obj) + res = ec._Narrative_satisfies(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -426972,7 +437713,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": + case "programs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -426981,7 +437722,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_tasks(ctx, field, obj) + res = ec._Narrative_programs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -427008,7 +437749,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "internalPolicies": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -427017,7 +437758,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_risks(ctx, field, obj) + res = ec._Narrative_internalPolicies(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -427044,7 +437785,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "procedures": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -427053,7 +437794,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_programs(ctx, field, obj) + res = ec._Narrative_procedures(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -427080,7 +437821,168 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "file": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeConnection") + case "edges": + out.Values[i] = ec._NarrativeConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._NarrativeConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._NarrativeConnection_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeEdge") + case "node": + out.Values[i] = ec._NarrativeEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._NarrativeEdge_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(min(len(deferred), math.MaxInt32))) + + 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 { + fields := graphql.CollectFields(ec.OperationContext, sel, noteImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Note") + case "id": + out.Values[i] = ec._Note_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Note_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Note_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Note_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Note_updatedBy(ctx, field, obj) + case "displayID": + out.Values[i] = ec._Note_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "ownerID": + out.Values[i] = ec._Note_ownerID(ctx, field, obj) + case "title": + out.Values[i] = ec._Note_title(ctx, field, obj) + case "text": + out.Values[i] = ec._Note_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "textJSON": + out.Values[i] = ec._Note_textJSON(ctx, field, obj) + case "noteRef": + out.Values[i] = ec._Note_noteRef(ctx, field, obj) + case "discussionID": + out.Values[i] = ec._Note_discussionID(ctx, field, obj) + case "isEdited": + out.Values[i] = ec._Note_isEdited(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "trustCenterID": + out.Values[i] = ec._Note_trustCenterID(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -427089,7 +437991,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_file(ctx, field, obj) + res = ec._Note_owner(ctx, field, obj) return res } @@ -427113,19 +438015,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "comments": + case "task": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_comments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_task(ctx, field, obj) return res } @@ -427149,19 +438048,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussions": + case "control": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_discussions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_control(ctx, field, obj) return res } @@ -427185,19 +438081,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowObjectRefs": + case "subcontrol": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_workflowObjectRefs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_subcontrol(ctx, field, obj) return res } @@ -427221,19 +438114,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": + case "procedure": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_assets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_procedure(ctx, field, obj) return res } @@ -427257,19 +438147,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "risk": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_entities(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_risk(ctx, field, obj) return res } @@ -427293,19 +438180,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolders": + case "internalPolicy": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_identityHolders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_internalPolicy(ctx, field, obj) return res } @@ -427329,19 +438213,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reviews": + case "evidence": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_reviews(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_evidence(ctx, field, obj) return res } @@ -427365,19 +438246,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasPendingWorkflow": + case "trustCenter": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_hasPendingWorkflow(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_trustCenter(ctx, field, obj) return res } @@ -427401,19 +438279,16 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasWorkflowHistory": + case "discussion": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._InternalPolicy_hasWorkflowHistory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Note_discussion(ctx, field, obj) return res } @@ -427437,7 +438312,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeWorkflowInstances": + case "trustCenterFaqs": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -427446,7 +438321,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_activeWorkflowInstances(ctx, field, obj) + res = ec._Note_trustCenterFaqs(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -427473,7 +438348,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowTimeline": + case "files": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -427482,7 +438357,7 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._InternalPolicy_workflowTimeline(ctx, field, obj) + res = ec._Note_files(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -427532,26 +438407,26 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti return out } -var internalPolicyConnectionImplementors = []string{"InternalPolicyConnection"} +var noteConnectionImplementors = []string{"NoteConnection"} -func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyConnectionImplementors) +func (ec *executionContext) _NoteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyConnection") + out.Values[i] = graphql.MarshalString("NoteConnection") case "edges": - out.Values[i] = ec._InternalPolicyConnection_edges(ctx, field, obj) + out.Values[i] = ec._NoteConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._InternalPolicyConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NoteConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._InternalPolicyConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NoteConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -427578,21 +438453,21 @@ func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel a return out } -var internalPolicyEdgeImplementors = []string{"InternalPolicyEdge"} +var noteEdgeImplementors = []string{"NoteEdge"} -func (ec *executionContext) _InternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyEdgeImplementors) +func (ec *executionContext) _NoteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyEdge") + out.Values[i] = graphql.MarshalString("NoteEdge") case "node": - out.Values[i] = ec._InternalPolicyEdge_node(ctx, field, obj) + out.Values[i] = ec._NoteEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._InternalPolicyEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NoteEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -427619,59 +438494,63 @@ func (ec *executionContext) _InternalPolicyEdge(ctx context.Context, sel ast.Sel return out } -var inviteImplementors = []string{"Invite", "Node"} +var notificationImplementors = []string{"Notification", "Node"} -func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, obj *generated.Invite) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteImplementors) +func (ec *executionContext) _Notification(ctx context.Context, sel ast.SelectionSet, obj *generated.Notification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Invite") + out.Values[i] = graphql.MarshalString("Notification") case "id": - out.Values[i] = ec._Invite_id(ctx, field, obj) + out.Values[i] = ec._Notification_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Invite_createdAt(ctx, field, obj) + out.Values[i] = ec._Notification_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Invite_updatedAt(ctx, field, obj) + out.Values[i] = ec._Notification_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Invite_createdBy(ctx, field, obj) + out.Values[i] = ec._Notification_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Invite_updatedBy(ctx, field, obj) - case "requestorID": - out.Values[i] = ec._Invite_requestorID(ctx, field, obj) + out.Values[i] = ec._Notification_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Notification_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Invite_ownerID(ctx, field, obj) - case "expires": - out.Values[i] = ec._Invite_expires(ctx, field, obj) - case "recipient": - out.Values[i] = ec._Invite_recipient(ctx, field, obj) + out.Values[i] = ec._Notification_ownerID(ctx, field, obj) + case "userID": + out.Values[i] = ec._Notification_userID(ctx, field, obj) + case "notificationType": + out.Values[i] = ec._Notification_notificationType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "status": - out.Values[i] = ec._Invite_status(ctx, field, obj) + case "objectType": + out.Values[i] = ec._Notification_objectType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "role": - out.Values[i] = ec._Invite_role(ctx, field, obj) + case "title": + out.Values[i] = ec._Notification_title(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "sendAttempts": - out.Values[i] = ec._Invite_sendAttempts(ctx, field, obj) + case "body": + out.Values[i] = ec._Notification_body(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "ownershipTransfer": - out.Values[i] = ec._Invite_ownershipTransfer(ctx, field, obj) - case "owner": + case "data": + out.Values[i] = ec._Notification_data(ctx, field, obj) + case "templateID": + out.Values[i] = ec._Notification_templateID(ctx, field, obj) + case "readAt": + out.Values[i] = ec._Notification_readAt(ctx, field, obj) + case "channels": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -427680,7 +438559,7 @@ func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Invite_owner(ctx, field, obj) + res = ec._Notification_channels(ctx, field, obj) return res } @@ -427704,19 +438583,18 @@ func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "topic": + out.Values[i] = ec._Notification_topic(ctx, field, obj) + case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Invite_events(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Notification_owner(ctx, field, obj) return res } @@ -427740,19 +438618,16 @@ func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": + case "notificationTemplate": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._Invite_groups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Notification_notificationTemplate(ctx, field, obj) return res } @@ -427799,26 +438674,26 @@ func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, o return out } -var inviteConnectionImplementors = []string{"InviteConnection"} +var notificationConnectionImplementors = []string{"NotificationConnection"} -func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteConnectionImplementors) +func (ec *executionContext) _NotificationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InviteConnection") + out.Values[i] = graphql.MarshalString("NotificationConnection") case "edges": - out.Values[i] = ec._InviteConnection_edges(ctx, field, obj) + out.Values[i] = ec._NotificationConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._InviteConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NotificationConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._InviteConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NotificationConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -427845,21 +438720,21 @@ func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.Selec return out } -var inviteEdgeImplementors = []string{"InviteEdge"} +var notificationEdgeImplementors = []string{"NotificationEdge"} -func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteEdgeImplementors) +func (ec *executionContext) _NotificationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InviteEdge") + out.Values[i] = graphql.MarshalString("NotificationEdge") case "node": - out.Values[i] = ec._InviteEdge_node(ctx, field, obj) + out.Values[i] = ec._NotificationEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._InviteEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NotificationEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -427886,64 +438761,92 @@ func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSe return out } -var jobResultImplementors = []string{"JobResult", "Node"} +var notificationPreferenceImplementors = []string{"NotificationPreference", "Node"} -func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobResultImplementors) +func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreference) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobResult") + out.Values[i] = graphql.MarshalString("NotificationPreference") case "id": - out.Values[i] = ec._JobResult_id(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._JobResult_createdAt(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._JobResult_updatedAt(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._JobResult_createdBy(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._JobResult_updatedBy(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_updatedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._JobResult_ownerID(ctx, field, obj) - case "scheduledJobID": - out.Values[i] = ec._JobResult_scheduledJobID(ctx, field, obj) + out.Values[i] = ec._NotificationPreference_ownerID(ctx, field, obj) + case "userID": + out.Values[i] = ec._NotificationPreference_userID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "status": - out.Values[i] = ec._JobResult_status(ctx, field, obj) + case "channel": + out.Values[i] = ec._NotificationPreference_channel(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "exitCode": - out.Values[i] = ec._JobResult_exitCode(ctx, field, obj) + case "status": + out.Values[i] = ec._NotificationPreference_status(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "finishedAt": - out.Values[i] = ec._JobResult_finishedAt(ctx, field, obj) + case "provider": + out.Values[i] = ec._NotificationPreference_provider(ctx, field, obj) + case "destination": + out.Values[i] = ec._NotificationPreference_destination(ctx, field, obj) + case "config": + out.Values[i] = ec._NotificationPreference_config(ctx, field, obj) + case "enabled": + out.Values[i] = ec._NotificationPreference_enabled(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "startedAt": - out.Values[i] = ec._JobResult_startedAt(ctx, field, obj) + case "cadence": + out.Values[i] = ec._NotificationPreference_cadence(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "fileID": - out.Values[i] = ec._JobResult_fileID(ctx, field, obj) + case "priority": + out.Values[i] = ec._NotificationPreference_priority(ctx, field, obj) + case "topicPatterns": + out.Values[i] = ec._NotificationPreference_topicPatterns(ctx, field, obj) + case "topicOverrides": + out.Values[i] = ec._NotificationPreference_topicOverrides(ctx, field, obj) + case "templateID": + out.Values[i] = ec._NotificationPreference_templateID(ctx, field, obj) + case "muteUntil": + out.Values[i] = ec._NotificationPreference_muteUntil(ctx, field, obj) + case "quietHoursStart": + out.Values[i] = ec._NotificationPreference_quietHoursStart(ctx, field, obj) + case "quietHoursEnd": + out.Values[i] = ec._NotificationPreference_quietHoursEnd(ctx, field, obj) + case "timezone": + out.Values[i] = ec._NotificationPreference_timezone(ctx, field, obj) + case "isDefault": + out.Values[i] = ec._NotificationPreference_isDefault(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "log": - out.Values[i] = ec._JobResult_log(ctx, field, obj) + case "verifiedAt": + out.Values[i] = ec._NotificationPreference_verifiedAt(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._NotificationPreference_lastUsedAt(ctx, field, obj) + case "lastError": + out.Values[i] = ec._NotificationPreference_lastError(ctx, field, obj) + case "metadata": + out.Values[i] = ec._NotificationPreference_metadata(ctx, field, obj) case "owner": field := field @@ -427953,7 +438856,7 @@ func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobResult_owner(ctx, field, obj) + res = ec._NotificationPreference_owner(ctx, field, obj) return res } @@ -427977,7 +438880,7 @@ func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scheduledJob": + case "user": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -427986,7 +438889,7 @@ func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobResult_scheduledJob(ctx, field, obj) + res = ec._NotificationPreference_user(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -428013,19 +438916,16 @@ func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "file": + case "notificationTemplate": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + 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._JobResult_file(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._NotificationPreference_notificationTemplate(ctx, field, obj) return res } @@ -428072,26 +438972,26 @@ func (ec *executionContext) _JobResult(ctx context.Context, sel ast.SelectionSet return out } -var jobResultConnectionImplementors = []string{"JobResultConnection"} +var notificationPreferenceConnectionImplementors = []string{"NotificationPreferenceConnection"} -func (ec *executionContext) _JobResultConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResultConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobResultConnectionImplementors) +func (ec *executionContext) _NotificationPreferenceConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreferenceConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobResultConnection") + out.Values[i] = graphql.MarshalString("NotificationPreferenceConnection") case "edges": - out.Values[i] = ec._JobResultConnection_edges(ctx, field, obj) + out.Values[i] = ec._NotificationPreferenceConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._JobResultConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NotificationPreferenceConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._JobResultConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NotificationPreferenceConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428118,21 +439018,21 @@ func (ec *executionContext) _JobResultConnection(ctx context.Context, sel ast.Se return out } -var jobResultEdgeImplementors = []string{"JobResultEdge"} +var notificationPreferenceEdgeImplementors = []string{"NotificationPreferenceEdge"} -func (ec *executionContext) _JobResultEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobResultEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobResultEdgeImplementors) +func (ec *executionContext) _NotificationPreferenceEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreferenceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobResultEdge") + out.Values[i] = graphql.MarshalString("NotificationPreferenceEdge") case "node": - out.Values[i] = ec._JobResultEdge_node(ctx, field, obj) + out.Values[i] = ec._NotificationPreferenceEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._JobResultEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NotificationPreferenceEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428159,63 +439059,105 @@ func (ec *executionContext) _JobResultEdge(ctx context.Context, sel ast.Selectio return out } -var jobRunnerImplementors = []string{"JobRunner", "Node"} +var notificationTemplateImplementors = []string{"NotificationTemplate", "Node"} -func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunner) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerImplementors) +func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplate) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobRunner") + out.Values[i] = graphql.MarshalString("NotificationTemplate") case "id": - out.Values[i] = ec._JobRunner_id(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._JobRunner_createdAt(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._JobRunner_updatedAt(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._JobRunner_createdBy(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._JobRunner_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._JobRunner_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._JobRunner_tags(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_updatedBy(ctx, field, obj) + case "revision": + out.Values[i] = ec._NotificationTemplate_revision(ctx, field, obj) case "ownerID": - out.Values[i] = ec._JobRunner_ownerID(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_ownerID(ctx, field, obj) case "systemOwned": - out.Values[i] = ec._JobRunner_systemOwned(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_systemOwned(ctx, field, obj) case "internalNotes": - out.Values[i] = ec._JobRunner_internalNotes(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_internalNotes(ctx, field, obj) case "systemInternalID": - out.Values[i] = ec._JobRunner_systemInternalID(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_systemInternalID(ctx, field, obj) + case "key": + out.Values[i] = ec._NotificationTemplate_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "name": - out.Values[i] = ec._JobRunner_name(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "status": - out.Values[i] = ec._JobRunner_status(ctx, field, obj) + case "description": + out.Values[i] = ec._NotificationTemplate_description(ctx, field, obj) + case "channel": + out.Values[i] = ec._NotificationTemplate_channel(ctx, field, obj) + case "format": + out.Values[i] = ec._NotificationTemplate_format(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "locale": + out.Values[i] = ec._NotificationTemplate_locale(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "topicPattern": + out.Values[i] = ec._NotificationTemplate_topicPattern(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "integrationID": + out.Values[i] = ec._NotificationTemplate_integrationID(ctx, field, obj) + case "destinations": + out.Values[i] = ec._NotificationTemplate_destinations(ctx, field, obj) + case "workflowDefinitionID": + out.Values[i] = ec._NotificationTemplate_workflowDefinitionID(ctx, field, obj) + case "emailTemplateID": + out.Values[i] = ec._NotificationTemplate_emailTemplateID(ctx, field, obj) + case "titleTemplate": + out.Values[i] = ec._NotificationTemplate_titleTemplate(ctx, field, obj) + case "subjectTemplate": + out.Values[i] = ec._NotificationTemplate_subjectTemplate(ctx, field, obj) + case "bodyTemplate": + out.Values[i] = ec._NotificationTemplate_bodyTemplate(ctx, field, obj) + case "blocks": + out.Values[i] = ec._NotificationTemplate_blocks(ctx, field, obj) + case "jsonconfig": + out.Values[i] = ec._NotificationTemplate_jsonconfig(ctx, field, obj) + case "uischema": + out.Values[i] = ec._NotificationTemplate_uischema(ctx, field, obj) + case "metadata": + out.Values[i] = ec._NotificationTemplate_metadata(ctx, field, obj) + case "active": + out.Values[i] = ec._NotificationTemplate_active(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "ipAddress": - out.Values[i] = ec._JobRunner_ipAddress(ctx, field, obj) - case "lastSeen": - out.Values[i] = ec._JobRunner_lastSeen(ctx, field, obj) case "version": - out.Values[i] = ec._JobRunner_version(ctx, field, obj) - case "os": - out.Values[i] = ec._JobRunner_os(ctx, field, obj) + out.Values[i] = ec._NotificationTemplate_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "templateContext": + out.Values[i] = ec._NotificationTemplate_templateContext(ctx, field, obj) + case "defaults": + out.Values[i] = ec._NotificationTemplate_defaults(ctx, field, obj) case "owner": field := field @@ -428225,7 +439167,7 @@ func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobRunner_owner(ctx, field, obj) + res = ec._NotificationTemplate_owner(ctx, field, obj) return res } @@ -428249,7 +439191,106 @@ func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "jobRunnerTokens": + case "integration": + 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._NotificationTemplate_integration(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 "workflowDefinition": + 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._NotificationTemplate_workflowDefinition(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 "emailTemplate": + 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._NotificationTemplate_emailTemplate(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 "notifications": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -428258,7 +439299,7 @@ func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobRunner_jobRunnerTokens(ctx, field, obj) + res = ec._NotificationTemplate_notifications(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -428308,26 +439349,26 @@ func (ec *executionContext) _JobRunner(ctx context.Context, sel ast.SelectionSet return out } -var jobRunnerConnectionImplementors = []string{"JobRunnerConnection"} +var notificationTemplateConnectionImplementors = []string{"NotificationTemplateConnection"} -func (ec *executionContext) _JobRunnerConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerConnectionImplementors) +func (ec *executionContext) _NotificationTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplateConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerConnection") + out.Values[i] = graphql.MarshalString("NotificationTemplateConnection") case "edges": - out.Values[i] = ec._JobRunnerConnection_edges(ctx, field, obj) + out.Values[i] = ec._NotificationTemplateConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._JobRunnerConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NotificationTemplateConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._JobRunnerConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NotificationTemplateConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428354,21 +439395,21 @@ func (ec *executionContext) _JobRunnerConnection(ctx context.Context, sel ast.Se return out } -var jobRunnerEdgeImplementors = []string{"JobRunnerEdge"} +var notificationTemplateEdgeImplementors = []string{"NotificationTemplateEdge"} -func (ec *executionContext) _JobRunnerEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerEdgeImplementors) +func (ec *executionContext) _NotificationTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplateEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerEdge") + out.Values[i] = graphql.MarshalString("NotificationTemplateEdge") case "node": - out.Values[i] = ec._JobRunnerEdge_node(ctx, field, obj) + out.Values[i] = ec._NotificationTemplateEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._JobRunnerEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NotificationTemplateEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428395,82 +439436,40 @@ func (ec *executionContext) _JobRunnerEdge(ctx context.Context, sel ast.Selectio return out } -var jobRunnerRegistrationTokenImplementors = []string{"JobRunnerRegistrationToken", "Node"} +var onboardingImplementors = []string{"Onboarding", "Node"} -func (ec *executionContext) _JobRunnerRegistrationToken(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenImplementors) +func (ec *executionContext) _Onboarding(ctx context.Context, sel ast.SelectionSet, obj *generated.Onboarding) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, onboardingImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerRegistrationToken") + out.Values[i] = graphql.MarshalString("Onboarding") case "id": - out.Values[i] = ec._JobRunnerRegistrationToken_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._JobRunnerRegistrationToken_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._JobRunnerRegistrationToken_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._JobRunnerRegistrationToken_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._JobRunnerRegistrationToken_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._JobRunnerRegistrationToken_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._JobRunnerRegistrationToken_ownerID(ctx, field, obj) - case "token": - out.Values[i] = ec._JobRunnerRegistrationToken_token(ctx, field, obj) + out.Values[i] = ec._Onboarding_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "expiresAt": - out.Values[i] = ec._JobRunnerRegistrationToken_expiresAt(ctx, field, obj) + case "organizationID": + out.Values[i] = ec._Onboarding_organizationID(ctx, field, obj) + case "companyName": + out.Values[i] = ec._Onboarding_companyName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "lastUsedAt": - out.Values[i] = ec._JobRunnerRegistrationToken_lastUsedAt(ctx, field, obj) - case "jobRunnerID": - out.Values[i] = ec._JobRunnerRegistrationToken_jobRunnerID(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._JobRunnerRegistrationToken_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "jobRunner": + case "domains": + out.Values[i] = ec._Onboarding_domains(ctx, field, obj) + case "companyDetails": + out.Values[i] = ec._Onboarding_companyDetails(ctx, field, obj) + case "userDetails": + out.Values[i] = ec._Onboarding_userDetails(ctx, field, obj) + case "compliance": + out.Values[i] = ec._Onboarding_compliance(ctx, field, obj) + case "demoRequested": + out.Values[i] = ec._Onboarding_demoRequested(ctx, field, obj) + case "organization": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -428479,7 +439478,7 @@ func (ec *executionContext) _JobRunnerRegistrationToken(ctx context.Context, sel ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobRunnerRegistrationToken_jobRunner(ctx, field, obj) + res = ec._Onboarding_organization(ctx, field, obj) return res } @@ -428526,148 +439525,94 @@ func (ec *executionContext) _JobRunnerRegistrationToken(ctx context.Context, sel return out } -var jobRunnerRegistrationTokenConnectionImplementors = []string{"JobRunnerRegistrationTokenConnection"} - -func (ec *executionContext) _JobRunnerRegistrationTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationTokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerRegistrationTokenConnection") - case "edges": - out.Values[i] = ec._JobRunnerRegistrationTokenConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._JobRunnerRegistrationTokenConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._JobRunnerRegistrationTokenConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var jobRunnerRegistrationTokenEdgeImplementors = []string{"JobRunnerRegistrationTokenEdge"} - -func (ec *executionContext) _JobRunnerRegistrationTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerRegistrationTokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerRegistrationTokenEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerRegistrationTokenEdge") - case "node": - out.Values[i] = ec._JobRunnerRegistrationTokenEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._JobRunnerRegistrationTokenEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var jobRunnerTokenImplementors = []string{"JobRunnerToken", "Node"} +var orgMembershipImplementors = []string{"OrgMembership", "Node"} -func (ec *executionContext) _JobRunnerToken(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenImplementors) +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("JobRunnerToken") + out.Values[i] = graphql.MarshalString("OrgMembership") case "id": - out.Values[i] = ec._JobRunnerToken_id(ctx, field, obj) + 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._JobRunnerToken_createdAt(ctx, field, obj) + out.Values[i] = ec._OrgMembership_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._JobRunnerToken_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrgMembership_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._JobRunnerToken_createdBy(ctx, field, obj) + out.Values[i] = ec._OrgMembership_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._JobRunnerToken_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._JobRunnerToken_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._JobRunnerToken_ownerID(ctx, field, obj) - case "token": - out.Values[i] = ec._JobRunnerToken_token(ctx, field, obj) + out.Values[i] = ec._OrgMembership_updatedBy(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 "expiresAt": - out.Values[i] = ec._JobRunnerToken_expiresAt(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._JobRunnerToken_lastUsedAt(ctx, field, obj) - case "isActive": - out.Values[i] = ec._JobRunnerToken_isActive(ctx, field, obj) - case "revokedReason": - out.Values[i] = ec._JobRunnerToken_revokedReason(ctx, field, obj) - case "revokedBy": - out.Values[i] = ec._JobRunnerToken_revokedBy(ctx, field, obj) - case "revokedAt": - out.Values[i] = ec._JobRunnerToken_revokedAt(ctx, field, obj) - case "owner": + 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, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._JobRunnerToken_owner(ctx, field, obj) + res = ec._OrgMembership_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -428691,7 +439636,7 @@ func (ec *executionContext) _JobRunnerToken(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "jobRunners": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -428700,7 +439645,7 @@ func (ec *executionContext) _JobRunnerToken(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobRunnerToken_jobRunners(ctx, field, obj) + res = ec._OrgMembership_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -428750,26 +439695,26 @@ func (ec *executionContext) _JobRunnerToken(ctx context.Context, sel ast.Selecti return out } -var jobRunnerTokenConnectionImplementors = []string{"JobRunnerTokenConnection"} +var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} -func (ec *executionContext) _JobRunnerTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerTokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenConnectionImplementors) +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("JobRunnerTokenConnection") + out.Values[i] = graphql.MarshalString("OrgMembershipConnection") case "edges": - out.Values[i] = ec._JobRunnerTokenConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._JobRunnerTokenConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._JobRunnerTokenConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428796,21 +439741,21 @@ func (ec *executionContext) _JobRunnerTokenConnection(ctx context.Context, sel a return out } -var jobRunnerTokenEdgeImplementors = []string{"JobRunnerTokenEdge"} +var orgMembershipEdgeImplementors = []string{"OrgMembershipEdge"} -func (ec *executionContext) _JobRunnerTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobRunnerTokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobRunnerTokenEdgeImplementors) +func (ec *executionContext) _OrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobRunnerTokenEdge") + out.Values[i] = graphql.MarshalString("OrgMembershipEdge") case "node": - out.Values[i] = ec._JobRunnerTokenEdge_node(ctx, field, obj) + out.Values[i] = ec._OrgMembershipEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._JobRunnerTokenEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrgMembershipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -428837,66 +439782,49 @@ func (ec *executionContext) _JobRunnerTokenEdge(ctx context.Context, sel ast.Sel return out } -var jobTemplateImplementors = []string{"JobTemplate", "Node"} +var orgSubscriptionImplementors = []string{"OrgSubscription", "Node"} -func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplate) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateImplementors) +func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscription) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobTemplate") + out.Values[i] = graphql.MarshalString("OrgSubscription") case "id": - out.Values[i] = ec._JobTemplate_id(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._JobTemplate_createdAt(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._JobTemplate_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._JobTemplate_createdBy(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._JobTemplate_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._JobTemplate_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } + out.Values[i] = ec._OrgSubscription_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._JobTemplate_tags(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._JobTemplate_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._JobTemplate_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._JobTemplate_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._JobTemplate_systemInternalID(ctx, field, obj) - case "title": - out.Values[i] = ec._JobTemplate_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._JobTemplate_description(ctx, field, obj) - case "platform": - out.Values[i] = ec._JobTemplate_platform(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "downloadURL": - out.Values[i] = ec._JobTemplate_downloadURL(ctx, field, obj) + out.Values[i] = ec._OrgSubscription_ownerID(ctx, field, obj) + case "stripeSubscriptionID": + out.Values[i] = ec._OrgSubscription_stripeSubscriptionID(ctx, field, obj) + case "stripeSubscriptionStatus": + out.Values[i] = ec._OrgSubscription_stripeSubscriptionStatus(ctx, field, obj) + case "active": + out.Values[i] = ec._OrgSubscription_active(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "configuration": - out.Values[i] = ec._JobTemplate_configuration(ctx, field, obj) - case "cron": - out.Values[i] = ec._JobTemplate_cron(ctx, field, obj) + case "expiresAt": + out.Values[i] = ec._OrgSubscription_expiresAt(ctx, field, obj) + case "trialExpiresAt": + out.Values[i] = ec._OrgSubscription_trialExpiresAt(ctx, field, obj) + case "daysUntilDue": + out.Values[i] = ec._OrgSubscription_daysUntilDue(ctx, field, obj) case "owner": field := field @@ -428906,7 +439834,7 @@ func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobTemplate_owner(ctx, field, obj) + res = ec._OrgSubscription_owner(ctx, field, obj) return res } @@ -428930,7 +439858,7 @@ func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scheduledJobs": + case "events": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -428939,7 +439867,7 @@ func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionS ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._JobTemplate_scheduledJobs(ctx, field, obj) + res = ec._OrgSubscription_events(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -428966,6 +439894,8 @@ func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionS } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "managePaymentMethods": + out.Values[i] = ec._OrgSubscription_managePaymentMethods(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -428989,26 +439919,26 @@ func (ec *executionContext) _JobTemplate(ctx context.Context, sel ast.SelectionS return out } -var jobTemplateConnectionImplementors = []string{"JobTemplateConnection"} +var orgSubscriptionConnectionImplementors = []string{"OrgSubscriptionConnection"} -func (ec *executionContext) _JobTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateConnectionImplementors) +func (ec *executionContext) _OrgSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscriptionConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobTemplateConnection") + out.Values[i] = graphql.MarshalString("OrgSubscriptionConnection") case "edges": - out.Values[i] = ec._JobTemplateConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrgSubscriptionConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._JobTemplateConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrgSubscriptionConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._JobTemplateConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrgSubscriptionConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -429035,21 +439965,21 @@ func (ec *executionContext) _JobTemplateConnection(ctx context.Context, sel ast. return out } -var jobTemplateEdgeImplementors = []string{"JobTemplateEdge"} +var orgSubscriptionEdgeImplementors = []string{"OrgSubscriptionEdge"} -func (ec *executionContext) _JobTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.JobTemplateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, jobTemplateEdgeImplementors) +func (ec *executionContext) _OrgSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscriptionEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("JobTemplateEdge") + out.Values[i] = graphql.MarshalString("OrgSubscriptionEdge") case "node": - out.Values[i] = ec._JobTemplateEdge_node(ctx, field, obj) + out.Values[i] = ec._OrgSubscriptionEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._JobTemplateEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrgSubscriptionEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -429076,43 +440006,60 @@ func (ec *executionContext) _JobTemplateEdge(ctx context.Context, sel ast.Select return out } -var mappableDomainImplementors = []string{"MappableDomain", "Node"} +var organizationImplementors = []string{"Organization", "Node"} -func (ec *executionContext) _MappableDomain(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomain) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainImplementors) +func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *generated.Organization) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("MappableDomain") + out.Values[i] = graphql.MarshalString("Organization") case "id": - out.Values[i] = ec._MappableDomain_id(ctx, field, obj) + out.Values[i] = ec._Organization_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._MappableDomain_createdAt(ctx, field, obj) + out.Values[i] = ec._Organization_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._MappableDomain_updatedAt(ctx, field, obj) + out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._MappableDomain_createdBy(ctx, field, obj) + out.Values[i] = ec._Organization_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._MappableDomain_updatedBy(ctx, field, obj) + out.Values[i] = ec._Organization_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._MappableDomain_tags(ctx, field, obj) + out.Values[i] = ec._Organization_tags(ctx, field, obj) case "name": - out.Values[i] = ec._MappableDomain_name(ctx, field, obj) + out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "zoneID": - out.Values[i] = ec._MappableDomain_zoneID(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Organization_displayName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "customDomains": + case "description": + out.Values[i] = ec._Organization_description(ctx, field, obj) + case "personalOrg": + out.Values[i] = ec._Organization_personalOrg(ctx, field, obj) + case "avatarRemoteURL": + out.Values[i] = ec._Organization_avatarRemoteURL(ctx, field, obj) + case "avatarLocalFileID": + out.Values[i] = ec._Organization_avatarLocalFileID(ctx, field, obj) + case "avatarUpdatedAt": + out.Values[i] = ec._Organization_avatarUpdatedAt(ctx, field, obj) + case "dedicatedDb": + out.Values[i] = ec._Organization_dedicatedDb(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "stripeCustomerID": + out.Values[i] = ec._Organization_stripeCustomerID(ctx, field, obj) + case "actionPlanCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429121,7 +440068,7 @@ func (ec *executionContext) _MappableDomain(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappableDomain_customDomains(ctx, field, obj) + res = ec._Organization_actionPlanCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429148,171 +440095,19 @@ func (ec *executionContext) _MappableDomain(ctx context.Context, sel ast.Selecti } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mappableDomainConnectionImplementors = []string{"MappableDomainConnection"} - -func (ec *executionContext) _MappableDomainConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomainConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MappableDomainConnection") - case "edges": - out.Values[i] = ec._MappableDomainConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._MappableDomainConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._MappableDomainConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mappableDomainEdgeImplementors = []string{"MappableDomainEdge"} - -func (ec *executionContext) _MappableDomainEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.MappableDomainEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappableDomainEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MappableDomainEdge") - case "node": - out.Values[i] = ec._MappableDomainEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._MappableDomainEdge_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mappedControlImplementors = []string{"MappedControl", "Node"} - -func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControl) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MappedControl") - case "id": - out.Values[i] = ec._MappedControl_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._MappedControl_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._MappedControl_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._MappedControl_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._MappedControl_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._MappedControl_tags(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._MappedControl_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._MappedControl_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._MappedControl_systemInternalID(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._MappedControl_ownerID(ctx, field, obj) - case "mappingType": - out.Values[i] = ec._MappedControl_mappingType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "relation": - out.Values[i] = ec._MappedControl_relation(ctx, field, obj) - case "confidence": - out.Values[i] = ec._MappedControl_confidence(ctx, field, obj) - case "source": - out.Values[i] = ec._MappedControl_source(ctx, field, obj) - case "owner": + case "apiTokenCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._MappedControl_owner(ctx, field, obj) + res = ec._Organization_apiTokenCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -429336,7 +440131,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "assessmentCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429345,7 +440140,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_blockedGroups(ctx, field, obj) + res = ec._Organization_assessmentCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429372,7 +440167,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "assetCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429381,7 +440176,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_editors(ctx, field, obj) + res = ec._Organization_assetCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429408,7 +440203,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fromControls": + case "campaignCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429417,7 +440212,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_fromControls(ctx, field, obj) + res = ec._Organization_campaignCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429444,7 +440239,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "toControls": + case "campaignTargetCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429453,7 +440248,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_toControls(ctx, field, obj) + res = ec._Organization_campaignTargetCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429480,7 +440275,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fromSubcontrols": + case "checkResultCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429489,7 +440284,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_fromSubcontrols(ctx, field, obj) + res = ec._Organization_checkResultCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429516,7 +440311,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "toSubcontrols": + case "contactCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429525,7 +440320,7 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._MappedControl_toSubcontrols(ctx, field, obj) + res = ec._Organization_contactCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429552,174 +440347,55 @@ func (ec *executionContext) _MappedControl(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mappedControlConnectionImplementors = []string{"MappedControlConnection"} - -func (ec *executionContext) _MappedControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControlConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlConnectionImplementors) + case "controlCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MappedControlConnection") - case "edges": - out.Values[i] = ec._MappedControlConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._MappedControlConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._MappedControlConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_controlCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mappedControlEdgeImplementors = []string{"MappedControlEdge"} -func (ec *executionContext) _MappedControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.MappedControlEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mappedControlEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MappedControlEdge") - case "node": - out.Values[i] = ec._MappedControlEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._MappedControlEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Narrative") - case "id": - out.Values[i] = ec._Narrative_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Narrative_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Narrative_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Narrative_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Narrative_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._Narrative_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tags": - out.Values[i] = ec._Narrative_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Narrative_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._Narrative_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._Narrative_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._Narrative_systemInternalID(ctx, field, obj) - case "name": - out.Values[i] = ec._Narrative_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Narrative_description(ctx, field, obj) - case "details": - out.Values[i] = ec._Narrative_details(ctx, field, obj) - case "owner": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controlImplementationCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Narrative_owner(ctx, field, obj) + res = ec._Organization_controlImplementationCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -429743,7 +440419,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "blockedGroups": + case "controlObjectiveCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429752,7 +440428,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_blockedGroups(ctx, field, obj) + res = ec._Organization_controlObjectiveCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429779,7 +440455,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "editors": + case "customTypeEnumCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429788,7 +440464,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_editors(ctx, field, obj) + res = ec._Organization_customTypeEnumCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429815,7 +440491,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewers": + case "discussionCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429824,7 +440500,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_viewers(ctx, field, obj) + res = ec._Organization_discussionCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429851,7 +440527,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "satisfies": + case "emailTemplateCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429860,7 +440536,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_satisfies(ctx, field, obj) + res = ec._Organization_emailTemplateCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429887,7 +440563,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programs": + case "entityCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429896,7 +440572,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_programs(ctx, field, obj) + res = ec._Organization_entityCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429923,7 +440599,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicies": + case "entityTypeCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429932,7 +440608,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_internalPolicies(ctx, field, obj) + res = ec._Organization_entityTypeCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429959,7 +440635,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedures": + case "evidenceCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -429968,7 +440644,7 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Narrative_procedures(ctx, field, obj) + res = ec._Organization_evidenceCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -429995,177 +440671,55 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeConnectionImplementors) + case "exportCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeConnection") - case "edges": - out.Values[i] = ec._NarrativeConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NarrativeConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NarrativeConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_exportCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeEdge") - case "node": - out.Values[i] = ec._NarrativeEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NarrativeEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, noteImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Note") - case "id": - out.Values[i] = ec._Note_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Note_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Note_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Note_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Note_updatedBy(ctx, field, obj) - case "displayID": - out.Values[i] = ec._Note_displayID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ownerID": - out.Values[i] = ec._Note_ownerID(ctx, field, obj) - case "title": - out.Values[i] = ec._Note_title(ctx, field, obj) - case "text": - out.Values[i] = ec._Note_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "textJSON": - out.Values[i] = ec._Note_textJSON(ctx, field, obj) - case "noteRef": - out.Values[i] = ec._Note_noteRef(ctx, field, obj) - case "discussionID": - out.Values[i] = ec._Note_discussionID(ctx, field, obj) - case "isEdited": - out.Values[i] = ec._Note_isEdited(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "trustCenterID": - out.Values[i] = ec._Note_trustCenterID(ctx, field, obj) - case "owner": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "fileCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_owner(ctx, field, obj) + res = ec._Organization_fileCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430189,16 +440743,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "task": + case "findingCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_task(ctx, field, obj) + res = ec._Organization_findingCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430222,16 +440779,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "control": + case "groupCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_control(ctx, field, obj) + res = ec._Organization_groupCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430255,16 +440815,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subcontrol": + case "identityHolderCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_subcontrol(ctx, field, obj) + res = ec._Organization_identityHolderCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430288,16 +440851,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedure": + case "integrationCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_procedure(ctx, field, obj) + res = ec._Organization_integrationCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430321,16 +440887,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risk": + case "integrationWebhookCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_risk(ctx, field, obj) + res = ec._Organization_integrationWebhookCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430354,16 +440923,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicy": + case "internalPolicyCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_internalPolicy(ctx, field, obj) + res = ec._Organization_internalPolicyCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430387,16 +440959,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidence": + case "jobRunnerCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_evidence(ctx, field, obj) + res = ec._Organization_jobRunnerCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430420,16 +440995,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenter": + case "jobRunnerRegistrationTokenCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_trustCenter(ctx, field, obj) + res = ec._Organization_jobRunnerRegistrationTokenCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430453,16 +441031,19 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussion": + case "jobRunnerTokenCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Note_discussion(ctx, field, obj) + res = ec._Organization_jobRunnerTokenCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430486,7 +441067,7 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterFaqs": + case "jobTemplateCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -430495,7 +441076,7 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Note_trustCenterFaqs(ctx, field, obj) + res = ec._Organization_jobTemplateCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -430522,7 +441103,7 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "mappedControlCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -430531,7 +441112,7 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Note_files(ctx, field, obj) + res = ec._Organization_mappedControlCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -430558,182 +441139,55 @@ func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var noteConnectionImplementors = []string{"NoteConnection"} - -func (ec *executionContext) _NoteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteConnection") - case "edges": - out.Values[i] = ec._NoteConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NoteConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NoteConnection_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(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var noteEdgeImplementors = []string{"NoteEdge"} - -func (ec *executionContext) _NoteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteEdgeImplementors) + case "narrativeCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteEdge") - case "node": - out.Values[i] = ec._NoteEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NoteEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_narrativeCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationImplementors = []string{"Notification", "Node"} - -func (ec *executionContext) _Notification(ctx context.Context, sel ast.SelectionSet, obj *generated.Notification) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Notification") - case "id": - out.Values[i] = ec._Notification_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Notification_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Notification_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Notification_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Notification_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Notification_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Notification_ownerID(ctx, field, obj) - case "userID": - out.Values[i] = ec._Notification_userID(ctx, field, obj) - case "notificationType": - out.Values[i] = ec._Notification_notificationType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "objectType": - out.Values[i] = ec._Notification_objectType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._Notification_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "body": - out.Values[i] = ec._Notification_body(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + 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 } - case "data": - out.Values[i] = ec._Notification_data(ctx, field, obj) - case "templateID": - out.Values[i] = ec._Notification_templateID(ctx, field, obj) - case "readAt": - out.Values[i] = ec._Notification_readAt(ctx, field, obj) - case "channels": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "noteCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Notification_channels(ctx, field, obj) + res = ec._Organization_noteCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430757,18 +441211,19 @@ func (ec *executionContext) _Notification(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "topic": - out.Values[i] = ec._Notification_topic(ctx, field, obj) - case "owner": + case "notificationTemplateCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Notification_owner(ctx, field, obj) + res = ec._Organization_notificationTemplateCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430792,16 +441247,19 @@ func (ec *executionContext) _Notification(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notificationTemplate": + case "organizationCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Notification_notificationTemplate(ctx, field, obj) + res = ec._Organization_organizationCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -430825,212 +441283,55 @@ func (ec *executionContext) _Notification(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationConnectionImplementors = []string{"NotificationConnection"} - -func (ec *executionContext) _NotificationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationConnectionImplementors) + case "platformCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationConnection") - case "edges": - out.Values[i] = ec._NotificationConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NotificationConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NotificationConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_platformCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationEdgeImplementors = []string{"NotificationEdge"} -func (ec *executionContext) _NotificationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationEdge") - case "node": - out.Values[i] = ec._NotificationEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NotificationEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} -var notificationPreferenceImplementors = []string{"NotificationPreference", "Node"} - -func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreference) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationPreference") - case "id": - out.Values[i] = ec._NotificationPreference_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._NotificationPreference_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._NotificationPreference_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._NotificationPreference_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._NotificationPreference_updatedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._NotificationPreference_ownerID(ctx, field, obj) - case "userID": - out.Values[i] = ec._NotificationPreference_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "channel": - out.Values[i] = ec._NotificationPreference_channel(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._NotificationPreference_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "provider": - out.Values[i] = ec._NotificationPreference_provider(ctx, field, obj) - case "destination": - out.Values[i] = ec._NotificationPreference_destination(ctx, field, obj) - case "config": - out.Values[i] = ec._NotificationPreference_config(ctx, field, obj) - case "enabled": - out.Values[i] = ec._NotificationPreference_enabled(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "cadence": - out.Values[i] = ec._NotificationPreference_cadence(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "priority": - out.Values[i] = ec._NotificationPreference_priority(ctx, field, obj) - case "topicPatterns": - out.Values[i] = ec._NotificationPreference_topicPatterns(ctx, field, obj) - case "topicOverrides": - out.Values[i] = ec._NotificationPreference_topicOverrides(ctx, field, obj) - case "templateID": - out.Values[i] = ec._NotificationPreference_templateID(ctx, field, obj) - case "muteUntil": - out.Values[i] = ec._NotificationPreference_muteUntil(ctx, field, obj) - case "quietHoursStart": - out.Values[i] = ec._NotificationPreference_quietHoursStart(ctx, field, obj) - case "quietHoursEnd": - out.Values[i] = ec._NotificationPreference_quietHoursEnd(ctx, field, obj) - case "timezone": - out.Values[i] = ec._NotificationPreference_timezone(ctx, field, obj) - case "isDefault": - out.Values[i] = ec._NotificationPreference_isDefault(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "verifiedAt": - out.Values[i] = ec._NotificationPreference_verifiedAt(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._NotificationPreference_lastUsedAt(ctx, field, obj) - case "lastError": - out.Values[i] = ec._NotificationPreference_lastError(ctx, field, obj) - case "metadata": - out.Values[i] = ec._NotificationPreference_metadata(ctx, field, obj) - case "owner": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "procedureCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationPreference_owner(ctx, field, obj) + res = ec._Organization_procedureCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431054,7 +441355,7 @@ func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "programCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -431063,7 +441364,7 @@ func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._NotificationPreference_user(ctx, field, obj) + res = ec._Organization_programCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -431090,16 +441391,19 @@ func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notificationTemplate": + case "remediationCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationPreference_notificationTemplate(ctx, field, obj) + res = ec._Organization_remediationCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431123,225 +441427,55 @@ func (ec *executionContext) _NotificationPreference(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationPreferenceConnectionImplementors = []string{"NotificationPreferenceConnection"} - -func (ec *executionContext) _NotificationPreferenceConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreferenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceConnectionImplementors) + case "reviewCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationPreferenceConnection") - case "edges": - out.Values[i] = ec._NotificationPreferenceConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NotificationPreferenceConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NotificationPreferenceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_reviewCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} -var notificationPreferenceEdgeImplementors = []string{"NotificationPreferenceEdge"} - -func (ec *executionContext) _NotificationPreferenceEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationPreferenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationPreferenceEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationPreferenceEdge") - case "node": - out.Values[i] = ec._NotificationPreferenceEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NotificationPreferenceEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationTemplateImplementors = []string{"NotificationTemplate", "Node"} -func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplate) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationTemplate") - case "id": - out.Values[i] = ec._NotificationTemplate_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._NotificationTemplate_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._NotificationTemplate_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._NotificationTemplate_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._NotificationTemplate_updatedBy(ctx, field, obj) - case "revision": - out.Values[i] = ec._NotificationTemplate_revision(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._NotificationTemplate_ownerID(ctx, field, obj) - case "systemOwned": - out.Values[i] = ec._NotificationTemplate_systemOwned(ctx, field, obj) - case "internalNotes": - out.Values[i] = ec._NotificationTemplate_internalNotes(ctx, field, obj) - case "systemInternalID": - out.Values[i] = ec._NotificationTemplate_systemInternalID(ctx, field, obj) - case "key": - out.Values[i] = ec._NotificationTemplate_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._NotificationTemplate_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._NotificationTemplate_description(ctx, field, obj) - case "channel": - out.Values[i] = ec._NotificationTemplate_channel(ctx, field, obj) - case "format": - out.Values[i] = ec._NotificationTemplate_format(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "locale": - out.Values[i] = ec._NotificationTemplate_locale(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "topicPattern": - out.Values[i] = ec._NotificationTemplate_topicPattern(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "integrationID": - out.Values[i] = ec._NotificationTemplate_integrationID(ctx, field, obj) - case "destinations": - out.Values[i] = ec._NotificationTemplate_destinations(ctx, field, obj) - case "workflowDefinitionID": - out.Values[i] = ec._NotificationTemplate_workflowDefinitionID(ctx, field, obj) - case "emailTemplateID": - out.Values[i] = ec._NotificationTemplate_emailTemplateID(ctx, field, obj) - case "titleTemplate": - out.Values[i] = ec._NotificationTemplate_titleTemplate(ctx, field, obj) - case "subjectTemplate": - out.Values[i] = ec._NotificationTemplate_subjectTemplate(ctx, field, obj) - case "bodyTemplate": - out.Values[i] = ec._NotificationTemplate_bodyTemplate(ctx, field, obj) - case "blocks": - out.Values[i] = ec._NotificationTemplate_blocks(ctx, field, obj) - case "jsonconfig": - out.Values[i] = ec._NotificationTemplate_jsonconfig(ctx, field, obj) - case "uischema": - out.Values[i] = ec._NotificationTemplate_uischema(ctx, field, obj) - case "metadata": - out.Values[i] = ec._NotificationTemplate_metadata(ctx, field, obj) - case "active": - out.Values[i] = ec._NotificationTemplate_active(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "version": - out.Values[i] = ec._NotificationTemplate_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "templateContext": - out.Values[i] = ec._NotificationTemplate_templateContext(ctx, field, obj) - case "defaults": - out.Values[i] = ec._NotificationTemplate_defaults(ctx, field, obj) - case "owner": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "riskCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationTemplate_owner(ctx, field, obj) + res = ec._Organization_riskCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431365,16 +441499,19 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": + case "scanCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationTemplate_integration(ctx, field, obj) + res = ec._Organization_scanCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431398,16 +441535,19 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "workflowDefinition": + case "scheduledJobCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationTemplate_workflowDefinition(ctx, field, obj) + res = ec._Organization_scheduledJobCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431431,16 +441571,19 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "emailTemplate": + case "scheduledJobRunCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._NotificationTemplate_emailTemplate(ctx, field, obj) + res = ec._Organization_scheduledJobRunCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431464,7 +441607,7 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notifications": + case "standardCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -431473,7 +441616,7 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._NotificationTemplate_notifications(ctx, field, obj) + res = ec._Organization_standardCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -431500,159 +441643,55 @@ func (ec *executionContext) _NotificationTemplate(ctx context.Context, sel ast.S } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var notificationTemplateConnectionImplementors = []string{"NotificationTemplateConnection"} - -func (ec *executionContext) _NotificationTemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateConnectionImplementors) + case "subcontrolCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationTemplateConnection") - case "edges": - out.Values[i] = ec._NotificationTemplateConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NotificationTemplateConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NotificationTemplateConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_subcontrolCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out -} - -var notificationTemplateEdgeImplementors = []string{"NotificationTemplateEdge"} - -func (ec *executionContext) _NotificationTemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NotificationTemplateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, notificationTemplateEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NotificationTemplateEdge") - case "node": - out.Values[i] = ec._NotificationTemplateEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NotificationTemplateEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var onboardingImplementors = []string{"Onboarding", "Node"} - -func (ec *executionContext) _Onboarding(ctx context.Context, sel ast.SelectionSet, obj *generated.Onboarding) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, onboardingImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Onboarding") - case "id": - out.Values[i] = ec._Onboarding_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organizationID": - out.Values[i] = ec._Onboarding_organizationID(ctx, field, obj) - case "companyName": - out.Values[i] = ec._Onboarding_companyName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "domains": - out.Values[i] = ec._Onboarding_domains(ctx, field, obj) - case "companyDetails": - out.Values[i] = ec._Onboarding_companyDetails(ctx, field, obj) - case "userDetails": - out.Values[i] = ec._Onboarding_userDetails(ctx, field, obj) - case "compliance": - out.Values[i] = ec._Onboarding_compliance(ctx, field, obj) - case "demoRequested": - out.Values[i] = ec._Onboarding_demoRequested(ctx, field, obj) - case "organization": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subprocessorCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._Onboarding_organization(ctx, field, obj) + res = ec._Organization_subprocessorCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -431676,69 +441715,7 @@ func (ec *executionContext) _Onboarding(ctx context.Context, sel ast.SelectionSe } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 "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": + case "subscriberCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -431747,7 +441724,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_organization(ctx, field, obj) + res = ec._Organization_subscriberCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -431774,7 +441751,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "systemDetailCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -431783,7 +441760,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_user(ctx, field, obj) + res = ec._Organization_systemDetailCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -431810,7 +441787,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "tagDefinitionCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -431819,7 +441796,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_events(ctx, field, obj) + res = ec._Organization_tagDefinitionCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -431846,169 +441823,127 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} - -func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipConnectionImplementors) + case "taskCreators": + field := field - out := 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) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_taskCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out -} + 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) + }) -var orgMembershipEdgeImplementors = []string{"OrgMembershipEdge"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _OrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "templateCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipEdge") - case "node": - out.Values[i] = ec._OrgMembershipEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OrgMembershipEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_templateCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) + 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) + }) - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "trustCenterCreators": + field := field -var orgSubscriptionImplementors = []string{"OrgSubscription", "Node"} + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_trustCenterCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscription) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscription") - case "id": - out.Values[i] = ec._OrgSubscription_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._OrgSubscription_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._OrgSubscription_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OrgSubscription_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._OrgSubscription_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._OrgSubscription_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._OrgSubscription_ownerID(ctx, field, obj) - case "stripeSubscriptionID": - out.Values[i] = ec._OrgSubscription_stripeSubscriptionID(ctx, field, obj) - case "stripeSubscriptionStatus": - out.Values[i] = ec._OrgSubscription_stripeSubscriptionStatus(ctx, field, obj) - case "active": - out.Values[i] = ec._OrgSubscription_active(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "expiresAt": - out.Values[i] = ec._OrgSubscription_expiresAt(ctx, field, obj) - case "trialExpiresAt": - out.Values[i] = ec._OrgSubscription_trialExpiresAt(ctx, field, obj) - case "daysUntilDue": - out.Values[i] = ec._OrgSubscription_daysUntilDue(ctx, field, obj) - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "trustCenterComplianceCreators": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + 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._OrgSubscription_owner(ctx, field, obj) + res = ec._Organization_trustCenterComplianceCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -432032,7 +441967,7 @@ func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "trustCenterDocCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432041,7 +441976,7 @@ func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgSubscription_events(ctx, field, obj) + res = ec._Organization_trustCenterDocCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432068,172 +442003,79 @@ func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "managePaymentMethods": - out.Values[i] = ec._OrgSubscription_managePaymentMethods(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(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionConnectionImplementors) + case "trustCenterEntityCreators": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionConnection") - case "edges": - out.Values[i] = ec._OrgSubscriptionConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OrgSubscriptionConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._OrgSubscriptionConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_trustCenterEntityCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - - 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 { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionEdgeImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionEdge") - case "node": - out.Values[i] = ec._OrgSubscriptionEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OrgSubscriptionEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.Deferred, int32(min(len(deferred), math.MaxInt32))) - for label, dfs := range deferred { - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "trustCenterFaqCreators": + field := field -var organizationImplementors = []string{"Organization", "Node"} + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_trustCenterFaqCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *generated.Organization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) + 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) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Organization") - case "id": - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Organization_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Organization_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Organization_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Organization_tags(ctx, field, obj) - case "name": - out.Values[i] = ec._Organization_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "displayName": - out.Values[i] = ec._Organization_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Organization_description(ctx, field, obj) - case "personalOrg": - out.Values[i] = ec._Organization_personalOrg(ctx, field, obj) - case "avatarRemoteURL": - out.Values[i] = ec._Organization_avatarRemoteURL(ctx, field, obj) - case "avatarLocalFileID": - out.Values[i] = ec._Organization_avatarLocalFileID(ctx, field, obj) - case "avatarUpdatedAt": - out.Values[i] = ec._Organization_avatarUpdatedAt(ctx, field, obj) - case "dedicatedDb": - out.Values[i] = ec._Organization_dedicatedDb(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "stripeCustomerID": - out.Values[i] = ec._Organization_stripeCustomerID(ctx, field, obj) - case "controlCreators": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "trustCenterNdaRequestCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432242,7 +442084,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controlCreators(ctx, field, obj) + res = ec._Organization_trustCenterNdaRequestCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432269,7 +442111,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlImplementationCreators": + case "trustCenterSubprocessorCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432278,7 +442120,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controlImplementationCreators(ctx, field, obj) + res = ec._Organization_trustCenterSubprocessorCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432305,7 +442147,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controlObjectiveCreators": + case "trustCenterWatermarkConfigCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432314,7 +442156,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controlObjectiveCreators(ctx, field, obj) + res = ec._Organization_trustCenterWatermarkConfigCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432341,7 +442183,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidenceCreators": + case "userCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432350,7 +442192,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_evidenceCreators(ctx, field, obj) + res = ec._Organization_userCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432377,7 +442219,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assetCreators": + case "userSettingCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432386,7 +442228,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_assetCreators(ctx, field, obj) + res = ec._Organization_userSettingCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432413,7 +442255,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "findingCreators": + case "vendorRiskScoreCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432422,7 +442264,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_findingCreators(ctx, field, obj) + res = ec._Organization_vendorRiskScoreCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432485,7 +442327,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groupCreators": + case "workflowAssignmentCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432494,7 +442336,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_groupCreators(ctx, field, obj) + res = ec._Organization_workflowAssignmentCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432521,7 +442363,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "internalPolicyCreators": + case "workflowAssignmentTargetCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432530,7 +442372,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_internalPolicyCreators(ctx, field, obj) + res = ec._Organization_workflowAssignmentTargetCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432557,7 +442399,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "mappedControlCreators": + case "workflowDefinitionCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432566,7 +442408,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_mappedControlCreators(ctx, field, obj) + res = ec._Organization_workflowDefinitionCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432593,7 +442435,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "narrativeCreators": + case "workflowEventCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432602,7 +442444,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_narrativeCreators(ctx, field, obj) + res = ec._Organization_workflowEventCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432629,7 +442471,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "procedureCreators": + case "workflowInstanceCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432638,7 +442480,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_procedureCreators(ctx, field, obj) + res = ec._Organization_workflowInstanceCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432665,7 +442507,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "programCreators": + case "workflowObjectRefCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432674,7 +442516,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_programCreators(ctx, field, obj) + res = ec._Organization_workflowObjectRefCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432701,7 +442543,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskCreators": + case "workflowProposalCreators": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432710,7 +442552,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_riskCreators(ctx, field, obj) + res = ec._Organization_workflowProposalCreators(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432737,7 +442579,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "identityHolderCreators": + case "campaignsManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432746,7 +442588,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_identityHolderCreators(ctx, field, obj) + res = ec._Organization_campaignsManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432773,7 +442615,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "scheduledJobCreators": + case "complianceManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432782,7 +442624,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_scheduledJobCreators(ctx, field, obj) + res = ec._Organization_complianceManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432809,7 +442651,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "standardCreators": + case "groupManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432818,7 +442660,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_standardCreators(ctx, field, obj) + res = ec._Organization_groupManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432845,7 +442687,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "templateCreators": + case "policiesManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432854,7 +442696,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_templateCreators(ctx, field, obj) + res = ec._Organization_policiesManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432881,7 +442723,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subprocessorCreators": + case "registryManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432890,7 +442732,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_subprocessorCreators(ctx, field, obj) + res = ec._Organization_registryManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432917,7 +442759,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterDocCreators": + case "riskManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432926,7 +442768,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_trustCenterDocCreators(ctx, field, obj) + res = ec._Organization_riskManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432953,7 +442795,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterSubprocessorCreators": + case "trustCenterManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432962,7 +442804,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_trustCenterSubprocessorCreators(ctx, field, obj) + res = ec._Organization_trustCenterManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -432989,7 +442831,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "actionPlanCreators": + case "workflowsManager": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -432998,7 +442840,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_actionPlanCreators(ctx, field, obj) + res = ec._Organization_workflowsManager(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } diff --git a/internal/graphapi/generated/root_.generated.go b/internal/graphapi/generated/root_.generated.go index 7be982b00c..8c6e343b70 100644 --- a/internal/graphapi/generated/root_.generated.go +++ b/internal/graphapi/generated/root_.generated.go @@ -4385,124 +4385,180 @@ type ComplexityRoot struct { } Organization struct { - APITokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.APITokenOrder, where *generated.APITokenWhereInput) int - ActionPlanCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ActionPlanOrder, where *generated.ActionPlanWhereInput) int - AssessmentResponses func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentResponseOrder, where *generated.AssessmentResponseWhereInput) int - Assessments func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentOrder, where *generated.AssessmentWhereInput) int - AssetCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Assets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssetOrder, where *generated.AssetWhereInput) int - AvatarFile func(childComplexity int) int - AvatarLocalFileID func(childComplexity int) int - AvatarRemoteURL func(childComplexity int) int - AvatarUpdatedAt func(childComplexity int) int - CampaignTargets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignTargetOrder, where *generated.CampaignTargetWhereInput) int - Campaigns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) 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, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ContactOrder, where *generated.ContactWhereInput) int - ControlCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ControlImplementationCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ControlImplementations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlImplementationOrder, where *generated.ControlImplementationWhereInput) int - ControlObjectiveCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ControlObjectives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlObjectiveOrder, where *generated.ControlObjectiveWhereInput) int - Controls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlOrder, where *generated.ControlWhereInput) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - CustomDomains func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CustomDomainOrder, where *generated.CustomDomainWhereInput) int - CustomTypeEnums func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CustomTypeEnumOrder, where *generated.CustomTypeEnumWhereInput) int - DNSVerifications func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DNSVerificationOrder, where *generated.DNSVerificationWhereInput) int - DedicatedDb func(childComplexity int) int - Description func(childComplexity int) int - DirectoryAccounts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryAccountOrder, where *generated.DirectoryAccountWhereInput) int - DirectoryGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryGroupOrder, where *generated.DirectoryGroupWhereInput) int - DirectoryMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryMembershipOrder, where *generated.DirectoryMembershipWhereInput) int - DirectorySyncRuns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectorySyncRunOrder, where *generated.DirectorySyncRunWhereInput) int - Discussions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DiscussionOrder, where *generated.DiscussionWhereInput) int - DisplayName func(childComplexity int) int - Documents func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DocumentDataOrder, where *generated.DocumentDataWhereInput) int - EmailTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EmailTemplateOrder, where *generated.EmailTemplateWhereInput) int - Entities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EntityOrder, where *generated.EntityWhereInput) int - EntityTypes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) int - Events func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EventOrder, where *generated.EventWhereInput) int - Evidence func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EvidenceOrder, where *generated.EvidenceWhereInput) int - EvidenceCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Exports func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ExportOrder, where *generated.ExportWhereInput) int - Files func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.FileOrder, where *generated.FileWhereInput) int - FindingCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Findings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.FindingOrder, where *generated.FindingWhereInput) int - GroupCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Groups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ID func(childComplexity int) int - IdentityHolderCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - IdentityHolders func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.IdentityHolderOrder, where *generated.IdentityHolderWhereInput) 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, orderBy []*generated.InternalPolicyOrder, where *generated.InternalPolicyWhereInput) int - InternalPolicyCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.InviteOrder, where *generated.InviteWhereInput) int - JobResults func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobResultOrder, where *generated.JobResultWhereInput) int - JobRunnerRegistrationTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerRegistrationTokenOrder, where *generated.JobRunnerRegistrationTokenWhereInput) int - JobRunnerTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerTokenOrder, where *generated.JobRunnerTokenWhereInput) int - JobRunners func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerOrder, where *generated.JobRunnerWhereInput) int - JobTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobTemplateOrder, where *generated.JobTemplateWhereInput) int - MappedControlCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - MappedControls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.MappedControlOrder, where *generated.MappedControlWhereInput) int - Members func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.OrgMembershipOrder, where *generated.OrgMembershipWhereInput) int - Name func(childComplexity int) int - NarrativeCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Narratives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NarrativeOrder, where *generated.NarrativeWhereInput) int - Notes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NoteOrder, where *generated.NoteWhereInput) int - NotificationPreferences func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NotificationPreferenceOrder, where *generated.NotificationPreferenceWhereInput) int - NotificationTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NotificationTemplateOrder, where *generated.NotificationTemplateWhereInput) int - OrgSubscriptions func(childComplexity int) int - Parent func(childComplexity int) int - PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.PersonalAccessTokenOrder, where *generated.PersonalAccessTokenWhereInput) int - PersonalOrg func(childComplexity int) int - Platforms func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.PlatformOrder, where *generated.PlatformWhereInput) int - ProcedureCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Procedures func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ProcedureOrder, where *generated.ProcedureWhereInput) int - ProgramCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Programs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ProgramOrder, where *generated.ProgramWhereInput) int - Remediations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.RemediationOrder, where *generated.RemediationWhereInput) int - Reviews func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ReviewOrder, where *generated.ReviewWhereInput) int - RiskCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Risks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.RiskOrder, where *generated.RiskWhereInput) int - SLADefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SLADefinitionOrder, where *generated.SLADefinitionWhereInput) int - Scans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScanOrder, where *generated.ScanWhereInput) int - ScheduledJobCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - ScheduledJobRuns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScheduledJobRunOrder, where *generated.ScheduledJobRunWhereInput) int - ScheduledJobs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScheduledJobOrder, where *generated.ScheduledJobWhereInput) int - Secrets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.HushOrder, where *generated.HushWhereInput) int - Setting func(childComplexity int) int - StandardCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Standards func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.StandardOrder, where *generated.StandardWhereInput) int - StripeCustomerID func(childComplexity int) int - Subcontrols func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubcontrolOrder, where *generated.SubcontrolWhereInput) int - SubprocessorCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Subprocessors func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubprocessorOrder, where *generated.SubprocessorWhereInput) int - Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubscriberOrder, where *generated.SubscriberWhereInput) int - SystemDetails func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SystemDetailOrder, where *generated.SystemDetailWhereInput) int - TagDefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TagDefinitionOrder, where *generated.TagDefinitionWhereInput) int - Tags func(childComplexity int) int - Tasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TaskOrder, where *generated.TaskWhereInput) int - TemplateCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - Templates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TemplateOrder, where *generated.TemplateWhereInput) int - TrustCenterDocCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - TrustCenterSubprocessorCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - TrustCenterWatermarkConfigs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TrustCenterWatermarkConfigOrder, where *generated.TrustCenterWatermarkConfigWhereInput) int - TrustCenters func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TrustCenterOrder, where *generated.TrustCenterWhereInput) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Users func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.UserOrder, where *generated.UserWhereInput) int - VendorRiskScores func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VendorRiskScoreOrder, where *generated.VendorRiskScoreWhereInput) int - VendorScoringConfigs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VendorScoringConfigOrder, where *generated.VendorScoringConfigWhereInput) int - Vulnerabilities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VulnerabilityOrder, where *generated.VulnerabilityWhereInput) int - VulnerabilityCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int - WorkflowAssignmentTargets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowAssignmentTargetOrder, where *generated.WorkflowAssignmentTargetWhereInput) int - WorkflowAssignments func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowAssignmentOrder, where *generated.WorkflowAssignmentWhereInput) int - WorkflowDefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowDefinitionOrder, where *generated.WorkflowDefinitionWhereInput) int - WorkflowEvents func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowEventOrder, where *generated.WorkflowEventWhereInput) int - WorkflowInstances func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowInstanceOrder, where *generated.WorkflowInstanceWhereInput) int - WorkflowObjectRefs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowObjectRefOrder, where *generated.WorkflowObjectRefWhereInput) int + APITokenCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + APITokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.APITokenOrder, where *generated.APITokenWhereInput) int + ActionPlanCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ActionPlanOrder, where *generated.ActionPlanWhereInput) int + AssessmentCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + AssessmentResponses func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentResponseOrder, where *generated.AssessmentResponseWhereInput) int + Assessments func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentOrder, where *generated.AssessmentWhereInput) int + AssetCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Assets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssetOrder, where *generated.AssetWhereInput) int + AvatarFile func(childComplexity int) int + AvatarLocalFileID func(childComplexity int) int + AvatarRemoteURL func(childComplexity int) int + AvatarUpdatedAt func(childComplexity int) int + CampaignCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + CampaignTargetCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + CampaignTargets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignTargetOrder, where *generated.CampaignTargetWhereInput) int + Campaigns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) int + CampaignsManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + CheckResultCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Children func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.OrganizationOrder, where *generated.OrganizationWhereInput) int + ComplianceManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ContactCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Contacts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ContactOrder, where *generated.ContactWhereInput) int + ControlCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ControlImplementationCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ControlImplementations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlImplementationOrder, where *generated.ControlImplementationWhereInput) int + ControlObjectiveCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ControlObjectives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlObjectiveOrder, where *generated.ControlObjectiveWhereInput) int + Controls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ControlOrder, where *generated.ControlWhereInput) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + CustomDomains func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CustomDomainOrder, where *generated.CustomDomainWhereInput) int + CustomTypeEnumCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + CustomTypeEnums func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CustomTypeEnumOrder, where *generated.CustomTypeEnumWhereInput) int + DNSVerifications func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DNSVerificationOrder, where *generated.DNSVerificationWhereInput) int + DedicatedDb func(childComplexity int) int + Description func(childComplexity int) int + DirectoryAccounts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryAccountOrder, where *generated.DirectoryAccountWhereInput) int + DirectoryGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryGroupOrder, where *generated.DirectoryGroupWhereInput) int + DirectoryMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectoryMembershipOrder, where *generated.DirectoryMembershipWhereInput) int + DirectorySyncRuns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DirectorySyncRunOrder, where *generated.DirectorySyncRunWhereInput) int + DiscussionCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Discussions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DiscussionOrder, where *generated.DiscussionWhereInput) int + DisplayName func(childComplexity int) int + Documents func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.DocumentDataOrder, where *generated.DocumentDataWhereInput) int + EmailTemplateCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + EmailTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EmailTemplateOrder, where *generated.EmailTemplateWhereInput) int + Entities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EntityOrder, where *generated.EntityWhereInput) int + EntityCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + EntityTypeCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + EntityTypes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) int + Events func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EventOrder, where *generated.EventWhereInput) int + Evidence func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.EvidenceOrder, where *generated.EvidenceWhereInput) int + EvidenceCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ExportCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Exports func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ExportOrder, where *generated.ExportWhereInput) int + FileCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Files func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.FileOrder, where *generated.FileWhereInput) int + FindingCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Findings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.FindingOrder, where *generated.FindingWhereInput) int + GroupCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + GroupManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Groups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ID func(childComplexity int) int + IdentityHolderCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + IdentityHolders func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.IdentityHolderOrder, where *generated.IdentityHolderWhereInput) int + IntegrationCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + IntegrationWebhookCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) 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, orderBy []*generated.InternalPolicyOrder, where *generated.InternalPolicyWhereInput) int + InternalPolicyCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.InviteOrder, where *generated.InviteWhereInput) int + JobResults func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobResultOrder, where *generated.JobResultWhereInput) int + JobRunnerCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + JobRunnerRegistrationTokenCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + JobRunnerRegistrationTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerRegistrationTokenOrder, where *generated.JobRunnerRegistrationTokenWhereInput) int + JobRunnerTokenCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + JobRunnerTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerTokenOrder, where *generated.JobRunnerTokenWhereInput) int + JobRunners func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobRunnerOrder, where *generated.JobRunnerWhereInput) int + JobTemplateCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + JobTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.JobTemplateOrder, where *generated.JobTemplateWhereInput) int + MappedControlCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + MappedControls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.MappedControlOrder, where *generated.MappedControlWhereInput) int + Members func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.OrgMembershipOrder, where *generated.OrgMembershipWhereInput) int + Name func(childComplexity int) int + NarrativeCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Narratives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NarrativeOrder, where *generated.NarrativeWhereInput) int + NoteCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Notes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NoteOrder, where *generated.NoteWhereInput) int + NotificationPreferences func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NotificationPreferenceOrder, where *generated.NotificationPreferenceWhereInput) int + NotificationTemplateCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + NotificationTemplates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.NotificationTemplateOrder, where *generated.NotificationTemplateWhereInput) int + OrgSubscriptions func(childComplexity int) int + OrganizationCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Parent func(childComplexity int) int + PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.PersonalAccessTokenOrder, where *generated.PersonalAccessTokenWhereInput) int + PersonalOrg func(childComplexity int) int + PlatformCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Platforms func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.PlatformOrder, where *generated.PlatformWhereInput) int + PoliciesManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ProcedureCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Procedures func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ProcedureOrder, where *generated.ProcedureWhereInput) int + ProgramCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Programs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ProgramOrder, where *generated.ProgramWhereInput) int + RegistryManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + RemediationCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Remediations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.RemediationOrder, where *generated.RemediationWhereInput) int + ReviewCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Reviews func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ReviewOrder, where *generated.ReviewWhereInput) int + RiskCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + RiskManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Risks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.RiskOrder, where *generated.RiskWhereInput) int + SLADefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SLADefinitionOrder, where *generated.SLADefinitionWhereInput) int + ScanCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Scans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScanOrder, where *generated.ScanWhereInput) int + ScheduledJobCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ScheduledJobRunCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + ScheduledJobRuns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScheduledJobRunOrder, where *generated.ScheduledJobRunWhereInput) int + ScheduledJobs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ScheduledJobOrder, where *generated.ScheduledJobWhereInput) int + Secrets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.HushOrder, where *generated.HushWhereInput) int + Setting func(childComplexity int) int + StandardCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Standards func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.StandardOrder, where *generated.StandardWhereInput) int + StripeCustomerID func(childComplexity int) int + SubcontrolCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Subcontrols func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubcontrolOrder, where *generated.SubcontrolWhereInput) int + SubprocessorCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Subprocessors func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubprocessorOrder, where *generated.SubprocessorWhereInput) int + SubscriberCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SubscriberOrder, where *generated.SubscriberWhereInput) int + SystemDetailCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + SystemDetails func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.SystemDetailOrder, where *generated.SystemDetailWhereInput) int + TagDefinitionCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TagDefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TagDefinitionOrder, where *generated.TagDefinitionWhereInput) int + Tags func(childComplexity int) int + TaskCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Tasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TaskOrder, where *generated.TaskWhereInput) int + TemplateCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Templates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TemplateOrder, where *generated.TemplateWhereInput) int + TrustCenterComplianceCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterDocCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterEntityCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterFaqCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterNdaRequestCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterSubprocessorCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterWatermarkConfigCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + TrustCenterWatermarkConfigs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TrustCenterWatermarkConfigOrder, where *generated.TrustCenterWatermarkConfigWhereInput) int + TrustCenters func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TrustCenterOrder, where *generated.TrustCenterWhereInput) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UserCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + UserSettingCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Users func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.UserOrder, where *generated.UserWhereInput) int + VendorRiskScoreCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + VendorRiskScores func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VendorRiskScoreOrder, where *generated.VendorRiskScoreWhereInput) int + VendorScoringConfigs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VendorScoringConfigOrder, where *generated.VendorScoringConfigWhereInput) int + Vulnerabilities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.VulnerabilityOrder, where *generated.VulnerabilityWhereInput) int + VulnerabilityCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowAssignmentCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowAssignmentTargetCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowAssignmentTargets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowAssignmentTargetOrder, where *generated.WorkflowAssignmentTargetWhereInput) int + WorkflowAssignments func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowAssignmentOrder, where *generated.WorkflowAssignmentWhereInput) int + WorkflowDefinitionCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowDefinitions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowDefinitionOrder, where *generated.WorkflowDefinitionWhereInput) int + WorkflowEventCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowEvents func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowEventOrder, where *generated.WorkflowEventWhereInput) int + WorkflowInstanceCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowInstances func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowInstanceOrder, where *generated.WorkflowInstanceWhereInput) int + WorkflowObjectRefCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowObjectRefs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.WorkflowObjectRefOrder, where *generated.WorkflowObjectRefWhereInput) int + WorkflowProposalCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + WorkflowsManager func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int } OrganizationBulkCreatePayload struct { @@ -33738,6 +33794,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.OrgSubscriptionEdge.Node(childComplexity), true + case "Organization.apiTokenCreators": + if e.ComplexityRoot.Organization.APITokenCreators == nil { + break + } + + args, err := ec.field_Organization_apiTokenCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.APITokenCreators(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 "Organization.apiTokens": if e.ComplexityRoot.Organization.APITokens == nil { break @@ -33774,6 +33842,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.ActionPlans(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.ActionPlanOrder), args["where"].(*generated.ActionPlanWhereInput)), true + case "Organization.assessmentCreators": + if e.ComplexityRoot.Organization.AssessmentCreators == nil { + break + } + + args, err := ec.field_Organization_assessmentCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.AssessmentCreators(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 "Organization.assessmentResponses": if e.ComplexityRoot.Organization.AssessmentResponses == nil { break @@ -33850,6 +33930,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.AvatarUpdatedAt(childComplexity), true + case "Organization.campaignCreators": + if e.ComplexityRoot.Organization.CampaignCreators == nil { + break + } + + args, err := ec.field_Organization_campaignCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.CampaignCreators(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 "Organization.campaignTargetCreators": + if e.ComplexityRoot.Organization.CampaignTargetCreators == nil { + break + } + + args, err := ec.field_Organization_campaignTargetCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.CampaignTargetCreators(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 "Organization.campaignTargets": if e.ComplexityRoot.Organization.CampaignTargets == nil { break @@ -33874,6 +33978,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Campaigns(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.CampaignOrder), args["where"].(*generated.CampaignWhereInput)), true + case "Organization.campaignsManager": + if e.ComplexityRoot.Organization.CampaignsManager == nil { + break + } + + args, err := ec.field_Organization_campaignsManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.CampaignsManager(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 "Organization.checkResultCreators": + if e.ComplexityRoot.Organization.CheckResultCreators == nil { + break + } + + args, err := ec.field_Organization_checkResultCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.CheckResultCreators(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 "Organization.children": if e.ComplexityRoot.Organization.Children == nil { break @@ -33886,6 +34014,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.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.complianceManager": + if e.ComplexityRoot.Organization.ComplianceManager == nil { + break + } + + args, err := ec.field_Organization_complianceManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ComplianceManager(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 "Organization.contactCreators": + if e.ComplexityRoot.Organization.ContactCreators == nil { + break + } + + args, err := ec.field_Organization_contactCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ContactCreators(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 "Organization.contacts": if e.ComplexityRoot.Organization.Contacts == nil { break @@ -33996,6 +34148,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.CustomDomains(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.CustomDomainOrder), args["where"].(*generated.CustomDomainWhereInput)), true + case "Organization.customTypeEnumCreators": + if e.ComplexityRoot.Organization.CustomTypeEnumCreators == nil { + break + } + + args, err := ec.field_Organization_customTypeEnumCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.CustomTypeEnumCreators(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 "Organization.customTypeEnums": if e.ComplexityRoot.Organization.CustomTypeEnums == nil { break @@ -34082,6 +34246,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.DirectorySyncRuns(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.DirectorySyncRunOrder), args["where"].(*generated.DirectorySyncRunWhereInput)), true + case "Organization.discussionCreators": + if e.ComplexityRoot.Organization.DiscussionCreators == nil { + break + } + + args, err := ec.field_Organization_discussionCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.DiscussionCreators(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 "Organization.discussions": if e.ComplexityRoot.Organization.Discussions == nil { break @@ -34113,6 +34289,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Documents(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.DocumentDataOrder), args["where"].(*generated.DocumentDataWhereInput)), true + case "Organization.emailTemplateCreators": + if e.ComplexityRoot.Organization.EmailTemplateCreators == nil { + break + } + + args, err := ec.field_Organization_emailTemplateCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.EmailTemplateCreators(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 "Organization.emailTemplates": if e.ComplexityRoot.Organization.EmailTemplates == nil { break @@ -34137,6 +34325,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.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 "Organization.entityCreators": + if e.ComplexityRoot.Organization.EntityCreators == nil { + break + } + + args, err := ec.field_Organization_entityCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.EntityCreators(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 "Organization.entityTypeCreators": + if e.ComplexityRoot.Organization.EntityTypeCreators == nil { + break + } + + args, err := ec.field_Organization_entityTypeCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.EntityTypeCreators(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 "Organization.entityTypes": if e.ComplexityRoot.Organization.EntityTypes == nil { break @@ -34185,6 +34397,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.EvidenceCreators(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 "Organization.exportCreators": + if e.ComplexityRoot.Organization.ExportCreators == nil { + break + } + + args, err := ec.field_Organization_exportCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ExportCreators(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 "Organization.exports": if e.ComplexityRoot.Organization.Exports == nil { break @@ -34197,6 +34421,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Exports(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.ExportOrder), args["where"].(*generated.ExportWhereInput)), true + case "Organization.fileCreators": + if e.ComplexityRoot.Organization.FileCreators == nil { + break + } + + args, err := ec.field_Organization_fileCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.FileCreators(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 "Organization.files": if e.ComplexityRoot.Organization.Files == nil { break @@ -34245,6 +34481,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.GroupCreators(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 "Organization.groupManager": + if e.ComplexityRoot.Organization.GroupManager == nil { + break + } + + args, err := ec.field_Organization_groupManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.GroupManager(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 "Organization.groups": if e.ComplexityRoot.Organization.Groups == nil { break @@ -34288,6 +34536,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.IdentityHolders(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.IdentityHolderOrder), args["where"].(*generated.IdentityHolderWhereInput)), true + case "Organization.integrationCreators": + if e.ComplexityRoot.Organization.IntegrationCreators == nil { + break + } + + args, err := ec.field_Organization_integrationCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.IntegrationCreators(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 "Organization.integrationWebhookCreators": + if e.ComplexityRoot.Organization.IntegrationWebhookCreators == nil { + break + } + + args, err := ec.field_Organization_integrationWebhookCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.IntegrationWebhookCreators(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 "Organization.integrations": if e.ComplexityRoot.Organization.Integrations == nil { break @@ -34348,6 +34620,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.JobResults(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.JobResultOrder), args["where"].(*generated.JobResultWhereInput)), true + case "Organization.jobRunnerCreators": + if e.ComplexityRoot.Organization.JobRunnerCreators == nil { + break + } + + args, err := ec.field_Organization_jobRunnerCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.JobRunnerCreators(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 "Organization.jobRunnerRegistrationTokenCreators": + if e.ComplexityRoot.Organization.JobRunnerRegistrationTokenCreators == nil { + break + } + + args, err := ec.field_Organization_jobRunnerRegistrationTokenCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.JobRunnerRegistrationTokenCreators(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 "Organization.jobRunnerRegistrationTokens": if e.ComplexityRoot.Organization.JobRunnerRegistrationTokens == nil { break @@ -34360,6 +34656,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.JobRunnerRegistrationTokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.JobRunnerRegistrationTokenOrder), args["where"].(*generated.JobRunnerRegistrationTokenWhereInput)), true + case "Organization.jobRunnerTokenCreators": + if e.ComplexityRoot.Organization.JobRunnerTokenCreators == nil { + break + } + + args, err := ec.field_Organization_jobRunnerTokenCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.JobRunnerTokenCreators(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 "Organization.jobRunnerTokens": if e.ComplexityRoot.Organization.JobRunnerTokens == nil { break @@ -34384,6 +34692,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.JobRunners(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.JobRunnerOrder), args["where"].(*generated.JobRunnerWhereInput)), true + case "Organization.jobTemplateCreators": + if e.ComplexityRoot.Organization.JobTemplateCreators == nil { + break + } + + args, err := ec.field_Organization_jobTemplateCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.JobTemplateCreators(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 "Organization.jobTemplates": if e.ComplexityRoot.Organization.JobTemplates == nil { break @@ -34463,6 +34783,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Narratives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.NarrativeOrder), args["where"].(*generated.NarrativeWhereInput)), true + case "Organization.noteCreators": + if e.ComplexityRoot.Organization.NoteCreators == nil { + break + } + + args, err := ec.field_Organization_noteCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.NoteCreators(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 "Organization.notes": if e.ComplexityRoot.Organization.Notes == nil { break @@ -34487,6 +34819,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.NotificationPreferences(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.NotificationPreferenceOrder), args["where"].(*generated.NotificationPreferenceWhereInput)), true + case "Organization.notificationTemplateCreators": + if e.ComplexityRoot.Organization.NotificationTemplateCreators == nil { + break + } + + args, err := ec.field_Organization_notificationTemplateCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.NotificationTemplateCreators(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 "Organization.notificationTemplates": if e.ComplexityRoot.Organization.NotificationTemplates == nil { break @@ -34506,6 +34850,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.OrgSubscriptions(childComplexity), true + case "Organization.organizationCreators": + if e.ComplexityRoot.Organization.OrganizationCreators == nil { + break + } + + args, err := ec.field_Organization_organizationCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.OrganizationCreators(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 "Organization.parent": if e.ComplexityRoot.Organization.Parent == nil { break @@ -34532,6 +34888,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.PersonalOrg(childComplexity), true + case "Organization.platformCreators": + if e.ComplexityRoot.Organization.PlatformCreators == nil { + break + } + + args, err := ec.field_Organization_platformCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.PlatformCreators(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 "Organization.platforms": if e.ComplexityRoot.Organization.Platforms == nil { break @@ -34544,6 +34912,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Platforms(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.PlatformOrder), args["where"].(*generated.PlatformWhereInput)), true + case "Organization.policiesManager": + if e.ComplexityRoot.Organization.PoliciesManager == nil { + break + } + + args, err := ec.field_Organization_policiesManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.PoliciesManager(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 "Organization.procedureCreators": if e.ComplexityRoot.Organization.ProcedureCreators == nil { break @@ -34592,6 +34972,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Programs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.ProgramOrder), args["where"].(*generated.ProgramWhereInput)), true + case "Organization.registryManager": + if e.ComplexityRoot.Organization.RegistryManager == nil { + break + } + + args, err := ec.field_Organization_registryManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.RegistryManager(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 "Organization.remediationCreators": + if e.ComplexityRoot.Organization.RemediationCreators == nil { + break + } + + args, err := ec.field_Organization_remediationCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.RemediationCreators(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 "Organization.remediations": if e.ComplexityRoot.Organization.Remediations == nil { break @@ -34604,6 +35008,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Remediations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.RemediationOrder), args["where"].(*generated.RemediationWhereInput)), true + case "Organization.reviewCreators": + if e.ComplexityRoot.Organization.ReviewCreators == nil { + break + } + + args, err := ec.field_Organization_reviewCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ReviewCreators(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 "Organization.reviews": if e.ComplexityRoot.Organization.Reviews == nil { break @@ -34628,6 +35044,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.RiskCreators(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 "Organization.riskManager": + if e.ComplexityRoot.Organization.RiskManager == nil { + break + } + + args, err := ec.field_Organization_riskManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.RiskManager(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 "Organization.risks": if e.ComplexityRoot.Organization.Risks == nil { break @@ -34652,6 +35080,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.SLADefinitions(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.SLADefinitionOrder), args["where"].(*generated.SLADefinitionWhereInput)), true + case "Organization.scanCreators": + if e.ComplexityRoot.Organization.ScanCreators == nil { + break + } + + args, err := ec.field_Organization_scanCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ScanCreators(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 "Organization.scans": if e.ComplexityRoot.Organization.Scans == nil { break @@ -34676,6 +35116,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.ScheduledJobCreators(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 "Organization.scheduledJobRunCreators": + if e.ComplexityRoot.Organization.ScheduledJobRunCreators == nil { + break + } + + args, err := ec.field_Organization_scheduledJobRunCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.ScheduledJobRunCreators(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 "Organization.scheduledJobRuns": if e.ComplexityRoot.Organization.ScheduledJobRuns == nil { break @@ -34750,6 +35202,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.StripeCustomerID(childComplexity), true + case "Organization.subcontrolCreators": + if e.ComplexityRoot.Organization.SubcontrolCreators == nil { + break + } + + args, err := ec.field_Organization_subcontrolCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.SubcontrolCreators(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 "Organization.subcontrols": if e.ComplexityRoot.Organization.Subcontrols == nil { break @@ -34786,6 +35250,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Subprocessors(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.SubprocessorOrder), args["where"].(*generated.SubprocessorWhereInput)), true + case "Organization.subscriberCreators": + if e.ComplexityRoot.Organization.SubscriberCreators == nil { + break + } + + args, err := ec.field_Organization_subscriberCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.SubscriberCreators(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 "Organization.subscribers": if e.ComplexityRoot.Organization.Subscribers == nil { break @@ -34798,6 +35274,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Subscribers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.SubscriberOrder), args["where"].(*generated.SubscriberWhereInput)), true + case "Organization.systemDetailCreators": + if e.ComplexityRoot.Organization.SystemDetailCreators == nil { + break + } + + args, err := ec.field_Organization_systemDetailCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.SystemDetailCreators(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 "Organization.systemDetails": if e.ComplexityRoot.Organization.SystemDetails == nil { break @@ -34810,6 +35298,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.SystemDetails(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.SystemDetailOrder), args["where"].(*generated.SystemDetailWhereInput)), true + case "Organization.tagDefinitionCreators": + if e.ComplexityRoot.Organization.TagDefinitionCreators == nil { + break + } + + args, err := ec.field_Organization_tagDefinitionCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TagDefinitionCreators(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 "Organization.tagDefinitions": if e.ComplexityRoot.Organization.TagDefinitions == nil { break @@ -34829,6 +35329,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.Tags(childComplexity), true + case "Organization.taskCreators": + if e.ComplexityRoot.Organization.TaskCreators == nil { + break + } + + args, err := ec.field_Organization_taskCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TaskCreators(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 "Organization.tasks": if e.ComplexityRoot.Organization.Tasks == nil { break @@ -34865,6 +35377,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.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 "Organization.trustCenterComplianceCreators": + if e.ComplexityRoot.Organization.TrustCenterComplianceCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterComplianceCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterComplianceCreators(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 "Organization.trustCenterCreators": + if e.ComplexityRoot.Organization.TrustCenterCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterCreators(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 "Organization.trustCenterDocCreators": if e.ComplexityRoot.Organization.TrustCenterDocCreators == nil { break @@ -34877,6 +35413,54 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.TrustCenterDocCreators(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 "Organization.trustCenterEntityCreators": + if e.ComplexityRoot.Organization.TrustCenterEntityCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterEntityCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterEntityCreators(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 "Organization.trustCenterFaqCreators": + if e.ComplexityRoot.Organization.TrustCenterFaqCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterFaqCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterFaqCreators(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 "Organization.trustCenterManager": + if e.ComplexityRoot.Organization.TrustCenterManager == nil { + break + } + + args, err := ec.field_Organization_trustCenterManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterManager(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 "Organization.trustCenterNdaRequestCreators": + if e.ComplexityRoot.Organization.TrustCenterNdaRequestCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterNdaRequestCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterNdaRequestCreators(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 "Organization.trustCenterSubprocessorCreators": if e.ComplexityRoot.Organization.TrustCenterSubprocessorCreators == nil { break @@ -34889,6 +35473,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.TrustCenterSubprocessorCreators(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 "Organization.trustCenterWatermarkConfigCreators": + if e.ComplexityRoot.Organization.TrustCenterWatermarkConfigCreators == nil { + break + } + + args, err := ec.field_Organization_trustCenterWatermarkConfigCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.TrustCenterWatermarkConfigCreators(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 "Organization.trustCenterWatermarkConfigs": if e.ComplexityRoot.Organization.TrustCenterWatermarkConfigs == nil { break @@ -34927,6 +35523,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.UpdatedBy(childComplexity), true + case "Organization.userCreators": + if e.ComplexityRoot.Organization.UserCreators == nil { + break + } + + args, err := ec.field_Organization_userCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.UserCreators(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 "Organization.userSettingCreators": + if e.ComplexityRoot.Organization.UserSettingCreators == nil { + break + } + + args, err := ec.field_Organization_userSettingCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.UserSettingCreators(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 "Organization.users": if e.ComplexityRoot.Organization.Users == nil { break @@ -34939,6 +35559,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.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 "Organization.vendorRiskScoreCreators": + if e.ComplexityRoot.Organization.VendorRiskScoreCreators == nil { + break + } + + args, err := ec.field_Organization_vendorRiskScoreCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.VendorRiskScoreCreators(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 "Organization.vendorRiskScores": if e.ComplexityRoot.Organization.VendorRiskScores == nil { break @@ -34987,6 +35619,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.VulnerabilityCreators(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 "Organization.workflowAssignmentCreators": + if e.ComplexityRoot.Organization.WorkflowAssignmentCreators == nil { + break + } + + args, err := ec.field_Organization_workflowAssignmentCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowAssignmentCreators(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 "Organization.workflowAssignmentTargetCreators": + if e.ComplexityRoot.Organization.WorkflowAssignmentTargetCreators == nil { + break + } + + args, err := ec.field_Organization_workflowAssignmentTargetCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowAssignmentTargetCreators(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 "Organization.workflowAssignmentTargets": if e.ComplexityRoot.Organization.WorkflowAssignmentTargets == nil { break @@ -35011,6 +35667,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.WorkflowAssignments(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.WorkflowAssignmentOrder), args["where"].(*generated.WorkflowAssignmentWhereInput)), true + case "Organization.workflowDefinitionCreators": + if e.ComplexityRoot.Organization.WorkflowDefinitionCreators == nil { + break + } + + args, err := ec.field_Organization_workflowDefinitionCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowDefinitionCreators(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 "Organization.workflowDefinitions": if e.ComplexityRoot.Organization.WorkflowDefinitions == nil { break @@ -35023,6 +35691,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.WorkflowDefinitions(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.WorkflowDefinitionOrder), args["where"].(*generated.WorkflowDefinitionWhereInput)), true + case "Organization.workflowEventCreators": + if e.ComplexityRoot.Organization.WorkflowEventCreators == nil { + break + } + + args, err := ec.field_Organization_workflowEventCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowEventCreators(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 "Organization.workflowEvents": if e.ComplexityRoot.Organization.WorkflowEvents == nil { break @@ -35035,6 +35715,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.WorkflowEvents(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.WorkflowEventOrder), args["where"].(*generated.WorkflowEventWhereInput)), true + case "Organization.workflowInstanceCreators": + if e.ComplexityRoot.Organization.WorkflowInstanceCreators == nil { + break + } + + args, err := ec.field_Organization_workflowInstanceCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowInstanceCreators(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 "Organization.workflowInstances": if e.ComplexityRoot.Organization.WorkflowInstances == nil { break @@ -35047,6 +35739,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.WorkflowInstances(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.WorkflowInstanceOrder), args["where"].(*generated.WorkflowInstanceWhereInput)), true + case "Organization.workflowObjectRefCreators": + if e.ComplexityRoot.Organization.WorkflowObjectRefCreators == nil { + break + } + + args, err := ec.field_Organization_workflowObjectRefCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowObjectRefCreators(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 "Organization.workflowObjectRefs": if e.ComplexityRoot.Organization.WorkflowObjectRefs == nil { break @@ -35059,6 +35763,30 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.Organization.WorkflowObjectRefs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.WorkflowObjectRefOrder), args["where"].(*generated.WorkflowObjectRefWhereInput)), true + case "Organization.workflowProposalCreators": + if e.ComplexityRoot.Organization.WorkflowProposalCreators == nil { + break + } + + args, err := ec.field_Organization_workflowProposalCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowProposalCreators(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 "Organization.workflowsManager": + if e.ComplexityRoot.Organization.WorkflowsManager == nil { + break + } + + args, err := ec.field_Organization_workflowsManager_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.WorkflowsManager(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 "OrganizationBulkCreatePayload.organizations": if e.ComplexityRoot.OrganizationBulkCreatePayload.Organizations == nil { break @@ -59240,7 +59968,7 @@ type Assessment implements Node { """ tags: [String!] """ - the organization id that owns the object + the ID of the organization owner of the object """ ownerID: ID """ @@ -71501,28 +72229,84 @@ input CreateOrganizationInput { Whether the organization has a dedicated database """ dedicatedDb: Boolean + actionPlanCreatorIDs: [ID!] + apiTokenCreatorIDs: [ID!] + assessmentCreatorIDs: [ID!] + assetCreatorIDs: [ID!] + campaignCreatorIDs: [ID!] + campaignTargetCreatorIDs: [ID!] + checkResultCreatorIDs: [ID!] + contactCreatorIDs: [ID!] controlCreatorIDs: [ID!] controlImplementationCreatorIDs: [ID!] controlObjectiveCreatorIDs: [ID!] + customTypeEnumCreatorIDs: [ID!] + discussionCreatorIDs: [ID!] + emailTemplateCreatorIDs: [ID!] + entityCreatorIDs: [ID!] + entityTypeCreatorIDs: [ID!] evidenceCreatorIDs: [ID!] - assetCreatorIDs: [ID!] + exportCreatorIDs: [ID!] + fileCreatorIDs: [ID!] findingCreatorIDs: [ID!] - vulnerabilityCreatorIDs: [ID!] groupCreatorIDs: [ID!] + identityHolderCreatorIDs: [ID!] + integrationCreatorIDs: [ID!] + integrationWebhookCreatorIDs: [ID!] internalPolicyCreatorIDs: [ID!] + jobRunnerCreatorIDs: [ID!] + jobRunnerRegistrationTokenCreatorIDs: [ID!] + jobRunnerTokenCreatorIDs: [ID!] + jobTemplateCreatorIDs: [ID!] mappedControlCreatorIDs: [ID!] narrativeCreatorIDs: [ID!] + noteCreatorIDs: [ID!] + notificationTemplateCreatorIDs: [ID!] + organizationCreatorIDs: [ID!] + platformCreatorIDs: [ID!] procedureCreatorIDs: [ID!] programCreatorIDs: [ID!] + remediationCreatorIDs: [ID!] + reviewCreatorIDs: [ID!] riskCreatorIDs: [ID!] - identityHolderCreatorIDs: [ID!] + scanCreatorIDs: [ID!] scheduledJobCreatorIDs: [ID!] + scheduledJobRunCreatorIDs: [ID!] standardCreatorIDs: [ID!] - templateCreatorIDs: [ID!] + subcontrolCreatorIDs: [ID!] subprocessorCreatorIDs: [ID!] + subscriberCreatorIDs: [ID!] + systemDetailCreatorIDs: [ID!] + tagDefinitionCreatorIDs: [ID!] + taskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + trustCenterCreatorIDs: [ID!] + trustCenterComplianceCreatorIDs: [ID!] trustCenterDocCreatorIDs: [ID!] + trustCenterEntityCreatorIDs: [ID!] + trustCenterFaqCreatorIDs: [ID!] + trustCenterNdaRequestCreatorIDs: [ID!] trustCenterSubprocessorCreatorIDs: [ID!] - actionPlanCreatorIDs: [ID!] + trustCenterWatermarkConfigCreatorIDs: [ID!] + userCreatorIDs: [ID!] + userSettingCreatorIDs: [ID!] + vendorRiskScoreCreatorIDs: [ID!] + vulnerabilityCreatorIDs: [ID!] + workflowAssignmentCreatorIDs: [ID!] + workflowAssignmentTargetCreatorIDs: [ID!] + workflowDefinitionCreatorIDs: [ID!] + workflowEventCreatorIDs: [ID!] + workflowInstanceCreatorIDs: [ID!] + workflowObjectRefCreatorIDs: [ID!] + workflowProposalCreatorIDs: [ID!] + campaignsManagerIDs: [ID!] + complianceManagerIDs: [ID!] + groupManagerIDs: [ID!] + policiesManagerIDs: [ID!] + registryManagerIDs: [ID!] + riskManagerIDs: [ID!] + trustCenterManagerIDs: [ID!] + workflowsManagerIDs: [ID!] parentID: ID settingID: ID personalAccessTokenIDs: [ID!] @@ -99958,6 +100742,8 @@ enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums ADMIN MEMBER OWNER + SUPER_ADMIN + AUDITOR } """ OrgMembershipWhereInput is used for filtering OrgMembership objects. @@ -100423,7 +101209,7 @@ type Organization implements Node { the stripe customer ID this organization is associated to """ stripeCustomerID: String - controlCreators( + actionPlanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100454,7 +101240,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlImplementationCreators( + apiTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100485,7 +101271,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - controlObjectiveCreators( + assessmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100516,7 +101302,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - evidenceCreators( + assetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100547,7 +101333,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - assetCreators( + campaignCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100578,7 +101364,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - findingCreators( + campaignTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100609,7 +101395,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - vulnerabilityCreators( + checkResultCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100640,7 +101426,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - groupCreators( + contactCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100671,7 +101457,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - internalPolicyCreators( + controlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100702,7 +101488,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - mappedControlCreators( + controlImplementationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100733,7 +101519,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - narrativeCreators( + controlObjectiveCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100764,7 +101550,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - procedureCreators( + customTypeEnumCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100795,7 +101581,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - programCreators( + discussionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100826,7 +101612,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - riskCreators( + emailTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100857,7 +101643,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - identityHolderCreators( + entityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100888,7 +101674,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - scheduledJobCreators( + entityTypeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100919,7 +101705,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - standardCreators( + evidenceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100950,7 +101736,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templateCreators( + exportCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -100981,7 +101767,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - subprocessorCreators( + fileCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101012,7 +101798,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterDocCreators( + findingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101043,7 +101829,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - trustCenterSubprocessorCreators( + groupCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101074,7 +101860,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - actionPlanCreators( + identityHolderCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101105,8 +101891,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - parent: Organization - children( + integrationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101128,17 +101913,16 @@ type Organization implements Node { last: Int """ - Ordering options for Organizations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [OrganizationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Organizations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: OrganizationWhereInput - ): OrganizationConnection! - setting: OrganizationSetting - personalAccessTokens( + where: GroupWhereInput + ): GroupConnection! + integrationWebhookCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101160,16 +101944,16 @@ type Organization implements Node { last: Int """ - Ordering options for PersonalAccessTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PersonalAccessTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for PersonalAccessTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - apiTokens( + where: GroupWhereInput + ): GroupConnection! + internalPolicyCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101191,16 +101975,16 @@ type Organization implements Node { last: Int """ - Ordering options for APITokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [APITokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for APITokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: APITokenWhereInput - ): APITokenConnection! - emailTemplates( + where: GroupWhereInput + ): GroupConnection! + jobRunnerCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101222,16 +102006,16 @@ type Organization implements Node { last: Int """ - Ordering options for EmailTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EmailTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EmailTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EmailTemplateWhereInput - ): EmailTemplateConnection! - notificationPreferences( + where: GroupWhereInput + ): GroupConnection! + jobRunnerRegistrationTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101253,16 +102037,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationPreferences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationPreferenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationPreferences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationPreferenceWhereInput - ): NotificationPreferenceConnection! - notificationTemplates( + where: GroupWhereInput + ): GroupConnection! + jobRunnerTokenCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101284,16 +102068,16 @@ type Organization implements Node { last: Int """ - Ordering options for NotificationTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NotificationTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for NotificationTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NotificationTemplateWhereInput - ): NotificationTemplateConnection! - users( + where: GroupWhereInput + ): GroupConnection! + jobTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101315,16 +102099,16 @@ type Organization implements Node { last: Int """ - Ordering options for Users returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [UserOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Users returned from the connection. + Filtering options for Groups returned from the connection. """ - where: UserWhereInput - ): UserConnection! - files( + where: GroupWhereInput + ): GroupConnection! + mappedControlCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101346,16 +102130,16 @@ type Organization implements Node { last: Int """ - Ordering options for Files returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [FileOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Files returned from the connection. + Filtering options for Groups returned from the connection. """ - where: FileWhereInput - ): FileConnection! - events( + where: GroupWhereInput + ): GroupConnection! + narrativeCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101377,16 +102161,16 @@ type Organization implements Node { last: Int """ - Ordering options for Events returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EventOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Events returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EventWhereInput - ): EventConnection! - secrets( + where: GroupWhereInput + ): GroupConnection! + noteCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101408,17 +102192,16 @@ type Organization implements Node { last: Int """ - Ordering options for Hushes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [HushOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Hushes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: HushWhereInput - ): HushConnection! - avatarFile: File - groups( + where: GroupWhereInput + ): GroupConnection! + notificationTemplateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101449,7 +102232,7 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - templates( + organizationCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101471,16 +102254,16 @@ type Organization implements Node { last: Int """ - Ordering options for Templates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Templates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TemplateWhereInput - ): TemplateConnection! - integrations( + where: GroupWhereInput + ): GroupConnection! + platformCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101502,16 +102285,16 @@ type Organization implements Node { last: Int """ - Ordering options for Integrations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IntegrationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Integrations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IntegrationWhereInput - ): IntegrationConnection! - documents( + where: GroupWhereInput + ): GroupConnection! + procedureCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101533,17 +102316,78 @@ type Organization implements Node { last: Int """ - Ordering options for DocumentDataSlice returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DocumentDataOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DocumentDataSlice returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - orgSubscriptions: [OrgSubscription!] - invites( + where: GroupWhereInput + ): GroupConnection! + programCreators( + """ + 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! + remediationCreators( + """ + 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! + reviewCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101565,16 +102409,16 @@ type Organization implements Node { last: Int """ - Ordering options for Invites returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InviteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Invites returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InviteWhereInput - ): InviteConnection! - subscribers( + where: GroupWhereInput + ): GroupConnection! + riskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101596,16 +102440,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subscribers returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubscriberOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subscribers returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubscriberWhereInput - ): SubscriberConnection! - entities( + where: GroupWhereInput + ): GroupConnection! + scanCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101627,16 +102471,16 @@ type Organization implements Node { last: Int """ - Ordering options for Entities returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Entities returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityWhereInput - ): EntityConnection! - platforms( + where: GroupWhereInput + ): GroupConnection! + scheduledJobCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101658,16 +102502,16 @@ type Organization implements Node { last: Int """ - Ordering options for Platforms returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [PlatformOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Platforms returned from the connection. + Filtering options for Groups returned from the connection. """ - where: PlatformWhereInput - ): PlatformConnection! - identityHolders( + where: GroupWhereInput + ): GroupConnection! + scheduledJobRunCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101689,16 +102533,16 @@ type Organization implements Node { last: Int """ - Ordering options for IdentityHolders returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [IdentityHolderOrder!] + orderBy: [GroupOrder!] """ - Filtering options for IdentityHolders returned from the connection. + Filtering options for Groups returned from the connection. """ - where: IdentityHolderWhereInput - ): IdentityHolderConnection! - campaigns( + where: GroupWhereInput + ): GroupConnection! + standardCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101720,16 +102564,16 @@ type Organization implements Node { last: Int """ - Ordering options for Campaigns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Campaigns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignWhereInput - ): CampaignConnection! - campaignTargets( + where: GroupWhereInput + ): GroupConnection! + subcontrolCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101751,16 +102595,16 @@ type Organization implements Node { last: Int """ - Ordering options for CampaignTargets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CampaignTargetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CampaignTargets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CampaignTargetWhereInput - ): CampaignTargetConnection! - entityTypes( + where: GroupWhereInput + ): GroupConnection! + subprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101782,16 +102626,16 @@ type Organization implements Node { last: Int """ - Ordering options for EntityTypes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EntityTypeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for EntityTypes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - contacts( + where: GroupWhereInput + ): GroupConnection! + subscriberCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101813,16 +102657,16 @@ type Organization implements Node { last: Int """ - Ordering options for Contacts returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ContactOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Contacts returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ContactWhereInput - ): ContactConnection! - notes( + where: GroupWhereInput + ): GroupConnection! + systemDetailCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101844,16 +102688,16 @@ type Organization implements Node { last: Int """ - Ordering options for Notes returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NoteOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Notes returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NoteWhereInput - ): NoteConnection! - tasks( + where: GroupWhereInput + ): GroupConnection! + tagDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101875,16 +102719,16 @@ type Organization implements Node { last: Int """ - Ordering options for Tasks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TaskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Tasks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TaskWhereInput - ): TaskConnection! - programs( + where: GroupWhereInput + ): GroupConnection! + taskCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101906,16 +102750,16 @@ type Organization implements Node { last: Int """ - Ordering options for Programs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProgramOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Programs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProgramWhereInput - ): ProgramConnection! - systemDetails( + where: GroupWhereInput + ): GroupConnection! + templateCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101937,16 +102781,16 @@ type Organization implements Node { last: Int """ - Ordering options for SystemDetails returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SystemDetailOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SystemDetails returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SystemDetailWhereInput - ): SystemDetailConnection! - procedures( + where: GroupWhereInput + ): GroupConnection! + trustCenterCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101968,16 +102812,16 @@ type Organization implements Node { last: Int """ - Ordering options for Procedures returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ProcedureOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Procedures returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ProcedureWhereInput - ): ProcedureConnection! - internalPolicies( + where: GroupWhereInput + ): GroupConnection! + trustCenterComplianceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -101999,16 +102843,16 @@ type Organization implements Node { last: Int """ - Ordering options for InternalPolicies returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [InternalPolicyOrder!] + orderBy: [GroupOrder!] """ - Filtering options for InternalPolicies returned from the connection. + Filtering options for Groups returned from the connection. """ - where: InternalPolicyWhereInput - ): InternalPolicyConnection! - risks( + where: GroupWhereInput + ): GroupConnection! + trustCenterDocCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102030,16 +102874,16 @@ type Organization implements Node { last: Int """ - Ordering options for Risks returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [RiskOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Risks returned from the connection. + Filtering options for Groups returned from the connection. """ - where: RiskWhereInput - ): RiskConnection! - controlObjectives( + where: GroupWhereInput + ): GroupConnection! + trustCenterEntityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102061,16 +102905,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlObjectives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlObjectiveOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlObjectives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlObjectiveWhereInput - ): ControlObjectiveConnection! - narratives( + where: GroupWhereInput + ): GroupConnection! + trustCenterFaqCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102092,16 +102936,16 @@ type Organization implements Node { last: Int """ - Ordering options for Narratives returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [NarrativeOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Narratives returned from the connection. + Filtering options for Groups returned from the connection. """ - where: NarrativeWhereInput - ): NarrativeConnection! - controls( + where: GroupWhereInput + ): GroupConnection! + trustCenterNdaRequestCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102123,16 +102967,16 @@ type Organization implements Node { last: Int """ - Ordering options for Controls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Controls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlWhereInput - ): ControlConnection! - subcontrols( + where: GroupWhereInput + ): GroupConnection! + trustCenterSubprocessorCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102154,16 +102998,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subcontrols returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubcontrolOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subcontrols returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubcontrolWhereInput - ): SubcontrolConnection! - controlImplementations( + where: GroupWhereInput + ): GroupConnection! + trustCenterWatermarkConfigCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102185,16 +103029,16 @@ type Organization implements Node { last: Int """ - Ordering options for ControlImplementations returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ControlImplementationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ControlImplementations returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ControlImplementationWhereInput - ): ControlImplementationConnection! - mappedControls( + where: GroupWhereInput + ): GroupConnection! + userCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102216,16 +103060,16 @@ type Organization implements Node { last: Int """ - Ordering options for MappedControls returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [MappedControlOrder!] + orderBy: [GroupOrder!] """ - Filtering options for MappedControls returned from the connection. + Filtering options for Groups returned from the connection. """ - where: MappedControlWhereInput - ): MappedControlConnection! - evidence( + where: GroupWhereInput + ): GroupConnection! + userSettingCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102247,16 +103091,16 @@ type Organization implements Node { last: Int """ - Ordering options for Evidences returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [EvidenceOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Evidences returned from the connection. + Filtering options for Groups returned from the connection. """ - where: EvidenceWhereInput - ): EvidenceConnection! - standards( + where: GroupWhereInput + ): GroupConnection! + vendorRiskScoreCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102278,16 +103122,16 @@ type Organization implements Node { last: Int """ - Ordering options for Standards returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [StandardOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Standards returned from the connection. + Filtering options for Groups returned from the connection. """ - where: StandardWhereInput - ): StandardConnection! - actionPlans( + where: GroupWhereInput + ): GroupConnection! + vulnerabilityCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102309,16 +103153,16 @@ type Organization implements Node { last: Int """ - Ordering options for ActionPlans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ActionPlanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ActionPlans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ActionPlanWhereInput - ): ActionPlanConnection! - customDomains( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102340,16 +103184,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomDomains returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [CustomDomainOrder!] + orderBy: [GroupOrder!] """ - Filtering options for CustomDomains returned from the connection. + Filtering options for Groups returned from the connection. """ - where: CustomDomainWhereInput - ): CustomDomainConnection! - jobRunners( + where: GroupWhereInput + ): GroupConnection! + workflowAssignmentTargetCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102371,16 +103215,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunners returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunners returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerWhereInput - ): JobRunnerConnection! - jobRunnerTokens( + where: GroupWhereInput + ): GroupConnection! + workflowDefinitionCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102402,16 +103246,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerTokenWhereInput - ): JobRunnerTokenConnection! - jobRunnerRegistrationTokens( + where: GroupWhereInput + ): GroupConnection! + workflowEventCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102433,16 +103277,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobRunnerRegistrationTokens returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobRunnerRegistrationTokenOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobRunnerRegistrationTokens returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobRunnerRegistrationTokenWhereInput - ): JobRunnerRegistrationTokenConnection! - dnsVerifications( + where: GroupWhereInput + ): GroupConnection! + workflowInstanceCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102464,16 +103308,16 @@ type Organization implements Node { last: Int """ - Ordering options for DNSVerifications returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [DNSVerificationOrder!] + orderBy: [GroupOrder!] """ - Filtering options for DNSVerifications returned from the connection. + Filtering options for Groups returned from the connection. """ - where: DNSVerificationWhereInput - ): DNSVerificationConnection! - jobTemplates( + where: GroupWhereInput + ): GroupConnection! + workflowObjectRefCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102495,16 +103339,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobTemplates returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobTemplateOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobTemplates returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobTemplateWhereInput - ): JobTemplateConnection! - scheduledJobs( + where: GroupWhereInput + ): GroupConnection! + workflowProposalCreators( """ Returns the elements in the list that come after the specified cursor. """ @@ -102526,16 +103370,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobs returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobs returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobWhereInput - ): ScheduledJobConnection! - jobResults( + where: GroupWhereInput + ): GroupConnection! + campaignsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102557,16 +103401,16 @@ type Organization implements Node { last: Int """ - Ordering options for JobResults returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [JobResultOrder!] + orderBy: [GroupOrder!] """ - Filtering options for JobResults returned from the connection. + Filtering options for Groups returned from the connection. """ - where: JobResultWhereInput - ): JobResultConnection! - scheduledJobRuns( + where: GroupWhereInput + ): GroupConnection! + complianceManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102588,16 +103432,16 @@ type Organization implements Node { last: Int """ - Ordering options for ScheduledJobRuns returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScheduledJobRunOrder!] + orderBy: [GroupOrder!] """ - Filtering options for ScheduledJobRuns returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScheduledJobRunWhereInput - ): ScheduledJobRunConnection! - trustCenters( + where: GroupWhereInput + ): GroupConnection! + groupManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102619,16 +103463,16 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenters returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [TrustCenterOrder!] + orderBy: [GroupOrder!] """ - Filtering options for TrustCenters returned from the connection. + Filtering options for Groups returned from the connection. """ - where: TrustCenterWhereInput - ): TrustCenterConnection! - assets( + where: GroupWhereInput + ): GroupConnection! + policiesManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102650,16 +103494,16 @@ type Organization implements Node { last: Int """ - Ordering options for Assets returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [AssetOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Assets returned from the connection. + Filtering options for Groups returned from the connection. """ - where: AssetWhereInput - ): AssetConnection! - scans( + where: GroupWhereInput + ): GroupConnection! + registryManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102681,16 +103525,16 @@ type Organization implements Node { last: Int """ - Ordering options for Scans returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ScanOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Scans returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ScanWhereInput - ): ScanConnection! - slaDefinitions( + where: GroupWhereInput + ): GroupConnection! + riskManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102712,16 +103556,16 @@ type Organization implements Node { last: Int """ - Ordering options for SLADefinitions returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SLADefinitionOrder!] + orderBy: [GroupOrder!] """ - Filtering options for SLADefinitions returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SLADefinitionWhereInput - ): SLADefinitionConnection! - subprocessors( + where: GroupWhereInput + ): GroupConnection! + trustCenterManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102743,16 +103587,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subprocessors returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [SubprocessorOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Subprocessors returned from the connection. + Filtering options for Groups returned from the connection. """ - where: SubprocessorWhereInput - ): SubprocessorConnection! - exports( + where: GroupWhereInput + ): GroupConnection! + workflowsManager( """ Returns the elements in the list that come after the specified cursor. """ @@ -102774,16 +103618,17 @@ type Organization implements Node { last: Int """ - Ordering options for Exports returned from the connection. + Ordering options for Groups returned from the connection. """ - orderBy: [ExportOrder!] + orderBy: [GroupOrder!] """ - Filtering options for Exports returned from the connection. + Filtering options for Groups returned from the connection. """ - where: ExportWhereInput - ): ExportConnection! - trustCenterWatermarkConfigs( + where: GroupWhereInput + ): GroupConnection! + parent: Organization + children( """ Returns the elements in the list that come after the specified cursor. """ @@ -102805,16 +103650,17 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenterWatermarkConfigs returned from the connection. + Ordering options for Organizations returned from the connection. """ - orderBy: [TrustCenterWatermarkConfigOrder!] + orderBy: [OrganizationOrder!] """ - Filtering options for TrustCenterWatermarkConfigs returned from the connection. + Filtering options for Organizations returned from the connection. """ - where: TrustCenterWatermarkConfigWhereInput - ): TrustCenterWatermarkConfigConnection! - assessments( + where: OrganizationWhereInput + ): OrganizationConnection! + setting: OrganizationSetting + personalAccessTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -102836,16 +103682,16 @@ type Organization implements Node { last: Int """ - Ordering options for Assessments returned from the connection. + Ordering options for PersonalAccessTokens returned from the connection. """ - orderBy: [AssessmentOrder!] + orderBy: [PersonalAccessTokenOrder!] """ - Filtering options for Assessments returned from the connection. + Filtering options for PersonalAccessTokens returned from the connection. """ - where: AssessmentWhereInput - ): AssessmentConnection! - assessmentResponses( + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + apiTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -102867,16 +103713,16 @@ type Organization implements Node { last: Int """ - Ordering options for AssessmentResponses returned from the connection. + Ordering options for APITokens returned from the connection. """ - orderBy: [AssessmentResponseOrder!] + orderBy: [APITokenOrder!] """ - Filtering options for AssessmentResponses returned from the connection. + Filtering options for APITokens returned from the connection. """ - where: AssessmentResponseWhereInput - ): AssessmentResponseConnection! - customTypeEnums( + where: APITokenWhereInput + ): APITokenConnection! + emailTemplates( """ Returns the elements in the list that come after the specified cursor. """ @@ -102898,16 +103744,16 @@ type Organization implements Node { last: Int """ - Ordering options for CustomTypeEnums returned from the connection. + Ordering options for EmailTemplates returned from the connection. """ - orderBy: [CustomTypeEnumOrder!] + orderBy: [EmailTemplateOrder!] """ - Filtering options for CustomTypeEnums returned from the connection. + Filtering options for EmailTemplates returned from the connection. """ - where: CustomTypeEnumWhereInput - ): CustomTypeEnumConnection! - tagDefinitions( + where: EmailTemplateWhereInput + ): EmailTemplateConnection! + notificationPreferences( """ Returns the elements in the list that come after the specified cursor. """ @@ -102929,16 +103775,16 @@ type Organization implements Node { last: Int """ - Ordering options for TagDefinitions returned from the connection. + Ordering options for NotificationPreferences returned from the connection. """ - orderBy: [TagDefinitionOrder!] + orderBy: [NotificationPreferenceOrder!] """ - Filtering options for TagDefinitions returned from the connection. + Filtering options for NotificationPreferences returned from the connection. """ - where: TagDefinitionWhereInput - ): TagDefinitionConnection! - remediations( + where: NotificationPreferenceWhereInput + ): NotificationPreferenceConnection! + notificationTemplates( """ Returns the elements in the list that come after the specified cursor. """ @@ -102960,16 +103806,1692 @@ type Organization implements Node { last: Int """ - Ordering options for Remediations returned from the connection. + Ordering options for NotificationTemplates returned from the connection. """ - orderBy: [RemediationOrder!] + orderBy: [NotificationTemplateOrder!] """ - Filtering options for Remediations returned from the connection. + Filtering options for NotificationTemplates returned from the connection. """ - where: RemediationWhereInput - ): RemediationConnection! - findings( + where: NotificationTemplateWhereInput + ): NotificationTemplateConnection! + 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! + 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 + + """ + Ordering options for Files returned from the connection. + """ + orderBy: [FileOrder!] + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + 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 + + """ + Ordering options for Events returned from the connection. + """ + orderBy: [EventOrder!] + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + secrets( + """ + 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! + avatarFile: File + 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! + 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! + 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! + documents( + """ + 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 DocumentDataSlice returned from the connection. + """ + orderBy: [DocumentDataOrder!] + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + orgSubscriptions: [OrgSubscription!] + 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 + + """ + Ordering options for Invites returned from the connection. + """ + orderBy: [InviteOrder!] + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + 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 + + """ + Ordering options for Subscribers returned from the connection. + """ + orderBy: [SubscriberOrder!] + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + 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! + platforms( + """ + 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 Platforms returned from the connection. + """ + orderBy: [PlatformOrder!] + + """ + Filtering options for Platforms returned from the connection. + """ + where: PlatformWhereInput + ): PlatformConnection! + identityHolders( + """ + 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 IdentityHolders returned from the connection. + """ + orderBy: [IdentityHolderOrder!] + + """ + Filtering options for IdentityHolders returned from the connection. + """ + where: IdentityHolderWhereInput + ): IdentityHolderConnection! + campaigns( + """ + 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 Campaigns returned from the connection. + """ + orderBy: [CampaignOrder!] + + """ + Filtering options for Campaigns returned from the connection. + """ + where: CampaignWhereInput + ): CampaignConnection! + campaignTargets( + """ + 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 CampaignTargets returned from the connection. + """ + orderBy: [CampaignTargetOrder!] + + """ + Filtering options for CampaignTargets returned from the connection. + """ + where: CampaignTargetWhereInput + ): CampaignTargetConnection! + 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! + 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 + + """ + Ordering options for Contacts returned from the connection. + """ + orderBy: [ContactOrder!] + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + 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 + + """ + Ordering options for Notes returned from the connection. + """ + orderBy: [NoteOrder!] + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + 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 + + """ + Ordering options for Tasks returned from the connection. + """ + orderBy: [TaskOrder!] + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + 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 + + """ + Ordering options for Programs returned from the connection. + """ + orderBy: [ProgramOrder!] + + """ + Filtering options for Programs returned from the connection. + """ + where: ProgramWhereInput + ): ProgramConnection! + systemDetails( + """ + 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 SystemDetails returned from the connection. + """ + orderBy: [SystemDetailOrder!] + + """ + Filtering options for SystemDetails returned from the connection. + """ + where: SystemDetailWhereInput + ): SystemDetailConnection! + 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 + + """ + Ordering options for Procedures returned from the connection. + """ + orderBy: [ProcedureOrder!] + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + 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 + + """ + Ordering options for InternalPolicies returned from the connection. + """ + orderBy: [InternalPolicyOrder!] + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + 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 + + """ + Ordering options for Risks returned from the connection. + """ + orderBy: [RiskOrder!] + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + 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 + + """ + Ordering options for ControlObjectives returned from the connection. + """ + orderBy: [ControlObjectiveOrder!] + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + 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 + + """ + Ordering options for Narratives returned from the connection. + """ + orderBy: [NarrativeOrder!] + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + 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 + + """ + Ordering options for Controls returned from the connection. + """ + orderBy: [ControlOrder!] + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + 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 + + """ + Ordering options for Subcontrols returned from the connection. + """ + orderBy: [SubcontrolOrder!] + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + controlImplementations( + """ + 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 ControlImplementations returned from the connection. + """ + orderBy: [ControlImplementationOrder!] + + """ + Filtering options for ControlImplementations returned from the connection. + """ + where: ControlImplementationWhereInput + ): ControlImplementationConnection! + mappedControls( + """ + 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 MappedControls returned from the connection. + """ + orderBy: [MappedControlOrder!] + + """ + Filtering options for MappedControls returned from the connection. + """ + where: MappedControlWhereInput + ): MappedControlConnection! + evidence( + """ + 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 Evidences returned from the connection. + """ + orderBy: [EvidenceOrder!] + + """ + Filtering options for Evidences returned from the connection. + """ + where: EvidenceWhereInput + ): EvidenceConnection! + 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 + + """ + Ordering options for Standards returned from the connection. + """ + orderBy: [StandardOrder!] + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + 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 + + """ + Ordering options for ActionPlans returned from the connection. + """ + orderBy: [ActionPlanOrder!] + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + customDomains( + """ + 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 CustomDomains returned from the connection. + """ + orderBy: [CustomDomainOrder!] + + """ + Filtering options for CustomDomains returned from the connection. + """ + where: CustomDomainWhereInput + ): CustomDomainConnection! + jobRunners( + """ + 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 JobRunners returned from the connection. + """ + orderBy: [JobRunnerOrder!] + + """ + Filtering options for JobRunners returned from the connection. + """ + where: JobRunnerWhereInput + ): JobRunnerConnection! + jobRunnerTokens( + """ + 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 JobRunnerTokens returned from the connection. + """ + orderBy: [JobRunnerTokenOrder!] + + """ + Filtering options for JobRunnerTokens returned from the connection. + """ + where: JobRunnerTokenWhereInput + ): JobRunnerTokenConnection! + jobRunnerRegistrationTokens( + """ + 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 JobRunnerRegistrationTokens returned from the connection. + """ + orderBy: [JobRunnerRegistrationTokenOrder!] + + """ + Filtering options for JobRunnerRegistrationTokens returned from the connection. + """ + where: JobRunnerRegistrationTokenWhereInput + ): JobRunnerRegistrationTokenConnection! + dnsVerifications( + """ + 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 DNSVerifications returned from the connection. + """ + orderBy: [DNSVerificationOrder!] + + """ + Filtering options for DNSVerifications returned from the connection. + """ + where: DNSVerificationWhereInput + ): DNSVerificationConnection! + jobTemplates( + """ + 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 JobTemplates returned from the connection. + """ + orderBy: [JobTemplateOrder!] + + """ + Filtering options for JobTemplates returned from the connection. + """ + where: JobTemplateWhereInput + ): JobTemplateConnection! + scheduledJobs( + """ + 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 ScheduledJobs returned from the connection. + """ + orderBy: [ScheduledJobOrder!] + + """ + Filtering options for ScheduledJobs returned from the connection. + """ + where: ScheduledJobWhereInput + ): ScheduledJobConnection! + jobResults( + """ + 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 JobResults returned from the connection. + """ + orderBy: [JobResultOrder!] + + """ + Filtering options for JobResults returned from the connection. + """ + where: JobResultWhereInput + ): JobResultConnection! + scheduledJobRuns( + """ + 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 ScheduledJobRuns returned from the connection. + """ + orderBy: [ScheduledJobRunOrder!] + + """ + Filtering options for ScheduledJobRuns returned from the connection. + """ + where: ScheduledJobRunWhereInput + ): ScheduledJobRunConnection! + trustCenters( + """ + 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 TrustCenters returned from the connection. + """ + orderBy: [TrustCenterOrder!] + + """ + Filtering options for TrustCenters returned from the connection. + """ + where: TrustCenterWhereInput + ): TrustCenterConnection! + assets( + """ + 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 Assets returned from the connection. + """ + orderBy: [AssetOrder!] + + """ + Filtering options for Assets returned from the connection. + """ + where: AssetWhereInput + ): AssetConnection! + scans( + """ + 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 Scans returned from the connection. + """ + orderBy: [ScanOrder!] + + """ + Filtering options for Scans returned from the connection. + """ + where: ScanWhereInput + ): ScanConnection! + slaDefinitions( + """ + 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 SLADefinitions returned from the connection. + """ + orderBy: [SLADefinitionOrder!] + + """ + Filtering options for SLADefinitions returned from the connection. + """ + where: SLADefinitionWhereInput + ): SLADefinitionConnection! + subprocessors( + """ + 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 Subprocessors returned from the connection. + """ + orderBy: [SubprocessorOrder!] + + """ + Filtering options for Subprocessors returned from the connection. + """ + where: SubprocessorWhereInput + ): SubprocessorConnection! + exports( + """ + 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 Exports returned from the connection. + """ + orderBy: [ExportOrder!] + + """ + Filtering options for Exports returned from the connection. + """ + where: ExportWhereInput + ): ExportConnection! + trustCenterWatermarkConfigs( + """ + 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 TrustCenterWatermarkConfigs returned from the connection. + """ + orderBy: [TrustCenterWatermarkConfigOrder!] + + """ + Filtering options for TrustCenterWatermarkConfigs returned from the connection. + """ + where: TrustCenterWatermarkConfigWhereInput + ): TrustCenterWatermarkConfigConnection! + assessments( + """ + 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 Assessments returned from the connection. + """ + orderBy: [AssessmentOrder!] + + """ + Filtering options for Assessments returned from the connection. + """ + where: AssessmentWhereInput + ): AssessmentConnection! + assessmentResponses( + """ + 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 AssessmentResponses returned from the connection. + """ + orderBy: [AssessmentResponseOrder!] + + """ + Filtering options for AssessmentResponses returned from the connection. + """ + where: AssessmentResponseWhereInput + ): AssessmentResponseConnection! + customTypeEnums( + """ + 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 CustomTypeEnums returned from the connection. + """ + orderBy: [CustomTypeEnumOrder!] + + """ + Filtering options for CustomTypeEnums returned from the connection. + """ + where: CustomTypeEnumWhereInput + ): CustomTypeEnumConnection! + tagDefinitions( + """ + 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 TagDefinitions returned from the connection. + """ + orderBy: [TagDefinitionOrder!] + + """ + Filtering options for TagDefinitions returned from the connection. + """ + where: TagDefinitionWhereInput + ): TagDefinitionConnection! + remediations( + """ + 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 Remediations returned from the connection. + """ + orderBy: [RemediationOrder!] + + """ + Filtering options for Remediations returned from the connection. + """ + where: RemediationWhereInput + ): RemediationConnection! + findings( """ Returns the elements in the list that come after the specified cursor. """ @@ -104364,6 +106886,46 @@ input OrganizationWhereInput { avatarUpdatedAtIsNil: Boolean avatarUpdatedAtNotNil: Boolean """ + action_plan_creators edge predicates + """ + hasActionPlanCreators: Boolean + hasActionPlanCreatorsWith: [GroupWhereInput!] + """ + api_token_creators edge predicates + """ + hasAPITokenCreators: Boolean + hasAPITokenCreatorsWith: [GroupWhereInput!] + """ + assessment_creators edge predicates + """ + hasAssessmentCreators: Boolean + hasAssessmentCreatorsWith: [GroupWhereInput!] + """ + asset_creators edge predicates + """ + hasAssetCreators: Boolean + hasAssetCreatorsWith: [GroupWhereInput!] + """ + campaign_creators edge predicates + """ + hasCampaignCreators: Boolean + hasCampaignCreatorsWith: [GroupWhereInput!] + """ + campaign_target_creators edge predicates + """ + hasCampaignTargetCreators: Boolean + hasCampaignTargetCreatorsWith: [GroupWhereInput!] + """ + check_result_creators edge predicates + """ + hasCheckResultCreators: Boolean + hasCheckResultCreatorsWith: [GroupWhereInput!] + """ + contact_creators edge predicates + """ + hasContactCreators: Boolean + hasContactCreatorsWith: [GroupWhereInput!] + """ control_creators edge predicates """ hasControlCreators: Boolean @@ -104379,36 +106941,96 @@ input OrganizationWhereInput { hasControlObjectiveCreators: Boolean hasControlObjectiveCreatorsWith: [GroupWhereInput!] """ + custom_type_enum_creators edge predicates + """ + hasCustomTypeEnumCreators: Boolean + hasCustomTypeEnumCreatorsWith: [GroupWhereInput!] + """ + discussion_creators edge predicates + """ + hasDiscussionCreators: Boolean + hasDiscussionCreatorsWith: [GroupWhereInput!] + """ + email_template_creators edge predicates + """ + hasEmailTemplateCreators: Boolean + hasEmailTemplateCreatorsWith: [GroupWhereInput!] + """ + entity_creators edge predicates + """ + hasEntityCreators: Boolean + hasEntityCreatorsWith: [GroupWhereInput!] + """ + entity_type_creators edge predicates + """ + hasEntityTypeCreators: Boolean + hasEntityTypeCreatorsWith: [GroupWhereInput!] + """ evidence_creators edge predicates """ hasEvidenceCreators: Boolean hasEvidenceCreatorsWith: [GroupWhereInput!] """ - asset_creators edge predicates + export_creators edge predicates """ - hasAssetCreators: Boolean - hasAssetCreatorsWith: [GroupWhereInput!] + hasExportCreators: Boolean + hasExportCreatorsWith: [GroupWhereInput!] + """ + file_creators edge predicates + """ + hasFileCreators: Boolean + hasFileCreatorsWith: [GroupWhereInput!] """ finding_creators edge predicates """ hasFindingCreators: Boolean hasFindingCreatorsWith: [GroupWhereInput!] """ - vulnerability_creators edge predicates - """ - hasVulnerabilityCreators: Boolean - hasVulnerabilityCreatorsWith: [GroupWhereInput!] - """ group_creators edge predicates """ hasGroupCreators: Boolean hasGroupCreatorsWith: [GroupWhereInput!] """ + identity_holder_creators edge predicates + """ + hasIdentityHolderCreators: Boolean + hasIdentityHolderCreatorsWith: [GroupWhereInput!] + """ + integration_creators edge predicates + """ + hasIntegrationCreators: Boolean + hasIntegrationCreatorsWith: [GroupWhereInput!] + """ + integration_webhook_creators edge predicates + """ + hasIntegrationWebhookCreators: Boolean + hasIntegrationWebhookCreatorsWith: [GroupWhereInput!] + """ internal_policy_creators edge predicates """ hasInternalPolicyCreators: Boolean hasInternalPolicyCreatorsWith: [GroupWhereInput!] """ + job_runner_creators edge predicates + """ + hasJobRunnerCreators: Boolean + hasJobRunnerCreatorsWith: [GroupWhereInput!] + """ + job_runner_registration_token_creators edge predicates + """ + hasJobRunnerRegistrationTokenCreators: Boolean + hasJobRunnerRegistrationTokenCreatorsWith: [GroupWhereInput!] + """ + job_runner_token_creators edge predicates + """ + hasJobRunnerTokenCreators: Boolean + hasJobRunnerTokenCreatorsWith: [GroupWhereInput!] + """ + job_template_creators edge predicates + """ + hasJobTemplateCreators: Boolean + hasJobTemplateCreatorsWith: [GroupWhereInput!] + """ mapped_control_creators edge predicates """ hasMappedControlCreators: Boolean @@ -104419,6 +107041,26 @@ input OrganizationWhereInput { hasNarrativeCreators: Boolean hasNarrativeCreatorsWith: [GroupWhereInput!] """ + note_creators edge predicates + """ + hasNoteCreators: Boolean + hasNoteCreatorsWith: [GroupWhereInput!] + """ + notification_template_creators edge predicates + """ + hasNotificationTemplateCreators: Boolean + hasNotificationTemplateCreatorsWith: [GroupWhereInput!] + """ + organization_creators edge predicates + """ + hasOrganizationCreators: Boolean + hasOrganizationCreatorsWith: [GroupWhereInput!] + """ + platform_creators edge predicates + """ + hasPlatformCreators: Boolean + hasPlatformCreatorsWith: [GroupWhereInput!] + """ procedure_creators edge predicates """ hasProcedureCreators: Boolean @@ -104429,50 +107071,210 @@ input OrganizationWhereInput { hasProgramCreators: Boolean hasProgramCreatorsWith: [GroupWhereInput!] """ + remediation_creators edge predicates + """ + hasRemediationCreators: Boolean + hasRemediationCreatorsWith: [GroupWhereInput!] + """ + review_creators edge predicates + """ + hasReviewCreators: Boolean + hasReviewCreatorsWith: [GroupWhereInput!] + """ risk_creators edge predicates """ hasRiskCreators: Boolean hasRiskCreatorsWith: [GroupWhereInput!] """ - identity_holder_creators edge predicates + scan_creators edge predicates """ - hasIdentityHolderCreators: Boolean - hasIdentityHolderCreatorsWith: [GroupWhereInput!] + hasScanCreators: Boolean + hasScanCreatorsWith: [GroupWhereInput!] """ scheduled_job_creators edge predicates """ hasScheduledJobCreators: Boolean hasScheduledJobCreatorsWith: [GroupWhereInput!] """ + scheduled_job_run_creators edge predicates + """ + hasScheduledJobRunCreators: Boolean + hasScheduledJobRunCreatorsWith: [GroupWhereInput!] + """ standard_creators edge predicates """ hasStandardCreators: Boolean hasStandardCreatorsWith: [GroupWhereInput!] """ - template_creators edge predicates + subcontrol_creators edge predicates """ - hasTemplateCreators: Boolean - hasTemplateCreatorsWith: [GroupWhereInput!] + hasSubcontrolCreators: Boolean + hasSubcontrolCreatorsWith: [GroupWhereInput!] """ subprocessor_creators edge predicates """ hasSubprocessorCreators: Boolean hasSubprocessorCreatorsWith: [GroupWhereInput!] """ + subscriber_creators edge predicates + """ + hasSubscriberCreators: Boolean + hasSubscriberCreatorsWith: [GroupWhereInput!] + """ + system_detail_creators edge predicates + """ + hasSystemDetailCreators: Boolean + hasSystemDetailCreatorsWith: [GroupWhereInput!] + """ + tag_definition_creators edge predicates + """ + hasTagDefinitionCreators: Boolean + hasTagDefinitionCreatorsWith: [GroupWhereInput!] + """ + task_creators edge predicates + """ + hasTaskCreators: Boolean + hasTaskCreatorsWith: [GroupWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [GroupWhereInput!] + """ + trust_center_creators edge predicates + """ + hasTrustCenterCreators: Boolean + hasTrustCenterCreatorsWith: [GroupWhereInput!] + """ + trust_center_compliance_creators edge predicates + """ + hasTrustCenterComplianceCreators: Boolean + hasTrustCenterComplianceCreatorsWith: [GroupWhereInput!] + """ trust_center_doc_creators edge predicates """ hasTrustCenterDocCreators: Boolean hasTrustCenterDocCreatorsWith: [GroupWhereInput!] """ + trust_center_entity_creators edge predicates + """ + hasTrustCenterEntityCreators: Boolean + hasTrustCenterEntityCreatorsWith: [GroupWhereInput!] + """ + trust_center_faq_creators edge predicates + """ + hasTrustCenterFaqCreators: Boolean + hasTrustCenterFaqCreatorsWith: [GroupWhereInput!] + """ + trust_center_nda_request_creators edge predicates + """ + hasTrustCenterNdaRequestCreators: Boolean + hasTrustCenterNdaRequestCreatorsWith: [GroupWhereInput!] + """ trust_center_subprocessor_creators edge predicates """ hasTrustCenterSubprocessorCreators: Boolean hasTrustCenterSubprocessorCreatorsWith: [GroupWhereInput!] """ - action_plan_creators edge predicates + trust_center_watermark_config_creators edge predicates """ - hasActionPlanCreators: Boolean - hasActionPlanCreatorsWith: [GroupWhereInput!] + hasTrustCenterWatermarkConfigCreators: Boolean + hasTrustCenterWatermarkConfigCreatorsWith: [GroupWhereInput!] + """ + user_creators edge predicates + """ + hasUserCreators: Boolean + hasUserCreatorsWith: [GroupWhereInput!] + """ + user_setting_creators edge predicates + """ + hasUserSettingCreators: Boolean + hasUserSettingCreatorsWith: [GroupWhereInput!] + """ + vendor_risk_score_creators edge predicates + """ + hasVendorRiskScoreCreators: Boolean + hasVendorRiskScoreCreatorsWith: [GroupWhereInput!] + """ + vulnerability_creators edge predicates + """ + hasVulnerabilityCreators: Boolean + hasVulnerabilityCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_creators edge predicates + """ + hasWorkflowAssignmentCreators: Boolean + hasWorkflowAssignmentCreatorsWith: [GroupWhereInput!] + """ + workflow_assignment_target_creators edge predicates + """ + hasWorkflowAssignmentTargetCreators: Boolean + hasWorkflowAssignmentTargetCreatorsWith: [GroupWhereInput!] + """ + workflow_definition_creators edge predicates + """ + hasWorkflowDefinitionCreators: Boolean + hasWorkflowDefinitionCreatorsWith: [GroupWhereInput!] + """ + workflow_event_creators edge predicates + """ + hasWorkflowEventCreators: Boolean + hasWorkflowEventCreatorsWith: [GroupWhereInput!] + """ + workflow_instance_creators edge predicates + """ + hasWorkflowInstanceCreators: Boolean + hasWorkflowInstanceCreatorsWith: [GroupWhereInput!] + """ + workflow_object_ref_creators edge predicates + """ + hasWorkflowObjectRefCreators: Boolean + hasWorkflowObjectRefCreatorsWith: [GroupWhereInput!] + """ + workflow_proposal_creators edge predicates + """ + hasWorkflowProposalCreators: Boolean + hasWorkflowProposalCreatorsWith: [GroupWhereInput!] + """ + campaigns_manager edge predicates + """ + hasCampaignsManager: Boolean + hasCampaignsManagerWith: [GroupWhereInput!] + """ + compliance_manager edge predicates + """ + hasComplianceManager: Boolean + hasComplianceManagerWith: [GroupWhereInput!] + """ + group_manager edge predicates + """ + hasGroupManager: Boolean + hasGroupManagerWith: [GroupWhereInput!] + """ + policies_manager edge predicates + """ + hasPoliciesManager: Boolean + hasPoliciesManagerWith: [GroupWhereInput!] + """ + registry_manager edge predicates + """ + hasRegistryManager: Boolean + hasRegistryManagerWith: [GroupWhereInput!] + """ + risk_manager edge predicates + """ + hasRiskManager: Boolean + hasRiskManagerWith: [GroupWhereInput!] + """ + trust_center_manager edge predicates + """ + hasTrustCenterManager: Boolean + hasTrustCenterManagerWith: [GroupWhereInput!] + """ + workflows_manager edge predicates + """ + hasWorkflowsManager: Boolean + hasWorkflowsManagerWith: [GroupWhereInput!] """ parent edge predicates """ @@ -109437,6 +112239,7 @@ ProgramMembershipRole is enum for the field role enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/common/enums.Role") { ADMIN MEMBER + AUDITOR } """ ProgramMembershipWhereInput is used for filtering ProgramMembership objects. @@ -129620,8 +132423,6 @@ input UpdateAssessmentInput { """ responseDueDuration: Int clearResponseDueDuration: Boolean - ownerID: ID - clearOwner: Boolean addBlockedGroupIDs: [ID!] removeBlockedGroupIDs: [ID!] clearBlockedGroups: Boolean @@ -133864,6 +136665,30 @@ input UpdateOrganizationInput { """ avatarUpdatedAt: Time clearAvatarUpdatedAt: Boolean + addActionPlanCreatorIDs: [ID!] + removeActionPlanCreatorIDs: [ID!] + clearActionPlanCreators: Boolean + addAPITokenCreatorIDs: [ID!] + removeAPITokenCreatorIDs: [ID!] + clearAPITokenCreators: Boolean + addAssessmentCreatorIDs: [ID!] + removeAssessmentCreatorIDs: [ID!] + clearAssessmentCreators: Boolean + addAssetCreatorIDs: [ID!] + removeAssetCreatorIDs: [ID!] + clearAssetCreators: Boolean + addCampaignCreatorIDs: [ID!] + removeCampaignCreatorIDs: [ID!] + clearCampaignCreators: Boolean + addCampaignTargetCreatorIDs: [ID!] + removeCampaignTargetCreatorIDs: [ID!] + clearCampaignTargetCreators: Boolean + addCheckResultCreatorIDs: [ID!] + removeCheckResultCreatorIDs: [ID!] + clearCheckResultCreators: Boolean + addContactCreatorIDs: [ID!] + removeContactCreatorIDs: [ID!] + clearContactCreators: Boolean addControlCreatorIDs: [ID!] removeControlCreatorIDs: [ID!] clearControlCreators: Boolean @@ -133873,63 +136698,207 @@ input UpdateOrganizationInput { addControlObjectiveCreatorIDs: [ID!] removeControlObjectiveCreatorIDs: [ID!] clearControlObjectiveCreators: Boolean + addCustomTypeEnumCreatorIDs: [ID!] + removeCustomTypeEnumCreatorIDs: [ID!] + clearCustomTypeEnumCreators: Boolean + addDiscussionCreatorIDs: [ID!] + removeDiscussionCreatorIDs: [ID!] + clearDiscussionCreators: Boolean + addEmailTemplateCreatorIDs: [ID!] + removeEmailTemplateCreatorIDs: [ID!] + clearEmailTemplateCreators: Boolean + addEntityCreatorIDs: [ID!] + removeEntityCreatorIDs: [ID!] + clearEntityCreators: Boolean + addEntityTypeCreatorIDs: [ID!] + removeEntityTypeCreatorIDs: [ID!] + clearEntityTypeCreators: Boolean addEvidenceCreatorIDs: [ID!] removeEvidenceCreatorIDs: [ID!] clearEvidenceCreators: Boolean - addAssetCreatorIDs: [ID!] - removeAssetCreatorIDs: [ID!] - clearAssetCreators: Boolean + addExportCreatorIDs: [ID!] + removeExportCreatorIDs: [ID!] + clearExportCreators: Boolean + addFileCreatorIDs: [ID!] + removeFileCreatorIDs: [ID!] + clearFileCreators: Boolean addFindingCreatorIDs: [ID!] removeFindingCreatorIDs: [ID!] clearFindingCreators: Boolean - addVulnerabilityCreatorIDs: [ID!] - removeVulnerabilityCreatorIDs: [ID!] - clearVulnerabilityCreators: Boolean addGroupCreatorIDs: [ID!] removeGroupCreatorIDs: [ID!] clearGroupCreators: Boolean + addIdentityHolderCreatorIDs: [ID!] + removeIdentityHolderCreatorIDs: [ID!] + clearIdentityHolderCreators: Boolean + addIntegrationCreatorIDs: [ID!] + removeIntegrationCreatorIDs: [ID!] + clearIntegrationCreators: Boolean + addIntegrationWebhookCreatorIDs: [ID!] + removeIntegrationWebhookCreatorIDs: [ID!] + clearIntegrationWebhookCreators: Boolean addInternalPolicyCreatorIDs: [ID!] removeInternalPolicyCreatorIDs: [ID!] clearInternalPolicyCreators: Boolean + addJobRunnerCreatorIDs: [ID!] + removeJobRunnerCreatorIDs: [ID!] + clearJobRunnerCreators: Boolean + addJobRunnerRegistrationTokenCreatorIDs: [ID!] + removeJobRunnerRegistrationTokenCreatorIDs: [ID!] + clearJobRunnerRegistrationTokenCreators: Boolean + addJobRunnerTokenCreatorIDs: [ID!] + removeJobRunnerTokenCreatorIDs: [ID!] + clearJobRunnerTokenCreators: Boolean + addJobTemplateCreatorIDs: [ID!] + removeJobTemplateCreatorIDs: [ID!] + clearJobTemplateCreators: Boolean addMappedControlCreatorIDs: [ID!] removeMappedControlCreatorIDs: [ID!] clearMappedControlCreators: Boolean addNarrativeCreatorIDs: [ID!] removeNarrativeCreatorIDs: [ID!] clearNarrativeCreators: Boolean + addNoteCreatorIDs: [ID!] + removeNoteCreatorIDs: [ID!] + clearNoteCreators: Boolean + addNotificationTemplateCreatorIDs: [ID!] + removeNotificationTemplateCreatorIDs: [ID!] + clearNotificationTemplateCreators: Boolean + addOrganizationCreatorIDs: [ID!] + removeOrganizationCreatorIDs: [ID!] + clearOrganizationCreators: Boolean + addPlatformCreatorIDs: [ID!] + removePlatformCreatorIDs: [ID!] + clearPlatformCreators: Boolean addProcedureCreatorIDs: [ID!] removeProcedureCreatorIDs: [ID!] clearProcedureCreators: Boolean addProgramCreatorIDs: [ID!] removeProgramCreatorIDs: [ID!] clearProgramCreators: Boolean + addRemediationCreatorIDs: [ID!] + removeRemediationCreatorIDs: [ID!] + clearRemediationCreators: Boolean + addReviewCreatorIDs: [ID!] + removeReviewCreatorIDs: [ID!] + clearReviewCreators: Boolean addRiskCreatorIDs: [ID!] removeRiskCreatorIDs: [ID!] clearRiskCreators: Boolean - addIdentityHolderCreatorIDs: [ID!] - removeIdentityHolderCreatorIDs: [ID!] - clearIdentityHolderCreators: Boolean + addScanCreatorIDs: [ID!] + removeScanCreatorIDs: [ID!] + clearScanCreators: Boolean addScheduledJobCreatorIDs: [ID!] removeScheduledJobCreatorIDs: [ID!] clearScheduledJobCreators: Boolean + addScheduledJobRunCreatorIDs: [ID!] + removeScheduledJobRunCreatorIDs: [ID!] + clearScheduledJobRunCreators: Boolean addStandardCreatorIDs: [ID!] removeStandardCreatorIDs: [ID!] clearStandardCreators: Boolean - addTemplateCreatorIDs: [ID!] - removeTemplateCreatorIDs: [ID!] - clearTemplateCreators: Boolean + addSubcontrolCreatorIDs: [ID!] + removeSubcontrolCreatorIDs: [ID!] + clearSubcontrolCreators: Boolean addSubprocessorCreatorIDs: [ID!] removeSubprocessorCreatorIDs: [ID!] clearSubprocessorCreators: Boolean + addSubscriberCreatorIDs: [ID!] + removeSubscriberCreatorIDs: [ID!] + clearSubscriberCreators: Boolean + addSystemDetailCreatorIDs: [ID!] + removeSystemDetailCreatorIDs: [ID!] + clearSystemDetailCreators: Boolean + addTagDefinitionCreatorIDs: [ID!] + removeTagDefinitionCreatorIDs: [ID!] + clearTagDefinitionCreators: Boolean + addTaskCreatorIDs: [ID!] + removeTaskCreatorIDs: [ID!] + clearTaskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addTrustCenterCreatorIDs: [ID!] + removeTrustCenterCreatorIDs: [ID!] + clearTrustCenterCreators: Boolean + addTrustCenterComplianceCreatorIDs: [ID!] + removeTrustCenterComplianceCreatorIDs: [ID!] + clearTrustCenterComplianceCreators: Boolean addTrustCenterDocCreatorIDs: [ID!] removeTrustCenterDocCreatorIDs: [ID!] clearTrustCenterDocCreators: Boolean + addTrustCenterEntityCreatorIDs: [ID!] + removeTrustCenterEntityCreatorIDs: [ID!] + clearTrustCenterEntityCreators: Boolean + addTrustCenterFaqCreatorIDs: [ID!] + removeTrustCenterFaqCreatorIDs: [ID!] + clearTrustCenterFaqCreators: Boolean + addTrustCenterNdaRequestCreatorIDs: [ID!] + removeTrustCenterNdaRequestCreatorIDs: [ID!] + clearTrustCenterNdaRequestCreators: Boolean addTrustCenterSubprocessorCreatorIDs: [ID!] removeTrustCenterSubprocessorCreatorIDs: [ID!] clearTrustCenterSubprocessorCreators: Boolean - addActionPlanCreatorIDs: [ID!] - removeActionPlanCreatorIDs: [ID!] - clearActionPlanCreators: Boolean + addTrustCenterWatermarkConfigCreatorIDs: [ID!] + removeTrustCenterWatermarkConfigCreatorIDs: [ID!] + clearTrustCenterWatermarkConfigCreators: Boolean + addUserCreatorIDs: [ID!] + removeUserCreatorIDs: [ID!] + clearUserCreators: Boolean + addUserSettingCreatorIDs: [ID!] + removeUserSettingCreatorIDs: [ID!] + clearUserSettingCreators: Boolean + addVendorRiskScoreCreatorIDs: [ID!] + removeVendorRiskScoreCreatorIDs: [ID!] + clearVendorRiskScoreCreators: Boolean + addVulnerabilityCreatorIDs: [ID!] + removeVulnerabilityCreatorIDs: [ID!] + clearVulnerabilityCreators: Boolean + addWorkflowAssignmentCreatorIDs: [ID!] + removeWorkflowAssignmentCreatorIDs: [ID!] + clearWorkflowAssignmentCreators: Boolean + addWorkflowAssignmentTargetCreatorIDs: [ID!] + removeWorkflowAssignmentTargetCreatorIDs: [ID!] + clearWorkflowAssignmentTargetCreators: Boolean + addWorkflowDefinitionCreatorIDs: [ID!] + removeWorkflowDefinitionCreatorIDs: [ID!] + clearWorkflowDefinitionCreators: Boolean + addWorkflowEventCreatorIDs: [ID!] + removeWorkflowEventCreatorIDs: [ID!] + clearWorkflowEventCreators: Boolean + addWorkflowInstanceCreatorIDs: [ID!] + removeWorkflowInstanceCreatorIDs: [ID!] + clearWorkflowInstanceCreators: Boolean + addWorkflowObjectRefCreatorIDs: [ID!] + removeWorkflowObjectRefCreatorIDs: [ID!] + clearWorkflowObjectRefCreators: Boolean + addWorkflowProposalCreatorIDs: [ID!] + removeWorkflowProposalCreatorIDs: [ID!] + clearWorkflowProposalCreators: Boolean + addCampaignsManagerIDs: [ID!] + removeCampaignsManagerIDs: [ID!] + clearCampaignsManager: Boolean + addComplianceManagerIDs: [ID!] + removeComplianceManagerIDs: [ID!] + clearComplianceManager: Boolean + addGroupManagerIDs: [ID!] + removeGroupManagerIDs: [ID!] + clearGroupManager: Boolean + addPoliciesManagerIDs: [ID!] + removePoliciesManagerIDs: [ID!] + clearPoliciesManager: Boolean + addRegistryManagerIDs: [ID!] + removeRegistryManagerIDs: [ID!] + clearRegistryManager: Boolean + addRiskManagerIDs: [ID!] + removeRiskManagerIDs: [ID!] + clearRiskManager: Boolean + addTrustCenterManagerIDs: [ID!] + removeTrustCenterManagerIDs: [ID!] + clearTrustCenterManager: Boolean + addWorkflowsManagerIDs: [ID!] + removeWorkflowsManagerIDs: [ID!] + clearWorkflowsManager: Boolean settingID: ID clearSetting: Boolean addPersonalAccessTokenIDs: [ID!] @@ -164829,50 +167798,162 @@ func (ec *executionContext) childFields_Organization(ctx context.Context, field return ec.fieldContext_Organization_dedicatedDb(ctx, field) case "stripeCustomerID": return ec.fieldContext_Organization_stripeCustomerID(ctx, field) + case "actionPlanCreators": + return ec.fieldContext_Organization_actionPlanCreators(ctx, field) + case "apiTokenCreators": + return ec.fieldContext_Organization_apiTokenCreators(ctx, field) + case "assessmentCreators": + return ec.fieldContext_Organization_assessmentCreators(ctx, field) + case "assetCreators": + return ec.fieldContext_Organization_assetCreators(ctx, field) + case "campaignCreators": + return ec.fieldContext_Organization_campaignCreators(ctx, field) + case "campaignTargetCreators": + return ec.fieldContext_Organization_campaignTargetCreators(ctx, field) + case "checkResultCreators": + return ec.fieldContext_Organization_checkResultCreators(ctx, field) + case "contactCreators": + return ec.fieldContext_Organization_contactCreators(ctx, field) case "controlCreators": return ec.fieldContext_Organization_controlCreators(ctx, field) case "controlImplementationCreators": return ec.fieldContext_Organization_controlImplementationCreators(ctx, field) case "controlObjectiveCreators": return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "customTypeEnumCreators": + return ec.fieldContext_Organization_customTypeEnumCreators(ctx, field) + case "discussionCreators": + return ec.fieldContext_Organization_discussionCreators(ctx, field) + case "emailTemplateCreators": + return ec.fieldContext_Organization_emailTemplateCreators(ctx, field) + case "entityCreators": + return ec.fieldContext_Organization_entityCreators(ctx, field) + case "entityTypeCreators": + return ec.fieldContext_Organization_entityTypeCreators(ctx, field) case "evidenceCreators": return ec.fieldContext_Organization_evidenceCreators(ctx, field) - case "assetCreators": - return ec.fieldContext_Organization_assetCreators(ctx, field) + case "exportCreators": + return ec.fieldContext_Organization_exportCreators(ctx, field) + case "fileCreators": + return ec.fieldContext_Organization_fileCreators(ctx, field) case "findingCreators": return ec.fieldContext_Organization_findingCreators(ctx, field) - case "vulnerabilityCreators": - return ec.fieldContext_Organization_vulnerabilityCreators(ctx, field) case "groupCreators": return ec.fieldContext_Organization_groupCreators(ctx, field) + case "identityHolderCreators": + return ec.fieldContext_Organization_identityHolderCreators(ctx, field) + case "integrationCreators": + return ec.fieldContext_Organization_integrationCreators(ctx, field) + case "integrationWebhookCreators": + return ec.fieldContext_Organization_integrationWebhookCreators(ctx, field) case "internalPolicyCreators": return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "jobRunnerCreators": + return ec.fieldContext_Organization_jobRunnerCreators(ctx, field) + case "jobRunnerRegistrationTokenCreators": + return ec.fieldContext_Organization_jobRunnerRegistrationTokenCreators(ctx, field) + case "jobRunnerTokenCreators": + return ec.fieldContext_Organization_jobRunnerTokenCreators(ctx, field) + case "jobTemplateCreators": + return ec.fieldContext_Organization_jobTemplateCreators(ctx, field) case "mappedControlCreators": return ec.fieldContext_Organization_mappedControlCreators(ctx, field) case "narrativeCreators": return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "noteCreators": + return ec.fieldContext_Organization_noteCreators(ctx, field) + case "notificationTemplateCreators": + return ec.fieldContext_Organization_notificationTemplateCreators(ctx, field) + case "organizationCreators": + return ec.fieldContext_Organization_organizationCreators(ctx, field) + case "platformCreators": + return ec.fieldContext_Organization_platformCreators(ctx, field) case "procedureCreators": return ec.fieldContext_Organization_procedureCreators(ctx, field) case "programCreators": return ec.fieldContext_Organization_programCreators(ctx, field) + case "remediationCreators": + return ec.fieldContext_Organization_remediationCreators(ctx, field) + case "reviewCreators": + return ec.fieldContext_Organization_reviewCreators(ctx, field) case "riskCreators": return ec.fieldContext_Organization_riskCreators(ctx, field) - case "identityHolderCreators": - return ec.fieldContext_Organization_identityHolderCreators(ctx, field) + case "scanCreators": + return ec.fieldContext_Organization_scanCreators(ctx, field) case "scheduledJobCreators": return ec.fieldContext_Organization_scheduledJobCreators(ctx, field) + case "scheduledJobRunCreators": + return ec.fieldContext_Organization_scheduledJobRunCreators(ctx, field) case "standardCreators": return ec.fieldContext_Organization_standardCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) + case "subcontrolCreators": + return ec.fieldContext_Organization_subcontrolCreators(ctx, field) case "subprocessorCreators": return ec.fieldContext_Organization_subprocessorCreators(ctx, field) + case "subscriberCreators": + return ec.fieldContext_Organization_subscriberCreators(ctx, field) + case "systemDetailCreators": + return ec.fieldContext_Organization_systemDetailCreators(ctx, field) + case "tagDefinitionCreators": + return ec.fieldContext_Organization_tagDefinitionCreators(ctx, field) + case "taskCreators": + return ec.fieldContext_Organization_taskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "trustCenterCreators": + return ec.fieldContext_Organization_trustCenterCreators(ctx, field) + case "trustCenterComplianceCreators": + return ec.fieldContext_Organization_trustCenterComplianceCreators(ctx, field) case "trustCenterDocCreators": return ec.fieldContext_Organization_trustCenterDocCreators(ctx, field) + case "trustCenterEntityCreators": + return ec.fieldContext_Organization_trustCenterEntityCreators(ctx, field) + case "trustCenterFaqCreators": + return ec.fieldContext_Organization_trustCenterFaqCreators(ctx, field) + case "trustCenterNdaRequestCreators": + return ec.fieldContext_Organization_trustCenterNdaRequestCreators(ctx, field) case "trustCenterSubprocessorCreators": return ec.fieldContext_Organization_trustCenterSubprocessorCreators(ctx, field) - case "actionPlanCreators": - return ec.fieldContext_Organization_actionPlanCreators(ctx, field) + case "trustCenterWatermarkConfigCreators": + return ec.fieldContext_Organization_trustCenterWatermarkConfigCreators(ctx, field) + case "userCreators": + return ec.fieldContext_Organization_userCreators(ctx, field) + case "userSettingCreators": + return ec.fieldContext_Organization_userSettingCreators(ctx, field) + case "vendorRiskScoreCreators": + return ec.fieldContext_Organization_vendorRiskScoreCreators(ctx, field) + case "vulnerabilityCreators": + return ec.fieldContext_Organization_vulnerabilityCreators(ctx, field) + case "workflowAssignmentCreators": + return ec.fieldContext_Organization_workflowAssignmentCreators(ctx, field) + case "workflowAssignmentTargetCreators": + return ec.fieldContext_Organization_workflowAssignmentTargetCreators(ctx, field) + case "workflowDefinitionCreators": + return ec.fieldContext_Organization_workflowDefinitionCreators(ctx, field) + case "workflowEventCreators": + return ec.fieldContext_Organization_workflowEventCreators(ctx, field) + case "workflowInstanceCreators": + return ec.fieldContext_Organization_workflowInstanceCreators(ctx, field) + case "workflowObjectRefCreators": + return ec.fieldContext_Organization_workflowObjectRefCreators(ctx, field) + case "workflowProposalCreators": + return ec.fieldContext_Organization_workflowProposalCreators(ctx, field) + case "campaignsManager": + return ec.fieldContext_Organization_campaignsManager(ctx, field) + case "complianceManager": + return ec.fieldContext_Organization_complianceManager(ctx, field) + case "groupManager": + return ec.fieldContext_Organization_groupManager(ctx, field) + case "policiesManager": + return ec.fieldContext_Organization_policiesManager(ctx, field) + case "registryManager": + return ec.fieldContext_Organization_registryManager(ctx, field) + case "riskManager": + return ec.fieldContext_Organization_riskManager(ctx, field) + case "trustCenterManager": + return ec.fieldContext_Organization_trustCenterManager(ctx, field) + case "workflowsManager": + return ec.fieldContext_Organization_workflowsManager(ctx, field) case "parent": return ec.fieldContext_Organization_parent(ctx, field) case "children": diff --git a/internal/graphapi/historyschema/checksum/.history_schema_checksum b/internal/graphapi/historyschema/checksum/.history_schema_checksum index 9d80547804..c4a8373e8f 100644 --- a/internal/graphapi/historyschema/checksum/.history_schema_checksum +++ b/internal/graphapi/historyschema/checksum/.history_schema_checksum @@ -1 +1 @@ -d0a933b18d3f4454ee3a2fa962f363428e41c6bc76a6fa82b4821931c66454f9 \ No newline at end of file +7ef81a724f7122a4bfa39862096da683410ab73089bf7c010606ba381993253e \ No newline at end of file diff --git a/internal/graphapi/schema/ent.graphql b/internal/graphapi/schema/ent.graphql index c81ffc4d9e..5556185422 100644 --- a/internal/graphapi/schema/ent.graphql +++ b/internal/graphapi/schema/ent.graphql @@ -13904,7 +13904,6 @@ input CreateOrganizationInput { controlObjectiveCreatorIDs: [ID!] customTypeEnumCreatorIDs: [ID!] discussionCreatorIDs: [ID!] - emailBrandingCreatorIDs: [ID!] emailTemplateCreatorIDs: [ID!] entityCreatorIDs: [ID!] entityTypeCreatorIDs: [ID!] @@ -43275,37 +43274,6 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! - emailBrandingCreators( - """ - 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! emailTemplateCreators( """ Returns the elements in the list that come after the specified cursor. @@ -48645,11 +48613,6 @@ input OrganizationWhereInput { hasDiscussionCreators: Boolean hasDiscussionCreatorsWith: [GroupWhereInput!] """ - email_branding_creators edge predicates - """ - hasEmailBrandingCreators: Boolean - hasEmailBrandingCreatorsWith: [GroupWhereInput!] - """ email_template_creators edge predicates """ hasEmailTemplateCreators: Boolean @@ -78403,9 +78366,6 @@ input UpdateOrganizationInput { addDiscussionCreatorIDs: [ID!] removeDiscussionCreatorIDs: [ID!] clearDiscussionCreators: Boolean - addEmailBrandingCreatorIDs: [ID!] - removeEmailBrandingCreatorIDs: [ID!] - clearEmailBrandingCreators: Boolean addEmailTemplateCreatorIDs: [ID!] removeEmailTemplateCreatorIDs: [ID!] clearEmailTemplateCreators: Boolean diff --git a/internal/graphapi/testclient/checksum/.client_checksum b/internal/graphapi/testclient/checksum/.client_checksum index c6f12920d9..84dfcc8fdf 100644 --- a/internal/graphapi/testclient/checksum/.client_checksum +++ b/internal/graphapi/testclient/checksum/.client_checksum @@ -1 +1 @@ -0756fd931b5d13b6df63c4d7f219cd9c89954e136041ec99b98a47aab4686774 \ No newline at end of file +9aad60c187632fdc2503036bbb52bece4365d8b195fc07133fa4e49aaedf74ea \ No newline at end of file diff --git a/internal/graphapi/testclient/models.go b/internal/graphapi/testclient/models.go index d880839fa6..cefbae5f19 100644 --- a/internal/graphapi/testclient/models.go +++ b/internal/graphapi/testclient/models.go @@ -978,7 +978,7 @@ type Assessment struct { UpdatedBy *string `json:"updatedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object + // the ID of the organization owner of the object OwnerID *string `json:"ownerID,omitempty"` // indicates if the record is owned by the the openlane system and not by an organization SystemOwned *bool `json:"systemOwned,omitempty"` @@ -8151,108 +8151,164 @@ type CreateOrganizationInput struct { // The time the user's (local) avatar was last updated AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` // Whether the organization has a dedicated database - DedicatedDb *bool `json:"dedicatedDb,omitempty"` - ControlCreatorIDs []string `json:"controlCreatorIDs,omitempty"` - ControlImplementationCreatorIDs []string `json:"controlImplementationCreatorIDs,omitempty"` - ControlObjectiveCreatorIDs []string `json:"controlObjectiveCreatorIDs,omitempty"` - EvidenceCreatorIDs []string `json:"evidenceCreatorIDs,omitempty"` - AssetCreatorIDs []string `json:"assetCreatorIDs,omitempty"` - FindingCreatorIDs []string `json:"findingCreatorIDs,omitempty"` - VulnerabilityCreatorIDs []string `json:"vulnerabilityCreatorIDs,omitempty"` - GroupCreatorIDs []string `json:"groupCreatorIDs,omitempty"` - InternalPolicyCreatorIDs []string `json:"internalPolicyCreatorIDs,omitempty"` - MappedControlCreatorIDs []string `json:"mappedControlCreatorIDs,omitempty"` - NarrativeCreatorIDs []string `json:"narrativeCreatorIDs,omitempty"` - ProcedureCreatorIDs []string `json:"procedureCreatorIDs,omitempty"` - ProgramCreatorIDs []string `json:"programCreatorIDs,omitempty"` - RiskCreatorIDs []string `json:"riskCreatorIDs,omitempty"` - IdentityHolderCreatorIDs []string `json:"identityHolderCreatorIDs,omitempty"` - ScheduledJobCreatorIDs []string `json:"scheduledJobCreatorIDs,omitempty"` - StandardCreatorIDs []string `json:"standardCreatorIDs,omitempty"` - TemplateCreatorIDs []string `json:"templateCreatorIDs,omitempty"` - SubprocessorCreatorIDs []string `json:"subprocessorCreatorIDs,omitempty"` - TrustCenterDocCreatorIDs []string `json:"trustCenterDocCreatorIDs,omitempty"` - TrustCenterSubprocessorCreatorIDs []string `json:"trustCenterSubprocessorCreatorIDs,omitempty"` - ActionPlanCreatorIDs []string `json:"actionPlanCreatorIDs,omitempty"` - ParentID *string `json:"parentID,omitempty"` - SettingID *string `json:"settingID,omitempty"` - PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` - APITokenIDs []string `json:"apiTokenIDs,omitempty"` - EmailTemplateIDs []string `json:"emailTemplateIDs,omitempty"` - NotificationPreferenceIDs []string `json:"notificationPreferenceIDs,omitempty"` - NotificationTemplateIDs []string `json:"notificationTemplateIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` - SecretIDs []string `json:"secretIDs,omitempty"` - AvatarFileID *string `json:"avatarFileID,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - TemplateIDs []string `json:"templateIDs,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - DocumentIDs []string `json:"documentIDs,omitempty"` - OrgSubscriptionIDs []string `json:"orgSubscriptionIDs,omitempty"` - InviteIDs []string `json:"inviteIDs,omitempty"` - SubscriberIDs []string `json:"subscriberIDs,omitempty"` - EntityIDs []string `json:"entityIDs,omitempty"` - PlatformIDs []string `json:"platformIDs,omitempty"` - IdentityHolderIDs []string `json:"identityHolderIDs,omitempty"` - CampaignIDs []string `json:"campaignIDs,omitempty"` - CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` - EntityTypeIDs []string `json:"entityTypeIDs,omitempty"` - ContactIDs []string `json:"contactIDs,omitempty"` - NoteIDs []string `json:"noteIDs,omitempty"` - TaskIDs []string `json:"taskIDs,omitempty"` - ProgramIDs []string `json:"programIDs,omitempty"` - SystemDetailIDs []string `json:"systemDetailIDs,omitempty"` - ProcedureIDs []string `json:"procedureIDs,omitempty"` - InternalPolicyIDs []string `json:"internalPolicyIDs,omitempty"` - RiskIDs []string `json:"riskIDs,omitempty"` - ControlObjectiveIDs []string `json:"controlObjectiveIDs,omitempty"` - NarrativeIDs []string `json:"narrativeIDs,omitempty"` - ControlIDs []string `json:"controlIDs,omitempty"` - SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` - ControlImplementationIDs []string `json:"controlImplementationIDs,omitempty"` - MappedControlIDs []string `json:"mappedControlIDs,omitempty"` - EvidenceIDs []string `json:"evidenceIDs,omitempty"` - StandardIDs []string `json:"standardIDs,omitempty"` - ActionPlanIDs []string `json:"actionPlanIDs,omitempty"` - CustomDomainIDs []string `json:"customDomainIDs,omitempty"` - JobRunnerIDs []string `json:"jobRunnerIDs,omitempty"` - JobRunnerTokenIDs []string `json:"jobRunnerTokenIDs,omitempty"` - JobRunnerRegistrationTokenIDs []string `json:"jobRunnerRegistrationTokenIDs,omitempty"` - DNSVerificationIDs []string `json:"dnsVerificationIDs,omitempty"` - JobTemplateIDs []string `json:"jobTemplateIDs,omitempty"` - ScheduledJobIDs []string `json:"scheduledJobIDs,omitempty"` - JobResultIDs []string `json:"jobResultIDs,omitempty"` - ScheduledJobRunIDs []string `json:"scheduledJobRunIDs,omitempty"` - TrustCenterIDs []string `json:"trustCenterIDs,omitempty"` - AssetIDs []string `json:"assetIDs,omitempty"` - ScanIDs []string `json:"scanIDs,omitempty"` - SLADefinitionIDs []string `json:"slaDefinitionIDs,omitempty"` - SubprocessorIDs []string `json:"subprocessorIDs,omitempty"` - ExportIDs []string `json:"exportIDs,omitempty"` - TrustCenterWatermarkConfigIDs []string `json:"trustCenterWatermarkConfigIDs,omitempty"` - ImpersonationEventIDs []string `json:"impersonationEventIDs,omitempty"` - AssessmentIDs []string `json:"assessmentIDs,omitempty"` - AssessmentResponseIDs []string `json:"assessmentResponseIDs,omitempty"` - CustomTypeEnumIDs []string `json:"customTypeEnumIDs,omitempty"` - TagDefinitionIDs []string `json:"tagDefinitionIDs,omitempty"` - RemediationIDs []string `json:"remediationIDs,omitempty"` - FindingIDs []string `json:"findingIDs,omitempty"` - ReviewIDs []string `json:"reviewIDs,omitempty"` - VulnerabilityIDs []string `json:"vulnerabilityIDs,omitempty"` - WorkflowDefinitionIDs []string `json:"workflowDefinitionIDs,omitempty"` - WorkflowInstanceIDs []string `json:"workflowInstanceIDs,omitempty"` - WorkflowEventIDs []string `json:"workflowEventIDs,omitempty"` - WorkflowAssignmentIDs []string `json:"workflowAssignmentIDs,omitempty"` - WorkflowAssignmentTargetIDs []string `json:"workflowAssignmentTargetIDs,omitempty"` - WorkflowObjectRefIDs []string `json:"workflowObjectRefIDs,omitempty"` - DirectoryAccountIDs []string `json:"directoryAccountIDs,omitempty"` - DirectoryGroupIDs []string `json:"directoryGroupIDs,omitempty"` - DirectorySyncRunIDs []string `json:"directorySyncRunIDs,omitempty"` - DiscussionIDs []string `json:"discussionIDs,omitempty"` - VendorScoringConfigIDs []string `json:"vendorScoringConfigIDs,omitempty"` - VendorRiskScoreIDs []string `json:"vendorRiskScoreIDs,omitempty"` - CreateOrgSettings *CreateOrganizationSettingInput `json:"createOrgSettings,omitempty"` + DedicatedDb *bool `json:"dedicatedDb,omitempty"` + ActionPlanCreatorIDs []string `json:"actionPlanCreatorIDs,omitempty"` + APITokenCreatorIDs []string `json:"apiTokenCreatorIDs,omitempty"` + AssessmentCreatorIDs []string `json:"assessmentCreatorIDs,omitempty"` + AssetCreatorIDs []string `json:"assetCreatorIDs,omitempty"` + CampaignCreatorIDs []string `json:"campaignCreatorIDs,omitempty"` + CampaignTargetCreatorIDs []string `json:"campaignTargetCreatorIDs,omitempty"` + CheckResultCreatorIDs []string `json:"checkResultCreatorIDs,omitempty"` + ContactCreatorIDs []string `json:"contactCreatorIDs,omitempty"` + ControlCreatorIDs []string `json:"controlCreatorIDs,omitempty"` + ControlImplementationCreatorIDs []string `json:"controlImplementationCreatorIDs,omitempty"` + ControlObjectiveCreatorIDs []string `json:"controlObjectiveCreatorIDs,omitempty"` + CustomTypeEnumCreatorIDs []string `json:"customTypeEnumCreatorIDs,omitempty"` + DiscussionCreatorIDs []string `json:"discussionCreatorIDs,omitempty"` + EmailTemplateCreatorIDs []string `json:"emailTemplateCreatorIDs,omitempty"` + EntityCreatorIDs []string `json:"entityCreatorIDs,omitempty"` + EntityTypeCreatorIDs []string `json:"entityTypeCreatorIDs,omitempty"` + EvidenceCreatorIDs []string `json:"evidenceCreatorIDs,omitempty"` + ExportCreatorIDs []string `json:"exportCreatorIDs,omitempty"` + FileCreatorIDs []string `json:"fileCreatorIDs,omitempty"` + FindingCreatorIDs []string `json:"findingCreatorIDs,omitempty"` + GroupCreatorIDs []string `json:"groupCreatorIDs,omitempty"` + IdentityHolderCreatorIDs []string `json:"identityHolderCreatorIDs,omitempty"` + IntegrationCreatorIDs []string `json:"integrationCreatorIDs,omitempty"` + IntegrationWebhookCreatorIDs []string `json:"integrationWebhookCreatorIDs,omitempty"` + InternalPolicyCreatorIDs []string `json:"internalPolicyCreatorIDs,omitempty"` + JobRunnerCreatorIDs []string `json:"jobRunnerCreatorIDs,omitempty"` + JobRunnerRegistrationTokenCreatorIDs []string `json:"jobRunnerRegistrationTokenCreatorIDs,omitempty"` + JobRunnerTokenCreatorIDs []string `json:"jobRunnerTokenCreatorIDs,omitempty"` + JobTemplateCreatorIDs []string `json:"jobTemplateCreatorIDs,omitempty"` + MappedControlCreatorIDs []string `json:"mappedControlCreatorIDs,omitempty"` + NarrativeCreatorIDs []string `json:"narrativeCreatorIDs,omitempty"` + NoteCreatorIDs []string `json:"noteCreatorIDs,omitempty"` + NotificationTemplateCreatorIDs []string `json:"notificationTemplateCreatorIDs,omitempty"` + OrganizationCreatorIDs []string `json:"organizationCreatorIDs,omitempty"` + PlatformCreatorIDs []string `json:"platformCreatorIDs,omitempty"` + ProcedureCreatorIDs []string `json:"procedureCreatorIDs,omitempty"` + ProgramCreatorIDs []string `json:"programCreatorIDs,omitempty"` + RemediationCreatorIDs []string `json:"remediationCreatorIDs,omitempty"` + ReviewCreatorIDs []string `json:"reviewCreatorIDs,omitempty"` + RiskCreatorIDs []string `json:"riskCreatorIDs,omitempty"` + ScanCreatorIDs []string `json:"scanCreatorIDs,omitempty"` + ScheduledJobCreatorIDs []string `json:"scheduledJobCreatorIDs,omitempty"` + ScheduledJobRunCreatorIDs []string `json:"scheduledJobRunCreatorIDs,omitempty"` + StandardCreatorIDs []string `json:"standardCreatorIDs,omitempty"` + SubcontrolCreatorIDs []string `json:"subcontrolCreatorIDs,omitempty"` + SubprocessorCreatorIDs []string `json:"subprocessorCreatorIDs,omitempty"` + SubscriberCreatorIDs []string `json:"subscriberCreatorIDs,omitempty"` + SystemDetailCreatorIDs []string `json:"systemDetailCreatorIDs,omitempty"` + TagDefinitionCreatorIDs []string `json:"tagDefinitionCreatorIDs,omitempty"` + TaskCreatorIDs []string `json:"taskCreatorIDs,omitempty"` + TemplateCreatorIDs []string `json:"templateCreatorIDs,omitempty"` + TrustCenterCreatorIDs []string `json:"trustCenterCreatorIDs,omitempty"` + TrustCenterComplianceCreatorIDs []string `json:"trustCenterComplianceCreatorIDs,omitempty"` + TrustCenterDocCreatorIDs []string `json:"trustCenterDocCreatorIDs,omitempty"` + TrustCenterEntityCreatorIDs []string `json:"trustCenterEntityCreatorIDs,omitempty"` + TrustCenterFaqCreatorIDs []string `json:"trustCenterFaqCreatorIDs,omitempty"` + TrustCenterNdaRequestCreatorIDs []string `json:"trustCenterNdaRequestCreatorIDs,omitempty"` + TrustCenterSubprocessorCreatorIDs []string `json:"trustCenterSubprocessorCreatorIDs,omitempty"` + TrustCenterWatermarkConfigCreatorIDs []string `json:"trustCenterWatermarkConfigCreatorIDs,omitempty"` + UserCreatorIDs []string `json:"userCreatorIDs,omitempty"` + UserSettingCreatorIDs []string `json:"userSettingCreatorIDs,omitempty"` + VendorRiskScoreCreatorIDs []string `json:"vendorRiskScoreCreatorIDs,omitempty"` + VulnerabilityCreatorIDs []string `json:"vulnerabilityCreatorIDs,omitempty"` + WorkflowAssignmentCreatorIDs []string `json:"workflowAssignmentCreatorIDs,omitempty"` + WorkflowAssignmentTargetCreatorIDs []string `json:"workflowAssignmentTargetCreatorIDs,omitempty"` + WorkflowDefinitionCreatorIDs []string `json:"workflowDefinitionCreatorIDs,omitempty"` + WorkflowEventCreatorIDs []string `json:"workflowEventCreatorIDs,omitempty"` + WorkflowInstanceCreatorIDs []string `json:"workflowInstanceCreatorIDs,omitempty"` + WorkflowObjectRefCreatorIDs []string `json:"workflowObjectRefCreatorIDs,omitempty"` + WorkflowProposalCreatorIDs []string `json:"workflowProposalCreatorIDs,omitempty"` + CampaignsManagerIDs []string `json:"campaignsManagerIDs,omitempty"` + ComplianceManagerIDs []string `json:"complianceManagerIDs,omitempty"` + GroupManagerIDs []string `json:"groupManagerIDs,omitempty"` + PoliciesManagerIDs []string `json:"policiesManagerIDs,omitempty"` + RegistryManagerIDs []string `json:"registryManagerIDs,omitempty"` + RiskManagerIDs []string `json:"riskManagerIDs,omitempty"` + TrustCenterManagerIDs []string `json:"trustCenterManagerIDs,omitempty"` + WorkflowsManagerIDs []string `json:"workflowsManagerIDs,omitempty"` + ParentID *string `json:"parentID,omitempty"` + SettingID *string `json:"settingID,omitempty"` + PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` + APITokenIDs []string `json:"apiTokenIDs,omitempty"` + EmailTemplateIDs []string `json:"emailTemplateIDs,omitempty"` + NotificationPreferenceIDs []string `json:"notificationPreferenceIDs,omitempty"` + NotificationTemplateIDs []string `json:"notificationTemplateIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + SecretIDs []string `json:"secretIDs,omitempty"` + AvatarFileID *string `json:"avatarFileID,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + TemplateIDs []string `json:"templateIDs,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + DocumentIDs []string `json:"documentIDs,omitempty"` + OrgSubscriptionIDs []string `json:"orgSubscriptionIDs,omitempty"` + InviteIDs []string `json:"inviteIDs,omitempty"` + SubscriberIDs []string `json:"subscriberIDs,omitempty"` + EntityIDs []string `json:"entityIDs,omitempty"` + PlatformIDs []string `json:"platformIDs,omitempty"` + IdentityHolderIDs []string `json:"identityHolderIDs,omitempty"` + CampaignIDs []string `json:"campaignIDs,omitempty"` + CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` + EntityTypeIDs []string `json:"entityTypeIDs,omitempty"` + ContactIDs []string `json:"contactIDs,omitempty"` + NoteIDs []string `json:"noteIDs,omitempty"` + TaskIDs []string `json:"taskIDs,omitempty"` + ProgramIDs []string `json:"programIDs,omitempty"` + SystemDetailIDs []string `json:"systemDetailIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + InternalPolicyIDs []string `json:"internalPolicyIDs,omitempty"` + RiskIDs []string `json:"riskIDs,omitempty"` + ControlObjectiveIDs []string `json:"controlObjectiveIDs,omitempty"` + NarrativeIDs []string `json:"narrativeIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` + ControlImplementationIDs []string `json:"controlImplementationIDs,omitempty"` + MappedControlIDs []string `json:"mappedControlIDs,omitempty"` + EvidenceIDs []string `json:"evidenceIDs,omitempty"` + StandardIDs []string `json:"standardIDs,omitempty"` + ActionPlanIDs []string `json:"actionPlanIDs,omitempty"` + CustomDomainIDs []string `json:"customDomainIDs,omitempty"` + JobRunnerIDs []string `json:"jobRunnerIDs,omitempty"` + JobRunnerTokenIDs []string `json:"jobRunnerTokenIDs,omitempty"` + JobRunnerRegistrationTokenIDs []string `json:"jobRunnerRegistrationTokenIDs,omitempty"` + DNSVerificationIDs []string `json:"dnsVerificationIDs,omitempty"` + JobTemplateIDs []string `json:"jobTemplateIDs,omitempty"` + ScheduledJobIDs []string `json:"scheduledJobIDs,omitempty"` + JobResultIDs []string `json:"jobResultIDs,omitempty"` + ScheduledJobRunIDs []string `json:"scheduledJobRunIDs,omitempty"` + TrustCenterIDs []string `json:"trustCenterIDs,omitempty"` + AssetIDs []string `json:"assetIDs,omitempty"` + ScanIDs []string `json:"scanIDs,omitempty"` + SLADefinitionIDs []string `json:"slaDefinitionIDs,omitempty"` + SubprocessorIDs []string `json:"subprocessorIDs,omitempty"` + ExportIDs []string `json:"exportIDs,omitempty"` + TrustCenterWatermarkConfigIDs []string `json:"trustCenterWatermarkConfigIDs,omitempty"` + ImpersonationEventIDs []string `json:"impersonationEventIDs,omitempty"` + AssessmentIDs []string `json:"assessmentIDs,omitempty"` + AssessmentResponseIDs []string `json:"assessmentResponseIDs,omitempty"` + CustomTypeEnumIDs []string `json:"customTypeEnumIDs,omitempty"` + TagDefinitionIDs []string `json:"tagDefinitionIDs,omitempty"` + RemediationIDs []string `json:"remediationIDs,omitempty"` + FindingIDs []string `json:"findingIDs,omitempty"` + ReviewIDs []string `json:"reviewIDs,omitempty"` + VulnerabilityIDs []string `json:"vulnerabilityIDs,omitempty"` + WorkflowDefinitionIDs []string `json:"workflowDefinitionIDs,omitempty"` + WorkflowInstanceIDs []string `json:"workflowInstanceIDs,omitempty"` + WorkflowEventIDs []string `json:"workflowEventIDs,omitempty"` + WorkflowAssignmentIDs []string `json:"workflowAssignmentIDs,omitempty"` + WorkflowAssignmentTargetIDs []string `json:"workflowAssignmentTargetIDs,omitempty"` + WorkflowObjectRefIDs []string `json:"workflowObjectRefIDs,omitempty"` + DirectoryAccountIDs []string `json:"directoryAccountIDs,omitempty"` + DirectoryGroupIDs []string `json:"directoryGroupIDs,omitempty"` + DirectorySyncRunIDs []string `json:"directorySyncRunIDs,omitempty"` + DiscussionIDs []string `json:"discussionIDs,omitempty"` + VendorScoringConfigIDs []string `json:"vendorScoringConfigIDs,omitempty"` + VendorRiskScoreIDs []string `json:"vendorRiskScoreIDs,omitempty"` + CreateOrgSettings *CreateOrganizationSettingInput `json:"createOrgSettings,omitempty"` } // CreateOrganizationSettingInput is used for create OrganizationSetting object. @@ -25389,110 +25445,166 @@ type Organization struct { // Whether the organization has a dedicated database DedicatedDb bool `json:"dedicatedDb"` // the stripe customer ID this organization is associated to - StripeCustomerID *string `json:"stripeCustomerID,omitempty"` - ControlCreators *GroupConnection `json:"controlCreators"` - ControlImplementationCreators *GroupConnection `json:"controlImplementationCreators"` - ControlObjectiveCreators *GroupConnection `json:"controlObjectiveCreators"` - EvidenceCreators *GroupConnection `json:"evidenceCreators"` - AssetCreators *GroupConnection `json:"assetCreators"` - FindingCreators *GroupConnection `json:"findingCreators"` - VulnerabilityCreators *GroupConnection `json:"vulnerabilityCreators"` - GroupCreators *GroupConnection `json:"groupCreators"` - InternalPolicyCreators *GroupConnection `json:"internalPolicyCreators"` - MappedControlCreators *GroupConnection `json:"mappedControlCreators"` - NarrativeCreators *GroupConnection `json:"narrativeCreators"` - ProcedureCreators *GroupConnection `json:"procedureCreators"` - ProgramCreators *GroupConnection `json:"programCreators"` - RiskCreators *GroupConnection `json:"riskCreators"` - IdentityHolderCreators *GroupConnection `json:"identityHolderCreators"` - ScheduledJobCreators *GroupConnection `json:"scheduledJobCreators"` - StandardCreators *GroupConnection `json:"standardCreators"` - TemplateCreators *GroupConnection `json:"templateCreators"` - SubprocessorCreators *GroupConnection `json:"subprocessorCreators"` - TrustCenterDocCreators *GroupConnection `json:"trustCenterDocCreators"` - TrustCenterSubprocessorCreators *GroupConnection `json:"trustCenterSubprocessorCreators"` - ActionPlanCreators *GroupConnection `json:"actionPlanCreators"` - Parent *Organization `json:"parent,omitempty"` - Children *OrganizationConnection `json:"children"` - Setting *OrganizationSetting `json:"setting,omitempty"` - PersonalAccessTokens *PersonalAccessTokenConnection `json:"personalAccessTokens"` - APITokens *APITokenConnection `json:"apiTokens"` - EmailTemplates *EmailTemplateConnection `json:"emailTemplates"` - NotificationPreferences *NotificationPreferenceConnection `json:"notificationPreferences"` - NotificationTemplates *NotificationTemplateConnection `json:"notificationTemplates"` - Users *UserConnection `json:"users"` - Files *FileConnection `json:"files"` - Events *EventConnection `json:"events"` - Secrets *HushConnection `json:"secrets"` - AvatarFile *File `json:"avatarFile,omitempty"` - Groups *GroupConnection `json:"groups"` - Templates *TemplateConnection `json:"templates"` - Integrations *IntegrationConnection `json:"integrations"` - Documents *DocumentDataConnection `json:"documents"` - OrgSubscriptions []*OrgSubscription `json:"orgSubscriptions,omitempty"` - Invites *InviteConnection `json:"invites"` - Subscribers *SubscriberConnection `json:"subscribers"` - Entities *EntityConnection `json:"entities"` - Platforms *PlatformConnection `json:"platforms"` - IdentityHolders *IdentityHolderConnection `json:"identityHolders"` - Campaigns *CampaignConnection `json:"campaigns"` - CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` - EntityTypes *EntityTypeConnection `json:"entityTypes"` - Contacts *ContactConnection `json:"contacts"` - Notes *NoteConnection `json:"notes"` - Tasks *TaskConnection `json:"tasks"` - Programs *ProgramConnection `json:"programs"` - SystemDetails *SystemDetailConnection `json:"systemDetails"` - Procedures *ProcedureConnection `json:"procedures"` - InternalPolicies *InternalPolicyConnection `json:"internalPolicies"` - Risks *RiskConnection `json:"risks"` - ControlObjectives *ControlObjectiveConnection `json:"controlObjectives"` - Narratives *NarrativeConnection `json:"narratives"` - Controls *ControlConnection `json:"controls"` - Subcontrols *SubcontrolConnection `json:"subcontrols"` - ControlImplementations *ControlImplementationConnection `json:"controlImplementations"` - MappedControls *MappedControlConnection `json:"mappedControls"` - Evidence *EvidenceConnection `json:"evidence"` - Standards *StandardConnection `json:"standards"` - ActionPlans *ActionPlanConnection `json:"actionPlans"` - CustomDomains *CustomDomainConnection `json:"customDomains"` - JobRunners *JobRunnerConnection `json:"jobRunners"` - JobRunnerTokens *JobRunnerTokenConnection `json:"jobRunnerTokens"` - JobRunnerRegistrationTokens *JobRunnerRegistrationTokenConnection `json:"jobRunnerRegistrationTokens"` - DNSVerifications *DNSVerificationConnection `json:"dnsVerifications"` - JobTemplates *JobTemplateConnection `json:"jobTemplates"` - ScheduledJobs *ScheduledJobConnection `json:"scheduledJobs"` - JobResults *JobResultConnection `json:"jobResults"` - ScheduledJobRuns *ScheduledJobRunConnection `json:"scheduledJobRuns"` - TrustCenters *TrustCenterConnection `json:"trustCenters"` - Assets *AssetConnection `json:"assets"` - Scans *ScanConnection `json:"scans"` - SLADefinitions *SLADefinitionConnection `json:"slaDefinitions"` - Subprocessors *SubprocessorConnection `json:"subprocessors"` - Exports *ExportConnection `json:"exports"` - TrustCenterWatermarkConfigs *TrustCenterWatermarkConfigConnection `json:"trustCenterWatermarkConfigs"` - Assessments *AssessmentConnection `json:"assessments"` - AssessmentResponses *AssessmentResponseConnection `json:"assessmentResponses"` - CustomTypeEnums *CustomTypeEnumConnection `json:"customTypeEnums"` - TagDefinitions *TagDefinitionConnection `json:"tagDefinitions"` - Remediations *RemediationConnection `json:"remediations"` - Findings *FindingConnection `json:"findings"` - Reviews *ReviewConnection `json:"reviews"` - Vulnerabilities *VulnerabilityConnection `json:"vulnerabilities"` - WorkflowDefinitions *WorkflowDefinitionConnection `json:"workflowDefinitions"` - WorkflowInstances *WorkflowInstanceConnection `json:"workflowInstances"` - WorkflowEvents *WorkflowEventConnection `json:"workflowEvents"` - WorkflowAssignments *WorkflowAssignmentConnection `json:"workflowAssignments"` - WorkflowAssignmentTargets *WorkflowAssignmentTargetConnection `json:"workflowAssignmentTargets"` - WorkflowObjectRefs *WorkflowObjectRefConnection `json:"workflowObjectRefs"` - DirectoryAccounts *DirectoryAccountConnection `json:"directoryAccounts"` - DirectoryGroups *DirectoryGroupConnection `json:"directoryGroups"` - DirectoryMemberships *DirectoryMembershipConnection `json:"directoryMemberships"` - DirectorySyncRuns *DirectorySyncRunConnection `json:"directorySyncRuns"` - Discussions *DiscussionConnection `json:"discussions"` - VendorScoringConfigs *VendorScoringConfigConnection `json:"vendorScoringConfigs"` - VendorRiskScores *VendorRiskScoreConnection `json:"vendorRiskScores"` - Members *OrgMembershipConnection `json:"members"` + StripeCustomerID *string `json:"stripeCustomerID,omitempty"` + ActionPlanCreators *GroupConnection `json:"actionPlanCreators"` + APITokenCreators *GroupConnection `json:"apiTokenCreators"` + AssessmentCreators *GroupConnection `json:"assessmentCreators"` + AssetCreators *GroupConnection `json:"assetCreators"` + CampaignCreators *GroupConnection `json:"campaignCreators"` + CampaignTargetCreators *GroupConnection `json:"campaignTargetCreators"` + CheckResultCreators *GroupConnection `json:"checkResultCreators"` + ContactCreators *GroupConnection `json:"contactCreators"` + ControlCreators *GroupConnection `json:"controlCreators"` + ControlImplementationCreators *GroupConnection `json:"controlImplementationCreators"` + ControlObjectiveCreators *GroupConnection `json:"controlObjectiveCreators"` + CustomTypeEnumCreators *GroupConnection `json:"customTypeEnumCreators"` + DiscussionCreators *GroupConnection `json:"discussionCreators"` + EmailTemplateCreators *GroupConnection `json:"emailTemplateCreators"` + EntityCreators *GroupConnection `json:"entityCreators"` + EntityTypeCreators *GroupConnection `json:"entityTypeCreators"` + EvidenceCreators *GroupConnection `json:"evidenceCreators"` + ExportCreators *GroupConnection `json:"exportCreators"` + FileCreators *GroupConnection `json:"fileCreators"` + FindingCreators *GroupConnection `json:"findingCreators"` + GroupCreators *GroupConnection `json:"groupCreators"` + IdentityHolderCreators *GroupConnection `json:"identityHolderCreators"` + IntegrationCreators *GroupConnection `json:"integrationCreators"` + IntegrationWebhookCreators *GroupConnection `json:"integrationWebhookCreators"` + InternalPolicyCreators *GroupConnection `json:"internalPolicyCreators"` + JobRunnerCreators *GroupConnection `json:"jobRunnerCreators"` + JobRunnerRegistrationTokenCreators *GroupConnection `json:"jobRunnerRegistrationTokenCreators"` + JobRunnerTokenCreators *GroupConnection `json:"jobRunnerTokenCreators"` + JobTemplateCreators *GroupConnection `json:"jobTemplateCreators"` + MappedControlCreators *GroupConnection `json:"mappedControlCreators"` + NarrativeCreators *GroupConnection `json:"narrativeCreators"` + NoteCreators *GroupConnection `json:"noteCreators"` + NotificationTemplateCreators *GroupConnection `json:"notificationTemplateCreators"` + OrganizationCreators *GroupConnection `json:"organizationCreators"` + PlatformCreators *GroupConnection `json:"platformCreators"` + ProcedureCreators *GroupConnection `json:"procedureCreators"` + ProgramCreators *GroupConnection `json:"programCreators"` + RemediationCreators *GroupConnection `json:"remediationCreators"` + ReviewCreators *GroupConnection `json:"reviewCreators"` + RiskCreators *GroupConnection `json:"riskCreators"` + ScanCreators *GroupConnection `json:"scanCreators"` + ScheduledJobCreators *GroupConnection `json:"scheduledJobCreators"` + ScheduledJobRunCreators *GroupConnection `json:"scheduledJobRunCreators"` + StandardCreators *GroupConnection `json:"standardCreators"` + SubcontrolCreators *GroupConnection `json:"subcontrolCreators"` + SubprocessorCreators *GroupConnection `json:"subprocessorCreators"` + SubscriberCreators *GroupConnection `json:"subscriberCreators"` + SystemDetailCreators *GroupConnection `json:"systemDetailCreators"` + TagDefinitionCreators *GroupConnection `json:"tagDefinitionCreators"` + TaskCreators *GroupConnection `json:"taskCreators"` + TemplateCreators *GroupConnection `json:"templateCreators"` + TrustCenterCreators *GroupConnection `json:"trustCenterCreators"` + TrustCenterComplianceCreators *GroupConnection `json:"trustCenterComplianceCreators"` + TrustCenterDocCreators *GroupConnection `json:"trustCenterDocCreators"` + TrustCenterEntityCreators *GroupConnection `json:"trustCenterEntityCreators"` + TrustCenterFaqCreators *GroupConnection `json:"trustCenterFaqCreators"` + TrustCenterNdaRequestCreators *GroupConnection `json:"trustCenterNdaRequestCreators"` + TrustCenterSubprocessorCreators *GroupConnection `json:"trustCenterSubprocessorCreators"` + TrustCenterWatermarkConfigCreators *GroupConnection `json:"trustCenterWatermarkConfigCreators"` + UserCreators *GroupConnection `json:"userCreators"` + UserSettingCreators *GroupConnection `json:"userSettingCreators"` + VendorRiskScoreCreators *GroupConnection `json:"vendorRiskScoreCreators"` + VulnerabilityCreators *GroupConnection `json:"vulnerabilityCreators"` + WorkflowAssignmentCreators *GroupConnection `json:"workflowAssignmentCreators"` + WorkflowAssignmentTargetCreators *GroupConnection `json:"workflowAssignmentTargetCreators"` + WorkflowDefinitionCreators *GroupConnection `json:"workflowDefinitionCreators"` + WorkflowEventCreators *GroupConnection `json:"workflowEventCreators"` + WorkflowInstanceCreators *GroupConnection `json:"workflowInstanceCreators"` + WorkflowObjectRefCreators *GroupConnection `json:"workflowObjectRefCreators"` + WorkflowProposalCreators *GroupConnection `json:"workflowProposalCreators"` + CampaignsManager *GroupConnection `json:"campaignsManager"` + ComplianceManager *GroupConnection `json:"complianceManager"` + GroupManager *GroupConnection `json:"groupManager"` + PoliciesManager *GroupConnection `json:"policiesManager"` + RegistryManager *GroupConnection `json:"registryManager"` + RiskManager *GroupConnection `json:"riskManager"` + TrustCenterManager *GroupConnection `json:"trustCenterManager"` + WorkflowsManager *GroupConnection `json:"workflowsManager"` + Parent *Organization `json:"parent,omitempty"` + Children *OrganizationConnection `json:"children"` + Setting *OrganizationSetting `json:"setting,omitempty"` + PersonalAccessTokens *PersonalAccessTokenConnection `json:"personalAccessTokens"` + APITokens *APITokenConnection `json:"apiTokens"` + EmailTemplates *EmailTemplateConnection `json:"emailTemplates"` + NotificationPreferences *NotificationPreferenceConnection `json:"notificationPreferences"` + NotificationTemplates *NotificationTemplateConnection `json:"notificationTemplates"` + Users *UserConnection `json:"users"` + Files *FileConnection `json:"files"` + Events *EventConnection `json:"events"` + Secrets *HushConnection `json:"secrets"` + AvatarFile *File `json:"avatarFile,omitempty"` + Groups *GroupConnection `json:"groups"` + Templates *TemplateConnection `json:"templates"` + Integrations *IntegrationConnection `json:"integrations"` + Documents *DocumentDataConnection `json:"documents"` + OrgSubscriptions []*OrgSubscription `json:"orgSubscriptions,omitempty"` + Invites *InviteConnection `json:"invites"` + Subscribers *SubscriberConnection `json:"subscribers"` + Entities *EntityConnection `json:"entities"` + Platforms *PlatformConnection `json:"platforms"` + IdentityHolders *IdentityHolderConnection `json:"identityHolders"` + Campaigns *CampaignConnection `json:"campaigns"` + CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` + EntityTypes *EntityTypeConnection `json:"entityTypes"` + Contacts *ContactConnection `json:"contacts"` + Notes *NoteConnection `json:"notes"` + Tasks *TaskConnection `json:"tasks"` + Programs *ProgramConnection `json:"programs"` + SystemDetails *SystemDetailConnection `json:"systemDetails"` + Procedures *ProcedureConnection `json:"procedures"` + InternalPolicies *InternalPolicyConnection `json:"internalPolicies"` + Risks *RiskConnection `json:"risks"` + ControlObjectives *ControlObjectiveConnection `json:"controlObjectives"` + Narratives *NarrativeConnection `json:"narratives"` + Controls *ControlConnection `json:"controls"` + Subcontrols *SubcontrolConnection `json:"subcontrols"` + ControlImplementations *ControlImplementationConnection `json:"controlImplementations"` + MappedControls *MappedControlConnection `json:"mappedControls"` + Evidence *EvidenceConnection `json:"evidence"` + Standards *StandardConnection `json:"standards"` + ActionPlans *ActionPlanConnection `json:"actionPlans"` + CustomDomains *CustomDomainConnection `json:"customDomains"` + JobRunners *JobRunnerConnection `json:"jobRunners"` + JobRunnerTokens *JobRunnerTokenConnection `json:"jobRunnerTokens"` + JobRunnerRegistrationTokens *JobRunnerRegistrationTokenConnection `json:"jobRunnerRegistrationTokens"` + DNSVerifications *DNSVerificationConnection `json:"dnsVerifications"` + JobTemplates *JobTemplateConnection `json:"jobTemplates"` + ScheduledJobs *ScheduledJobConnection `json:"scheduledJobs"` + JobResults *JobResultConnection `json:"jobResults"` + ScheduledJobRuns *ScheduledJobRunConnection `json:"scheduledJobRuns"` + TrustCenters *TrustCenterConnection `json:"trustCenters"` + Assets *AssetConnection `json:"assets"` + Scans *ScanConnection `json:"scans"` + SLADefinitions *SLADefinitionConnection `json:"slaDefinitions"` + Subprocessors *SubprocessorConnection `json:"subprocessors"` + Exports *ExportConnection `json:"exports"` + TrustCenterWatermarkConfigs *TrustCenterWatermarkConfigConnection `json:"trustCenterWatermarkConfigs"` + Assessments *AssessmentConnection `json:"assessments"` + AssessmentResponses *AssessmentResponseConnection `json:"assessmentResponses"` + CustomTypeEnums *CustomTypeEnumConnection `json:"customTypeEnums"` + TagDefinitions *TagDefinitionConnection `json:"tagDefinitions"` + Remediations *RemediationConnection `json:"remediations"` + Findings *FindingConnection `json:"findings"` + Reviews *ReviewConnection `json:"reviews"` + Vulnerabilities *VulnerabilityConnection `json:"vulnerabilities"` + WorkflowDefinitions *WorkflowDefinitionConnection `json:"workflowDefinitions"` + WorkflowInstances *WorkflowInstanceConnection `json:"workflowInstances"` + WorkflowEvents *WorkflowEventConnection `json:"workflowEvents"` + WorkflowAssignments *WorkflowAssignmentConnection `json:"workflowAssignments"` + WorkflowAssignmentTargets *WorkflowAssignmentTargetConnection `json:"workflowAssignmentTargets"` + WorkflowObjectRefs *WorkflowObjectRefConnection `json:"workflowObjectRefs"` + DirectoryAccounts *DirectoryAccountConnection `json:"directoryAccounts"` + DirectoryGroups *DirectoryGroupConnection `json:"directoryGroups"` + DirectoryMemberships *DirectoryMembershipConnection `json:"directoryMemberships"` + DirectorySyncRuns *DirectorySyncRunConnection `json:"directorySyncRuns"` + Discussions *DiscussionConnection `json:"discussions"` + VendorScoringConfigs *VendorScoringConfigConnection `json:"vendorScoringConfigs"` + VendorRiskScores *VendorRiskScoreConnection `json:"vendorRiskScores"` + Members *OrgMembershipConnection `json:"members"` } func (Organization) IsNode() {} @@ -26194,6 +26306,30 @@ type OrganizationWhereInput struct { AvatarUpdatedAtLte *time.Time `json:"avatarUpdatedAtLTE,omitempty"` AvatarUpdatedAtIsNil *bool `json:"avatarUpdatedAtIsNil,omitempty"` AvatarUpdatedAtNotNil *bool `json:"avatarUpdatedAtNotNil,omitempty"` + // action_plan_creators edge predicates + HasActionPlanCreators *bool `json:"hasActionPlanCreators,omitempty"` + HasActionPlanCreatorsWith []*GroupWhereInput `json:"hasActionPlanCreatorsWith,omitempty"` + // api_token_creators edge predicates + HasAPITokenCreators *bool `json:"hasAPITokenCreators,omitempty"` + HasAPITokenCreatorsWith []*GroupWhereInput `json:"hasAPITokenCreatorsWith,omitempty"` + // assessment_creators edge predicates + HasAssessmentCreators *bool `json:"hasAssessmentCreators,omitempty"` + HasAssessmentCreatorsWith []*GroupWhereInput `json:"hasAssessmentCreatorsWith,omitempty"` + // asset_creators edge predicates + HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` + HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + // campaign_creators edge predicates + HasCampaignCreators *bool `json:"hasCampaignCreators,omitempty"` + HasCampaignCreatorsWith []*GroupWhereInput `json:"hasCampaignCreatorsWith,omitempty"` + // campaign_target_creators edge predicates + HasCampaignTargetCreators *bool `json:"hasCampaignTargetCreators,omitempty"` + HasCampaignTargetCreatorsWith []*GroupWhereInput `json:"hasCampaignTargetCreatorsWith,omitempty"` + // check_result_creators edge predicates + HasCheckResultCreators *bool `json:"hasCheckResultCreators,omitempty"` + HasCheckResultCreatorsWith []*GroupWhereInput `json:"hasCheckResultCreatorsWith,omitempty"` + // contact_creators edge predicates + HasContactCreators *bool `json:"hasContactCreators,omitempty"` + HasContactCreatorsWith []*GroupWhereInput `json:"hasContactCreatorsWith,omitempty"` // control_creators edge predicates HasControlCreators *bool `json:"hasControlCreators,omitempty"` HasControlCreatorsWith []*GroupWhereInput `json:"hasControlCreatorsWith,omitempty"` @@ -26203,63 +26339,207 @@ type OrganizationWhereInput struct { // control_objective_creators edge predicates HasControlObjectiveCreators *bool `json:"hasControlObjectiveCreators,omitempty"` HasControlObjectiveCreatorsWith []*GroupWhereInput `json:"hasControlObjectiveCreatorsWith,omitempty"` + // custom_type_enum_creators edge predicates + HasCustomTypeEnumCreators *bool `json:"hasCustomTypeEnumCreators,omitempty"` + HasCustomTypeEnumCreatorsWith []*GroupWhereInput `json:"hasCustomTypeEnumCreatorsWith,omitempty"` + // discussion_creators edge predicates + HasDiscussionCreators *bool `json:"hasDiscussionCreators,omitempty"` + HasDiscussionCreatorsWith []*GroupWhereInput `json:"hasDiscussionCreatorsWith,omitempty"` + // email_template_creators edge predicates + HasEmailTemplateCreators *bool `json:"hasEmailTemplateCreators,omitempty"` + HasEmailTemplateCreatorsWith []*GroupWhereInput `json:"hasEmailTemplateCreatorsWith,omitempty"` + // entity_creators edge predicates + HasEntityCreators *bool `json:"hasEntityCreators,omitempty"` + HasEntityCreatorsWith []*GroupWhereInput `json:"hasEntityCreatorsWith,omitempty"` + // entity_type_creators edge predicates + HasEntityTypeCreators *bool `json:"hasEntityTypeCreators,omitempty"` + HasEntityTypeCreatorsWith []*GroupWhereInput `json:"hasEntityTypeCreatorsWith,omitempty"` // evidence_creators edge predicates HasEvidenceCreators *bool `json:"hasEvidenceCreators,omitempty"` HasEvidenceCreatorsWith []*GroupWhereInput `json:"hasEvidenceCreatorsWith,omitempty"` - // asset_creators edge predicates - HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` - HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + // export_creators edge predicates + HasExportCreators *bool `json:"hasExportCreators,omitempty"` + HasExportCreatorsWith []*GroupWhereInput `json:"hasExportCreatorsWith,omitempty"` + // file_creators edge predicates + HasFileCreators *bool `json:"hasFileCreators,omitempty"` + HasFileCreatorsWith []*GroupWhereInput `json:"hasFileCreatorsWith,omitempty"` // finding_creators edge predicates HasFindingCreators *bool `json:"hasFindingCreators,omitempty"` HasFindingCreatorsWith []*GroupWhereInput `json:"hasFindingCreatorsWith,omitempty"` - // vulnerability_creators edge predicates - HasVulnerabilityCreators *bool `json:"hasVulnerabilityCreators,omitempty"` - HasVulnerabilityCreatorsWith []*GroupWhereInput `json:"hasVulnerabilityCreatorsWith,omitempty"` // group_creators edge predicates HasGroupCreators *bool `json:"hasGroupCreators,omitempty"` HasGroupCreatorsWith []*GroupWhereInput `json:"hasGroupCreatorsWith,omitempty"` + // identity_holder_creators edge predicates + HasIdentityHolderCreators *bool `json:"hasIdentityHolderCreators,omitempty"` + HasIdentityHolderCreatorsWith []*GroupWhereInput `json:"hasIdentityHolderCreatorsWith,omitempty"` + // integration_creators edge predicates + HasIntegrationCreators *bool `json:"hasIntegrationCreators,omitempty"` + HasIntegrationCreatorsWith []*GroupWhereInput `json:"hasIntegrationCreatorsWith,omitempty"` + // integration_webhook_creators edge predicates + HasIntegrationWebhookCreators *bool `json:"hasIntegrationWebhookCreators,omitempty"` + HasIntegrationWebhookCreatorsWith []*GroupWhereInput `json:"hasIntegrationWebhookCreatorsWith,omitempty"` // internal_policy_creators edge predicates HasInternalPolicyCreators *bool `json:"hasInternalPolicyCreators,omitempty"` HasInternalPolicyCreatorsWith []*GroupWhereInput `json:"hasInternalPolicyCreatorsWith,omitempty"` + // job_runner_creators edge predicates + HasJobRunnerCreators *bool `json:"hasJobRunnerCreators,omitempty"` + HasJobRunnerCreatorsWith []*GroupWhereInput `json:"hasJobRunnerCreatorsWith,omitempty"` + // job_runner_registration_token_creators edge predicates + HasJobRunnerRegistrationTokenCreators *bool `json:"hasJobRunnerRegistrationTokenCreators,omitempty"` + HasJobRunnerRegistrationTokenCreatorsWith []*GroupWhereInput `json:"hasJobRunnerRegistrationTokenCreatorsWith,omitempty"` + // job_runner_token_creators edge predicates + HasJobRunnerTokenCreators *bool `json:"hasJobRunnerTokenCreators,omitempty"` + HasJobRunnerTokenCreatorsWith []*GroupWhereInput `json:"hasJobRunnerTokenCreatorsWith,omitempty"` + // job_template_creators edge predicates + HasJobTemplateCreators *bool `json:"hasJobTemplateCreators,omitempty"` + HasJobTemplateCreatorsWith []*GroupWhereInput `json:"hasJobTemplateCreatorsWith,omitempty"` // mapped_control_creators edge predicates HasMappedControlCreators *bool `json:"hasMappedControlCreators,omitempty"` HasMappedControlCreatorsWith []*GroupWhereInput `json:"hasMappedControlCreatorsWith,omitempty"` // narrative_creators edge predicates HasNarrativeCreators *bool `json:"hasNarrativeCreators,omitempty"` HasNarrativeCreatorsWith []*GroupWhereInput `json:"hasNarrativeCreatorsWith,omitempty"` + // note_creators edge predicates + HasNoteCreators *bool `json:"hasNoteCreators,omitempty"` + HasNoteCreatorsWith []*GroupWhereInput `json:"hasNoteCreatorsWith,omitempty"` + // notification_template_creators edge predicates + HasNotificationTemplateCreators *bool `json:"hasNotificationTemplateCreators,omitempty"` + HasNotificationTemplateCreatorsWith []*GroupWhereInput `json:"hasNotificationTemplateCreatorsWith,omitempty"` + // organization_creators edge predicates + HasOrganizationCreators *bool `json:"hasOrganizationCreators,omitempty"` + HasOrganizationCreatorsWith []*GroupWhereInput `json:"hasOrganizationCreatorsWith,omitempty"` + // platform_creators edge predicates + HasPlatformCreators *bool `json:"hasPlatformCreators,omitempty"` + HasPlatformCreatorsWith []*GroupWhereInput `json:"hasPlatformCreatorsWith,omitempty"` // procedure_creators edge predicates HasProcedureCreators *bool `json:"hasProcedureCreators,omitempty"` HasProcedureCreatorsWith []*GroupWhereInput `json:"hasProcedureCreatorsWith,omitempty"` // program_creators edge predicates HasProgramCreators *bool `json:"hasProgramCreators,omitempty"` HasProgramCreatorsWith []*GroupWhereInput `json:"hasProgramCreatorsWith,omitempty"` + // remediation_creators edge predicates + HasRemediationCreators *bool `json:"hasRemediationCreators,omitempty"` + HasRemediationCreatorsWith []*GroupWhereInput `json:"hasRemediationCreatorsWith,omitempty"` + // review_creators edge predicates + HasReviewCreators *bool `json:"hasReviewCreators,omitempty"` + HasReviewCreatorsWith []*GroupWhereInput `json:"hasReviewCreatorsWith,omitempty"` // risk_creators edge predicates HasRiskCreators *bool `json:"hasRiskCreators,omitempty"` HasRiskCreatorsWith []*GroupWhereInput `json:"hasRiskCreatorsWith,omitempty"` - // identity_holder_creators edge predicates - HasIdentityHolderCreators *bool `json:"hasIdentityHolderCreators,omitempty"` - HasIdentityHolderCreatorsWith []*GroupWhereInput `json:"hasIdentityHolderCreatorsWith,omitempty"` + // scan_creators edge predicates + HasScanCreators *bool `json:"hasScanCreators,omitempty"` + HasScanCreatorsWith []*GroupWhereInput `json:"hasScanCreatorsWith,omitempty"` // scheduled_job_creators edge predicates HasScheduledJobCreators *bool `json:"hasScheduledJobCreators,omitempty"` HasScheduledJobCreatorsWith []*GroupWhereInput `json:"hasScheduledJobCreatorsWith,omitempty"` + // scheduled_job_run_creators edge predicates + HasScheduledJobRunCreators *bool `json:"hasScheduledJobRunCreators,omitempty"` + HasScheduledJobRunCreatorsWith []*GroupWhereInput `json:"hasScheduledJobRunCreatorsWith,omitempty"` // standard_creators edge predicates HasStandardCreators *bool `json:"hasStandardCreators,omitempty"` HasStandardCreatorsWith []*GroupWhereInput `json:"hasStandardCreatorsWith,omitempty"` - // template_creators edge predicates - HasTemplateCreators *bool `json:"hasTemplateCreators,omitempty"` - HasTemplateCreatorsWith []*GroupWhereInput `json:"hasTemplateCreatorsWith,omitempty"` + // subcontrol_creators edge predicates + HasSubcontrolCreators *bool `json:"hasSubcontrolCreators,omitempty"` + HasSubcontrolCreatorsWith []*GroupWhereInput `json:"hasSubcontrolCreatorsWith,omitempty"` // subprocessor_creators edge predicates HasSubprocessorCreators *bool `json:"hasSubprocessorCreators,omitempty"` HasSubprocessorCreatorsWith []*GroupWhereInput `json:"hasSubprocessorCreatorsWith,omitempty"` + // subscriber_creators edge predicates + HasSubscriberCreators *bool `json:"hasSubscriberCreators,omitempty"` + HasSubscriberCreatorsWith []*GroupWhereInput `json:"hasSubscriberCreatorsWith,omitempty"` + // system_detail_creators edge predicates + HasSystemDetailCreators *bool `json:"hasSystemDetailCreators,omitempty"` + HasSystemDetailCreatorsWith []*GroupWhereInput `json:"hasSystemDetailCreatorsWith,omitempty"` + // tag_definition_creators edge predicates + HasTagDefinitionCreators *bool `json:"hasTagDefinitionCreators,omitempty"` + HasTagDefinitionCreatorsWith []*GroupWhereInput `json:"hasTagDefinitionCreatorsWith,omitempty"` + // task_creators edge predicates + HasTaskCreators *bool `json:"hasTaskCreators,omitempty"` + HasTaskCreatorsWith []*GroupWhereInput `json:"hasTaskCreatorsWith,omitempty"` + // template_creators edge predicates + HasTemplateCreators *bool `json:"hasTemplateCreators,omitempty"` + HasTemplateCreatorsWith []*GroupWhereInput `json:"hasTemplateCreatorsWith,omitempty"` + // trust_center_creators edge predicates + HasTrustCenterCreators *bool `json:"hasTrustCenterCreators,omitempty"` + HasTrustCenterCreatorsWith []*GroupWhereInput `json:"hasTrustCenterCreatorsWith,omitempty"` + // trust_center_compliance_creators edge predicates + HasTrustCenterComplianceCreators *bool `json:"hasTrustCenterComplianceCreators,omitempty"` + HasTrustCenterComplianceCreatorsWith []*GroupWhereInput `json:"hasTrustCenterComplianceCreatorsWith,omitempty"` // trust_center_doc_creators edge predicates HasTrustCenterDocCreators *bool `json:"hasTrustCenterDocCreators,omitempty"` HasTrustCenterDocCreatorsWith []*GroupWhereInput `json:"hasTrustCenterDocCreatorsWith,omitempty"` + // trust_center_entity_creators edge predicates + HasTrustCenterEntityCreators *bool `json:"hasTrustCenterEntityCreators,omitempty"` + HasTrustCenterEntityCreatorsWith []*GroupWhereInput `json:"hasTrustCenterEntityCreatorsWith,omitempty"` + // trust_center_faq_creators edge predicates + HasTrustCenterFaqCreators *bool `json:"hasTrustCenterFaqCreators,omitempty"` + HasTrustCenterFaqCreatorsWith []*GroupWhereInput `json:"hasTrustCenterFaqCreatorsWith,omitempty"` + // trust_center_nda_request_creators edge predicates + HasTrustCenterNdaRequestCreators *bool `json:"hasTrustCenterNdaRequestCreators,omitempty"` + HasTrustCenterNdaRequestCreatorsWith []*GroupWhereInput `json:"hasTrustCenterNdaRequestCreatorsWith,omitempty"` // trust_center_subprocessor_creators edge predicates HasTrustCenterSubprocessorCreators *bool `json:"hasTrustCenterSubprocessorCreators,omitempty"` HasTrustCenterSubprocessorCreatorsWith []*GroupWhereInput `json:"hasTrustCenterSubprocessorCreatorsWith,omitempty"` - // action_plan_creators edge predicates - HasActionPlanCreators *bool `json:"hasActionPlanCreators,omitempty"` - HasActionPlanCreatorsWith []*GroupWhereInput `json:"hasActionPlanCreatorsWith,omitempty"` + // trust_center_watermark_config_creators edge predicates + HasTrustCenterWatermarkConfigCreators *bool `json:"hasTrustCenterWatermarkConfigCreators,omitempty"` + HasTrustCenterWatermarkConfigCreatorsWith []*GroupWhereInput `json:"hasTrustCenterWatermarkConfigCreatorsWith,omitempty"` + // user_creators edge predicates + HasUserCreators *bool `json:"hasUserCreators,omitempty"` + HasUserCreatorsWith []*GroupWhereInput `json:"hasUserCreatorsWith,omitempty"` + // user_setting_creators edge predicates + HasUserSettingCreators *bool `json:"hasUserSettingCreators,omitempty"` + HasUserSettingCreatorsWith []*GroupWhereInput `json:"hasUserSettingCreatorsWith,omitempty"` + // vendor_risk_score_creators edge predicates + HasVendorRiskScoreCreators *bool `json:"hasVendorRiskScoreCreators,omitempty"` + HasVendorRiskScoreCreatorsWith []*GroupWhereInput `json:"hasVendorRiskScoreCreatorsWith,omitempty"` + // vulnerability_creators edge predicates + HasVulnerabilityCreators *bool `json:"hasVulnerabilityCreators,omitempty"` + HasVulnerabilityCreatorsWith []*GroupWhereInput `json:"hasVulnerabilityCreatorsWith,omitempty"` + // workflow_assignment_creators edge predicates + HasWorkflowAssignmentCreators *bool `json:"hasWorkflowAssignmentCreators,omitempty"` + HasWorkflowAssignmentCreatorsWith []*GroupWhereInput `json:"hasWorkflowAssignmentCreatorsWith,omitempty"` + // workflow_assignment_target_creators edge predicates + HasWorkflowAssignmentTargetCreators *bool `json:"hasWorkflowAssignmentTargetCreators,omitempty"` + HasWorkflowAssignmentTargetCreatorsWith []*GroupWhereInput `json:"hasWorkflowAssignmentTargetCreatorsWith,omitempty"` + // workflow_definition_creators edge predicates + HasWorkflowDefinitionCreators *bool `json:"hasWorkflowDefinitionCreators,omitempty"` + HasWorkflowDefinitionCreatorsWith []*GroupWhereInput `json:"hasWorkflowDefinitionCreatorsWith,omitempty"` + // workflow_event_creators edge predicates + HasWorkflowEventCreators *bool `json:"hasWorkflowEventCreators,omitempty"` + HasWorkflowEventCreatorsWith []*GroupWhereInput `json:"hasWorkflowEventCreatorsWith,omitempty"` + // workflow_instance_creators edge predicates + HasWorkflowInstanceCreators *bool `json:"hasWorkflowInstanceCreators,omitempty"` + HasWorkflowInstanceCreatorsWith []*GroupWhereInput `json:"hasWorkflowInstanceCreatorsWith,omitempty"` + // workflow_object_ref_creators edge predicates + HasWorkflowObjectRefCreators *bool `json:"hasWorkflowObjectRefCreators,omitempty"` + HasWorkflowObjectRefCreatorsWith []*GroupWhereInput `json:"hasWorkflowObjectRefCreatorsWith,omitempty"` + // workflow_proposal_creators edge predicates + HasWorkflowProposalCreators *bool `json:"hasWorkflowProposalCreators,omitempty"` + HasWorkflowProposalCreatorsWith []*GroupWhereInput `json:"hasWorkflowProposalCreatorsWith,omitempty"` + // campaigns_manager edge predicates + HasCampaignsManager *bool `json:"hasCampaignsManager,omitempty"` + HasCampaignsManagerWith []*GroupWhereInput `json:"hasCampaignsManagerWith,omitempty"` + // compliance_manager edge predicates + HasComplianceManager *bool `json:"hasComplianceManager,omitempty"` + HasComplianceManagerWith []*GroupWhereInput `json:"hasComplianceManagerWith,omitempty"` + // group_manager edge predicates + HasGroupManager *bool `json:"hasGroupManager,omitempty"` + HasGroupManagerWith []*GroupWhereInput `json:"hasGroupManagerWith,omitempty"` + // policies_manager edge predicates + HasPoliciesManager *bool `json:"hasPoliciesManager,omitempty"` + HasPoliciesManagerWith []*GroupWhereInput `json:"hasPoliciesManagerWith,omitempty"` + // registry_manager edge predicates + HasRegistryManager *bool `json:"hasRegistryManager,omitempty"` + HasRegistryManagerWith []*GroupWhereInput `json:"hasRegistryManagerWith,omitempty"` + // risk_manager edge predicates + HasRiskManager *bool `json:"hasRiskManager,omitempty"` + HasRiskManagerWith []*GroupWhereInput `json:"hasRiskManagerWith,omitempty"` + // trust_center_manager edge predicates + HasTrustCenterManager *bool `json:"hasTrustCenterManager,omitempty"` + HasTrustCenterManagerWith []*GroupWhereInput `json:"hasTrustCenterManagerWith,omitempty"` + // workflows_manager edge predicates + HasWorkflowsManager *bool `json:"hasWorkflowsManager,omitempty"` + HasWorkflowsManagerWith []*GroupWhereInput `json:"hasWorkflowsManagerWith,omitempty"` // parent edge predicates HasParent *bool `json:"hasParent,omitempty"` HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` @@ -39258,8 +39538,6 @@ type UpdateAssessmentInput struct { // the duration in seconds that the user has to complete the assessment response, defaults to 7 days ResponseDueDuration *int64 `json:"responseDueDuration,omitempty"` ClearResponseDueDuration *bool `json:"clearResponseDueDuration,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - ClearOwner *bool `json:"clearOwner,omitempty"` AddBlockedGroupIDs []string `json:"addBlockedGroupIDs,omitempty"` RemoveBlockedGroupIDs []string `json:"removeBlockedGroupIDs,omitempty"` ClearBlockedGroups *bool `json:"clearBlockedGroups,omitempty"` @@ -42371,306 +42649,474 @@ type UpdateOrganizationInput struct { AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` ClearAvatarRemoteURL *bool `json:"clearAvatarRemoteURL,omitempty"` // The time the user's (local) avatar was last updated - AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` - ClearAvatarUpdatedAt *bool `json:"clearAvatarUpdatedAt,omitempty"` - AddControlCreatorIDs []string `json:"addControlCreatorIDs,omitempty"` - RemoveControlCreatorIDs []string `json:"removeControlCreatorIDs,omitempty"` - ClearControlCreators *bool `json:"clearControlCreators,omitempty"` - AddControlImplementationCreatorIDs []string `json:"addControlImplementationCreatorIDs,omitempty"` - RemoveControlImplementationCreatorIDs []string `json:"removeControlImplementationCreatorIDs,omitempty"` - ClearControlImplementationCreators *bool `json:"clearControlImplementationCreators,omitempty"` - AddControlObjectiveCreatorIDs []string `json:"addControlObjectiveCreatorIDs,omitempty"` - RemoveControlObjectiveCreatorIDs []string `json:"removeControlObjectiveCreatorIDs,omitempty"` - ClearControlObjectiveCreators *bool `json:"clearControlObjectiveCreators,omitempty"` - AddEvidenceCreatorIDs []string `json:"addEvidenceCreatorIDs,omitempty"` - RemoveEvidenceCreatorIDs []string `json:"removeEvidenceCreatorIDs,omitempty"` - ClearEvidenceCreators *bool `json:"clearEvidenceCreators,omitempty"` - AddAssetCreatorIDs []string `json:"addAssetCreatorIDs,omitempty"` - RemoveAssetCreatorIDs []string `json:"removeAssetCreatorIDs,omitempty"` - ClearAssetCreators *bool `json:"clearAssetCreators,omitempty"` - AddFindingCreatorIDs []string `json:"addFindingCreatorIDs,omitempty"` - RemoveFindingCreatorIDs []string `json:"removeFindingCreatorIDs,omitempty"` - ClearFindingCreators *bool `json:"clearFindingCreators,omitempty"` - AddVulnerabilityCreatorIDs []string `json:"addVulnerabilityCreatorIDs,omitempty"` - RemoveVulnerabilityCreatorIDs []string `json:"removeVulnerabilityCreatorIDs,omitempty"` - ClearVulnerabilityCreators *bool `json:"clearVulnerabilityCreators,omitempty"` - AddGroupCreatorIDs []string `json:"addGroupCreatorIDs,omitempty"` - RemoveGroupCreatorIDs []string `json:"removeGroupCreatorIDs,omitempty"` - ClearGroupCreators *bool `json:"clearGroupCreators,omitempty"` - AddInternalPolicyCreatorIDs []string `json:"addInternalPolicyCreatorIDs,omitempty"` - RemoveInternalPolicyCreatorIDs []string `json:"removeInternalPolicyCreatorIDs,omitempty"` - ClearInternalPolicyCreators *bool `json:"clearInternalPolicyCreators,omitempty"` - AddMappedControlCreatorIDs []string `json:"addMappedControlCreatorIDs,omitempty"` - RemoveMappedControlCreatorIDs []string `json:"removeMappedControlCreatorIDs,omitempty"` - ClearMappedControlCreators *bool `json:"clearMappedControlCreators,omitempty"` - AddNarrativeCreatorIDs []string `json:"addNarrativeCreatorIDs,omitempty"` - RemoveNarrativeCreatorIDs []string `json:"removeNarrativeCreatorIDs,omitempty"` - ClearNarrativeCreators *bool `json:"clearNarrativeCreators,omitempty"` - AddProcedureCreatorIDs []string `json:"addProcedureCreatorIDs,omitempty"` - RemoveProcedureCreatorIDs []string `json:"removeProcedureCreatorIDs,omitempty"` - ClearProcedureCreators *bool `json:"clearProcedureCreators,omitempty"` - AddProgramCreatorIDs []string `json:"addProgramCreatorIDs,omitempty"` - RemoveProgramCreatorIDs []string `json:"removeProgramCreatorIDs,omitempty"` - ClearProgramCreators *bool `json:"clearProgramCreators,omitempty"` - AddRiskCreatorIDs []string `json:"addRiskCreatorIDs,omitempty"` - RemoveRiskCreatorIDs []string `json:"removeRiskCreatorIDs,omitempty"` - ClearRiskCreators *bool `json:"clearRiskCreators,omitempty"` - AddIdentityHolderCreatorIDs []string `json:"addIdentityHolderCreatorIDs,omitempty"` - RemoveIdentityHolderCreatorIDs []string `json:"removeIdentityHolderCreatorIDs,omitempty"` - ClearIdentityHolderCreators *bool `json:"clearIdentityHolderCreators,omitempty"` - AddScheduledJobCreatorIDs []string `json:"addScheduledJobCreatorIDs,omitempty"` - RemoveScheduledJobCreatorIDs []string `json:"removeScheduledJobCreatorIDs,omitempty"` - ClearScheduledJobCreators *bool `json:"clearScheduledJobCreators,omitempty"` - AddStandardCreatorIDs []string `json:"addStandardCreatorIDs,omitempty"` - RemoveStandardCreatorIDs []string `json:"removeStandardCreatorIDs,omitempty"` - ClearStandardCreators *bool `json:"clearStandardCreators,omitempty"` - AddTemplateCreatorIDs []string `json:"addTemplateCreatorIDs,omitempty"` - RemoveTemplateCreatorIDs []string `json:"removeTemplateCreatorIDs,omitempty"` - ClearTemplateCreators *bool `json:"clearTemplateCreators,omitempty"` - AddSubprocessorCreatorIDs []string `json:"addSubprocessorCreatorIDs,omitempty"` - RemoveSubprocessorCreatorIDs []string `json:"removeSubprocessorCreatorIDs,omitempty"` - ClearSubprocessorCreators *bool `json:"clearSubprocessorCreators,omitempty"` - AddTrustCenterDocCreatorIDs []string `json:"addTrustCenterDocCreatorIDs,omitempty"` - RemoveTrustCenterDocCreatorIDs []string `json:"removeTrustCenterDocCreatorIDs,omitempty"` - ClearTrustCenterDocCreators *bool `json:"clearTrustCenterDocCreators,omitempty"` - AddTrustCenterSubprocessorCreatorIDs []string `json:"addTrustCenterSubprocessorCreatorIDs,omitempty"` - RemoveTrustCenterSubprocessorCreatorIDs []string `json:"removeTrustCenterSubprocessorCreatorIDs,omitempty"` - ClearTrustCenterSubprocessorCreators *bool `json:"clearTrustCenterSubprocessorCreators,omitempty"` - AddActionPlanCreatorIDs []string `json:"addActionPlanCreatorIDs,omitempty"` - RemoveActionPlanCreatorIDs []string `json:"removeActionPlanCreatorIDs,omitempty"` - ClearActionPlanCreators *bool `json:"clearActionPlanCreators,omitempty"` - SettingID *string `json:"settingID,omitempty"` - ClearSetting *bool `json:"clearSetting,omitempty"` - AddPersonalAccessTokenIDs []string `json:"addPersonalAccessTokenIDs,omitempty"` - RemovePersonalAccessTokenIDs []string `json:"removePersonalAccessTokenIDs,omitempty"` - ClearPersonalAccessTokens *bool `json:"clearPersonalAccessTokens,omitempty"` - AddAPITokenIDs []string `json:"addAPITokenIDs,omitempty"` - RemoveAPITokenIDs []string `json:"removeAPITokenIDs,omitempty"` - ClearAPITokens *bool `json:"clearAPITokens,omitempty"` - AddEmailTemplateIDs []string `json:"addEmailTemplateIDs,omitempty"` - RemoveEmailTemplateIDs []string `json:"removeEmailTemplateIDs,omitempty"` - ClearEmailTemplates *bool `json:"clearEmailTemplates,omitempty"` - AddNotificationPreferenceIDs []string `json:"addNotificationPreferenceIDs,omitempty"` - RemoveNotificationPreferenceIDs []string `json:"removeNotificationPreferenceIDs,omitempty"` - ClearNotificationPreferences *bool `json:"clearNotificationPreferences,omitempty"` - AddNotificationTemplateIDs []string `json:"addNotificationTemplateIDs,omitempty"` - RemoveNotificationTemplateIDs []string `json:"removeNotificationTemplateIDs,omitempty"` - ClearNotificationTemplates *bool `json:"clearNotificationTemplates,omitempty"` - AddFileIDs []string `json:"addFileIDs,omitempty"` - RemoveFileIDs []string `json:"removeFileIDs,omitempty"` - ClearFiles *bool `json:"clearFiles,omitempty"` - AddEventIDs []string `json:"addEventIDs,omitempty"` - RemoveEventIDs []string `json:"removeEventIDs,omitempty"` - ClearEvents *bool `json:"clearEvents,omitempty"` - AddSecretIDs []string `json:"addSecretIDs,omitempty"` - RemoveSecretIDs []string `json:"removeSecretIDs,omitempty"` - ClearSecrets *bool `json:"clearSecrets,omitempty"` - AvatarFileID *string `json:"avatarFileID,omitempty"` - ClearAvatarFile *bool `json:"clearAvatarFile,omitempty"` - AddGroupIDs []string `json:"addGroupIDs,omitempty"` - RemoveGroupIDs []string `json:"removeGroupIDs,omitempty"` - ClearGroups *bool `json:"clearGroups,omitempty"` - AddTemplateIDs []string `json:"addTemplateIDs,omitempty"` - RemoveTemplateIDs []string `json:"removeTemplateIDs,omitempty"` - ClearTemplates *bool `json:"clearTemplates,omitempty"` - AddIntegrationIDs []string `json:"addIntegrationIDs,omitempty"` - RemoveIntegrationIDs []string `json:"removeIntegrationIDs,omitempty"` - ClearIntegrations *bool `json:"clearIntegrations,omitempty"` - AddDocumentIDs []string `json:"addDocumentIDs,omitempty"` - RemoveDocumentIDs []string `json:"removeDocumentIDs,omitempty"` - ClearDocuments *bool `json:"clearDocuments,omitempty"` - AddOrgSubscriptionIDs []string `json:"addOrgSubscriptionIDs,omitempty"` - RemoveOrgSubscriptionIDs []string `json:"removeOrgSubscriptionIDs,omitempty"` - ClearOrgSubscriptions *bool `json:"clearOrgSubscriptions,omitempty"` - AddInviteIDs []string `json:"addInviteIDs,omitempty"` - RemoveInviteIDs []string `json:"removeInviteIDs,omitempty"` - ClearInvites *bool `json:"clearInvites,omitempty"` - AddSubscriberIDs []string `json:"addSubscriberIDs,omitempty"` - RemoveSubscriberIDs []string `json:"removeSubscriberIDs,omitempty"` - ClearSubscribers *bool `json:"clearSubscribers,omitempty"` - AddEntityIDs []string `json:"addEntityIDs,omitempty"` - RemoveEntityIDs []string `json:"removeEntityIDs,omitempty"` - ClearEntities *bool `json:"clearEntities,omitempty"` - AddPlatformIDs []string `json:"addPlatformIDs,omitempty"` - RemovePlatformIDs []string `json:"removePlatformIDs,omitempty"` - ClearPlatforms *bool `json:"clearPlatforms,omitempty"` - AddIdentityHolderIDs []string `json:"addIdentityHolderIDs,omitempty"` - RemoveIdentityHolderIDs []string `json:"removeIdentityHolderIDs,omitempty"` - ClearIdentityHolders *bool `json:"clearIdentityHolders,omitempty"` - AddCampaignIDs []string `json:"addCampaignIDs,omitempty"` - RemoveCampaignIDs []string `json:"removeCampaignIDs,omitempty"` - ClearCampaigns *bool `json:"clearCampaigns,omitempty"` - AddCampaignTargetIDs []string `json:"addCampaignTargetIDs,omitempty"` - RemoveCampaignTargetIDs []string `json:"removeCampaignTargetIDs,omitempty"` - ClearCampaignTargets *bool `json:"clearCampaignTargets,omitempty"` - AddEntityTypeIDs []string `json:"addEntityTypeIDs,omitempty"` - RemoveEntityTypeIDs []string `json:"removeEntityTypeIDs,omitempty"` - ClearEntityTypes *bool `json:"clearEntityTypes,omitempty"` - AddContactIDs []string `json:"addContactIDs,omitempty"` - RemoveContactIDs []string `json:"removeContactIDs,omitempty"` - ClearContacts *bool `json:"clearContacts,omitempty"` - AddNoteIDs []string `json:"addNoteIDs,omitempty"` - RemoveNoteIDs []string `json:"removeNoteIDs,omitempty"` - ClearNotes *bool `json:"clearNotes,omitempty"` - AddTaskIDs []string `json:"addTaskIDs,omitempty"` - RemoveTaskIDs []string `json:"removeTaskIDs,omitempty"` - ClearTasks *bool `json:"clearTasks,omitempty"` - AddProgramIDs []string `json:"addProgramIDs,omitempty"` - RemoveProgramIDs []string `json:"removeProgramIDs,omitempty"` - ClearPrograms *bool `json:"clearPrograms,omitempty"` - AddSystemDetailIDs []string `json:"addSystemDetailIDs,omitempty"` - RemoveSystemDetailIDs []string `json:"removeSystemDetailIDs,omitempty"` - ClearSystemDetails *bool `json:"clearSystemDetails,omitempty"` - AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` - RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` - ClearProcedures *bool `json:"clearProcedures,omitempty"` - AddInternalPolicyIDs []string `json:"addInternalPolicyIDs,omitempty"` - RemoveInternalPolicyIDs []string `json:"removeInternalPolicyIDs,omitempty"` - ClearInternalPolicies *bool `json:"clearInternalPolicies,omitempty"` - AddRiskIDs []string `json:"addRiskIDs,omitempty"` - RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` - ClearRisks *bool `json:"clearRisks,omitempty"` - AddControlObjectiveIDs []string `json:"addControlObjectiveIDs,omitempty"` - RemoveControlObjectiveIDs []string `json:"removeControlObjectiveIDs,omitempty"` - ClearControlObjectives *bool `json:"clearControlObjectives,omitempty"` - AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` - RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` - ClearNarratives *bool `json:"clearNarratives,omitempty"` - AddControlIDs []string `json:"addControlIDs,omitempty"` - RemoveControlIDs []string `json:"removeControlIDs,omitempty"` - ClearControls *bool `json:"clearControls,omitempty"` - AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` - RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` - ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` - AddControlImplementationIDs []string `json:"addControlImplementationIDs,omitempty"` - RemoveControlImplementationIDs []string `json:"removeControlImplementationIDs,omitempty"` - ClearControlImplementations *bool `json:"clearControlImplementations,omitempty"` - AddMappedControlIDs []string `json:"addMappedControlIDs,omitempty"` - RemoveMappedControlIDs []string `json:"removeMappedControlIDs,omitempty"` - ClearMappedControls *bool `json:"clearMappedControls,omitempty"` - AddEvidenceIDs []string `json:"addEvidenceIDs,omitempty"` - RemoveEvidenceIDs []string `json:"removeEvidenceIDs,omitempty"` - ClearEvidence *bool `json:"clearEvidence,omitempty"` - AddStandardIDs []string `json:"addStandardIDs,omitempty"` - RemoveStandardIDs []string `json:"removeStandardIDs,omitempty"` - ClearStandards *bool `json:"clearStandards,omitempty"` - AddActionPlanIDs []string `json:"addActionPlanIDs,omitempty"` - RemoveActionPlanIDs []string `json:"removeActionPlanIDs,omitempty"` - ClearActionPlans *bool `json:"clearActionPlans,omitempty"` - AddCustomDomainIDs []string `json:"addCustomDomainIDs,omitempty"` - RemoveCustomDomainIDs []string `json:"removeCustomDomainIDs,omitempty"` - ClearCustomDomains *bool `json:"clearCustomDomains,omitempty"` - AddJobRunnerIDs []string `json:"addJobRunnerIDs,omitempty"` - RemoveJobRunnerIDs []string `json:"removeJobRunnerIDs,omitempty"` - ClearJobRunners *bool `json:"clearJobRunners,omitempty"` - AddJobRunnerTokenIDs []string `json:"addJobRunnerTokenIDs,omitempty"` - RemoveJobRunnerTokenIDs []string `json:"removeJobRunnerTokenIDs,omitempty"` - ClearJobRunnerTokens *bool `json:"clearJobRunnerTokens,omitempty"` - AddJobRunnerRegistrationTokenIDs []string `json:"addJobRunnerRegistrationTokenIDs,omitempty"` - RemoveJobRunnerRegistrationTokenIDs []string `json:"removeJobRunnerRegistrationTokenIDs,omitempty"` - ClearJobRunnerRegistrationTokens *bool `json:"clearJobRunnerRegistrationTokens,omitempty"` - AddDNSVerificationIDs []string `json:"addDNSVerificationIDs,omitempty"` - RemoveDNSVerificationIDs []string `json:"removeDNSVerificationIDs,omitempty"` - ClearDNSVerifications *bool `json:"clearDNSVerifications,omitempty"` - AddJobTemplateIDs []string `json:"addJobTemplateIDs,omitempty"` - RemoveJobTemplateIDs []string `json:"removeJobTemplateIDs,omitempty"` - ClearJobTemplates *bool `json:"clearJobTemplates,omitempty"` - AddScheduledJobIDs []string `json:"addScheduledJobIDs,omitempty"` - RemoveScheduledJobIDs []string `json:"removeScheduledJobIDs,omitempty"` - ClearScheduledJobs *bool `json:"clearScheduledJobs,omitempty"` - AddJobResultIDs []string `json:"addJobResultIDs,omitempty"` - RemoveJobResultIDs []string `json:"removeJobResultIDs,omitempty"` - ClearJobResults *bool `json:"clearJobResults,omitempty"` - AddScheduledJobRunIDs []string `json:"addScheduledJobRunIDs,omitempty"` - RemoveScheduledJobRunIDs []string `json:"removeScheduledJobRunIDs,omitempty"` - ClearScheduledJobRuns *bool `json:"clearScheduledJobRuns,omitempty"` - AddTrustCenterIDs []string `json:"addTrustCenterIDs,omitempty"` - RemoveTrustCenterIDs []string `json:"removeTrustCenterIDs,omitempty"` - ClearTrustCenters *bool `json:"clearTrustCenters,omitempty"` - AddAssetIDs []string `json:"addAssetIDs,omitempty"` - RemoveAssetIDs []string `json:"removeAssetIDs,omitempty"` - ClearAssets *bool `json:"clearAssets,omitempty"` - AddScanIDs []string `json:"addScanIDs,omitempty"` - RemoveScanIDs []string `json:"removeScanIDs,omitempty"` - ClearScans *bool `json:"clearScans,omitempty"` - AddSLADefinitionIDs []string `json:"addSLADefinitionIDs,omitempty"` - RemoveSLADefinitionIDs []string `json:"removeSLADefinitionIDs,omitempty"` - ClearSLADefinitions *bool `json:"clearSLADefinitions,omitempty"` - AddSubprocessorIDs []string `json:"addSubprocessorIDs,omitempty"` - RemoveSubprocessorIDs []string `json:"removeSubprocessorIDs,omitempty"` - ClearSubprocessors *bool `json:"clearSubprocessors,omitempty"` - AddExportIDs []string `json:"addExportIDs,omitempty"` - RemoveExportIDs []string `json:"removeExportIDs,omitempty"` - ClearExports *bool `json:"clearExports,omitempty"` - AddTrustCenterWatermarkConfigIDs []string `json:"addTrustCenterWatermarkConfigIDs,omitempty"` - RemoveTrustCenterWatermarkConfigIDs []string `json:"removeTrustCenterWatermarkConfigIDs,omitempty"` - ClearTrustCenterWatermarkConfigs *bool `json:"clearTrustCenterWatermarkConfigs,omitempty"` - AddImpersonationEventIDs []string `json:"addImpersonationEventIDs,omitempty"` - RemoveImpersonationEventIDs []string `json:"removeImpersonationEventIDs,omitempty"` - ClearImpersonationEvents *bool `json:"clearImpersonationEvents,omitempty"` - AddAssessmentIDs []string `json:"addAssessmentIDs,omitempty"` - RemoveAssessmentIDs []string `json:"removeAssessmentIDs,omitempty"` - ClearAssessments *bool `json:"clearAssessments,omitempty"` - AddAssessmentResponseIDs []string `json:"addAssessmentResponseIDs,omitempty"` - RemoveAssessmentResponseIDs []string `json:"removeAssessmentResponseIDs,omitempty"` - ClearAssessmentResponses *bool `json:"clearAssessmentResponses,omitempty"` - AddCustomTypeEnumIDs []string `json:"addCustomTypeEnumIDs,omitempty"` - RemoveCustomTypeEnumIDs []string `json:"removeCustomTypeEnumIDs,omitempty"` - ClearCustomTypeEnums *bool `json:"clearCustomTypeEnums,omitempty"` - AddTagDefinitionIDs []string `json:"addTagDefinitionIDs,omitempty"` - RemoveTagDefinitionIDs []string `json:"removeTagDefinitionIDs,omitempty"` - ClearTagDefinitions *bool `json:"clearTagDefinitions,omitempty"` - AddRemediationIDs []string `json:"addRemediationIDs,omitempty"` - RemoveRemediationIDs []string `json:"removeRemediationIDs,omitempty"` - ClearRemediations *bool `json:"clearRemediations,omitempty"` - AddFindingIDs []string `json:"addFindingIDs,omitempty"` - RemoveFindingIDs []string `json:"removeFindingIDs,omitempty"` - ClearFindings *bool `json:"clearFindings,omitempty"` - AddReviewIDs []string `json:"addReviewIDs,omitempty"` - RemoveReviewIDs []string `json:"removeReviewIDs,omitempty"` - ClearReviews *bool `json:"clearReviews,omitempty"` - AddVulnerabilityIDs []string `json:"addVulnerabilityIDs,omitempty"` - RemoveVulnerabilityIDs []string `json:"removeVulnerabilityIDs,omitempty"` - ClearVulnerabilities *bool `json:"clearVulnerabilities,omitempty"` - AddWorkflowDefinitionIDs []string `json:"addWorkflowDefinitionIDs,omitempty"` - RemoveWorkflowDefinitionIDs []string `json:"removeWorkflowDefinitionIDs,omitempty"` - ClearWorkflowDefinitions *bool `json:"clearWorkflowDefinitions,omitempty"` - AddWorkflowInstanceIDs []string `json:"addWorkflowInstanceIDs,omitempty"` - RemoveWorkflowInstanceIDs []string `json:"removeWorkflowInstanceIDs,omitempty"` - ClearWorkflowInstances *bool `json:"clearWorkflowInstances,omitempty"` - AddWorkflowEventIDs []string `json:"addWorkflowEventIDs,omitempty"` - RemoveWorkflowEventIDs []string `json:"removeWorkflowEventIDs,omitempty"` - ClearWorkflowEvents *bool `json:"clearWorkflowEvents,omitempty"` - AddWorkflowAssignmentIDs []string `json:"addWorkflowAssignmentIDs,omitempty"` - RemoveWorkflowAssignmentIDs []string `json:"removeWorkflowAssignmentIDs,omitempty"` - ClearWorkflowAssignments *bool `json:"clearWorkflowAssignments,omitempty"` - AddWorkflowAssignmentTargetIDs []string `json:"addWorkflowAssignmentTargetIDs,omitempty"` - RemoveWorkflowAssignmentTargetIDs []string `json:"removeWorkflowAssignmentTargetIDs,omitempty"` - ClearWorkflowAssignmentTargets *bool `json:"clearWorkflowAssignmentTargets,omitempty"` - AddWorkflowObjectRefIDs []string `json:"addWorkflowObjectRefIDs,omitempty"` - RemoveWorkflowObjectRefIDs []string `json:"removeWorkflowObjectRefIDs,omitempty"` - ClearWorkflowObjectRefs *bool `json:"clearWorkflowObjectRefs,omitempty"` - AddDirectoryAccountIDs []string `json:"addDirectoryAccountIDs,omitempty"` - RemoveDirectoryAccountIDs []string `json:"removeDirectoryAccountIDs,omitempty"` - ClearDirectoryAccounts *bool `json:"clearDirectoryAccounts,omitempty"` - AddDirectoryGroupIDs []string `json:"addDirectoryGroupIDs,omitempty"` - RemoveDirectoryGroupIDs []string `json:"removeDirectoryGroupIDs,omitempty"` - ClearDirectoryGroups *bool `json:"clearDirectoryGroups,omitempty"` - AddDirectorySyncRunIDs []string `json:"addDirectorySyncRunIDs,omitempty"` - RemoveDirectorySyncRunIDs []string `json:"removeDirectorySyncRunIDs,omitempty"` - ClearDirectorySyncRuns *bool `json:"clearDirectorySyncRuns,omitempty"` - AddDiscussionIDs []string `json:"addDiscussionIDs,omitempty"` - RemoveDiscussionIDs []string `json:"removeDiscussionIDs,omitempty"` - ClearDiscussions *bool `json:"clearDiscussions,omitempty"` - AddVendorScoringConfigIDs []string `json:"addVendorScoringConfigIDs,omitempty"` - RemoveVendorScoringConfigIDs []string `json:"removeVendorScoringConfigIDs,omitempty"` - ClearVendorScoringConfigs *bool `json:"clearVendorScoringConfigs,omitempty"` - AddVendorRiskScoreIDs []string `json:"addVendorRiskScoreIDs,omitempty"` - RemoveVendorRiskScoreIDs []string `json:"removeVendorRiskScoreIDs,omitempty"` - ClearVendorRiskScores *bool `json:"clearVendorRiskScores,omitempty"` - AddOrgMembers []*CreateOrgMembershipInput `json:"addOrgMembers,omitempty"` - RemoveOrgMembers []string `json:"removeOrgMembers,omitempty"` - UpdateOrgSettings *UpdateOrganizationSettingInput `json:"updateOrgSettings,omitempty"` + AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` + ClearAvatarUpdatedAt *bool `json:"clearAvatarUpdatedAt,omitempty"` + AddActionPlanCreatorIDs []string `json:"addActionPlanCreatorIDs,omitempty"` + RemoveActionPlanCreatorIDs []string `json:"removeActionPlanCreatorIDs,omitempty"` + ClearActionPlanCreators *bool `json:"clearActionPlanCreators,omitempty"` + AddAPITokenCreatorIDs []string `json:"addAPITokenCreatorIDs,omitempty"` + RemoveAPITokenCreatorIDs []string `json:"removeAPITokenCreatorIDs,omitempty"` + ClearAPITokenCreators *bool `json:"clearAPITokenCreators,omitempty"` + AddAssessmentCreatorIDs []string `json:"addAssessmentCreatorIDs,omitempty"` + RemoveAssessmentCreatorIDs []string `json:"removeAssessmentCreatorIDs,omitempty"` + ClearAssessmentCreators *bool `json:"clearAssessmentCreators,omitempty"` + AddAssetCreatorIDs []string `json:"addAssetCreatorIDs,omitempty"` + RemoveAssetCreatorIDs []string `json:"removeAssetCreatorIDs,omitempty"` + ClearAssetCreators *bool `json:"clearAssetCreators,omitempty"` + AddCampaignCreatorIDs []string `json:"addCampaignCreatorIDs,omitempty"` + RemoveCampaignCreatorIDs []string `json:"removeCampaignCreatorIDs,omitempty"` + ClearCampaignCreators *bool `json:"clearCampaignCreators,omitempty"` + AddCampaignTargetCreatorIDs []string `json:"addCampaignTargetCreatorIDs,omitempty"` + RemoveCampaignTargetCreatorIDs []string `json:"removeCampaignTargetCreatorIDs,omitempty"` + ClearCampaignTargetCreators *bool `json:"clearCampaignTargetCreators,omitempty"` + AddCheckResultCreatorIDs []string `json:"addCheckResultCreatorIDs,omitempty"` + RemoveCheckResultCreatorIDs []string `json:"removeCheckResultCreatorIDs,omitempty"` + ClearCheckResultCreators *bool `json:"clearCheckResultCreators,omitempty"` + AddContactCreatorIDs []string `json:"addContactCreatorIDs,omitempty"` + RemoveContactCreatorIDs []string `json:"removeContactCreatorIDs,omitempty"` + ClearContactCreators *bool `json:"clearContactCreators,omitempty"` + AddControlCreatorIDs []string `json:"addControlCreatorIDs,omitempty"` + RemoveControlCreatorIDs []string `json:"removeControlCreatorIDs,omitempty"` + ClearControlCreators *bool `json:"clearControlCreators,omitempty"` + AddControlImplementationCreatorIDs []string `json:"addControlImplementationCreatorIDs,omitempty"` + RemoveControlImplementationCreatorIDs []string `json:"removeControlImplementationCreatorIDs,omitempty"` + ClearControlImplementationCreators *bool `json:"clearControlImplementationCreators,omitempty"` + AddControlObjectiveCreatorIDs []string `json:"addControlObjectiveCreatorIDs,omitempty"` + RemoveControlObjectiveCreatorIDs []string `json:"removeControlObjectiveCreatorIDs,omitempty"` + ClearControlObjectiveCreators *bool `json:"clearControlObjectiveCreators,omitempty"` + AddCustomTypeEnumCreatorIDs []string `json:"addCustomTypeEnumCreatorIDs,omitempty"` + RemoveCustomTypeEnumCreatorIDs []string `json:"removeCustomTypeEnumCreatorIDs,omitempty"` + ClearCustomTypeEnumCreators *bool `json:"clearCustomTypeEnumCreators,omitempty"` + AddDiscussionCreatorIDs []string `json:"addDiscussionCreatorIDs,omitempty"` + RemoveDiscussionCreatorIDs []string `json:"removeDiscussionCreatorIDs,omitempty"` + ClearDiscussionCreators *bool `json:"clearDiscussionCreators,omitempty"` + AddEmailTemplateCreatorIDs []string `json:"addEmailTemplateCreatorIDs,omitempty"` + RemoveEmailTemplateCreatorIDs []string `json:"removeEmailTemplateCreatorIDs,omitempty"` + ClearEmailTemplateCreators *bool `json:"clearEmailTemplateCreators,omitempty"` + AddEntityCreatorIDs []string `json:"addEntityCreatorIDs,omitempty"` + RemoveEntityCreatorIDs []string `json:"removeEntityCreatorIDs,omitempty"` + ClearEntityCreators *bool `json:"clearEntityCreators,omitempty"` + AddEntityTypeCreatorIDs []string `json:"addEntityTypeCreatorIDs,omitempty"` + RemoveEntityTypeCreatorIDs []string `json:"removeEntityTypeCreatorIDs,omitempty"` + ClearEntityTypeCreators *bool `json:"clearEntityTypeCreators,omitempty"` + AddEvidenceCreatorIDs []string `json:"addEvidenceCreatorIDs,omitempty"` + RemoveEvidenceCreatorIDs []string `json:"removeEvidenceCreatorIDs,omitempty"` + ClearEvidenceCreators *bool `json:"clearEvidenceCreators,omitempty"` + AddExportCreatorIDs []string `json:"addExportCreatorIDs,omitempty"` + RemoveExportCreatorIDs []string `json:"removeExportCreatorIDs,omitempty"` + ClearExportCreators *bool `json:"clearExportCreators,omitempty"` + AddFileCreatorIDs []string `json:"addFileCreatorIDs,omitempty"` + RemoveFileCreatorIDs []string `json:"removeFileCreatorIDs,omitempty"` + ClearFileCreators *bool `json:"clearFileCreators,omitempty"` + AddFindingCreatorIDs []string `json:"addFindingCreatorIDs,omitempty"` + RemoveFindingCreatorIDs []string `json:"removeFindingCreatorIDs,omitempty"` + ClearFindingCreators *bool `json:"clearFindingCreators,omitempty"` + AddGroupCreatorIDs []string `json:"addGroupCreatorIDs,omitempty"` + RemoveGroupCreatorIDs []string `json:"removeGroupCreatorIDs,omitempty"` + ClearGroupCreators *bool `json:"clearGroupCreators,omitempty"` + AddIdentityHolderCreatorIDs []string `json:"addIdentityHolderCreatorIDs,omitempty"` + RemoveIdentityHolderCreatorIDs []string `json:"removeIdentityHolderCreatorIDs,omitempty"` + ClearIdentityHolderCreators *bool `json:"clearIdentityHolderCreators,omitempty"` + AddIntegrationCreatorIDs []string `json:"addIntegrationCreatorIDs,omitempty"` + RemoveIntegrationCreatorIDs []string `json:"removeIntegrationCreatorIDs,omitempty"` + ClearIntegrationCreators *bool `json:"clearIntegrationCreators,omitempty"` + AddIntegrationWebhookCreatorIDs []string `json:"addIntegrationWebhookCreatorIDs,omitempty"` + RemoveIntegrationWebhookCreatorIDs []string `json:"removeIntegrationWebhookCreatorIDs,omitempty"` + ClearIntegrationWebhookCreators *bool `json:"clearIntegrationWebhookCreators,omitempty"` + AddInternalPolicyCreatorIDs []string `json:"addInternalPolicyCreatorIDs,omitempty"` + RemoveInternalPolicyCreatorIDs []string `json:"removeInternalPolicyCreatorIDs,omitempty"` + ClearInternalPolicyCreators *bool `json:"clearInternalPolicyCreators,omitempty"` + AddJobRunnerCreatorIDs []string `json:"addJobRunnerCreatorIDs,omitempty"` + RemoveJobRunnerCreatorIDs []string `json:"removeJobRunnerCreatorIDs,omitempty"` + ClearJobRunnerCreators *bool `json:"clearJobRunnerCreators,omitempty"` + AddJobRunnerRegistrationTokenCreatorIDs []string `json:"addJobRunnerRegistrationTokenCreatorIDs,omitempty"` + RemoveJobRunnerRegistrationTokenCreatorIDs []string `json:"removeJobRunnerRegistrationTokenCreatorIDs,omitempty"` + ClearJobRunnerRegistrationTokenCreators *bool `json:"clearJobRunnerRegistrationTokenCreators,omitempty"` + AddJobRunnerTokenCreatorIDs []string `json:"addJobRunnerTokenCreatorIDs,omitempty"` + RemoveJobRunnerTokenCreatorIDs []string `json:"removeJobRunnerTokenCreatorIDs,omitempty"` + ClearJobRunnerTokenCreators *bool `json:"clearJobRunnerTokenCreators,omitempty"` + AddJobTemplateCreatorIDs []string `json:"addJobTemplateCreatorIDs,omitempty"` + RemoveJobTemplateCreatorIDs []string `json:"removeJobTemplateCreatorIDs,omitempty"` + ClearJobTemplateCreators *bool `json:"clearJobTemplateCreators,omitempty"` + AddMappedControlCreatorIDs []string `json:"addMappedControlCreatorIDs,omitempty"` + RemoveMappedControlCreatorIDs []string `json:"removeMappedControlCreatorIDs,omitempty"` + ClearMappedControlCreators *bool `json:"clearMappedControlCreators,omitempty"` + AddNarrativeCreatorIDs []string `json:"addNarrativeCreatorIDs,omitempty"` + RemoveNarrativeCreatorIDs []string `json:"removeNarrativeCreatorIDs,omitempty"` + ClearNarrativeCreators *bool `json:"clearNarrativeCreators,omitempty"` + AddNoteCreatorIDs []string `json:"addNoteCreatorIDs,omitempty"` + RemoveNoteCreatorIDs []string `json:"removeNoteCreatorIDs,omitempty"` + ClearNoteCreators *bool `json:"clearNoteCreators,omitempty"` + AddNotificationTemplateCreatorIDs []string `json:"addNotificationTemplateCreatorIDs,omitempty"` + RemoveNotificationTemplateCreatorIDs []string `json:"removeNotificationTemplateCreatorIDs,omitempty"` + ClearNotificationTemplateCreators *bool `json:"clearNotificationTemplateCreators,omitempty"` + AddOrganizationCreatorIDs []string `json:"addOrganizationCreatorIDs,omitempty"` + RemoveOrganizationCreatorIDs []string `json:"removeOrganizationCreatorIDs,omitempty"` + ClearOrganizationCreators *bool `json:"clearOrganizationCreators,omitempty"` + AddPlatformCreatorIDs []string `json:"addPlatformCreatorIDs,omitempty"` + RemovePlatformCreatorIDs []string `json:"removePlatformCreatorIDs,omitempty"` + ClearPlatformCreators *bool `json:"clearPlatformCreators,omitempty"` + AddProcedureCreatorIDs []string `json:"addProcedureCreatorIDs,omitempty"` + RemoveProcedureCreatorIDs []string `json:"removeProcedureCreatorIDs,omitempty"` + ClearProcedureCreators *bool `json:"clearProcedureCreators,omitempty"` + AddProgramCreatorIDs []string `json:"addProgramCreatorIDs,omitempty"` + RemoveProgramCreatorIDs []string `json:"removeProgramCreatorIDs,omitempty"` + ClearProgramCreators *bool `json:"clearProgramCreators,omitempty"` + AddRemediationCreatorIDs []string `json:"addRemediationCreatorIDs,omitempty"` + RemoveRemediationCreatorIDs []string `json:"removeRemediationCreatorIDs,omitempty"` + ClearRemediationCreators *bool `json:"clearRemediationCreators,omitempty"` + AddReviewCreatorIDs []string `json:"addReviewCreatorIDs,omitempty"` + RemoveReviewCreatorIDs []string `json:"removeReviewCreatorIDs,omitempty"` + ClearReviewCreators *bool `json:"clearReviewCreators,omitempty"` + AddRiskCreatorIDs []string `json:"addRiskCreatorIDs,omitempty"` + RemoveRiskCreatorIDs []string `json:"removeRiskCreatorIDs,omitempty"` + ClearRiskCreators *bool `json:"clearRiskCreators,omitempty"` + AddScanCreatorIDs []string `json:"addScanCreatorIDs,omitempty"` + RemoveScanCreatorIDs []string `json:"removeScanCreatorIDs,omitempty"` + ClearScanCreators *bool `json:"clearScanCreators,omitempty"` + AddScheduledJobCreatorIDs []string `json:"addScheduledJobCreatorIDs,omitempty"` + RemoveScheduledJobCreatorIDs []string `json:"removeScheduledJobCreatorIDs,omitempty"` + ClearScheduledJobCreators *bool `json:"clearScheduledJobCreators,omitempty"` + AddScheduledJobRunCreatorIDs []string `json:"addScheduledJobRunCreatorIDs,omitempty"` + RemoveScheduledJobRunCreatorIDs []string `json:"removeScheduledJobRunCreatorIDs,omitempty"` + ClearScheduledJobRunCreators *bool `json:"clearScheduledJobRunCreators,omitempty"` + AddStandardCreatorIDs []string `json:"addStandardCreatorIDs,omitempty"` + RemoveStandardCreatorIDs []string `json:"removeStandardCreatorIDs,omitempty"` + ClearStandardCreators *bool `json:"clearStandardCreators,omitempty"` + AddSubcontrolCreatorIDs []string `json:"addSubcontrolCreatorIDs,omitempty"` + RemoveSubcontrolCreatorIDs []string `json:"removeSubcontrolCreatorIDs,omitempty"` + ClearSubcontrolCreators *bool `json:"clearSubcontrolCreators,omitempty"` + AddSubprocessorCreatorIDs []string `json:"addSubprocessorCreatorIDs,omitempty"` + RemoveSubprocessorCreatorIDs []string `json:"removeSubprocessorCreatorIDs,omitempty"` + ClearSubprocessorCreators *bool `json:"clearSubprocessorCreators,omitempty"` + AddSubscriberCreatorIDs []string `json:"addSubscriberCreatorIDs,omitempty"` + RemoveSubscriberCreatorIDs []string `json:"removeSubscriberCreatorIDs,omitempty"` + ClearSubscriberCreators *bool `json:"clearSubscriberCreators,omitempty"` + AddSystemDetailCreatorIDs []string `json:"addSystemDetailCreatorIDs,omitempty"` + RemoveSystemDetailCreatorIDs []string `json:"removeSystemDetailCreatorIDs,omitempty"` + ClearSystemDetailCreators *bool `json:"clearSystemDetailCreators,omitempty"` + AddTagDefinitionCreatorIDs []string `json:"addTagDefinitionCreatorIDs,omitempty"` + RemoveTagDefinitionCreatorIDs []string `json:"removeTagDefinitionCreatorIDs,omitempty"` + ClearTagDefinitionCreators *bool `json:"clearTagDefinitionCreators,omitempty"` + AddTaskCreatorIDs []string `json:"addTaskCreatorIDs,omitempty"` + RemoveTaskCreatorIDs []string `json:"removeTaskCreatorIDs,omitempty"` + ClearTaskCreators *bool `json:"clearTaskCreators,omitempty"` + AddTemplateCreatorIDs []string `json:"addTemplateCreatorIDs,omitempty"` + RemoveTemplateCreatorIDs []string `json:"removeTemplateCreatorIDs,omitempty"` + ClearTemplateCreators *bool `json:"clearTemplateCreators,omitempty"` + AddTrustCenterCreatorIDs []string `json:"addTrustCenterCreatorIDs,omitempty"` + RemoveTrustCenterCreatorIDs []string `json:"removeTrustCenterCreatorIDs,omitempty"` + ClearTrustCenterCreators *bool `json:"clearTrustCenterCreators,omitempty"` + AddTrustCenterComplianceCreatorIDs []string `json:"addTrustCenterComplianceCreatorIDs,omitempty"` + RemoveTrustCenterComplianceCreatorIDs []string `json:"removeTrustCenterComplianceCreatorIDs,omitempty"` + ClearTrustCenterComplianceCreators *bool `json:"clearTrustCenterComplianceCreators,omitempty"` + AddTrustCenterDocCreatorIDs []string `json:"addTrustCenterDocCreatorIDs,omitempty"` + RemoveTrustCenterDocCreatorIDs []string `json:"removeTrustCenterDocCreatorIDs,omitempty"` + ClearTrustCenterDocCreators *bool `json:"clearTrustCenterDocCreators,omitempty"` + AddTrustCenterEntityCreatorIDs []string `json:"addTrustCenterEntityCreatorIDs,omitempty"` + RemoveTrustCenterEntityCreatorIDs []string `json:"removeTrustCenterEntityCreatorIDs,omitempty"` + ClearTrustCenterEntityCreators *bool `json:"clearTrustCenterEntityCreators,omitempty"` + AddTrustCenterFaqCreatorIDs []string `json:"addTrustCenterFaqCreatorIDs,omitempty"` + RemoveTrustCenterFaqCreatorIDs []string `json:"removeTrustCenterFaqCreatorIDs,omitempty"` + ClearTrustCenterFaqCreators *bool `json:"clearTrustCenterFaqCreators,omitempty"` + AddTrustCenterNdaRequestCreatorIDs []string `json:"addTrustCenterNdaRequestCreatorIDs,omitempty"` + RemoveTrustCenterNdaRequestCreatorIDs []string `json:"removeTrustCenterNdaRequestCreatorIDs,omitempty"` + ClearTrustCenterNdaRequestCreators *bool `json:"clearTrustCenterNdaRequestCreators,omitempty"` + AddTrustCenterSubprocessorCreatorIDs []string `json:"addTrustCenterSubprocessorCreatorIDs,omitempty"` + RemoveTrustCenterSubprocessorCreatorIDs []string `json:"removeTrustCenterSubprocessorCreatorIDs,omitempty"` + ClearTrustCenterSubprocessorCreators *bool `json:"clearTrustCenterSubprocessorCreators,omitempty"` + AddTrustCenterWatermarkConfigCreatorIDs []string `json:"addTrustCenterWatermarkConfigCreatorIDs,omitempty"` + RemoveTrustCenterWatermarkConfigCreatorIDs []string `json:"removeTrustCenterWatermarkConfigCreatorIDs,omitempty"` + ClearTrustCenterWatermarkConfigCreators *bool `json:"clearTrustCenterWatermarkConfigCreators,omitempty"` + AddUserCreatorIDs []string `json:"addUserCreatorIDs,omitempty"` + RemoveUserCreatorIDs []string `json:"removeUserCreatorIDs,omitempty"` + ClearUserCreators *bool `json:"clearUserCreators,omitempty"` + AddUserSettingCreatorIDs []string `json:"addUserSettingCreatorIDs,omitempty"` + RemoveUserSettingCreatorIDs []string `json:"removeUserSettingCreatorIDs,omitempty"` + ClearUserSettingCreators *bool `json:"clearUserSettingCreators,omitempty"` + AddVendorRiskScoreCreatorIDs []string `json:"addVendorRiskScoreCreatorIDs,omitempty"` + RemoveVendorRiskScoreCreatorIDs []string `json:"removeVendorRiskScoreCreatorIDs,omitempty"` + ClearVendorRiskScoreCreators *bool `json:"clearVendorRiskScoreCreators,omitempty"` + AddVulnerabilityCreatorIDs []string `json:"addVulnerabilityCreatorIDs,omitempty"` + RemoveVulnerabilityCreatorIDs []string `json:"removeVulnerabilityCreatorIDs,omitempty"` + ClearVulnerabilityCreators *bool `json:"clearVulnerabilityCreators,omitempty"` + AddWorkflowAssignmentCreatorIDs []string `json:"addWorkflowAssignmentCreatorIDs,omitempty"` + RemoveWorkflowAssignmentCreatorIDs []string `json:"removeWorkflowAssignmentCreatorIDs,omitempty"` + ClearWorkflowAssignmentCreators *bool `json:"clearWorkflowAssignmentCreators,omitempty"` + AddWorkflowAssignmentTargetCreatorIDs []string `json:"addWorkflowAssignmentTargetCreatorIDs,omitempty"` + RemoveWorkflowAssignmentTargetCreatorIDs []string `json:"removeWorkflowAssignmentTargetCreatorIDs,omitempty"` + ClearWorkflowAssignmentTargetCreators *bool `json:"clearWorkflowAssignmentTargetCreators,omitempty"` + AddWorkflowDefinitionCreatorIDs []string `json:"addWorkflowDefinitionCreatorIDs,omitempty"` + RemoveWorkflowDefinitionCreatorIDs []string `json:"removeWorkflowDefinitionCreatorIDs,omitempty"` + ClearWorkflowDefinitionCreators *bool `json:"clearWorkflowDefinitionCreators,omitempty"` + AddWorkflowEventCreatorIDs []string `json:"addWorkflowEventCreatorIDs,omitempty"` + RemoveWorkflowEventCreatorIDs []string `json:"removeWorkflowEventCreatorIDs,omitempty"` + ClearWorkflowEventCreators *bool `json:"clearWorkflowEventCreators,omitempty"` + AddWorkflowInstanceCreatorIDs []string `json:"addWorkflowInstanceCreatorIDs,omitempty"` + RemoveWorkflowInstanceCreatorIDs []string `json:"removeWorkflowInstanceCreatorIDs,omitempty"` + ClearWorkflowInstanceCreators *bool `json:"clearWorkflowInstanceCreators,omitempty"` + AddWorkflowObjectRefCreatorIDs []string `json:"addWorkflowObjectRefCreatorIDs,omitempty"` + RemoveWorkflowObjectRefCreatorIDs []string `json:"removeWorkflowObjectRefCreatorIDs,omitempty"` + ClearWorkflowObjectRefCreators *bool `json:"clearWorkflowObjectRefCreators,omitempty"` + AddWorkflowProposalCreatorIDs []string `json:"addWorkflowProposalCreatorIDs,omitempty"` + RemoveWorkflowProposalCreatorIDs []string `json:"removeWorkflowProposalCreatorIDs,omitempty"` + ClearWorkflowProposalCreators *bool `json:"clearWorkflowProposalCreators,omitempty"` + AddCampaignsManagerIDs []string `json:"addCampaignsManagerIDs,omitempty"` + RemoveCampaignsManagerIDs []string `json:"removeCampaignsManagerIDs,omitempty"` + ClearCampaignsManager *bool `json:"clearCampaignsManager,omitempty"` + AddComplianceManagerIDs []string `json:"addComplianceManagerIDs,omitempty"` + RemoveComplianceManagerIDs []string `json:"removeComplianceManagerIDs,omitempty"` + ClearComplianceManager *bool `json:"clearComplianceManager,omitempty"` + AddGroupManagerIDs []string `json:"addGroupManagerIDs,omitempty"` + RemoveGroupManagerIDs []string `json:"removeGroupManagerIDs,omitempty"` + ClearGroupManager *bool `json:"clearGroupManager,omitempty"` + AddPoliciesManagerIDs []string `json:"addPoliciesManagerIDs,omitempty"` + RemovePoliciesManagerIDs []string `json:"removePoliciesManagerIDs,omitempty"` + ClearPoliciesManager *bool `json:"clearPoliciesManager,omitempty"` + AddRegistryManagerIDs []string `json:"addRegistryManagerIDs,omitempty"` + RemoveRegistryManagerIDs []string `json:"removeRegistryManagerIDs,omitempty"` + ClearRegistryManager *bool `json:"clearRegistryManager,omitempty"` + AddRiskManagerIDs []string `json:"addRiskManagerIDs,omitempty"` + RemoveRiskManagerIDs []string `json:"removeRiskManagerIDs,omitempty"` + ClearRiskManager *bool `json:"clearRiskManager,omitempty"` + AddTrustCenterManagerIDs []string `json:"addTrustCenterManagerIDs,omitempty"` + RemoveTrustCenterManagerIDs []string `json:"removeTrustCenterManagerIDs,omitempty"` + ClearTrustCenterManager *bool `json:"clearTrustCenterManager,omitempty"` + AddWorkflowsManagerIDs []string `json:"addWorkflowsManagerIDs,omitempty"` + RemoveWorkflowsManagerIDs []string `json:"removeWorkflowsManagerIDs,omitempty"` + ClearWorkflowsManager *bool `json:"clearWorkflowsManager,omitempty"` + SettingID *string `json:"settingID,omitempty"` + ClearSetting *bool `json:"clearSetting,omitempty"` + AddPersonalAccessTokenIDs []string `json:"addPersonalAccessTokenIDs,omitempty"` + RemovePersonalAccessTokenIDs []string `json:"removePersonalAccessTokenIDs,omitempty"` + ClearPersonalAccessTokens *bool `json:"clearPersonalAccessTokens,omitempty"` + AddAPITokenIDs []string `json:"addAPITokenIDs,omitempty"` + RemoveAPITokenIDs []string `json:"removeAPITokenIDs,omitempty"` + ClearAPITokens *bool `json:"clearAPITokens,omitempty"` + AddEmailTemplateIDs []string `json:"addEmailTemplateIDs,omitempty"` + RemoveEmailTemplateIDs []string `json:"removeEmailTemplateIDs,omitempty"` + ClearEmailTemplates *bool `json:"clearEmailTemplates,omitempty"` + AddNotificationPreferenceIDs []string `json:"addNotificationPreferenceIDs,omitempty"` + RemoveNotificationPreferenceIDs []string `json:"removeNotificationPreferenceIDs,omitempty"` + ClearNotificationPreferences *bool `json:"clearNotificationPreferences,omitempty"` + AddNotificationTemplateIDs []string `json:"addNotificationTemplateIDs,omitempty"` + RemoveNotificationTemplateIDs []string `json:"removeNotificationTemplateIDs,omitempty"` + ClearNotificationTemplates *bool `json:"clearNotificationTemplates,omitempty"` + AddFileIDs []string `json:"addFileIDs,omitempty"` + RemoveFileIDs []string `json:"removeFileIDs,omitempty"` + ClearFiles *bool `json:"clearFiles,omitempty"` + AddEventIDs []string `json:"addEventIDs,omitempty"` + RemoveEventIDs []string `json:"removeEventIDs,omitempty"` + ClearEvents *bool `json:"clearEvents,omitempty"` + AddSecretIDs []string `json:"addSecretIDs,omitempty"` + RemoveSecretIDs []string `json:"removeSecretIDs,omitempty"` + ClearSecrets *bool `json:"clearSecrets,omitempty"` + AvatarFileID *string `json:"avatarFileID,omitempty"` + ClearAvatarFile *bool `json:"clearAvatarFile,omitempty"` + AddGroupIDs []string `json:"addGroupIDs,omitempty"` + RemoveGroupIDs []string `json:"removeGroupIDs,omitempty"` + ClearGroups *bool `json:"clearGroups,omitempty"` + AddTemplateIDs []string `json:"addTemplateIDs,omitempty"` + RemoveTemplateIDs []string `json:"removeTemplateIDs,omitempty"` + ClearTemplates *bool `json:"clearTemplates,omitempty"` + AddIntegrationIDs []string `json:"addIntegrationIDs,omitempty"` + RemoveIntegrationIDs []string `json:"removeIntegrationIDs,omitempty"` + ClearIntegrations *bool `json:"clearIntegrations,omitempty"` + AddDocumentIDs []string `json:"addDocumentIDs,omitempty"` + RemoveDocumentIDs []string `json:"removeDocumentIDs,omitempty"` + ClearDocuments *bool `json:"clearDocuments,omitempty"` + AddOrgSubscriptionIDs []string `json:"addOrgSubscriptionIDs,omitempty"` + RemoveOrgSubscriptionIDs []string `json:"removeOrgSubscriptionIDs,omitempty"` + ClearOrgSubscriptions *bool `json:"clearOrgSubscriptions,omitempty"` + AddInviteIDs []string `json:"addInviteIDs,omitempty"` + RemoveInviteIDs []string `json:"removeInviteIDs,omitempty"` + ClearInvites *bool `json:"clearInvites,omitempty"` + AddSubscriberIDs []string `json:"addSubscriberIDs,omitempty"` + RemoveSubscriberIDs []string `json:"removeSubscriberIDs,omitempty"` + ClearSubscribers *bool `json:"clearSubscribers,omitempty"` + AddEntityIDs []string `json:"addEntityIDs,omitempty"` + RemoveEntityIDs []string `json:"removeEntityIDs,omitempty"` + ClearEntities *bool `json:"clearEntities,omitempty"` + AddPlatformIDs []string `json:"addPlatformIDs,omitempty"` + RemovePlatformIDs []string `json:"removePlatformIDs,omitempty"` + ClearPlatforms *bool `json:"clearPlatforms,omitempty"` + AddIdentityHolderIDs []string `json:"addIdentityHolderIDs,omitempty"` + RemoveIdentityHolderIDs []string `json:"removeIdentityHolderIDs,omitempty"` + ClearIdentityHolders *bool `json:"clearIdentityHolders,omitempty"` + AddCampaignIDs []string `json:"addCampaignIDs,omitempty"` + RemoveCampaignIDs []string `json:"removeCampaignIDs,omitempty"` + ClearCampaigns *bool `json:"clearCampaigns,omitempty"` + AddCampaignTargetIDs []string `json:"addCampaignTargetIDs,omitempty"` + RemoveCampaignTargetIDs []string `json:"removeCampaignTargetIDs,omitempty"` + ClearCampaignTargets *bool `json:"clearCampaignTargets,omitempty"` + AddEntityTypeIDs []string `json:"addEntityTypeIDs,omitempty"` + RemoveEntityTypeIDs []string `json:"removeEntityTypeIDs,omitempty"` + ClearEntityTypes *bool `json:"clearEntityTypes,omitempty"` + AddContactIDs []string `json:"addContactIDs,omitempty"` + RemoveContactIDs []string `json:"removeContactIDs,omitempty"` + ClearContacts *bool `json:"clearContacts,omitempty"` + AddNoteIDs []string `json:"addNoteIDs,omitempty"` + RemoveNoteIDs []string `json:"removeNoteIDs,omitempty"` + ClearNotes *bool `json:"clearNotes,omitempty"` + AddTaskIDs []string `json:"addTaskIDs,omitempty"` + RemoveTaskIDs []string `json:"removeTaskIDs,omitempty"` + ClearTasks *bool `json:"clearTasks,omitempty"` + AddProgramIDs []string `json:"addProgramIDs,omitempty"` + RemoveProgramIDs []string `json:"removeProgramIDs,omitempty"` + ClearPrograms *bool `json:"clearPrograms,omitempty"` + AddSystemDetailIDs []string `json:"addSystemDetailIDs,omitempty"` + RemoveSystemDetailIDs []string `json:"removeSystemDetailIDs,omitempty"` + ClearSystemDetails *bool `json:"clearSystemDetails,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedures *bool `json:"clearProcedures,omitempty"` + AddInternalPolicyIDs []string `json:"addInternalPolicyIDs,omitempty"` + RemoveInternalPolicyIDs []string `json:"removeInternalPolicyIDs,omitempty"` + ClearInternalPolicies *bool `json:"clearInternalPolicies,omitempty"` + AddRiskIDs []string `json:"addRiskIDs,omitempty"` + RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` + ClearRisks *bool `json:"clearRisks,omitempty"` + AddControlObjectiveIDs []string `json:"addControlObjectiveIDs,omitempty"` + RemoveControlObjectiveIDs []string `json:"removeControlObjectiveIDs,omitempty"` + ClearControlObjectives *bool `json:"clearControlObjectives,omitempty"` + AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` + RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` + ClearNarratives *bool `json:"clearNarratives,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControls *bool `json:"clearControls,omitempty"` + AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` + RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` + ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` + AddControlImplementationIDs []string `json:"addControlImplementationIDs,omitempty"` + RemoveControlImplementationIDs []string `json:"removeControlImplementationIDs,omitempty"` + ClearControlImplementations *bool `json:"clearControlImplementations,omitempty"` + AddMappedControlIDs []string `json:"addMappedControlIDs,omitempty"` + RemoveMappedControlIDs []string `json:"removeMappedControlIDs,omitempty"` + ClearMappedControls *bool `json:"clearMappedControls,omitempty"` + AddEvidenceIDs []string `json:"addEvidenceIDs,omitempty"` + RemoveEvidenceIDs []string `json:"removeEvidenceIDs,omitempty"` + ClearEvidence *bool `json:"clearEvidence,omitempty"` + AddStandardIDs []string `json:"addStandardIDs,omitempty"` + RemoveStandardIDs []string `json:"removeStandardIDs,omitempty"` + ClearStandards *bool `json:"clearStandards,omitempty"` + AddActionPlanIDs []string `json:"addActionPlanIDs,omitempty"` + RemoveActionPlanIDs []string `json:"removeActionPlanIDs,omitempty"` + ClearActionPlans *bool `json:"clearActionPlans,omitempty"` + AddCustomDomainIDs []string `json:"addCustomDomainIDs,omitempty"` + RemoveCustomDomainIDs []string `json:"removeCustomDomainIDs,omitempty"` + ClearCustomDomains *bool `json:"clearCustomDomains,omitempty"` + AddJobRunnerIDs []string `json:"addJobRunnerIDs,omitempty"` + RemoveJobRunnerIDs []string `json:"removeJobRunnerIDs,omitempty"` + ClearJobRunners *bool `json:"clearJobRunners,omitempty"` + AddJobRunnerTokenIDs []string `json:"addJobRunnerTokenIDs,omitempty"` + RemoveJobRunnerTokenIDs []string `json:"removeJobRunnerTokenIDs,omitempty"` + ClearJobRunnerTokens *bool `json:"clearJobRunnerTokens,omitempty"` + AddJobRunnerRegistrationTokenIDs []string `json:"addJobRunnerRegistrationTokenIDs,omitempty"` + RemoveJobRunnerRegistrationTokenIDs []string `json:"removeJobRunnerRegistrationTokenIDs,omitempty"` + ClearJobRunnerRegistrationTokens *bool `json:"clearJobRunnerRegistrationTokens,omitempty"` + AddDNSVerificationIDs []string `json:"addDNSVerificationIDs,omitempty"` + RemoveDNSVerificationIDs []string `json:"removeDNSVerificationIDs,omitempty"` + ClearDNSVerifications *bool `json:"clearDNSVerifications,omitempty"` + AddJobTemplateIDs []string `json:"addJobTemplateIDs,omitempty"` + RemoveJobTemplateIDs []string `json:"removeJobTemplateIDs,omitempty"` + ClearJobTemplates *bool `json:"clearJobTemplates,omitempty"` + AddScheduledJobIDs []string `json:"addScheduledJobIDs,omitempty"` + RemoveScheduledJobIDs []string `json:"removeScheduledJobIDs,omitempty"` + ClearScheduledJobs *bool `json:"clearScheduledJobs,omitempty"` + AddJobResultIDs []string `json:"addJobResultIDs,omitempty"` + RemoveJobResultIDs []string `json:"removeJobResultIDs,omitempty"` + ClearJobResults *bool `json:"clearJobResults,omitempty"` + AddScheduledJobRunIDs []string `json:"addScheduledJobRunIDs,omitempty"` + RemoveScheduledJobRunIDs []string `json:"removeScheduledJobRunIDs,omitempty"` + ClearScheduledJobRuns *bool `json:"clearScheduledJobRuns,omitempty"` + AddTrustCenterIDs []string `json:"addTrustCenterIDs,omitempty"` + RemoveTrustCenterIDs []string `json:"removeTrustCenterIDs,omitempty"` + ClearTrustCenters *bool `json:"clearTrustCenters,omitempty"` + AddAssetIDs []string `json:"addAssetIDs,omitempty"` + RemoveAssetIDs []string `json:"removeAssetIDs,omitempty"` + ClearAssets *bool `json:"clearAssets,omitempty"` + AddScanIDs []string `json:"addScanIDs,omitempty"` + RemoveScanIDs []string `json:"removeScanIDs,omitempty"` + ClearScans *bool `json:"clearScans,omitempty"` + AddSLADefinitionIDs []string `json:"addSLADefinitionIDs,omitempty"` + RemoveSLADefinitionIDs []string `json:"removeSLADefinitionIDs,omitempty"` + ClearSLADefinitions *bool `json:"clearSLADefinitions,omitempty"` + AddSubprocessorIDs []string `json:"addSubprocessorIDs,omitempty"` + RemoveSubprocessorIDs []string `json:"removeSubprocessorIDs,omitempty"` + ClearSubprocessors *bool `json:"clearSubprocessors,omitempty"` + AddExportIDs []string `json:"addExportIDs,omitempty"` + RemoveExportIDs []string `json:"removeExportIDs,omitempty"` + ClearExports *bool `json:"clearExports,omitempty"` + AddTrustCenterWatermarkConfigIDs []string `json:"addTrustCenterWatermarkConfigIDs,omitempty"` + RemoveTrustCenterWatermarkConfigIDs []string `json:"removeTrustCenterWatermarkConfigIDs,omitempty"` + ClearTrustCenterWatermarkConfigs *bool `json:"clearTrustCenterWatermarkConfigs,omitempty"` + AddImpersonationEventIDs []string `json:"addImpersonationEventIDs,omitempty"` + RemoveImpersonationEventIDs []string `json:"removeImpersonationEventIDs,omitempty"` + ClearImpersonationEvents *bool `json:"clearImpersonationEvents,omitempty"` + AddAssessmentIDs []string `json:"addAssessmentIDs,omitempty"` + RemoveAssessmentIDs []string `json:"removeAssessmentIDs,omitempty"` + ClearAssessments *bool `json:"clearAssessments,omitempty"` + AddAssessmentResponseIDs []string `json:"addAssessmentResponseIDs,omitempty"` + RemoveAssessmentResponseIDs []string `json:"removeAssessmentResponseIDs,omitempty"` + ClearAssessmentResponses *bool `json:"clearAssessmentResponses,omitempty"` + AddCustomTypeEnumIDs []string `json:"addCustomTypeEnumIDs,omitempty"` + RemoveCustomTypeEnumIDs []string `json:"removeCustomTypeEnumIDs,omitempty"` + ClearCustomTypeEnums *bool `json:"clearCustomTypeEnums,omitempty"` + AddTagDefinitionIDs []string `json:"addTagDefinitionIDs,omitempty"` + RemoveTagDefinitionIDs []string `json:"removeTagDefinitionIDs,omitempty"` + ClearTagDefinitions *bool `json:"clearTagDefinitions,omitempty"` + AddRemediationIDs []string `json:"addRemediationIDs,omitempty"` + RemoveRemediationIDs []string `json:"removeRemediationIDs,omitempty"` + ClearRemediations *bool `json:"clearRemediations,omitempty"` + AddFindingIDs []string `json:"addFindingIDs,omitempty"` + RemoveFindingIDs []string `json:"removeFindingIDs,omitempty"` + ClearFindings *bool `json:"clearFindings,omitempty"` + AddReviewIDs []string `json:"addReviewIDs,omitempty"` + RemoveReviewIDs []string `json:"removeReviewIDs,omitempty"` + ClearReviews *bool `json:"clearReviews,omitempty"` + AddVulnerabilityIDs []string `json:"addVulnerabilityIDs,omitempty"` + RemoveVulnerabilityIDs []string `json:"removeVulnerabilityIDs,omitempty"` + ClearVulnerabilities *bool `json:"clearVulnerabilities,omitempty"` + AddWorkflowDefinitionIDs []string `json:"addWorkflowDefinitionIDs,omitempty"` + RemoveWorkflowDefinitionIDs []string `json:"removeWorkflowDefinitionIDs,omitempty"` + ClearWorkflowDefinitions *bool `json:"clearWorkflowDefinitions,omitempty"` + AddWorkflowInstanceIDs []string `json:"addWorkflowInstanceIDs,omitempty"` + RemoveWorkflowInstanceIDs []string `json:"removeWorkflowInstanceIDs,omitempty"` + ClearWorkflowInstances *bool `json:"clearWorkflowInstances,omitempty"` + AddWorkflowEventIDs []string `json:"addWorkflowEventIDs,omitempty"` + RemoveWorkflowEventIDs []string `json:"removeWorkflowEventIDs,omitempty"` + ClearWorkflowEvents *bool `json:"clearWorkflowEvents,omitempty"` + AddWorkflowAssignmentIDs []string `json:"addWorkflowAssignmentIDs,omitempty"` + RemoveWorkflowAssignmentIDs []string `json:"removeWorkflowAssignmentIDs,omitempty"` + ClearWorkflowAssignments *bool `json:"clearWorkflowAssignments,omitempty"` + AddWorkflowAssignmentTargetIDs []string `json:"addWorkflowAssignmentTargetIDs,omitempty"` + RemoveWorkflowAssignmentTargetIDs []string `json:"removeWorkflowAssignmentTargetIDs,omitempty"` + ClearWorkflowAssignmentTargets *bool `json:"clearWorkflowAssignmentTargets,omitempty"` + AddWorkflowObjectRefIDs []string `json:"addWorkflowObjectRefIDs,omitempty"` + RemoveWorkflowObjectRefIDs []string `json:"removeWorkflowObjectRefIDs,omitempty"` + ClearWorkflowObjectRefs *bool `json:"clearWorkflowObjectRefs,omitempty"` + AddDirectoryAccountIDs []string `json:"addDirectoryAccountIDs,omitempty"` + RemoveDirectoryAccountIDs []string `json:"removeDirectoryAccountIDs,omitempty"` + ClearDirectoryAccounts *bool `json:"clearDirectoryAccounts,omitempty"` + AddDirectoryGroupIDs []string `json:"addDirectoryGroupIDs,omitempty"` + RemoveDirectoryGroupIDs []string `json:"removeDirectoryGroupIDs,omitempty"` + ClearDirectoryGroups *bool `json:"clearDirectoryGroups,omitempty"` + AddDirectorySyncRunIDs []string `json:"addDirectorySyncRunIDs,omitempty"` + RemoveDirectorySyncRunIDs []string `json:"removeDirectorySyncRunIDs,omitempty"` + ClearDirectorySyncRuns *bool `json:"clearDirectorySyncRuns,omitempty"` + AddDiscussionIDs []string `json:"addDiscussionIDs,omitempty"` + RemoveDiscussionIDs []string `json:"removeDiscussionIDs,omitempty"` + ClearDiscussions *bool `json:"clearDiscussions,omitempty"` + AddVendorScoringConfigIDs []string `json:"addVendorScoringConfigIDs,omitempty"` + RemoveVendorScoringConfigIDs []string `json:"removeVendorScoringConfigIDs,omitempty"` + ClearVendorScoringConfigs *bool `json:"clearVendorScoringConfigs,omitempty"` + AddVendorRiskScoreIDs []string `json:"addVendorRiskScoreIDs,omitempty"` + RemoveVendorRiskScoreIDs []string `json:"removeVendorRiskScoreIDs,omitempty"` + ClearVendorRiskScores *bool `json:"clearVendorRiskScores,omitempty"` + AddOrgMembers []*CreateOrgMembershipInput `json:"addOrgMembers,omitempty"` + RemoveOrgMembers []string `json:"removeOrgMembers,omitempty"` + UpdateOrgSettings *UpdateOrganizationSettingInput `json:"updateOrgSettings,omitempty"` } // UpdateOrganizationSettingInput is used for update OrganizationSetting object. diff --git a/internal/graphapi/trustcenterndarequest_test.go b/internal/graphapi/trustcenterndarequest_test.go index 344211a82f..b1b3a06ffc 100644 --- a/internal/graphapi/trustcenterndarequest_test.go +++ b/internal/graphapi/trustcenterndarequest_test.go @@ -530,21 +530,6 @@ func TestMutationCreateTrustCenterNDARequestAsAnonymousUser(t *testing.T) { tcOrg2 := createFreshOrgWithTrustCenter(t, withNDATemplate()) otherTrustCenter := tcOrg2.trustCenter - ndaFile := (&FileBuilder{client: suite.client, Name: "nda.pdf"}).MustNew(tcOrg.owner.UserCtx, t) - - ndaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: trustCenter.ID, - FileIDs: []string{ndaFile.ID}, - }).MustNew(tcOrg.owner.UserCtx, t) - - otherNdaTemplate := (&TemplateBuilder{ - client: suite.client, - Kind: enums.TemplateKindTrustCenterNda, - TrustCenterID: otherTrustCenter.ID, - }).MustNew(tcOrg2.owner.UserCtx, t) - anonEmail := gofakeit.Email() anonCtx, anonUser := createAnonymousTrustCenterContextWithEmail(trustCenter.ID, trustCenter.OwnerID, anonEmail) wrongTrustCenterAnonCtx := createAnonymousTrustCenterContext(otherTrustCenter.ID, otherTrustCenter.OwnerID) diff --git a/internal/httpserve/specs/openlane.openapi.json b/internal/httpserve/specs/openlane.openapi.json index 4bc0349180..e519205952 100644 --- a/internal/httpserve/specs/openlane.openapi.json +++ b/internal/httpserve/specs/openlane.openapi.json @@ -3779,30 +3779,6 @@ ] } }, - "/resend/webhook": { - "post": { - "description": "Handle incoming webhook events from Resend for email delivery tracking", - "operationId": "ResendWebhook", - "responses": { - "200": { - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - }, - "description": "Webhook acknowledgment" - } - }, - "security": [], - "summary": "ResendWebhook", - "tags": [ - "webhooks", - "email" - ] - } - }, "/robots.txt": { "get": { "description": "Get robots.txt file for web crawlers", @@ -6418,7 +6394,7 @@ "name": "documentation" }, { - "description": "ResendWebhook", + "description": "VerifyEmail", "name": "email" }, { @@ -6521,10 +6497,6 @@ "description": "Webfinger", "name": "webfinger" }, - { - "description": "ResendWebhook", - "name": "webhooks" - }, { "description": "JWKS", "name": "well-known" diff --git a/internal/httpserve/specs/openlane.openapi.yaml b/internal/httpserve/specs/openlane.openapi.yaml index 130c6f088e..2d715556d0 100644 --- a/internal/httpserve/specs/openlane.openapi.yaml +++ b/internal/httpserve/specs/openlane.openapi.yaml @@ -2685,22 +2685,6 @@ paths: tags: - webauthn - authentication - /resend/webhook: - post: - description: Handle incoming webhook events from Resend for email delivery tracking - operationId: ResendWebhook - responses: - "200": - content: - text/plain: - schema: - type: string - description: Webhook acknowledgment - security: [] - summary: ResendWebhook - tags: - - webhooks - - email /robots.txt: get: description: Get robots.txt file for web crawlers @@ -4317,7 +4301,7 @@ tags: name: certificates - description: APIDocs name: documentation - - description: ResendWebhook + - description: VerifyEmail name: email - description: ExampleCSV name: examples @@ -4369,7 +4353,5 @@ tags: name: webauthn - description: Webfinger name: webfinger - - description: ResendWebhook - name: webhooks - description: JWKS name: well-known diff --git a/internal/integrations/operations/ingest_generated.go b/internal/integrations/operations/ingest_generated.go index a380f8ff98..ba59c9a373 100644 --- a/internal/integrations/operations/ingest_generated.go +++ b/internal/integrations/operations/ingest_generated.go @@ -12,8 +12,8 @@ import ( ent "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/integrationgenerated" "github.com/theopenlane/core/pkg/gala" - "github.com/theopenlane/utils/contextx" "github.com/theopenlane/core/pkg/logx" + "github.com/theopenlane/utils/contextx" ) var directorySyncRunIDKey = contextx.NewKey[string]() @@ -359,11 +359,11 @@ func buildIngestMetadata(integration *ent.Integration, operationName string, rec } if options.WorkflowMeta != nil { - metadata.WorkflowInstanceID = options.WorkflowMeta.InstanceID - metadata.WorkflowActionKey = options.WorkflowMeta.ActionKey + metadata.WorkflowInstanceID = options.WorkflowMeta.InstanceID + metadata.WorkflowActionKey = options.WorkflowMeta.ActionKey metadata.WorkflowActionIndex = options.WorkflowMeta.ActionIndex - metadata.WorkflowObjectID = options.WorkflowMeta.ObjectID - metadata.WorkflowObjectType = string(options.WorkflowMeta.ObjectType) + metadata.WorkflowObjectID = options.WorkflowMeta.ObjectID + metadata.WorkflowObjectType = string(options.WorkflowMeta.ObjectType) } return metadata diff --git a/pkg/objects/storage/utils_test.go b/pkg/objects/storage/utils_test.go index c0b14d79f0..b7f9a1a619 100644 --- a/pkg/objects/storage/utils_test.go +++ b/pkg/objects/storage/utils_test.go @@ -476,4 +476,3 @@ func TestParseDocument_EmptyContent(t *testing.T) { }) } } - From de58a11f6a457c92cd15e024a3cd37873831d48b Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 09:58:31 -0600 Subject: [PATCH 03/12] cleanup Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- fga/model/automation/notifications.fga | 19 ------ internal/ent/hooks/listeners_entitlements.go | 10 ++- .../entitlements/reconciler/reconciler.go | 5 +- internal/graphapi/_example_test.go | 48 +++++++------- internal/graphapi/assessment_test.go | 2 +- .../graphapi/campaign_restrictions_test.go | 64 +++++++++---------- internal/graphapi/control_test.go | 6 +- .../graphapi/controlimplementation_test.go | 2 +- internal/graphapi/controlobjective_test.go | 4 +- internal/graphapi/customdomain_test.go | 2 +- internal/graphapi/customtypeenums_test.go | 2 +- internal/graphapi/dnsverification_test.go | 2 +- internal/graphapi/emailtemplate_test.go | 4 +- internal/graphapi/evidence_test.go | 2 +- internal/graphapi/file_test.go | 2 +- internal/graphapi/group_test.go | 4 +- internal/graphapi/groupmembers_test.go | 8 +-- internal/graphapi/integration_test.go | 4 +- .../internalpolicy_statusapproval_test.go | 10 +-- internal/graphapi/internalpolicy_test.go | 10 +-- internal/graphapi/jobtemplate_test.go | 4 +- internal/graphapi/mappedcontrol_test.go | 4 +- internal/graphapi/models_test.go | 2 +- internal/graphapi/narrative_test.go | 4 +- internal/graphapi/platform_test.go | 4 +- internal/graphapi/procedure_test.go | 8 +-- internal/graphapi/program_test.go | 8 +-- internal/graphapi/programmembers_test.go | 8 +-- internal/graphapi/risk_test.go | 4 +- internal/graphapi/scheduledjob_test.go | 2 +- internal/graphapi/subcontrol_test.go | 2 +- internal/graphapi/subprocessor_test.go | 4 +- internal/graphapi/tagdefinition_test.go | 2 +- internal/graphapi/task_test.go | 49 ++++++++------ internal/graphapi/template_test.go | 2 +- internal/graphapi/tools_trustcenter_test.go | 2 +- 36 files changed, 159 insertions(+), 160 deletions(-) diff --git a/fga/model/automation/notifications.fga b/fga/model/automation/notifications.fga index 05c81c5d76..d15b9b3ce7 100644 --- a/fga/model/automation/notifications.fga +++ b/fga/model/automation/notifications.fga @@ -1,24 +1,5 @@ module automation -# email branding holds visual configuration for branded emails -type email_branding - relations - # base permissions - these should all be derived permissions - define can_view: (viewer but not blocked) - define can_edit: (editor but not blocked) or can_delete - define can_delete: (editor but not blocked) - - # tuple based permissions for edit, view, blocked, and audit log viewing - define editor: [user, service, group#member] or parent_editor - define viewer: [user, service, group#member] or editor or parent_viewer - define blocked: [user, service, group#member] - define audit_log_viewer: (([user, service, group#member] or audit_log_viewer from parent_context) and can_view) or can_view - - # parent permissions derived based on `crud` permissions or parents - define parent_editor: can_edit from parent_context or can_edit_email_branding from parent_context - define parent_viewer: can_view from parent_context or can_view_email_branding from parent_context - define parent_context: [organization] - # email templates support branded outbound messages (system or org-owned) type email_template relations diff --git a/internal/ent/hooks/listeners_entitlements.go b/internal/ent/hooks/listeners_entitlements.go index d570f3be5f..a1b39e7526 100644 --- a/internal/ent/hooks/listeners_entitlements.go +++ b/internal/ent/hooks/listeners_entitlements.go @@ -14,6 +14,7 @@ import ( "github.com/theopenlane/core/common/models" "github.com/theopenlane/core/internal/ent/eventqueue" + "github.com/theopenlane/core/internal/ent/generated" entgen "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/privacy" @@ -308,7 +309,14 @@ func (inv *entitlementInvocation) reconcile() error { } if _, err := reconciler.Reconcile(inv.Context(), []string{inv.orgID}); err != nil { - inv.Logger().Err(err).Msg("entitlement reconciliation failed") + unwrapped := errors.Unwrap(err) + // if this is a constraint error, mark it as warn - this is common in tests and we will still have the logs + // in production + if unwrapped != nil && errors.Is(generated.ConstraintError{}, unwrapped) { + inv.Logger().Warn().Err(err).Msgf("entitlement reconciliation failed, organization with stripe customer id already exits") + } else { + inv.Logger().Err(err).Msg("entitlement reconciliation failed") + } return err } diff --git a/internal/entitlements/reconciler/reconciler.go b/internal/entitlements/reconciler/reconciler.go index 2f6a7895c5..84f0bdb112 100644 --- a/internal/entitlements/reconciler/reconciler.go +++ b/internal/entitlements/reconciler/reconciler.go @@ -25,6 +25,8 @@ import ( "github.com/theopenlane/iam/auth" ) +var ErrOrganizationConstraintError = errors.New("duplicate key: organization with stripe customer key already exists") + // Reconciler reconciles organization subscriptions with Stripe type Reconciler struct { db *ent.Client @@ -229,7 +231,8 @@ func (r *Reconciler) reconcileOrg(ctx context.Context, org *ent.Organization) er // to anyone looking at this later and wondering why test logs have lots of error logs about // pq: duplicate key value violates unique constraint - this is due to the mocked calls - // and can safely be ignored in tests + // this are now logged as warning in logs to ensure we see them in production + // but do not cloud up test logs return fmt.Errorf("update organization stripe customer id: %w", err) } } diff --git a/internal/graphapi/_example_test.go b/internal/graphapi/_example_test.go index 0e9aa1fae9..5356465de1 100644 --- a/internal/graphapi/_example_test.go +++ b/internal/graphapi/_example_test.go @@ -20,7 +20,7 @@ import ( // Seed data for test users is created in seed_test.go, refer to the file for details // the seeded data includes: -// - testUser1 (org owner), viewOnlyUser (read-only access), and adminUser (view and edit access) +// - sharedTestUser1 (org owner), viewOnlyUser (read-only access), and adminUser (view and edit access) // as part of one organization // - testUser2 part of another organization // if you find yourself needing additional test users, you can add them to the seed data so they @@ -56,8 +56,8 @@ import ( func TestQueryOBJECT(t *testing.T) { - // create an OBJECT to be queried using testUser1 - OBJECT := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + // create an OBJECT to be queried using sharedTestUser1 + OBJECT := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the OBJECT testCases := []struct { @@ -71,7 +71,7 @@ func TestQueryOBJECT(t *testing.T) { name: "happy path", queryID: OBJECT.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, read only user", @@ -89,7 +89,7 @@ func TestQueryOBJECT(t *testing.T) { name: "OBJECT not found, invalid ID", queryID: "invalid", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, errorMsg: notFoundErrorMsg, }, { @@ -121,13 +121,13 @@ func TestQueryOBJECT(t *testing.T) { }) } - (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: OBJECT.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: OBJECT.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestQueryOBJECTs(t *testing.T) { - // create multiple objects to be queried using testUser1 - OBJECT1 := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - OBJECT2 := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + // create multiple objects to be queried using sharedTestUser1 + OBJECT1 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + OBJECT2 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -138,7 +138,7 @@ func TestQueryOBJECTs(t *testing.T) { { name: "happy path", client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedResults: 2, }, { @@ -177,7 +177,7 @@ func TestQueryOBJECTs(t *testing.T) { }) } - (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, IDs: []string{OBJECT1.ID, OBJECT2.ID}}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, IDs: []string{OBJECT1.ID, OBJECT2.ID}}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationCreateOBJECT(t *testing.T) { @@ -194,7 +194,7 @@ func TestMutationCreateOBJECT(t *testing.T) { // add minimal input for the OBJECT }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, all input", @@ -202,7 +202,7 @@ func TestMutationCreateOBJECT(t *testing.T) { // add all input for the OBJECT }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, using pat", @@ -236,7 +236,7 @@ func TestMutationCreateOBJECT(t *testing.T) { name: "missing required field", request: testclient.CreateOBJECTInput{}, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "value is less than the required length", }, } @@ -258,13 +258,13 @@ func TestMutationCreateOBJECT(t *testing.T) { // check optional fields with if checks if they were provided or not // cleanup each object created - (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: resp.CreateOBJECT.OBJECT.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: resp.CreateOBJECT.OBJECT.ID}).MustDelete(sharedTestUser1.UserCtx, t) }) } } func TestMutationUpdateOBJECT(t *testing.T) { - OBJECT := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + OBJECT := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -279,7 +279,7 @@ func TestMutationUpdateOBJECT(t *testing.T) { // add field to update }, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "happy path, update multiple fields", @@ -325,14 +325,14 @@ func TestMutationUpdateOBJECT(t *testing.T) { }) } - (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: OBJECT.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: OBJECT.ID}).MustDelete(sharedTestUser1.UserCtx, t) } func TestMutationDeleteOBJECT(t *testing.T) { // create objects to be deleted - OBJECT1 := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - OBJECT2 := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) - OBJECT3 := (&OBJECTBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + OBJECT1 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + OBJECT2 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) + OBJECT3 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -359,13 +359,13 @@ func TestMutationDeleteOBJECT(t *testing.T) { name: "happy path, delete", idToDelete: OBJECT1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, }, { name: "already deleted, not found", idToDelete: OBJECT1.ID, client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: "not found", }, { @@ -384,7 +384,7 @@ func TestMutationDeleteOBJECT(t *testing.T) { name: "unknown id, not found", idToDelete: ulids.New().String(), client: suite.client.api, - ctx: testUser1.UserCtx, + ctx: sharedTestUser1.UserCtx, expectedErr: notFoundErrorMsg, }, } diff --git a/internal/graphapi/assessment_test.go b/internal/graphapi/assessment_test.go index a1c21c4524..e14a309555 100644 --- a/internal/graphapi/assessment_test.go +++ b/internal/graphapi/assessment_test.go @@ -105,7 +105,7 @@ func TestQueryAssessments(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) - // should return at least the 3 assessments created by testUser1's organization + // should return at least the 3 assessments created by sharedTestUser1's organization assert.Check(t, resp.Assessments.TotalCount >= 3) }) diff --git a/internal/graphapi/campaign_restrictions_test.go b/internal/graphapi/campaign_restrictions_test.go index 7b5cc1eb0a..736e6f8bac 100644 --- a/internal/graphapi/campaign_restrictions_test.go +++ b/internal/graphapi/campaign_restrictions_test.go @@ -24,10 +24,10 @@ import ( // TestCampaignTargetLimit verifies the 500 target maximum is enforced during // campaign creation via the CreateCampaignWithTargets mutation func TestCampaignTargetLimit(t *testing.T) { - template := (&TemplateBuilder{client: suite.client}).MustNew(testUser1.UserCtx, t) + template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) uid := ulids.New().String() - assessmentResp, err := suite.client.api.CreateAssessment(testUser1.UserCtx, testclient.CreateAssessmentInput{ + assessmentResp, err := suite.client.api.CreateAssessment(sharedTestUser1.UserCtx, testclient.CreateAssessmentInput{ Name: fmt.Sprintf("assessment-limit-%s", uid), TemplateID: lo.ToPtr(template.ID), Jsonconfig: map[string]any{ @@ -42,8 +42,8 @@ func TestCampaignTargetLimit(t *testing.T) { assessmentID := assessmentResp.CreateAssessment.Assessment.ID defer func() { - (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessmentID}).MustDelete(testUser1.UserCtx, t) - (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(testUser1.UserCtx, t) + (&Cleanup[*generated.AssessmentDeleteOne]{client: suite.client.db.Assessment, ID: assessmentID}).MustDelete(sharedTestUser1.UserCtx, t) + (&Cleanup[*generated.TemplateDeleteOne]{client: suite.client.db.Template, ID: template.ID}).MustDelete(sharedTestUser1.UserCtx, t) }() t.Run("rejects more than 500 targets", func(t *testing.T) { @@ -63,7 +63,7 @@ func TestCampaignTargetLimit(t *testing.T) { Targets: targets, } - _, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + _, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.Assert(t, err != nil, "expected error for >500 targets") assert.Assert(t, strings.Contains(err.Error(), "500"), "error should mention 500 target limit") }) @@ -85,7 +85,7 @@ func TestCampaignTargetLimit(t *testing.T) { Targets: targets, } - resp, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + resp, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.NilError(t, err) assert.Assert(t, resp != nil) assert.Check(t, is.Equal(500, len(resp.CreateCampaignWithTargets.CampaignTargets))) @@ -112,7 +112,7 @@ func TestCampaignTargetLimit(t *testing.T) { Targets: targets, } - _, err := suite.client.api.CreateCampaignWithTargets(testUser1.UserCtx, input) + _, err := suite.client.api.CreateCampaignWithTargets(sharedTestUser1.UserCtx, input) assert.Assert(t, err != nil, "expected error for nil items in non-null list") }) } @@ -120,7 +120,7 @@ func TestCampaignTargetLimit(t *testing.T) { // TestCampaignDispatchStatusRestrictions verifies that campaigns in terminal // states (Completed, Canceled) cannot be dispatched func TestCampaignDispatchStatusRestrictions(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Status Restriction Test Template"). @@ -137,7 +137,7 @@ func TestCampaignDispatchStatusRestrictions(t *testing.T) { (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() tests := []struct { @@ -155,7 +155,7 @@ func TestCampaignDispatchStatusRestrictions(t *testing.T) { t.Run(tc.name, func(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Status Test " + string(tc.status)). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetStatus(tc.status). SetRecurrenceFrequency(enums.FrequencyNone). @@ -165,18 +165,18 @@ func TestCampaignDispatchStatusRestrictions(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("status-test@test.example"). SetFullName("Status Test"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -224,11 +224,11 @@ func TestCampaignDispatchStatusRestrictions(t *testing.T) { // TestCampaignDispatchMissingTemplate verifies that a branded campaign without // an email template returns an error func TestCampaignDispatchMissingTemplate(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) campaignObj := suite.client.db.Campaign.Create(). SetName("Missing Template Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -236,18 +236,18 @@ func TestCampaignDispatchMissingTemplate(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("notemplate@test.example"). SetFullName("No Template"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, ID: target.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") @@ -281,7 +281,7 @@ func TestCampaignDispatchMissingTemplate(t *testing.T) { // TestCampaignDispatchResendBehavior verifies that resend=true re-sends to // previously sent targets and resend=false skips them func TestCampaignDispatchResendBehavior(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Resend Behavior Test Template"). @@ -296,7 +296,7 @@ func TestCampaignDispatchResendBehavior(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Resend Behavior Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -305,7 +305,7 @@ func TestCampaignDispatchResendBehavior(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("already-sent@test.example"). SetFullName("Already Sent"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetStatus(enums.AssessmentResponseStatusSent). SaveX(ctx) @@ -313,22 +313,22 @@ func TestCampaignDispatchResendBehavior(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("unsent@test.example"). SetFullName("Unsent Target"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, IDs: []string{alreadySent.ID, unsent.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() t.Run("resend=false skips sent targets", func(t *testing.T) { @@ -408,7 +408,7 @@ func TestCampaignDispatchResendBehavior(t *testing.T) { // TestCampaignDispatchCompletedTargetsAlwaysSkipped verifies that completed // targets are never re-dispatched, even with resend=true func TestCampaignDispatchCompletedTargetsAlwaysSkipped(t *testing.T) { - ctx := setContext(testUser1.UserCtx, suite.client.db) + ctx := setContext(sharedTestUser1.UserCtx, suite.client.db) emailTemplate := suite.client.db.EmailTemplate.Create(). SetName("Completed Skip Test Template"). @@ -423,7 +423,7 @@ func TestCampaignDispatchCompletedTargetsAlwaysSkipped(t *testing.T) { campaignObj := suite.client.db.Campaign.Create(). SetName("Completed Skip Campaign"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetEmailTemplateID(emailTemplate.ID). SetRecurrenceFrequency(enums.FrequencyNone). SaveX(ctx) @@ -432,7 +432,7 @@ func TestCampaignDispatchCompletedTargetsAlwaysSkipped(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("completed@test.example"). SetFullName("Completed User"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SetStatus(enums.AssessmentResponseStatusCompleted). SaveX(ctx) @@ -440,22 +440,22 @@ func TestCampaignDispatchCompletedTargetsAlwaysSkipped(t *testing.T) { SetCampaignID(campaignObj.ID). SetEmail("pending@test.example"). SetFullName("Pending User"). - SetOwnerID(testUser1.OrganizationID). + SetOwnerID(sharedTestUser1.OrganizationID). SaveX(ctx) defer func() { (&Cleanup[*generated.CampaignTargetDeleteOne]{ client: suite.client.db.CampaignTarget, IDs: []string{completedTarget.ID, pendingTarget.ID}, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.CampaignDeleteOne]{ client: suite.client.db.Campaign, ID: campaignObj.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) (&Cleanup[*generated.EmailTemplateDeleteOne]{ client: suite.client.db.EmailTemplate, ID: emailTemplate.ID, - }).MustDelete(testUser1.UserCtx, t) + }).MustDelete(sharedTestUser1.UserCtx, t) }() mockSender, err := mock.New("") diff --git a/internal/graphapi/control_test.go b/internal/graphapi/control_test.go index 653561f70f..bc22753078 100644 --- a/internal/graphapi/control_test.go +++ b/internal/graphapi/control_test.go @@ -153,7 +153,7 @@ func TestQueryControl(t *testing.T) { } func TestQueryControls(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 controlsToCreate := int64(11) controlIDs := []string{} for range controlsToCreate { // set to 11 to ensure pagination is tested @@ -1542,7 +1542,7 @@ func TestMutationUpdateControl(t *testing.T) { // add adminUser to the program so that they can update the control (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) - // create another user and add them to the same organization and group as testUser1 + // create another user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor permissions anotherViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) @@ -2709,7 +2709,7 @@ func TestMutationUpdateBulkControl(t *testing.T) { // add adminUser to the program so that they can update the control (&ProgramMemberBuilder{client: suite.client, ProgramID: program1.ID, UserID: sharedAdminUser.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) - // create another user and add them to the same organization and group as testUser1 + // create another user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor permissions anotherViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/controlimplementation_test.go b/internal/graphapi/controlimplementation_test.go index e7eaac7d42..7b49ba344d 100644 --- a/internal/graphapi/controlimplementation_test.go +++ b/internal/graphapi/controlimplementation_test.go @@ -17,7 +17,7 @@ import ( ) func TestQueryControlImplementation(t *testing.T) { - // create an controlImplementation1 to be queried using testUser1 + // create an controlImplementation1 to be queried using sharedTestUser1 controlImplementation1 := (&ControlImplementationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create another with associated controls in another org diff --git a/internal/graphapi/controlobjective_test.go b/internal/graphapi/controlobjective_test.go index fd9d029657..d223cec9aa 100644 --- a/internal/graphapi/controlobjective_test.go +++ b/internal/graphapi/controlobjective_test.go @@ -113,7 +113,7 @@ func TestQueryControlObjective(t *testing.T) { } func TestQueryControlObjectives(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 co1 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) co2 := (&ControlObjectiveBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -395,7 +395,7 @@ func TestMutationUpdateControlObjective(t *testing.T) { program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) controlObjective := (&ControlObjectiveBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) - // create another admin user and add them to the same organization and group as testUser1 + // create another admin user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor/viewer permissions anotherViewUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewUser, enums.RoleMember, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/customdomain_test.go b/internal/graphapi/customdomain_test.go index de279375fd..ad365ed988 100644 --- a/internal/graphapi/customdomain_test.go +++ b/internal/graphapi/customdomain_test.go @@ -574,7 +574,7 @@ func TestGetAllCustomDomains(t *testing.T) { name: "happy path - regular user sees only their domains", client: suite.client.api, ctx: sharedTestUser1.UserCtx, - expectedResults: 2, // Should see only domains owned by testUser1 + expectedResults: 2, // Should see only domains owned by sharedTestUser1 }, { name: "happy path - admin user sees all domains", diff --git a/internal/graphapi/customtypeenums_test.go b/internal/graphapi/customtypeenums_test.go index 8b51275f6f..64af6c0ba7 100644 --- a/internal/graphapi/customtypeenums_test.go +++ b/internal/graphapi/customtypeenums_test.go @@ -16,7 +16,7 @@ import ( func TestQueryCustomTypeEnum(t *testing.T) { - // create an customTypeEnum to be queried using testUser1 + // create an customTypeEnum to be queried using sharedTestUser1 customTypeEnum := (&CustomTypeEnumBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) systemOwnedEnum := (&CustomTypeEnumBuilder{ diff --git a/internal/graphapi/dnsverification_test.go b/internal/graphapi/dnsverification_test.go index d6e906a68f..39b99d0ddc 100644 --- a/internal/graphapi/dnsverification_test.go +++ b/internal/graphapi/dnsverification_test.go @@ -368,7 +368,7 @@ func TestGetAllDNSVerifications(t *testing.T) { name: "happy path - regular user sees only their verifications", client: suite.client.api, ctx: sharedTestUser1.UserCtx, - expectedResults: 2, // Should see only verifications owned by testUser1 + expectedResults: 2, // Should see only verifications owned by sharedTestUser1 }, { name: "happy path - admin user sees all verifications", diff --git a/internal/graphapi/emailtemplate_test.go b/internal/graphapi/emailtemplate_test.go index 0ce08b8aa3..d1d1302263 100644 --- a/internal/graphapi/emailtemplate_test.go +++ b/internal/graphapi/emailtemplate_test.go @@ -25,7 +25,7 @@ func validEmailTemplateDefaults() map[string]any { } func TestQueryEmailTemplate(t *testing.T) { - // create an email template to be queried using testUser1 + // create an email template to be queried using sharedTestUser1 emailTemplate := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the email template @@ -92,7 +92,7 @@ func TestQueryEmailTemplate(t *testing.T) { } func TestQueryEmailTemplates(t *testing.T) { - // create multiple email templates to be queried using testUser1 + // create multiple email templates to be queried using sharedTestUser1 emailTemplate1 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) emailTemplate2 := (&EmailTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) diff --git a/internal/graphapi/evidence_test.go b/internal/graphapi/evidence_test.go index 5cec21b676..2a29797c66 100644 --- a/internal/graphapi/evidence_test.go +++ b/internal/graphapi/evidence_test.go @@ -25,7 +25,7 @@ func TestQueryEvidence(t *testing.T) { (&ProgramMemberBuilder{client: suite.client, UserID: sharedViewOnlyUser.ID, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) // create an Evidence to be queried using adminUser - // org owner (testUser1) should automatically have access to the Evidence + // org owner (sharedTestUser1) should automatically have access to the Evidence evidence := (&EvidenceBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedAdminUser.UserCtx, t) // create a control to be queried using adminUser that access is granted via the control diff --git a/internal/graphapi/file_test.go b/internal/graphapi/file_test.go index 887ed2cf96..388b3069ac 100644 --- a/internal/graphapi/file_test.go +++ b/internal/graphapi/file_test.go @@ -14,7 +14,7 @@ import ( ) func TestQueryFile(t *testing.T) { - // create an Evidence to be queried using testUser1 + // create an Evidence to be queried using sharedTestUser1 fileUpload := uploadFile(t, "testdata/uploads/orgs.csv") // create control to be used in the Evidence diff --git a/internal/graphapi/group_test.go b/internal/graphapi/group_test.go index ad5c5bc128..8fbd0319ba 100644 --- a/internal/graphapi/group_test.go +++ b/internal/graphapi/group_test.go @@ -226,7 +226,7 @@ func TestQueryGroups(t *testing.T) { assert.NilError(t, err) assert.Assert(t, resp != nil) - // check groups available to admin user (private group created by testUser1 should not be returned) + // check groups available to admin user (private group created by sharedTestUser1 should not be returned) resp, err = suite.client.api.GetAllGroups(users.admin.UserCtx) assert.NilError(t, err) @@ -236,7 +236,7 @@ func TestQueryGroups(t *testing.T) { assert.Assert(t, v.Node.ID != privateGroup.ID) } - // check groups available to admin user (private group created by testUser1 should not be returned for org member) + // check groups available to admin user (private group created by sharedTestUser1 should not be returned for org member) resp, err = suite.client.api.GetAllGroups(users.member.UserCtx) assert.NilError(t, err) diff --git a/internal/graphapi/groupmembers_test.go b/internal/graphapi/groupmembers_test.go index cfb1d10beb..703ffbb6dd 100644 --- a/internal/graphapi/groupmembers_test.go +++ b/internal/graphapi/groupmembers_test.go @@ -255,7 +255,7 @@ func TestMutationCreateGroupMembers(t *testing.T) { func TestMutationUpdateGroupMembers(t *testing.T) { gm := (&GroupMemberBuilder{client: suite.client, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) // add self to group as admin - testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: sharedTestUser1.GroupID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) + sharedTestUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: sharedTestUser1.GroupID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) gmCtx := auth.NewTestContextWithOrgID(gm.UserID, sharedTestUser1.OrganizationID) @@ -276,7 +276,7 @@ func TestMutationUpdateGroupMembers(t *testing.T) { }, { name: "update self from admin to member ok", - groupMemberID: testUser1GroupMember.ID, + groupMemberID: sharedTestUser1GroupMember.ID, role: enums.RoleMember, client: suite.client.api, ctx: sharedTestUser1.UserCtx, @@ -354,7 +354,7 @@ func TestMutationDeleteGroupMembers(t *testing.T) { gm3 := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID}).MustNew(sharedTestUser1.UserCtx, t) // add self to group as admin - testUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) + sharedTestUser1GroupMember := (&GroupMemberBuilder{client: suite.client, GroupID: group.ID, UserID: sharedTestUser1.UserInfo.ID, Role: enums.RoleAdmin.String()}).MustNew(sharedTestUser1.UserCtx, t) testCases := []struct { name string @@ -372,7 +372,7 @@ func TestMutationDeleteGroupMembers(t *testing.T) { }, { name: "allowed to delete self as org admin", - idToDelete: testUser1GroupMember.ID, + idToDelete: sharedTestUser1GroupMember.ID, client: suite.client.api, ctx: sharedTestUser1.UserCtx, }, diff --git a/internal/graphapi/integration_test.go b/internal/graphapi/integration_test.go index e2dbdd4ada..b468840420 100644 --- a/internal/graphapi/integration_test.go +++ b/internal/graphapi/integration_test.go @@ -210,7 +210,7 @@ func TestMutationDeleteIntegration(t *testing.T) { } func TestQueryIntegration(t *testing.T) { - // create an integration to be queried using testUser1 + // create an integration to be queried using sharedTestUser1 integration := (&IntegrationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Integration @@ -282,7 +282,7 @@ func TestQueryIntegration(t *testing.T) { } func TestQueryIntegrationWithSecrets(t *testing.T) { - // create an integration to be queried using testUser1 + // create an integration to be queried using sharedTestUser1 integration := (&IntegrationBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // Create multiple secrets for OAuth tokens accessToken := (&SecretBuilder{client: suite.client}). diff --git a/internal/graphapi/internalpolicy_statusapproval_test.go b/internal/graphapi/internalpolicy_statusapproval_test.go index fb3f3fda9f..492fd1e57a 100644 --- a/internal/graphapi/internalpolicy_statusapproval_test.go +++ b/internal/graphapi/internalpolicy_statusapproval_test.go @@ -20,7 +20,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - // Add testUser1 to both approver and delegate groups (to test both paths) + // Add sharedTestUser1 to both approver and delegate groups (to test both paths) (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: approverGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: delegateGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) @@ -57,7 +57,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { name: "fail: create with APPROVED status but user not in approver group", client: suite.client.api, userContext: sharedTestUser1.UserCtx, - approverID: &emptyGroup.ID, // testUser1 is NOT in emptyGroup + approverID: &emptyGroup.ID, // sharedTestUser1 is NOT in emptyGroup status: enums.DocumentApproved, requireApproval: true, expectError: true, @@ -67,7 +67,7 @@ func TestCreateInternalPolicyStatusApproval(t *testing.T) { name: "happy path: create with APPROVED status but user not in approver group but approval not required", client: suite.client.api, userContext: sharedTestUser1.UserCtx, - approverID: &emptyGroup.ID, // testUser1 is NOT in emptyGroup + approverID: &emptyGroup.ID, // sharedTestUser1 is NOT in emptyGroup status: enums.DocumentApproved, requireApproval: false, expectError: false, @@ -141,7 +141,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { delegateGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) emptyGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - // Add testUser1 to both approver and delegate groups + // Add sharedTestUser1 to both approver and delegate groups (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: approverGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) (&GroupMemberBuilder{client: suite.client, UserID: sharedTestUser1.ID, GroupID: delegateGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) @@ -188,7 +188,7 @@ func TestUpdateInternalPolicyStatusApproval(t *testing.T) { { name: "fail: update to APPROVED status but user not in approver group", client: suite.client.api, - policyID: policy4.ID, // policy4 has emptyGroup, testUser1 is not a member + policyID: policy4.ID, // policy4 has emptyGroup, sharedTestUser1 is not a member userContext: sharedTestUser1.UserCtx, newStatus: lo.ToPtr(enums.DocumentApproved), expectError: true, diff --git a/internal/graphapi/internalpolicy_test.go b/internal/graphapi/internalpolicy_test.go index b1151a33e8..6febb88964 100644 --- a/internal/graphapi/internalpolicy_test.go +++ b/internal/graphapi/internalpolicy_test.go @@ -17,7 +17,7 @@ import ( ) func TestQueryInternalPolicy(t *testing.T) { - // create an InternalPolicy to be queried using testUser1 + // create an InternalPolicy to be queried using sharedTestUser1 internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // setup a blocked group with a view only user @@ -122,7 +122,7 @@ func TestQueryInternalPolicy(t *testing.T) { } func TestQueryInternalPolicies(t *testing.T) { - // create multiple policies to be queried using testUser1 + // create multiple policies to be queried using sharedTestUser1 ip1 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) ip2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -487,8 +487,8 @@ func TestMutationUpdateInternalPolicy(t *testing.T) { internalPolicy := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) internalPolicyAdminUser := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedAdminUser.UserCtx, t) - // create a viewer user and add them to the same organization as testUser1 - // also add them to the same group as testUser1, this should still allow them to edit the policy + // create a viewer user and add them to the same organization as sharedTestUser1 + // also add them to the same group as sharedTestUser1, this should still allow them to edit the policy // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) @@ -800,7 +800,7 @@ func TestMutationUpdateBulkInternalPolicy(t *testing.T) { subcontrol := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) task := (&TaskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - // create another user and add them to the same organization and group as testUser1 + // create another user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor permissions anotherAdminUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/jobtemplate_test.go b/internal/graphapi/jobtemplate_test.go index 06f1fb55cd..dcf5a09ce6 100644 --- a/internal/graphapi/jobtemplate_test.go +++ b/internal/graphapi/jobtemplate_test.go @@ -15,7 +15,7 @@ import ( ) func TestQueryJobTemplate(t *testing.T) { - // create an jobTemplate to be queried using testUser1 + // create an jobTemplate to be queried using sharedTestUser1 jobTemplate := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the JobTemplate @@ -81,7 +81,7 @@ func TestQueryJobTemplate(t *testing.T) { } func TestQueryJobTemplates(t *testing.T) { - // create multiple JobTemplates to be queried using testUser1 + // create multiple JobTemplates to be queried using sharedTestUser1 jobTemplate1 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) jobTemplate2 := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) jobTemplateSystem := (&JobTemplateBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) diff --git a/internal/graphapi/mappedcontrol_test.go b/internal/graphapi/mappedcontrol_test.go index a72bb785b5..92166626f3 100644 --- a/internal/graphapi/mappedcontrol_test.go +++ b/internal/graphapi/mappedcontrol_test.go @@ -16,7 +16,7 @@ import ( ) func TestQueryMappedControl(t *testing.T) { - // create an mappedControl to be queried using testUser1 + // create an mappedControl to be queried using sharedTestUser1 toControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) fromControl := (&ControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) mappedControl := (&MappedControlBuilder{client: suite.client, ToControlIDs: []string{toControl.ID}, FromControlIDs: []string{fromControl.ID}}).MustNew(sharedTestUser1.UserCtx, t) @@ -123,7 +123,7 @@ func TestQueryMappedControl(t *testing.T) { } func TestQueryMappedControls(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 controlsToDelete := []*generated.Control{} mappedControl1 := (&MappedControlBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) diff --git a/internal/graphapi/models_test.go b/internal/graphapi/models_test.go index 25fe69779b..32bc88263c 100644 --- a/internal/graphapi/models_test.go +++ b/internal/graphapi/models_test.go @@ -515,7 +515,7 @@ type Cleanup[T DeleteExec] struct { // (&Cleanup[*generated.OrganizationDeleteOne]{ // client: suite.client.db.Organization, // ID: resp.CreateOrganization.Organization.ID}). -// MustDelete(testUser1.UserCtx, t) +// MustDelete(sharedTestUser1.UserCtx, t) // // Special handling for standards - update them to be private before deletion // this is to allow the system admin to delete public standards diff --git a/internal/graphapi/narrative_test.go b/internal/graphapi/narrative_test.go index 209b24226e..736b1085cb 100644 --- a/internal/graphapi/narrative_test.go +++ b/internal/graphapi/narrative_test.go @@ -120,7 +120,7 @@ func TestQueryNarrative(t *testing.T) { } func TestQueryNarratives(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 nrt1 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) nrt2 := (&NarrativeBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -405,7 +405,7 @@ func TestMutationUpdateNarrative(t *testing.T) { program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) narrative := (&NarrativeBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) - // create another admin user and add them to the same organization and group as testUser1 + // create another admin user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor/viewer permissions anotherAdminUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/platform_test.go b/internal/graphapi/platform_test.go index f576f847b8..bd2a89ff82 100644 --- a/internal/graphapi/platform_test.go +++ b/internal/graphapi/platform_test.go @@ -17,7 +17,7 @@ import ( ) func TestQueryPlatform(t *testing.T) { - // create an platform to be queried using testUser1 + // create an platform to be queried using sharedTestUser1 platform := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add test cases for querying the Platform @@ -84,7 +84,7 @@ func TestQueryPlatform(t *testing.T) { } func TestQueryPlatforms(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 platform1 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) platform2 := (&PlatformBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) diff --git a/internal/graphapi/procedure_test.go b/internal/graphapi/procedure_test.go index 9a3cbd5c4a..265a2dd10e 100644 --- a/internal/graphapi/procedure_test.go +++ b/internal/graphapi/procedure_test.go @@ -19,7 +19,7 @@ import ( ) func TestQueryProcedure(t *testing.T) { - // create an Procedure to be queried using testUser1 + // create an Procedure to be queried using sharedTestUser1 procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) anonymousContext := createAnonymousTrustCenterContext(ulids.New().String(), sharedTestUser1.OrganizationID) @@ -96,7 +96,7 @@ func TestQueryProcedure(t *testing.T) { } func TestQueryProcedures(t *testing.T) { - // create multiple Procedures to be queried using testUser1 + // create multiple Procedures to be queried using sharedTestUser1 p1 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) p2 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -356,8 +356,8 @@ func TestMutationUpdateProcedure(t *testing.T) { // create procedure to be updated procedure := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) - // create a viewer user and add them to the same organization as testUser1 - // also add them to the same group as testUser1, this should still allow them to edit the procedure + // create a viewer user and add them to the same organization as sharedTestUser1 + // also add them to the same group as sharedTestUser1, this should still allow them to edit the procedure // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/program_test.go b/internal/graphapi/program_test.go index 71a3941956..1301262f6e 100644 --- a/internal/graphapi/program_test.go +++ b/internal/graphapi/program_test.go @@ -626,15 +626,15 @@ func TestMutationUpdateProgram(t *testing.T) { procedure2 := (&ProcedureBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) policy2 := (&InternalPolicyBuilder{client: suite.client}).MustNew(sharedTestUser2.UserCtx, t) - // create another admin user and add them to the same organization and group as testUser1 + // create another admin user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor permissions anotherAdminUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherAdminUser, enums.RoleAdmin, sharedTestUser1.OrganizationID) gm1 := (&GroupMemberBuilder{client: suite.client, UserID: anotherAdminUser.ID, GroupID: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) - // create a viewer user and add them to the same organization as testUser1 - // also add them to the same group as testUser1, this should still allow them to edit the policy + // create a viewer user and add them to the same organization as sharedTestUser1 + // also add them to the same group as sharedTestUser1, this should still allow them to edit the policy // despite not not being an organization admin anotherViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) @@ -645,7 +645,7 @@ func TestMutationUpdateProgram(t *testing.T) { blockGroup := (&GroupBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) (&GroupMemberBuilder{client: suite.client, UserID: anotherViewerUser.ID, GroupID: blockGroup.ID}).MustNew(sharedTestUser1.UserCtx, t) - // create a view only user and add them to the same organization as testUser1 + // create a view only user and add them to the same organization as sharedTestUser1 meowViewerUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &meowViewerUser, enums.RoleMember, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/programmembers_test.go b/internal/graphapi/programmembers_test.go index 2be6520db7..c64c81d173 100644 --- a/internal/graphapi/programmembers_test.go +++ b/internal/graphapi/programmembers_test.go @@ -148,10 +148,10 @@ func TestMutationUpdateProgramMembers(t *testing.T) { }) assert.NilError(t, err) - testUser1ProgramMember := "" + sharedTestUser1ProgramMember := "" for _, pm := range programMembers.ProgramMemberships.Edges { if pm.Node.UserID == sharedTestUser1.UserInfo.ID { - testUser1ProgramMember = pm.Node.ID + sharedTestUser1ProgramMember = pm.Node.ID break } } @@ -176,14 +176,14 @@ func TestMutationUpdateProgramMembers(t *testing.T) { }, { name: "update self from admin to member allowed because user is org owner", - programMemberID: testUser1ProgramMember, + programMemberID: sharedTestUser1ProgramMember, role: enums.RoleMember, client: suite.client.api, ctx: sharedTestUser1.UserCtx, }, { name: "update self from member to admin of self not allowed", - programMemberID: testUser1ProgramMember, + programMemberID: sharedTestUser1ProgramMember, role: enums.RoleAdmin, client: suite.client.api, ctx: sharedAdminUser.UserCtx, diff --git a/internal/graphapi/risk_test.go b/internal/graphapi/risk_test.go index db8759b520..a1a2df6c6c 100644 --- a/internal/graphapi/risk_test.go +++ b/internal/graphapi/risk_test.go @@ -136,7 +136,7 @@ func TestQueryRisk(t *testing.T) { } func TestQueryRisks(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 risk1 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) risk2 := (&RiskBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -499,7 +499,7 @@ func TestMutationUpdateRisk(t *testing.T) { program := (&ProgramBuilder{client: suite.client, EditorIDs: sharedTestUser1.GroupID}).MustNew(sharedTestUser1.UserCtx, t) risk := (&RiskBuilder{client: suite.client, ProgramID: program.ID}).MustNew(sharedTestUser1.UserCtx, t) - // create another viewer user and add them to the same organization and group as testUser1 + // create another viewer user and add them to the same organization and group as sharedTestUser1 // this will allow us to test the group editor/viewer permissions anotherViewUser := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(sharedTestUser1.UserCtx, t, &anotherViewUser, enums.RoleMember, sharedTestUser1.OrganizationID) diff --git a/internal/graphapi/scheduledjob_test.go b/internal/graphapi/scheduledjob_test.go index f899055945..2aa02a0745 100644 --- a/internal/graphapi/scheduledjob_test.go +++ b/internal/graphapi/scheduledjob_test.go @@ -263,7 +263,7 @@ func TestMutationCreateScheduledJob(t *testing.T) { // JobTemplateID: jobSystemOwned.ID, // }, // client: suite.client.api, - // ctx: testUser1.UserCtx, + // ctx: sharedTestUser1.UserCtx, // }, { name: "happy path, all input", diff --git a/internal/graphapi/subcontrol_test.go b/internal/graphapi/subcontrol_test.go index eec5874718..cd3489c20b 100644 --- a/internal/graphapi/subcontrol_test.go +++ b/internal/graphapi/subcontrol_test.go @@ -128,7 +128,7 @@ func TestQuerySubcontrol(t *testing.T) { } func TestQuerySubcontrols(t *testing.T) { - // create multiple objects to be queried using testUser1 + // create multiple objects to be queried using sharedTestUser1 sc1 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) sc2 := (&SubcontrolBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) diff --git a/internal/graphapi/subprocessor_test.go b/internal/graphapi/subprocessor_test.go index 2af2565062..2a1b59f706 100644 --- a/internal/graphapi/subprocessor_test.go +++ b/internal/graphapi/subprocessor_test.go @@ -493,13 +493,13 @@ func TestGetAllSubprocessors(t *testing.T) { name: "happy path - regular user sees only their subprocessors", client: suite.client.api, ctx: sharedTestUser1.UserCtx, - expectedResults: 3, // Should see only subprocessors owned by testUser1 + expectedResults: 3, // Should see only subprocessors owned by sharedTestUser1 }, { name: "happy path - admin user sees all subprocessors", client: suite.client.api, ctx: sharedAdminUser.UserCtx, - expectedResults: 3, // Should see all owned by testUser1 + expectedResults: 3, // Should see all owned by sharedTestUser1 }, { name: "happy path - view only user", diff --git a/internal/graphapi/tagdefinition_test.go b/internal/graphapi/tagdefinition_test.go index 580c180b60..6db8fe6ac1 100644 --- a/internal/graphapi/tagdefinition_test.go +++ b/internal/graphapi/tagdefinition_test.go @@ -17,7 +17,7 @@ import ( func TestQueryTagDefinition(t *testing.T) { - // create an tagDef to be queried using testUser1 + // create an tagDef to be queried using sharedTestUser1 tagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) systemTagDef := (&TagDefinitionBuilder{client: suite.client}).MustNew(sharedSystemAdminUser.UserCtx, t) diff --git a/internal/graphapi/task_test.go b/internal/graphapi/task_test.go index 42fe08b8c4..0d7f0fab6d 100644 --- a/internal/graphapi/task_test.go +++ b/internal/graphapi/task_test.go @@ -330,18 +330,23 @@ func getFutureDate() time.Time { } func TestQueryTasksPaginationDueDate(t *testing.T) { + t.Parallel() + + localTestOrg := suite.seedFreshOrgUsers(t) + localTestOrg2 := suite.seedOrgOwner(t) + // create a bunch to test the pagination with different users // to ensure we are paginating correctly when viewing as org admin numTasks := 95 org1TaskIDs := []string{} org2TaskIDs := []string{} for range numTasks { - t1 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser1.UserCtx, t) - t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedViewOnlyUser2.UserCtx, t) - t3 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedAdminUser.UserCtx, t) + t1 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(localTestOrg.owner.UserCtx, t) + t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(localTestOrg.member.UserCtx, t) + t3 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(localTestOrg.admin.UserCtx, t) org1TaskIDs = append(org1TaskIDs, t1.ID, t2.ID, t3.ID) - t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser2.UserCtx, t) + t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(localTestOrg2.owner.UserCtx, t) org2TaskIDs = append(org2TaskIDs, t4.ID) } @@ -362,7 +367,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { name: "happy path, with order by due date, page 1", orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -372,7 +377,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -382,7 +387,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -392,7 +397,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -402,7 +407,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -412,7 +417,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -422,7 +427,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -432,7 +437,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -442,7 +447,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: first, setCursor: true, totalCount: 95, @@ -452,7 +457,7 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { useCursor: true, orderBy: []*testclient.TaskOrder{{Field: testclient.TaskOrderFieldDue, Direction: testclient.OrderDirectionAsc}}, client: suite.client.api, - ctx: sharedAdminUser.UserCtx, + ctx: localTestOrg.admin.UserCtx, expectedResults: 5, totalCount: 95, }, @@ -508,14 +513,16 @@ func TestQueryTasksPaginationDueDate(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org1TaskIDs}).MustDelete(sharedTestUser1.UserCtx, t) - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(sharedTestUser2.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg2.owner.UserCtx, t) } func TestQueryTasksPaginationByCreatedDate(t *testing.T) { - // create a bunch to test the pagination with different users - // to ensure we are paginating correctly when viewing as org admin - localTestOrg := suite.seedFreshMinimalOrgUsers(t, false) + t.Parallel() + + localTestOrg := suite.seedFreshOrgUsers(t) + localTestOrg2 := suite.seedOrgOwner(t) + testUser := localTestOrg.owner viewOnlyUserCtx := localTestOrg.member.UserCtx @@ -527,7 +534,7 @@ func TestQueryTasksPaginationByCreatedDate(t *testing.T) { t2 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(viewOnlyUserCtx, t) org1TaskIDs = append(org1TaskIDs, t1.ID, t2.ID) - t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(sharedTestUser2.UserCtx, t) + t4 := (&TaskBuilder{client: suite.client, Due: getFutureDate()}).MustNew(localTestOrg2.owner.UserCtx, t) org2TaskIDs = append(org2TaskIDs, t4.ID) } @@ -694,8 +701,8 @@ func TestQueryTasksPaginationByCreatedDate(t *testing.T) { } // cleanup - (&Cleanup[*generated.TaskDeleteOne]{client: suite.client.db.Task, IDs: org2TaskIDs}).MustDelete(sharedTestUser2.UserCtx, t) cleanupOrganizationDataWithContext(localTestOrg.owner.UserCtx, t) + cleanupOrganizationDataWithContext(localTestOrg2.owner.UserCtx, t) } func TestMutationCreateTask(t *testing.T) { diff --git a/internal/graphapi/template_test.go b/internal/graphapi/template_test.go index 2cc75b3c79..8a50261b9a 100644 --- a/internal/graphapi/template_test.go +++ b/internal/graphapi/template_test.go @@ -16,7 +16,7 @@ import ( ) func TestQueryTemplate(t *testing.T) { - // create an template to be queried using testUser1 + // create an template to be queried using sharedTestUser1 template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // create a system admin root template diff --git a/internal/graphapi/tools_trustcenter_test.go b/internal/graphapi/tools_trustcenter_test.go index 887d22f34b..6d0911c707 100644 --- a/internal/graphapi/tools_trustcenter_test.go +++ b/internal/graphapi/tools_trustcenter_test.go @@ -23,7 +23,7 @@ func cleanupOrganizationDataWithContext(ctx context.Context, t *testing.T) { requireNoError(t, err) } -// cleanupTrustCenterData for the testUser1 context +// cleanupTrustCenterData for the sharedTestUser1 context func cleanupTrustCenterData(t *testing.T) { t.Helper() cleanupTrustCenterDataWithContext(sharedTestUser1.UserCtx, t) From eac02ca50c039edbc6d29b3e047a167b07f28198 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 10:05:57 -0600 Subject: [PATCH 04/12] remove can_create_email_branding Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- fga/model/old/model.fga | 3 --- fga/tests/tests.yaml | 1 - 2 files changed, 4 deletions(-) diff --git a/fga/model/old/model.fga b/fga/model/old/model.fga index 70fa357638..273ed437ae 100644 --- a/fga/model/old/model.fga +++ b/fga/model/old/model.fga @@ -211,9 +211,6 @@ type organization define sla_definition_creator: [group#member] define can_create_sla_definition: can_edit or sla_definition_creator - define email_branding_creator: [group#member] - define can_create_email_branding: can_edit or email_branding_creator - define email_template_creator: [group#member] define can_create_email_template: can_edit or email_template_creator diff --git a/fga/tests/tests.yaml b/fga/tests/tests.yaml index 7a48346c03..12d5ffb194 100644 --- a/fga/tests/tests.yaml +++ b/fga/tests/tests.yaml @@ -629,7 +629,6 @@ tests: can_create_identity_holder: false can_create_asset: false can_create_email_template: true - can_create_email_branding: true can_create_notification_template: true can_create_assessment: true - user: user:ulid-compliance-manager From 0b50d6cc3aa9755980a8c011d941eef4ef798628 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 10:09:52 -0600 Subject: [PATCH 05/12] config generate, remove old model Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- config/config.example.yaml | 4 +- fga/model/old/model.fga | 1189 ----------------------------------- fga/model/old/model_old.fga | 1125 --------------------------------- 3 files changed, 2 insertions(+), 2316 deletions(-) delete mode 100644 fga/model/old/model.fga delete mode 100644 fga/model/old/model_old.fga diff --git a/config/config.example.yaml b/config/config.example.yaml index 72dae70882..8761572647 100644 --- a/config/config.example.yaml +++ b/config/config.example.yaml @@ -78,8 +78,8 @@ authz: modelfile: fga/model/model.fga modelid: "" modulefile: "" - parentcontextconditions: null - parentcontextskipkinds: null + parentcontextconditions: [] + parentcontextskipkinds: [] storeid: "" storename: openlane cloudflare: diff --git a/fga/model/old/model.fga b/fga/model/old/model.fga deleted file mode 100644 index 273ed437ae..0000000000 --- a/fga/model/old/model.fga +++ /dev/null @@ -1,1189 +0,0 @@ -model - schema 1.1 - -# user is a human with access to the system -# the _self relation is used for when the user is the parent of another object -type user - relations - define _self: [user] - define can_view: _self - define can_edit: _self - define can_delete: _self - -# service is not associated to a particular user, but instead to an organization -# the _self relation is used for when the service is the parent of another object -type service - relations - define _self: [service] - define can_view: _self - define can_edit: _self - define can_delete: _self - -# search access for the admin search -type search - relations - define admin: [user] - -# system admin roles are used to define the highest level of access in the system -type system - relations - define system_admin: [user, service] - -type feature - relations - define enabled: [organization] - -# organization is the highest object access -# objects can inherit access from the organization -# or define their own specific access -type organization - relations - # main roles - define admin: [user] or admin from parent - define member: [user] or owner or admin or member from parent - define owner: [user] or owner from parent - # parent inheritance - define parent: [organization] - # organization policies to restrict access - define access: [organization#member with email_domains_allowed] - # main permission sets based on roles - define can_delete: [service] or owner or can_delete from parent - define can_edit: [service] or (admin and access) or owner or can_edit from parent - # view access of the organization - # includes all members, admins, and owners - # also allows users to be given time based access to the organization (e.g. support access) - define can_view: [service, user with time_based_grant] or (member and access) or owner or can_edit or can_view from parent - # additional fine-grained permissions - # allow owner and assigned users to view audit logs - define audit_log_viewer: ([user, service] or owner or audit_log_viewer from parent) and can_view - # allow members to invite other members - define can_invite_members: can_view or can_edit or can_invite_members from parent - # only allow users with edit access to the org to invite other admins - define can_invite_admins: can_edit or can_invite_admins from parent - ## only allow admins/owners be able to create scheduled jobs - ## and enable a job that can be run and be linked to a control - define job_template_creator: [group#member] - define can_create_job_template: can_edit or job_template_creator - define can_create_scheduled_job: can_edit - # object creation permissions - # these permissions should all be defined as: - # define [object]_creator: [group#member] - # define can_create_[object]: can_edit or [object]_creator - - - # system owned standard creation - define standard_creator: [group#member] - define can_create_standard: can_edit or standard_creator - - define control_creator: [group#member] - define can_create_control: can_edit or control_creator - # subcontrols, control_implementations and control_objectives can inherit access from their parent control - define can_create_subcontrol: can_edit or control_creator - - # control implementation and objectives can also be created by users outside the control creator access - define control_implementation_creator: [group#member] - define can_create_control_implementation: can_edit or control_creator or control_implementation_creator - define control_objective_creator: [group#member] - define can_create_control_objective: can_edit or control_creator or control_objective_creator - define check_result_creator: [group#member] - define can_create_check_result: can_edit or control_creator or check_result_creator - - - # mapped controls are used to map controls from one standard to another - # they can be created by any user with edit access to the organization - # or by a user with the mapped_control_creator or control_creator role - define can_create_mapped_control: can_edit or control_creator or mapped_control_creator - define mapped_control_creator: [group#member] - - define group_creator: [group#member] - define can_create_group: can_edit or group_creator - - define internal_policy_creator: [group#member] - define can_create_internal_policy: can_edit or internal_policy_creator - - define narrative_creator: [group#member] - define can_create_narrative: can_edit or narrative_creator - - define procedure_creator: [group#member] - define can_create_procedure: can_edit or procedure_creator - - define program_creator: [group#member] - define can_create_program: can_edit or program_creator - - define risk_creator: [group#member] - define can_create_risk: can_edit or risk_creator - - define template_creator: [group#member] - define can_create_template: can_edit or template_creator - - define evidence_creator: [group#member] - define can_create_evidence: can_edit or evidence_creator - - define action_plan_creator: [group#member] - define can_create_action_plan: can_edit or action_plan_creator - - define campaign_creator: [group#member] - define can_create_campaign: can_edit or campaign_creator - - define campaign_target_creator: [group#member] - define can_create_campaign_target: can_edit or campaign_target_creator - - define group_manager: [service] - define can_manage_groups: owner or group_manager - - define assessment_creator: [user,group#member] - define can_create_assessment: can_edit or assessment_creator - - define subprocessor_creator: [group#member] - define can_create_subprocessor: can_edit or subprocessor_creator - - define trust_center_admin: [user] - define can_manage_trust_center: trust_center_admin or owner - - define trust_center_doc_creator: [group#member] - define can_create_trust_center_doc: can_edit or trust_center_doc_creator or can_manage_trust_center - - define trust_center_subprocessor_creator: [group#member] - define can_create_trust_center_subprocessor: can_edit or trust_center_subprocessor_creator or can_manage_trust_center - - define trust_center_entity_creator: [group#member] - define can_create_trust_center_entity: can_edit or trust_center_entity_creator or can_manage_trust_center - - define trust_center_nda_request_creator: [group#member] - define can_create_trust_center_nda_request: can_edit or trust_center_nda_request_creator or can_manage_trust_center - - define trust_center_compliance_creator: [group#member] - define can_create_trust_center_compliance: can_edit or trust_center_compliance_creator or can_manage_trust_center - - define trust_center_faq_creator: [group#member] - define can_create_trust_center_faq: can_edit or trust_center_faq_creator or can_manage_trust_center - - define trust_center_post_creator: [group#member] - define can_create_trust_center_post: can_edit or trust_center_post_creator or can_manage_trust_center - - # workflows - define workflow_definition_creator: [group#member] - define can_create_workflow_definition: can_edit or workflow_definition_creator - - # workflow_instance and related types are system-driven, only services can create - define can_create_workflow_instance: [service] - define can_create_workflow_assignment: [service] - define can_create_workflow_object_ref: [service] - define can_create_workflow_assignment_target: [service] - define can_create_workflow_event: [service] - define can_create_workflow_proposal: [service] - define can_create_integration_run: [service] - define can_create_integration_webhook: [service] - - define entity_creator: [group#member] - define can_create_entity: can_edit or entity_creator or can_manage_trust_center - - define vendor_scoring_config_creator: [group#member] - define can_create_vendor_scoring_config: can_edit or vendor_scoring_config_creator - - define vendor_risk_score_creator: [group#member] - define can_create_vendor_risk_score: can_edit or vendor_risk_score_creator - - define asset_creator: [group#member] - define can_create_asset: can_edit or asset_creator - - define finding_creator: [group#member] - define can_create_finding: can_edit or finding_creator - - define vulnerability_creator: [group#member] - define can_create_vulnerability: can_edit or vulnerability_creator - - define remediation_creator: [group#member] - define can_create_remediation: can_edit or remediation_creator - - define review_creator: [group#member] - define can_create_review: can_edit or review_creator - - define scan_creator: [group#member] - define can_create_scan: can_edit or scan_creator - - define platform_creator: [group#member] - define can_create_platform: can_edit or platform_creator - - define identity_holder_creator: [group#member] - define can_create_identity_holder: can_edit or identity_holder_creator - - define sla_definition_creator: [group#member] - define can_create_sla_definition: can_edit or sla_definition_creator - - define email_template_creator: [group#member] - define can_create_email_template: can_edit or email_template_creator - - # additional relations - define user_in_context: [user] - -# groups are a subset of an organization that can be used to define more fine-grained access to objects -# users must be members of the organization to be members of a group -# groups are all visible to all members of the organization, unless they are blocked -# groups can only be edited by admins of the group or the parent organization owner -# groups are commonly used to assigned view/edit permissions to other objects within the organization for group members -type group - relations - # main roles - define admin: [user] - define member: [user] or admin - # parent inheritance - define parent: [organization with public_group] - define parent_admin: [organization#owner] - # permissions inherited from the organization - define parent_viewer: can_view from parent or parent_admin - define parent_editor: parent_admin or can_manage_groups from parent - define parent_deleter: parent_admin or can_manage_groups from parent - # main permission sets based on roles - define can_delete: [service] or admin or parent_deleter - define can_edit: [service] or admin or parent_editor - define can_view: [service] or can_edit or member or parent_viewer - # additional fine-grained permissions - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - - -# files have their permissions defined by the parent object (like a control or a procedure), users with access to the parent object will have access to the file -# user:* and service:* are used for public files (e.g. trust center logos/favicons etc) that are available to all users -type file - relations - define can_view: [user:*, service:*, user, service, organization#member] or parent_viewer or tc_doc_viewer - define can_edit: [user, service] or parent_editor or tc_doc_editor - define can_delete: [user, service] or parent_deleter or tc_doc_deleter - - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - - # permissions inherited from the parent - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - # special handling for trust center documents - only NDA signed users can view files - define tc_doc_viewer: nda_signed from tc_doc_parent or member from tc_doc_parent - define tc_doc_editor: can_edit from tc_doc_parent - define tc_doc_deleter: can_delete from tc_doc_parent - define tc_doc_parent: [trust_center_doc] - - define parent: [user, program, organization, group, control, procedure, template, document_data, contact, internal_policy, narrative, evidence, note, trust_center_setting, subprocessor, export, trust_center_watermark_config, standard,trust_center_entity, entity, identity_holder, trust_center_subprocessor, scan, platform,review] -# programs are associated with an organization but do not inherit access from the organization with -# the exception of the owner of the organization who will have access to all programs -# the program creator will be made the admin of the program and all other access with be assigned directly -# as program members or via groups -type program - relations - # main roles - define admin: ([user] or owner from parent) and member from parent - define member: [user] and member from parent - # auditor role will not have access to everything in the program by default - # but can be assigned access to specific objects - define auditor: [user] - # main permission sets based on roles - define can_delete: [service] or admin or parent_deleter - define can_edit: [service] or admin or parent_editor or (editor but not blocked) - define can_view: [service] or member or can_edit or parent_viewer or ((editor or viewer) but not blocked) - # parent relation, only the organization owner will have access to the program by default - define parent: [organization] - # permissions inherited from the parent organization - define parent_viewer: owner from parent - define parent_editor: owner from parent - define parent_deleter: owner from parent - # additional fine-grained permissions - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - define viewer: [group#member] - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # allow owner and assigned users to view audit logs - define audit_log_viewer: ([user, service] or admin or audit_log_viewer from parent) and can_view - # allow members to invite other members - define can_invite_members: member or can_edit - # only allow users with edit access to the org to invite other admins - define can_invite_admins: can_edit - # additional relations - define user_in_context: [user] -# controls are associated with an organization and will inherit access from the organization -# controls inherit access can also be inherited associated program(s) or from associated groups -# the control author will be assigned as an admin of the control -type control - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or owner or delegate or system_admin from system or (editor but not blocked) - define can_delete: [user, service] or owner or (editor but not blocked) or system_admin from system - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, program, standard] - # do not include group#member here as controls automatically inherit access from the parent organization - # member covers organizations whereas can_view covers other others - define viewer: member from parent or can_view from parent - # admin covers organizations whereas can_edit covers others - define editor: [group#member, organization#owner] or admin from parent or can_edit from parent - define blocked: [user, group#member] - # owner is the group of users that are responsible for the control, they will have full access to the control - define owner: [group#member] - # delegate is a group of users that are given temporary access to the control, they will have edit but not delete access - define delegate: [group#member] - define system: [system] -# subcontrols are associated with an organization but do not inherit access from the organization -# subcontrols inherit access from the their parent control(s) -type subcontrol - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or owner or delegate or (editor but not blocked) - define can_delete: [user, service] or owner or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control] - # do not include group#member here as subcontrols automatically inherit access from the parent control which - # are accessible to all members of the organization - define viewer: can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - # owner is the group of users that are responsible for the subcontrol, they will have full access to the subcontrol - define owner: [group#member] - # delegate is a group of users that are given temporary access to the subcontrol, they will have edit but not delete access - define delegate: [group#member] -# control objectives inherit access from the associated program or from associated groups -# the control objective author will be assigned as an admin of the control objective -type control_objective - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, subcontrol] - define viewer: [group#member] or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# control implementations inherit access from the associated controls or from associated groups -# the control implementation author will be assigned as an admin of the control objective -type control_implementation - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control, subcontrol] - define viewer: [group#member] or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - -# check_results inherit access from the associated controls or from associated groups -type check_result - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control] - define viewer: [group#member] or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# mapped controls inherit access from the associated control or subcontrols in the mapping -# the mapped_control author will be assigned as an admin of the mapped control -type mapped_control - relations - define can_view: [user, service] or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization] - # no group#member relation here as mapped controls automatically inherit access from the parent organization - define viewer: editor or member from parent or can_view from parent - define editor: [group#member] or admin from parent or owner from parent - define blocked: [user, group#member] -# risks are associated with an organization but do not inherit access from the organization -# the risk creator will be made the admin of the risk and all other access will be assigned via -# a group -type risk - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or stakeholder or delegate or (editor but not blocked) - define can_delete: [user, service] or stakeholder or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, control_objective, subcontrol, procedure, internal_policy] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - # stakeholder is the group of users that are responsible for the risk, they will have full access to the risk - define stakeholder: [group#member] - # delegate is a group of users that are given temporary access to the risk, they will have edit but not delete access - define delegate: [group#member] -# narratives are associated with an organization but do not inherit access from the organization -# the narrative creator will be made the admin of the narrative and all other access will be assigned via -# a group -type narrative - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# action plans are associated with an organization but do not inherit access from the organization -# the action plan creator will be made the admin of the action plan and all other access will be assigned via -# associated objects or groups -type action_plan - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# policies are always assigned to an organization and by default all org members can view -# groups can be used to exclude users from being able to view a internal policy -# groups can be used to give edit (or delete) access to users -type internal_policy - relations - define can_view: ([user, service]) or can_edit or (viewer but not blocked) - define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) - define can_delete: ([user, service]) or admin or approver or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # the parent of the policy will be the organization, not all permissions will be inherited - define parent: [organization] - # allow a user or service to be assigned to add edit permissions - define admin: [user,service] or can_edit from parent - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - # allow for auditors assigned to the program to view the policy - define viewer: [program#auditor, group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # approver is the group of users that are responsible for the approval of changes to the policy, they will have full access to the policy - define approver: [group#member] - # delegate is a group of users that are given temporary access to the policy, they will have edit but not delete access - define delegate: [group#member] -# procedures are always assigned to an organization and by default all org members can view -# groups can be used to exclude users from being able to view an internal policy -# groups can be used to give edit (or delete) access to users -type procedure - relations - define can_view: ([user, service]) or can_edit or (viewer but not blocked) - define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) - define can_delete: ([user, service]) or admin or approver or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # the parent of the procedure will be the organization, not all permissions will be inherited - define parent: [organization] - # allow a user or service to be assigned to add edit permissions - define admin: [user,service] or can_edit from parent - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - # allow for auditors assigned to the program to view the procedure - define viewer: [program#auditor, group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # approver is the group of users that are responsible for the approval of changes to the procedure, they will have full access to the procedure - define approver: [group#member] - # delegate is a group of users that are given temporary access to the procedure, they will have edit but not delete access - define delegate: [group#member] -# templates (this encompasses things like questionnaires or jsonschemas) should be able to be -# created by any user in the parent (organization) with edit access (directly or via a group on the organization) -# all users in the organization should have view access, unless they are excluded (by a user or group) -# editors will be assigned by groups and can be excluded by users or groups -type template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, trust_center, service] - # allow a group to be assigned to add edit/view permissions for a set of users - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] -# document_data is the json data that is associated to a template -# access to the document_data is inherited from the template -type document_data - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [template, user] - # allow a group to be assigned to add edit/view permissions for a set of users - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - -# email branding holds visual configuration for branded emails -type email_branding - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -# email templates support branded outbound messages (system or org-owned) -type email_template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, service, integration, workflow_definition, workflow_instance] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -# notification templates drive in-app and external channel messaging -type notification_template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, service, integration, workflow_definition] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -# integrations represent configured org connections to providers -type integration - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [organization, platform] - -# webhooks configured for integrations -type integration_webhook - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration] - define viewer: can_view from parent - define blocked: [user, group#member] - -# integration run history is service-driven but visible to org members via parent -type integration_run - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory sync run history is service-driven but visible through the parent integration -type directory_sync_run - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory accounts are internal snapshots of user identities from external systems -type directory_account - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, identity_holder, platform] - define editor: [organization#owner] or can_edit from parent - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory groups are internal snapshots of group identities from external systems -type directory_group - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, identity_holder, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory memberships are service-managed joins between directory accounts and groups -type directory_membership - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, directory_account, directory_group, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# entities are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to an entity -type entity - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, trust_center_entity] -# assets are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to an asset -type asset - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform, entity] -# findings can be associated with programs, controls, subcontrols, risks, assets, entities, -# scans, directory accounts, or identity holders -# permissions are inherited from the parent object or organization -type finding - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan, directory_account, identity_holder] -# vulnerabilities can be associated with programs, controls, subcontrols, risks, assets, entities, or scans -# permissions are inherited from the parent object or organization -type vulnerability - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan] -# reviews can be associated with programs, controls, subcontrols, risks, action_plans, findings, vulnerabilities, assets, entities, or tasks -# permissions are inherited from the parent object or organization -type review - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, action_plan, finding, vulnerability, asset, entity, task] - -# contacts are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to a contact but they must be a member of the organization -type contact - relations - define can_view: ([user, service] and member from parent) or can_edit or (viewer but not blocked) - define can_edit: ([user, service] and member from parent) or (editor but not blocked) - define can_delete: ([user] and member from parent) or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - define parent: [organization] -# tasks can be created by any user and permissions are assigned to the creator (assigner) and the assignee -# tasks can also be associated with a parent object (like a control or a procedure) and inherit access from that object -type task - relations - define can_view: [user, service] or assignee or assigner or can_delete or can_edit or viewer - define can_edit: [user, service] or assignee or assigner or editor or can_delete - # assignee cannot delete the task, only the original creator (can_delete from parent) or the assigner - define can_delete: [user, service] or assigner or can_delete from parent - define assignee: [user] - define assigner: [user] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, risk, task, asset, platform, identity_holder, scan, action_plan] - define viewer: can_view from parent - define editor: [organization#owner] or can_edit from parent -# notes are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. -# do not inherit edit permissions from parent here like we do on other objects, only the original user (and org owner) can edit -type note - relations - define can_view: [user, service] or can_edit or can_view from parent - define can_edit: [user, service] or owner or editor - define can_delete: [user, service] or can_edit - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [program, control, procedure, internal_policy, subcontrol, control_objective, task, trust_center, risk, evidence, discussion, trust_center_faq] - define editor: [organization#owner] - define owner : [user, service] -# similar to notes, discussions are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. -type discussion - relations - define can_view: [user, service] or can_edit or can_view from parent - define can_edit: [user, service] or owner or editor - define can_delete: [user, service] or can_edit - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, control, procedure, internal_policy, subcontrol, control_objective, risk, evidence] - define editor: [organization#owner] or can_edit from parent - define owner : [user, service] -type evidence - relations - define can_view: [user, service] or can_edit or ((can_view from parent or viewer) but not blocked) - define can_edit: [user, service] or can_delete or ((can_edit from parent or editor) but not blocked) - define can_delete: [user, service] or ((can_delete from parent or editor) but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, task, platform, scan] - define viewer: [group#member] or editor - define editor: [group#member, organization#owner] - define blocked: [user, group#member] - -type standard - relations - # user:* is used for system-owned public standards that are available to all users - define can_view: [user:*, service:*] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor or can_view from associated_with - define editor: [user, service] - # this is used for organization custom standards that are only available to the organization - define parent: [organization] - define associated_with: [trust_center] - -type job_runner - relations - define can_view: [user, service] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor - define editor: [user, service] - define parent: [organization] - -type job_template - relations - define can_view: [user, service, user:*, service:*, organization#member] or parent_viewer - define can_edit: [user, service, organization#member] or parent_editor or system_admin from system - define can_delete: [user, service] or parent_deleter or system_admin from system - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [organization] - define system: [system] - -type scheduled_job - relations - define can_view: [user, service] or parent_viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [user, service, organization, control, subcontrol] - define editor: [group#member, organization#owner] - -type trust_center - relations - define can_view: [user:*, service:*] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor or system_admin from system - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_edit from parent or can_view from parent - define parent_editor: can_edit from parent or can_manage_trust_center from parent - define parent_deleter: can_delete from parent - define parent: [organization] - define nda_signed: [user] - # allow group permissions for trust center editors, this will give them - # edit access to any child objects as well - define editor: [group#member] - define viewer: editor - define member: member from parent - define system: [system] - - -type trust_center_setting - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_compliance - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_subprocessor - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_doc - relations - # wildcard to allow public trust center documents to be viewed by all users vs - # protected documents that require nda_signed - define can_view: [user, service, user:*, service:*] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or member from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define nda_signed: nda_signed from parent - define member: member from parent - define editor: [group#member] - define viewer: editor - -type trust_center_entity - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_nda_request - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or can_edit from parent or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_faq - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_watermark_config - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - # only allow org members to view the trust_center_watermark_config. - # anonymous users should not be able to view this information. - define parent_viewer: can_delete or can_edit or parent_viewer from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: editor - -type export - relations - define can_view: [user, service] or can_edit - define can_edit: [service] or system_admin from system - define can_delete: system_admin from system - define system: [system] - -type custom_domain - relations - define can_view: [user, service] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor - define editor: [user, service] - define parent: [organization] - -type subprocessor - relations - # user:* is used for system-owned public subprocessors that are available to all users - define can_view: [user:*, service:*] or viewer or system_admin from system - define can_edit: editor or system_admin from system - define can_delete: editor or parent_editor or system_admin from system - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define admin: [user,service] or can_delete from parent - # can_view from parent allows anon trust centers users to see subprocessors associated with the trust center - define parent_viewer: member from parent or can_view from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor or parent_viewer - define editor: [user, service, organization#owner] or admin or parent_editor - define parent: [organization, user, trust_center_subprocessor] - define system: [system] - -type assessment - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user] or owner or delegate or (editor but not blocked) - define can_delete: [user] or owner or (editor but not blocked) - define parent: [organization] - # allow users or groups to be assigned edit/view permissions directly - define editor: [user, group#member] or admin from parent or owner from parent - define viewer: [user, group#member] or editor - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # owner is the user or group that is responsible for the assessment, they will have full access to the assessment - define owner: [user, group#member] - # delegate is a user or group that is given temporary access to the assessment, they will have edit but not delete access - define delegate: [user, group#member] - -type assessment_response - relations - define can_view: [user] or response_owner or admin_viewer or viewer - define can_edit: [user] or response_owner or editor - define can_delete: admin_viewer - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, assessment, campaign, identity_holder, entity] - # the user who filled out the assessment response - they can view their own response - define response_owner: [user] - # org admins and owners can view all responses for oversight/management - define admin_viewer: admin from parent or owner from parent - # editor and viewer relations for organization-level permissions - define editor: [organization#owner] or can_edit from parent - define viewer: [organization#owner] or editor or can_view from parent - -type vendor_scoring_config - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -type vendor_risk_score - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, vendor_scoring_config, entity, assessment_response] - -# workflow definitions can be created by org admins or users in groups with create access -type workflow_definition - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or admin or (editor but not blocked) - define can_delete: [user, service] or admin or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization] - define admin: [user, service] or can_delete from parent - define viewer: [group#member] or editor - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - -# workflow_instance and related types are system-driven -# users can view through parent object relations but only services can create/edit/delete -type workflow_instance - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, identity_holder, platform, workflow_definition] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_assignment - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_object_ref - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, directory_account, directory_group, directory_membership, identity_holder, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_assignment_target - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_assignment] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_event - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_proposal - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_object_ref] - define viewer: can_view from parent - define blocked: [user, group#member] - -type campaign - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -type campaign_target - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, campaign] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -type remediation - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, action_plan, program, control, subcontrol, risk, finding, vulnerability, asset, entity, task] - -type scan - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform, asset] - -type platform - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -type identity_holder - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform] - -type sla_definition - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -type system_detail - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, platform, program] - - -## Conditions -# Public groups access; affects the view access of users in the organization -condition public_group(public: bool) { - public == true -} - -# User IP address is within the CIDR range of the company network -condition in_company_network(user_ip: ipaddress, cidr: string) { - user_ip.in_cidr(cidr) -} - -# Time based access to resources -condition time_based_grant(current_time: timestamp, grant_time: timestamp, grant_duration: duration) { - current_time < grant_time + grant_duration -} - -# user email domain within the allowed list -# if there are no restrictions, or a check is done without a domain, it will pass -# if the email domain is in the allowed list, it will pass -condition email_domains_allowed(email_domain: string, allowed_domains: list) { - allowed_domains == [] || email_domain == "" || email_domain in allowed_domains -} diff --git a/fga/model/old/model_old.fga b/fga/model/old/model_old.fga deleted file mode 100644 index 123700c881..0000000000 --- a/fga/model/old/model_old.fga +++ /dev/null @@ -1,1125 +0,0 @@ -model - schema 1.2 - -# user is a human with access to the system -# the _self relation is used for when the user is the parent of another object -type user - relations - define _self: [user] - define can_view: _self - define can_edit: _self - define can_delete: _self - -# service is not associated to a particular user, but instead to an organization -# the _self relation is used for when the service is the parent of another object -type service - relations - define _self: [service] - define can_view: _self - define can_edit: _self - define can_delete: _self - -# search access for the admin search -type search - relations - define admin: [user] - -# system admin roles are used to define the highest level of access in the system -type system - relations - define system_admin: [user, service] - -type feature - relations - define enabled: [organization] - -# organization is the highest object access -# objects can inherit access from the organization -# or define their own specific access -type organization - relations - # main roles - define admin: [user] or admin from parent - define member: [user] or owner or admin or member from parent - define owner: [user] or owner from parent - # parent inheritance - define parent: [organization] - # organization policies to restrict access - define access: [organization#member with email_domains_allowed] - # main permission sets based on roles - define can_delete: [service] or owner or can_delete from parent - define can_edit: [service] or (admin and access) or owner or can_edit from parent - # view access of the organization - # includes all members, admins, and owners - # also allows users to be given time based access to the organization (e.g. support access) - define can_view: [service, user with time_based_grant] or (member and access) or owner or can_edit or can_view from parent - # additional fine-grained permissions - # allow owner and assigned users to view audit logs - define audit_log_viewer: ([user, service] or owner or audit_log_viewer from parent) and can_view - # allow members to invite other members - define can_invite_members: can_view or can_edit or can_invite_members from parent - # only allow users with edit access to the org to invite other admins - define can_invite_admins: can_edit or can_invite_admins from parent - ## only allow admins/owners be able to create scheduled jobs - ## and enable a job that can be run and be linked to a control - define job_template_creator: [group#member] - define can_create_job_template: can_edit or job_template_creator - define can_create_scheduled_job: can_edit - # object creation permissions - # these permissions should all be defined as: - # define [object]_creator: [group#member] - # define can_create_[object]: can_edit or [object]_creator - - - # system owned standard creation - define standard_creator: [group#member] - define can_create_standard: can_edit or standard_creator - - define control_creator: [group#member] - define can_create_control: can_edit or control_creator - # subcontrols, control_implementations and control_objectives can inherit access from their parent control - define can_create_subcontrol: can_edit or control_creator - - # control implementation and objectives can also be created by users outside the control creator access - define control_implementation_creator: [group#member] - define can_create_control_implementation: can_edit or control_creator or control_implementation_creator - define control_objective_creator: [group#member] - define can_create_control_objective: can_edit or control_creator or control_objective_creator - - # mapped controls are used to map controls from one standard to another - # they can be created by any user with edit access to the organization - # or by a user with the mapped_control_creator or control_creator role - define can_create_mapped_control: can_edit or control_creator or mapped_control_creator - define mapped_control_creator: [group#member] - - define group_creator: [group#member] - define can_create_group: can_edit or group_creator - - define internal_policy_creator: [group#member] - define can_create_internal_policy: can_edit or internal_policy_creator - - define narrative_creator: [group#member] - define can_create_narrative: can_edit or narrative_creator - - define procedure_creator: [group#member] - define can_create_procedure: can_edit or procedure_creator - - define program_creator: [group#member] - define can_create_program: can_edit or program_creator - - define risk_creator: [group#member] - define can_create_risk: can_edit or risk_creator - - define template_creator: [group#member] - define can_create_template: can_edit or template_creator - - define evidence_creator: [group#member] - define can_create_evidence: can_edit or evidence_creator - - define action_plan_creator: [group#member] - define can_create_action_plan: can_edit or action_plan_creator - - define campaign_creator: [group#member] - define can_create_campaign: can_edit or campaign_creator - - define campaign_target_creator: [group#member] - define can_create_campaign_target: can_edit or campaign_target_creator - - define group_manager: [service] - define can_manage_groups: owner or group_manager - - define assessment_creator: [user,group#member] - define can_create_assessment: can_edit or assessment_creator - - define subprocessor_creator: [group#member] - define can_create_subprocessor: can_edit or subprocessor_creator - - define trust_center_admin: [user] - define can_manage_trust_center: trust_center_admin or owner - - define trust_center_doc_creator: [group#member] - define can_create_trust_center_doc: can_edit or trust_center_doc_creator or can_manage_trust_center - - define trust_center_subprocessor_creator: [group#member] - define can_create_trust_center_subprocessor: can_edit or trust_center_subprocessor_creator or can_manage_trust_center - - define trust_center_entity_creator: [group#member] - define can_create_trust_center_entity: can_edit or trust_center_entity_creator or can_manage_trust_center - - define trust_center_nda_request_creator: [group#member] - define can_create_trust_center_nda_request: can_edit or trust_center_nda_request_creator or can_manage_trust_center - - define trust_center_compliance_creator: [group#member] - define can_create_trust_center_compliance: can_edit or trust_center_compliance_creator or can_manage_trust_center - - define trust_center_faq_creator: [group#member] - define can_create_trust_center_faq: can_edit or trust_center_faq_creator or can_manage_trust_center - - define trust_center_post_creator: [group#member] - define can_create_trust_center_post: can_edit or trust_center_post_creator or can_manage_trust_center - - # workflows - define workflow_definition_creator: [group#member] - define can_create_workflow_definition: can_edit or workflow_definition_creator - - # workflow_instance and related types are system-driven, only services can create - define can_create_workflow_instance: [service] - define can_create_workflow_assignment: [service] - define can_create_workflow_object_ref: [service] - define can_create_workflow_assignment_target: [service] - define can_create_workflow_event: [service] - define can_create_workflow_proposal: [service] - - define entity_creator: [group#member] - define can_create_entity: can_edit or entity_creator or can_manage_trust_center - - define asset_creator: [group#member] - define can_create_asset: can_edit or asset_creator - - define finding_creator: [group#member] - define can_create_finding: can_edit or finding_creator - - define vulnerability_creator: [group#member] - define can_create_vulnerability: can_edit or vulnerability_creator - - define remediation_creator: [group#member] - define can_create_remediation: can_edit or remediation_creator - - define review_creator: [group#member] - define can_create_review: can_edit or review_creator - - define scan_creator: [group#member] - define can_create_scan: can_edit or scan_creator - - define platform_creator: [group#member] - define can_create_platform: can_edit or platform_creator - - define identity_holder_creator: [group#member] - define can_create_identity_holder: can_edit or identity_holder_creator - # additional relations - define user_in_context: [user] - -# groups are a subset of an organization that can be used to define more fine-grained access to objects -# users must be members of the organization to be members of a group -# groups are all visible to all members of the organization, unless they are blocked -# groups can only be edited by admins of the group or the parent organization owner -# groups are commonly used to assigned view/edit permissions to other objects within the organization for group members -type group - relations - # main roles - define admin: [user] - define member: [user] or admin - # parent inheritance - define parent: [organization with public_group] - define parent_admin: [organization#owner] - # permissions inherited from the organization - define parent_viewer: can_view from parent or parent_admin - define parent_editor: parent_admin or can_manage_groups from parent - define parent_deleter: parent_admin or can_manage_groups from parent - # main permission sets based on roles - define can_delete: [service] or admin or parent_deleter - define can_edit: [service] or admin or parent_editor - define can_view: [service] or can_edit or member or parent_viewer - # additional fine-grained permissions - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - - -# files have their permissions defined by the parent object (like a control or a procedure), users with access to the parent object will have access to the file -# user:* and service:* are used for public files (e.g. trust center logos/favicons etc) that are available to all users -type file - relations - define can_view: [user:*, service:*, user, service, organization#member] or parent_viewer or tc_doc_viewer - define can_edit: [user, service] or parent_editor or tc_doc_editor - define can_delete: [user, service] or parent_deleter or tc_doc_deleter - - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - - # permissions inherited from the parent - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - # special handling for trust center documents - only NDA signed users can view files - define tc_doc_viewer: nda_signed from tc_doc_parent or member from tc_doc_parent - define tc_doc_editor: can_edit from tc_doc_parent - define tc_doc_deleter: can_delete from tc_doc_parent - define tc_doc_parent: [trust_center_doc] - - define parent: [user, program, organization, control, procedure, template, document_data, contact, internal_policy, narrative, evidence, note, trust_center_setting, subprocessor, export, trust_center_watermark_config, standard,trust_center_entity, entity, identity_holder, trust_center_subprocessor, scan, platform] -# programs are associated with an organization but do not inherit access from the organization with -# the exception of the owner of the organization who will have access to all programs -# the program creator will be made the admin of the program and all other access with be assigned directly -# as program members or via groups -type program - relations - # main roles - define admin: ([user] or owner from parent) and member from parent - define member: [user] and member from parent - # auditor role will not have access to everything in the program by default - # but can be assigned access to specific objects - define auditor: [user] - # main permission sets based on roles - define can_delete: [service] or admin or parent_deleter - define can_edit: [service] or admin or parent_editor or (editor but not blocked) - define can_view: [service] or member or can_edit or parent_viewer or ((editor or viewer) but not blocked) - # parent relation, only the organization owner will have access to the program by default - define parent: [organization] - # permissions inherited from the parent organization - define parent_viewer: owner from parent - define parent_editor: owner from parent - define parent_deleter: owner from parent - # additional fine-grained permissions - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - define viewer: [group#member] - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # allow owner and assigned users to view audit logs - define audit_log_viewer: ([user, service] or admin or audit_log_viewer from parent) and can_view - # allow members to invite other members - define can_invite_members: member or can_edit - # only allow users with edit access to the org to invite other admins - define can_invite_admins: can_edit - # additional relations - define user_in_context: [user] -# controls are associated with an organization and will inherit access from the organization -# controls inherit access can also be inherited associated program(s) or from associated groups -# the control author will be assigned as an admin of the control -type control - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or owner or delegate or system_admin from system or (editor but not blocked) - define can_delete: [user, service] or owner or (editor but not blocked) or system_admin from system - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, program, standard] - # do not include group#member here as controls automatically inherit access from the parent organization - # member covers organizations whereas can_view covers other others - define viewer: member from parent or can_view from parent - # admin covers organizations whereas can_edit covers others - define editor: [group#member, organization#owner] or admin from parent or can_edit from parent - define blocked: [user, group#member] - # owner is the group of users that are responsible for the control, they will have full access to the control - define owner: [group#member] - # delegate is a group of users that are given temporary access to the control, they will have edit but not delete access - define delegate: [group#member] - define system: [system] -# subcontrols are associated with an organization but do not inherit access from the organization -# subcontrols inherit access from the their parent control(s) -type subcontrol - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or owner or delegate or (editor but not blocked) - define can_delete: [user, service] or owner or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control] - # do not include group#member here as subcontrols automatically inherit access from the parent control which - # are accessible to all members of the organization - define viewer: can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - # owner is the group of users that are responsible for the subcontrol, they will have full access to the subcontrol - define owner: [group#member] - # delegate is a group of users that are given temporary access to the subcontrol, they will have edit but not delete access - define delegate: [group#member] -# control objectives inherit access from the associated program or from associated groups -# the control objective author will be assigned as an admin of the control objective -type control_objective - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, subcontrol] - define viewer: [group#member] or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# control implementations inherit access from the associated controls or from associated groups -# the control implementation author will be assigned as an admin of the control objective -type control_implementation - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control, subcontrol] - define viewer: [group#member] or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# mapped controls inherit access from the associated control or subcontrols in the mapping -# the mapped_control author will be assigned as an admin of the mapped control -type mapped_control - relations - define can_view: [user, service] or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization] - # no group#member relation here as mapped controls automatically inherit access from the parent organization - define viewer: editor or member from parent or can_view from parent - define editor: [group#member] or admin from parent or owner from parent - define blocked: [user, group#member] -# risks are associated with an organization but do not inherit access from the organization -# the risk creator will be made the admin of the risk and all other access will be assigned via -# a group -type risk - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or stakeholder or delegate or (editor but not blocked) - define can_delete: [user, service] or stakeholder or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, control_objective, subcontrol, procedure, internal_policy] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - # stakeholder is the group of users that are responsible for the risk, they will have full access to the risk - define stakeholder: [group#member] - # delegate is a group of users that are given temporary access to the risk, they will have edit but not delete access - define delegate: [group#member] -# narratives are associated with an organization but do not inherit access from the organization -# the narrative creator will be made the admin of the narrative and all other access will be assigned via -# a group -type narrative - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# action plans are associated with an organization but do not inherit access from the organization -# the action plan creator will be made the admin of the action plan and all other access will be assigned via -# associated objects or groups -type action_plan - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program] - define viewer: [group#member] or editor or can_view from parent - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] -# policies are always assigned to an organization and by default all org members can view -# groups can be used to exclude users from being able to view a internal policy -# groups can be used to give edit (or delete) access to users -type internal_policy - relations - define can_view: ([user, service]) or can_edit or (viewer but not blocked) - define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) - define can_delete: ([user, service]) or admin or approver or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # the parent of the policy will be the organization, not all permissions will be inherited - define parent: [organization] - # allow a user or service to be assigned to add edit permissions - define admin: [user,service] or can_delete from parent - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - # allow for auditors assigned to the program to view the policy - define viewer: [program#auditor, group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # approver is the group of users that are responsible for the approval of changes to the policy, they will have full access to the policy - define approver: [group#member] - # delegate is a group of users that are given temporary access to the policy, they will have edit but not delete access - define delegate: [group#member] -# procedures are always assigned to an organization and by default all org members can view -# groups can be used to exclude users from being able to view an internal policy -# groups can be used to give edit (or delete) access to users -type procedure - relations - define can_view: ([user, service]) or can_edit or (viewer but not blocked) - define can_edit: ([user, service]) or admin or approver or delegate or (editor but not blocked) - define can_delete: ([user, service]) or admin or approver or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # the parent of the procedure will be the organization, not all permissions will be inherited - define parent: [organization] - # allow a user or service to be assigned to add edit permissions - define admin: [user,service] or can_delete from parent - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] - # allow for auditors assigned to the program to view the procedure - define viewer: [program#auditor, group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # approver is the group of users that are responsible for the approval of changes to the procedure, they will have full access to the procedure - define approver: [group#member] - # delegate is a group of users that are given temporary access to the procedure, they will have edit but not delete access - define delegate: [group#member] -# templates (this encompasses things like questionnaires or jsonschemas) should be able to be -# created by any user in the parent (organization) with edit access (directly or via a group on the organization) -# all users in the organization should have view access, unless they are excluded (by a user or group) -# editors will be assigned by groups and can be excluded by users or groups -type template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, trust_center, service] - # allow a group to be assigned to add edit/view permissions for a set of users - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] -# document_data is the json data that is associated to a template -# access to the document_data is inherited from the template -type document_data - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [template, user] - # allow a group to be assigned to add edit/view permissions for a set of users - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - -# email branding holds visual configuration for branded emails -type email_branding - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -# email templates support branded outbound messages (system or org-owned) -type email_template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, service, integration, workflow_definition, workflow_instance] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -# notification templates drive in-app and external channel messaging -type notification_template - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [organization, user, service, integration, workflow_definition] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -# integrations represent configured org connections to providers -type integration - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [organization, platform] - -# webhooks configured for integrations -type integration_webhook - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - define parent: [user, service, organization, integration] - -# integration run history is service-driven but visible to org members via parent -type integration_run - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory sync run history is service-driven but visible through the parent integration -type directory_sync_run - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory accounts are internal snapshots of user identities from external systems -type directory_account - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, identity_holder, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory groups are internal snapshots of group identities from external systems -type directory_group - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# directory memberships are service-managed joins between directory accounts and groups -type directory_membership - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, integration, directory_sync_run, directory_account, directory_group, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -# entities are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to an entity -type entity - relations - define can_view: [user, service, user:*, service:*] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, trust_center_entity] -# assets are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to an asset -type asset - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform, entity] -# findings can be associated with programs, controls, subcontrols, risks, assets, entities, -# scans, directory accounts, or identity holders -# permissions are inherited from the parent object or organization -type finding - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan, directory_account, identity_holder] -# vulnerabilities can be associated with programs, controls, subcontrols, risks, assets, entities, or scans -# permissions are inherited from the parent object or organization -type vulnerability - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, asset, entity, scan] -# reviews can be associated with programs, controls, subcontrols, risks, action_plans, findings, vulnerabilities, assets, entities, or tasks -# permissions are inherited from the parent object or organization -type review - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, program, control, subcontrol, risk, action_plan, finding, vulnerability, asset, entity, task] - -# contacts are always assigned to an organization and permissions are inherited from the organization -# individual users or groups can also be given permission to a contact but they must be a member of the organization -type contact - relations - define can_view: ([user, service] and member from parent) or can_edit or (viewer but not blocked) - define can_edit: ([user, service] and member from parent) or (editor but not blocked) - define can_delete: ([user] and member from parent) or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - # allow a group to be assigned to add edit permissions for a set of users - define editor: [group#member] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - define parent: [organization] -# tasks can be created by any user and permissions are assigned to the creator (assigner) and the assignee -# tasks can also be associated with a parent object (like a control or a procedure) and inherit access from that object -type task - relations - define can_view: [user, service] or assignee or assigner or can_delete or can_edit or viewer - define can_edit: [user, service] or assignee or assigner or editor or can_delete - # assignee cannot delete the task, only the original creator (can_delete from parent) or the assigner - define can_delete: [user, service] or assigner or can_delete from parent - define assignee: [user] - define assigner: [user] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, risk, task, asset, platform, identity_holder, scan, action_plan] - define viewer: can_view from parent - define editor: [organization#owner] or can_edit from parent -# notes are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. -# do not inherit edit permissions from parent here like we do on other objects, only the original user (and org owner) can edit -type note - relations - define can_view: [user, service] or can_edit or can_view from parent - define can_edit: [user, service] or owner or editor - define can_delete: [user, service] or can_edit - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [program, control, procedure, internal_policy, subcontrol, control_objective, task, trust_center, risk, evidence, discussion, trust_center_faq] - define editor: [organization#owner] - define owner : [user, service] -# similar to notes, discussions are associated with a parent object and inherit view access from that object, e.g. task, policy, procedure, etc. -type discussion - relations - define can_view: [user, service] or can_edit or can_view from parent - define can_edit: [user, service] or owner or editor - define can_delete: [user, service] or can_edit - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, control, procedure, internal_policy, subcontrol, control_objective, risk, evidence] - define editor: [organization#owner] or can_edit from parent - define owner : [user, service] -type evidence - relations - define can_view: [user, service] or can_edit or ((can_view from parent or viewer) but not blocked) - define can_edit: [user, service] or can_delete or ((can_edit from parent or editor) but not blocked) - define can_delete: [user, service] or ((can_delete from parent or editor) but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, program, control, procedure, internal_policy, subcontrol, control_objective, task, platform, scan] - define viewer: [group#member] or editor - define editor: [group#member, organization#owner] - define blocked: [user, group#member] - -type standard - relations - # user:* is used for system-owned public standards that are available to all users - define can_view: [user:*, service:*] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor or can_view from associated_with - define editor: [user, service] - # this is used for organization custom standards that are only available to the organization - define parent: [organization] - define associated_with: [trust_center] - -type job_runner - relations - define can_view: [user, service] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor - define editor: [user, service] - define parent: [organization] - -type job_template - relations - define can_view: [user, service, user:*, service:*, organization#member] or parent_viewer - define can_edit: [user, service, organization#member] or parent_editor or system_admin from system - define can_delete: [user, service] or parent_deleter or system_admin from system - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [organization] - define system: [system] - -type scheduled_job - relations - define can_view: [user, service] or parent_viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [user, service, organization, control, subcontrol] - define editor: [group#member, organization#owner] - -type trust_center - relations - define can_view: [user:*, service:*] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor or system_admin from system - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_edit from parent or can_view from parent - define parent_editor: can_edit from parent or can_manage_trust_center from parent - define parent_deleter: can_delete from parent - define parent: [organization] - define nda_signed: [user] - # allow group permissions for trust center editors, this will give them - # edit access to any child objects as well - define editor: [group#member] - define viewer: editor - define member: member from parent - define system: [system] - - -type trust_center_setting - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_compliance - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_subprocessor - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define editor: [group#member] - define viewer: editor - define parent: [trust_center, user, service] - -type trust_center_doc - relations - # wildcard to allow public trust center documents to be viewed by all users vs - # protected documents that require nda_signed - define can_view: [user, service, user:*, service:*] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or member from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define nda_signed: nda_signed from parent - define member: member from parent - define editor: [group#member] - define viewer: editor - -type trust_center_entity - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_nda_request - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_faq - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - define parent_viewer: can_delete or can_edit or can_view from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member] - define viewer: editor - -type trust_center_watermark_config - relations - define can_view: [user, service] or parent_viewer or viewer - define can_edit: [user, service] or parent_editor or editor - define can_delete: [user, service] or parent_deleter or editor - # only allow org members to view the trust_center_watermark_config. - # anonymous users should not be able to view this information. - define parent_viewer: can_delete or can_edit or parent_viewer from parent - define parent_editor: can_delete or can_edit from parent - define parent_deleter: can_delete from parent - define parent: [trust_center, user, service] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: editor - -type export - relations - define can_view: [user, service] or can_edit - define can_edit: [service] or system_admin from system - define can_delete: system_admin from system - define system: [system] - -type custom_domain - relations - define can_view: [user, service] or viewer or parent_viewer - define can_edit: editor or parent_editor - define can_delete: editor or parent_editor - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent_viewer: member from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor - define editor: [user, service] - define parent: [organization] - -type subprocessor - relations - # user:* is used for system-owned public subprocessors that are available to all users - define can_view: [user:*, service:*] or viewer or system_admin from system - define can_edit: editor or system_admin from system - define can_delete: editor or parent_editor or system_admin from system - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define admin: [user,service] or can_delete from parent - # can_view from parent allows anon trust centers users to see subprocessors associated with the trust center - define parent_viewer: member from parent or can_view from parent - define parent_editor: admin from parent or owner from parent - define viewer: [user, service] or editor or parent_viewer - define editor: [user, service, organization#owner] or admin or parent_editor - define parent: [organization, user, trust_center_subprocessor] - define system: [system] - -type assessment - relations - define can_view: [user] or can_edit or (viewer but not blocked) - define can_edit: [user] or owner or delegate or (editor but not blocked) - define can_delete: [user] or owner or (editor but not blocked) - define parent: [organization] - # allow users or groups to be assigned edit/view permissions directly - define editor: [user, group#member] or admin from parent or owner from parent - define viewer: [user, group#member] or editor - # allow users or groups to be blocked from view + edit access - define blocked: [user, group#member] - # owner is the user or group that is responsible for the assessment, they will have full access to the assessment - define owner: [user, group#member] - # delegate is a user or group that is given temporary access to the assessment, they will have edit but not delete access - define delegate: [user, group#member] - -type assessment_response - relations - define can_view: [user] or response_owner or admin_viewer or viewer - define can_delete: admin_viewer - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization, assessment, campaign, identity_holder, entity] - # the user who filled out the assessment response - they can view their own response - define response_owner: [user] - # org admins and owners can view all responses for oversight/management - define admin_viewer: admin from parent or owner from parent - # editor and viewer relations for organization-level permissions - define editor: [organization#owner] or can_edit from parent - define viewer: [organization#owner] or editor or can_view from parent - -# workflow definitions can be created by org admins or users in groups with create access -type workflow_definition - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or admin or (editor but not blocked) - define can_delete: [user, service] or admin or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization] - define admin: [user, service] or can_delete from parent - define viewer: [group#member] or editor - define editor: [group#member, organization#owner] or can_edit from parent - define blocked: [user, group#member] - -# workflow_instance and related types are system-driven -# users can view through parent object relations but only services can create/edit/delete -type workflow_instance - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, identity_holder, platform, workflow_definition] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_assignment - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_object_ref - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance, control, internal_policy, evidence, subcontrol, action_plan, procedure, campaign, campaign_target, directory_account, directory_group, directory_membership, identity_holder, platform] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_assignment_target - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_assignment] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_event - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_instance] - define viewer: can_view from parent - define blocked: [user, group#member] - -type workflow_proposal - relations - define can_view: [service] or (viewer but not blocked) - define can_edit: [service] - define can_delete: [service] - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, workflow_object_ref] - define viewer: can_view from parent - define blocked: [user, group#member] - -type campaign - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, organization] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -type campaign_target - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define parent: [user, service, campaign] - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent - define blocked: [user, group#member] - -type remediation - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, action_plan, program, control, subcontrol, risk, finding, vulnerability, asset, entity, task] - -type scan - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform, asset] - -type platform - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization] - -type identity_holder - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, organization, platform] - -type system_detail - relations - define can_view: [user, service] or can_edit or (viewer but not blocked) - define can_edit: [user, service] or (editor but not blocked) - define can_delete: [user, service] or (editor but not blocked) - define audit_log_viewer: ([user, service] or audit_log_viewer from parent) and can_view - define editor: [group#member, organization#owner] or can_edit from parent - define viewer: [group#member] or editor or can_view from parent or member from parent - define blocked: [user, group#member] - define parent: [user, service, platform, program] - - -## Conditions -# Public groups access; affects the view access of users in the organization -condition public_group(public: bool) { - public == true -} - -# User IP address is within the CIDR range of the company network -condition in_company_network(user_ip: ipaddress, cidr: string) { - user_ip.in_cidr(cidr) -} - -# Time based access to resources -condition time_based_grant(current_time: timestamp, grant_time: timestamp, grant_duration: duration) { - current_time < grant_time + grant_duration -} - -# user email domain within the allowed list -# if there are no restrictions, or a check is done without a domain, it will pass -# if the email domain is in the allowed list, it will pass -condition email_domains_allowed(email_domain: string, allowed_domains: list) { - allowed_domains == [] || email_domain == "" || email_domain in allowed_domains -} From 0427d3cd7e7cdc3e65ca3c5a7c963b203e3ea0e1 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 10:15:49 -0600 Subject: [PATCH 06/12] linter Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- internal/ent/hooks/listeners_entitlements.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ent/hooks/listeners_entitlements.go b/internal/ent/hooks/listeners_entitlements.go index a1b39e7526..d9268f1b51 100644 --- a/internal/ent/hooks/listeners_entitlements.go +++ b/internal/ent/hooks/listeners_entitlements.go @@ -14,7 +14,6 @@ import ( "github.com/theopenlane/core/common/models" "github.com/theopenlane/core/internal/ent/eventqueue" - "github.com/theopenlane/core/internal/ent/generated" entgen "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/privacy" @@ -312,7 +311,7 @@ func (inv *entitlementInvocation) reconcile() error { unwrapped := errors.Unwrap(err) // if this is a constraint error, mark it as warn - this is common in tests and we will still have the logs // in production - if unwrapped != nil && errors.Is(generated.ConstraintError{}, unwrapped) { + if unwrapped != nil && errors.Is(entgen.ConstraintError{}, unwrapped) { inv.Logger().Warn().Err(err).Msgf("entitlement reconciliation failed, organization with stripe customer id already exits") } else { inv.Logger().Err(err).Msg("entitlement reconciliation failed") From 8de1e952fbdb13a70e79295b6ddf671fba48b743 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 13:19:26 -0600 Subject: [PATCH 07/12] some updates Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- Taskfile.yaml | 4 +- cli/go.mod | 2 +- cli/go.sum | 2 +- db/MIGRATION.md | 86 +++++++++++++++++++ fga/model/trustcenter/base.fga | 1 - go.mod | 2 +- go.sum | 4 +- internal/ent/hooks/listeners_entitlements.go | 11 ++- internal/ent/hooks/memberhelpers.go | 4 +- internal/ent/hooks/tools_test.go | 2 - internal/ent/privacy/rule/organization.go | 2 +- internal/ent/schema/mixin_grouppermissions.go | 4 +- internal/graphapi/_example_test.go | 4 +- internal/graphapi/assessment_test.go | 2 +- internal/graphapi/control_test.go | 6 +- internal/graphapi/models_test.go | 2 +- internal/graphapi/scheduledjob_test.go | 2 +- internal/graphapi/task_test.go | 4 +- internal/graphapi/tools_test.go | 2 - .../httpserve/handlers/questionnaire_test.go | 2 +- internal/httpserve/handlers/tools_test.go | 2 - internal/workflows/engine/tools_test.go | 3 - 22 files changed, 116 insertions(+), 37 deletions(-) create mode 100644 db/MIGRATION.md diff --git a/Taskfile.yaml b/Taskfile.yaml index 8c259c4489..8d15c841ec 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -373,7 +373,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:handlers'] cmds: - - go run gotest.tools/gotestsum@latest --junitfile junit-handlers.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/httpserve/handlers" --format-hide-empty-pkg --format-icons hivis --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-handlers.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-handlers.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/httpserve/handlers" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-handlers.out -tags test go:testsum:ci:no-api: desc: runs tests using gotestsum for CI @@ -382,7 +382,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:no-api', 'testsum:ci:no-graph', 'go:testsum:ci:no-graph'] cmds: - - go run gotest.tools/gotestsum@latest --junitfile junit-no-api.xml --junitfile-hide-empty-pkg --packages "$(go list ./... | grep -v /internal/graphapi | grep -v /internal/httpserve/handlers)" --format-hide-empty-pkg --format-icons hivis --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-no-api.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-no-api.xml --junitfile-hide-empty-pkg --packages "$(go list ./... | grep -v /internal/graphapi | grep -v /internal/httpserve/handlers)" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-no-api.out -tags test go:testsum:ci:cover: desc: pushes test results to buildkite using gotestsum diff --git a/cli/go.mod b/cli/go.mod index a8e0b2d387..1ae8747b83 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -21,7 +21,7 @@ require ( github.com/theopenlane/core/common v1.0.21 github.com/theopenlane/go-client v0.10.0 github.com/theopenlane/httpsling v0.3.0 - github.com/theopenlane/iam v0.30.0 + github.com/theopenlane/iam v0.30.1-0.20260519184713-f7e890743e3b github.com/theopenlane/utils v0.7.0 golang.org/x/oauth2 v0.36.0 golang.org/x/term v0.43.0 diff --git a/cli/go.sum b/cli/go.sum index ad6d6905e0..0fddfef78c 100644 --- a/cli/go.sum +++ b/cli/go.sum @@ -194,7 +194,7 @@ github.com/theopenlane/go-client v0.10.0 h1:gBEOEWXM3nP7VlXPcmgA/0RPWcvSz1XzFBwA github.com/theopenlane/go-client v0.10.0/go.mod h1:usNDyObWwEJmNph2vAlsYfnx1q6jxXMwOKC6kQAesFo= github.com/theopenlane/httpsling v0.3.0 h1:Bad0dGdqCqAB8UVDyVo+YCevzRvGHhmkK22F7T3pXtY= github.com/theopenlane/httpsling v0.3.0/go.mod h1:iJc3XRLYTFIpfCnPpLZVMBP0xsWIPAb7ozARtQoclAE= -github.com/theopenlane/iam v0.30.0 h1:rZcJQVfNUfxss1shF+uinF2vo7UZl9rqEcG6yl5ayRI= +github.com/theopenlane/iam v0.30.1-0.20260519184713-f7e890743e3b h1:coP8QFoYtwL03pj5d8EnPv8IIhZx4NiaBlHeYh8/uRI= github.com/theopenlane/utils v0.7.0 h1:tSN9PBC8Ywn2As3TDW/1TAfWsVsodrccec40oAhiZgo= github.com/theopenlane/utils v0.7.0/go.mod h1:7U9CDoVzCAFWw/JygR5ZhCKGwhHBnuJpK3Jgh1m59+w= github.com/tinylib/msgp v1.6.4 h1:mOwYbyYDLPj35mkA2BjjYejgJk9BuHxDdvRnb6v2ZcQ= diff --git a/db/MIGRATION.md b/db/MIGRATION.md new file mode 100644 index 0000000000..f0a46ddbd5 --- /dev/null +++ b/db/MIGRATION.md @@ -0,0 +1,86 @@ +# Migration to v2 permissions + +Migrate `parent` → `parent_context` for Organization Tuples + +## Background + +The FGA model is being updated to distinguish between structural parent ownership (e.g. a `control` owns a `control_implementation`) and organizational context (e.g. "this object belongs to organization X"). Previously both used the generic `parent` relation; the new model uses `parent_context` specifically for organization-scoped relations. + +This allows permission rules to correctly differentiate between "inherit from owning object" and "inherit from org context", which is required for permission scopes and no longer requiring a user "owner" tuple for ownership, and instead can inherit from roles. + +The exception being `files`, since files have a more complex relationship and are not always owned by orgs, and can also be owned by users, these are staying as `parent` even for `organization`. + +### What to migrate + +All tuples where: +- `relation = 'parent'` +- `_user LIKE 'organization:%'` +- `object_type != 'file'` (files use a separate ownership model) + +### Steps + +**1. Preview the rows that will be migrated** + +```sql +SELECT + store, + object_type, + object_id, + 'parent_context' AS relation, + _user, + user_type +FROM tuple +WHERE relation = 'parent' + AND _user LIKE 'organization:%' + AND object_type != 'file'; +``` + +**2. Run the migration** + +```sql +INSERT INTO tuple (store, object_type, object_id, relation, _user, user_type, ulid, inserted_at) +SELECT + store, + object_type, + object_id, + 'parent_context', + _user, + user_type, + md5(store || object_type || object_id || 'parent_context' || _user), + NOW() +FROM tuple +WHERE relation = 'parent' + AND _user LIKE 'organization:%' + AND object_type != 'file' +ON CONFLICT (store, object_type, object_id, relation, _user) DO NOTHING; +``` + +The `ulid` is derived deterministically from the natural key so the insert is idempotent — safe to re-run. + +**3. Verify** + +Spot-check that `parent_context` rows now exist for the same objects that had `parent` rows: + +```sql +SELECT object_type, COUNT(*) +FROM tuple +WHERE relation = 'parent_context' + AND _user LIKE 'organization:%' +GROUP BY object_type +ORDER BY object_type; +``` + +**4. Deploy the updated FGA model** + +The new model must be deployed after the tuples are written. Deploying the model before the migration means objects will temporarily lose org-context permissions. + +**5. (Optional) Clean up old `parent` tuples** + +Once the new model is live and verified, the old `parent` + `organization:*` tuples are no longer used and can be deleted: + +```sql +DELETE FROM tuple +WHERE relation = 'parent' + AND _user LIKE 'organization:%' + AND object_type != 'file'; +``` diff --git a/fga/model/trustcenter/base.fga b/fga/model/trustcenter/base.fga index 078cd0af4c..f514ae6cb7 100644 --- a/fga/model/trustcenter/base.fga +++ b/fga/model/trustcenter/base.fga @@ -120,7 +120,6 @@ type trust_center_doc # # parent permissions derived based on `crud` permissions or parents define parent_editor: can_edit from parent define parent_viewer: can_view from parent - define parent_context: [organization] # unused, but things wfail without define parent: [trust_center] # in order to allow anon users to get the doc name, but not the file without the nda signed need a separate definition diff --git a/go.mod b/go.mod index 32471786c0..10ea20ad58 100644 --- a/go.mod +++ b/go.mod @@ -104,7 +104,7 @@ require ( github.com/theopenlane/go-client v0.10.0 github.com/theopenlane/gqlgen-plugins v0.14.7 github.com/theopenlane/httpsling v0.3.0 - github.com/theopenlane/iam v0.30.0 + github.com/theopenlane/iam v0.30.1-0.20260519184713-f7e890743e3b github.com/theopenlane/newman v0.4.0 github.com/theopenlane/riverboat v0.8.8 github.com/theopenlane/utils v0.7.0 diff --git a/go.sum b/go.sum index c709e9b9c5..e38a2e4648 100644 --- a/go.sum +++ b/go.sum @@ -742,8 +742,8 @@ github.com/theopenlane/gqlgen-plugins v0.14.7 h1:B9I6tpgevch3xQfV3qqRTpxHIlJvwtX github.com/theopenlane/gqlgen-plugins v0.14.7/go.mod h1:fUjo1cVKEAPLhtRrH+iJtrfivCNp+GxVSB/UJgVBDuA= github.com/theopenlane/httpsling v0.3.0 h1:Bad0dGdqCqAB8UVDyVo+YCevzRvGHhmkK22F7T3pXtY= github.com/theopenlane/httpsling v0.3.0/go.mod h1:iJc3XRLYTFIpfCnPpLZVMBP0xsWIPAb7ozARtQoclAE= -github.com/theopenlane/iam v0.30.0 h1:rZcJQVfNUfxss1shF+uinF2vo7UZl9rqEcG6yl5ayRI= -github.com/theopenlane/iam v0.30.0/go.mod h1:slggeX0cWMUakfYz0RwSZfnz5kOcKdii18sek4SfMEQ= +github.com/theopenlane/iam v0.30.1-0.20260519184713-f7e890743e3b h1:coP8QFoYtwL03pj5d8EnPv8IIhZx4NiaBlHeYh8/uRI= +github.com/theopenlane/iam v0.30.1-0.20260519184713-f7e890743e3b/go.mod h1:slggeX0cWMUakfYz0RwSZfnz5kOcKdii18sek4SfMEQ= github.com/theopenlane/newman v0.4.0 h1:HiYMASHH3WD63M5GIwYFokf81Gq8lZ0Q/D5eget73x4= github.com/theopenlane/newman v0.4.0/go.mod h1:KqTNABh60+NafNhmTvFvFXYYeDl78n+BFZrkhdm60Fo= github.com/theopenlane/oscalot v0.1.0 h1:ExYiMU4Q1ezbGq77sxkgahmfmc46L+2NqB39fg0HXjU= diff --git a/internal/ent/hooks/listeners_entitlements.go b/internal/ent/hooks/listeners_entitlements.go index d9268f1b51..91edf1a7d7 100644 --- a/internal/ent/hooks/listeners_entitlements.go +++ b/internal/ent/hooks/listeners_entitlements.go @@ -309,14 +309,17 @@ func (inv *entitlementInvocation) reconcile() error { if _, err := reconciler.Reconcile(inv.Context(), []string{inv.orgID}); err != nil { unwrapped := errors.Unwrap(err) - // if this is a constraint error, mark it as warn - this is common in tests and we will still have the logs + // if this is a constraint error, log as warning - this is common in tests and we will still have the logs // in production - if unwrapped != nil && errors.Is(entgen.ConstraintError{}, unwrapped) { + if unwrapped != nil && entgen.IsConstraintError(unwrapped) { inv.Logger().Warn().Err(err).Msgf("entitlement reconciliation failed, organization with stripe customer id already exits") - } else { - inv.Logger().Err(err).Msg("entitlement reconciliation failed") + + // do not retry a constraint error + return nil } + inv.Logger().Err(err).Msg("entitlement reconciliation failed") + return err } diff --git a/internal/ent/hooks/memberhelpers.go b/internal/ent/hooks/memberhelpers.go index 66fd720653..6a3400479a 100644 --- a/internal/ent/hooks/memberhelpers.go +++ b/internal/ent/hooks/memberhelpers.go @@ -50,7 +50,7 @@ func HookMembershipSelf(table string) ent.Hook { } // if the user is an org owner, skip the check - if caller.OrganizationRole == auth.OwnerRole { + if caller.OrganizationRole == auth.OwnerRole || caller.OrganizationRole == auth.SuperAdminRole { // ensure this is not an org membership mutation, owners cannot update their own membership // in the organization, it must be done via a transfer if m.Type() != generated.TypeOrgMembership { @@ -61,7 +61,7 @@ func HookMembershipSelf(table string) ent.Hook { // fallback to fgax check for owner relation access if org role is not available // in the context if caller.OrganizationRole == "" { - if err := rule.CheckCurrentOrgAccess(ctx, nil, fgax.OwnerRelation); errors.Is(err, privacy.Allow) { + if err := rule.CheckCurrentOrgAccess(ctx, nil, fgax.FullAccessRelation); errors.Is(err, privacy.Allow) { // ensure this is not an org membership mutation, owners cannot update their own membership // in the organization, it must be done via a transfer if m.Type() != generated.TypeOrgMembership { diff --git a/internal/ent/hooks/tools_test.go b/internal/ent/hooks/tools_test.go index 37c1f260c4..4b4162cf8c 100644 --- a/internal/ent/hooks/tools_test.go +++ b/internal/ent/hooks/tools_test.go @@ -82,8 +82,6 @@ func (suite *HookTestSuite) setupClient() *generated.Client { fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), - fgatest.WithSkipParentContextKinds("organization", "user", "system"), - fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) ctx := context.Background() diff --git a/internal/ent/privacy/rule/organization.go b/internal/ent/privacy/rule/organization.go index d005a1e411..0defde8418 100644 --- a/internal/ent/privacy/rule/organization.go +++ b/internal/ent/privacy/rule/organization.go @@ -160,7 +160,7 @@ func checkOrgAccess(ctx context.Context, relation, organizationID string) error // deny if it was a mutation is not allowed // we check owner relation to skip group level checks, but this ends up being a deny for non-owners // and creates noise in the logs; we want to to log at debug level when the check is owners only and info otherwise - if relation == fgax.OwnerRelation { + if relation == fgax.OwnerRelation || relation == fgax.FullAccessRelation { logx.FromContext(ctx).Debug().Str("relation", relation).Str("subject_id", caller.SubjectID).Str("email", caller.SubjectEmail).Str("organization_id", organizationID).Str("auth_type", string(caller.AuthenticationType)).Msg("request denied by access for user in organization") } else { logx.FromContext(ctx).Info().Str("relation", relation).Str("subject_id", caller.SubjectID).Str("email", caller.SubjectEmail).Str("organization_id", organizationID).Str("auth_type", string(caller.AuthenticationType)).Msg("request denied by ownership access for user in organization") diff --git a/internal/ent/schema/mixin_grouppermissions.go b/internal/ent/schema/mixin_grouppermissions.go index f229b2fb2d..e7d90f889e 100644 --- a/internal/ent/schema/mixin_grouppermissions.go +++ b/internal/ent/schema/mixin_grouppermissions.go @@ -235,8 +235,8 @@ func groupPermissionInterceptorSkipper(ctx context.Context, caller *auth.Caller) return true } - // skip for org owners, they might not have explicit access to the object, but they can view all objects in the org - if err := rule.CheckCurrentOrgAccess(ctx, nil, fgax.OwnerRelation); errors.Is(err, privacy.Allow) { + // skip for org owners + super admins (full_access), they might not have explicit access to the object, but they can view all objects in the org + if err := rule.CheckCurrentOrgAccess(ctx, nil, fgax.FullAccessRelation); errors.Is(err, privacy.Allow) { return true } diff --git a/internal/graphapi/_example_test.go b/internal/graphapi/_example_test.go index 5356465de1..6c30359a78 100644 --- a/internal/graphapi/_example_test.go +++ b/internal/graphapi/_example_test.go @@ -54,7 +54,7 @@ import ( // return OBJECT // } -func TestQueryOBJECT(t *testing.T) { +func TestQuerySingleOBJECT(t *testing.T) { // create an OBJECT to be queried using sharedTestUser1 OBJECT := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) @@ -124,7 +124,7 @@ func TestQueryOBJECT(t *testing.T) { (&Cleanup[*generated.OBJECTDeleteOne]{client: suite.client.db.OBJECT, ID: OBJECT.ID}).MustDelete(sharedTestUser1.UserCtx, t) } -func TestQueryOBJECTs(t *testing.T) { +func TestQueryAllOBJECTs(t *testing.T) { // create multiple objects to be queried using sharedTestUser1 OBJECT1 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) OBJECT2 := (&OBJECTBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) diff --git a/internal/graphapi/assessment_test.go b/internal/graphapi/assessment_test.go index e14a309555..945f2de1f1 100644 --- a/internal/graphapi/assessment_test.go +++ b/internal/graphapi/assessment_test.go @@ -478,7 +478,7 @@ func TestMutationDeleteAssessment(t *testing.T) { func TestMutationCreateAssessmentWithDuplicateName(t *testing.T) { assessment1 := (&AssessmentBuilder{client: suite.client, Name: "Duplicate Test"}).MustNew(sharedTestUser1.UserCtx, t) - t.Run("duplicate name in same org should fail", func(t *testing.T) { + t.Run("duplicate name in same org should not be allowed", func(t *testing.T) { template := (&TemplateBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) request := testclient.CreateAssessmentInput{ diff --git a/internal/graphapi/control_test.go b/internal/graphapi/control_test.go index bc22753078..1611d9b087 100644 --- a/internal/graphapi/control_test.go +++ b/internal/graphapi/control_test.go @@ -21,7 +21,7 @@ import ( "github.com/theopenlane/core/internal/testutils" ) -func TestQueryControl(t *testing.T) { +func TestQuerySingleControl(t *testing.T) { program := (&ProgramBuilder{client: suite.client}).MustNew(sharedTestUser1.UserCtx, t) // add adminUser to the program so that they can create a control @@ -152,7 +152,7 @@ func TestQueryControl(t *testing.T) { (&Cleanup[*generated.ProgramDeleteOne]{client: suite.client.db.Program, ID: program.ID}).MustDelete(sharedTestUser1.UserCtx, t) } -func TestQueryControls(t *testing.T) { +func TestQueryAllControls(t *testing.T) { // create multiple objects to be queried using sharedTestUser1 controlsToCreate := int64(11) controlIDs := []string{} @@ -281,7 +281,7 @@ func TestQueryControls(t *testing.T) { cleanupOrganizationDataWithContext(userAnotherOrg.UserCtx, t) } -func TestQueryControlsMultipleOrgCheck(t *testing.T) { +func TestMultipleOrgCheckForQueryControls(t *testing.T) { t.Parallel() // test to make sure we don't get cross org results back even if the user technically has access to them localTestUser := suite.seedOrgOwner(t) diff --git a/internal/graphapi/models_test.go b/internal/graphapi/models_test.go index 32bc88263c..8317e02e8b 100644 --- a/internal/graphapi/models_test.go +++ b/internal/graphapi/models_test.go @@ -960,7 +960,7 @@ func (e *EntityBuilder) MustNew(ctx context.Context, t *testing.T) *ent.Entity { ctx = setContext(ctx, e.client.db) if e.Name == "" { - e.Name = gofakeit.AppName() + e.Name = gofakeit.LoremIpsumWord() + ulids.New().String() } if e.DisplayName == "" { diff --git a/internal/graphapi/scheduledjob_test.go b/internal/graphapi/scheduledjob_test.go index 2aa02a0745..4df0cb1d39 100644 --- a/internal/graphapi/scheduledjob_test.go +++ b/internal/graphapi/scheduledjob_test.go @@ -166,7 +166,7 @@ func TestScheduledJobs(t *testing.T) { }, }, { - name: "create scheduled job with runner by view only user should fail", + name: "create scheduled job with runner by view only user should not be allowed", ctx: sharedViewOnlyUser.UserCtx, client: suite.client.api, jobBuilder: ScheduledJobBuilder{ diff --git a/internal/graphapi/task_test.go b/internal/graphapi/task_test.go index 0d7f0fab6d..d79af4c922 100644 --- a/internal/graphapi/task_test.go +++ b/internal/graphapi/task_test.go @@ -761,7 +761,7 @@ func TestMutationCreateTask(t *testing.T) { ctx: testUser.UserCtx, }, { - name: "create with assignee not in org should fail", + name: "create with assignee not in org should not allowed", request: testclient.CreateTaskInput{ Title: "test-task", AssigneeID: &sharedTestUser2.ID, @@ -1018,7 +1018,7 @@ func TestMutationUpdateTask(t *testing.T) { ctx: context.Background(), }, { - name: "update assignee to user not in org should fail", + name: "update assignee to user not in org should now allowed", taskID: task.ID, request: &testclient.UpdateTaskInput{ AssigneeID: lo.ToPtr(sharedTestUser2.ID), diff --git a/internal/graphapi/tools_test.go b/internal/graphapi/tools_test.go index 3d18d47ae4..f86fed7f32 100644 --- a/internal/graphapi/tools_test.go +++ b/internal/graphapi/tools_test.go @@ -170,8 +170,6 @@ func (suite *GraphTestSuite) SetupSuite(t *testing.T) { fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), - fgatest.WithSkipParentContextKinds("organization", "user", "system"), - fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) ctx := context.Background() diff --git a/internal/httpserve/handlers/questionnaire_test.go b/internal/httpserve/handlers/questionnaire_test.go index 28a086d063..d36264c2ed 100644 --- a/internal/httpserve/handlers/questionnaire_test.go +++ b/internal/httpserve/handlers/questionnaire_test.go @@ -1128,7 +1128,7 @@ func (suite *HandlerTestSuite) TestSubmitQuestionnaireDraft() { t.Run("cannot draft after completed", func(t *testing.T) { draftReq := models.SubmitQuestionnaireRequest{ AssessmentID: assessment.ID, - Data: map[string]any{"q1": "should fail"}, + Data: map[string]any{"q1": "should not be allowed"}, IsDraft: true, } diff --git a/internal/httpserve/handlers/tools_test.go b/internal/httpserve/handlers/tools_test.go index 13c6b083d0..19cbd58515 100644 --- a/internal/httpserve/handlers/tools_test.go +++ b/internal/httpserve/handlers/tools_test.go @@ -154,8 +154,6 @@ func (suite *HandlerTestSuite) SetupSuite() { fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), - fgatest.WithSkipParentContextKinds("organization", "user", "system"), - fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) // shared token manager to avoid RSA key generation diff --git a/internal/workflows/engine/tools_test.go b/internal/workflows/engine/tools_test.go index 8b64eb7e5f..79fd1e66b4 100644 --- a/internal/workflows/engine/tools_test.go +++ b/internal/workflows/engine/tools_test.go @@ -16,7 +16,6 @@ import ( "github.com/stretchr/testify/suite" "github.com/stripe/stripe-go/v84" "github.com/theopenlane/iam/auth" - "github.com/theopenlane/iam/fgax" fgatest "github.com/theopenlane/iam/fgax/testutils" "github.com/theopenlane/iam/sessions" "github.com/theopenlane/riverboat/pkg/riverqueue" @@ -112,8 +111,6 @@ func (s *WorkflowEngineTestSuite) SetupSuite() { fgatest.WithModuleFile(fgaModuleFile), fgatest.WithEnvVars(coreutils.GetDefaultFGAEnvs()), fgatest.WithVersion(version), - fgatest.WithSkipParentContextKinds("organization", "user", "system"), - fgatest.WithParentSkipConditions(fgax.ParentContextConditionConfig{Kind: "group", Name: "public_group", Context: map[string]any{"public": false}}), ) fgaClient, err := s.ofgaTF.NewFgaClient(s.ctx) From 36514061422bf082093124db0204758fca429ddf Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 13:28:20 -0600 Subject: [PATCH 08/12] config:Gen Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- config/.env.example | 2 +- config/config.example.yaml | 2 +- config/configmap-config-file.yaml | 4 ++-- config/helm-values.yaml | 2 +- jsonschema/api-docs.md | 2 +- jsonschema/core.config.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/.env.example b/config/.env.example index 185f1222a1..78f79ebb3f 100644 --- a/config/.env.example +++ b/config/.env.example @@ -141,7 +141,7 @@ CORE_AUTHZ_CREDENTIALS_AUDIENCE="" CORE_AUTHZ_CREDENTIALS_ISSUER="" CORE_AUTHZ_CREDENTIALS_SCOPES="" CORE_AUTHZ_MAXBATCHWRITESIZE="100" -CORE_AUTHZ_DISABLEPARENTCONTEXT="false" +CORE_AUTHZ_ENABLEPARENTCONTEXT="" CORE_AUTHZ_PARENTCONTEXTSKIPKINDS="" CORE_DB_DEBUG="false" CORE_DB_DATABASENAME="openlane" diff --git a/config/config.example.yaml b/config/config.example.yaml index 8761572647..5d020f83ba 100644 --- a/config/config.example.yaml +++ b/config/config.example.yaml @@ -71,8 +71,8 @@ authz: clientsecret: "" issuer: "" scopes: "" - disableparentcontext: false enabled: true + enableparentcontext: false hosturl: https://authz.theopenlane.io maxbatchwritesize: 100 modelfile: fga/model/model.fga diff --git a/config/configmap-config-file.yaml b/config/configmap-config-file.yaml index 5e39fd0d2a..437ede32ff 100644 --- a/config/configmap-config-file.yaml +++ b/config/configmap-config-file.yaml @@ -597,8 +597,8 @@ data: {{- if .Values.openlane.coreConfiguration.authz.maxbatchwritesize }} maxbatchwritesize: {{ .Values.openlane.coreConfiguration.authz.maxbatchwritesize }} {{- end }} - {{- if .Values.openlane.coreConfiguration.authz.disableparentcontext }} - disableparentcontext: {{ .Values.openlane.coreConfiguration.authz.disableparentcontext }} + {{- if .Values.openlane.coreConfiguration.authz.enableparentcontext }} + enableparentcontext: {{ .Values.openlane.coreConfiguration.authz.enableparentcontext }} {{- end }} {{- $sliceValue := (.Values.openlane.coreConfiguration.authz.parentcontextskipkinds | default (list)) }} {{- if gt (len $sliceValue) 0 }} diff --git a/config/helm-values.yaml b/config/helm-values.yaml index 46964dc18c..792f2ac343 100644 --- a/config/helm-values.yaml +++ b/config/helm-values.yaml @@ -307,7 +307,7 @@ coreConfiguration: # -- maximum number of writes per batch in a transaction maxbatchwritesize: 100 # @schema type:integer; default:100 # -- disables the automatic addition of parent context tuples - disableparentcontext: false # @schema type:boolean; default:false + enableparentcontext: false # @schema type:boolean # -- entity kind names that should not have parent context tuples added parentcontextskipkinds: [] # -- relationship conditions to apply on parent context tuples per entity kind diff --git a/jsonschema/api-docs.md b/jsonschema/api-docs.md index 1b858c1b6e..c7c70e2f5b 100644 --- a/jsonschema/api-docs.md +++ b/jsonschema/api-docs.md @@ -889,7 +889,7 @@ OauthProviderConfig represents the configuration for OAuth providers such as Git |**modulefile**|`string`|path to the fga module file
|no| |[**credentials**](#authzcredentials)|`object`||no| |**maxbatchwritesize**|`integer`|maximum number of writes per batch in a transaction
|no| -|**disableparentcontext**|`boolean`|disables the automatic addition of parent context tuples
|no| +|**enableparentcontext**|`boolean`|disables the automatic addition of parent context tuples
|no| |[**parentcontextskipkinds**](#authzparentcontextskipkinds)|`string[]`||no| |[**parentcontextconditions**](#authzparentcontextconditions)|`array`||no| diff --git a/jsonschema/core.config.json b/jsonschema/core.config.json index 6bb56bf2c8..73c85f0116 100644 --- a/jsonschema/core.config.json +++ b/jsonschema/core.config.json @@ -789,7 +789,7 @@ "type": "integer", "description": "maximum number of writes per batch in a transaction" }, - "disableparentcontext": { + "enableparentcontext": { "type": "boolean", "description": "disables the automatic addition of parent context tuples" }, From 5dcbde602274126f10faea65fd054bf7734244b9 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 19 May 2026 13:58:21 -0600 Subject: [PATCH 09/12] timeout Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- Taskfile.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 8d15c841ec..9209bb050b 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -355,7 +355,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci'] cmds: - - go run gotest.tools/gotestsum@latest --junitfile junit.xml --junitfile-hide-empty-pkg --packages "./..." --format-hide-empty-pkg --format-icons hivis --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage.out -tags test + - go run gotest.tools/gotestsum@latest --junitfile junit.xml --junitfile-hide-empty-pkg --packages "./..." --format-hide-empty-pkg --format-icons hivis --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -timeout 20m -coverprofile=coverage.out -tags test go:testsum:ci:graph: desc: runs tests only graph tests using gotestsum for CI @@ -364,7 +364,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:graph'] cmds: - - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-graph.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/graphapi/" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-graph.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-graph.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/graphapi/" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -timeout 20m -coverprofile=coverage-graph.out -tags test go:testsum:ci:handlers: desc: runs tests only graph tests using gotestsum for CI @@ -373,7 +373,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:handlers'] cmds: - - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-handlers.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/httpserve/handlers" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-handlers.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-handlers.xml --junitfile-hide-empty-pkg --packages "github.com/theopenlane/core/internal/httpserve/handlers" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -timeout 20m -coverprofile=coverage-handlers.out -tags test go:testsum:ci:no-api: desc: runs tests using gotestsum for CI @@ -382,7 +382,7 @@ tasks: GOFLAGS: "{{.GO_INLINE_FLAG}}" aliases: ['testsum:ci:no-api', 'testsum:ci:no-graph', 'go:testsum:ci:no-graph'] cmds: - - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-no-api.xml --junitfile-hide-empty-pkg --packages "$(go list ./... | grep -v /internal/graphapi | grep -v /internal/httpserve/handlers)" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -coverprofile=coverage-no-api.out -tags test + - go run gotest.tools/gotestsum@latest --format standard-verbose --junitfile junit-no-api.xml --junitfile-hide-empty-pkg --packages "$(go list ./... | grep -v /internal/graphapi | grep -v /internal/httpserve/handlers)" --format-hide-empty-pkg --rerun-fails=3 --rerun-fails-run-root-test --hide-summary output -- -p 20 -timeout 20m -coverprofile=coverage-no-api.out -tags test go:testsum:ci:cover: desc: pushes test results to buildkite using gotestsum From 7d0f14184a4a4b087ba8aa1b96e7dfd0707efd6a Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Wed, 20 May 2026 12:44:07 -0600 Subject: [PATCH 10/12] cleanup, fix auditor role Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- fga/model/base/groups.fga | 2 +- fga/model/base/organization.fga | 3 + fga/model/roles/roles.fga | 2 +- internal/ent/hooks/memberhelpers.go | 6 +- internal/ent/hooks/orgownedtuples.go | 10 +- internal/ent/hooks/program.go | 2 + internal/ent/interceptors/filter.go | 25 ++- internal/ent/interceptors/filter_test.go | 124 +++++++++++++ internal/ent/interceptors/user.go | 18 ++ internal/ent/privacy/policy/checks.go | 34 ++-- internal/ent/privacy/rule/orgowner.go | 174 +++++++++++------- internal/ent/privacy/rule/scopes.go | 7 +- internal/ent/schema/file.go | 1 + internal/ent/schema/group.go | 2 +- internal/ent/schema/internalpolicy.go | 2 +- internal/ent/schema/mixin_objectowned.go | 15 +- internal/ent/schema/organization.go | 1 + internal/ent/schema/procedure.go | 2 +- internal/ent/schema/program.go | 2 +- .../entitlements/reconciler/reconciler.go | 2 - internal/graphapi/evidence_test.go | 80 ++++++++ internal/graphapi/groupmembers_test.go | 7 + internal/graphapi/orgmembers_test.go | 20 +- internal/graphapi/seed_test.go | 16 +- internal/graphapi/workflow_validators_test.go | 2 + 25 files changed, 438 insertions(+), 121 deletions(-) create mode 100644 internal/ent/interceptors/filter_test.go diff --git a/fga/model/base/groups.fga b/fga/model/base/groups.fga index f756582ae2..a3367a74a3 100644 --- a/fga/model/base/groups.fga +++ b/fga/model/base/groups.fga @@ -21,6 +21,6 @@ type group # parent permissions derived based on `crud` permissions or parents define parent_editor: can_edit_group from parent_context - define parent_viewer: can_view from parent_context or can_view_group from parent_context + define parent_viewer: can_view from parent_context or can_view_group from parent_context or can_view_org from parent_context define parent_admin: full_access from parent_context define parent_context: [organization with public_group] \ No newline at end of file diff --git a/fga/model/base/organization.fga b/fga/model/base/organization.fga index 091ca9f3ce..c7a5ed1c18 100644 --- a/fga/model/base/organization.fga +++ b/fga/model/base/organization.fga @@ -19,6 +19,9 @@ type organization # also allows users to be given time based access to the organization (e.g. support access) define can_view: [service, user with time_based_grant] or (member and access) or (admin and access) or can_edit or can_view from parent + # specific check to allow the view of the org but not all org owned data + define can_view_org: can_view or auditor + # additional fine-grained permissions # allow owner and assigned users to view audit logs define audit_log_viewer: ([user, service] or full_access or audit_log_viewer from parent) and can_view diff --git a/fga/model/roles/roles.fga b/fga/model/roles/roles.fga index 5cb4ebe423..2297535ba0 100644 --- a/fga/model/roles/roles.fga +++ b/fga/model/roles/roles.fga @@ -15,7 +15,7 @@ extend type organization # @create: review, comment, discussion, task, evidence # @view: control, subcontrol, program, evidence, policy, procedure, review - define auditor: [user] + define auditor: [user] or auditor from parent # @inherit: can_manage_compliance, can_manage_policies, can_manage_registry, can_manage_risk # @crud: control, subcontrol, program, evidence, narrative, standard, control_objective, control_implementation, mapped_control diff --git a/internal/ent/hooks/memberhelpers.go b/internal/ent/hooks/memberhelpers.go index 6a3400479a..b707ef3326 100644 --- a/internal/ent/hooks/memberhelpers.go +++ b/internal/ent/hooks/memberhelpers.go @@ -50,7 +50,7 @@ func HookMembershipSelf(table string) ent.Hook { } // if the user is an org owner, skip the check - if caller.OrganizationRole == auth.OwnerRole || caller.OrganizationRole == auth.SuperAdminRole { + if caller.OrganizationRole == auth.OwnerRole { // ensure this is not an org membership mutation, owners cannot update their own membership // in the organization, it must be done via a transfer if m.Type() != generated.TypeOrgMembership { @@ -58,13 +58,13 @@ func HookMembershipSelf(table string) ent.Hook { } } - // fallback to fgax check for owner relation access if org role is not available + // fallback to fgax check for full_access relation access if org role is not available // in the context if caller.OrganizationRole == "" { if err := rule.CheckCurrentOrgAccess(ctx, nil, fgax.FullAccessRelation); errors.Is(err, privacy.Allow) { // ensure this is not an org membership mutation, owners cannot update their own membership // in the organization, it must be done via a transfer - if m.Type() != generated.TypeOrgMembership { + if m.Type() != generated.TypeOrgMembership && caller.OrganizationRole == auth.OwnerRole { return next.Mutate(ctx, m) } } diff --git a/internal/ent/hooks/orgownedtuples.go b/internal/ent/hooks/orgownedtuples.go index dd3fb6187f..0e10e37b0a 100644 --- a/internal/ent/hooks/orgownedtuples.go +++ b/internal/ent/hooks/orgownedtuples.go @@ -4,7 +4,6 @@ import ( "context" "entgo.io/ent" - "github.com/theopenlane/iam/fgax" "github.com/theopenlane/core/internal/ent/privacy/utils" "github.com/theopenlane/core/pkg/logx" @@ -33,14 +32,11 @@ func hookOrgOwnedTuples() ent.Hook { return nil, err } - var addTuples []fgax.TupleKey - - additionalAddTuples, err := createOrgOwnerParentTuple(ctx, m, objectID) + addTuples, err := createOrgOwnerParentTuple(ctx, m, objectID) if err != nil { return nil, err } - addTuples = append(addTuples, additionalAddTuples...) // write the tuples to the authz service if len(addTuples) != 0 { if _, err := utils.AuthzClientFromContext(ctx).WriteTupleKeys(ctx, addTuples, nil); err != nil { @@ -48,9 +44,9 @@ func hookOrgOwnedTuples() ent.Hook { return nil, ErrInternalServerError } - } - logx.FromContext(ctx).Debug().Interface("tuples", addTuples).Msg("added organization permissions") + logx.FromContext(ctx).Debug().Interface("tuples", addTuples).Msg("added organization permissions") + } return retVal, err }, diff --git a/internal/ent/hooks/program.go b/internal/ent/hooks/program.go index 219086faa2..f3553f589c 100644 --- a/internal/ent/hooks/program.go +++ b/internal/ent/hooks/program.go @@ -42,6 +42,7 @@ func HookProgramAuthz() ent.Hook { } } +// programCreateHook adds the user as the program member admin if it was not created by an API Token func programCreateHook(ctx context.Context, m *generated.ProgramMutation) error { objID, exists := m.ID() if exists { @@ -56,6 +57,7 @@ func programCreateHook(ctx context.Context, m *generated.ProgramMutation) error return nil } +// createProgramMemberAdmin adds the current authenticated user as a program admin func createProgramMemberAdmin(ctx context.Context, pID string, m *generated.ProgramMutation) error { // get userID from context userID, err := auth.GetSubjectIDFromContext(ctx) diff --git a/internal/ent/interceptors/filter.go b/internal/ent/interceptors/filter.go index 1f91585f6c..d5f37c6556 100644 --- a/internal/ent/interceptors/filter.go +++ b/internal/ent/interceptors/filter.go @@ -22,6 +22,11 @@ import ( "github.com/theopenlane/core/pkg/mapx" ) +const ( + // this allows auditors access to view the top level organization, without having full read access to everything only org owned + canViewOrg fgax.Relation = "can_view_org" +) + // FilterListQuery filters any list query to only include the objects that the user has access to // This is automatically added to all schemas using the ObjectOwnedMixin, so should not be added // directly if that mixin is used @@ -54,16 +59,21 @@ func AddIDPredicate(ctx context.Context, q Query) error { // Never skip the filter for organization queries, as we need to ensure the user has access to the organization itself isOrganizationQuery := strings.EqualFold(objectType, "organization") + var relation fgax.Relation if !isOrganizationQuery { + relation = fgax.CanView // skip filter if the subject has full organization view access for the object type if err := rule.CheckSubjectScope(ctx, objectType, fgax.CanView, nil); err != nil { if errors.Is(err, privacy.Allow) { return nil } } + } else { + // organization queries should allow auditor access + relation = canViewOrg } - objectIDs, err := GetAuthorizedObjectIDs(ctx, objectType, fgax.CanView) + objectIDs, err := GetAuthorizedObjectIDs(ctx, objectType, relation) if err != nil { return err } @@ -151,17 +161,17 @@ func logObjectIDs(ctx context.Context, objectType string, objectIDs []string, ms // directly if that mixin is used // This function is intended to filter results after the query is run using the BatchCheck in FGA // which is more performant than the ListObjectsRequest, especially for large lists -func FilterQueryResults[V any](skipperFunc ...skipperFunc) ent.InterceptFunc { +func FilterQueryResults[V any](forceFilter skipperFunc, skipperFunc ...skipperFunc) ent.InterceptFunc { return func(next ent.Querier) ent.Querier { return ent.QuerierFunc(func(ctx context.Context, query ent.Query) (ent.Value, error) { - return filterQueryResults[V](ctx, query, next, skipperFunc...) + return filterQueryResults[V](ctx, query, next, forceFilter, skipperFunc...) }) } } // filterQueryResults filters the results of a query to only include the objects that the user has access to // using the BatchCheck in FGA and returns the filtered results as the ent.Value based on the provided type -func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Querier, skipperFunc ...skipperFunc) (ent.Value, error) { +func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Querier, forceFilter skipperFunc, skipperFunc ...skipperFunc) (ent.Value, error) { // by pass checks on invite or pre-allowed request // convert the query to an intercept query q, err := intercept.NewQuery(query) @@ -169,7 +179,7 @@ func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Qu return nil, err } - if skipFilter(ctx, q, skipperFunc...) { + if skipFilter(ctx, q, forceFilter, skipperFunc...) { return next.Query(ctx, query) } @@ -218,7 +228,7 @@ func filterQueryResults[V any](ctx context.Context, query ent.Query, next ent.Qu } } -func skipFilter(ctx context.Context, q intercept.Query, customSkipperFunc ...skipperFunc) bool { +func skipFilter(ctx context.Context, q intercept.Query, forceFilter skipperFunc, customSkipperFunc ...skipperFunc) bool { // by pass checks on invite or pre-allowed request if _, allow := privacy.DecisionFromContext(ctx); allow || rule.IsInternalRequest(ctx) { return true @@ -232,7 +242,8 @@ func skipFilter(ctx context.Context, q intercept.Query, customSkipperFunc ...ski // skip filter if the subject has full organization view access for the object type objectType := rule.GetFGAObjectType(q) - if !strings.EqualFold(objectType, "file") { + // only check subject scope when the caller has not indicated that filtering must always run + if forceFilter == nil || !forceFilter(ctx) { if err := rule.CheckSubjectScope(ctx, objectType, fgax.CanView, nil); err != nil { if errors.Is(err, privacy.Allow) { return true diff --git a/internal/ent/interceptors/filter_test.go b/internal/ent/interceptors/filter_test.go new file mode 100644 index 0000000000..2d060c1271 --- /dev/null +++ b/internal/ent/interceptors/filter_test.go @@ -0,0 +1,124 @@ +package interceptors + +import ( + "context" + "testing" + + "entgo.io/ent/dialect/sql" + "gotest.tools/v3/assert" + + "github.com/theopenlane/entx/history" + + "github.com/theopenlane/core/internal/ent/generated/intercept" + "github.com/theopenlane/core/internal/ent/generated/privacy" + "github.com/theopenlane/core/internal/ent/privacy/rule" +) + +type mockQuery struct { + typ string +} + +func (m *mockQuery) Type() string { return m.typ } +func (m *mockQuery) Limit(int) {} +func (m *mockQuery) Offset(int) {} +func (m *mockQuery) Unique(bool) {} +func (m *mockQuery) Order(...func(*sql.Selector)) {} +func (m *mockQuery) WhereP(...func(*sql.Selector)) {} + +func orgQuery() intercept.Query { return &mockQuery{typ: "Organization"} } + +func alwaysSkip(_ context.Context) bool { return true } +func neverSkip(_ context.Context) bool { return false } +func alwaysForce(_ context.Context) bool { return true } + +func TestSkipFilter(t *testing.T) { + tests := []struct { + name string + ctx context.Context + q intercept.Query + forceFilter skipperFunc + customSkip skipperFunc + want bool + }{ + { + name: "privacy allow context skips regardless of forceFilter", + ctx: privacy.DecisionContext(context.Background(), privacy.Allow), + forceFilter: alwaysForce, + want: true, + }, + { + name: "internal request context skips regardless of forceFilter", + ctx: rule.WithInternalContext(context.Background()), + forceFilter: alwaysForce, + want: true, + }, + { + name: "history request context skips regardless of forceFilter", + ctx: history.WithContext(context.Background()), + forceFilter: alwaysForce, + want: true, + }, + { + name: "organization scope check returns allow when forceFilter is nil", + ctx: context.Background(), + q: orgQuery(), + want: true, + }, + { + name: "forceFilter prevents scope check from skipping for Organization", + ctx: context.Background(), + q: orgQuery(), + forceFilter: alwaysForce, + want: false, + }, + { + name: "forceFilter does not block customSkipperFunc", + ctx: context.Background(), + q: orgQuery(), + forceFilter: alwaysForce, + customSkip: alwaysSkip, + want: true, + }, + + { + name: "no skip reasons does not skip", + ctx: context.Background(), + q: &mockQuery{}, + want: false, + }, + { + name: "forceFilter alone does not skip", + ctx: context.Background(), + q: &mockQuery{}, + forceFilter: alwaysForce, + want: false, + }, + { + name: "customSkipperFunc returning true skips", + ctx: context.Background(), + q: &mockQuery{}, + customSkip: alwaysSkip, + want: true, + }, + { + name: "customSkipperFunc returning false does not skip", + ctx: context.Background(), + q: &mockQuery{}, + customSkip: neverSkip, + want: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var got bool + if tt.customSkip != nil { + got = skipFilter(tt.ctx, tt.q, tt.forceFilter, tt.customSkip) + } else { + got = skipFilter(tt.ctx, tt.q, tt.forceFilter) + } + + assert.Equal(t, tt.want, got) + }) + } +} diff --git a/internal/ent/interceptors/user.go b/internal/ent/interceptors/user.go index 3f08ce69f2..028cde90ff 100644 --- a/internal/ent/interceptors/user.go +++ b/internal/ent/interceptors/user.go @@ -141,6 +141,24 @@ func filterUsingFGA(ctx context.Context, q *generated.UserQuery) error { for _, user := range listUserResp.Users { userIDs = append(userIDs, user.Object.Id) } + + // auditors do not have can_view on the org, so they must be listed separately + // auditor inherits from parent via "auditor from parent" in the FGA model + auditorReq := fgax.ListRequest{ + ObjectID: orgID, + ObjectType: generated.TypeOrganization, + Relation: fgax.AuditorRelation, + ConditionContext: utils.NewOrganizationContextKey(""), + } + + listAuditorResp, err := q.Authz.ListUserRequest(ctx, auditorReq) + if err != nil { + return err + } + + for _, u := range listAuditorResp.Users { + userIDs = append(userIDs, u.Object.Id) + } } q.Where(user.IDIn(userIDs...)) diff --git a/internal/ent/privacy/policy/checks.go b/internal/ent/privacy/policy/checks.go index 31ae431b96..7347ab556b 100644 --- a/internal/ent/privacy/policy/checks.go +++ b/internal/ent/privacy/policy/checks.go @@ -94,7 +94,9 @@ func CheckOrgReadAccess() privacy.QueryRule { return privacy.Denyf("anonymous users cannot access organization data") } - if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, fgax.CanView, nil); err != nil { + relation := fgax.CanView + + if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, relation, nil); err != nil { if !errors.Is(err, privacy.Skip) { return err } @@ -107,13 +109,13 @@ func CheckOrgReadAccess() privacy.QueryRule { // if we get an error (privacy.Deny or privacy.Allow are both "errors") // return as the result // if its nil, we didn't check anything and should continue to the next check - if err := rule.CheckOrgAccessBasedOnRequest(ctx, fgax.CanView, query); err != nil { + if err := rule.CheckOrgAccessBasedOnRequest(ctx, relation, query); err != nil { return err } } // otherwise check against the current context - return rule.CheckCurrentOrgAccess(ctx, nil, fgax.CanView) + return rule.CheckCurrentOrgAccess(ctx, nil, relation) }) } @@ -121,14 +123,16 @@ func CheckOrgReadAccess() privacy.QueryRule { // some query operations func CheckOrgEditAccess() privacy.QueryRule { return privacy.QueryRuleFunc(func(ctx context.Context, _ ent.Query) error { - if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, fgax.CanEdit, nil); err != nil { + relation := fgax.CanEdit + + if err := rule.CheckSubjectScope(ctx, generated.TypeOrganization, relation, nil); err != nil { if !errors.Is(err, privacy.Skip) { return err } } // otherwise check against the current context - return rule.CheckCurrentOrgAccess(ctx, nil, fgax.CanEdit) + return rule.CheckCurrentOrgAccess(ctx, nil, relation) }) } @@ -140,17 +144,28 @@ func CheckOrgWriteAccess() privacy.MutationRule { }) } +// CheckOrgAuditorAccess checks if the requestor has auditor access the organization +func CheckOrgAuditorAccess() privacy.QueryRule { + return privacy.QueryRuleFunc(func(ctx context.Context, q ent.Query) error { + logx.FromContext(ctx).Debug().Msg("checking org auditor access") + return rule.CheckCurrentOrgAccess(ctx, nil, fgax.AuditorRelation) + }) +} + // CheckOrgAccess checks if the requestor has access to read the organization func CheckOrgAccess() privacy.MutationRule { return privacy.MutationRuleFunc(func(ctx context.Context, m ent.Mutation) error { + relation := fgax.CanView + logx.FromContext(ctx).Debug().Msg("checking org read access") - if err := rule.CheckSubjectScope(ctx, m.Type(), fgax.CanView, nil); err != nil { + + if err := rule.CheckSubjectScope(ctx, m.Type(), relation, nil); err != nil { if !errors.Is(err, privacy.Skip) { return err } } - return rule.CheckCurrentOrgAccess(ctx, m, fgax.CanView) + return rule.CheckCurrentOrgAccess(ctx, m, relation) }) } @@ -268,11 +283,6 @@ func checkEdgesEditAccess(ctx context.Context, m ent.Mutation, edges []string, a allowScopeCheck = false } - // override the id to check if the edge is an organization, as we want to check access to the organization rather than the object - if edgeMap.ObjectType == organization.Label { - idStr = orgID - } - // check api token scope first, as api tokens will have full access to object types they have scope for if allowScopeCheck { if err := rule.CheckSubjectScope(ctx, edgeMap.ObjectType, relationCheck, nil); err != nil { diff --git a/internal/ent/privacy/rule/orgowner.go b/internal/ent/privacy/rule/orgowner.go index 49c0690cc5..e8ee078afc 100644 --- a/internal/ent/privacy/rule/orgowner.go +++ b/internal/ent/privacy/rule/orgowner.go @@ -21,6 +21,8 @@ import ( "github.com/theopenlane/iam/fgax" ) +// skipperType are types that are generally user owned where the owner_id is a user +// not an organization var skipperType = map[string]struct{}{ "Onboarding": {}, "User": {}, @@ -41,85 +43,37 @@ func DenyIfNotInOrganization() privacy.MutationRule { return auth.ErrNoAuthUser } - orgID := actor.OrganizationID - if _, ok := skipperType[m.Type()]; ok { return privacy.Skip } + orgID := actor.OrganizationID + // History happens automatically, there are no external mutations to create history records if strings.Contains(m.Type(), "History") { return privacy.Allow } - orgMut, ok := m.(*generated.OrganizationMutation) - if ok { - if m.Op().Is(ent.OpCreate) { - // check if the parent org is set first - parentOrgID, ok := orgMut.ParentOrganizationID() - if ok && parentOrgID != "" { - if err := checkOrgAccess(ctx, fgax.CanView, parentOrgID); errors.Is(err, privacy.Allow) { - return nil - } - - return privacy.Denyf("user does not have access to the parent organization") - } - - // if there is no parent org, allow - return privacy.Skip - } - - objID, ok := orgMut.ID() - if !ok || orgID == "" { - return privacy.Skip - } - - if err := EnsureObjectInOrganization(ctx, m, m.Type(), objID, orgID); errors.Is(err, privacy.Deny) { - return err - } - - return privacy.Skip + // special cases + switch m := m.(type) { + case *generated.OrganizationMutation: + return checkOrganizationMutation(ctx, m, orgID) + case *generated.OrgMembershipMutation: + return checkOrgMembershipMutation(ctx, m, orgID) + case *generated.GroupMembershipMutation: + return checkGroupMembershipMutation(ctx, m, orgID) + case *generated.ProgramMembershipMutation: + return checkProgramMembershipMutation(ctx, m, orgID) } - membershipMutation, ok := m.(*generated.OrgMembershipMutation) - if ok { - membershipID, ok := membershipMutation.ID() - if !ok || membershipID == "" { - return privacy.Skip - } - - orgMembership, err := membershipMutation.Client().OrgMembership.Get(ctx, membershipID) - if err != nil { - return privacy.Skipf("unable to get org membership: %v", err) - } - - if err := EnsureObjectInOrganization(ctx, m, orgmembership.Label, orgMembership.ID, orgID); errors.Is(err, privacy.Deny) { - return err - } - + if m.Op().Is(ent.OpCreate) { return privacy.Skip } - groupMemberMutation, ok := m.(*generated.GroupMembershipMutation) - if ok { - groupMemberID, ok := groupMemberMutation.ID() - if !ok || groupMemberID == "" { - return privacy.Skip - } - - groupMembership, err := groupMemberMutation.Client().GroupMembership.Get(ctx, groupMemberID) - if err != nil { - return privacy.Skipf("unable to get group membership: %v", err) - } - - if err := EnsureObjectInOrganization(ctx, m, "group", groupMembership.GroupID, orgID); errors.Is(err, privacy.Deny) { - return err - } + _, okOrg := m.(utils.OrgOwnedMutation) + _, okTC := m.(utils.TrustCenterMutation) - return privacy.Skip - } - - if m.Op().Is(ent.OpCreate) { + if !okOrg && !okTC { return privacy.Skip } @@ -133,7 +87,6 @@ func DenyIfNotInOrganization() privacy.MutationRule { return privacy.Skip } - _, okOrg := m.(utils.OrgOwnedMutation) if okOrg { // ensure the object being mutated is in the organization specified in the owner_id field if err := EnsureObjectInOrganization(ctx, m, m.Type(), id, orgID); errors.Is(err, privacy.Deny) { @@ -152,6 +105,97 @@ func DenyIfNotInOrganization() privacy.MutationRule { }) } +// checkOrganizationMutation checks to see the user has access to the organization mutation +// based on mutation type and parent organization +func checkOrganizationMutation(ctx context.Context, m ent.Mutation, orgID string) error { + mut := m.(*generated.OrganizationMutation) + + if m.Op().Is(ent.OpCreate) { + parentOrgID, ok := mut.ParentOrganizationID() + if !ok || parentOrgID == "" { + // if there is no parent org, allow + return privacy.Skip + } + + if err := checkOrgAccess(ctx, fgax.CanView, parentOrgID); errors.Is(err, privacy.Allow) { + return nil + } + + return privacy.Denyf("user does not have access to the parent organization") + } + + objID, ok := mut.ID() + if !ok || orgID == "" { + return privacy.Skip + } + + if err := EnsureObjectInOrganization(ctx, mut, m.Type(), objID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip +} + +// checkOrgMembershipMutation ensures the membership object belongs to the organization +func checkOrgMembershipMutation(ctx context.Context, m ent.Mutation, orgID string) error { + mut := m.(*generated.OrgMembershipMutation) + membershipID, ok := mut.ID() + if !ok || membershipID == "" { + return privacy.Skip + } + + orgMembership, err := mut.Client().OrgMembership.Get(ctx, membershipID) + if err != nil { + return privacy.Skipf("unable to get org membership: %v", err) + } + + if err := EnsureObjectInOrganization(ctx, m, orgmembership.Label, orgMembership.ID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip +} + +// checkGroupMembershipMutation ensures the membership object belongs to the organization +func checkGroupMembershipMutation(ctx context.Context, m ent.Mutation, orgID string) error { + mut := m.(*generated.GroupMembershipMutation) + memberID, ok := mut.ID() + if !ok || memberID == "" { + return privacy.Skip + } + + member, err := mut.Client().GroupMembership.Get(ctx, memberID) + if err != nil { + return privacy.Skipf("unable to get group membership: %v", err) + } + + if err := EnsureObjectInOrganization(ctx, m, "group", member.GroupID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip +} + +// checkProgramMembershipMutation ensures the membership object belongs to the organization +func checkProgramMembershipMutation(ctx context.Context, m ent.Mutation, orgID string) error { + mut := m.(*generated.ProgramMembershipMutation) + memberID, ok := mut.ID() + if !ok || memberID == "" { + return privacy.Skip + } + + member, err := mut.Client().ProgramMembership.Get(ctx, memberID) + if err != nil { + return privacy.Skipf("unable to get group membership: %v", err) + } + + if err := EnsureObjectInOrganization(ctx, m, "program", member.ProgramID, orgID); errors.Is(err, privacy.Deny) { + return err + } + + return privacy.Skip +} + // EnsureObjectInOrganization checks if the object is in the organization func EnsureObjectInOrganization(ctx context.Context, m ent.Mutation, objectType string, objectID, orgID string) error { // also ensure the id is part of the organization diff --git a/internal/ent/privacy/rule/scopes.go b/internal/ent/privacy/rule/scopes.go index 2a04280b10..98043dbc61 100644 --- a/internal/ent/privacy/rule/scopes.go +++ b/internal/ent/privacy/rule/scopes.go @@ -134,11 +134,6 @@ func CheckSubjectScope(ctx context.Context, objectType string, relation string, return privacy.Skip } - authzClient := utils.AuthzClientFromContext(ctx) - if authzClient == nil { - return generated.ErrPermissionDenied - } - ac := fgax.AccessCheck{ SubjectID: caller.SubjectID, SubjectType: auth.GetAuthzSubjectType(ctx), @@ -147,7 +142,7 @@ func CheckSubjectScope(ctx context.Context, objectType string, relation string, ObjectID: orgID, } - hasAccess, err := authzClient.CheckAccess(ctx, ac) + hasAccess, err := utils.AuthzClientFromContext(ctx).CheckAccess(ctx, ac) if err != nil { logx.FromContext(ctx).Debug().Err(err).Interface("check", ac).Msg("failed scope check, unable to determine access") diff --git a/internal/ent/schema/file.go b/internal/ent/schema/file.go index 3c0728dc23..7d51916d7d 100644 --- a/internal/ent/schema/file.go +++ b/internal/ent/schema/file.go @@ -164,6 +164,7 @@ func (f File) Mixin() []ent.Mixin { TrustCenterDoc{}, Standard{}, TrustCenterEntity{}, TrustCenterSubprocessor{}, Entity{}, IdentityHolder{}, Contact{}, Review{}), withHookFuncs(), // use an empty hook, file processing is handled in middleware withAllowAnonymousTrustCenterAccess(true), + withForceFilter(), // files are not all org-owned; scope check cannot short-circuit filtering ), mixin.NewSystemOwnedMixin(mixin.SkipTupleCreation()), newCustomEnumMixin(f, withEnumFieldName("environment"), withGlobalEnum()), diff --git a/internal/ent/schema/group.go b/internal/ent/schema/group.go index 36d55446aa..ade5125a16 100644 --- a/internal/ent/schema/group.go +++ b/internal/ent/schema/group.go @@ -266,7 +266,7 @@ func (g Group) Annotations() []schema.Annotation { // Interceptors of the Group func (g Group) Interceptors() []ent.Interceptor { return []ent.Interceptor{ - interceptors.FilterQueryResults[generated.Group](), + interceptors.FilterQueryResults[generated.Group](nil), } } diff --git a/internal/ent/schema/internalpolicy.go b/internal/ent/schema/internalpolicy.go index b5aac51f86..603791de39 100644 --- a/internal/ent/schema/internalpolicy.go +++ b/internal/ent/schema/internalpolicy.go @@ -199,7 +199,7 @@ func (InternalPolicy) Hooks() []ent.Hook { func (InternalPolicy) Interceptors() []ent.Interceptor { return []ent.Interceptor{ // policies are org owned, but we need to ensure the groups are filtered as well - interceptors.FilterQueryResults[generated.InternalPolicy](), + interceptors.FilterQueryResults[generated.InternalPolicy](nil), } } diff --git a/internal/ent/schema/mixin_objectowned.go b/internal/ent/schema/mixin_objectowned.go index e685da0331..9c83ed082e 100644 --- a/internal/ent/schema/mixin_objectowned.go +++ b/internal/ent/schema/mixin_objectowned.go @@ -52,6 +52,9 @@ type ObjectOwnedMixin struct { SkipListFilterInterceptor interceptors.SkipMode // SkipListFilterInterceptorSkipperFunc is a custom function to determine if the list filter interceptor should be skipped SkipListFilterInterceptorSkipperFunc func(ctx context.Context) bool + // ForceFilterFn when set, prevents the scope check from short-circuiting the filter + // use this for schemas where org-wide scope does not imply access to all objects of this type + ForceFilterFn func(ctx context.Context) bool // SkipTokenType skips the traverser or hook if the token type is found in the context SkipTokenType []token.PrivacyToken // IncludeOrganizationOwner adds the organization owner_id field and hooks to the schema @@ -225,6 +228,14 @@ func withSkipFilterInterceptor(mode interceptors.SkipMode) objectOwnedOption { } } +// withForceFilter prevents the scope check from short-circuiting the filter for this schema +// use when org-wide scope does not imply access to all objects of this type (e.g. File) +func withForceFilter() objectOwnedOption { + return func(o *ObjectOwnedMixin) { + o.ForceFilterFn = func(_ context.Context) bool { return true } + } +} + // Indexes of the ObjectOwnedMixin func (o ObjectOwnedMixin) Indexes() []ent.Index { // add the organization owner index if the flag is set or the field name is included @@ -482,7 +493,9 @@ func getObjectInterceptor[V any](o *ObjectOwnedMixin) { } } + forceFilterFn := o.ForceFilterFn + o.InterceptorFuncs = append(o.InterceptorFuncs, func(_ ObjectOwnedMixin) ent.Interceptor { - return interceptors.FilterQueryResults[V](customSkipperFunc) + return interceptors.FilterQueryResults[V](forceFilterFn, customSkipperFunc) }) } diff --git a/internal/ent/schema/organization.go b/internal/ent/schema/organization.go index 8f501374f3..c9ddea31cd 100644 --- a/internal/ent/schema/organization.go +++ b/internal/ent/schema/organization.go @@ -659,6 +659,7 @@ func (Organization) Policy() ent.Policy { rule.AllowIfContextHasPrivacyTokenOfType[*token.OrgInviteToken](), // Allow invite tokens to query the org ID they are invited to rule.AllowIfContextHasPrivacyTokenOfType[*token.SignUpToken](), // Allow sign-up tokens to query the org ID they are subscribing to policy.CheckOrgReadAccess(), // access based on query and auth context + policy.CheckOrgAuditorAccess(), rule.AllowQueryIfSystemAdmin(), ), policy.WithMutationRules( diff --git a/internal/ent/schema/procedure.go b/internal/ent/schema/procedure.go index bcac57f33b..d3bc025654 100644 --- a/internal/ent/schema/procedure.go +++ b/internal/ent/schema/procedure.go @@ -195,7 +195,7 @@ func (Procedure) Hooks() []ent.Hook { func (p Procedure) Interceptors() []ent.Interceptor { return []ent.Interceptor{ // procedures are org owned, but we need to ensure the groups are filtered as well - interceptors.FilterQueryResults[generated.Procedure](), + interceptors.FilterQueryResults[generated.Procedure](nil), } } diff --git a/internal/ent/schema/program.go b/internal/ent/schema/program.go index e332797d9d..6ded3e76a1 100644 --- a/internal/ent/schema/program.go +++ b/internal/ent/schema/program.go @@ -285,7 +285,7 @@ func (Program) Hooks() []ent.Hook { // Interceptors of the Program func (p Program) Interceptors() []ent.Interceptor { return []ent.Interceptor{ - interceptors.FilterQueryResults[generated.Program](), + interceptors.FilterQueryResults[generated.Program](nil), } } diff --git a/internal/entitlements/reconciler/reconciler.go b/internal/entitlements/reconciler/reconciler.go index 84f0bdb112..ca663380d2 100644 --- a/internal/entitlements/reconciler/reconciler.go +++ b/internal/entitlements/reconciler/reconciler.go @@ -25,8 +25,6 @@ import ( "github.com/theopenlane/iam/auth" ) -var ErrOrganizationConstraintError = errors.New("duplicate key: organization with stripe customer key already exists") - // Reconciler reconciles organization subscriptions with Stripe type Reconciler struct { db *ent.Client diff --git a/internal/graphapi/evidence_test.go b/internal/graphapi/evidence_test.go index 2a29797c66..5b21a4a91e 100644 --- a/internal/graphapi/evidence_test.go +++ b/internal/graphapi/evidence_test.go @@ -995,3 +995,83 @@ func TestEvidenceMissingArtifactStatus(t *testing.T) { }) } } + +func TestEvidence_NextReviewDate(t *testing.T) { + now := time.Now().UTC().Truncate(time.Second) + initialCreationDate := models.DateTime(now.AddDate(0, 0, -14)) + updatedCreationDate := models.DateTime(now.AddDate(0, 0, -7)) + monthlyFreq := enums.FrequencyMonthly + quarterlyFreq := enums.FrequencyQuarterly + + createResp, err := suite.client.api.CreateEvidence(sharedAdminUser.UserCtx, testclient.CreateEvidenceInput{ + Name: "Evidence review date", + CreationDate: lo.ToPtr(initialCreationDate), + ReviewFrequency: lo.ToPtr(monthlyFreq), + }, nil) + assert.NilError(t, err) + assert.Assert(t, createResp != nil) + + id := createResp.CreateEvidence.Evidence.ID + + bulkUpdateResp, err := suite.client.api.CreateEvidence(sharedAdminUser.UserCtx, testclient.CreateEvidenceInput{ + Name: "Bulk evidence review date", + CreationDate: lo.ToPtr(initialCreationDate), + ReviewFrequency: lo.ToPtr(quarterlyFreq), + }, nil) + assert.NilError(t, err) + assert.Assert(t, bulkUpdateResp != nil) + + bulkUpdateID := bulkUpdateResp.CreateEvidence.Evidence.ID + + resp, err := suite.client.api.GetEvidenceByID(sharedAdminUser.UserCtx, id) + assert.NilError(t, err) + assert.Assert(t, resp != nil) + assert.Assert(t, resp.Evidence.RenewalDate != nil) + assert.Check(t, is.Equal(time.Time(initialCreationDate).AddDate(0, 1, 0), time.Time(*resp.Evidence.RenewalDate))) + assert.Assert(t, resp.Evidence.ReviewFrequency != nil) + assert.Check(t, is.Equal(monthlyFreq, *resp.Evidence.ReviewFrequency)) + + _, err = suite.client.api.UpdateEvidence(sharedAdminUser.UserCtx, id, testclient.UpdateEvidenceInput{ + CreationDate: lo.ToPtr(updatedCreationDate), + }, nil) + assert.NilError(t, err) + + resp, err = suite.client.api.GetEvidenceByID(sharedAdminUser.UserCtx, id) + assert.NilError(t, err) + assert.Assert(t, resp != nil) + assert.Assert(t, resp.Evidence.RenewalDate != nil) + assert.Check(t, is.Equal(time.Time(updatedCreationDate).AddDate(0, 1, 0), time.Time(*resp.Evidence.RenewalDate))) + + _, err = suite.client.api.UpdateEvidence(sharedAdminUser.UserCtx, id, testclient.UpdateEvidenceInput{ + ReviewFrequency: lo.ToPtr(quarterlyFreq), + }, nil) + assert.NilError(t, err) + + resp, err = suite.client.api.GetEvidenceByID(sharedAdminUser.UserCtx, id) + assert.NilError(t, err) + assert.Assert(t, resp != nil) + assert.Assert(t, resp.Evidence.RenewalDate != nil) + assert.Check(t, is.Equal(time.Time(updatedCreationDate).AddDate(0, 3, 0), time.Time(*resp.Evidence.RenewalDate))) + + updateBulkResp, err := suite.client.api.UpdateBulkEvidence(sharedAdminUser.UserCtx, []string{id, bulkUpdateID}, testclient.UpdateEvidenceInput{ + ReviewFrequency: lo.ToPtr(monthlyFreq), + }) + assert.NilError(t, err) + assert.Assert(t, updateBulkResp != nil) + assert.Check(t, is.Len(updateBulkResp.UpdateBulkEvidence.UpdatedIDs, 2)) + + expectedRenewalDates := map[string]time.Time{ + id: time.Time(updatedCreationDate).AddDate(0, 1, 0), + bulkUpdateID: time.Time(initialCreationDate).AddDate(0, 1, 0), + } + + for evidenceID, expectedRenewalDate := range expectedRenewalDates { + resp, err = suite.client.api.GetEvidenceByID(sharedAdminUser.UserCtx, evidenceID) + assert.NilError(t, err) + assert.Assert(t, resp != nil) + assert.Assert(t, resp.Evidence.RenewalDate != nil) + assert.Check(t, is.Equal(expectedRenewalDate, time.Time(*resp.Evidence.RenewalDate))) + } + + (&Cleanup[*generated.EvidenceDeleteOne]{client: suite.client.db.Evidence, IDs: []string{id, bulkUpdateID}}).MustDelete(sharedAdminUser.UserCtx, t) +} diff --git a/internal/graphapi/groupmembers_test.go b/internal/graphapi/groupmembers_test.go index 703ffbb6dd..745aee16cb 100644 --- a/internal/graphapi/groupmembers_test.go +++ b/internal/graphapi/groupmembers_test.go @@ -42,6 +42,13 @@ func TestQueryGroupMembers(t *testing.T) { ctx: context.Background(), expected: groupMember, }, + { + name: "happy path, get group member as auditor", + queryID: group.ID, + client: suite.client.api, + ctx: sharedAuditorUser.UserCtx, + expected: groupMember, + }, { name: "happy path, get group member by group id using personal access token", queryID: group.ID, diff --git a/internal/graphapi/orgmembers_test.go b/internal/graphapi/orgmembers_test.go index bfa679c5aa..064aa7c938 100644 --- a/internal/graphapi/orgmembers_test.go +++ b/internal/graphapi/orgmembers_test.go @@ -45,13 +45,27 @@ func TestQueryOrgMembers(t *testing.T) { queryID: localTestOrg.owner.OrganizationID, client: suite.client.api, ctx: localTestOrg.owner.UserCtx, - expectedLen: 5, + expectedLen: 6, + }, + { + name: "happy path, get org members by org id, member", + queryID: localTestOrg.owner.OrganizationID, + client: suite.client.api, + ctx: localTestOrg.member.UserCtx, + expectedLen: 6, + }, + { + name: "happy path, get org members by org id, auditor", + queryID: localTestOrg.owner.OrganizationID, + client: suite.client.api, + ctx: localTestOrg.auditor.UserCtx, + expectedLen: 6, }, { name: "happy path, get org with parent members based on context", client: suite.client.api, ctx: childReqCtx, - expectedLen: 6, // 2 from child org, 4 from parent org because we dedupe plus the program member + expectedLen: 7, // 2 from child org, 5 from parent org because we dedupe plus the program member }, { name: "where input, get members in program", @@ -89,7 +103,7 @@ func TestQueryOrgMembers(t *testing.T) { }, }, }, - expectedLen: 3, + expectedLen: 4, }, { name: "where input, get members in program, after deleting a member", diff --git a/internal/graphapi/seed_test.go b/internal/graphapi/seed_test.go index 78700a7954..13ab41f57a 100644 --- a/internal/graphapi/seed_test.go +++ b/internal/graphapi/seed_test.go @@ -298,24 +298,22 @@ func (suite *GraphTestSuite) seedFreshOrgUsers(t *testing.T) *testOrgUsers { localSuperAdmin := suite.userBuilder(context.Background(), t) localAdmin := suite.userBuilder(context.Background(), t) localMember := suite.userBuilder(context.Background(), t) - - // TODO: look into auditor setup, causing user not found on some queries - // localAuditor := suite.userBuilder(context.Background(), t) + localAuditor := suite.userBuilder(context.Background(), t) suite.addUserToOrganization(localOwner.UserCtx, t, &localSuperAdmin, enums.RoleSuperAdmin, localOwner.OrganizationID) suite.addUserToOrganization(localOwner.UserCtx, t, &localAdmin, enums.RoleAdmin, localOwner.OrganizationID) suite.addUserToOrganization(localOwner.UserCtx, t, &localMember, enums.RoleMember, localOwner.OrganizationID) - // suite.addUserToOrganization(localOwner.UserCtx, t, &localAuditor, enums.RoleAuditor, localOwner.OrganizationID) + suite.addUserToOrganization(localOwner.UserCtx, t, &localAuditor, enums.RoleAuditor, localOwner.OrganizationID) apiTokenClient := suite.setupAPITokenClient(localAdmin.UserCtx, t) adminPersonalAccessTokenClient := suite.setupPatClient(localAdmin, t) return &testOrgUsers{ - owner: &localOwner, - superAdmin: &localSuperAdmin, - admin: &localAdmin, - member: &localMember, - // auditor: &localAuditor, + owner: &localOwner, + superAdmin: &localSuperAdmin, + admin: &localAdmin, + member: &localMember, + auditor: &localAuditor, adminApiClient: apiTokenClient, adminPatClient: adminPersonalAccessTokenClient, } diff --git a/internal/graphapi/workflow_validators_test.go b/internal/graphapi/workflow_validators_test.go index 4c3c89f9dc..6759884bc7 100644 --- a/internal/graphapi/workflow_validators_test.go +++ b/internal/graphapi/workflow_validators_test.go @@ -449,6 +449,8 @@ func TestValidateIntegrationActionParams(t *testing.T) { } func TestValidateNotificationActionParams(t *testing.T) { + t.Parallel() + tests := []struct { name string params json.RawMessage From 29eee3e3358cf172d14e5922a9ba2c0a30181730 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Wed, 20 May 2026 12:45:51 -0600 Subject: [PATCH 11/12] db Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- .../20260520184453_permissions_v2.sql | 7 +++++++ db/migrations-goose-postgres/atlas.sum | 3 ++- db/migrations/20260520184445_permissions_v2.sql | 2 ++ db/migrations/atlas.sum | 3 ++- 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 db/migrations-goose-postgres/20260520184453_permissions_v2.sql create mode 100644 db/migrations/20260520184445_permissions_v2.sql diff --git a/db/migrations-goose-postgres/20260520184453_permissions_v2.sql b/db/migrations-goose-postgres/20260520184453_permissions_v2.sql new file mode 100644 index 0000000000..9960b8e5c5 --- /dev/null +++ b/db/migrations-goose-postgres/20260520184453_permissions_v2.sql @@ -0,0 +1,7 @@ +-- +goose Up +-- modify "groups" table +ALTER TABLE "groups" ADD COLUMN "organization_api_token_creators" character varying NULL, ADD COLUMN "organization_assessment_creators" character varying NULL, ADD COLUMN "organization_campaign_creators" character varying NULL, ADD COLUMN "organization_campaign_target_creators" character varying NULL, ADD COLUMN "organization_check_result_creators" character varying NULL, ADD COLUMN "organization_contact_creators" character varying NULL, ADD COLUMN "organization_custom_type_enum_creators" character varying NULL, ADD COLUMN "organization_discussion_creators" character varying NULL, ADD COLUMN "organization_email_template_creators" character varying NULL, ADD COLUMN "organization_entity_creators" character varying NULL, ADD COLUMN "organization_entity_type_creators" character varying NULL, ADD COLUMN "organization_export_creators" character varying NULL, ADD COLUMN "organization_file_creators" character varying NULL, ADD COLUMN "organization_integration_creators" character varying NULL, ADD COLUMN "organization_integration_webhook_creators" character varying NULL, ADD COLUMN "organization_job_runner_creators" character varying NULL, ADD COLUMN "organization_job_runner_registration_token_creators" character varying NULL, ADD COLUMN "organization_job_runner_token_creators" character varying NULL, ADD COLUMN "organization_job_template_creators" character varying NULL, ADD COLUMN "organization_note_creators" character varying NULL, ADD COLUMN "organization_notification_template_creators" character varying NULL, ADD COLUMN "organization_organization_creators" character varying NULL, ADD COLUMN "organization_platform_creators" character varying NULL, ADD COLUMN "organization_remediation_creators" character varying NULL, ADD COLUMN "organization_review_creators" character varying NULL, ADD COLUMN "organization_scan_creators" character varying NULL, ADD COLUMN "organization_scheduled_job_run_creators" character varying NULL, ADD COLUMN "organization_subcontrol_creators" character varying NULL, ADD COLUMN "organization_subscriber_creators" character varying NULL, ADD COLUMN "organization_system_detail_creators" character varying NULL, ADD COLUMN "organization_tag_definition_creators" character varying NULL, ADD COLUMN "organization_task_creators" character varying NULL, ADD COLUMN "organization_trust_center_creators" character varying NULL, ADD COLUMN "organization_trust_center_compliance_creators" character varying NULL, ADD COLUMN "organization_trust_center_entity_creators" character varying NULL, ADD COLUMN "organization_trust_center_faq_creators" character varying NULL, ADD COLUMN "organization_trust_center_nda_request_creators" character varying NULL, ADD COLUMN "organization_trust_center_watermark_config_creators" character varying NULL, ADD COLUMN "organization_user_creators" character varying NULL, ADD COLUMN "organization_user_setting_creators" character varying NULL, ADD COLUMN "organization_vendor_risk_score_creators" character varying NULL, ADD COLUMN "organization_workflow_assignment_creators" character varying NULL, ADD COLUMN "organization_workflow_assignment_target_creators" character varying NULL, ADD COLUMN "organization_workflow_definition_creators" character varying NULL, ADD COLUMN "organization_workflow_event_creators" character varying NULL, ADD COLUMN "organization_workflow_instance_creators" character varying NULL, ADD COLUMN "organization_workflow_object_ref_creators" character varying NULL, ADD COLUMN "organization_workflow_proposal_creators" character varying NULL, ADD COLUMN "organization_campaigns_manager" character varying NULL, ADD COLUMN "organization_compliance_manager" character varying NULL, ADD COLUMN "organization_group_manager" character varying NULL, ADD COLUMN "organization_policies_manager" character varying NULL, ADD COLUMN "organization_registry_manager" character varying NULL, ADD COLUMN "organization_risk_manager" character varying NULL, ADD COLUMN "organization_trust_center_manager" character varying NULL, ADD COLUMN "organization_workflows_manager" character varying NULL, ADD CONSTRAINT "groups_organizations_api_token_creators" FOREIGN KEY ("organization_api_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_assessment_creators" FOREIGN KEY ("organization_assessment_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaign_creators" FOREIGN KEY ("organization_campaign_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaign_target_creators" FOREIGN KEY ("organization_campaign_target_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaigns_manager" FOREIGN KEY ("organization_campaigns_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_check_result_creators" FOREIGN KEY ("organization_check_result_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_compliance_manager" FOREIGN KEY ("organization_compliance_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_contact_creators" FOREIGN KEY ("organization_contact_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_custom_type_enum_creators" FOREIGN KEY ("organization_custom_type_enum_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_discussion_creators" FOREIGN KEY ("organization_discussion_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_email_template_creators" FOREIGN KEY ("organization_email_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_entity_creators" FOREIGN KEY ("organization_entity_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_entity_type_creators" FOREIGN KEY ("organization_entity_type_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_export_creators" FOREIGN KEY ("organization_export_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_file_creators" FOREIGN KEY ("organization_file_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_group_manager" FOREIGN KEY ("organization_group_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_integration_creators" FOREIGN KEY ("organization_integration_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_integration_webhook_creators" FOREIGN KEY ("organization_integration_webhook_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_creators" FOREIGN KEY ("organization_job_runner_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_registration_token_creators" FOREIGN KEY ("organization_job_runner_registration_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_token_creators" FOREIGN KEY ("organization_job_runner_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_template_creators" FOREIGN KEY ("organization_job_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_note_creators" FOREIGN KEY ("organization_note_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_notification_template_creators" FOREIGN KEY ("organization_notification_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_organization_creators" FOREIGN KEY ("organization_organization_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_platform_creators" FOREIGN KEY ("organization_platform_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_policies_manager" FOREIGN KEY ("organization_policies_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_registry_manager" FOREIGN KEY ("organization_registry_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_remediation_creators" FOREIGN KEY ("organization_remediation_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_review_creators" FOREIGN KEY ("organization_review_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_risk_manager" FOREIGN KEY ("organization_risk_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_scan_creators" FOREIGN KEY ("organization_scan_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_scheduled_job_run_creators" FOREIGN KEY ("organization_scheduled_job_run_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_subcontrol_creators" FOREIGN KEY ("organization_subcontrol_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_subscriber_creators" FOREIGN KEY ("organization_subscriber_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_system_detail_creators" FOREIGN KEY ("organization_system_detail_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_tag_definition_creators" FOREIGN KEY ("organization_tag_definition_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_task_creators" FOREIGN KEY ("organization_task_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_compliance_creators" FOREIGN KEY ("organization_trust_center_compliance_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_creators" FOREIGN KEY ("organization_trust_center_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_entity_creators" FOREIGN KEY ("organization_trust_center_entity_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_faq_creators" FOREIGN KEY ("organization_trust_center_faq_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_manager" FOREIGN KEY ("organization_trust_center_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_nda_request_creators" FOREIGN KEY ("organization_trust_center_nda_request_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_watermark_config_creators" FOREIGN KEY ("organization_trust_center_watermark_config_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_user_creators" FOREIGN KEY ("organization_user_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_user_setting_creators" FOREIGN KEY ("organization_user_setting_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_vendor_risk_score_creators" FOREIGN KEY ("organization_vendor_risk_score_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_assignment_creators" FOREIGN KEY ("organization_workflow_assignment_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_assignment_target_creators" FOREIGN KEY ("organization_workflow_assignment_target_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_definition_creators" FOREIGN KEY ("organization_workflow_definition_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_event_creators" FOREIGN KEY ("organization_workflow_event_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_instance_creators" FOREIGN KEY ("organization_workflow_instance_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_object_ref_creators" FOREIGN KEY ("organization_workflow_object_ref_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_proposal_creators" FOREIGN KEY ("organization_workflow_proposal_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflows_manager" FOREIGN KEY ("organization_workflows_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; + +-- +goose Down +-- reverse: modify "groups" table +ALTER TABLE "groups" DROP CONSTRAINT "groups_organizations_workflows_manager", DROP CONSTRAINT "groups_organizations_workflow_proposal_creators", DROP CONSTRAINT "groups_organizations_workflow_object_ref_creators", DROP CONSTRAINT "groups_organizations_workflow_instance_creators", DROP CONSTRAINT "groups_organizations_workflow_event_creators", DROP CONSTRAINT "groups_organizations_workflow_definition_creators", DROP CONSTRAINT "groups_organizations_workflow_assignment_target_creators", DROP CONSTRAINT "groups_organizations_workflow_assignment_creators", DROP CONSTRAINT "groups_organizations_vendor_risk_score_creators", DROP CONSTRAINT "groups_organizations_user_setting_creators", DROP CONSTRAINT "groups_organizations_user_creators", DROP CONSTRAINT "groups_organizations_trust_center_watermark_config_creators", DROP CONSTRAINT "groups_organizations_trust_center_nda_request_creators", DROP CONSTRAINT "groups_organizations_trust_center_manager", DROP CONSTRAINT "groups_organizations_trust_center_faq_creators", DROP CONSTRAINT "groups_organizations_trust_center_entity_creators", DROP CONSTRAINT "groups_organizations_trust_center_creators", DROP CONSTRAINT "groups_organizations_trust_center_compliance_creators", DROP CONSTRAINT "groups_organizations_task_creators", DROP CONSTRAINT "groups_organizations_tag_definition_creators", DROP CONSTRAINT "groups_organizations_system_detail_creators", DROP CONSTRAINT "groups_organizations_subscriber_creators", DROP CONSTRAINT "groups_organizations_subcontrol_creators", DROP CONSTRAINT "groups_organizations_scheduled_job_run_creators", DROP CONSTRAINT "groups_organizations_scan_creators", DROP CONSTRAINT "groups_organizations_risk_manager", DROP CONSTRAINT "groups_organizations_review_creators", DROP CONSTRAINT "groups_organizations_remediation_creators", DROP CONSTRAINT "groups_organizations_registry_manager", DROP CONSTRAINT "groups_organizations_policies_manager", DROP CONSTRAINT "groups_organizations_platform_creators", DROP CONSTRAINT "groups_organizations_organization_creators", DROP CONSTRAINT "groups_organizations_notification_template_creators", DROP CONSTRAINT "groups_organizations_note_creators", DROP CONSTRAINT "groups_organizations_job_template_creators", DROP CONSTRAINT "groups_organizations_job_runner_token_creators", DROP CONSTRAINT "groups_organizations_job_runner_registration_token_creators", DROP CONSTRAINT "groups_organizations_job_runner_creators", DROP CONSTRAINT "groups_organizations_integration_webhook_creators", DROP CONSTRAINT "groups_organizations_integration_creators", DROP CONSTRAINT "groups_organizations_group_manager", DROP CONSTRAINT "groups_organizations_file_creators", DROP CONSTRAINT "groups_organizations_export_creators", DROP CONSTRAINT "groups_organizations_entity_type_creators", DROP CONSTRAINT "groups_organizations_entity_creators", DROP CONSTRAINT "groups_organizations_email_template_creators", DROP CONSTRAINT "groups_organizations_discussion_creators", DROP CONSTRAINT "groups_organizations_custom_type_enum_creators", DROP CONSTRAINT "groups_organizations_contact_creators", DROP CONSTRAINT "groups_organizations_compliance_manager", DROP CONSTRAINT "groups_organizations_check_result_creators", DROP CONSTRAINT "groups_organizations_campaigns_manager", DROP CONSTRAINT "groups_organizations_campaign_target_creators", DROP CONSTRAINT "groups_organizations_campaign_creators", DROP CONSTRAINT "groups_organizations_assessment_creators", DROP CONSTRAINT "groups_organizations_api_token_creators", DROP COLUMN "organization_workflows_manager", DROP COLUMN "organization_trust_center_manager", DROP COLUMN "organization_risk_manager", DROP COLUMN "organization_registry_manager", DROP COLUMN "organization_policies_manager", DROP COLUMN "organization_group_manager", DROP COLUMN "organization_compliance_manager", DROP COLUMN "organization_campaigns_manager", DROP COLUMN "organization_workflow_proposal_creators", DROP COLUMN "organization_workflow_object_ref_creators", DROP COLUMN "organization_workflow_instance_creators", DROP COLUMN "organization_workflow_event_creators", DROP COLUMN "organization_workflow_definition_creators", DROP COLUMN "organization_workflow_assignment_target_creators", DROP COLUMN "organization_workflow_assignment_creators", DROP COLUMN "organization_vendor_risk_score_creators", DROP COLUMN "organization_user_setting_creators", DROP COLUMN "organization_user_creators", DROP COLUMN "organization_trust_center_watermark_config_creators", DROP COLUMN "organization_trust_center_nda_request_creators", DROP COLUMN "organization_trust_center_faq_creators", DROP COLUMN "organization_trust_center_entity_creators", DROP COLUMN "organization_trust_center_compliance_creators", DROP COLUMN "organization_trust_center_creators", DROP COLUMN "organization_task_creators", DROP COLUMN "organization_tag_definition_creators", DROP COLUMN "organization_system_detail_creators", DROP COLUMN "organization_subscriber_creators", DROP COLUMN "organization_subcontrol_creators", DROP COLUMN "organization_scheduled_job_run_creators", DROP COLUMN "organization_scan_creators", DROP COLUMN "organization_review_creators", DROP COLUMN "organization_remediation_creators", DROP COLUMN "organization_platform_creators", DROP COLUMN "organization_organization_creators", DROP COLUMN "organization_notification_template_creators", DROP COLUMN "organization_note_creators", DROP COLUMN "organization_job_template_creators", DROP COLUMN "organization_job_runner_token_creators", DROP COLUMN "organization_job_runner_registration_token_creators", DROP COLUMN "organization_job_runner_creators", DROP COLUMN "organization_integration_webhook_creators", DROP COLUMN "organization_integration_creators", DROP COLUMN "organization_file_creators", DROP COLUMN "organization_export_creators", DROP COLUMN "organization_entity_type_creators", DROP COLUMN "organization_entity_creators", DROP COLUMN "organization_email_template_creators", DROP COLUMN "organization_discussion_creators", DROP COLUMN "organization_custom_type_enum_creators", DROP COLUMN "organization_contact_creators", DROP COLUMN "organization_check_result_creators", DROP COLUMN "organization_campaign_target_creators", DROP COLUMN "organization_campaign_creators", DROP COLUMN "organization_assessment_creators", DROP COLUMN "organization_api_token_creators"; diff --git a/db/migrations-goose-postgres/atlas.sum b/db/migrations-goose-postgres/atlas.sum index 8cd97744ce..ed4e67f616 100644 --- a/db/migrations-goose-postgres/atlas.sum +++ b/db/migrations-goose-postgres/atlas.sum @@ -1,4 +1,4 @@ -h1:N+B8qLWKXWFu6Ns3xAs6bqqzEJlOd1BF7jvTl3gErWc= +h1:kMkggpWeq+14EJ2QQlNXIPd+DmUsjYwkQ0UCDSeefkQ= 20251229183203_init.sql h1:g/05irCXoqKFObJV2PPLuvDRqma+da41VPsZ5fXQgfE= 20251229183205_init_history.sql h1:P/q2kAHb8zfNMOWzYkKtPbOwoh9GdJUQljSNAiPEjYI= 20251231045229_workflow.sql h1:uUPRLO4yw2y//fPGeqIXRrL+fiEN1TRGkF4wHiqPaPk= @@ -133,3 +133,4 @@ h1:N+B8qLWKXWFu6Ns3xAs6bqqzEJlOd1BF7jvTl3gErWc= 20260516001056_add_management_mode.sql h1:tTCfJDZTtYF8IwGP1r8zxkncQArdMAS9FZoJxKaWhYE= 20260516001108_add_management_mode_history.sql h1:wA3k3BqIaR3+DA4zRVvVZ9el2qAit1UEsoJEmDeEFFY= 20260516143012_backfill_management_mode.sql h1:qlRDjSzovC+2xzfWpxC5JhPH53mSbsFTFScroeiJcBA= +20260520184453_permissions_v2.sql h1:ut0l7aodsntIg1SHUytUeaK43hbFm1meVhjiJwDr2jI= diff --git a/db/migrations/20260520184445_permissions_v2.sql b/db/migrations/20260520184445_permissions_v2.sql new file mode 100644 index 0000000000..26fe06d31b --- /dev/null +++ b/db/migrations/20260520184445_permissions_v2.sql @@ -0,0 +1,2 @@ +-- Modify "groups" table +ALTER TABLE "groups" ADD COLUMN "organization_api_token_creators" character varying NULL, ADD COLUMN "organization_assessment_creators" character varying NULL, ADD COLUMN "organization_campaign_creators" character varying NULL, ADD COLUMN "organization_campaign_target_creators" character varying NULL, ADD COLUMN "organization_check_result_creators" character varying NULL, ADD COLUMN "organization_contact_creators" character varying NULL, ADD COLUMN "organization_custom_type_enum_creators" character varying NULL, ADD COLUMN "organization_discussion_creators" character varying NULL, ADD COLUMN "organization_email_template_creators" character varying NULL, ADD COLUMN "organization_entity_creators" character varying NULL, ADD COLUMN "organization_entity_type_creators" character varying NULL, ADD COLUMN "organization_export_creators" character varying NULL, ADD COLUMN "organization_file_creators" character varying NULL, ADD COLUMN "organization_integration_creators" character varying NULL, ADD COLUMN "organization_integration_webhook_creators" character varying NULL, ADD COLUMN "organization_job_runner_creators" character varying NULL, ADD COLUMN "organization_job_runner_registration_token_creators" character varying NULL, ADD COLUMN "organization_job_runner_token_creators" character varying NULL, ADD COLUMN "organization_job_template_creators" character varying NULL, ADD COLUMN "organization_note_creators" character varying NULL, ADD COLUMN "organization_notification_template_creators" character varying NULL, ADD COLUMN "organization_organization_creators" character varying NULL, ADD COLUMN "organization_platform_creators" character varying NULL, ADD COLUMN "organization_remediation_creators" character varying NULL, ADD COLUMN "organization_review_creators" character varying NULL, ADD COLUMN "organization_scan_creators" character varying NULL, ADD COLUMN "organization_scheduled_job_run_creators" character varying NULL, ADD COLUMN "organization_subcontrol_creators" character varying NULL, ADD COLUMN "organization_subscriber_creators" character varying NULL, ADD COLUMN "organization_system_detail_creators" character varying NULL, ADD COLUMN "organization_tag_definition_creators" character varying NULL, ADD COLUMN "organization_task_creators" character varying NULL, ADD COLUMN "organization_trust_center_creators" character varying NULL, ADD COLUMN "organization_trust_center_compliance_creators" character varying NULL, ADD COLUMN "organization_trust_center_entity_creators" character varying NULL, ADD COLUMN "organization_trust_center_faq_creators" character varying NULL, ADD COLUMN "organization_trust_center_nda_request_creators" character varying NULL, ADD COLUMN "organization_trust_center_watermark_config_creators" character varying NULL, ADD COLUMN "organization_user_creators" character varying NULL, ADD COLUMN "organization_user_setting_creators" character varying NULL, ADD COLUMN "organization_vendor_risk_score_creators" character varying NULL, ADD COLUMN "organization_workflow_assignment_creators" character varying NULL, ADD COLUMN "organization_workflow_assignment_target_creators" character varying NULL, ADD COLUMN "organization_workflow_definition_creators" character varying NULL, ADD COLUMN "organization_workflow_event_creators" character varying NULL, ADD COLUMN "organization_workflow_instance_creators" character varying NULL, ADD COLUMN "organization_workflow_object_ref_creators" character varying NULL, ADD COLUMN "organization_workflow_proposal_creators" character varying NULL, ADD COLUMN "organization_campaigns_manager" character varying NULL, ADD COLUMN "organization_compliance_manager" character varying NULL, ADD COLUMN "organization_group_manager" character varying NULL, ADD COLUMN "organization_policies_manager" character varying NULL, ADD COLUMN "organization_registry_manager" character varying NULL, ADD COLUMN "organization_risk_manager" character varying NULL, ADD COLUMN "organization_trust_center_manager" character varying NULL, ADD COLUMN "organization_workflows_manager" character varying NULL, ADD CONSTRAINT "groups_organizations_api_token_creators" FOREIGN KEY ("organization_api_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_assessment_creators" FOREIGN KEY ("organization_assessment_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaign_creators" FOREIGN KEY ("organization_campaign_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaign_target_creators" FOREIGN KEY ("organization_campaign_target_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_campaigns_manager" FOREIGN KEY ("organization_campaigns_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_check_result_creators" FOREIGN KEY ("organization_check_result_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_compliance_manager" FOREIGN KEY ("organization_compliance_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_contact_creators" FOREIGN KEY ("organization_contact_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_custom_type_enum_creators" FOREIGN KEY ("organization_custom_type_enum_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_discussion_creators" FOREIGN KEY ("organization_discussion_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_email_template_creators" FOREIGN KEY ("organization_email_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_entity_creators" FOREIGN KEY ("organization_entity_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_entity_type_creators" FOREIGN KEY ("organization_entity_type_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_export_creators" FOREIGN KEY ("organization_export_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_file_creators" FOREIGN KEY ("organization_file_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_group_manager" FOREIGN KEY ("organization_group_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_integration_creators" FOREIGN KEY ("organization_integration_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_integration_webhook_creators" FOREIGN KEY ("organization_integration_webhook_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_creators" FOREIGN KEY ("organization_job_runner_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_registration_token_creators" FOREIGN KEY ("organization_job_runner_registration_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_runner_token_creators" FOREIGN KEY ("organization_job_runner_token_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_job_template_creators" FOREIGN KEY ("organization_job_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_note_creators" FOREIGN KEY ("organization_note_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_notification_template_creators" FOREIGN KEY ("organization_notification_template_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_organization_creators" FOREIGN KEY ("organization_organization_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_platform_creators" FOREIGN KEY ("organization_platform_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_policies_manager" FOREIGN KEY ("organization_policies_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_registry_manager" FOREIGN KEY ("organization_registry_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_remediation_creators" FOREIGN KEY ("organization_remediation_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_review_creators" FOREIGN KEY ("organization_review_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_risk_manager" FOREIGN KEY ("organization_risk_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_scan_creators" FOREIGN KEY ("organization_scan_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_scheduled_job_run_creators" FOREIGN KEY ("organization_scheduled_job_run_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_subcontrol_creators" FOREIGN KEY ("organization_subcontrol_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_subscriber_creators" FOREIGN KEY ("organization_subscriber_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_system_detail_creators" FOREIGN KEY ("organization_system_detail_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_tag_definition_creators" FOREIGN KEY ("organization_tag_definition_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_task_creators" FOREIGN KEY ("organization_task_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_compliance_creators" FOREIGN KEY ("organization_trust_center_compliance_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_creators" FOREIGN KEY ("organization_trust_center_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_entity_creators" FOREIGN KEY ("organization_trust_center_entity_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_faq_creators" FOREIGN KEY ("organization_trust_center_faq_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_manager" FOREIGN KEY ("organization_trust_center_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_nda_request_creators" FOREIGN KEY ("organization_trust_center_nda_request_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_trust_center_watermark_config_creators" FOREIGN KEY ("organization_trust_center_watermark_config_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_user_creators" FOREIGN KEY ("organization_user_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_user_setting_creators" FOREIGN KEY ("organization_user_setting_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_vendor_risk_score_creators" FOREIGN KEY ("organization_vendor_risk_score_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_assignment_creators" FOREIGN KEY ("organization_workflow_assignment_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_assignment_target_creators" FOREIGN KEY ("organization_workflow_assignment_target_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_definition_creators" FOREIGN KEY ("organization_workflow_definition_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_event_creators" FOREIGN KEY ("organization_workflow_event_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_instance_creators" FOREIGN KEY ("organization_workflow_instance_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_object_ref_creators" FOREIGN KEY ("organization_workflow_object_ref_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflow_proposal_creators" FOREIGN KEY ("organization_workflow_proposal_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_workflows_manager" FOREIGN KEY ("organization_workflows_manager") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; diff --git a/db/migrations/atlas.sum b/db/migrations/atlas.sum index 3f1a32d4b2..4d3e1e72c1 100644 --- a/db/migrations/atlas.sum +++ b/db/migrations/atlas.sum @@ -1,4 +1,4 @@ -h1:l0WsgewXK0ApoaqwsADXTU1LZWKyuGVnMlTslFW/8Qw= +h1:TPT0lJF3Uk4XJyfj3j93lEE6MSTzJqcXgKGX43Ty+4A= 20251229183159_init.sql h1:3uf/ftr28zW8YUD9qAaY2GESQHC7pYmkhlI6oDWUCKU= 20251229183201_init_history.sql h1:1tFSeCDWvZgb2Ctw80C/s3tqVPNLADQw9fSDACzL8WA= 20251231045221_workflow.sql h1:5bLq4cHh2kxUV7xajK5bq5McKKpr88HmufYauTdsgUw= @@ -133,3 +133,4 @@ h1:l0WsgewXK0ApoaqwsADXTU1LZWKyuGVnMlTslFW/8Qw= 20260516001026_add_management_mode.sql h1:LrrrIprXoKLwjEu2cQmp4S6Ho1GjbQwuknz+WHt6NyQ= 20260516001040_add_management_mode_history.sql h1:ipljVIykHiKYWBc4OD9Ljbq19b5hDNMCLpLLl6rkzVc= 20260516143000_backfill_management_mode.sql h1:jrRd3QPKqumqeZP1BALxI8bfKXP5RP6/le412BOjd8c= +20260520184445_permissions_v2.sql h1:oH2f7JRrUClNjJFqpNkd0odoiQNqEpRBexFDm5bmeQI= From 102e2850bb2e2a126c73067f0edbc75003a047e0 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Wed, 20 May 2026 12:53:22 -0600 Subject: [PATCH 12/12] linter Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- internal/ent/privacy/policy/checks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ent/privacy/policy/checks.go b/internal/ent/privacy/policy/checks.go index 7347ab556b..cbc5d4d415 100644 --- a/internal/ent/privacy/policy/checks.go +++ b/internal/ent/privacy/policy/checks.go @@ -146,7 +146,7 @@ func CheckOrgWriteAccess() privacy.MutationRule { // CheckOrgAuditorAccess checks if the requestor has auditor access the organization func CheckOrgAuditorAccess() privacy.QueryRule { - return privacy.QueryRuleFunc(func(ctx context.Context, q ent.Query) error { + return privacy.QueryRuleFunc(func(ctx context.Context, _ ent.Query) error { logx.FromContext(ctx).Debug().Msg("checking org auditor access") return rule.CheckCurrentOrgAccess(ctx, nil, fgax.AuditorRelation) })